OSDN Git Service

config/
[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 libgcj_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 BASH_JAR_TRUE BASH_JAR_FALSE 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 LIBMAGIC 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-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --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 # When building with srcdir == objdir, links to the source files will
1485 # be created in directories within the target_subdir.  We have to
1486 # adjust toplevel_srcdir accordingly, so that configure finds
1487 # install-sh and other auxiliary files that live in the top-level
1488 # source directory.
1489 if test "${srcdir}" = "."; then
1490   if test -z "${with_target_subdir}"; then
1491     toprel=".."
1492   else
1493     if test "${with_target_subdir}" != "."; then
1494       toprel="${with_multisrctop}../.."
1495     else
1496       toprel="${with_multisrctop}.."
1497     fi
1498   fi
1499 else
1500   toprel=".."
1501 fi
1502
1503 libgcj_basedir=$srcdir/$toprel/./libjava
1504
1505
1506 echo "$as_me:$LINENO: checking host system type" >&5
1507 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1508 if test "${ac_cv_host+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   ac_cv_host_alias=$host_alias
1512 test -z "$ac_cv_host_alias" &&
1513   ac_cv_host_alias=$ac_cv_build_alias
1514 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1521 echo "${ECHO_T}$ac_cv_host" >&6
1522 host=$ac_cv_host
1523 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 echo "$as_me:$LINENO: checking target system type" >&5
1529 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1530 if test "${ac_cv_target+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   ac_cv_target_alias=$target_alias
1534 test "x$ac_cv_target_alias" = "x" &&
1535   ac_cv_target_alias=$ac_cv_host_alias
1536 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1537   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1539    { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1543 echo "${ECHO_T}$ac_cv_target" >&6
1544 target=$ac_cv_target
1545 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 # The aliases save the names the user supplied, while $host etc.
1551 # will get canonicalized.
1552 test -n "$target_alias" &&
1553   test "$program_prefix$program_suffix$program_transform_name" = \
1554     NONENONEs,x,x, &&
1555   program_prefix=${target_alias}-
1556  case ${build_alias} in
1557   "") build_noncanonical=${build} ;;
1558   *) build_noncanonical=${build_alias} ;;
1559 esac
1560
1561  case ${target_alias} in
1562   "") target_noncanonical=${host_noncanonical} ;;
1563   *) target_noncanonical=${target_alias} ;;
1564 esac
1565
1566
1567
1568
1569 # This works around the fact that libtool configuration may change LD
1570 # for this particular configuration, but some shells, instead of
1571 # keeping the changes in LD private, export them just because LD is
1572 # exported.
1573 ORIGINAL_LD_FOR_MULTILIBS=$LD
1574
1575 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1576 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1577 LN_S=$as_ln_s
1578 if test "$LN_S" = "ln -s"; then
1579   echo "$as_me:$LINENO: result: yes" >&5
1580 echo "${ECHO_T}yes" >&6
1581 else
1582   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1583 echo "${ECHO_T}no, using $LN_S" >&6
1584 fi
1585
1586
1587 # This works around an automake problem.
1588 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1589
1590
1591
1592 # Check whether --with-cross-host or --without-cross-host was given.
1593 if test "${with_cross_host+set}" = set; then
1594   withval="$with_cross_host"
1595
1596 fi;
1597
1598
1599 # Check whether --with-newlib or --without-newlib was given.
1600 if test "${with_newlib+set}" = set; then
1601   withval="$with_newlib"
1602
1603 fi;
1604
1605 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1606 if test "${enable_version_specific_runtime_libs+set}" = set; then
1607   enableval="$enable_version_specific_runtime_libs"
1608   case "$enableval" in
1609       yes) version_specific_libs=yes ;;
1610       no)  version_specific_libs=no ;;
1611       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1612 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1613    { (exit 1); exit 1; }; };;
1614      esac
1615 else
1616   version_specific_libs=no
1617
1618 fi;
1619
1620 # Default to --enable-multilib
1621 # Check whether --enable-multilib or --disable-multilib was given.
1622 if test "${enable_multilib+set}" = set; then
1623   enableval="$enable_multilib"
1624   case "${enableval}" in
1625   yes) multilib=yes ;;
1626   no)  multilib=no ;;
1627   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1628 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1629    { (exit 1); exit 1; }; } ;;
1630  esac
1631 else
1632   multilib=yes
1633 fi;
1634 # Check whether --enable-plugin or --disable-plugin was given.
1635 if test "${enable_plugin+set}" = set; then
1636   enableval="$enable_plugin"
1637   case "$enableval" in
1638       yes) plugin_enabled=yes ;;
1639       no)  plugin_enabled=no ;;
1640       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1641 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1642    { (exit 1); exit 1; }; };;
1643      esac
1644 else
1645   plugin_enabled=no
1646
1647 fi;
1648
1649 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1650 if test "${enable_gconf_peer+set}" = set; then
1651   enableval="$enable_gconf_peer"
1652   case "$enableval" in
1653       yes) gconf_enabled=yes ;;
1654       no)  gconf_enabled=no ;;
1655       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1656 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1657    { (exit 1); exit 1; }; };;
1658      esac
1659 else
1660   gconf_enabled=no
1661
1662 fi;
1663
1664 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1665 if test "${enable_java_maintainer_mode+set}" = set; then
1666   enableval="$enable_java_maintainer_mode"
1667
1668 fi;
1669
1670
1671 if test "$enable_java_maintainer_mode" = yes; then
1672   JAVA_MAINTAINER_MODE_TRUE=
1673   JAVA_MAINTAINER_MODE_FALSE='#'
1674 else
1675   JAVA_MAINTAINER_MODE_TRUE='#'
1676   JAVA_MAINTAINER_MODE_FALSE=
1677 fi
1678
1679
1680 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1681
1682
1683 # (1) We use an abnormal CXX (without library references), so we
1684 # must cache it under a different name.
1685 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1686 # the non-multilib-adjusted value will be used in multilibs.
1687 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1688 # (4) As another side effect, automake doesn't automatically include them
1689 # in Makefile.in.
1690 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1691 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1692 # used in later tests.  This may not be necessary in libjava; I don't know.
1693
1694
1695 save_CXXFLAGS="$CXXFLAGS"
1696 CXXFLAGS="$CXXFLAGS -fno-builtin"
1697 ac_ext=c
1698 ac_cpp='$CPP $CPPFLAGS'
1699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1702 if test -n "$ac_tool_prefix"; then
1703   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1705 echo "$as_me:$LINENO: checking for $ac_word" >&5
1706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1707 if test "${ac_cv_prog_CC+set}" = set; then
1708   echo $ECHO_N "(cached) $ECHO_C" >&6
1709 else
1710   if test -n "$CC"; then
1711   ac_cv_prog_CC="$CC" # Let the user override the test.
1712 else
1713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1714 for as_dir in $PATH
1715 do
1716   IFS=$as_save_IFS
1717   test -z "$as_dir" && as_dir=.
1718   for ac_exec_ext in '' $ac_executable_extensions; do
1719   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1720     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731   echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 fi
1739 if test -z "$ac_cv_prog_CC"; then
1740   ac_ct_CC=$CC
1741   # Extract the first word of "gcc", so it can be a program name with args.
1742 set dummy gcc; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$ac_ct_CC"; then
1749   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_ac_ct_CC="gcc"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1768 if test -n "$ac_ct_CC"; then
1769   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1770 echo "${ECHO_T}$ac_ct_CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776   CC=$ac_ct_CC
1777 else
1778   CC="$ac_cv_prog_CC"
1779 fi
1780
1781 if test -z "$CC"; then
1782   if test -n "$ac_tool_prefix"; then
1783   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1784 set dummy ${ac_tool_prefix}cc; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_CC+set}" = set; then
1788   echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790   if test -n "$CC"; then
1791   ac_cv_prog_CC="$CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_prog_CC="${ac_tool_prefix}cc"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 CC=$ac_cv_prog_CC
1810 if test -n "$CC"; then
1811   echo "$as_me:$LINENO: result: $CC" >&5
1812 echo "${ECHO_T}$CC" >&6
1813 else
1814   echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818 fi
1819 if test -z "$ac_cv_prog_CC"; then
1820   ac_ct_CC=$CC
1821   # Extract the first word of "cc", so it can be a program name with args.
1822 set dummy cc; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$ac_ct_CC"; then
1829   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834   IFS=$as_save_IFS
1835   test -z "$as_dir" && as_dir=.
1836   for ac_exec_ext in '' $ac_executable_extensions; do
1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838     ac_cv_prog_ac_ct_CC="cc"
1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840     break 2
1841   fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1848 if test -n "$ac_ct_CC"; then
1849   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1850 echo "${ECHO_T}$ac_ct_CC" >&6
1851 else
1852   echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856   CC=$ac_ct_CC
1857 else
1858   CC="$ac_cv_prog_CC"
1859 fi
1860
1861 fi
1862 if test -z "$CC"; then
1863   # Extract the first word of "cc", so it can be a program name with args.
1864 set dummy cc; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_CC+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   if test -n "$CC"; then
1871   ac_cv_prog_CC="$CC" # Let the user override the test.
1872 else
1873   ac_prog_rejected=no
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1875 for as_dir in $PATH
1876 do
1877   IFS=$as_save_IFS
1878   test -z "$as_dir" && as_dir=.
1879   for ac_exec_ext in '' $ac_executable_extensions; do
1880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1882        ac_prog_rejected=yes
1883        continue
1884      fi
1885     ac_cv_prog_CC="cc"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 if test $ac_prog_rejected = yes; then
1893   # We found a bogon in the path, so make sure we never use it.
1894   set dummy $ac_cv_prog_CC
1895   shift
1896   if test $# != 0; then
1897     # We chose a different compiler from the bogus one.
1898     # However, it has the same basename, so the bogon will be chosen
1899     # first if we set CC to just the basename; use the full file name.
1900     shift
1901     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1902   fi
1903 fi
1904 fi
1905 fi
1906 CC=$ac_cv_prog_CC
1907 if test -n "$CC"; then
1908   echo "$as_me:$LINENO: result: $CC" >&5
1909 echo "${ECHO_T}$CC" >&6
1910 else
1911   echo "$as_me:$LINENO: result: no" >&5
1912 echo "${ECHO_T}no" >&6
1913 fi
1914
1915 fi
1916 if test -z "$CC"; then
1917   if test -n "$ac_tool_prefix"; then
1918   for ac_prog in cl
1919   do
1920     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_CC+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   if test -n "$CC"; then
1928   ac_cv_prog_CC="$CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1932 do
1933   IFS=$as_save_IFS
1934   test -z "$as_dir" && as_dir=.
1935   for ac_exec_ext in '' $ac_executable_extensions; do
1936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939     break 2
1940   fi
1941 done
1942 done
1943
1944 fi
1945 fi
1946 CC=$ac_cv_prog_CC
1947 if test -n "$CC"; then
1948   echo "$as_me:$LINENO: result: $CC" >&5
1949 echo "${ECHO_T}$CC" >&6
1950 else
1951   echo "$as_me:$LINENO: result: no" >&5
1952 echo "${ECHO_T}no" >&6
1953 fi
1954
1955     test -n "$CC" && break
1956   done
1957 fi
1958 if test -z "$CC"; then
1959   ac_ct_CC=$CC
1960   for ac_prog in cl
1961 do
1962   # Extract the first word of "$ac_prog", so it can be a program name with args.
1963 set dummy $ac_prog; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$ac_ct_CC"; then
1970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979     ac_cv_prog_ac_ct_CC="$ac_prog"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1989 if test -n "$ac_ct_CC"; then
1990   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1991 echo "${ECHO_T}$ac_ct_CC" >&6
1992 else
1993   echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997   test -n "$ac_ct_CC" && break
1998 done
1999
2000   CC=$ac_ct_CC
2001 fi
2002
2003 fi
2004
2005
2006 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: no acceptable C compiler found in \$PATH
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011
2012 # Provide some information about the compiler.
2013 echo "$as_me:$LINENO:" \
2014      "checking for C compiler version" >&5
2015 ac_compiler=`set X $ac_compile; echo $2`
2016 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2017   (eval $ac_compiler --version </dev/null >&5) 2>&5
2018   ac_status=$?
2019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020   (exit $ac_status); }
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2022   (eval $ac_compiler -v </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
2032 cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h.  */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h.  */
2038
2039 int
2040 main ()
2041 {
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 # FIXME: Cleanup?
2048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2049   (eval $ac_link) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; then
2053   gcc_no_link=no
2054 else
2055   gcc_no_link=yes
2056 fi
2057
2058 if test x$gcc_no_link = xyes; then
2059   # Setting cross_compile will disable run tests; it will
2060   # also disable AC_CHECK_FILE but that's generally
2061   # correct if we can't link.
2062   cross_compiling=yes
2063   EXEEXT=
2064 else
2065   cat >conftest.$ac_ext <<_ACEOF
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 ac_clean_files_save=$ac_clean_files
2081 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2082 # Try to create an executable without -o first, disregard a.out.
2083 # It will help us diagnose broken compilers, and finding out an intuition
2084 # of exeext.
2085 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2086 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2087 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2089   (eval $ac_link_default) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; then
2093   # Find the output, starting from the most likely.  This scheme is
2094 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2095 # resort.
2096
2097 # Be careful to initialize this variable, since it used to be cached.
2098 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2099 ac_cv_exeext=
2100 # b.out is created by i960 compilers.
2101 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2102 do
2103   test -f "$ac_file" || continue
2104   case $ac_file in
2105     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2106         ;;
2107     conftest.$ac_ext )
2108         # This is the source file.
2109         ;;
2110     [ab].out )
2111         # We found the default executable, but exeext='' is most
2112         # certainly right.
2113         break;;
2114     *.* )
2115         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2116         # FIXME: I believe we export ac_cv_exeext for Libtool,
2117         # but it would be cool to find out if it's true.  Does anybody
2118         # maintain Libtool? --akim.
2119         export ac_cv_exeext
2120         break;;
2121     * )
2122         break;;
2123   esac
2124 done
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2130 See \`config.log' for more details." >&5
2131 echo "$as_me: error: C compiler cannot create executables
2132 See \`config.log' for more details." >&2;}
2133    { (exit 77); exit 77; }; }
2134 fi
2135
2136 ac_exeext=$ac_cv_exeext
2137 echo "$as_me:$LINENO: result: $ac_file" >&5
2138 echo "${ECHO_T}$ac_file" >&6
2139
2140 # Check the compiler produces executables we can run.  If not, either
2141 # the compiler is broken, or we cross compile.
2142 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2143 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2144 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2145 # If not cross compiling, check that we can run a simple program.
2146 if test "$cross_compiling" != yes; then
2147   if { ac_try='./$ac_file'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; }; then
2153     cross_compiling=no
2154   else
2155     if test "$cross_compiling" = maybe; then
2156         cross_compiling=yes
2157     else
2158         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2159 If you meant to cross compile, use \`--host'.
2160 See \`config.log' for more details." >&5
2161 echo "$as_me: error: cannot run C compiled programs.
2162 If you meant to cross compile, use \`--host'.
2163 See \`config.log' for more details." >&2;}
2164    { (exit 1); exit 1; }; }
2165     fi
2166   fi
2167 fi
2168 echo "$as_me:$LINENO: result: yes" >&5
2169 echo "${ECHO_T}yes" >&6
2170
2171 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2172 ac_clean_files=$ac_clean_files_save
2173 # Check the compiler produces executables we can run.  If not, either
2174 # the compiler is broken, or we cross compile.
2175 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2176 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2177 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2178 echo "${ECHO_T}$cross_compiling" >&6
2179
2180 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2181 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2183   (eval $ac_link) 2>&5
2184   ac_status=$?
2185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186   (exit $ac_status); }; then
2187   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2188 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2189 # work properly (i.e., refer to `conftest.exe'), while it won't with
2190 # `rm'.
2191 for ac_file in conftest.exe conftest conftest.*; do
2192   test -f "$ac_file" || continue
2193   case $ac_file in
2194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2195     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196           export ac_cv_exeext
2197           break;;
2198     * ) break;;
2199   esac
2200 done
2201 else
2202   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2205 See \`config.log' for more details." >&2;}
2206    { (exit 1); exit 1; }; }
2207 fi
2208
2209 rm -f conftest$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2211 echo "${ECHO_T}$ac_cv_exeext" >&6
2212
2213 rm -f conftest.$ac_ext
2214 EXEEXT=$ac_cv_exeext
2215 ac_exeext=$EXEEXT
2216 fi
2217 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2218 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2219 if test "${ac_cv_objext+set}" = set; then
2220   echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222   cat >conftest.$ac_ext <<_ACEOF
2223 /* confdefs.h.  */
2224 _ACEOF
2225 cat confdefs.h >>conftest.$ac_ext
2226 cat >>conftest.$ac_ext <<_ACEOF
2227 /* end confdefs.h.  */
2228
2229 int
2230 main ()
2231 {
2232
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 rm -f conftest.o conftest.obj
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); }; then
2243   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2246     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2247        break;;
2248   esac
2249 done
2250 else
2251   echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2257 See \`config.log' for more details." >&2;}
2258    { (exit 1); exit 1; }; }
2259 fi
2260
2261 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2262 fi
2263 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2264 echo "${ECHO_T}$ac_cv_objext" >&6
2265 OBJEXT=$ac_cv_objext
2266 ac_objext=$OBJEXT
2267 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2268 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2269 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2270   echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272   cat >conftest.$ac_ext <<_ACEOF
2273 /* confdefs.h.  */
2274 _ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h.  */
2278
2279 int
2280 main ()
2281 {
2282 #ifndef __GNUC__
2283        choke me
2284 #endif
2285
2286   ;
2287   return 0;
2288 }
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292   (eval $ac_compile) 2>conftest.er1
2293   ac_status=$?
2294   grep -v '^ *+' conftest.er1 >conftest.err
2295   rm -f conftest.er1
2296   cat conftest.err >&5
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); } &&
2299          { ac_try='test -z "$ac_c_werror_flag"
2300                          || test ! -s conftest.err'
2301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302   (eval $ac_try) 2>&5
2303   ac_status=$?
2304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305   (exit $ac_status); }; } &&
2306          { ac_try='test -s conftest.$ac_objext'
2307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308   (eval $ac_try) 2>&5
2309   ac_status=$?
2310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311   (exit $ac_status); }; }; then
2312   ac_compiler_gnu=yes
2313 else
2314   echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2316
2317 ac_compiler_gnu=no
2318 fi
2319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2321
2322 fi
2323 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2324 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2325 GCC=`test $ac_compiler_gnu = yes && echo yes`
2326 ac_test_CFLAGS=${CFLAGS+set}
2327 ac_save_CFLAGS=$CFLAGS
2328 CFLAGS="-g"
2329 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2330 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_g+set}" = set; then
2332   echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334   cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340
2341 int
2342 main ()
2343 {
2344
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>conftest.er1
2352   ac_status=$?
2353   grep -v '^ *+' conftest.er1 >conftest.err
2354   rm -f conftest.er1
2355   cat conftest.err >&5
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); } &&
2358          { ac_try='test -z "$ac_c_werror_flag"
2359                          || test ! -s conftest.err'
2360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361   (eval $ac_try) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }; } &&
2365          { ac_try='test -s conftest.$ac_objext'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; }; then
2371   ac_cv_prog_cc_g=yes
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 ac_cv_prog_cc_g=no
2377 fi
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 fi
2380 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2381 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2382 if test "$ac_test_CFLAGS" = set; then
2383   CFLAGS=$ac_save_CFLAGS
2384 elif test $ac_cv_prog_cc_g = yes; then
2385   if test "$GCC" = yes; then
2386     CFLAGS="-g -O2"
2387   else
2388     CFLAGS="-g"
2389   fi
2390 else
2391   if test "$GCC" = yes; then
2392     CFLAGS="-O2"
2393   else
2394     CFLAGS=
2395   fi
2396 fi
2397 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2398 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2399 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   ac_cv_prog_cc_stdc=no
2403 ac_save_CC=$CC
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410 #include <stdarg.h>
2411 #include <stdio.h>
2412 #include <sys/types.h>
2413 #include <sys/stat.h>
2414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2415 struct buf { int x; };
2416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2417 static char *e (p, i)
2418      char **p;
2419      int i;
2420 {
2421   return p[i];
2422 }
2423 static char *f (char * (*g) (char **, int), char **p, ...)
2424 {
2425   char *s;
2426   va_list v;
2427   va_start (v,p);
2428   s = g (p, va_arg (v,int));
2429   va_end (v);
2430   return s;
2431 }
2432
2433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2434    function prototypes and stuff, but not '\xHH' hex character constants.
2435    These don't provoke an error unfortunately, instead are silently treated
2436    as 'x'.  The following induces an error, until -std1 is added to get
2437    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2438    array size at least.  It's necessary to write '\x00'==0 to get something
2439    that's true only with -std1.  */
2440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2441
2442 int test (int i, double x);
2443 struct s1 {int (*f) (int a);};
2444 struct s2 {int (*f) (double a);};
2445 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2446 int argc;
2447 char **argv;
2448 int
2449 main ()
2450 {
2451 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 # Don't try gcc -ansi; that turns off useful extensions and
2457 # breaks some systems' header files.
2458 # AIX                   -qlanglvl=ansi
2459 # Ultrix and OSF/1      -std1
2460 # HP-UX 10.20 and later -Ae
2461 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2462 # SVR4                  -Xc -D__EXTENSIONS__
2463 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2464 do
2465   CC="$ac_save_CC $ac_arg"
2466   rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468   (eval $ac_compile) 2>conftest.er1
2469   ac_status=$?
2470   grep -v '^ *+' conftest.er1 >conftest.err
2471   rm -f conftest.er1
2472   cat conftest.err >&5
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); } &&
2475          { ac_try='test -z "$ac_c_werror_flag"
2476                          || test ! -s conftest.err'
2477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478   (eval $ac_try) 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; } &&
2482          { ac_try='test -s conftest.$ac_objext'
2483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484   (eval $ac_try) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; }; then
2488   ac_cv_prog_cc_stdc=$ac_arg
2489 break
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 fi
2495 rm -f conftest.err conftest.$ac_objext
2496 done
2497 rm -f conftest.$ac_ext conftest.$ac_objext
2498 CC=$ac_save_CC
2499
2500 fi
2501
2502 case "x$ac_cv_prog_cc_stdc" in
2503   x|xno)
2504     echo "$as_me:$LINENO: result: none needed" >&5
2505 echo "${ECHO_T}none needed" >&6 ;;
2506   *)
2507     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2508 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2509     CC="$CC $ac_cv_prog_cc_stdc" ;;
2510 esac
2511
2512 # Some people use a C++ compiler to compile C.  Since we use `exit',
2513 # in C++ we need to declare it.  In case someone uses the same compiler
2514 # for both compiling C and C++ we need to have the C++ compiler decide
2515 # the declaration of exit, since it's the most demanding environment.
2516 cat >conftest.$ac_ext <<_ACEOF
2517 #ifndef __cplusplus
2518   choke me
2519 #endif
2520 _ACEOF
2521 rm -f conftest.$ac_objext
2522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523   (eval $ac_compile) 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -z "$ac_c_werror_flag"
2531                          || test ! -s conftest.err'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; } &&
2537          { ac_try='test -s conftest.$ac_objext'
2538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539   (eval $ac_try) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; }; then
2543   for ac_declaration in \
2544    '' \
2545    'extern "C" void std::exit (int) throw (); using std::exit;' \
2546    'extern "C" void std::exit (int); using std::exit;' \
2547    'extern "C" void exit (int) throw ();' \
2548    'extern "C" void exit (int);' \
2549    'void exit (int);'
2550 do
2551   cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h.  */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h.  */
2557 $ac_declaration
2558 #include <stdlib.h>
2559 int
2560 main ()
2561 {
2562 exit (42);
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>conftest.er1
2570   ac_status=$?
2571   grep -v '^ *+' conftest.er1 >conftest.err
2572   rm -f conftest.er1
2573   cat conftest.err >&5
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -z "$ac_c_werror_flag"
2577                          || test ! -s conftest.err'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   :
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 continue
2595 fi
2596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597   cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603 $ac_declaration
2604 int
2605 main ()
2606 {
2607 exit (42);
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>conftest.er1
2615   ac_status=$?
2616   grep -v '^ *+' conftest.er1 >conftest.err
2617   rm -f conftest.er1
2618   cat conftest.err >&5
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -z "$ac_c_werror_flag"
2622                          || test ! -s conftest.err'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; } &&
2628          { ac_try='test -s conftest.$ac_objext'
2629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630   (eval $ac_try) 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   break
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 fi
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641 done
2642 rm -f conftest*
2643 if test -n "$ac_declaration"; then
2644   echo '#ifdef __cplusplus' >>confdefs.h
2645   echo $ac_declaration      >>confdefs.h
2646   echo '#endif'             >>confdefs.h
2647 fi
2648
2649 else
2650   echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653 fi
2654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661 ac_ext=cc
2662 ac_cpp='$CXXCPP $CPPFLAGS'
2663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2666 if test -n "$ac_tool_prefix"; then
2667   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2668   do
2669     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_CXX+set}" = set; then
2674   echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676   if test -n "$CXX"; then
2677   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684   for ac_exec_ext in '' $ac_executable_extensions; do
2685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691 done
2692
2693 fi
2694 fi
2695 CXX=$ac_cv_prog_CXX
2696 if test -n "$CXX"; then
2697   echo "$as_me:$LINENO: result: $CXX" >&5
2698 echo "${ECHO_T}$CXX" >&6
2699 else
2700   echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2702 fi
2703
2704     test -n "$CXX" && break
2705   done
2706 fi
2707 if test -z "$CXX"; then
2708   ac_ct_CXX=$CXX
2709   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2710 do
2711   # Extract the first word of "$ac_prog", so it can be a program name with args.
2712 set dummy $ac_prog; ac_word=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   if test -n "$ac_ct_CXX"; then
2719   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2720 else
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 for as_dir in $PATH
2723 do
2724   IFS=$as_save_IFS
2725   test -z "$as_dir" && as_dir=.
2726   for ac_exec_ext in '' $ac_executable_extensions; do
2727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728     ac_cv_prog_ac_ct_CXX="$ac_prog"
2729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730     break 2
2731   fi
2732 done
2733 done
2734
2735 fi
2736 fi
2737 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2738 if test -n "$ac_ct_CXX"; then
2739   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2740 echo "${ECHO_T}$ac_ct_CXX" >&6
2741 else
2742   echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744 fi
2745
2746   test -n "$ac_ct_CXX" && break
2747 done
2748 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2749
2750   CXX=$ac_ct_CXX
2751 fi
2752
2753
2754 # Provide some information about the compiler.
2755 echo "$as_me:$LINENO:" \
2756      "checking for C++ compiler version" >&5
2757 ac_compiler=`set X $ac_compile; echo $2`
2758 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2759   (eval $ac_compiler --version </dev/null >&5) 2>&5
2760   ac_status=$?
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); }
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2764   (eval $ac_compiler -v </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
2774 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2775 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2776 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2777   echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779   cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785
2786 int
2787 main ()
2788 {
2789 #ifndef __GNUC__
2790        choke me
2791 #endif
2792
2793   ;
2794   return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799   (eval $ac_compile) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          { ac_try='test -z "$ac_cxx_werror_flag"
2807                          || test ! -s conftest.err'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   ac_compiler_gnu=yes
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 ac_compiler_gnu=no
2825 fi
2826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2827 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2828
2829 fi
2830 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2831 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2832 GXX=`test $ac_compiler_gnu = yes && echo yes`
2833 ac_test_CXXFLAGS=${CXXFLAGS+set}
2834 ac_save_CXXFLAGS=$CXXFLAGS
2835 CXXFLAGS="-g"
2836 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2837 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2838 if test "${ac_cv_prog_cxx_g+set}" = set; then
2839   echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841   cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h.  */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h.  */
2847
2848 int
2849 main ()
2850 {
2851
2852   ;
2853   return 0;
2854 }
2855 _ACEOF
2856 rm -f conftest.$ac_objext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2858   (eval $ac_compile) 2>conftest.er1
2859   ac_status=$?
2860   grep -v '^ *+' conftest.er1 >conftest.err
2861   rm -f conftest.er1
2862   cat conftest.err >&5
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); } &&
2865          { ac_try='test -z "$ac_cxx_werror_flag"
2866                          || test ! -s conftest.err'
2867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); }; } &&
2872          { ac_try='test -s conftest.$ac_objext'
2873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874   (eval $ac_try) 2>&5
2875   ac_status=$?
2876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877   (exit $ac_status); }; }; then
2878   ac_cv_prog_cxx_g=yes
2879 else
2880   echo "$as_me: failed program was:" >&5
2881 sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 ac_cv_prog_cxx_g=no
2884 fi
2885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886 fi
2887 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2888 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2889 if test "$ac_test_CXXFLAGS" = set; then
2890   CXXFLAGS=$ac_save_CXXFLAGS
2891 elif test $ac_cv_prog_cxx_g = yes; then
2892   if test "$GXX" = yes; then
2893     CXXFLAGS="-g -O2"
2894   else
2895     CXXFLAGS="-g"
2896   fi
2897 else
2898   if test "$GXX" = yes; then
2899     CXXFLAGS="-O2"
2900   else
2901     CXXFLAGS=
2902   fi
2903 fi
2904 for ac_declaration in \
2905    '' \
2906    'extern "C" void std::exit (int) throw (); using std::exit;' \
2907    'extern "C" void std::exit (int); using std::exit;' \
2908    'extern "C" void exit (int) throw ();' \
2909    'extern "C" void exit (int);' \
2910    'void exit (int);'
2911 do
2912   cat >conftest.$ac_ext <<_ACEOF
2913 /* confdefs.h.  */
2914 _ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h.  */
2918 $ac_declaration
2919 #include <stdlib.h>
2920 int
2921 main ()
2922 {
2923 exit (42);
2924   ;
2925   return 0;
2926 }
2927 _ACEOF
2928 rm -f conftest.$ac_objext
2929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2930   (eval $ac_compile) 2>conftest.er1
2931   ac_status=$?
2932   grep -v '^ *+' conftest.er1 >conftest.err
2933   rm -f conftest.er1
2934   cat conftest.err >&5
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); } &&
2937          { ac_try='test -z "$ac_cxx_werror_flag"
2938                          || test ! -s conftest.err'
2939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940   (eval $ac_try) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }; } &&
2944          { ac_try='test -s conftest.$ac_objext'
2945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946   (eval $ac_try) 2>&5
2947   ac_status=$?
2948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949   (exit $ac_status); }; }; then
2950   :
2951 else
2952   echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 continue
2956 fi
2957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2958   cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964 $ac_declaration
2965 int
2966 main ()
2967 {
2968 exit (42);
2969   ;
2970   return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975   (eval $ac_compile) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } &&
2982          { ac_try='test -z "$ac_cxx_werror_flag"
2983                          || test ! -s conftest.err'
2984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985   (eval $ac_try) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }; } &&
2989          { ac_try='test -s conftest.$ac_objext'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; }; then
2995   break
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 fi
3001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3002 done
3003 rm -f conftest*
3004 if test -n "$ac_declaration"; then
3005   echo '#ifdef __cplusplus' >>confdefs.h
3006   echo $ac_declaration      >>confdefs.h
3007   echo '#endif'             >>confdefs.h
3008 fi
3009
3010 ac_ext=c
3011 ac_cpp='$CPP $CPPFLAGS'
3012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3015
3016 CXXFLAGS="$save_CXXFLAGS"
3017
3018
3019
3020
3021
3022 am__api_version="1.9"
3023 # Find a good install program.  We prefer a C program (faster),
3024 # so one script is as good as another.  But avoid the broken or
3025 # incompatible versions:
3026 # SysV /etc/install, /usr/sbin/install
3027 # SunOS /usr/etc/install
3028 # IRIX /sbin/install
3029 # AIX /bin/install
3030 # AmigaOS /C/install, which installs bootblocks on floppy discs
3031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3034 # OS/2's system install, which has a completely different semantic
3035 # ./install, which can be erroneously created by make from ./install.sh.
3036 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3038 if test -z "$INSTALL"; then
3039 if test "${ac_cv_path_install+set}" = set; then
3040   echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   # Account for people who put trailing slashes in PATH elements.
3048 case $as_dir/ in
3049   ./ | .// | /cC/* | \
3050   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3051   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3052   /usr/ucb/* ) ;;
3053   *)
3054     # OSF1 and SCO ODT 3.0 have their own names for install.
3055     # Don't use installbsd from OSF since it installs stuff as root
3056     # by default.
3057     for ac_prog in ginstall scoinst install; do
3058       for ac_exec_ext in '' $ac_executable_extensions; do
3059         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3060           if test $ac_prog = install &&
3061             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3062             # AIX install.  It has an incompatible calling convention.
3063             :
3064           elif test $ac_prog = install &&
3065             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3066             # program-specific install script used by HP pwplus--don't use.
3067             :
3068           else
3069             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3070             break 3
3071           fi
3072         fi
3073       done
3074     done
3075     ;;
3076 esac
3077 done
3078
3079
3080 fi
3081   if test "${ac_cv_path_install+set}" = set; then
3082     INSTALL=$ac_cv_path_install
3083   else
3084     # As a last resort, use the slow shell script.  We don't cache a
3085     # path for INSTALL within a source directory, because that will
3086     # break other packages using the cache if that directory is
3087     # removed, or if the path is relative.
3088     INSTALL=$ac_install_sh
3089   fi
3090 fi
3091 echo "$as_me:$LINENO: result: $INSTALL" >&5
3092 echo "${ECHO_T}$INSTALL" >&6
3093
3094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3095 # It thinks the first close brace ends the variable substitution.
3096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3097
3098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3099
3100 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3101
3102 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3103 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3104 # Just in case
3105 sleep 1
3106 echo timestamp > conftest.file
3107 # Do `set' in a subshell so we don't clobber the current shell's
3108 # arguments.  Must try -L first in case configure is actually a
3109 # symlink; some systems play weird games with the mod time of symlinks
3110 # (eg FreeBSD returns the mod time of the symlink's containing
3111 # directory).
3112 if (
3113    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3114    if test "$*" = "X"; then
3115       # -L didn't work.
3116       set X `ls -t $srcdir/configure conftest.file`
3117    fi
3118    rm -f conftest.file
3119    if test "$*" != "X $srcdir/configure conftest.file" \
3120       && test "$*" != "X conftest.file $srcdir/configure"; then
3121
3122       # If neither matched, then we have a broken ls.  This can happen
3123       # if, for instance, CONFIG_SHELL is bash and it inherits a
3124       # broken ls alias from the environment.  This has actually
3125       # happened.  Such a system could not be considered "sane".
3126       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3127 alias in your environment" >&5
3128 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3129 alias in your environment" >&2;}
3130    { (exit 1); exit 1; }; }
3131    fi
3132
3133    test "$2" = conftest.file
3134    )
3135 then
3136    # Ok.
3137    :
3138 else
3139    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3140 Check your system clock" >&5
3141 echo "$as_me: error: newly created file is older than distributed files!
3142 Check your system clock" >&2;}
3143    { (exit 1); exit 1; }; }
3144 fi
3145 echo "$as_me:$LINENO: result: yes" >&5
3146 echo "${ECHO_T}yes" >&6
3147 test "$program_prefix" != NONE &&
3148   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3149 # Use a double $ so make ignores it.
3150 test "$program_suffix" != NONE &&
3151   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3152 # Double any \ or $.  echo might interpret backslashes.
3153 # By default was `s,x,x', remove it if useless.
3154 cat <<\_ACEOF >conftest.sed
3155 s/[\\$]/&&/g;s/;s,x,x,$//
3156 _ACEOF
3157 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3158 rm conftest.sed
3159
3160 # expand $ac_aux_dir to an absolute path
3161 am_aux_dir=`cd $ac_aux_dir && pwd`
3162
3163 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3164 # Use eval to expand $SHELL
3165 if eval "$MISSING --run true"; then
3166   am_missing_run="$MISSING --run "
3167 else
3168   am_missing_run=
3169   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3170 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3171 fi
3172
3173 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3174   # We used to keeping the `.' as first argument, in order to
3175   # allow $(mkdir_p) to be used without argument.  As in
3176   #   $(mkdir_p) $(somedir)
3177   # where $(somedir) is conditionally defined.  However this is wrong
3178   # for two reasons:
3179   #  1. if the package is installed by a user who cannot write `.'
3180   #     make install will fail,
3181   #  2. the above comment should most certainly read
3182   #     $(mkdir_p) $(DESTDIR)$(somedir)
3183   #     so it does not work when $(somedir) is undefined and
3184   #     $(DESTDIR) is not.
3185   #  To support the latter case, we have to write
3186   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3187   #  so the `.' trick is pointless.
3188   mkdir_p='mkdir -p --'
3189 else
3190   # On NextStep and OpenStep, the `mkdir' command does not
3191   # recognize any option.  It will interpret all options as
3192   # directories to create, and then abort because `.' already
3193   # exists.
3194   for d in ./-p ./--version;
3195   do
3196     test -d $d && rmdir $d
3197   done
3198   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3199   if test -f "$ac_aux_dir/mkinstalldirs"; then
3200     mkdir_p='$(mkinstalldirs)'
3201   else
3202     mkdir_p='$(install_sh) -d'
3203   fi
3204 fi
3205
3206 for ac_prog in gawk mawk nawk awk
3207 do
3208   # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3212 if test "${ac_cv_prog_AWK+set}" = set; then
3213   echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215   if test -n "$AWK"; then
3216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223   for ac_exec_ext in '' $ac_executable_extensions; do
3224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225     ac_cv_prog_AWK="$ac_prog"
3226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230 done
3231
3232 fi
3233 fi
3234 AWK=$ac_cv_prog_AWK
3235 if test -n "$AWK"; then
3236   echo "$as_me:$LINENO: result: $AWK" >&5
3237 echo "${ECHO_T}$AWK" >&6
3238 else
3239   echo "$as_me:$LINENO: result: no" >&5
3240 echo "${ECHO_T}no" >&6
3241 fi
3242
3243   test -n "$AWK" && break
3244 done
3245
3246 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3247 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3248 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3249 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   cat >conftest.make <<\_ACEOF
3253 all:
3254         @echo 'ac_maketemp="$(MAKE)"'
3255 _ACEOF
3256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3257 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3258 if test -n "$ac_maketemp"; then
3259   eval ac_cv_prog_make_${ac_make}_set=yes
3260 else
3261   eval ac_cv_prog_make_${ac_make}_set=no
3262 fi
3263 rm -f conftest.make
3264 fi
3265 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3266   echo "$as_me:$LINENO: result: yes" >&5
3267 echo "${ECHO_T}yes" >&6
3268   SET_MAKE=
3269 else
3270   echo "$as_me:$LINENO: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3272   SET_MAKE="MAKE=${MAKE-make}"
3273 fi
3274
3275 rm -rf .tst 2>/dev/null
3276 mkdir .tst 2>/dev/null
3277 if test -d .tst; then
3278   am__leading_dot=.
3279 else
3280   am__leading_dot=_
3281 fi
3282 rmdir .tst 2>/dev/null
3283
3284 DEPDIR="${am__leading_dot}deps"
3285
3286           ac_config_commands="$ac_config_commands depfiles"
3287
3288
3289 am_make=${MAKE-make}
3290 cat > confinc << 'END'
3291 am__doit:
3292         @echo done
3293 .PHONY: am__doit
3294 END
3295 # If we don't find an include directive, just comment out the code.
3296 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3297 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3298 am__include="#"
3299 am__quote=
3300 _am_result=none
3301 # First try GNU make style include.
3302 echo "include confinc" > confmf
3303 # We grep out `Entering directory' and `Leaving directory'
3304 # messages which can occur if `w' ends up in MAKEFLAGS.
3305 # In particular we don't look at `^make:' because GNU make might
3306 # be invoked under some other name (usually "gmake"), in which
3307 # case it prints its new name instead of `make'.
3308 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3309    am__include=include
3310    am__quote=
3311    _am_result=GNU
3312 fi
3313 # Now try BSD make style include.
3314 if test "$am__include" = "#"; then
3315    echo '.include "confinc"' > confmf
3316    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3317       am__include=.include
3318       am__quote="\""
3319       _am_result=BSD
3320    fi
3321 fi
3322
3323
3324 echo "$as_me:$LINENO: result: $_am_result" >&5
3325 echo "${ECHO_T}$_am_result" >&6
3326 rm -f confinc confmf
3327
3328 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3329 if test "${enable_dependency_tracking+set}" = set; then
3330   enableval="$enable_dependency_tracking"
3331
3332 fi;
3333 if test "x$enable_dependency_tracking" != xno; then
3334   am_depcomp="$ac_aux_dir/depcomp"
3335   AMDEPBACKSLASH='\'
3336 fi
3337
3338
3339 if test "x$enable_dependency_tracking" != xno; then
3340   AMDEP_TRUE=
3341   AMDEP_FALSE='#'
3342 else
3343   AMDEP_TRUE='#'
3344   AMDEP_FALSE=
3345 fi
3346
3347
3348
3349 # test to see if srcdir already configured
3350 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3351    test -f $srcdir/config.status; then
3352   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3353 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3354    { (exit 1); exit 1; }; }
3355 fi
3356
3357 # test whether we have cygpath
3358 if test -z "$CYGPATH_W"; then
3359   if (cygpath --version) >/dev/null 2>/dev/null; then
3360     CYGPATH_W='cygpath -w'
3361   else
3362     CYGPATH_W=echo
3363   fi
3364 fi
3365
3366
3367 # Define the identity of the package.
3368  PACKAGE='libjava'
3369  VERSION='version-unused'
3370
3371
3372 cat >>confdefs.h <<_ACEOF
3373 #define PACKAGE "$PACKAGE"
3374 _ACEOF
3375
3376
3377 cat >>confdefs.h <<_ACEOF
3378 #define VERSION "$VERSION"
3379 _ACEOF
3380
3381 # Some tools Automake needs.
3382
3383 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384
3385
3386 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387
3388
3389 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390
3391
3392 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393
3394
3395 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3396
3397 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3398
3399 # Installed binaries are usually stripped using `strip' when the user
3400 # run `make install-strip'.  However `strip' might not be the right
3401 # tool to use in cross-compilation environments, therefore Automake
3402 # will honor the `STRIP' environment variable to overrule this program.
3403 if test "$cross_compiling" != no; then
3404   if test -n "$ac_tool_prefix"; then
3405   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3406 set dummy ${ac_tool_prefix}strip; ac_word=$2
3407 echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3409 if test "${ac_cv_prog_STRIP+set}" = set; then
3410   echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412   if test -n "$STRIP"; then
3413   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418   IFS=$as_save_IFS
3419   test -z "$as_dir" && as_dir=.
3420   for ac_exec_ext in '' $ac_executable_extensions; do
3421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424     break 2
3425   fi
3426 done
3427 done
3428
3429 fi
3430 fi
3431 STRIP=$ac_cv_prog_STRIP
3432 if test -n "$STRIP"; then
3433   echo "$as_me:$LINENO: result: $STRIP" >&5
3434 echo "${ECHO_T}$STRIP" >&6
3435 else
3436   echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6
3438 fi
3439
3440 fi
3441 if test -z "$ac_cv_prog_STRIP"; then
3442   ac_ct_STRIP=$STRIP
3443   # Extract the first word of "strip", so it can be a program name with args.
3444 set dummy strip; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   if test -n "$ac_ct_STRIP"; then
3451   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458   for ac_exec_ext in '' $ac_executable_extensions; do
3459   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460     ac_cv_prog_ac_ct_STRIP="strip"
3461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462     break 2
3463   fi
3464 done
3465 done
3466
3467   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3468 fi
3469 fi
3470 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3471 if test -n "$ac_ct_STRIP"; then
3472   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3473 echo "${ECHO_T}$ac_ct_STRIP" >&6
3474 else
3475   echo "$as_me:$LINENO: result: no" >&5
3476 echo "${ECHO_T}no" >&6
3477 fi
3478
3479   STRIP=$ac_ct_STRIP
3480 else
3481   STRIP="$ac_cv_prog_STRIP"
3482 fi
3483
3484 fi
3485 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3486
3487 # We need awk for the "check" target.  The system "awk" is bad on
3488 # some platforms.
3489 # Always define AMTAR for backward compatibility.
3490
3491 AMTAR=${AMTAR-"${am_missing_run}tar"}
3492
3493 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3494
3495
3496
3497
3498 depcc="$CC"   am_compiler_list=
3499
3500 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3501 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3502 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3506   # We make a subdir and do the tests there.  Otherwise we can end up
3507   # making bogus files that we don't know about and never remove.  For
3508   # instance it was reported that on HP-UX the gcc test will end up
3509   # making a dummy file named `D' -- because `-MD' means `put the output
3510   # in D'.
3511   mkdir conftest.dir
3512   # Copy depcomp to subdir because otherwise we won't find it if we're
3513   # using a relative directory.
3514   cp "$am_depcomp" conftest.dir
3515   cd conftest.dir
3516   # We will build objects and dependencies in a subdirectory because
3517   # it helps to detect inapplicable dependency modes.  For instance
3518   # both Tru64's cc and ICC support -MD to output dependencies as a
3519   # side effect of compilation, but ICC will put the dependencies in
3520   # the current directory while Tru64 will put them in the object
3521   # directory.
3522   mkdir sub
3523
3524   am_cv_CC_dependencies_compiler_type=none
3525   if test "$am_compiler_list" = ""; then
3526      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3527   fi
3528   for depmode in $am_compiler_list; do
3529     # Setup a source with many dependencies, because some compilers
3530     # like to wrap large dependency lists on column 80 (with \), and
3531     # we should not choose a depcomp mode which is confused by this.
3532     #
3533     # We need to recreate these files for each test, as the compiler may
3534     # overwrite some of them when testing with obscure command lines.
3535     # This happens at least with the AIX C compiler.
3536     : > sub/conftest.c
3537     for i in 1 2 3 4 5 6; do
3538       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3539       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3540       # Solaris 8's {/usr,}/bin/sh.
3541       touch sub/conftst$i.h
3542     done
3543     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3544
3545     case $depmode in
3546     nosideeffect)
3547       # after this tag, mechanisms are not by side-effect, so they'll
3548       # only be used when explicitly requested
3549       if test "x$enable_dependency_tracking" = xyes; then
3550         continue
3551       else
3552         break
3553       fi
3554       ;;
3555     none) break ;;
3556     esac
3557     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3558     # mode.  It turns out that the SunPro C++ compiler does not properly
3559     # handle `-M -o', and we need to detect this.
3560     if depmode=$depmode \
3561        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3562        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3563        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3564          >/dev/null 2>conftest.err &&
3565        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3566        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3567        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3568       # icc doesn't choke on unknown options, it will just issue warnings
3569       # or remarks (even with -Werror).  So we grep stderr for any message
3570       # that says an option was ignored or not supported.
3571       # When given -MP, icc 7.0 and 7.1 complain thusly:
3572       #   icc: Command line warning: ignoring option '-M'; no argument required
3573       # The diagnosis changed in icc 8.0:
3574       #   icc: Command line remark: option '-MP' not supported
3575       if (grep 'ignoring option' conftest.err ||
3576           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3577         am_cv_CC_dependencies_compiler_type=$depmode
3578         break
3579       fi
3580     fi
3581   done
3582
3583   cd ..
3584   rm -rf conftest.dir
3585 else
3586   am_cv_CC_dependencies_compiler_type=none
3587 fi
3588
3589 fi
3590 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3591 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3593
3594
3595
3596 if
3597   test "x$enable_dependency_tracking" != xno \
3598   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3599   am__fastdepCC_TRUE=
3600   am__fastdepCC_FALSE='#'
3601 else
3602   am__fastdepCC_TRUE='#'
3603   am__fastdepCC_FALSE=
3604 fi
3605
3606
3607 depcc="$CXX"  am_compiler_list=
3608
3609 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3610 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3611 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3612   echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3615   # We make a subdir and do the tests there.  Otherwise we can end up
3616   # making bogus files that we don't know about and never remove.  For
3617   # instance it was reported that on HP-UX the gcc test will end up
3618   # making a dummy file named `D' -- because `-MD' means `put the output
3619   # in D'.
3620   mkdir conftest.dir
3621   # Copy depcomp to subdir because otherwise we won't find it if we're
3622   # using a relative directory.
3623   cp "$am_depcomp" conftest.dir
3624   cd conftest.dir
3625   # We will build objects and dependencies in a subdirectory because
3626   # it helps to detect inapplicable dependency modes.  For instance
3627   # both Tru64's cc and ICC support -MD to output dependencies as a
3628   # side effect of compilation, but ICC will put the dependencies in
3629   # the current directory while Tru64 will put them in the object
3630   # directory.
3631   mkdir sub
3632
3633   am_cv_CXX_dependencies_compiler_type=none
3634   if test "$am_compiler_list" = ""; then
3635      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3636   fi
3637   for depmode in $am_compiler_list; do
3638     # Setup a source with many dependencies, because some compilers
3639     # like to wrap large dependency lists on column 80 (with \), and
3640     # we should not choose a depcomp mode which is confused by this.
3641     #
3642     # We need to recreate these files for each test, as the compiler may
3643     # overwrite some of them when testing with obscure command lines.
3644     # This happens at least with the AIX C compiler.
3645     : > sub/conftest.c
3646     for i in 1 2 3 4 5 6; do
3647       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3648       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3649       # Solaris 8's {/usr,}/bin/sh.
3650       touch sub/conftst$i.h
3651     done
3652     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3653
3654     case $depmode in
3655     nosideeffect)
3656       # after this tag, mechanisms are not by side-effect, so they'll
3657       # only be used when explicitly requested
3658       if test "x$enable_dependency_tracking" = xyes; then
3659         continue
3660       else
3661         break
3662       fi
3663       ;;
3664     none) break ;;
3665     esac
3666     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3667     # mode.  It turns out that the SunPro C++ compiler does not properly
3668     # handle `-M -o', and we need to detect this.
3669     if depmode=$depmode \
3670        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3671        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3672        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3673          >/dev/null 2>conftest.err &&
3674        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3675        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3676        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3677       # icc doesn't choke on unknown options, it will just issue warnings
3678       # or remarks (even with -Werror).  So we grep stderr for any message
3679       # that says an option was ignored or not supported.
3680       # When given -MP, icc 7.0 and 7.1 complain thusly:
3681       #   icc: Command line warning: ignoring option '-M'; no argument required
3682       # The diagnosis changed in icc 8.0:
3683       #   icc: Command line remark: option '-MP' not supported
3684       if (grep 'ignoring option' conftest.err ||
3685           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3686         am_cv_CXX_dependencies_compiler_type=$depmode
3687         break
3688       fi
3689     fi
3690   done
3691
3692   cd ..
3693   rm -rf conftest.dir
3694 else
3695   am_cv_CXX_dependencies_compiler_type=none
3696 fi
3697
3698 fi
3699 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3700 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3701 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3702
3703
3704
3705 if
3706   test "x$enable_dependency_tracking" != xno \
3707   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3708   am__fastdepCXX_TRUE=
3709   am__fastdepCXX_FALSE='#'
3710 else
3711   am__fastdepCXX_TRUE='#'
3712   am__fastdepCXX_FALSE=
3713 fi
3714
3715
3716
3717
3718 if test -n "$ac_tool_prefix"; then
3719   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}as; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_AS+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   if test -n "$AS"; then
3727   ac_cv_prog_AS="$AS" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3731 do
3732   IFS=$as_save_IFS
3733   test -z "$as_dir" && as_dir=.
3734   for ac_exec_ext in '' $ac_executable_extensions; do
3735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736     ac_cv_prog_AS="${ac_tool_prefix}as"
3737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738     break 2
3739   fi
3740 done
3741 done
3742
3743 fi
3744 fi
3745 AS=$ac_cv_prog_AS
3746 if test -n "$AS"; then
3747   echo "$as_me:$LINENO: result: $AS" >&5
3748 echo "${ECHO_T}$AS" >&6
3749 else
3750   echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3752 fi
3753
3754 fi
3755 if test -z "$ac_cv_prog_AS"; then
3756   ac_ct_AS=$AS
3757   # Extract the first word of "as", so it can be a program name with args.
3758 set dummy as; ac_word=$2
3759 echo "$as_me:$LINENO: checking for $ac_word" >&5
3760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3761 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   if test -n "$ac_ct_AS"; then
3765   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3769 do
3770   IFS=$as_save_IFS
3771   test -z "$as_dir" && as_dir=.
3772   for ac_exec_ext in '' $ac_executable_extensions; do
3773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774     ac_cv_prog_ac_ct_AS="as"
3775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776     break 2
3777   fi
3778 done
3779 done
3780
3781 fi
3782 fi
3783 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3784 if test -n "$ac_ct_AS"; then
3785   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3786 echo "${ECHO_T}$ac_ct_AS" >&6
3787 else
3788   echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790 fi
3791
3792   AS=$ac_ct_AS
3793 else
3794   AS="$ac_cv_prog_AS"
3795 fi
3796
3797 if test -n "$ac_tool_prefix"; then
3798   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3799 set dummy ${ac_tool_prefix}ld; ac_word=$2
3800 echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3802 if test "${ac_cv_prog_LD+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   if test -n "$LD"; then
3806   ac_cv_prog_LD="$LD" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811   IFS=$as_save_IFS
3812   test -z "$as_dir" && as_dir=.
3813   for ac_exec_ext in '' $ac_executable_extensions; do
3814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3815     ac_cv_prog_LD="${ac_tool_prefix}ld"
3816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817     break 2
3818   fi
3819 done
3820 done
3821
3822 fi
3823 fi
3824 LD=$ac_cv_prog_LD
3825 if test -n "$LD"; then
3826   echo "$as_me:$LINENO: result: $LD" >&5
3827 echo "${ECHO_T}$LD" >&6
3828 else
3829   echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3831 fi
3832
3833 fi
3834 if test -z "$ac_cv_prog_LD"; then
3835   ac_ct_LD=$LD
3836   # Extract the first word of "ld", so it can be a program name with args.
3837 set dummy ld; ac_word=$2
3838 echo "$as_me:$LINENO: checking for $ac_word" >&5
3839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if test -n "$ac_ct_LD"; then
3844   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849   IFS=$as_save_IFS
3850   test -z "$as_dir" && as_dir=.
3851   for ac_exec_ext in '' $ac_executable_extensions; do
3852   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853     ac_cv_prog_ac_ct_LD="ld"
3854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855     break 2
3856   fi
3857 done
3858 done
3859
3860 fi
3861 fi
3862 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3863 if test -n "$ac_ct_LD"; then
3864   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3865 echo "${ECHO_T}$ac_ct_LD" >&6
3866 else
3867   echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870
3871   LD=$ac_ct_LD
3872 else
3873   LD="$ac_cv_prog_LD"
3874 fi
3875
3876 if test -n "$ac_tool_prefix"; then
3877   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3878 set dummy ${ac_tool_prefix}ar; ac_word=$2
3879 echo "$as_me:$LINENO: checking for $ac_word" >&5
3880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3881 if test "${ac_cv_prog_AR+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   if test -n "$AR"; then
3885   ac_cv_prog_AR="$AR" # Let the user override the test.
3886 else
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892   for ac_exec_ext in '' $ac_executable_extensions; do
3893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894     ac_cv_prog_AR="${ac_tool_prefix}ar"
3895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3896     break 2
3897   fi
3898 done
3899 done
3900
3901 fi
3902 fi
3903 AR=$ac_cv_prog_AR
3904 if test -n "$AR"; then
3905   echo "$as_me:$LINENO: result: $AR" >&5
3906 echo "${ECHO_T}$AR" >&6
3907 else
3908   echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6
3910 fi
3911
3912 fi
3913 if test -z "$ac_cv_prog_AR"; then
3914   ac_ct_AR=$AR
3915   # Extract the first word of "ar", so it can be a program name with args.
3916 set dummy ar; ac_word=$2
3917 echo "$as_me:$LINENO: checking for $ac_word" >&5
3918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3919 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3920   echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922   if test -n "$ac_ct_AR"; then
3923   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930   for ac_exec_ext in '' $ac_executable_extensions; do
3931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932     ac_cv_prog_ac_ct_AR="ar"
3933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937 done
3938
3939 fi
3940 fi
3941 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3942 if test -n "$ac_ct_AR"; then
3943   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3944 echo "${ECHO_T}$ac_ct_AR" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950   AR=$ac_ct_AR
3951 else
3952   AR="$ac_cv_prog_AR"
3953 fi
3954
3955 if test -n "$ac_tool_prefix"; then
3956   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3957 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_RANLIB+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if test -n "$RANLIB"; then
3964   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971   for ac_exec_ext in '' $ac_executable_extensions; do
3972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978 done
3979
3980 fi
3981 fi
3982 RANLIB=$ac_cv_prog_RANLIB
3983 if test -n "$RANLIB"; then
3984   echo "$as_me:$LINENO: result: $RANLIB" >&5
3985 echo "${ECHO_T}$RANLIB" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990
3991 fi
3992 if test -z "$ac_cv_prog_RANLIB"; then
3993   ac_ct_RANLIB=$RANLIB
3994   # Extract the first word of "ranlib", so it can be a program name with args.
3995 set dummy ranlib; ac_word=$2
3996 echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3998 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   if test -n "$ac_ct_RANLIB"; then
4002   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4003 else
4004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005 for as_dir in $PATH
4006 do
4007   IFS=$as_save_IFS
4008   test -z "$as_dir" && as_dir=.
4009   for ac_exec_ext in '' $ac_executable_extensions; do
4010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4011     ac_cv_prog_ac_ct_RANLIB="ranlib"
4012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013     break 2
4014   fi
4015 done
4016 done
4017
4018   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4019 fi
4020 fi
4021 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4022 if test -n "$ac_ct_RANLIB"; then
4023   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4024 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4025 else
4026   echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4028 fi
4029
4030   RANLIB=$ac_ct_RANLIB
4031 else
4032   RANLIB="$ac_cv_prog_RANLIB"
4033 fi
4034
4035 for ac_prog in gawk mawk nawk awk
4036 do
4037   # Extract the first word of "$ac_prog", so it can be a program name with args.
4038 set dummy $ac_prog; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_AWK+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if test -n "$AWK"; then
4045   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_exec_ext in '' $ac_executable_extensions; do
4053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054     ac_cv_prog_AWK="$ac_prog"
4055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059 done
4060
4061 fi
4062 fi
4063 AWK=$ac_cv_prog_AWK
4064 if test -n "$AWK"; then
4065   echo "$as_me:$LINENO: result: $AWK" >&5
4066 echo "${ECHO_T}$AWK" >&6
4067 else
4068   echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4070 fi
4071
4072   test -n "$AWK" && break
4073 done
4074
4075 for ac_prog in jar fastjar gjar
4076 do
4077   # Extract the first word of "$ac_prog", so it can be a program name with args.
4078 set dummy $ac_prog; ac_word=$2
4079 echo "$as_me:$LINENO: checking for $ac_word" >&5
4080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4081 if test "${ac_cv_prog_JAR+set}" = set; then
4082   echo $ECHO_N "(cached) $ECHO_C" >&6
4083 else
4084   if test -n "$JAR"; then
4085   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090   IFS=$as_save_IFS
4091   test -z "$as_dir" && as_dir=.
4092   for ac_exec_ext in '' $ac_executable_extensions; do
4093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094     ac_cv_prog_JAR="$ac_prog"
4095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4096     break 2
4097   fi
4098 done
4099 done
4100
4101 fi
4102 fi
4103 JAR=$ac_cv_prog_JAR
4104 if test -n "$JAR"; then
4105   echo "$as_me:$LINENO: result: $JAR" >&5
4106 echo "${ECHO_T}$JAR" >&6
4107 else
4108   echo "$as_me:$LINENO: result: no" >&5
4109 echo "${ECHO_T}no" >&6
4110 fi
4111
4112   test -n "$JAR" && break
4113 done
4114 test -n "$JAR" || JAR="no"
4115
4116 # Extract the first word of "zip", so it can be a program name with args.
4117 set dummy zip; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_path_ZIP+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   case $ZIP in
4124   [\\/]* | ?:[\\/]*)
4125   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4126   ;;
4127   *)
4128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131   IFS=$as_save_IFS
4132   test -z "$as_dir" && as_dir=.
4133   for ac_exec_ext in '' $ac_executable_extensions; do
4134   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4136     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137     break 2
4138   fi
4139 done
4140 done
4141
4142   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4143   ;;
4144 esac
4145 fi
4146 ZIP=$ac_cv_path_ZIP
4147
4148 if test -n "$ZIP"; then
4149   echo "$as_me:$LINENO: result: $ZIP" >&5
4150 echo "${ECHO_T}$ZIP" >&6
4151 else
4152   echo "$as_me:$LINENO: result: no" >&5
4153 echo "${ECHO_T}no" >&6
4154 fi
4155
4156 # Extract the first word of "unzip", so it can be a program name with args.
4157 set dummy unzip; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_path_UNZIP+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   case $UNZIP in
4164   [\\/]* | ?:[\\/]*)
4165   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4166   ;;
4167   *)
4168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171   IFS=$as_save_IFS
4172   test -z "$as_dir" && as_dir=.
4173   for ac_exec_ext in '' $ac_executable_extensions; do
4174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177     break 2
4178   fi
4179 done
4180 done
4181
4182   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4183   ;;
4184 esac
4185 fi
4186 UNZIP=$ac_cv_path_UNZIP
4187
4188 if test -n "$UNZIP"; then
4189   echo "$as_me:$LINENO: result: $UNZIP" >&5
4190 echo "${ECHO_T}$UNZIP" >&6
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196
4197
4198 if test "$JAR" = no; then
4199   BASH_JAR_TRUE=
4200   BASH_JAR_FALSE='#'
4201 else
4202   BASH_JAR_TRUE='#'
4203   BASH_JAR_FALSE=
4204 fi
4205
4206 if test "$ZIP" = no; then
4207   if test "$JAR" = no; then
4208     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4209 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4210    { (exit 1); exit 1; }; }
4211   fi
4212 else
4213   # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4214   JAR=`pwd`/scripts/jar
4215 fi
4216
4217 # Find a good install program.  We prefer a C program (faster),
4218 # so one script is as good as another.  But avoid the broken or
4219 # incompatible versions:
4220 # SysV /etc/install, /usr/sbin/install
4221 # SunOS /usr/etc/install
4222 # IRIX /sbin/install
4223 # AIX /bin/install
4224 # AmigaOS /C/install, which installs bootblocks on floppy discs
4225 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4228 # OS/2's system install, which has a completely different semantic
4229 # ./install, which can be erroneously created by make from ./install.sh.
4230 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4231 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4232 if test -z "$INSTALL"; then
4233 if test "${ac_cv_path_install+set}" = set; then
4234   echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241   # Account for people who put trailing slashes in PATH elements.
4242 case $as_dir/ in
4243   ./ | .// | /cC/* | \
4244   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4245   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4246   /usr/ucb/* ) ;;
4247   *)
4248     # OSF1 and SCO ODT 3.0 have their own names for install.
4249     # Don't use installbsd from OSF since it installs stuff as root
4250     # by default.
4251     for ac_prog in ginstall scoinst install; do
4252       for ac_exec_ext in '' $ac_executable_extensions; do
4253         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4254           if test $ac_prog = install &&
4255             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4256             # AIX install.  It has an incompatible calling convention.
4257             :
4258           elif test $ac_prog = install &&
4259             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4260             # program-specific install script used by HP pwplus--don't use.
4261             :
4262           else
4263             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4264             break 3
4265           fi
4266         fi
4267       done
4268     done
4269     ;;
4270 esac
4271 done
4272
4273
4274 fi
4275   if test "${ac_cv_path_install+set}" = set; then
4276     INSTALL=$ac_cv_path_install
4277   else
4278     # As a last resort, use the slow shell script.  We don't cache a
4279     # path for INSTALL within a source directory, because that will
4280     # break other packages using the cache if that directory is
4281     # removed, or if the path is relative.
4282     INSTALL=$ac_install_sh
4283   fi
4284 fi
4285 echo "$as_me:$LINENO: result: $INSTALL" >&5
4286 echo "${ECHO_T}$INSTALL" >&6
4287
4288 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4289 # It thinks the first close brace ends the variable substitution.
4290 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4291
4292 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4293
4294 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4295
4296
4297 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4298 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4299     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4300 if test "${enable_maintainer_mode+set}" = set; then
4301   enableval="$enable_maintainer_mode"
4302   USE_MAINTAINER_MODE=$enableval
4303 else
4304   USE_MAINTAINER_MODE=no
4305 fi;
4306   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4307 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4308
4309
4310 if test $USE_MAINTAINER_MODE = yes; then
4311   MAINTAINER_MODE_TRUE=
4312   MAINTAINER_MODE_FALSE='#'
4313 else
4314   MAINTAINER_MODE_TRUE='#'
4315   MAINTAINER_MODE_FALSE=
4316 fi
4317
4318   MAINT=$MAINTAINER_MODE_TRUE
4319
4320
4321
4322
4323
4324 # configure.host sets the following important variables
4325 #       libgcj_cflags    - host specific C compiler flags
4326 #       libgcj_cxxflags  - host specific C++ compiler flags
4327 #       libgcj_javaflags - host specific Java compiler flags
4328
4329 libgcj_cflags=
4330 libgcj_cxxflags=
4331 libgcj_javaflags=
4332
4333 . ${srcdir}/configure.host
4334
4335 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4336 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4337 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4341 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4342   acl_cv_prog_gnu_ld=yes
4343 else
4344   acl_cv_prog_gnu_ld=no
4345 fi
4346 fi
4347 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4348 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4349 with_gnu_ld=$acl_cv_prog_gnu_ld
4350
4351 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4352 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4353 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4354   echo $ECHO_N "(cached) $ECHO_C" >&6
4355 else
4356
4357 acl_cv_prog_gnu_ld_symbolic=no
4358
4359 if test x"$with_gnu_ld" = x"yes"; then
4360   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4361     acl_cv_prog_gnu_ld_symbolic=yes
4362   fi
4363 fi
4364 fi
4365 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4366 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4367 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4368   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4369 else
4370   SYMBOLIC_LDFLAGS=''
4371 fi
4372
4373 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4374 if test -z "$libgcj_ld_symbolic"; then
4375   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4376 fi
4377
4378 LIBGCJ_CFLAGS="${libgcj_cflags}"
4379 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4380 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4381 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4382 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4383
4384
4385
4386
4387
4388
4389 # Only use libltdl for non-newlib builds.
4390 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4391    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4392 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4393 library_names_spec=
4394 libname_spec='lib$name'
4395 soname_spec=
4396 shrext=".so"
4397 postinstall_cmds=
4398 postuninstall_cmds=
4399 finish_cmds=
4400 finish_eval=
4401 shlibpath_var=
4402 shlibpath_overrides_runpath=unknown
4403 version_type=none
4404 dynamic_linker="$host_os ld.so"
4405 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4406 if test "$GCC" = yes; then
4407   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4408   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4409     # if the path contains ";" then we assume it to be the separator
4410     # otherwise default to the standard path separator (i.e. ":") - it is
4411     # assumed that no part of a normal pathname contains ";" but that should
4412     # okay in the real world where ";" in dirpaths is itself problematic.
4413     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4414   else
4415     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4416   fi
4417 else
4418   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4419 fi
4420 need_lib_prefix=unknown
4421 hardcode_into_libs=no
4422
4423 # when you set need_version to no, make sure it does not cause -set_version
4424 # flags to be left without arguments
4425 need_version=unknown
4426
4427 case $host_os in
4428 aix3*)
4429   version_type=linux
4430   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4431   shlibpath_var=LIBPATH
4432
4433   # AIX 3 has no versioning support, so we append a major version to the name.
4434   soname_spec='${libname}${release}${shared_ext}$major'
4435   ;;
4436
4437 aix4* | aix5*)
4438   version_type=linux
4439   need_lib_prefix=no
4440   need_version=no
4441   hardcode_into_libs=yes
4442   if test "$host_cpu" = ia64; then
4443     # AIX 5 supports IA64
4444     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4445     shlibpath_var=LD_LIBRARY_PATH
4446   else
4447     # With GCC up to 2.95.x, collect2 would create an import file
4448     # for dependence libraries.  The import file would start with
4449     # the line `#! .'.  This would cause the generated library to
4450     # depend on `.', always an invalid library.  This was fixed in
4451     # development snapshots of GCC prior to 3.0.
4452     case $host_os in
4453       aix4 | aix4.[01] | aix4.[01].*)
4454       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4455            echo ' yes '
4456            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4457         :
4458       else
4459         can_build_shared=no
4460       fi
4461       ;;
4462     esac
4463     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4464     # soname into executable. Probably we can add versioning support to
4465     # collect2, so additional links can be useful in future.
4466     if test "$aix_use_runtimelinking" = yes; then
4467       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4468       # instead of lib<name>.a to let people know that these are not
4469       # typical AIX shared libraries.
4470       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4471     else
4472       # We preserve .a as extension for shared libraries through AIX4.2
4473       # and later when we are not doing run time linking.
4474       library_names_spec='${libname}${release}.a $libname.a'
4475       soname_spec='${libname}${release}${shared_ext}$major'
4476     fi
4477     shlibpath_var=LIBPATH
4478   fi
4479   ;;
4480
4481 amigaos*)
4482   library_names_spec='$libname.ixlibrary $libname.a'
4483   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4484   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'
4485   ;;
4486
4487 beos*)
4488   library_names_spec='${libname}${shared_ext}'
4489   dynamic_linker="$host_os ld.so"
4490   shlibpath_var=LIBRARY_PATH
4491   ;;
4492
4493 bsdi4*)
4494   version_type=linux
4495   need_version=no
4496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4497   soname_spec='${libname}${release}${shared_ext}$major'
4498   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4499   shlibpath_var=LD_LIBRARY_PATH
4500   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4501   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4502   # the default ld.so.conf also contains /usr/contrib/lib and
4503   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4504   # libtool to hard-code these into programs
4505   ;;
4506
4507 cygwin* | mingw* | pw32*)
4508   version_type=windows
4509   shrext=".dll"
4510   need_version=no
4511   need_lib_prefix=no
4512
4513   case $GCC,$host_os in
4514   yes,cygwin* | yes,mingw* | yes,pw32*)
4515     library_names_spec='$libname.dll.a'
4516     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4517     postinstall_cmds='base_file=`basename \${file}`~
4518       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4519       dldir=$destdir/`dirname \$dlpath`~
4520       test -d \$dldir || mkdir -p \$dldir~
4521       $install_prog $dir/$dlname \$dldir/$dlname'
4522     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4523       dlpath=$dir/\$dldll~
4524        $rm \$dlpath'
4525     shlibpath_overrides_runpath=yes
4526
4527     case $host_os in
4528     cygwin*)
4529       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4530       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4531       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4532       ;;
4533     mingw*)
4534       # MinGW DLLs use traditional 'lib' prefix
4535       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4536       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4537       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4538         # It is most probably a Windows format PATH printed by
4539         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4540         # path with ; separators, and with drive letters. We can handle the
4541         # drive letters (cygwin fileutils understands them), so leave them,
4542         # especially as we might pass files found there to a mingw objdump,
4543         # which wouldn't understand a cygwinified path. Ahh.
4544         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4545       else
4546         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4547       fi
4548       ;;
4549     pw32*)
4550       # pw32 DLLs use 'pw' prefix rather than 'lib'
4551       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4552       ;;
4553     esac
4554     ;;
4555
4556   *)
4557     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4558     ;;
4559   esac
4560   dynamic_linker='Win32 ld.exe'
4561   # FIXME: first we should search . and the directory the executable is in
4562   shlibpath_var=PATH
4563   ;;
4564
4565 darwin* | rhapsody*)
4566   dynamic_linker="$host_os dyld"
4567   version_type=darwin
4568   need_lib_prefix=no
4569   need_version=no
4570   # FIXME: Relying on posixy $() will cause problems for
4571   #        cross-compilation, but unfortunately the echo tests do not
4572   #        yet detect zsh echo's removal of \ escapes.
4573   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4574   soname_spec='${libname}${release}${major}$shared_ext'
4575   shlibpath_overrides_runpath=yes
4576   shlibpath_var=DYLD_LIBRARY_PATH
4577   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4578   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4579   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4580   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"`
4581   fi
4582   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4583   ;;
4584
4585 dgux*)
4586   version_type=linux
4587   need_lib_prefix=no
4588   need_version=no
4589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4590   soname_spec='${libname}${release}${shared_ext}$major'
4591   shlibpath_var=LD_LIBRARY_PATH
4592   ;;
4593
4594 freebsd1*)
4595   dynamic_linker=no
4596   ;;
4597
4598 freebsd*)
4599   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4600   version_type=freebsd-$objformat
4601   case $version_type in
4602     freebsd-elf*)
4603       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4604       need_version=no
4605       need_lib_prefix=no
4606       ;;
4607     freebsd-*)
4608       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4609       need_version=yes
4610       ;;
4611   esac
4612   shlibpath_var=LD_LIBRARY_PATH
4613   case $host_os in
4614   freebsd2*)
4615     shlibpath_overrides_runpath=yes
4616     ;;
4617   freebsd3.01* | freebsdelf3.01*)
4618     shlibpath_overrides_runpath=yes
4619     hardcode_into_libs=yes
4620     ;;
4621   *) # from 3.2 on
4622     shlibpath_overrides_runpath=no
4623     hardcode_into_libs=yes
4624     ;;
4625   esac
4626   ;;
4627
4628 gnu*)
4629   version_type=linux
4630   need_lib_prefix=no
4631   need_version=no
4632   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4633   soname_spec='${libname}${release}${shared_ext}$major'
4634   shlibpath_var=LD_LIBRARY_PATH
4635   hardcode_into_libs=yes
4636   ;;
4637
4638 hpux9* | hpux10* | hpux11*)
4639   # Give a soname corresponding to the major version so that dld.sl refuses to
4640   # link against other versions.
4641   version_type=sunos
4642   need_lib_prefix=no
4643   need_version=no
4644   case "$host_cpu" in
4645   ia64*)
4646     shrext='.so'
4647     hardcode_into_libs=yes
4648     dynamic_linker="$host_os dld.so"
4649     shlibpath_var=LD_LIBRARY_PATH
4650     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4651     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4652     soname_spec='${libname}${release}${shared_ext}$major'
4653     if test "X$HPUX_IA64_MODE" = X32; then
4654       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4655     else
4656       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4657     fi
4658     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4659     ;;
4660    hppa*64*)
4661      shrext='.sl'
4662      hardcode_into_libs=yes
4663      dynamic_linker="$host_os dld.sl"
4664      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4665      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4666      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4667      soname_spec='${libname}${release}${shared_ext}$major'
4668      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4669      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4670      ;;
4671    *)
4672     shrext='.sl'
4673     dynamic_linker="$host_os dld.sl"
4674     shlibpath_var=SHLIB_PATH
4675     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4677     soname_spec='${libname}${release}${shared_ext}$major'
4678     ;;
4679   esac
4680   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4681   postinstall_cmds='chmod 555 $lib'
4682   ;;
4683
4684 irix5* | irix6* | nonstopux*)
4685   case $host_os in
4686     nonstopux*) version_type=nonstopux ;;
4687     *)
4688         if test "$lt_cv_prog_gnu_ld" = yes; then
4689                 version_type=linux
4690         else
4691                 version_type=irix
4692         fi ;;
4693   esac
4694   need_lib_prefix=no
4695   need_version=no
4696   soname_spec='${libname}${release}${shared_ext}$major'
4697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4698   case $host_os in
4699   irix5* | nonstopux*)
4700     libsuff= shlibsuff=
4701     ;;
4702   *)
4703     case $LD in # libtool.m4 will add one of these switches to LD
4704     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4705       libsuff= shlibsuff= libmagic=32-bit;;
4706     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4707       libsuff=32 shlibsuff=N32 libmagic=N32;;
4708     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4709       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4710     *) libsuff= shlibsuff= libmagic=never-match;;
4711     esac
4712     ;;
4713   esac
4714   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4715   shlibpath_overrides_runpath=no
4716   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4717   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4718   hardcode_into_libs=yes
4719   ;;
4720
4721 # No shared lib support for Linux oldld, aout, or coff.
4722 linux*oldld* | linux*aout* | linux*coff*)
4723   dynamic_linker=no
4724   ;;
4725
4726 # This must be Linux ELF.
4727 linux*|k*bsd*-gnu)
4728   version_type=linux
4729   need_lib_prefix=no
4730   need_version=no
4731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4732   soname_spec='${libname}${release}${shared_ext}$major'
4733   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4734   shlibpath_var=LD_LIBRARY_PATH
4735   shlibpath_overrides_runpath=no
4736   # This implies no fast_install, which is unacceptable.
4737   # Some rework will be needed to allow for fast_install
4738   # before this can be enabled.
4739   hardcode_into_libs=yes
4740
4741   # We used to test for /lib/ld.so.1 and disable shared libraries on
4742   # powerpc, because MkLinux only supported shared libraries with the
4743   # GNU dynamic linker.  Since this was broken with cross compilers,
4744   # most powerpc-linux boxes support dynamic linking these days and
4745   # people can always --disable-shared, the test was removed, and we
4746   # assume the GNU/Linux dynamic linker is in use.
4747   dynamic_linker='GNU/Linux ld.so'
4748   ;;
4749
4750 netbsd*)
4751   version_type=sunos
4752   need_lib_prefix=no
4753   need_version=no
4754   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4755     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4756     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4757     dynamic_linker='NetBSD (a.out) ld.so'
4758   else
4759     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4760     soname_spec='${libname}${release}${shared_ext}$major'
4761     dynamic_linker='NetBSD ld.elf_so'
4762   fi
4763   shlibpath_var=LD_LIBRARY_PATH
4764   shlibpath_overrides_runpath=yes
4765   hardcode_into_libs=yes
4766   ;;
4767
4768 newsos6)
4769   version_type=linux
4770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4771   shlibpath_var=LD_LIBRARY_PATH
4772   shlibpath_overrides_runpath=yes
4773   ;;
4774
4775 nto-qnx)
4776   version_type=linux
4777   need_lib_prefix=no
4778   need_version=no
4779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4780   soname_spec='${libname}${release}${shared_ext}$major'
4781   shlibpath_var=LD_LIBRARY_PATH
4782   shlibpath_overrides_runpath=yes
4783   ;;
4784
4785 openbsd*)
4786   version_type=sunos
4787   need_lib_prefix=no
4788   need_version=no
4789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4790   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4791   shlibpath_var=LD_LIBRARY_PATH
4792   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4793     case $host_os in
4794       openbsd2.[89] | openbsd2.[89].*)
4795         shlibpath_overrides_runpath=no
4796         ;;
4797       *)
4798         shlibpath_overrides_runpath=yes
4799         ;;
4800       esac
4801   else
4802     shlibpath_overrides_runpath=yes
4803   fi
4804   ;;
4805
4806 os2*)
4807   libname_spec='$name'
4808   shrext=".dll"
4809   need_lib_prefix=no
4810   library_names_spec='$libname${shared_ext} $libname.a'
4811   dynamic_linker='OS/2 ld.exe'
4812   shlibpath_var=LIBPATH
4813   ;;
4814
4815 osf3* | osf4* | osf5*)
4816   version_type=osf
4817   need_lib_prefix=no
4818   need_version=no
4819   soname_spec='${libname}${release}${shared_ext}$major'
4820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4821   shlibpath_var=LD_LIBRARY_PATH
4822   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4823   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4824   ;;
4825
4826 sco3.2v5*)
4827   version_type=osf
4828   soname_spec='${libname}${release}${shared_ext}$major'
4829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4830   shlibpath_var=LD_LIBRARY_PATH
4831   ;;
4832
4833 solaris*)
4834   version_type=linux
4835   need_lib_prefix=no
4836   need_version=no
4837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4838   soname_spec='${libname}${release}${shared_ext}$major'
4839   shlibpath_var=LD_LIBRARY_PATH
4840   shlibpath_overrides_runpath=yes
4841   hardcode_into_libs=yes
4842   # ldd complains unless libraries are executable
4843   postinstall_cmds='chmod +x $lib'
4844   ;;
4845
4846 sunos4*)
4847   version_type=sunos
4848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4849   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4850   shlibpath_var=LD_LIBRARY_PATH
4851   shlibpath_overrides_runpath=yes
4852   if test "$with_gnu_ld" = yes; then
4853     need_lib_prefix=no
4854   fi
4855   need_version=yes
4856   ;;
4857
4858 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4859   version_type=linux
4860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4861   soname_spec='${libname}${release}${shared_ext}$major'
4862   shlibpath_var=LD_LIBRARY_PATH
4863   case $host_vendor in
4864     sni)
4865       shlibpath_overrides_runpath=no
4866       need_lib_prefix=no
4867       export_dynamic_flag_spec='${wl}-Blargedynsym'
4868       runpath_var=LD_RUN_PATH
4869       ;;
4870     siemens)
4871       need_lib_prefix=no
4872       ;;
4873     motorola)
4874       need_lib_prefix=no
4875       need_version=no
4876       shlibpath_overrides_runpath=no
4877       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4878       ;;
4879   esac
4880   ;;
4881
4882 sysv4*MP*)
4883   if test -d /usr/nec ;then
4884     version_type=linux
4885     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4886     soname_spec='$libname${shared_ext}.$major'
4887     shlibpath_var=LD_LIBRARY_PATH
4888   fi
4889   ;;
4890
4891 uts4*)
4892   version_type=linux
4893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4894   soname_spec='${libname}${release}${shared_ext}$major'
4895   shlibpath_var=LD_LIBRARY_PATH
4896   ;;
4897
4898 *)
4899   dynamic_linker=no
4900   ;;
4901 esac
4902 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4903 echo "${ECHO_T}$dynamic_linker" >&6
4904 test "$dynamic_linker" = no && can_build_shared=no
4905
4906
4907 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4908 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4909 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   libltdl_cv_shlibpath_var="$shlibpath_var"
4913 fi
4914 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4915 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4916 if test -n "$libltdl_cv_shlibpath_var"; then
4917
4918 cat >>confdefs.h <<_ACEOF
4919 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4920 _ACEOF
4921
4922 fi
4923
4924 fi
4925
4926                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4927
4928
4929 # See if the user has requested runtime debugging.
4930 LIBGCJDEBUG="disable"
4931
4932 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4933 if test "${enable_libgcj_debug+set}" = set; then
4934   enableval="$enable_libgcj_debug"
4935   if test "$enable_libgcj_debug" = yes; then
4936
4937 cat >>confdefs.h <<\_ACEOF
4938 #define DEBUG 1
4939 _ACEOF
4940
4941     LIBGCJDEBUG="enable"
4942   fi
4943 fi;
4944
4945
4946 # Check whether --with-escher or --without-escher was given.
4947 if test "${with_escher+set}" = set; then
4948   withval="$with_escher"
4949
4950 fi;
4951 case "$with_escher" in
4952 "")
4953         use_escher=false
4954         ;;
4955 "no")
4956         use_escher=false
4957         ;;
4958 "yes")
4959         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4960 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4961    { (exit 1); exit 1; }; }
4962         ;;
4963 *)
4964         use_escher=true
4965         ;;
4966 esac
4967
4968 # Determine which AWT peer libraries to build
4969 # Check whether --enable-java-awt or --disable-java-awt was given.
4970 if test "${enable_java_awt+set}" = set; then
4971   enableval="$enable_java_awt"
4972
4973 fi;
4974
4975 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4976 use_xlib_awt=""
4977 use_gtk_awt=""
4978 use_qt_awt=""
4979 use_x_awt=""
4980 # The default toolkit to use is the first one specified.
4981 TOOLKIT=
4982
4983
4984 for peer in $peerlibs ; do
4985   case $peer in
4986     xlib)
4987       if test "$no_x" = yes; then
4988         echo "*** xlib peers requested but no X library available" 1>&2
4989         exit 1
4990       else
4991         use_xlib_awt="yes"
4992         if test -z "$TOOLKIT"; then
4993            TOOLKIT=gnu.awt.xlib.XToolkit
4994         fi
4995       fi
4996       ;;
4997     gtk)
4998       if test "$no_x" = yes; then
4999          echo "*** gtk peers requested but no X library available" 1>&2
5000          exit 1
5001       else
5002          use_gtk_awt=yes
5003          if test -z "$TOOLKIT"; then
5004             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5005          fi
5006       fi
5007       ;;
5008     qt)
5009       if test "$no_x" = yes; then
5010          # Perhaps we should admit the possibility of embedded Qt.
5011          echo "*** Qt peers requested but no X library available" 1>&2
5012          exit 1
5013       else
5014          use_qt_awt=yes
5015          if test -z "$TOOLKIT"; then
5016             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5017          fi
5018       fi
5019       ;;
5020     x)
5021       use_x_awt=yes
5022       if test -z "$TOOLKIT"; then
5023          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5024       fi
5025       ;;
5026     no)
5027       use_xlib_awt=
5028       use_gtk_awt=
5029       use_qt_awt=
5030       use_x_awt=
5031       break
5032       ;;
5033     *)
5034       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5035       exit 1
5036   esac
5037 done
5038
5039
5040
5041 if test "$use_xlib_awt" = yes; then
5042   XLIB_AWT_TRUE=
5043   XLIB_AWT_FALSE='#'
5044 else
5045   XLIB_AWT_TRUE='#'
5046   XLIB_AWT_FALSE=
5047 fi
5048
5049
5050
5051 if test "$use_x_awt" = yes; then
5052   X_AWT_TRUE=
5053   X_AWT_FALSE='#'
5054 else
5055   X_AWT_TRUE='#'
5056   X_AWT_FALSE=
5057 fi
5058
5059
5060
5061 cat >>confdefs.h <<_ACEOF
5062 #define AWT_TOOLKIT "$TOOLKIT"
5063 _ACEOF
5064
5065
5066
5067 cat >>confdefs.h <<_ACEOF
5068 #define LIBGCJ_PREFIX "$prefix"
5069 _ACEOF
5070
5071
5072 # Create standard.omit based on decisions we just made.
5073 cp $srcdir/standard.omit.in standard.omit
5074 if test "$use_xlib_awt" != yes; then
5075    echo gnu/awt/xlib >> standard.omit
5076    echo gnu/gcj/xlib >> standard.omit
5077 fi
5078 if test "$use_x_awt" != yes; then
5079    echo gnu/java/awt/peer/x >> standard.omit
5080 fi
5081
5082 if test -z "${with_multisubdir}"; then
5083    builddotdot=.
5084 else
5085    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5086 fi
5087
5088 NATIVE=yes
5089
5090 # Which gcj and host gcj (for ecjx) do we use?
5091 which_gcj=default
5092 host_exeext=${ac_exeext}
5093 GCJ_FOR_ECJX=
5094 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5095 if test -n "${with_cross_host}"; then
5096   # We are being configured with a cross compiler. We can't
5097   # use ac_exeext, because that is for the target platform.
5098   NATIVE=no
5099   cross_host_exeext=
5100   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5101   case "${with_cross_host}" in
5102      *mingw* | *cygwin*)
5103          cross_host_exeext=.exe
5104      ;;
5105   esac
5106   host_exeext=${cross_host_exeext}
5107   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5108      if test x"$build_noncanonical" = x"$with_cross_host"; then
5109         # Ordinary cross (host!=target and host=build)
5110         which_gcj=built
5111      else
5112         # Canadian cross (host!=target and host!=build)
5113         which_gcj=cross
5114      fi
5115   else
5116      which_gcj=cross
5117   fi
5118 else
5119   # We are being configured with a native or crossed-native compiler
5120   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5121      if test x"$build" = x"$host"; then
5122         # True native build (host=target and host=build)
5123         which_gcj=built
5124      else
5125         # Crossed-native build (host=target and host!=build)
5126         which_gcj=cross
5127      fi
5128   else
5129      which_gcj=path
5130   fi
5131 fi
5132 case "${which_gcj}" in
5133    built)
5134       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5135       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5136    ;;
5137    cross)
5138       if test "x${with_newlib}" = "xyes"; then
5139          # FIXME (comment): Why is this needed?
5140          GCC_UNWIND_INCLUDE=
5141          GCJ="${target_noncanonical}-gcj"
5142       else
5143          GCJ="$built_gcc_dir/gcj -B$built_gcc_dir/"
5144       fi
5145       GCJH="$built_gcc_dir/gcjh"
5146    ;;
5147    path)
5148       GCJ="gcj -B`${PWDCMD-pwd}`/"
5149       GCJH=gcjh
5150    ;;
5151 esac
5152
5153
5154
5155
5156
5157 # Create it, so that compile/link tests don't fail
5158 test -f libgcj.spec || touch libgcj.spec
5159
5160
5161
5162 # Set up to configure Classpath.
5163 # FIXME: no supported way to pass args in autoconf.
5164 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5165 # Disable tool wrappers to avoid ltdl.h configure check.
5166 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5167 ac_configure_args="$ac_configure_args --disable-load-library"
5168 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5169 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5170 dir1=`cd $srcdir && pwd`
5171 dir2=`pwd`
5172 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5173 ac_configure_args="$ac_configure_args --disable-core-jni"
5174 ac_configure_args="$ac_configure_args --disable-examples"
5175 ac_configure_args="$ac_configure_args --with-glibj=build"
5176 if test "$plugin_enabled" != yes; then
5177   ac_configure_args="$ac_configure_args --disable-plugin"
5178 fi
5179 if test "$gconf_enabled" != yes; then
5180   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5181   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5182 fi
5183 if test "$use_gtk_awt" != yes; then
5184   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5185 fi
5186 if test "$use_qt_awt" != yes; then
5187   ac_configure_args="$ac_configure_args --disable-qt-peer"
5188 else
5189   # We need this as qt is disabled by default in classpath.
5190   ac_configure_args="$ac_configure_args --enable-qt-peer"
5191 fi
5192 if test "$use_x_awt" != yes; then
5193   ac_configure_args="$ac_configure_args --without-escher"
5194 else
5195   # We need this as escher is disabled by default in classpath.
5196   if test "$use_escher" != true; then
5197     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5198 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5199    { (exit 1); exit 1; }; }
5200   else
5201     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5202   fi
5203 fi
5204 # -Werror causes unavoidable problems in code using alsa.
5205 ac_configure_args="$ac_configure_args --disable-Werror"
5206
5207 # Only use libltdl for non-newlib builds.
5208 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5209      case $enable_ltdl_convenience in
5210   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5211 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5212    { (exit 1); exit 1; }; } ;;
5213   "") enable_ltdl_convenience=yes
5214       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5215   esac
5216   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5217   INCLTDL='-I${top_srcdir}/''libltdl'
5218
5219
5220    DIRLTDL=libltdl
5221
5222 cat >>confdefs.h <<\_ACEOF
5223 #define USE_LTDL 1
5224 _ACEOF
5225
5226    # Sigh.  Libtool's macro doesn't do the right thing.
5227    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5228    # FIXME: this is a hack.
5229    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5230    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5231 fi
5232
5233
5234
5235 # Check whether --enable-shared or --disable-shared was given.
5236 if test "${enable_shared+set}" = set; then
5237   enableval="$enable_shared"
5238   p=${PACKAGE-default}
5239 case $enableval in
5240 yes) enable_shared=yes ;;
5241 no) enable_shared=no ;;
5242 *)
5243   enable_shared=no
5244   # Look at the argument we got.  We use all the common list separators.
5245   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5246   for pkg in $enableval; do
5247     if test "X$pkg" = "X$p"; then
5248       enable_shared=yes
5249     fi
5250   done
5251   IFS="$ac_save_ifs"
5252   ;;
5253 esac
5254 else
5255   enable_shared=yes
5256 fi;
5257 # Check whether --enable-static or --disable-static was given.
5258 if test "${enable_static+set}" = set; then
5259   enableval="$enable_static"
5260   p=${PACKAGE-default}
5261 case $enableval in
5262 yes) enable_static=yes ;;
5263 no) enable_static=no ;;
5264 *)
5265   enable_static=no
5266   # Look at the argument we got.  We use all the common list separators.
5267   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5268   for pkg in $enableval; do
5269     if test "X$pkg" = "X$p"; then
5270       enable_static=yes
5271     fi
5272   done
5273   IFS="$ac_save_ifs"
5274   ;;
5275 esac
5276 else
5277   enable_static=yes
5278 fi;
5279 # Check whether --enable-fast-install or --disable-fast-install was given.
5280 if test "${enable_fast_install+set}" = set; then
5281   enableval="$enable_fast_install"
5282   p=${PACKAGE-default}
5283 case $enableval in
5284 yes) enable_fast_install=yes ;;
5285 no) enable_fast_install=no ;;
5286 *)
5287   enable_fast_install=no
5288   # Look at the argument we got.  We use all the common list separators.
5289   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5290   for pkg in $enableval; do
5291     if test "X$pkg" = "X$p"; then
5292       enable_fast_install=yes
5293     fi
5294   done
5295   IFS="$ac_save_ifs"
5296   ;;
5297 esac
5298 else
5299   enable_fast_install=yes
5300 fi;
5301
5302 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5303 if test "${with_gnu_ld+set}" = set; then
5304   withval="$with_gnu_ld"
5305   test "$withval" = no || with_gnu_ld=yes
5306 else
5307   with_gnu_ld=no
5308 fi;
5309 ac_prog=ld
5310 if test "$GCC" = yes; then
5311   # Check if gcc -print-prog-name=ld gives a path.
5312   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5313 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5314   case $host in
5315   *-*-mingw*)
5316     # gcc leaves a trailing carriage return which upsets mingw
5317     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5318   *)
5319     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5320   esac
5321   case $ac_prog in
5322     # Accept absolute paths.
5323     [\\/]* | [A-Za-z]:[\\/]*)
5324       re_direlt='/[^/][^/]*/\.\./'
5325       # Canonicalize the path of ld
5326       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5327       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5328         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5329       done
5330       test -z "$LD" && LD="$ac_prog"
5331       ;;
5332   "")
5333     # If it fails, then pretend we aren't using GCC.
5334     ac_prog=ld
5335     ;;
5336   *)
5337     # If it is relative, then search for the first ld in PATH.
5338     with_gnu_ld=unknown
5339     ;;
5340   esac
5341 elif test "$with_gnu_ld" = yes; then
5342   echo "$as_me:$LINENO: checking for GNU ld" >&5
5343 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5344 else
5345   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5346 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5347 fi
5348 if test "${lt_cv_path_LD+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -z "$LD"; then
5352   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5353   for ac_dir in $PATH; do
5354     test -z "$ac_dir" && ac_dir=.
5355     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5356       lt_cv_path_LD="$ac_dir/$ac_prog"
5357       # Check to see if the program is GNU ld.  I'd rather use --version,
5358       # but apparently some GNU ld's only accept -v.
5359       # Break only if it was the GNU/non-GNU ld that we prefer.
5360       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5361         test "$with_gnu_ld" != no && break
5362       else
5363         test "$with_gnu_ld" != yes && break
5364       fi
5365     fi
5366   done
5367   IFS="$ac_save_ifs"
5368 else
5369   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5370 fi
5371 fi
5372
5373 LD="$lt_cv_path_LD"
5374 if test -n "$LD"; then
5375   echo "$as_me:$LINENO: result: $LD" >&5
5376 echo "${ECHO_T}$LD" >&6
5377 else
5378   echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6
5380 fi
5381 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5382 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5383    { (exit 1); exit 1; }; }
5384 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5385 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5386 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5390 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5391   lt_cv_prog_gnu_ld=yes
5392 else
5393   lt_cv_prog_gnu_ld=no
5394 fi
5395 fi
5396 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5397 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5398 with_gnu_ld=$lt_cv_prog_gnu_ld
5399
5400
5401 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5402 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5403 if test "${lt_cv_ld_reload_flag+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   lt_cv_ld_reload_flag='-r'
5407 fi
5408 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5409 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5410 reload_flag=$lt_cv_ld_reload_flag
5411 test -n "$reload_flag" && reload_flag=" $reload_flag"
5412
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   if test -n "$NM"; then
5419   # Let the user override the test.
5420   lt_cv_path_NM="$NM"
5421 else
5422   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5423   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5424     test -z "$ac_dir" && ac_dir=.
5425     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5426     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5427       # Check to see if the nm accepts a BSD-compat flag.
5428       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5429       #   nm: unknown option "B" ignored
5430       # Tru64's nm complains that /dev/null is an invalid object file
5431       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5432         lt_cv_path_NM="$tmp_nm -B"
5433         break
5434       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5435         lt_cv_path_NM="$tmp_nm -p"
5436         break
5437       else
5438         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5439         continue # so that we can try to find one that supports BSD flags
5440       fi
5441     fi
5442   done
5443   IFS="$ac_save_ifs"
5444   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5445 fi
5446 fi
5447
5448 NM="$lt_cv_path_NM"
5449 echo "$as_me:$LINENO: result: $NM" >&5
5450 echo "${ECHO_T}$NM" >&6
5451
5452 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5453 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5454 if test "${lt_cv_deplibs_check_method+set}" = set; then
5455   echo $ECHO_N "(cached) $ECHO_C" >&6
5456 else
5457   lt_cv_file_magic_cmd='$MAGIC_CMD'
5458 lt_cv_file_magic_test_file=
5459 lt_cv_deplibs_check_method='unknown'
5460 # Need to set the preceding variable on all platforms that support
5461 # interlibrary dependencies.
5462 # 'none' -- dependencies not supported.
5463 # `unknown' -- same as none, but documents that we really don't know.
5464 # 'pass_all' -- all dependencies passed with no checks.
5465 # 'test_compile' -- check by making test program.
5466 # 'file_magic [regex]' -- check by looking for files in library path
5467 # which responds to the $file_magic_cmd with a given egrep regex.
5468 # If you have `file' or equivalent on your system and you're not sure
5469 # whether `pass_all' will *always* work, you probably want this one.
5470
5471 case $host_os in
5472 aix*)
5473   lt_cv_deplibs_check_method=pass_all
5474   ;;
5475
5476 beos*)
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 bsdi4*)
5481   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5482   lt_cv_file_magic_cmd='/usr/bin/file -L'
5483   lt_cv_file_magic_test_file=/shlib/libc.so
5484   ;;
5485
5486 cygwin* | mingw* |pw32*)
5487   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5488   lt_cv_file_magic_cmd='$OBJDUMP -f'
5489   ;;
5490
5491 darwin* | rhapsody*)
5492   # this will be overwritten by pass_all, but leave it in just in case
5493   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5494   lt_cv_file_magic_cmd='/usr/bin/file -L'
5495   case "$host_os" in
5496   rhapsody* | darwin1.012)
5497     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5498     ;;
5499   *) # Darwin 1.3 on
5500     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5501     ;;
5502   esac
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 freebsd* | kfreebsd*-gnu)
5507   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5508     case $host_cpu in
5509     i*86 )
5510       # Not sure whether the presence of OpenBSD here was a mistake.
5511       # Let's accept both of them until this is cleared up.
5512       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5513       lt_cv_file_magic_cmd=/usr/bin/file
5514       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5515       ;;
5516     esac
5517   else
5518     lt_cv_deplibs_check_method=pass_all
5519   fi
5520   ;;
5521
5522 gnu*)
5523   lt_cv_deplibs_check_method=pass_all
5524   ;;
5525
5526 hpux10.20*|hpux11*)
5527   case $host_cpu in
5528   hppa*)
5529     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5530     lt_cv_file_magic_cmd=/usr/bin/file
5531     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5532     ;;
5533   ia64*)
5534     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5535     lt_cv_file_magic_cmd=/usr/bin/file
5536     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5537     ;;
5538   esac
5539   ;;
5540
5541 irix5* | irix6*)
5542   case $host_os in
5543   irix5*)
5544     # this will be overridden with pass_all, but let us keep it just in case
5545     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5546     ;;
5547   *)
5548     case $LD in
5549     *-32|*"-32 ") libmagic=32-bit;;
5550     *-n32|*"-n32 ") libmagic=N32;;
5551     *-64|*"-64 ") libmagic=64-bit;;
5552     *) libmagic=never-match;;
5553     esac
5554     # this will be overridden with pass_all, but let us keep it just in case
5555     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5556     ;;
5557   esac
5558   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561
5562 # This must be Linux ELF.
5563 linux-gnu*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 netbsd* | knetbsd*-gnu)
5568   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5569     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5570   else
5571     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5572   fi
5573   ;;
5574
5575 newsos6)
5576   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5577   lt_cv_file_magic_cmd=/usr/bin/file
5578   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5579   ;;
5580
5581 osf3* | osf4* | osf5*)
5582   # this will be overridden with pass_all, but let us keep it just in case
5583   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5584   lt_cv_file_magic_test_file=/shlib/libc.so
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 sco3.2v5*)
5589   lt_cv_deplibs_check_method=pass_all
5590   ;;
5591
5592 solaris*)
5593   lt_cv_deplibs_check_method=pass_all
5594   lt_cv_file_magic_test_file=/lib/libc.so
5595   ;;
5596
5597 sysv5uw[78]* | sysv4*uw2*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5602   case $host_vendor in
5603   ncr)
5604     lt_cv_deplibs_check_method=pass_all
5605     ;;
5606   motorola)
5607     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]'
5608     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5609     ;;
5610   esac
5611   ;;
5612 esac
5613
5614 fi
5615 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5616 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5617 file_magic_cmd=$lt_cv_file_magic_cmd
5618 deplibs_check_method=$lt_cv_deplibs_check_method
5619
5620
5621
5622
5623 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5624
5625 # find the maximum length of command line arguments
5626 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5627 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5628 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5629   echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631     i=0
5632   teststring="ABCD"
5633
5634   case $build_os in
5635   msdosdjgpp*)
5636     # On DJGPP, this test can blow up pretty badly due to problems in libc
5637     # (any single argument exceeding 2000 bytes causes a buffer overrun
5638     # during glob expansion).  Even if it were fixed, the result of this
5639     # check would be larger than it should be.
5640     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5641     ;;
5642
5643   cygwin* | mingw*)
5644     # On Win9x/ME, this test blows up -- it succeeds, but takes
5645     # about 5 minutes as the teststring grows exponentially.
5646     # Worse, since 9x/ME are not pre-emptively multitasking,
5647     # you end up with a "frozen" computer, even though with patience
5648     # the test eventually succeeds (with a max line length of 256k).
5649     # Instead, let's just punt: use the minimum linelength reported by
5650     # all of the supported platforms: 8192 (on NT/2K/XP).
5651     lt_cv_sys_max_cmd_len=8192;
5652     ;;
5653
5654   amigaos*)
5655     # On AmigaOS with pdksh, this test takes hours, literally.
5656     # So we just punt and use a minimum line length of 8192.
5657     lt_cv_sys_max_cmd_len=8192;
5658     ;;
5659
5660   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5661     # This has been around since 386BSD, at least.  Likely further.
5662     if test -x /sbin/sysctl; then
5663       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5664     elif test -x /usr/sbin/sysctl; then
5665       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5666     else
5667       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5668     fi
5669     # And add a safety zone
5670     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5671     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5672     ;;
5673   esac
5674
5675 fi
5676
5677 if test -n "$lt_cv_sys_max_cmd_len" ; then
5678   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5679 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5680 else
5681   echo "$as_me:$LINENO: result: none" >&5
5682 echo "${ECHO_T}none" >&6
5683 fi
5684
5685
5686 # Only perform the check for file, if the check method requires it
5687 case $deplibs_check_method in
5688 file_magic*)
5689   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5690     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5691 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5692 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   case $MAGIC_CMD in
5696   /*)
5697   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5698   ;;
5699   ?:/*)
5700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5701   ;;
5702   *)
5703   ac_save_MAGIC_CMD="$MAGIC_CMD"
5704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5705   ac_dummy="/usr/bin:$PATH"
5706   for ac_dir in $ac_dummy; do
5707     test -z "$ac_dir" && ac_dir=.
5708     if test -f $ac_dir/${ac_tool_prefix}file; then
5709       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5710       if test -n "$file_magic_test_file"; then
5711         case $deplibs_check_method in
5712         "file_magic "*)
5713           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5714           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5715           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5716             egrep "$file_magic_regex" > /dev/null; then
5717             :
5718           else
5719             cat <<EOF 1>&2
5720
5721 *** Warning: the command libtool uses to detect shared libraries,
5722 *** $file_magic_cmd, produces output that libtool cannot recognize.
5723 *** The result is that libtool may fail to recognize shared libraries
5724 *** as such.  This will affect the creation of libtool libraries that
5725 *** depend on shared libraries, but programs linked with such libtool
5726 *** libraries will work regardless of this problem.  Nevertheless, you
5727 *** may want to report the problem to your system manager and/or to
5728 *** bug-libtool@gnu.org
5729
5730 EOF
5731           fi ;;
5732         esac
5733       fi
5734       break
5735     fi
5736   done
5737   IFS="$ac_save_ifs"
5738   MAGIC_CMD="$ac_save_MAGIC_CMD"
5739   ;;
5740 esac
5741 fi
5742
5743 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5744 if test -n "$MAGIC_CMD"; then
5745   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5746 echo "${ECHO_T}$MAGIC_CMD" >&6
5747 else
5748   echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6
5750 fi
5751
5752 if test -z "$lt_cv_path_MAGIC_CMD"; then
5753   if test -n "$ac_tool_prefix"; then
5754     echo "$as_me:$LINENO: checking for file" >&5
5755 echo $ECHO_N "checking for file... $ECHO_C" >&6
5756 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 else
5759   case $MAGIC_CMD in
5760   /*)
5761   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5762   ;;
5763   ?:/*)
5764   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5765   ;;
5766   *)
5767   ac_save_MAGIC_CMD="$MAGIC_CMD"
5768   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5769   ac_dummy="/usr/bin:$PATH"
5770   for ac_dir in $ac_dummy; do
5771     test -z "$ac_dir" && ac_dir=.
5772     if test -f $ac_dir/file; then
5773       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5774       if test -n "$file_magic_test_file"; then
5775         case $deplibs_check_method in
5776         "file_magic "*)
5777           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5778           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5779           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5780             egrep "$file_magic_regex" > /dev/null; then
5781             :
5782           else
5783             cat <<EOF 1>&2
5784
5785 *** Warning: the command libtool uses to detect shared libraries,
5786 *** $file_magic_cmd, produces output that libtool cannot recognize.
5787 *** The result is that libtool may fail to recognize shared libraries
5788 *** as such.  This will affect the creation of libtool libraries that
5789 *** depend on shared libraries, but programs linked with such libtool
5790 *** libraries will work regardless of this problem.  Nevertheless, you
5791 *** may want to report the problem to your system manager and/or to
5792 *** bug-libtool@gnu.org
5793
5794 EOF
5795           fi ;;
5796         esac
5797       fi
5798       break
5799     fi
5800   done
5801   IFS="$ac_save_ifs"
5802   MAGIC_CMD="$ac_save_MAGIC_CMD"
5803   ;;
5804 esac
5805 fi
5806
5807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5808 if test -n "$MAGIC_CMD"; then
5809   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5810 echo "${ECHO_T}$MAGIC_CMD" >&6
5811 else
5812   echo "$as_me:$LINENO: result: no" >&5
5813 echo "${ECHO_T}no" >&6
5814 fi
5815
5816   else
5817     MAGIC_CMD=:
5818   fi
5819 fi
5820
5821   fi
5822   ;;
5823 esac
5824
5825 if test -n "$ac_tool_prefix"; then
5826   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_prog_RANLIB+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   if test -n "$RANLIB"; then
5834   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841   for ac_exec_ext in '' $ac_executable_extensions; do
5842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848 done
5849
5850 fi
5851 fi
5852 RANLIB=$ac_cv_prog_RANLIB
5853 if test -n "$RANLIB"; then
5854   echo "$as_me:$LINENO: result: $RANLIB" >&5
5855 echo "${ECHO_T}$RANLIB" >&6
5856 else
5857   echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5860
5861 fi
5862 if test -z "$ac_cv_prog_RANLIB"; then
5863   ac_ct_RANLIB=$RANLIB
5864   # Extract the first word of "ranlib", so it can be a program name with args.
5865 set dummy ranlib; ac_word=$2
5866 echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5868 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   if test -n "$ac_ct_RANLIB"; then
5872   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879   for ac_exec_ext in '' $ac_executable_extensions; do
5880   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5881     ac_cv_prog_ac_ct_RANLIB="ranlib"
5882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886 done
5887
5888   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5889 fi
5890 fi
5891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5892 if test -n "$ac_ct_RANLIB"; then
5893   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5894 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5895 else
5896   echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6
5898 fi
5899
5900   RANLIB=$ac_ct_RANLIB
5901 else
5902   RANLIB="$ac_cv_prog_RANLIB"
5903 fi
5904
5905 if test -n "$ac_tool_prefix"; then
5906   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5907 set dummy ${ac_tool_prefix}strip; ac_word=$2
5908 echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5910 if test "${ac_cv_prog_STRIP+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   if test -n "$STRIP"; then
5914   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921   for ac_exec_ext in '' $ac_executable_extensions; do
5922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5923     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928 done
5929
5930 fi
5931 fi
5932 STRIP=$ac_cv_prog_STRIP
5933 if test -n "$STRIP"; then
5934   echo "$as_me:$LINENO: result: $STRIP" >&5
5935 echo "${ECHO_T}$STRIP" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no" >&5
5938 echo "${ECHO_T}no" >&6
5939 fi
5940
5941 fi
5942 if test -z "$ac_cv_prog_STRIP"; then
5943   ac_ct_STRIP=$STRIP
5944   # Extract the first word of "strip", so it can be a program name with args.
5945 set dummy strip; ac_word=$2
5946 echo "$as_me:$LINENO: checking for $ac_word" >&5
5947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5948 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5949   echo $ECHO_N "(cached) $ECHO_C" >&6
5950 else
5951   if test -n "$ac_ct_STRIP"; then
5952   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5953 else
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 for as_dir in $PATH
5956 do
5957   IFS=$as_save_IFS
5958   test -z "$as_dir" && as_dir=.
5959   for ac_exec_ext in '' $ac_executable_extensions; do
5960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961     ac_cv_prog_ac_ct_STRIP="strip"
5962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963     break 2
5964   fi
5965 done
5966 done
5967
5968   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5969 fi
5970 fi
5971 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5972 if test -n "$ac_ct_STRIP"; then
5973   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5974 echo "${ECHO_T}$ac_ct_STRIP" >&6
5975 else
5976   echo "$as_me:$LINENO: result: no" >&5
5977 echo "${ECHO_T}no" >&6
5978 fi
5979
5980   STRIP=$ac_ct_STRIP
5981 else
5982   STRIP="$ac_cv_prog_STRIP"
5983 fi
5984
5985
5986 # Check for any special flags to pass to ltconfig.
5987 libtool_flags="--cache-file=$cache_file"
5988 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5989 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5990 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5991 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5992 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5993
5994
5995 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5996 if test "${enable_libtool_lock+set}" = set; then
5997   enableval="$enable_libtool_lock"
5998
5999 fi;
6000 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6001 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6002
6003
6004 # Check whether --with-pic or --without-pic was given.
6005 if test "${with_pic+set}" = set; then
6006   withval="$with_pic"
6007   pic_mode="$withval"
6008 else
6009   pic_mode=default
6010 fi;
6011 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6012 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6013
6014 # Some flags need to be propagated to the compiler or linker for good
6015 # libtool support.
6016 case $host in
6017 *-*-irix6*)
6018   # Find out which ABI we are using.
6019   echo '#line 6019 "configure"' > conftest.$ac_ext
6020   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021   (eval $ac_compile) 2>&5
6022   ac_status=$?
6023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024   (exit $ac_status); }; then
6025    if test "$lt_cv_prog_gnu_ld" = yes; then
6026     case `/usr/bin/file conftest.$ac_objext` in
6027     *32-bit*)
6028       LD="${LD-ld} -melf32bsmip"
6029       ;;
6030     *N32*)
6031       LD="${LD-ld} -melf32bmipn32"
6032       ;;
6033     *64-bit*)
6034       LD="${LD-ld} -melf64bmip"
6035       ;;
6036     esac
6037    else
6038     case `/usr/bin/file conftest.$ac_objext` in
6039     *32-bit*)
6040       LD="${LD-ld} -32"
6041       ;;
6042     *N32*)
6043       LD="${LD-ld} -n32"
6044       ;;
6045     *64-bit*)
6046       LD="${LD-ld} -64"
6047       ;;
6048     esac
6049    fi
6050   fi
6051   rm -rf conftest*
6052   ;;
6053
6054 ia64-*-hpux*)
6055   # Find out which ABI we are using.
6056   echo 'int i;' > conftest.$ac_ext
6057   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058   (eval $ac_compile) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; then
6062     case "`/usr/bin/file conftest.o`" in
6063     *ELF-32*)
6064       HPUX_IA64_MODE="32"
6065       ;;
6066     *ELF-64*)
6067       HPUX_IA64_MODE="64"
6068       ;;
6069     esac
6070   fi
6071   rm -rf conftest*
6072   ;;
6073
6074 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6075   # Find out which ABI we are using.
6076   echo 'int i;' > conftest.$ac_ext
6077   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078   (eval $ac_compile) 2>&5
6079   ac_status=$?
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); }; then
6082     case "`/usr/bin/file conftest.o`" in
6083     *32-bit*)
6084       case $host in
6085         x86_64-*linux*)
6086           LD="${LD-ld} -m elf_i386"
6087           ;;
6088         ppc64-*linux*|powerpc64-*linux*)
6089           LD="${LD-ld} -m elf32ppclinux"
6090           ;;
6091         s390x-*linux*)
6092           LD="${LD-ld} -m elf_s390"
6093           ;;
6094         sparc64-*linux*)
6095           LD="${LD-ld} -m elf32_sparc"
6096           ;;
6097       esac
6098       ;;
6099     *64-bit*)
6100       case $host in
6101         x86_64-*linux*)
6102           LD="${LD-ld} -m elf_x86_64"
6103           ;;
6104         ppc*-*linux*|powerpc*-*linux*)
6105           LD="${LD-ld} -m elf64ppc"
6106           ;;
6107         s390*-*linux*)
6108           LD="${LD-ld} -m elf64_s390"
6109           ;;
6110         sparc*-*linux*)
6111           LD="${LD-ld} -m elf64_sparc"
6112           ;;
6113       esac
6114       ;;
6115     esac
6116   fi
6117   rm -rf conftest*
6118   ;;
6119
6120 *-*-sco3.2v5*)
6121   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6122   SAVE_CFLAGS="$CFLAGS"
6123   CFLAGS="$CFLAGS -belf"
6124   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6125 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6126 if test "${lt_cv_cc_needs_belf+set}" = set; then
6127   echo $ECHO_N "(cached) $ECHO_C" >&6
6128 else
6129
6130
6131      ac_ext=c
6132 ac_cpp='$CPP $CPPFLAGS'
6133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136
6137      if test x$gcc_no_link = xyes; then
6138   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6139 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6140    { (exit 1); exit 1; }; }
6141 fi
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h.  */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h.  */
6148
6149 int
6150 main ()
6151 {
6152
6153   ;
6154   return 0;
6155 }
6156 _ACEOF
6157 rm -f conftest.$ac_objext conftest$ac_exeext
6158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6159   (eval $ac_link) 2>conftest.er1
6160   ac_status=$?
6161   grep -v '^ *+' conftest.er1 >conftest.err
6162   rm -f conftest.er1
6163   cat conftest.err >&5
6164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165   (exit $ac_status); } &&
6166          { ac_try='test -z "$ac_c_werror_flag"
6167                          || test ! -s conftest.err'
6168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169   (eval $ac_try) 2>&5
6170   ac_status=$?
6171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172   (exit $ac_status); }; } &&
6173          { ac_try='test -s conftest$ac_exeext'
6174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6175   (eval $ac_try) 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }; }; then
6179   lt_cv_cc_needs_belf=yes
6180 else
6181   echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184 lt_cv_cc_needs_belf=no
6185 fi
6186 rm -f conftest.err conftest.$ac_objext \
6187       conftest$ac_exeext conftest.$ac_ext
6188      ac_ext=c
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6193
6194 fi
6195 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6196 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6197   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6198     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6199     CFLAGS="$SAVE_CFLAGS"
6200   fi
6201   ;;
6202
6203
6204 esac
6205
6206
6207 # Save cache, so that ltconfig can load it
6208 cat >confcache <<\_ACEOF
6209 # This file is a shell script that caches the results of configure
6210 # tests run on this system so they can be shared between configure
6211 # scripts and configure runs, see configure's option --config-cache.
6212 # It is not useful on other systems.  If it contains results you don't
6213 # want to keep, you may remove or edit it.
6214 #
6215 # config.status only pays attention to the cache file if you give it
6216 # the --recheck option to rerun configure.
6217 #
6218 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6219 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6220 # following values.
6221
6222 _ACEOF
6223
6224 # The following way of writing the cache mishandles newlines in values,
6225 # but we know of no workaround that is simple, portable, and efficient.
6226 # So, don't put newlines in cache variables' values.
6227 # Ultrix sh set writes to stderr and can't be redirected directly,
6228 # and sets the high bit in the cache file unless we assign to the vars.
6229 {
6230   (set) 2>&1 |
6231     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6232     *ac_space=\ *)
6233       # `set' does not quote correctly, so add quotes (double-quote
6234       # substitution turns \\\\ into \\, and sed turns \\ into \).
6235       sed -n \
6236         "s/'/'\\\\''/g;
6237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6238       ;;
6239     *)
6240       # `set' quotes correctly as required by POSIX, so do not add quotes.
6241       sed -n \
6242         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6243       ;;
6244     esac;
6245 } |
6246   sed '
6247      t clear
6248      : clear
6249      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6250      t end
6251      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6252      : end' >>confcache
6253 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6254   if test -w $cache_file; then
6255     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6256     cat confcache >$cache_file
6257   else
6258     echo "not updating unwritable cache $cache_file"
6259   fi
6260 fi
6261 rm -f confcache
6262
6263 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6264 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6265 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6266 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6267 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6268 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6269 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6270 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6271 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6272 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6273 echo "$as_me: error: libtool configure failed" >&2;}
6274    { (exit 1); exit 1; }; }
6275
6276 # Reload cache, that may have been modified by ltconfig
6277 if test -r "$cache_file"; then
6278   # Some versions of bash will fail to source /dev/null (special
6279   # files actually), so we avoid doing that.
6280   if test -f "$cache_file"; then
6281     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6282 echo "$as_me: loading cache $cache_file" >&6;}
6283     case $cache_file in
6284       [\\/]* | ?:[\\/]* ) . $cache_file;;
6285       *)                      . ./$cache_file;;
6286     esac
6287   fi
6288 else
6289   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6290 echo "$as_me: creating cache $cache_file" >&6;}
6291   >$cache_file
6292 fi
6293
6294
6295 # This can be used to rebuild libtool when needed
6296 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6297
6298 # Always use our own libtool.
6299 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6300
6301 # Redirect the config.log output again, so that the ltconfig log is not
6302 # clobbered by the next message.
6303 exec 5>>./config.log
6304
6305 ac_ext=cc
6306 ac_cpp='$CXXCPP $CPPFLAGS'
6307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6310 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6311 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6312 if test -z "$CXXCPP"; then
6313   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316       # Double quotes because CXXCPP needs to be expanded
6317     for CXXCPP in "$CXX -E" "/lib/cpp"
6318     do
6319       ac_preproc_ok=false
6320 for ac_cxx_preproc_warn_flag in '' yes
6321 do
6322   # Use a header file that comes with gcc, so configuring glibc
6323   # with a fresh cross-compiler works.
6324   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6325   # <limits.h> exists even on freestanding compilers.
6326   # On the NeXT, cc -E runs the code through the compiler's parser,
6327   # not just through cpp. "Syntax error" is here to catch this case.
6328   cat >conftest.$ac_ext <<_ACEOF
6329 /* confdefs.h.  */
6330 _ACEOF
6331 cat confdefs.h >>conftest.$ac_ext
6332 cat >>conftest.$ac_ext <<_ACEOF
6333 /* end confdefs.h.  */
6334 #ifdef __STDC__
6335 # include <limits.h>
6336 #else
6337 # include <assert.h>
6338 #endif
6339                      Syntax error
6340 _ACEOF
6341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6343   ac_status=$?
6344   grep -v '^ *+' conftest.er1 >conftest.err
6345   rm -f conftest.er1
6346   cat conftest.err >&5
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } >/dev/null; then
6349   if test -s conftest.err; then
6350     ac_cpp_err=$ac_cxx_preproc_warn_flag
6351     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6352   else
6353     ac_cpp_err=
6354   fi
6355 else
6356   ac_cpp_err=yes
6357 fi
6358 if test -z "$ac_cpp_err"; then
6359   :
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364   # Broken: fails on valid input.
6365 continue
6366 fi
6367 rm -f conftest.err conftest.$ac_ext
6368
6369   # OK, works on sane cases.  Now check whether non-existent headers
6370   # can be detected and how.
6371   cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377 #include <ac_nonexistent.h>
6378 _ACEOF
6379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6381   ac_status=$?
6382   grep -v '^ *+' conftest.er1 >conftest.err
6383   rm -f conftest.er1
6384   cat conftest.err >&5
6385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386   (exit $ac_status); } >/dev/null; then
6387   if test -s conftest.err; then
6388     ac_cpp_err=$ac_cxx_preproc_warn_flag
6389     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6390   else
6391     ac_cpp_err=
6392   fi
6393 else
6394   ac_cpp_err=yes
6395 fi
6396 if test -z "$ac_cpp_err"; then
6397   # Broken: success on invalid input.
6398 continue
6399 else
6400   echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403   # Passes both tests.
6404 ac_preproc_ok=:
6405 break
6406 fi
6407 rm -f conftest.err conftest.$ac_ext
6408
6409 done
6410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6411 rm -f conftest.err conftest.$ac_ext
6412 if $ac_preproc_ok; then
6413   break
6414 fi
6415
6416     done
6417     ac_cv_prog_CXXCPP=$CXXCPP
6418
6419 fi
6420   CXXCPP=$ac_cv_prog_CXXCPP
6421 else
6422   ac_cv_prog_CXXCPP=$CXXCPP
6423 fi
6424 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6425 echo "${ECHO_T}$CXXCPP" >&6
6426 ac_preproc_ok=false
6427 for ac_cxx_preproc_warn_flag in '' yes
6428 do
6429   # Use a header file that comes with gcc, so configuring glibc
6430   # with a fresh cross-compiler works.
6431   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6432   # <limits.h> exists even on freestanding compilers.
6433   # On the NeXT, cc -E runs the code through the compiler's parser,
6434   # not just through cpp. "Syntax error" is here to catch this case.
6435   cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h.  */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h.  */
6441 #ifdef __STDC__
6442 # include <limits.h>
6443 #else
6444 # include <assert.h>
6445 #endif
6446                      Syntax error
6447 _ACEOF
6448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6450   ac_status=$?
6451   grep -v '^ *+' conftest.er1 >conftest.err
6452   rm -f conftest.er1
6453   cat conftest.err >&5
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } >/dev/null; then
6456   if test -s conftest.err; then
6457     ac_cpp_err=$ac_cxx_preproc_warn_flag
6458     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6459   else
6460     ac_cpp_err=
6461   fi
6462 else
6463   ac_cpp_err=yes
6464 fi
6465 if test -z "$ac_cpp_err"; then
6466   :
6467 else
6468   echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471   # Broken: fails on valid input.
6472 continue
6473 fi
6474 rm -f conftest.err conftest.$ac_ext
6475
6476   # OK, works on sane cases.  Now check whether non-existent headers
6477   # can be detected and how.
6478   cat >conftest.$ac_ext <<_ACEOF
6479 /* confdefs.h.  */
6480 _ACEOF
6481 cat confdefs.h >>conftest.$ac_ext
6482 cat >>conftest.$ac_ext <<_ACEOF
6483 /* end confdefs.h.  */
6484 #include <ac_nonexistent.h>
6485 _ACEOF
6486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6487   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6488   ac_status=$?
6489   grep -v '^ *+' conftest.er1 >conftest.err
6490   rm -f conftest.er1
6491   cat conftest.err >&5
6492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); } >/dev/null; then
6494   if test -s conftest.err; then
6495     ac_cpp_err=$ac_cxx_preproc_warn_flag
6496     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6497   else
6498     ac_cpp_err=
6499   fi
6500 else
6501   ac_cpp_err=yes
6502 fi
6503 if test -z "$ac_cpp_err"; then
6504   # Broken: success on invalid input.
6505 continue
6506 else
6507   echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6509
6510   # Passes both tests.
6511 ac_preproc_ok=:
6512 break
6513 fi
6514 rm -f conftest.err conftest.$ac_ext
6515
6516 done
6517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6518 rm -f conftest.err conftest.$ac_ext
6519 if $ac_preproc_ok; then
6520   :
6521 else
6522   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6523 See \`config.log' for more details." >&5
6524 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6525 See \`config.log' for more details." >&2;}
6526    { (exit 1); exit 1; }; }
6527 fi
6528
6529 ac_ext=c
6530 ac_cpp='$CPP $CPPFLAGS'
6531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6534
6535
6536
6537 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6538 lt_save_CC="$CC"
6539 lt_save_CFLAGS="$CFLAGS"
6540 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6541 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6542 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6543 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6544 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6545 deplibs_check_method="$deplibs_check_method" \
6546 file_magic_cmd="$file_magic_cmd" \
6547 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6548 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6549 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6550 echo "$as_me: error: libtool tag configuration failed" >&2;}
6551    { (exit 1); exit 1; }; }
6552 CC="$lt_save_CC"
6553 CFLAGS="$lt_save_CFLAGS"
6554
6555 # Redirect the config.log output again, so that the ltconfig log is not
6556 # clobbered by the next message.
6557 exec 5>>./config.log
6558
6559
6560
6561
6562
6563
6564
6565 for ac_prog in gcj
6566 do
6567   # Extract the first word of "$ac_prog", so it can be a program name with args.
6568 set dummy $ac_prog; ac_word=$2
6569 echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6571 if test "${ac_cv_prog_GCJ+set}" = set; then
6572   echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6574   if test -n "$GCJ"; then
6575   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6576 else
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 for as_dir in $PATH
6579 do
6580   IFS=$as_save_IFS
6581   test -z "$as_dir" && as_dir=.
6582   for ac_exec_ext in '' $ac_executable_extensions; do
6583   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6584     ac_cv_prog_GCJ="$ac_prog"
6585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6586     break 2
6587   fi
6588 done
6589 done
6590
6591 fi
6592 fi
6593 GCJ=$ac_cv_prog_GCJ
6594 if test -n "$GCJ"; then
6595   echo "$as_me:$LINENO: result: $GCJ" >&5
6596 echo "${ECHO_T}$GCJ" >&6
6597 else
6598   echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6
6600 fi
6601
6602   test -n "$GCJ" && break
6603 done
6604 test -n "$GCJ" || GCJ="gcj"
6605
6606 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6607 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6608    { (exit 1); exit 1; }; }
6609 if test "x${GCJFLAGS-unset}" = xunset; then
6610    GCJFLAGS="-g -O2"
6611 fi
6612
6613
6614 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6615
6616 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6617 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6618 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6622   # We make a subdir and do the tests there.  Otherwise we can end up
6623   # making bogus files that we don't know about and never remove.  For
6624   # instance it was reported that on HP-UX the gcc test will end up
6625   # making a dummy file named `D' -- because `-MD' means `put the output
6626   # in D'.
6627   mkdir conftest.dir
6628   # Copy depcomp to subdir because otherwise we won't find it if we're
6629   # using a relative directory.
6630   cp "$am_depcomp" conftest.dir
6631   cd conftest.dir
6632   # We will build objects and dependencies in a subdirectory because
6633   # it helps to detect inapplicable dependency modes.  For instance
6634   # both Tru64's cc and ICC support -MD to output dependencies as a
6635   # side effect of compilation, but ICC will put the dependencies in
6636   # the current directory while Tru64 will put them in the object
6637   # directory.
6638   mkdir sub
6639
6640   am_cv_GCJ_dependencies_compiler_type=none
6641   if test "$am_compiler_list" = ""; then
6642      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6643   fi
6644   for depmode in $am_compiler_list; do
6645     # Setup a source with many dependencies, because some compilers
6646     # like to wrap large dependency lists on column 80 (with \), and
6647     # we should not choose a depcomp mode which is confused by this.
6648     #
6649     # We need to recreate these files for each test, as the compiler may
6650     # overwrite some of them when testing with obscure command lines.
6651     # This happens at least with the AIX C compiler.
6652     : > sub/conftest.c
6653     for i in 1 2 3 4 5 6; do
6654       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6655       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6656       # Solaris 8's {/usr,}/bin/sh.
6657       touch sub/conftst$i.h
6658     done
6659     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6660
6661     case $depmode in
6662     nosideeffect)
6663       # after this tag, mechanisms are not by side-effect, so they'll
6664       # only be used when explicitly requested
6665       if test "x$enable_dependency_tracking" = xyes; then
6666         continue
6667       else
6668         break
6669       fi
6670       ;;
6671     none) break ;;
6672     esac
6673     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6674     # mode.  It turns out that the SunPro C++ compiler does not properly
6675     # handle `-M -o', and we need to detect this.
6676     if depmode=$depmode \
6677        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6678        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6679        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6680          >/dev/null 2>conftest.err &&
6681        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6682        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6683        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6684       # icc doesn't choke on unknown options, it will just issue warnings
6685       # or remarks (even with -Werror).  So we grep stderr for any message
6686       # that says an option was ignored or not supported.
6687       # When given -MP, icc 7.0 and 7.1 complain thusly:
6688       #   icc: Command line warning: ignoring option '-M'; no argument required
6689       # The diagnosis changed in icc 8.0:
6690       #   icc: Command line remark: option '-MP' not supported
6691       if (grep 'ignoring option' conftest.err ||
6692           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6693         am_cv_GCJ_dependencies_compiler_type=$depmode
6694         break
6695       fi
6696     fi
6697   done
6698
6699   cd ..
6700   rm -rf conftest.dir
6701 else
6702   am_cv_GCJ_dependencies_compiler_type=none
6703 fi
6704
6705 fi
6706 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6707 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6708 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6709
6710
6711
6712 if
6713   test "x$enable_dependency_tracking" != xno \
6714   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6715   am__fastdepGCJ_TRUE=
6716   am__fastdepGCJ_FALSE='#'
6717 else
6718   am__fastdepGCJ_TRUE='#'
6719   am__fastdepGCJ_FALSE=
6720 fi
6721
6722
6723
6724
6725 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6726 lt_save_CC="$CC"
6727 lt_save_CFLAGS="$CFLAGS"
6728 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6729 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6730 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6731 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6732 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6733 deplibs_check_method="$deplibs_check_method" \
6734 file_magic_cmd="$file_magic_cmd" \
6735 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6736 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6737 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6738 echo "$as_me: error: libtool tag configuration failed" >&2;}
6739    { (exit 1); exit 1; }; }
6740 CC="$lt_save_CC"
6741 CFLAGS="$lt_save_CFLAGS"
6742
6743 # Redirect the config.log output again, so that the ltconfig log is not
6744 # clobbered by the next message.
6745 exec 5>>./config.log
6746
6747
6748
6749 if test "x$CC" != xcc; then
6750   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6751 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6752 else
6753   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6754 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6755 fi
6756 set dummy $CC; ac_cc=`echo $2 |
6757                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6758 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 # Make sure it works both with $CC and with simple cc.
6777 # We do the test twice because some compilers refuse to overwrite an
6778 # existing .o file with -o, though they will create one.
6779 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6780 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); } &&
6785    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6786   (eval $ac_try) 2>&5
6787   ac_status=$?
6788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789   (exit $ac_status); };
6790 then
6791   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6792   if test "x$CC" != xcc; then
6793     # Test first that cc exists at all.
6794     if { ac_try='cc -c conftest.$ac_ext >&5'
6795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); }; }; then
6800       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6801       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802   (eval $ac_try) 2>&5
6803   ac_status=$?
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); } &&
6806          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807   (eval $ac_try) 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); };
6811       then
6812         # cc works too.
6813         :
6814       else
6815         # cc exists but doesn't like -o.
6816         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6817       fi
6818     fi
6819   fi
6820 else
6821   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6822 fi
6823 rm -f conftest*
6824
6825 fi
6826 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6827   echo "$as_me:$LINENO: result: yes" >&5
6828 echo "${ECHO_T}yes" >&6
6829 else
6830   echo "$as_me:$LINENO: result: no" >&5
6831 echo "${ECHO_T}no" >&6
6832
6833 cat >>confdefs.h <<\_ACEOF
6834 #define NO_MINUS_C_MINUS_O 1
6835 _ACEOF
6836
6837 fi
6838
6839 # FIXME: we rely on the cache variable name because
6840 # there is no other way.
6841 set dummy $CC
6842 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6843 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6844    # Losing compiler, so override with the script.
6845    # FIXME: It is wrong to rewrite CC.
6846    # But if we don't then we get into trouble of one sort or another.
6847    # A longer-term fix would be to have automake use am__CC in this case,
6848    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6849    CC="$am_aux_dir/compile $CC"
6850 fi
6851
6852
6853
6854
6855 subdirs="$subdirs classpath libltdl"
6856
6857
6858 # The -no-testsuite modules omit the test subdir.
6859
6860
6861 if test -d $srcdir/testsuite; then
6862   TESTSUBDIR_TRUE=
6863   TESTSUBDIR_FALSE='#'
6864 else
6865   TESTSUBDIR_TRUE='#'
6866   TESTSUBDIR_FALSE=
6867 fi
6868
6869
6870 # Should the runtime set system properties by examining the
6871 # environment variable GCJ_PROPERTIES?
6872 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6873 if test "${enable_getenv_properties+set}" = set; then
6874   enableval="$enable_getenv_properties"
6875
6876 fi;
6877
6878 # Whether GCJ_PROPERTIES is used depends on the target.
6879 if test -z "$enable_getenv_properties"; then
6880    enable_getenv_properties=${enable_getenv_properties_default-yes}
6881 fi
6882 if test "$enable_getenv_properties" = no; then
6883
6884 cat >>confdefs.h <<\_ACEOF
6885 #define DISABLE_GETENV_PROPERTIES 1
6886 _ACEOF
6887
6888 fi
6889
6890 # Whether we should use arguments to main()
6891 if test -z "$enable_main_args"; then
6892    enable_main_args=${enable_main_args_default-yes}
6893 fi
6894 if test "$enable_main_args" = no; then
6895
6896 cat >>confdefs.h <<\_ACEOF
6897 #define DISABLE_MAIN_ARGS 1
6898 _ACEOF
6899
6900 fi
6901
6902
6903 # Should we use hashtable-based synchronization?
6904 # Currently works only for Linux X86/ia64
6905 # Typically faster and more space-efficient
6906 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6907 if test "${enable_hash_synchronization+set}" = set; then
6908   enableval="$enable_hash_synchronization"
6909
6910 fi;
6911
6912 if test -z "$enable_hash_synchronization"; then
6913    enable_hash_synchronization=$enable_hash_synchronization_default
6914 fi
6915
6916
6917 install_ecj_jar=no
6918 ECJ_BUILD_JAR=
6919 ECJ_JAR=
6920
6921 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6922 if test "${with_ecj_jar+set}" = set; then
6923   withval="$with_ecj_jar"
6924   ECJ_JAR=$withval
6925 else
6926   if test -f $libgcj_basedir/../ecj.jar; then
6927            ECJ_BUILD_JAR=$libgcj_basedir/../ecj.jar
6928            ECJ_JAR='$(jardir)/ecj.jar'
6929            install_ecj_jar=yes
6930          fi
6931 fi;
6932
6933
6934
6935
6936 if test "$ECJ_JAR" != ""; then
6937   BUILD_ECJ1_TRUE=
6938   BUILD_ECJ1_FALSE='#'
6939 else
6940   BUILD_ECJ1_TRUE='#'
6941   BUILD_ECJ1_FALSE=
6942 fi
6943
6944
6945
6946 if test $install_ecj_jar = yes; then
6947   INSTALL_ECJ_JAR_TRUE=
6948   INSTALL_ECJ_JAR_FALSE='#'
6949 else
6950   INSTALL_ECJ_JAR_TRUE='#'
6951   INSTALL_ECJ_JAR_FALSE=
6952 fi
6953
6954
6955
6956 # Check whether --with-java-home or --without-java-home was given.
6957 if test "${with_java_home+set}" = set; then
6958   withval="$with_java_home"
6959   JAVA_HOME="${withval}"
6960 else
6961   JAVA_HOME=""
6962 fi;
6963
6964
6965 if test ! -z "$JAVA_HOME"; then
6966   JAVA_HOME_SET_TRUE=
6967   JAVA_HOME_SET_FALSE='#'
6968 else
6969   JAVA_HOME_SET_TRUE='#'
6970   JAVA_HOME_SET_FALSE=
6971 fi
6972
6973
6974
6975 # What is the native OS API for MinGW?
6976
6977 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6978 if test "${with_win32_nlsapi+set}" = set; then
6979   withval="$with_win32_nlsapi"
6980   case "${withval}" in
6981   ansi) with_win32_nlsapi=ansi ;;
6982   unicows) with_win32_nlsapi=unicows ;;
6983   unicode) with_win32_nlsapi=unicode ;;
6984   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6985 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6986    { (exit 1); exit 1; }; } ;;
6987 esac
6988 else
6989   with_win32_nlsapi=ansi
6990 fi;
6991
6992 case "${with_win32_nlsapi}" in
6993   unicows | unicode)
6994
6995 cat >>confdefs.h <<\_ACEOF
6996 #define MINGW_LIBGCJ_UNICODE 1
6997 _ACEOF
6998
6999     ;;
7000 esac
7001
7002 # configure.host sets slow_pthread_self if the synchronization code should
7003 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7004 if test "${slow_pthread_self}" = "yes"; then
7005
7006 cat >>confdefs.h <<\_ACEOF
7007 #define SLOW_PTHREAD_SELF 1
7008 _ACEOF
7009
7010 fi
7011
7012 # Check for gc debugging.  This option is handled both here and in the GC.
7013 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7014 if test "${enable_gc_debug+set}" = set; then
7015   enableval="$enable_gc_debug"
7016    if test "$enable_gc_debug" = "yes"; then
7017
7018 cat >>confdefs.h <<\_ACEOF
7019 #define LIBGCJ_GC_DEBUG 1
7020 _ACEOF
7021
7022   fi
7023 fi;
7024
7025 # See if the user has the interpreter included.
7026 # Check whether --enable-interpreter or --disable-interpreter was given.
7027 if test "${enable_interpreter+set}" = set; then
7028   enableval="$enable_interpreter"
7029   if test "$enable_interpreter" = yes; then
7030     # This can also be set in configure.host.
7031     libgcj_interpreter=yes
7032   elif test "$enable_interpreter" = no; then
7033     libgcj_interpreter=no
7034   fi
7035 fi;
7036
7037 if test "$libgcj_interpreter" = yes; then
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define INTERPRETER 1
7041 _ACEOF
7042
7043 fi
7044 INTERPRETER="$libgcj_interpreter"
7045
7046
7047 echo "$as_me:$LINENO: checking for exception model to use" >&5
7048 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7049 ac_ext=cc
7050 ac_cpp='$CXXCPP $CPPFLAGS'
7051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7054
7055 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7056 if test "${enable_sjlj_exceptions+set}" = set; then
7057   enableval="$enable_sjlj_exceptions"
7058   :
7059 else
7060   cat > conftest.$ac_ext << EOF
7061 #line 7061 "configure"
7062 struct S { ~S(); };
7063 void bar();
7064 void foo()
7065 {
7066   S s;
7067   bar();
7068 }
7069 EOF
7070 old_CXXFLAGS="$CXXFLAGS"
7071 CXXFLAGS=-S
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073   (eval $ac_compile) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; then
7077   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7078     enable_sjlj_exceptions=yes
7079   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7080     enable_sjlj_exceptions=no
7081   fi
7082 fi
7083 CXXFLAGS="$old_CXXFLAGS"
7084 rm -f conftest*
7085 fi;
7086 if test x$enable_sjlj_exceptions = xyes; then
7087
7088 cat >>confdefs.h <<\_ACEOF
7089 #define SJLJ_EXCEPTIONS 1
7090 _ACEOF
7091
7092   ac_exception_model_name=sjlj
7093 elif test x$enable_sjlj_exceptions = xno; then
7094   ac_exception_model_name="call frame"
7095 else
7096   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7097 echo "$as_me: error: unable to detect exception model" >&2;}
7098    { (exit 1); exit 1; }; }
7099 fi
7100 ac_ext=c
7101 ac_cpp='$CPP $CPPFLAGS'
7102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105
7106 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7107 echo "${ECHO_T}$ac_exception_model_name" >&6
7108
7109 # If we are non using SJLJ exceptions, and this host does not have support
7110 # for unwinding from a signal handler, enable checked dereferences and divides.
7111 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7112   CHECKREFSPEC=-fcheck-references
7113   DIVIDESPEC=-fuse-divide-subroutine
7114   EXCEPTIONSPEC=
7115 fi
7116
7117 # See if the user wants to disable java.net.  This is the mildly
7118 # ugly way that we admit that target-side configuration sucks.
7119 # Check whether --enable-java-net or --disable-java-net was given.
7120 if test "${enable_java_net+set}" = set; then
7121   enableval="$enable_java_net"
7122
7123 fi;
7124
7125 # Whether java.net is built by default can depend on the target.
7126 if test -z "$enable_java_net"; then
7127    enable_java_net=${enable_java_net_default-yes}
7128 fi
7129 if test "$enable_java_net" = no; then
7130
7131 cat >>confdefs.h <<\_ACEOF
7132 #define DISABLE_JAVA_NET 1
7133 _ACEOF
7134
7135 fi
7136
7137 # See if the user wants to configure without libffi.  Some
7138 # architectures don't support it, and default values are set in
7139 # configure.host.
7140
7141 # Check whether --with-libffi or --without-libffi was given.
7142 if test "${with_libffi+set}" = set; then
7143   withval="$with_libffi"
7144   :
7145 else
7146   with_libffi=${with_libffi_default-yes}
7147 fi;
7148
7149 LIBFFI=
7150 LIBFFIINCS=
7151 if test "$with_libffi" != no; then
7152
7153 cat >>confdefs.h <<\_ACEOF
7154 #define USE_LIBFFI 1
7155 _ACEOF
7156
7157    LIBFFI=../libffi/libffi_convenience.la
7158    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7159 fi
7160
7161
7162
7163 # See if the user wants to disable JVMPI support.
7164 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7165 if test "${enable_jvmpi+set}" = set; then
7166   enableval="$enable_jvmpi"
7167
7168 fi;
7169
7170 if test "$enable_jvmpi" != no; then
7171
7172 cat >>confdefs.h <<\_ACEOF
7173 #define ENABLE_JVMPI 1
7174 _ACEOF
7175
7176 fi
7177
7178 # If the target is an eCos system, use the appropriate eCos
7179 # I/O routines.
7180 # FIXME: this should not be a local option but a global target
7181 # system; at present there is no eCos target.
7182 TARGET_ECOS=${PROCESS-"no"}
7183
7184 # Check whether --with-ecos or --without-ecos was given.
7185 if test "${with_ecos+set}" = set; then
7186   withval="$with_ecos"
7187   TARGET_ECOS="$with_ecos"
7188
7189 fi;
7190
7191 case "$TARGET_ECOS" in
7192    no) case "$host" in
7193       *mingw*)
7194             PLATFORM=Win32
7195             PLATFORMNET=Win32
7196             PLATFORMH=win32.h
7197
7198 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7199 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7200 LD_PROG=`$CC --print-prog-name=ld`
7201 LD_VERSION=`$LD_PROG --version`
7202 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7203 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7204 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7205   LD_OK="ok"
7206 else
7207   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7208     LD_OK="ok"
7209   fi
7210 fi
7211 if test "x$LD_OK" != x; then
7212   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7213 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7214 else
7215   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7216 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7217   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7218 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7219
7220 cat >>confdefs.h <<\_ACEOF
7221 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7222 _ACEOF
7223
7224 fi
7225       ;;
7226       *)
7227             PLATFORM=Posix
7228             PLATFORMNET=Posix
7229             PLATFORMH=posix.h
7230       ;;
7231       esac
7232       ;;
7233    *)
7234       PLATFORM=Ecos
7235       PLATFORMNET=NoNet
7236
7237 cat >>confdefs.h <<\_ACEOF
7238 #define ECOS 1
7239 _ACEOF
7240
7241       PLATFORMH=posix.h
7242       ;;
7243 esac
7244
7245           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7246
7247
7248 ac_ext=c
7249 ac_cpp='$CPP $CPPFLAGS'
7250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7254 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7255 # On Suns, sometimes $CPP names a directory.
7256 if test -n "$CPP" && test -d "$CPP"; then
7257   CPP=
7258 fi
7259 if test -z "$CPP"; then
7260   if test "${ac_cv_prog_CPP+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263       # Double quotes because CPP needs to be expanded
7264     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7265     do
7266       ac_preproc_ok=false
7267 for ac_c_preproc_warn_flag in '' yes
7268 do
7269   # Use a header file that comes with gcc, so configuring glibc
7270   # with a fresh cross-compiler works.
7271   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7272   # <limits.h> exists even on freestanding compilers.
7273   # On the NeXT, cc -E runs the code through the compiler's parser,
7274   # not just through cpp. "Syntax error" is here to catch this case.
7275   cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h.  */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h.  */
7281 #ifdef __STDC__
7282 # include <limits.h>
7283 #else
7284 # include <assert.h>
7285 #endif
7286                      Syntax error
7287 _ACEOF
7288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7290   ac_status=$?
7291   grep -v '^ *+' conftest.er1 >conftest.err
7292   rm -f conftest.er1
7293   cat conftest.err >&5
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); } >/dev/null; then
7296   if test -s conftest.err; then
7297     ac_cpp_err=$ac_c_preproc_warn_flag
7298     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7299   else
7300     ac_cpp_err=
7301   fi
7302 else
7303   ac_cpp_err=yes
7304 fi
7305 if test -z "$ac_cpp_err"; then
7306   :
7307 else
7308   echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.$ac_ext >&5
7310
7311   # Broken: fails on valid input.
7312 continue
7313 fi
7314 rm -f conftest.err conftest.$ac_ext
7315
7316   # OK, works on sane cases.  Now check whether non-existent headers
7317   # can be detected and how.
7318   cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h.  */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h.  */
7324 #include <ac_nonexistent.h>
7325 _ACEOF
7326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7328   ac_status=$?
7329   grep -v '^ *+' conftest.er1 >conftest.err
7330   rm -f conftest.er1
7331   cat conftest.err >&5
7332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333   (exit $ac_status); } >/dev/null; then
7334   if test -s conftest.err; then
7335     ac_cpp_err=$ac_c_preproc_warn_flag
7336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7337   else
7338     ac_cpp_err=
7339   fi
7340 else
7341   ac_cpp_err=yes
7342 fi
7343 if test -z "$ac_cpp_err"; then
7344   # Broken: success on invalid input.
7345 continue
7346 else
7347   echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350   # Passes both tests.
7351 ac_preproc_ok=:
7352 break
7353 fi
7354 rm -f conftest.err conftest.$ac_ext
7355
7356 done
7357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7358 rm -f conftest.err conftest.$ac_ext
7359 if $ac_preproc_ok; then
7360   break
7361 fi
7362
7363     done
7364     ac_cv_prog_CPP=$CPP
7365
7366 fi
7367   CPP=$ac_cv_prog_CPP
7368 else
7369   ac_cv_prog_CPP=$CPP
7370 fi
7371 echo "$as_me:$LINENO: result: $CPP" >&5
7372 echo "${ECHO_T}$CPP" >&6
7373 ac_preproc_ok=false
7374 for ac_c_preproc_warn_flag in '' yes
7375 do
7376   # Use a header file that comes with gcc, so configuring glibc
7377   # with a fresh cross-compiler works.
7378   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379   # <limits.h> exists even on freestanding compilers.
7380   # On the NeXT, cc -E runs the code through the compiler's parser,
7381   # not just through cpp. "Syntax error" is here to catch this case.
7382   cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388 #ifdef __STDC__
7389 # include <limits.h>
7390 #else
7391 # include <assert.h>
7392 #endif
7393                      Syntax error
7394 _ACEOF
7395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7396   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7397   ac_status=$?
7398   grep -v '^ *+' conftest.er1 >conftest.err
7399   rm -f conftest.er1
7400   cat conftest.err >&5
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); } >/dev/null; then
7403   if test -s conftest.err; then
7404     ac_cpp_err=$ac_c_preproc_warn_flag
7405     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7406   else
7407     ac_cpp_err=
7408   fi
7409 else
7410   ac_cpp_err=yes
7411 fi
7412 if test -z "$ac_cpp_err"; then
7413   :
7414 else
7415   echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7417
7418   # Broken: fails on valid input.
7419 continue
7420 fi
7421 rm -f conftest.err conftest.$ac_ext
7422
7423   # OK, works on sane cases.  Now check whether non-existent headers
7424   # can be detected and how.
7425   cat >conftest.$ac_ext <<_ACEOF
7426 /* confdefs.h.  */
7427 _ACEOF
7428 cat confdefs.h >>conftest.$ac_ext
7429 cat >>conftest.$ac_ext <<_ACEOF
7430 /* end confdefs.h.  */
7431 #include <ac_nonexistent.h>
7432 _ACEOF
7433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7435   ac_status=$?
7436   grep -v '^ *+' conftest.er1 >conftest.err
7437   rm -f conftest.er1
7438   cat conftest.err >&5
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } >/dev/null; then
7441   if test -s conftest.err; then
7442     ac_cpp_err=$ac_c_preproc_warn_flag
7443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7444   else
7445     ac_cpp_err=
7446   fi
7447 else
7448   ac_cpp_err=yes
7449 fi
7450 if test -z "$ac_cpp_err"; then
7451   # Broken: success on invalid input.
7452 continue
7453 else
7454   echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457   # Passes both tests.
7458 ac_preproc_ok=:
7459 break
7460 fi
7461 rm -f conftest.err conftest.$ac_ext
7462
7463 done
7464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7465 rm -f conftest.err conftest.$ac_ext
7466 if $ac_preproc_ok; then
7467   :
7468 else
7469   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7470 See \`config.log' for more details." >&5
7471 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7472 See \`config.log' for more details." >&2;}
7473    { (exit 1); exit 1; }; }
7474 fi
7475
7476 ac_ext=c
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481
7482
7483 echo "$as_me:$LINENO: checking for egrep" >&5
7484 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7485 if test "${ac_cv_prog_egrep+set}" = set; then
7486   echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7489     then ac_cv_prog_egrep='grep -E'
7490     else ac_cv_prog_egrep='egrep'
7491     fi
7492 fi
7493 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7494 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7495  EGREP=$ac_cv_prog_egrep
7496
7497
7498 cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h.  */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h.  */
7504 #include <stdint.h>
7505
7506 _ACEOF
7507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7508   $EGREP "uint32_t" >/dev/null 2>&1; then
7509
7510 cat >>confdefs.h <<\_ACEOF
7511 #define HAVE_INT32_DEFINED 1
7512 _ACEOF
7513
7514 fi
7515 rm -f conftest*
7516
7517 cat >conftest.$ac_ext <<_ACEOF
7518 /* confdefs.h.  */
7519 _ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h.  */
7523 #include <inttypes.h>
7524
7525 _ACEOF
7526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7527   $EGREP "uint32_t" >/dev/null 2>&1; then
7528
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_INT32_DEFINED 1
7531 _ACEOF
7532
7533 fi
7534 rm -f conftest*
7535
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h.  */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h.  */
7542 #include <sys/types.h>
7543
7544 _ACEOF
7545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7546   $EGREP "u_int32_t" >/dev/null 2>&1; then
7547
7548 cat >>confdefs.h <<\_ACEOF
7549 #define HAVE_BSD_INT32_DEFINED 1
7550 _ACEOF
7551
7552 fi
7553 rm -f conftest*
7554
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h.  */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h.  */
7561 #include <sys/config.h>
7562
7563 _ACEOF
7564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7565   $EGREP "u_int32_t" >/dev/null 2>&1; then
7566
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_BSD_INT32_DEFINED 1
7569 _ACEOF
7570
7571 fi
7572 rm -f conftest*
7573
7574
7575
7576
7577 if test "$PLATFORM" = Win32; then
7578   USING_WIN32_PLATFORM_TRUE=
7579   USING_WIN32_PLATFORM_FALSE='#'
7580 else
7581   USING_WIN32_PLATFORM_TRUE='#'
7582   USING_WIN32_PLATFORM_FALSE=
7583 fi
7584
7585
7586
7587 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7588   USING_POSIX_PLATFORM_TRUE=
7589   USING_POSIX_PLATFORM_FALSE='#'
7590 else
7591   USING_POSIX_PLATFORM_TRUE='#'
7592   USING_POSIX_PLATFORM_FALSE=
7593 fi
7594
7595
7596 case "$host" in
7597   *-darwin*) DARWIN_CRT=true ;;
7598   *) DARWIN_CRT=false ;;
7599 esac
7600
7601
7602 if $DARWIN_CRT; then
7603   USING_DARWIN_CRT_TRUE=
7604   USING_DARWIN_CRT_FALSE='#'
7605 else
7606   USING_DARWIN_CRT_TRUE='#'
7607   USING_DARWIN_CRT_FALSE=
7608 fi
7609
7610
7611 # These may not be defined in a non-ANS conformant embedded system.
7612 # FIXME: Should these case a runtime exception in that case?
7613 cat >conftest.$ac_ext <<_ACEOF
7614 /* confdefs.h.  */
7615 _ACEOF
7616 cat confdefs.h >>conftest.$ac_ext
7617 cat >>conftest.$ac_ext <<_ACEOF
7618 /* end confdefs.h.  */
7619 #include <time.h>
7620
7621 _ACEOF
7622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7623   $EGREP "mktime" >/dev/null 2>&1; then
7624
7625 cat >>confdefs.h <<\_ACEOF
7626 #define HAVE_MKTIME 1
7627 _ACEOF
7628
7629 fi
7630 rm -f conftest*
7631
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h.  */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h.  */
7638 #include <time.h>
7639
7640 _ACEOF
7641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7642   $EGREP "localtime" >/dev/null 2>&1; then
7643
7644 cat >>confdefs.h <<\_ACEOF
7645 #define HAVE_LOCALTIME 1
7646 _ACEOF
7647
7648 fi
7649 rm -f conftest*
7650
7651
7652 # Create the subdirectory for natFile.cc, or the attempt
7653 # to create the link will fail.
7654 test -d java || mkdir java
7655 test -d java/io || mkdir java/io
7656 test -d gnu || mkdir gnu
7657           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7658
7659
7660 # Likewise for natConcreteProcess.cc.
7661 test -d java/lang || mkdir java/lang
7662           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7663
7664
7665 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7666 test -d java/net || mkdir java/net
7667           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7668
7669           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7670
7671
7672 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7673 test -d gnu/java || mkdir gnu/java
7674 test -d gnu/java/net || mkdir gnu/java/net
7675           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7676
7677           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7678
7679
7680 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7681 test -d gnu/java/nio || mkdir gnu/java/nio
7682           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7683
7684           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7685
7686 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7687           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7688
7689
7690 case "${host}" in
7691     *mingw*)
7692       SYSTEMSPEC="-lgdi32 -lws2_32"
7693       if test "${with_win32_nlsapi}" = "unicows"; then
7694         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7695       fi
7696     ;;
7697     *)
7698       SYSTEMSPEC=
7699     ;;
7700 esac
7701
7702
7703 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7704
7705
7706
7707 # Check whether --with-system-zlib or --without-system-zlib was given.
7708 if test "${with_system_zlib+set}" = set; then
7709   withval="$with_system_zlib"
7710
7711 fi;
7712 ZLIBSPEC=
7713
7714 ZLIBTESTSPEC=
7715
7716
7717 echo "$as_me:$LINENO: checking for X" >&5
7718 echo $ECHO_N "checking for X... $ECHO_C" >&6
7719
7720
7721 # Check whether --with-x or --without-x was given.
7722 if test "${with_x+set}" = set; then
7723   withval="$with_x"
7724
7725 fi;
7726 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7727 if test "x$with_x" = xno; then
7728   # The user explicitly disabled X.
7729   have_x=disabled
7730 else
7731   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7732     # Both variables are already set.
7733     have_x=yes
7734   else
7735     if test "${ac_cv_have_x+set}" = set; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   # One or both of the vars are not set, and there is no cached value.
7739 ac_x_includes=no ac_x_libraries=no
7740 rm -fr conftest.dir
7741 if mkdir conftest.dir; then
7742   cd conftest.dir
7743   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7744   cat >Imakefile <<'_ACEOF'
7745 acfindx:
7746         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7747 _ACEOF
7748   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7749     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7750     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7751     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7752     for ac_extension in a so sl; do
7753       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7754          test -f $ac_im_libdir/libX11.$ac_extension; then
7755         ac_im_usrlibdir=$ac_im_libdir; break
7756       fi
7757     done
7758     # Screen out bogus values from the imake configuration.  They are
7759     # bogus both because they are the default anyway, and because
7760     # using them would break gcc on systems where it needs fixed includes.
7761     case $ac_im_incroot in
7762         /usr/include) ;;
7763         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7764     esac
7765     case $ac_im_usrlibdir in
7766         /usr/lib | /lib) ;;
7767         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7768     esac
7769   fi
7770   cd ..
7771   rm -fr conftest.dir
7772 fi
7773
7774 # Standard set of common directories for X headers.
7775 # Check X11 before X11Rn because it is often a symlink to the current release.
7776 ac_x_header_dirs='
7777 /usr/X11/include
7778 /usr/X11R6/include
7779 /usr/X11R5/include
7780 /usr/X11R4/include
7781
7782 /usr/include/X11
7783 /usr/include/X11R6
7784 /usr/include/X11R5
7785 /usr/include/X11R4
7786
7787 /usr/local/X11/include
7788 /usr/local/X11R6/include
7789 /usr/local/X11R5/include
7790 /usr/local/X11R4/include
7791
7792 /usr/local/include/X11
7793 /usr/local/include/X11R6
7794 /usr/local/include/X11R5
7795 /usr/local/include/X11R4
7796
7797 /usr/X386/include
7798 /usr/x386/include
7799 /usr/XFree86/include/X11
7800
7801 /usr/include
7802 /usr/local/include
7803 /usr/unsupported/include
7804 /usr/athena/include
7805 /usr/local/x11r5/include
7806 /usr/lpp/Xamples/include
7807
7808 /usr/openwin/include
7809 /usr/openwin/share/include'
7810
7811 if test "$ac_x_includes" = no; then
7812   # Guess where to find include files, by looking for Xlib.h.
7813   # First, try using that file with no special directory specified.
7814   cat >conftest.$ac_ext <<_ACEOF
7815 /* confdefs.h.  */
7816 _ACEOF
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h.  */
7820 #include <X11/Xlib.h>
7821 _ACEOF
7822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7823   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7824   ac_status=$?
7825   grep -v '^ *+' conftest.er1 >conftest.err
7826   rm -f conftest.er1
7827   cat conftest.err >&5
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); } >/dev/null; then
7830   if test -s conftest.err; then
7831     ac_cpp_err=$ac_c_preproc_warn_flag
7832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7833   else
7834     ac_cpp_err=
7835   fi
7836 else
7837   ac_cpp_err=yes
7838 fi
7839 if test -z "$ac_cpp_err"; then
7840   # We can compile using X headers with no special include directory.
7841 ac_x_includes=
7842 else
7843   echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846   for ac_dir in $ac_x_header_dirs; do
7847   if test -r "$ac_dir/X11/Xlib.h"; then
7848     ac_x_includes=$ac_dir
7849     break
7850   fi
7851 done
7852 fi
7853 rm -f conftest.err conftest.$ac_ext
7854 fi # $ac_x_includes = no
7855
7856 if test "$ac_x_libraries" = no; then
7857   # Check for the libraries.
7858   # See if we find them without any special options.
7859   # Don't add to $LIBS permanently.
7860   ac_save_LIBS=$LIBS
7861   LIBS="-lX11 $LIBS"
7862   if test x$gcc_no_link = xyes; then
7863   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7865    { (exit 1); exit 1; }; }
7866 fi
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873 #include <X11/Xlib.h>
7874 int
7875 main ()
7876 {
7877 XrmInitialize ()
7878   ;
7879   return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext conftest$ac_exeext
7883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7884   (eval $ac_link) 2>conftest.er1
7885   ac_status=$?
7886   grep -v '^ *+' conftest.er1 >conftest.err
7887   rm -f conftest.er1
7888   cat conftest.err >&5
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); } &&
7891          { ac_try='test -z "$ac_c_werror_flag"
7892                          || test ! -s conftest.err'
7893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894   (eval $ac_try) 2>&5
7895   ac_status=$?
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); }; } &&
7898          { ac_try='test -s conftest$ac_exeext'
7899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900   (eval $ac_try) 2>&5
7901   ac_status=$?
7902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903   (exit $ac_status); }; }; then
7904   LIBS=$ac_save_LIBS
7905 # We can link X programs with no special library path.
7906 ac_x_libraries=
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 LIBS=$ac_save_LIBS
7912 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7913 do
7914   # Don't even attempt the hair of trying to link an X program!
7915   for ac_extension in a so sl; do
7916     if test -r $ac_dir/libXt.$ac_extension; then
7917       ac_x_libraries=$ac_dir
7918       break 2
7919     fi
7920   done
7921 done
7922 fi
7923 rm -f conftest.err conftest.$ac_objext \
7924       conftest$ac_exeext conftest.$ac_ext
7925 fi # $ac_x_libraries = no
7926
7927 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7928   # Didn't find X anywhere.  Cache the known absence of X.
7929   ac_cv_have_x="have_x=no"
7930 else
7931   # Record where we found X for the cache.
7932   ac_cv_have_x="have_x=yes \
7933                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7934 fi
7935 fi
7936
7937   fi
7938   eval "$ac_cv_have_x"
7939 fi # $with_x != no
7940
7941 if test "$have_x" != yes; then
7942   echo "$as_me:$LINENO: result: $have_x" >&5
7943 echo "${ECHO_T}$have_x" >&6
7944   no_x=yes
7945 else
7946   # If each of the values was on the command line, it overrides each guess.
7947   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7948   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7949   # Update the cache value to reflect the command line values.
7950   ac_cv_have_x="have_x=yes \
7951                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7952   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7953 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7954 fi
7955
7956 if test "$no_x" = yes; then
7957   # Not all programs may use this symbol, but it does not hurt to define it.
7958
7959 cat >>confdefs.h <<\_ACEOF
7960 #define X_DISPLAY_MISSING 1
7961 _ACEOF
7962
7963   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7964 else
7965   if test -n "$x_includes"; then
7966     X_CFLAGS="$X_CFLAGS -I$x_includes"
7967   fi
7968
7969   # It would also be nice to do this for all -L options, not just this one.
7970   if test -n "$x_libraries"; then
7971     X_LIBS="$X_LIBS -L$x_libraries"
7972     # For Solaris; some versions of Sun CC require a space after -R and
7973     # others require no space.  Words are not sufficient . . . .
7974     case `(uname -sr) 2>/dev/null` in
7975     "SunOS 5"*)
7976       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7977 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7978       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7979       if test x$gcc_no_link = xyes; then
7980   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7982    { (exit 1); exit 1; }; }
7983 fi
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990
7991 int
7992 main ()
7993 {
7994
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8001   (eval $ac_link) 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } &&
8008          { ac_try='test -z "$ac_c_werror_flag"
8009                          || test ! -s conftest.err'
8010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8011   (eval $ac_try) 2>&5
8012   ac_status=$?
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   (exit $ac_status); }; } &&
8015          { ac_try='test -s conftest$ac_exeext'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; }; then
8021   ac_R_nospace=yes
8022 else
8023   echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 ac_R_nospace=no
8027 fi
8028 rm -f conftest.err conftest.$ac_objext \
8029       conftest$ac_exeext conftest.$ac_ext
8030       if test $ac_R_nospace = yes; then
8031         echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8033         X_LIBS="$X_LIBS -R$x_libraries"
8034       else
8035         LIBS="$ac_xsave_LIBS -R $x_libraries"
8036         if test x$gcc_no_link = xyes; then
8037   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8039    { (exit 1); exit 1; }; }
8040 fi
8041 cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047
8048 int
8049 main ()
8050 {
8051
8052   ;
8053   return 0;
8054 }
8055 _ACEOF
8056 rm -f conftest.$ac_objext conftest$ac_exeext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8058   (eval $ac_link) 2>conftest.er1
8059   ac_status=$?
8060   grep -v '^ *+' conftest.er1 >conftest.err
8061   rm -f conftest.er1
8062   cat conftest.err >&5
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); } &&
8065          { ac_try='test -z "$ac_c_werror_flag"
8066                          || test ! -s conftest.err'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest$ac_exeext'
8073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074   (eval $ac_try) 2>&5
8075   ac_status=$?
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); }; }; then
8078   ac_R_space=yes
8079 else
8080   echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_R_space=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext \
8086       conftest$ac_exeext conftest.$ac_ext
8087         if test $ac_R_space = yes; then
8088           echo "$as_me:$LINENO: result: yes" >&5
8089 echo "${ECHO_T}yes" >&6
8090           X_LIBS="$X_LIBS -R $x_libraries"
8091         else
8092           echo "$as_me:$LINENO: result: neither works" >&5
8093 echo "${ECHO_T}neither works" >&6
8094         fi
8095       fi
8096       LIBS=$ac_xsave_LIBS
8097     esac
8098   fi
8099
8100   # Check for system-dependent libraries X programs must link with.
8101   # Do this before checking for the system-independent R6 libraries
8102   # (-lICE), since we may need -lsocket or whatever for X linking.
8103
8104   if test "$ISC" = yes; then
8105     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8106   else
8107     # Martyn Johnson says this is needed for Ultrix, if the X
8108     # libraries were built with DECnet support.  And Karl Berry says
8109     # the Alpha needs dnet_stub (dnet does not exist).
8110     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8111     if test x$gcc_no_link = xyes; then
8112   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8113 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8114    { (exit 1); exit 1; }; }
8115 fi
8116 cat >conftest.$ac_ext <<_ACEOF
8117 /* confdefs.h.  */
8118 _ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h.  */
8122
8123 /* Override any gcc2 internal prototype to avoid an error.  */
8124 #ifdef __cplusplus
8125 extern "C"
8126 #endif
8127 /* We use char because int might match the return type of a gcc2
8128    builtin and then its argument prototype would still apply.  */
8129 char XOpenDisplay ();
8130 int
8131 main ()
8132 {
8133 XOpenDisplay ();
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140   (eval $ac_link) 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } &&
8147          { ac_try='test -z "$ac_c_werror_flag"
8148                          || test ! -s conftest.err'
8149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150   (eval $ac_try) 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; } &&
8154          { ac_try='test -s conftest$ac_exeext'
8155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156   (eval $ac_try) 2>&5
8157   ac_status=$?
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); }; }; then
8160   :
8161 else
8162   echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8166 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8167 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170   ac_check_lib_save_LIBS=$LIBS
8171 LIBS="-ldnet  $LIBS"
8172 if test x$gcc_no_link = xyes; then
8173   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8174 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8175    { (exit 1); exit 1; }; }
8176 fi
8177 cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183
8184 /* Override any gcc2 internal prototype to avoid an error.  */
8185 #ifdef __cplusplus
8186 extern "C"
8187 #endif
8188 /* We use char because int might match the return type of a gcc2
8189    builtin and then its argument prototype would still apply.  */
8190 char dnet_ntoa ();
8191 int
8192 main ()
8193 {
8194 dnet_ntoa ();
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201   (eval $ac_link) 2>conftest.er1
8202   ac_status=$?
8203   grep -v '^ *+' conftest.er1 >conftest.err
8204   rm -f conftest.er1
8205   cat conftest.err >&5
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -z "$ac_c_werror_flag"
8209                          || test ! -s conftest.err'
8210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211   (eval $ac_try) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; } &&
8215          { ac_try='test -s conftest$ac_exeext'
8216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217   (eval $ac_try) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; }; then
8221   ac_cv_lib_dnet_dnet_ntoa=yes
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_cv_lib_dnet_dnet_ntoa=no
8227 fi
8228 rm -f conftest.err conftest.$ac_objext \
8229       conftest$ac_exeext conftest.$ac_ext
8230 LIBS=$ac_check_lib_save_LIBS
8231 fi
8232 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8233 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8234 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8235   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8236 fi
8237
8238     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8239       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8240 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8241 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8242   echo $ECHO_N "(cached) $ECHO_C" >&6
8243 else
8244   ac_check_lib_save_LIBS=$LIBS
8245 LIBS="-ldnet_stub  $LIBS"
8246 if test x$gcc_no_link = xyes; then
8247   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8249    { (exit 1); exit 1; }; }
8250 fi
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257
8258 /* Override any gcc2 internal prototype to avoid an error.  */
8259 #ifdef __cplusplus
8260 extern "C"
8261 #endif
8262 /* We use char because int might match the return type of a gcc2
8263    builtin and then its argument prototype would still apply.  */
8264 char dnet_ntoa ();
8265 int
8266 main ()
8267 {
8268 dnet_ntoa ();
8269   ;
8270   return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8275   (eval $ac_link) 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } &&
8282          { ac_try='test -z "$ac_c_werror_flag"
8283                          || test ! -s conftest.err'
8284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285   (eval $ac_try) 2>&5
8286   ac_status=$?
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); }; } &&
8289          { ac_try='test -s conftest$ac_exeext'
8290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291   (eval $ac_try) 2>&5
8292   ac_status=$?
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); }; }; then
8295   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8296 else
8297   echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ac_cv_lib_dnet_stub_dnet_ntoa=no
8301 fi
8302 rm -f conftest.err conftest.$ac_objext \
8303       conftest$ac_exeext conftest.$ac_ext
8304 LIBS=$ac_check_lib_save_LIBS
8305 fi
8306 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8307 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8308 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8309   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8310 fi
8311
8312     fi
8313 fi
8314 rm -f conftest.err conftest.$ac_objext \
8315       conftest$ac_exeext conftest.$ac_ext
8316     LIBS="$ac_xsave_LIBS"
8317
8318     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8319     # to get the SysV transport functions.
8320     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8321     # needs -lnsl.
8322     # The nsl library prevents programs from opening the X display
8323     # on Irix 5.2, according to T.E. Dickey.
8324     # The functions gethostbyname, getservbyname, and inet_addr are
8325     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8326     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8327 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8328 if test "${ac_cv_func_gethostbyname+set}" = set; then
8329   echo $ECHO_N "(cached) $ECHO_C" >&6
8330 else
8331   if test x$gcc_no_link = xyes; then
8332   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8334    { (exit 1); exit 1; }; }
8335 fi
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8344 #define gethostbyname innocuous_gethostbyname
8345
8346 /* System header to define __stub macros and hopefully few prototypes,
8347     which can conflict with char gethostbyname (); below.
8348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8349     <limits.h> exists even on freestanding compilers.  */
8350
8351 #ifdef __STDC__
8352 # include <limits.h>
8353 #else
8354 # include <assert.h>
8355 #endif
8356
8357 #undef gethostbyname
8358
8359 /* Override any gcc2 internal prototype to avoid an error.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 {
8363 #endif
8364 /* We use char because int might match the return type of a gcc2
8365    builtin and then its argument prototype would still apply.  */
8366 char gethostbyname ();
8367 /* The GNU C library defines this for functions which it implements
8368     to always fail with ENOSYS.  Some functions are actually named
8369     something starting with __ and the normal name is an alias.  */
8370 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8371 choke me
8372 #else
8373 char (*f) () = gethostbyname;
8374 #endif
8375 #ifdef __cplusplus
8376 }
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 return f != gethostbyname;
8383   ;
8384   return 0;
8385 }
8386 _ACEOF
8387 rm -f conftest.$ac_objext conftest$ac_exeext
8388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8389   (eval $ac_link) 2>conftest.er1
8390   ac_status=$?
8391   grep -v '^ *+' conftest.er1 >conftest.err
8392   rm -f conftest.er1
8393   cat conftest.err >&5
8394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395   (exit $ac_status); } &&
8396          { ac_try='test -z "$ac_c_werror_flag"
8397                          || test ! -s conftest.err'
8398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399   (eval $ac_try) 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); }; } &&
8403          { ac_try='test -s conftest$ac_exeext'
8404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405   (eval $ac_try) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; }; then
8409   ac_cv_func_gethostbyname=yes
8410 else
8411   echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414 ac_cv_func_gethostbyname=no
8415 fi
8416 rm -f conftest.err conftest.$ac_objext \
8417       conftest$ac_exeext conftest.$ac_ext
8418 fi
8419 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8420 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8421
8422     if test $ac_cv_func_gethostbyname = no; then
8423       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8424 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8425 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   ac_check_lib_save_LIBS=$LIBS
8429 LIBS="-lnsl  $LIBS"
8430 if test x$gcc_no_link = xyes; then
8431   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8432 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8433    { (exit 1); exit 1; }; }
8434 fi
8435 cat >conftest.$ac_ext <<_ACEOF
8436 /* confdefs.h.  */
8437 _ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h.  */
8441
8442 /* Override any gcc2 internal prototype to avoid an error.  */
8443 #ifdef __cplusplus
8444 extern "C"
8445 #endif
8446 /* We use char because int might match the return type of a gcc2
8447    builtin and then its argument prototype would still apply.  */
8448 char gethostbyname ();
8449 int
8450 main ()
8451 {
8452 gethostbyname ();
8453   ;
8454   return 0;
8455 }
8456 _ACEOF
8457 rm -f conftest.$ac_objext conftest$ac_exeext
8458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459   (eval $ac_link) 2>conftest.er1
8460   ac_status=$?
8461   grep -v '^ *+' conftest.er1 >conftest.err
8462   rm -f conftest.er1
8463   cat conftest.err >&5
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); } &&
8466          { ac_try='test -z "$ac_c_werror_flag"
8467                          || test ! -s conftest.err'
8468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469   (eval $ac_try) 2>&5
8470   ac_status=$?
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); }; } &&
8473          { ac_try='test -s conftest$ac_exeext'
8474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475   (eval $ac_try) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); }; }; then
8479   ac_cv_lib_nsl_gethostbyname=yes
8480 else
8481   echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 ac_cv_lib_nsl_gethostbyname=no
8485 fi
8486 rm -f conftest.err conftest.$ac_objext \
8487       conftest$ac_exeext conftest.$ac_ext
8488 LIBS=$ac_check_lib_save_LIBS
8489 fi
8490 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8491 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8492 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8493   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8494 fi
8495
8496       if test $ac_cv_lib_nsl_gethostbyname = no; then
8497         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8498 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8499 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   ac_check_lib_save_LIBS=$LIBS
8503 LIBS="-lbsd  $LIBS"
8504 if test x$gcc_no_link = xyes; then
8505   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8506 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8507    { (exit 1); exit 1; }; }
8508 fi
8509 cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515
8516 /* Override any gcc2 internal prototype to avoid an error.  */
8517 #ifdef __cplusplus
8518 extern "C"
8519 #endif
8520 /* We use char because int might match the return type of a gcc2
8521    builtin and then its argument prototype would still apply.  */
8522 char gethostbyname ();
8523 int
8524 main ()
8525 {
8526 gethostbyname ();
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533   (eval $ac_link) 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -z "$ac_c_werror_flag"
8541                          || test ! -s conftest.err'
8542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543   (eval $ac_try) 2>&5
8544   ac_status=$?
8545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546   (exit $ac_status); }; } &&
8547          { ac_try='test -s conftest$ac_exeext'
8548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549   (eval $ac_try) 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   ac_cv_lib_bsd_gethostbyname=yes
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558 ac_cv_lib_bsd_gethostbyname=no
8559 fi
8560 rm -f conftest.err conftest.$ac_objext \
8561       conftest$ac_exeext conftest.$ac_ext
8562 LIBS=$ac_check_lib_save_LIBS
8563 fi
8564 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8565 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8566 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8567   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8568 fi
8569
8570       fi
8571     fi
8572
8573     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8574     # socket/setsockopt and other routines are undefined under SCO ODT
8575     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8576     # on later versions), says Simon Leinen: it contains gethostby*
8577     # variants that don't use the name server (or something).  -lsocket
8578     # must be given before -lnsl if both are needed.  We assume that
8579     # if connect needs -lnsl, so does gethostbyname.
8580     echo "$as_me:$LINENO: checking for connect" >&5
8581 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8582 if test "${ac_cv_func_connect+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585   if test x$gcc_no_link = xyes; then
8586   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8587 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8588    { (exit 1); exit 1; }; }
8589 fi
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h.  */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h.  */
8596 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8598 #define connect innocuous_connect
8599
8600 /* System header to define __stub macros and hopefully few prototypes,
8601     which can conflict with char connect (); below.
8602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8603     <limits.h> exists even on freestanding compilers.  */
8604
8605 #ifdef __STDC__
8606 # include <limits.h>
8607 #else
8608 # include <assert.h>
8609 #endif
8610
8611 #undef connect
8612
8613 /* Override any gcc2 internal prototype to avoid an error.  */
8614 #ifdef __cplusplus
8615 extern "C"
8616 {
8617 #endif
8618 /* We use char because int might match the return type of a gcc2
8619    builtin and then its argument prototype would still apply.  */
8620 char connect ();
8621 /* The GNU C library defines this for functions which it implements
8622     to always fail with ENOSYS.  Some functions are actually named
8623     something starting with __ and the normal name is an alias.  */
8624 #if defined (__stub_connect) || defined (__stub___connect)
8625 choke me
8626 #else
8627 char (*f) () = connect;
8628 #endif
8629 #ifdef __cplusplus
8630 }
8631 #endif
8632
8633 int
8634 main ()
8635 {
8636 return f != connect;
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8643   (eval $ac_link) 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } &&
8650          { ac_try='test -z "$ac_c_werror_flag"
8651                          || test ! -s conftest.err'
8652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653   (eval $ac_try) 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); }; } &&
8657          { ac_try='test -s conftest$ac_exeext'
8658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659   (eval $ac_try) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; }; then
8663   ac_cv_func_connect=yes
8664 else
8665   echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8667
8668 ac_cv_func_connect=no
8669 fi
8670 rm -f conftest.err conftest.$ac_objext \
8671       conftest$ac_exeext conftest.$ac_ext
8672 fi
8673 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8674 echo "${ECHO_T}$ac_cv_func_connect" >&6
8675
8676     if test $ac_cv_func_connect = no; then
8677       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8678 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8679 if test "${ac_cv_lib_socket_connect+set}" = set; then
8680   echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682   ac_check_lib_save_LIBS=$LIBS
8683 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8684 if test x$gcc_no_link = xyes; then
8685   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8686 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8687    { (exit 1); exit 1; }; }
8688 fi
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h.  */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h.  */
8695
8696 /* Override any gcc2 internal prototype to avoid an error.  */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 /* We use char because int might match the return type of a gcc2
8701    builtin and then its argument prototype would still apply.  */
8702 char connect ();
8703 int
8704 main ()
8705 {
8706 connect ();
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext conftest$ac_exeext
8712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713   (eval $ac_link) 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } &&
8720          { ac_try='test -z "$ac_c_werror_flag"
8721                          || test ! -s conftest.err'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; } &&
8727          { ac_try='test -s conftest$ac_exeext'
8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729   (eval $ac_try) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733   ac_cv_lib_socket_connect=yes
8734 else
8735   echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_cv_lib_socket_connect=no
8739 fi
8740 rm -f conftest.err conftest.$ac_objext \
8741       conftest$ac_exeext conftest.$ac_ext
8742 LIBS=$ac_check_lib_save_LIBS
8743 fi
8744 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8745 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8746 if test $ac_cv_lib_socket_connect = yes; then
8747   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8748 fi
8749
8750     fi
8751
8752     # Guillermo Gomez says -lposix is necessary on A/UX.
8753     echo "$as_me:$LINENO: checking for remove" >&5
8754 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8755 if test "${ac_cv_func_remove+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   if test x$gcc_no_link = xyes; then
8759   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8761    { (exit 1); exit 1; }; }
8762 fi
8763 cat >conftest.$ac_ext <<_ACEOF
8764 /* confdefs.h.  */
8765 _ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h.  */
8769 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8771 #define remove innocuous_remove
8772
8773 /* System header to define __stub macros and hopefully few prototypes,
8774     which can conflict with char remove (); below.
8775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8776     <limits.h> exists even on freestanding compilers.  */
8777
8778 #ifdef __STDC__
8779 # include <limits.h>
8780 #else
8781 # include <assert.h>
8782 #endif
8783
8784 #undef remove
8785
8786 /* Override any gcc2 internal prototype to avoid an error.  */
8787 #ifdef __cplusplus
8788 extern "C"
8789 {
8790 #endif
8791 /* We use char because int might match the return type of a gcc2
8792    builtin and then its argument prototype would still apply.  */
8793 char remove ();
8794 /* The GNU C library defines this for functions which it implements
8795     to always fail with ENOSYS.  Some functions are actually named
8796     something starting with __ and the normal name is an alias.  */
8797 #if defined (__stub_remove) || defined (__stub___remove)
8798 choke me
8799 #else
8800 char (*f) () = remove;
8801 #endif
8802 #ifdef __cplusplus
8803 }
8804 #endif
8805
8806 int
8807 main ()
8808 {
8809 return f != remove;
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } &&
8823          { ac_try='test -z "$ac_c_werror_flag"
8824                          || test ! -s conftest.err'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; } &&
8830          { ac_try='test -s conftest$ac_exeext'
8831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832   (eval $ac_try) 2>&5
8833   ac_status=$?
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); }; }; then
8836   ac_cv_func_remove=yes
8837 else
8838   echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_cv_func_remove=no
8842 fi
8843 rm -f conftest.err conftest.$ac_objext \
8844       conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8847 echo "${ECHO_T}$ac_cv_func_remove" >&6
8848
8849     if test $ac_cv_func_remove = no; then
8850       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8851 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8852 if test "${ac_cv_lib_posix_remove+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lposix  $LIBS"
8857 if test x$gcc_no_link = xyes; then
8858   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8859 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8860    { (exit 1); exit 1; }; }
8861 fi
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868
8869 /* Override any gcc2 internal prototype to avoid an error.  */
8870 #ifdef __cplusplus
8871 extern "C"
8872 #endif
8873 /* We use char because int might match the return type of a gcc2
8874    builtin and then its argument prototype would still apply.  */
8875 char remove ();
8876 int
8877 main ()
8878 {
8879 remove ();
8880   ;
8881   return 0;
8882 }
8883 _ACEOF
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886   (eval $ac_link) 2>conftest.er1
8887   ac_status=$?
8888   grep -v '^ *+' conftest.er1 >conftest.err
8889   rm -f conftest.er1
8890   cat conftest.err >&5
8891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892   (exit $ac_status); } &&
8893          { ac_try='test -z "$ac_c_werror_flag"
8894                          || test ! -s conftest.err'
8895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; } &&
8900          { ac_try='test -s conftest$ac_exeext'
8901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902   (eval $ac_try) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; }; then
8906   ac_cv_lib_posix_remove=yes
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 ac_cv_lib_posix_remove=no
8912 fi
8913 rm -f conftest.err conftest.$ac_objext \
8914       conftest$ac_exeext conftest.$ac_ext
8915 LIBS=$ac_check_lib_save_LIBS
8916 fi
8917 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8918 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8919 if test $ac_cv_lib_posix_remove = yes; then
8920   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8921 fi
8922
8923     fi
8924
8925     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8926     echo "$as_me:$LINENO: checking for shmat" >&5
8927 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8928 if test "${ac_cv_func_shmat+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   if test x$gcc_no_link = xyes; then
8932   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8934    { (exit 1); exit 1; }; }
8935 fi
8936 cat >conftest.$ac_ext <<_ACEOF
8937 /* confdefs.h.  */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h.  */
8942 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8944 #define shmat innocuous_shmat
8945
8946 /* System header to define __stub macros and hopefully few prototypes,
8947     which can conflict with char shmat (); below.
8948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8949     <limits.h> exists even on freestanding compilers.  */
8950
8951 #ifdef __STDC__
8952 # include <limits.h>
8953 #else
8954 # include <assert.h>
8955 #endif
8956
8957 #undef shmat
8958
8959 /* Override any gcc2 internal prototype to avoid an error.  */
8960 #ifdef __cplusplus
8961 extern "C"
8962 {
8963 #endif
8964 /* We use char because int might match the return type of a gcc2
8965    builtin and then its argument prototype would still apply.  */
8966 char shmat ();
8967 /* The GNU C library defines this for functions which it implements
8968     to always fail with ENOSYS.  Some functions are actually named
8969     something starting with __ and the normal name is an alias.  */
8970 #if defined (__stub_shmat) || defined (__stub___shmat)
8971 choke me
8972 #else
8973 char (*f) () = shmat;
8974 #endif
8975 #ifdef __cplusplus
8976 }
8977 #endif
8978
8979 int
8980 main ()
8981 {
8982 return f != shmat;
8983   ;
8984   return 0;
8985 }
8986 _ACEOF
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989   (eval $ac_link) 2>conftest.er1
8990   ac_status=$?
8991   grep -v '^ *+' conftest.er1 >conftest.err
8992   rm -f conftest.er1
8993   cat conftest.err >&5
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); } &&
8996          { ac_try='test -z "$ac_c_werror_flag"
8997                          || test ! -s conftest.err'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; } &&
9003          { ac_try='test -s conftest$ac_exeext'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; }; then
9009   ac_cv_func_shmat=yes
9010 else
9011   echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_func_shmat=no
9015 fi
9016 rm -f conftest.err conftest.$ac_objext \
9017       conftest$ac_exeext conftest.$ac_ext
9018 fi
9019 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9020 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9021
9022     if test $ac_cv_func_shmat = no; then
9023       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9024 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9025 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9026   echo $ECHO_N "(cached) $ECHO_C" >&6
9027 else
9028   ac_check_lib_save_LIBS=$LIBS
9029 LIBS="-lipc  $LIBS"
9030 if test x$gcc_no_link = xyes; then
9031   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9033    { (exit 1); exit 1; }; }
9034 fi
9035 cat >conftest.$ac_ext <<_ACEOF
9036 /* confdefs.h.  */
9037 _ACEOF
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h.  */
9041
9042 /* Override any gcc2 internal prototype to avoid an error.  */
9043 #ifdef __cplusplus
9044 extern "C"
9045 #endif
9046 /* We use char because int might match the return type of a gcc2
9047    builtin and then its argument prototype would still apply.  */
9048 char shmat ();
9049 int
9050 main ()
9051 {
9052 shmat ();
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059   (eval $ac_link) 2>conftest.er1
9060   ac_status=$?
9061   grep -v '^ *+' conftest.er1 >conftest.err
9062   rm -f conftest.er1
9063   cat conftest.err >&5
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } &&
9066          { ac_try='test -z "$ac_c_werror_flag"
9067                          || test ! -s conftest.err'
9068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069   (eval $ac_try) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); }; } &&
9073          { ac_try='test -s conftest$ac_exeext'
9074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075   (eval $ac_try) 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   ac_cv_lib_ipc_shmat=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 ac_cv_lib_ipc_shmat=no
9085 fi
9086 rm -f conftest.err conftest.$ac_objext \
9087       conftest$ac_exeext conftest.$ac_ext
9088 LIBS=$ac_check_lib_save_LIBS
9089 fi
9090 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9091 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9092 if test $ac_cv_lib_ipc_shmat = yes; then
9093   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9094 fi
9095
9096     fi
9097   fi
9098
9099   # Check for libraries that X11R6 Xt/Xaw programs need.
9100   ac_save_LDFLAGS=$LDFLAGS
9101   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9102   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9103   # check for ICE first), but we must link in the order -lSM -lICE or
9104   # we get undefined symbols.  So assume we have SM if we have ICE.
9105   # These have to be linked with before -lX11, unlike the other
9106   # libraries we check for below, so use a different variable.
9107   # John Interrante, Karl Berry
9108   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9109 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9110 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   ac_check_lib_save_LIBS=$LIBS
9114 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9115 if test x$gcc_no_link = xyes; then
9116   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9118    { (exit 1); exit 1; }; }
9119 fi
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126
9127 /* Override any gcc2 internal prototype to avoid an error.  */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 /* We use char because int might match the return type of a gcc2
9132    builtin and then its argument prototype would still apply.  */
9133 char IceConnectionNumber ();
9134 int
9135 main ()
9136 {
9137 IceConnectionNumber ();
9138   ;
9139   return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144   (eval $ac_link) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } &&
9151          { ac_try='test -z "$ac_c_werror_flag"
9152                          || test ! -s conftest.err'
9153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154   (eval $ac_try) 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; } &&
9158          { ac_try='test -s conftest$ac_exeext'
9159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160   (eval $ac_try) 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; }; then
9164   ac_cv_lib_ICE_IceConnectionNumber=yes
9165 else
9166   echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_cv_lib_ICE_IceConnectionNumber=no
9170 fi
9171 rm -f conftest.err conftest.$ac_objext \
9172       conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9174 fi
9175 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9176 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9177 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9178   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9179 fi
9180
9181   LDFLAGS=$ac_save_LDFLAGS
9182
9183 fi
9184
9185
9186 # FIXME: this should be _libs on some hosts.
9187 libsubdir=.libs
9188
9189 # extra LD Flags which are required for targets
9190 case "${host}" in
9191 *-*-darwin[0-7].*)
9192     # For now we have to disable it on darwin[8-9] because it slows down
9193     # the linking phase. A possible bug in ld?
9194     # on Darwin -single_module speeds up loading of the dynamic libraries.
9195     extra_ldflags_libjava=-Wl,-single_module
9196     ;;
9197 esac
9198
9199
9200 # Allow the GC to be disabled.  Can be useful when debugging.
9201 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9202 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9203 # Check whether --enable-java-gc or --disable-java-gc was given.
9204 if test "${enable_java_gc+set}" = set; then
9205   enableval="$enable_java_gc"
9206   GC=$enableval
9207 else
9208   GC=boehm
9209 fi;
9210 GCLIBS=
9211 GCINCS=
9212 GCDEPS=
9213 GCSPEC=
9214 JC1GCSPEC=
9215 GCTESTSPEC=
9216 case "$GC" in
9217  boehm)
9218     echo "$as_me:$LINENO: result: boehm" >&5
9219 echo "${ECHO_T}boehm" >&6
9220     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9221     JC1GCSPEC='-fuse-boehm-gc'
9222     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9223     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9224     GCOBJS=boehm.lo
9225     GCHDR=boehm-gc.h
9226     # The POSIX thread support needs to know this.
9227
9228 cat >>confdefs.h <<\_ACEOF
9229 #define HAVE_BOEHM_GC 1
9230 _ACEOF
9231
9232     ;;
9233  no)
9234     echo "$as_me:$LINENO: result: none" >&5
9235 echo "${ECHO_T}none" >&6
9236     GCHDR=no-gc.h
9237     ;;
9238  *)
9239     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9240 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9241    { (exit 1); exit 1; }; }
9242     ;;
9243 esac
9244
9245
9246
9247
9248
9249
9250           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9251
9252
9253
9254 if test "$GC" = boehm; then
9255   USING_BOEHMGC_TRUE=
9256   USING_BOEHMGC_FALSE='#'
9257 else
9258   USING_BOEHMGC_TRUE='#'
9259   USING_BOEHMGC_FALSE=
9260 fi
9261
9262
9263
9264 if test "$GC" = no; then
9265   USING_NOGC_TRUE=
9266   USING_NOGC_FALSE='#'
9267 else
9268   USING_NOGC_TRUE='#'
9269   USING_NOGC_FALSE=
9270 fi
9271
9272
9273
9274 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9275 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9276 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9277 echo "$as_me:$LINENO: result: $THREADS" >&5
9278 echo "${ECHO_T}$THREADS" >&6
9279
9280 case "$THREADS" in
9281  no | none | single)
9282     THREADS=none
9283     ;;
9284  posix | posix95 | pthreads)
9285     THREADS=posix
9286     case "$host" in
9287      *-*-linux*)
9288
9289 cat >>confdefs.h <<\_ACEOF
9290 #define LINUX_THREADS 1
9291 _ACEOF
9292
9293         ;;
9294     esac
9295     ;;
9296  win32)
9297     ;;
9298  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9299     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9300 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9301    { (exit 1); exit 1; }; }
9302     ;;
9303  *)
9304     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9305 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9306    { (exit 1); exit 1; }; }
9307     ;;
9308 esac
9309
9310 THREADCXXFLAGS=
9311 THREADLDFLAGS=
9312 THREADLIBS=
9313 THREADINCS=
9314 THREADDEPS=
9315 THREADH=
9316 THREADSPEC=
9317 THREADSTARTFILESPEC=
9318 case "$THREADS" in
9319  posix)
9320     case "$host" in
9321      *-*-cygwin*)
9322         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9323         ;;
9324      *-*-freebsd[1234]*)
9325         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9326         # merely adds pthread_* functions) but it does have a -pthread switch
9327         # which is required at link-time to select -lc_r *instead* of -lc.
9328         THREADLDFLAGS=-pthread
9329         # Don't set THREADSPEC here as might be expected since -pthread is
9330         # not processed when found within a spec file, it must come from
9331         # the command line.  For now, the user must provide the -pthread
9332         # switch to link code compiled with gcj.  In future, consider adding
9333         # support for weak references to pthread_* functions ala gthr.h API.
9334         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9335         ;;
9336      *-*-freebsd*)
9337         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9338         # systems which support threads and -lpthread.
9339         THREADLDFLAGS=-pthread
9340         THREADSPEC=-lpthread
9341         ;;
9342      alpha*-dec-osf* | hppa*-hp-hpux*)
9343         THREADCXXFLAGS=-pthread
9344         # boehm-gc needs some functions from librt, so link that too.
9345         THREADLIBS='-lpthread -lrt'
9346         THREADSPEC='-lpthread -lrt'
9347         ;;
9348      *)
9349         THREADLIBS=-lpthread
9350         THREADSPEC=-lpthread
9351         ;;
9352     esac
9353     THREADH=posix-threads.h
9354     # MIT pthreads doesn't seem to have the mutexattr functions.
9355     # But for now we don't check for it.  We just assume you aren't
9356     # using MIT pthreads.
9357
9358 cat >>confdefs.h <<\_ACEOF
9359 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9360 _ACEOF
9361
9362
9363     # If we're using the Boehm GC, then we happen to know that it
9364     # defines _REENTRANT, so we don't bother.  Eww.
9365     if test "$GC" != boehm; then
9366
9367 cat >>confdefs.h <<\_ACEOF
9368 #define _REENTRANT 1
9369 _ACEOF
9370
9371     fi
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define _POSIX_PTHREAD_SEMANTICS 1
9375 _ACEOF
9376
9377     ;;
9378
9379  win32)
9380     THREADH=win32-threads.h
9381     THREADCXXFLAGS=-mthreads
9382     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9383     # But we do not want the executables created to be dependent on
9384     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9385     # exception handling contexts.  The following kludge achieves this effect
9386     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9387     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9388     # A workaround is to explicitly use -mthreads while linking Java programs.
9389     # See PR libgcj/28263.
9390     #
9391     # FIXME: In Java we are able to detect thread death at the end of
9392     # Thread.run() so we should be able to clean up the exception handling
9393     # contexts ourselves.
9394     THREADSTARTFILESPEC='crtmt%O%s'
9395     ;;
9396
9397  none)
9398     THREADH=no-threads.h
9399     ;;
9400 esac
9401           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412 if test "$THREADS" = posix; then
9413   USING_POSIX_THREADS_TRUE=
9414   USING_POSIX_THREADS_FALSE='#'
9415 else
9416   USING_POSIX_THREADS_TRUE='#'
9417   USING_POSIX_THREADS_FALSE=
9418 fi
9419
9420
9421
9422 if test "$THREADS" = win32; then
9423   USING_WIN32_THREADS_TRUE=
9424   USING_WIN32_THREADS_FALSE='#'
9425 else
9426   USING_WIN32_THREADS_TRUE='#'
9427   USING_WIN32_THREADS_FALSE=
9428 fi
9429
9430
9431
9432 if test "$THREADS" = none; then
9433   USING_NO_THREADS_TRUE=
9434   USING_NO_THREADS_FALSE='#'
9435 else
9436   USING_NO_THREADS_TRUE='#'
9437   USING_NO_THREADS_FALSE=
9438 fi
9439
9440
9441
9442 if test "$use_libgcj_bc" = yes; then
9443   USE_LIBGCJ_BC_TRUE=
9444   USE_LIBGCJ_BC_FALSE='#'
9445 else
9446   USE_LIBGCJ_BC_TRUE='#'
9447   USE_LIBGCJ_BC_FALSE=
9448 fi
9449
9450
9451 if test -d sysdep; then true; else mkdir sysdep; fi
9452           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9453
9454           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9455
9456           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9457
9458
9459 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9460 if test "$use_libgcj_bc" = yes; then
9461   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9462 fi
9463
9464
9465 HASH_SYNC_SPEC=
9466 # Hash synchronization is only useful with posix threads right now.
9467 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9468    HASH_SYNC_SPEC=-fhash-synchronization
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define JV_HASH_SYNCHRONIZATION 1
9472 _ACEOF
9473
9474 fi
9475
9476
9477
9478
9479 if test "$GCC" = yes; then
9480   USING_GCC_TRUE=
9481   USING_GCC_FALSE='#'
9482 else
9483   USING_GCC_TRUE='#'
9484   USING_GCC_FALSE=
9485 fi
9486
9487
9488 # We're in the tree with gcc, and need to include some of its headers.
9489 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9490
9491 if test "x${with_newlib}" = "xyes"; then
9492    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9493    # may not work correctly, because the compiler may not be able to
9494    # link executables.
9495
9496    # We assume newlib.  This lets us hard-code the functions we know
9497    # we'll have.
9498
9499 cat >>confdefs.h <<\_ACEOF
9500 #define HAVE_MEMMOVE 1
9501 _ACEOF
9502
9503
9504 cat >>confdefs.h <<\_ACEOF
9505 #define HAVE_MEMCPY 1
9506 _ACEOF
9507
9508
9509 cat >>confdefs.h <<\_ACEOF
9510 #define HAVE_STRERROR 1
9511 _ACEOF
9512
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_TIME 1
9516 _ACEOF
9517
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_GMTIME_R 1
9521 _ACEOF
9522
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define HAVE_LOCALTIME_R 1
9526 _ACEOF
9527
9528
9529 cat >>confdefs.h <<\_ACEOF
9530 #define HAVE_USLEEP_DECL 1
9531 _ACEOF
9532
9533    # This is only for POSIX threads.
9534
9535 cat >>confdefs.h <<\_ACEOF
9536 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9537 _ACEOF
9538
9539    # We also assume we are using gcc, which provides alloca.
9540    cat >>confdefs.h <<\_ACEOF
9541 #define HAVE_ALLOCA 1
9542 _ACEOF
9543
9544
9545    # Assume we do not have getuid and friends.
9546
9547 cat >>confdefs.h <<\_ACEOF
9548 #define NO_GETUID 1
9549 _ACEOF
9550
9551    PLATFORMNET=NoNet
9552 else
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
9587
9588 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9589                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9590                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9591                    nl_langinfo setlocale \
9592                    inet_pton uname inet_ntoa \
9593                    fork execvp pipe sigaction ftruncate mmap \
9594                    getifaddrs
9595 do
9596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9597 echo "$as_me:$LINENO: checking for $ac_func" >&5
9598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9599 if eval "test \"\${$as_ac_var+set}\" = set"; then
9600   echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602   if test x$gcc_no_link = xyes; then
9603   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9605    { (exit 1); exit 1; }; }
9606 fi
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h.  */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h.  */
9613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9615 #define $ac_func innocuous_$ac_func
9616
9617 /* System header to define __stub macros and hopefully few prototypes,
9618     which can conflict with char $ac_func (); below.
9619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620     <limits.h> exists even on freestanding compilers.  */
9621
9622 #ifdef __STDC__
9623 # include <limits.h>
9624 #else
9625 # include <assert.h>
9626 #endif
9627
9628 #undef $ac_func
9629
9630 /* Override any gcc2 internal prototype to avoid an error.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 {
9634 #endif
9635 /* We use char because int might match the return type of a gcc2
9636    builtin and then its argument prototype would still apply.  */
9637 char $ac_func ();
9638 /* The GNU C library defines this for functions which it implements
9639     to always fail with ENOSYS.  Some functions are actually named
9640     something starting with __ and the normal name is an alias.  */
9641 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9642 choke me
9643 #else
9644 char (*f) () = $ac_func;
9645 #endif
9646 #ifdef __cplusplus
9647 }
9648 #endif
9649
9650 int
9651 main ()
9652 {
9653 return f != $ac_func;
9654   ;
9655   return 0;
9656 }
9657 _ACEOF
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9660   (eval $ac_link) 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } &&
9667          { ac_try='test -z "$ac_c_werror_flag"
9668                          || test ! -s conftest.err'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; } &&
9674          { ac_try='test -s conftest$ac_exeext'
9675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676   (eval $ac_try) 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); }; }; then
9680   eval "$as_ac_var=yes"
9681 else
9682   echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685 eval "$as_ac_var=no"
9686 fi
9687 rm -f conftest.err conftest.$ac_objext \
9688       conftest$ac_exeext conftest.$ac_ext
9689 fi
9690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9692 if test `eval echo '${'$as_ac_var'}'` = yes; then
9693   cat >>confdefs.h <<_ACEOF
9694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9695 _ACEOF
9696
9697 fi
9698 done
9699
9700
9701
9702 for ac_func in inet_aton inet_addr
9703 do
9704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9705 echo "$as_me:$LINENO: checking for $ac_func" >&5
9706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9707 if eval "test \"\${$as_ac_var+set}\" = set"; then
9708   echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710   if test x$gcc_no_link = xyes; then
9711   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9713    { (exit 1); exit 1; }; }
9714 fi
9715 cat >conftest.$ac_ext <<_ACEOF
9716 /* confdefs.h.  */
9717 _ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h.  */
9721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9723 #define $ac_func innocuous_$ac_func
9724
9725 /* System header to define __stub macros and hopefully few prototypes,
9726     which can conflict with char $ac_func (); below.
9727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728     <limits.h> exists even on freestanding compilers.  */
9729
9730 #ifdef __STDC__
9731 # include <limits.h>
9732 #else
9733 # include <assert.h>
9734 #endif
9735
9736 #undef $ac_func
9737
9738 /* Override any gcc2 internal prototype to avoid an error.  */
9739 #ifdef __cplusplus
9740 extern "C"
9741 {
9742 #endif
9743 /* We use char because int might match the return type of a gcc2
9744    builtin and then its argument prototype would still apply.  */
9745 char $ac_func ();
9746 /* The GNU C library defines this for functions which it implements
9747     to always fail with ENOSYS.  Some functions are actually named
9748     something starting with __ and the normal name is an alias.  */
9749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9750 choke me
9751 #else
9752 char (*f) () = $ac_func;
9753 #endif
9754 #ifdef __cplusplus
9755 }
9756 #endif
9757
9758 int
9759 main ()
9760 {
9761 return f != $ac_func;
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768   (eval $ac_link) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"
9776                          || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest$ac_exeext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   eval "$as_ac_var=yes"
9789 else
9790   echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 eval "$as_ac_var=no"
9794 fi
9795 rm -f conftest.err conftest.$ac_objext \
9796       conftest$ac_exeext conftest.$ac_ext
9797 fi
9798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9800 if test `eval echo '${'$as_ac_var'}'` = yes; then
9801   cat >>confdefs.h <<_ACEOF
9802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9803 _ACEOF
9804  break
9805 fi
9806 done
9807
9808    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9810 if test "${ac_cv_header_stdc+set}" = set; then
9811   echo $ECHO_N "(cached) $ECHO_C" >&6
9812 else
9813   cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819 #include <stdlib.h>
9820 #include <stdarg.h>
9821 #include <string.h>
9822 #include <float.h>
9823
9824 int
9825 main ()
9826 {
9827
9828   ;
9829   return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext
9833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834   (eval $ac_compile) 2>conftest.er1
9835   ac_status=$?
9836   grep -v '^ *+' conftest.er1 >conftest.err
9837   rm -f conftest.er1
9838   cat conftest.err >&5
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } &&
9841          { ac_try='test -z "$ac_c_werror_flag"
9842                          || test ! -s conftest.err'
9843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9844   (eval $ac_try) 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; } &&
9848          { ac_try='test -s conftest.$ac_objext'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; }; then
9854   ac_cv_header_stdc=yes
9855 else
9856   echo "$as_me: failed program was:" >&5
9857 sed 's/^/| /' conftest.$ac_ext >&5
9858
9859 ac_cv_header_stdc=no
9860 fi
9861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9862
9863 if test $ac_cv_header_stdc = yes; then
9864   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9865   cat >conftest.$ac_ext <<_ACEOF
9866 /* confdefs.h.  */
9867 _ACEOF
9868 cat confdefs.h >>conftest.$ac_ext
9869 cat >>conftest.$ac_ext <<_ACEOF
9870 /* end confdefs.h.  */
9871 #include <string.h>
9872
9873 _ACEOF
9874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9875   $EGREP "memchr" >/dev/null 2>&1; then
9876   :
9877 else
9878   ac_cv_header_stdc=no
9879 fi
9880 rm -f conftest*
9881
9882 fi
9883
9884 if test $ac_cv_header_stdc = yes; then
9885   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9886   cat >conftest.$ac_ext <<_ACEOF
9887 /* confdefs.h.  */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h.  */
9892 #include <stdlib.h>
9893
9894 _ACEOF
9895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9896   $EGREP "free" >/dev/null 2>&1; then
9897   :
9898 else
9899   ac_cv_header_stdc=no
9900 fi
9901 rm -f conftest*
9902
9903 fi
9904
9905 if test $ac_cv_header_stdc = yes; then
9906   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9907   if test "$cross_compiling" = yes; then
9908   :
9909 else
9910   cat >conftest.$ac_ext <<_ACEOF
9911 /* confdefs.h.  */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h.  */
9916 #include <ctype.h>
9917 #if ((' ' & 0x0FF) == 0x020)
9918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9920 #else
9921 # define ISLOWER(c) \
9922                    (('a' <= (c) && (c) <= 'i') \
9923                      || ('j' <= (c) && (c) <= 'r') \
9924                      || ('s' <= (c) && (c) <= 'z'))
9925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9926 #endif
9927
9928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9929 int
9930 main ()
9931 {
9932   int i;
9933   for (i = 0; i < 256; i++)
9934     if (XOR (islower (i), ISLOWER (i))
9935         || toupper (i) != TOUPPER (i))
9936       exit(2);
9937   exit (0);
9938 }
9939 _ACEOF
9940 rm -f conftest$ac_exeext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9942   (eval $ac_link) 2>&5
9943   ac_status=$?
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947   (eval $ac_try) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); }; }; then
9951   :
9952 else
9953   echo "$as_me: program exited with status $ac_status" >&5
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 ( exit $ac_status )
9958 ac_cv_header_stdc=no
9959 fi
9960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9961 fi
9962 fi
9963 fi
9964 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9965 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9966 if test $ac_cv_header_stdc = yes; then
9967
9968 cat >>confdefs.h <<\_ACEOF
9969 #define STDC_HEADERS 1
9970 _ACEOF
9971
9972 fi
9973
9974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9985                   inttypes.h stdint.h unistd.h
9986 do
9987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988 echo "$as_me:$LINENO: checking for $ac_header" >&5
9989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h.  */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h.  */
9999 $ac_includes_default
10000
10001 #include <$ac_header>
10002 _ACEOF
10003 rm -f conftest.$ac_objext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10005   (eval $ac_compile) 2>conftest.er1
10006   ac_status=$?
10007   grep -v '^ *+' conftest.er1 >conftest.err
10008   rm -f conftest.er1
10009   cat conftest.err >&5
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); } &&
10012          { ac_try='test -z "$ac_c_werror_flag"
10013                          || test ! -s conftest.err'
10014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015   (eval $ac_try) 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; } &&
10019          { ac_try='test -s conftest.$ac_objext'
10020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021   (eval $ac_try) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); }; }; then
10025   eval "$as_ac_Header=yes"
10026 else
10027   echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 eval "$as_ac_Header=no"
10031 fi
10032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10033 fi
10034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10037   cat >>confdefs.h <<_ACEOF
10038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10039 _ACEOF
10040
10041 fi
10042
10043 done
10044
10045
10046
10047
10048
10049 for ac_header in execinfo.h unistd.h dlfcn.h
10050 do
10051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10053   echo "$as_me:$LINENO: checking for $ac_header" >&5
10054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10056   echo $ECHO_N "(cached) $ECHO_C" >&6
10057 fi
10058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10060 else
10061   # Is the header compilable?
10062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10064 cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070 $ac_includes_default
10071 #include <$ac_header>
10072 _ACEOF
10073 rm -f conftest.$ac_objext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10075   (eval $ac_compile) 2>conftest.er1
10076   ac_status=$?
10077   grep -v '^ *+' conftest.er1 >conftest.err
10078   rm -f conftest.er1
10079   cat conftest.err >&5
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -z "$ac_c_werror_flag"
10083                          || test ! -s conftest.err'
10084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085   (eval $ac_try) 2>&5
10086   ac_status=$?
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); }; } &&
10089          { ac_try='test -s conftest.$ac_objext'
10090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091   (eval $ac_try) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; }; then
10095   ac_header_compiler=yes
10096 else
10097   echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 ac_header_compiler=no
10101 fi
10102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10104 echo "${ECHO_T}$ac_header_compiler" >&6
10105
10106 # Is the header present?
10107 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10109 cat >conftest.$ac_ext <<_ACEOF
10110 /* confdefs.h.  */
10111 _ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h.  */
10115 #include <$ac_header>
10116 _ACEOF
10117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } >/dev/null; then
10125   if test -s conftest.err; then
10126     ac_cpp_err=$ac_c_preproc_warn_flag
10127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10128   else
10129     ac_cpp_err=
10130   fi
10131 else
10132   ac_cpp_err=yes
10133 fi
10134 if test -z "$ac_cpp_err"; then
10135   ac_header_preproc=yes
10136 else
10137   echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140   ac_header_preproc=no
10141 fi
10142 rm -f conftest.err conftest.$ac_ext
10143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10144 echo "${ECHO_T}$ac_header_preproc" >&6
10145
10146 # So?  What about this header?
10147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10148   yes:no: )
10149     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10153     ac_header_preproc=yes
10154     ;;
10155   no:yes:* )
10156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10158     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10159 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10160     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10162     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10163 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10166     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10168     (
10169       cat <<\_ASBOX
10170 ## ---------------------------------- ##
10171 ## Report this to the libjava lists.  ##
10172 ## ---------------------------------- ##
10173 _ASBOX
10174     ) |
10175       sed "s/^/$as_me: WARNING:     /" >&2
10176     ;;
10177 esac
10178 echo "$as_me:$LINENO: checking for $ac_header" >&5
10179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   eval "$as_ac_Header=\$ac_header_preproc"
10184 fi
10185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10186 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10187
10188 fi
10189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10190   cat >>confdefs.h <<_ACEOF
10191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10192 _ACEOF
10193
10194 fi
10195
10196 done
10197
10198    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10199    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10200 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10201 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-ldl  $LIBS"
10206 if test x$gcc_no_link = xyes; then
10207   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10209    { (exit 1); exit 1; }; }
10210 fi
10211 cat >conftest.$ac_ext <<_ACEOF
10212 /* confdefs.h.  */
10213 _ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h.  */
10217
10218 /* Override any gcc2 internal prototype to avoid an error.  */
10219 #ifdef __cplusplus
10220 extern "C"
10221 #endif
10222 /* We use char because int might match the return type of a gcc2
10223    builtin and then its argument prototype would still apply.  */
10224 char dladdr ();
10225 int
10226 main ()
10227 {
10228 dladdr ();
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10235   (eval $ac_link) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"
10243                          || test ! -s conftest.err'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest$ac_exeext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_cv_lib_dl_dladdr=yes
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_cv_lib_dl_dladdr=no
10261 fi
10262 rm -f conftest.err conftest.$ac_objext \
10263       conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10265 fi
10266 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10267 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10268 if test $ac_cv_lib_dl_dladdr = yes; then
10269
10270
10271 cat >>confdefs.h <<\_ACEOF
10272 #define HAVE_DLADDR 1
10273 _ACEOF
10274
10275 else
10276
10277        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10278 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10279 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10280   echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282   ac_check_lib_save_LIBS=$LIBS
10283 LIBS="-ldld  $LIBS"
10284 if test x$gcc_no_link = xyes; then
10285   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10287    { (exit 1); exit 1; }; }
10288 fi
10289 cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295
10296 /* Override any gcc2 internal prototype to avoid an error.  */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301    builtin and then its argument prototype would still apply.  */
10302 char dladdr ();
10303 int
10304 main ()
10305 {
10306 dladdr ();
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 rm -f conftest.$ac_objext conftest$ac_exeext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10313   (eval $ac_link) 2>conftest.er1
10314   ac_status=$?
10315   grep -v '^ *+' conftest.er1 >conftest.err
10316   rm -f conftest.er1
10317   cat conftest.err >&5
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); } &&
10320          { ac_try='test -z "$ac_c_werror_flag"
10321                          || test ! -s conftest.err'
10322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323   (eval $ac_try) 2>&5
10324   ac_status=$?
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); }; } &&
10327          { ac_try='test -s conftest$ac_exeext'
10328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329   (eval $ac_try) 2>&5
10330   ac_status=$?
10331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332   (exit $ac_status); }; }; then
10333   ac_cv_lib_dld_dladdr=yes
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338 ac_cv_lib_dld_dladdr=no
10339 fi
10340 rm -f conftest.err conftest.$ac_objext \
10341       conftest$ac_exeext conftest.$ac_ext
10342 LIBS=$ac_check_lib_save_LIBS
10343 fi
10344 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10345 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10346 if test $ac_cv_lib_dld_dladdr = yes; then
10347
10348
10349 cat >>confdefs.h <<\_ACEOF
10350 #define HAVE_DLADDR 1
10351 _ACEOF
10352
10353 fi
10354
10355 fi
10356
10357
10358    if test x"$build" = x"$host"; then
10359      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10360 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10361 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10362   echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364   test "$cross_compiling" = yes &&
10365   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10366 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10367    { (exit 1); exit 1; }; }
10368 if test -r "/proc/self/exe"; then
10369   ac_cv_file__proc_self_exe=yes
10370 else
10371   ac_cv_file__proc_self_exe=no
10372 fi
10373 fi
10374 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10375 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10376 if test $ac_cv_file__proc_self_exe = yes; then
10377
10378 cat >>confdefs.h <<_ACEOF
10379 #define HAVE__PROC_SELF_EXE 1
10380 _ACEOF
10381
10382
10383
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_PROC_SELF_EXE 1
10386 _ACEOF
10387
10388 fi
10389
10390    else
10391      case $host in
10392      *-linux*)
10393
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_PROC_SELF_EXE 1
10396 _ACEOF
10397
10398        ;;
10399      esac
10400    fi
10401
10402
10403       if test "X$prefix" = "XNONE"; then
10404     acl_final_prefix="$ac_default_prefix"
10405   else
10406     acl_final_prefix="$prefix"
10407   fi
10408   if test "X$exec_prefix" = "XNONE"; then
10409     acl_final_exec_prefix='${prefix}'
10410   else
10411     acl_final_exec_prefix="$exec_prefix"
10412   fi
10413   acl_save_prefix="$prefix"
10414   prefix="$acl_final_prefix"
10415   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10416   prefix="$acl_save_prefix"
10417
10418
10419 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10420 if test "${with_gnu_ld+set}" = set; then
10421   withval="$with_gnu_ld"
10422   test "$withval" = no || with_gnu_ld=yes
10423 else
10424   with_gnu_ld=no
10425 fi;
10426 # Prepare PATH_SEPARATOR.
10427 # The user is always right.
10428 if test "${PATH_SEPARATOR+set}" != set; then
10429   echo "#! /bin/sh" >conf$$.sh
10430   echo  "exit 0"   >>conf$$.sh
10431   chmod +x conf$$.sh
10432   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10433     PATH_SEPARATOR=';'
10434   else
10435     PATH_SEPARATOR=:
10436   fi
10437   rm -f conf$$.sh
10438 fi
10439 ac_prog=ld
10440 if test "$GCC" = yes; then
10441   # Check if gcc -print-prog-name=ld gives a path.
10442   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10443 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10444   case $host in
10445   *-*-mingw*)
10446     # gcc leaves a trailing carriage return which upsets mingw
10447     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10448   *)
10449     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10450   esac
10451   case $ac_prog in
10452     # Accept absolute paths.
10453     [\\/]* | [A-Za-z]:[\\/]*)
10454       re_direlt='/[^/][^/]*/\.\./'
10455       # Canonicalize the path of ld
10456       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10457       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10458         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10459       done
10460       test -z "$LD" && LD="$ac_prog"
10461       ;;
10462   "")
10463     # If it fails, then pretend we aren't using GCC.
10464     ac_prog=ld
10465     ;;
10466   *)
10467     # If it is relative, then search for the first ld in PATH.
10468     with_gnu_ld=unknown
10469     ;;
10470   esac
10471 elif test "$with_gnu_ld" = yes; then
10472   echo "$as_me:$LINENO: checking for GNU ld" >&5
10473 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10474 else
10475   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10476 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10477 fi
10478 if test "${acl_cv_path_LD+set}" = set; then
10479   echo $ECHO_N "(cached) $ECHO_C" >&6
10480 else
10481   if test -z "$LD"; then
10482   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10483   for ac_dir in $PATH; do
10484     test -z "$ac_dir" && ac_dir=.
10485     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10486       acl_cv_path_LD="$ac_dir/$ac_prog"
10487       # Check to see if the program is GNU ld.  I'd rather use --version,
10488       # but apparently some GNU ld's only accept -v.
10489       # Break only if it was the GNU/non-GNU ld that we prefer.
10490       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10491         test "$with_gnu_ld" != no && break
10492       else
10493         test "$with_gnu_ld" != yes && break
10494       fi
10495     fi
10496   done
10497   IFS="$ac_save_ifs"
10498 else
10499   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10500 fi
10501 fi
10502
10503 LD="$acl_cv_path_LD"
10504 if test -n "$LD"; then
10505   echo "$as_me:$LINENO: result: $LD" >&5
10506 echo "${ECHO_T}$LD" >&6
10507 else
10508   echo "$as_me:$LINENO: result: no" >&5
10509 echo "${ECHO_T}no" >&6
10510 fi
10511 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10512 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10513    { (exit 1); exit 1; }; }
10514 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10515 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10516 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10517   echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10520 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10521   acl_cv_prog_gnu_ld=yes
10522 else
10523   acl_cv_prog_gnu_ld=no
10524 fi
10525 fi
10526 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10527 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10528 with_gnu_ld=$acl_cv_prog_gnu_ld
10529
10530
10531
10532                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10533 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10534 if test "${acl_cv_rpath+set}" = set; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537
10538     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10539     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10540     . ./conftest.sh
10541     rm -f ./conftest.sh
10542     acl_cv_rpath=done
10543
10544 fi
10545 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10546 echo "${ECHO_T}$acl_cv_rpath" >&6
10547   wl="$acl_cv_wl"
10548   libext="$acl_cv_libext"
10549   shlibext="$acl_cv_shlibext"
10550   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10551   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10552   hardcode_direct="$acl_cv_hardcode_direct"
10553   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10554     # Check whether --enable-rpath or --disable-rpath was given.
10555 if test "${enable_rpath+set}" = set; then
10556   enableval="$enable_rpath"
10557   :
10558 else
10559   enable_rpath=yes
10560 fi;
10561
10562
10563
10564
10565
10566
10567
10568     use_additional=yes
10569
10570   acl_save_prefix="$prefix"
10571   prefix="$acl_final_prefix"
10572   acl_save_exec_prefix="$exec_prefix"
10573   exec_prefix="$acl_final_exec_prefix"
10574
10575     eval additional_includedir=\"$includedir\"
10576     eval additional_libdir=\"$libdir\"
10577
10578   exec_prefix="$acl_save_exec_prefix"
10579   prefix="$acl_save_prefix"
10580
10581
10582 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10583 if test "${with_libiconv_prefix+set}" = set; then
10584   withval="$with_libiconv_prefix"
10585
10586     if test "X$withval" = "Xno"; then
10587       use_additional=no
10588     else
10589       if test "X$withval" = "X"; then
10590
10591   acl_save_prefix="$prefix"
10592   prefix="$acl_final_prefix"
10593   acl_save_exec_prefix="$exec_prefix"
10594   exec_prefix="$acl_final_exec_prefix"
10595
10596           eval additional_includedir=\"$includedir\"
10597           eval additional_libdir=\"$libdir\"
10598
10599   exec_prefix="$acl_save_exec_prefix"
10600   prefix="$acl_save_prefix"
10601
10602       else
10603         additional_includedir="$withval/include"
10604         additional_libdir="$withval/lib"
10605       fi
10606     fi
10607
10608 fi;
10609       LIBICONV=
10610   LTLIBICONV=
10611   INCICONV=
10612   rpathdirs=
10613   ltrpathdirs=
10614   names_already_handled=
10615   names_next_round='iconv '
10616   while test -n "$names_next_round"; do
10617     names_this_round="$names_next_round"
10618     names_next_round=
10619     for name in $names_this_round; do
10620       already_handled=
10621       for n in $names_already_handled; do
10622         if test "$n" = "$name"; then
10623           already_handled=yes
10624           break
10625         fi
10626       done
10627       if test -z "$already_handled"; then
10628         names_already_handled="$names_already_handled $name"
10629                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10630         eval value=\"\$HAVE_LIB$uppername\"
10631         if test -n "$value"; then
10632           if test "$value" = yes; then
10633             eval value=\"\$LIB$uppername\"
10634             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10635             eval value=\"\$LTLIB$uppername\"
10636             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10637           else
10638                                     :
10639           fi
10640         else
10641                               found_dir=
10642           found_la=
10643           found_so=
10644           found_a=
10645           if test $use_additional = yes; then
10646             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10647               found_dir="$additional_libdir"
10648               found_so="$additional_libdir/lib$name.$shlibext"
10649               if test -f "$additional_libdir/lib$name.la"; then
10650                 found_la="$additional_libdir/lib$name.la"
10651               fi
10652             else
10653               if test -f "$additional_libdir/lib$name.$libext"; then
10654                 found_dir="$additional_libdir"
10655                 found_a="$additional_libdir/lib$name.$libext"
10656                 if test -f "$additional_libdir/lib$name.la"; then
10657                   found_la="$additional_libdir/lib$name.la"
10658                 fi
10659               fi
10660             fi
10661           fi
10662           if test "X$found_dir" = "X"; then
10663             for x in $LDFLAGS $LTLIBICONV; do
10664
10665   acl_save_prefix="$prefix"
10666   prefix="$acl_final_prefix"
10667   acl_save_exec_prefix="$exec_prefix"
10668   exec_prefix="$acl_final_exec_prefix"
10669   eval x=\"$x\"
10670   exec_prefix="$acl_save_exec_prefix"
10671   prefix="$acl_save_prefix"
10672
10673               case "$x" in
10674                 -L*)
10675                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10676                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10677                     found_dir="$dir"
10678                     found_so="$dir/lib$name.$shlibext"
10679                     if test -f "$dir/lib$name.la"; then
10680                       found_la="$dir/lib$name.la"
10681                     fi
10682                   else
10683                     if test -f "$dir/lib$name.$libext"; then
10684                       found_dir="$dir"
10685                       found_a="$dir/lib$name.$libext"
10686                       if test -f "$dir/lib$name.la"; then
10687                         found_la="$dir/lib$name.la"
10688                       fi
10689                     fi
10690                   fi
10691                   ;;
10692               esac
10693               if test "X$found_dir" != "X"; then
10694                 break
10695               fi
10696             done
10697           fi
10698           if test "X$found_dir" != "X"; then
10699                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10700             if test "X$found_so" != "X"; then
10701                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10702                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10703               else
10704                                                                                 haveit=
10705                 for x in $ltrpathdirs; do
10706                   if test "X$x" = "X$found_dir"; then
10707                     haveit=yes
10708                     break
10709                   fi
10710                 done
10711                 if test -z "$haveit"; then
10712                   ltrpathdirs="$ltrpathdirs $found_dir"
10713                 fi
10714                                 if test "$hardcode_direct" = yes; then
10715                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10716                 else
10717                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10718                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10719                                                             haveit=
10720                     for x in $rpathdirs; do
10721                       if test "X$x" = "X$found_dir"; then
10722                         haveit=yes
10723                         break
10724                       fi
10725                     done
10726                     if test -z "$haveit"; then
10727                       rpathdirs="$rpathdirs $found_dir"
10728                     fi
10729                   else
10730                                                                                 haveit=
10731                     for x in $LDFLAGS $LIBICONV; do
10732
10733   acl_save_prefix="$prefix"
10734   prefix="$acl_final_prefix"
10735   acl_save_exec_prefix="$exec_prefix"
10736   exec_prefix="$acl_final_exec_prefix"
10737   eval x=\"$x\"
10738   exec_prefix="$acl_save_exec_prefix"
10739   prefix="$acl_save_prefix"
10740
10741                       if test "X$x" = "X-L$found_dir"; then
10742                         haveit=yes
10743                         break
10744                       fi
10745                     done
10746                     if test -z "$haveit"; then
10747                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10748                     fi
10749                     if test "$hardcode_minus_L" != no; then
10750                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10751                     else
10752                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10753                     fi
10754                   fi
10755                 fi
10756               fi
10757             else
10758               if test "X$found_a" != "X"; then
10759                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10760               else
10761                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10762               fi
10763             fi
10764                         additional_includedir=
10765             case "$found_dir" in
10766               */lib | */lib/)
10767                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10768                 additional_includedir="$basedir/include"
10769                 ;;
10770             esac
10771             if test "X$additional_includedir" != "X"; then
10772                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10773                 haveit=
10774                 if test "X$additional_includedir" = "X/usr/local/include"; then
10775                   if test -n "$GCC"; then
10776                     case $host_os in
10777                       linux*) haveit=yes;;
10778                     esac
10779                   fi
10780                 fi
10781                 if test -z "$haveit"; then
10782                   for x in $CPPFLAGS $INCICONV; do
10783
10784   acl_save_prefix="$prefix"
10785   prefix="$acl_final_prefix"
10786   acl_save_exec_prefix="$exec_prefix"
10787   exec_prefix="$acl_final_exec_prefix"
10788   eval x=\"$x\"
10789   exec_prefix="$acl_save_exec_prefix"
10790   prefix="$acl_save_prefix"
10791
10792                     if test "X$x" = "X-I$additional_includedir"; then
10793                       haveit=yes
10794                       break
10795                     fi
10796                   done
10797                   if test -z "$haveit"; then
10798                     if test -d "$additional_includedir"; then
10799                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10800                     fi
10801                   fi
10802                 fi
10803               fi
10804             fi
10805                         if test -n "$found_la"; then
10806                                                         save_libdir="$libdir"
10807               case "$found_la" in
10808                 */* | *\\*) . "$found_la" ;;
10809                 *) . "./$found_la" ;;
10810               esac
10811               libdir="$save_libdir"
10812                             for dep in $dependency_libs; do
10813                 case "$dep" in
10814                   -L*)
10815                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10816                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10817                       haveit=
10818                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10819                         if test -n "$GCC"; then
10820                           case $host_os in
10821                             linux*) haveit=yes;;
10822                           esac
10823                         fi
10824                       fi
10825                       if test -z "$haveit"; then
10826                         haveit=
10827                         for x in $LDFLAGS $LIBICONV; do
10828
10829   acl_save_prefix="$prefix"
10830   prefix="$acl_final_prefix"
10831   acl_save_exec_prefix="$exec_prefix"
10832   exec_prefix="$acl_final_exec_prefix"
10833   eval x=\"$x\"
10834   exec_prefix="$acl_save_exec_prefix"
10835   prefix="$acl_save_prefix"
10836
10837                           if test "X$x" = "X-L$additional_libdir"; then
10838                             haveit=yes
10839                             break
10840                           fi
10841                         done
10842                         if test -z "$haveit"; then
10843                           if test -d "$additional_libdir"; then
10844                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10845                           fi
10846                         fi
10847                         haveit=
10848                         for x in $LDFLAGS $LTLIBICONV; do
10849
10850   acl_save_prefix="$prefix"
10851   prefix="$acl_final_prefix"
10852   acl_save_exec_prefix="$exec_prefix"
10853   exec_prefix="$acl_final_exec_prefix"
10854   eval x=\"$x\"
10855   exec_prefix="$acl_save_exec_prefix"
10856   prefix="$acl_save_prefix"
10857
10858                           if test "X$x" = "X-L$additional_libdir"; then
10859                             haveit=yes
10860                             break
10861                           fi
10862                         done
10863                         if test -z "$haveit"; then
10864                           if test -d "$additional_libdir"; then
10865                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10866                           fi
10867                         fi
10868                       fi
10869                     fi
10870                     ;;
10871                   -R*)
10872                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10873                     if test "$enable_rpath" != no; then
10874                                                                   haveit=
10875                       for x in $rpathdirs; do
10876                         if test "X$x" = "X$dir"; then
10877                           haveit=yes
10878                           break
10879                         fi
10880                       done
10881                       if test -z "$haveit"; then
10882                         rpathdirs="$rpathdirs $dir"
10883                       fi
10884                                                                   haveit=
10885                       for x in $ltrpathdirs; do
10886                         if test "X$x" = "X$dir"; then
10887                           haveit=yes
10888                           break
10889                         fi
10890                       done
10891                       if test -z "$haveit"; then
10892                         ltrpathdirs="$ltrpathdirs $dir"
10893                       fi
10894                     fi
10895                     ;;
10896                   -l*)
10897                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10898                     ;;
10899                   *.la)
10900                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10901                     ;;
10902                   *)
10903                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10904                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10905                     ;;
10906                 esac
10907               done
10908             fi
10909           else
10910                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10911             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10912           fi
10913         fi
10914       fi
10915     done
10916   done
10917   if test "X$rpathdirs" != "X"; then
10918     if test -n "$hardcode_libdir_separator"; then
10919                         alldirs=
10920       for found_dir in $rpathdirs; do
10921         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10922       done
10923             acl_save_libdir="$libdir"
10924       libdir="$alldirs"
10925       eval flag=\"$hardcode_libdir_flag_spec\"
10926       libdir="$acl_save_libdir"
10927       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10928     else
10929             for found_dir in $rpathdirs; do
10930         acl_save_libdir="$libdir"
10931         libdir="$found_dir"
10932         eval flag=\"$hardcode_libdir_flag_spec\"
10933         libdir="$acl_save_libdir"
10934         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10935       done
10936     fi
10937   fi
10938   if test "X$ltrpathdirs" != "X"; then
10939             for found_dir in $ltrpathdirs; do
10940       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10941     done
10942   fi
10943
10944
10945
10946
10947
10948
10949
10950           am_save_CPPFLAGS="$CPPFLAGS"
10951
10952   for element in $INCICONV; do
10953     haveit=
10954     for x in $CPPFLAGS; do
10955
10956   acl_save_prefix="$prefix"
10957   prefix="$acl_final_prefix"
10958   acl_save_exec_prefix="$exec_prefix"
10959   exec_prefix="$acl_final_exec_prefix"
10960   eval x=\"$x\"
10961   exec_prefix="$acl_save_exec_prefix"
10962   prefix="$acl_save_prefix"
10963
10964       if test "X$x" = "X$element"; then
10965         haveit=yes
10966         break
10967       fi
10968     done
10969     if test -z "$haveit"; then
10970       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10971     fi
10972   done
10973
10974
10975   echo "$as_me:$LINENO: checking for iconv" >&5
10976 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10977 if test "${am_cv_func_iconv+set}" = set; then
10978   echo $ECHO_N "(cached) $ECHO_C" >&6
10979 else
10980
10981     am_cv_func_iconv="no, consider installing GNU libiconv"
10982     am_cv_lib_iconv=no
10983     if test x$gcc_no_link = xyes; then
10984   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10985 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10986    { (exit 1); exit 1; }; }
10987 fi
10988 cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994 #include <stdlib.h>
10995 #include <iconv.h>
10996 int
10997 main ()
10998 {
10999 iconv_t cd = iconv_open("","");
11000        iconv(cd,NULL,NULL,NULL,NULL);
11001        iconv_close(cd);
11002   ;
11003   return 0;
11004 }
11005 _ACEOF
11006 rm -f conftest.$ac_objext conftest$ac_exeext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11008   (eval $ac_link) 2>conftest.er1
11009   ac_status=$?
11010   grep -v '^ *+' conftest.er1 >conftest.err
11011   rm -f conftest.er1
11012   cat conftest.err >&5
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); } &&
11015          { ac_try='test -z "$ac_c_werror_flag"
11016                          || test ! -s conftest.err'
11017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018   (eval $ac_try) 2>&5
11019   ac_status=$?
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); }; } &&
11022          { ac_try='test -s conftest$ac_exeext'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   am_cv_func_iconv=yes
11029 else
11030   echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 fi
11034 rm -f conftest.err conftest.$ac_objext \
11035       conftest$ac_exeext conftest.$ac_ext
11036     if test "$am_cv_func_iconv" != yes; then
11037       am_save_LIBS="$LIBS"
11038       LIBS="$LIBS $LIBICONV"
11039       if test x$gcc_no_link = xyes; then
11040   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11041 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11042    { (exit 1); exit 1; }; }
11043 fi
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h.  */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h.  */
11050 #include <stdlib.h>
11051 #include <iconv.h>
11052 int
11053 main ()
11054 {
11055 iconv_t cd = iconv_open("","");
11056          iconv(cd,NULL,NULL,NULL,NULL);
11057          iconv_close(cd);
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064   (eval $ac_link) 2>conftest.er1
11065   ac_status=$?
11066   grep -v '^ *+' conftest.er1 >conftest.err
11067   rm -f conftest.er1
11068   cat conftest.err >&5
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } &&
11071          { ac_try='test -z "$ac_c_werror_flag"
11072                          || test ! -s conftest.err'
11073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074   (eval $ac_try) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; } &&
11078          { ac_try='test -s conftest$ac_exeext'
11079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080   (eval $ac_try) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   am_cv_lib_iconv=yes
11085         am_cv_func_iconv=yes
11086 else
11087   echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 fi
11091 rm -f conftest.err conftest.$ac_objext \
11092       conftest$ac_exeext conftest.$ac_ext
11093       LIBS="$am_save_LIBS"
11094     fi
11095
11096 fi
11097 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11098 echo "${ECHO_T}$am_cv_func_iconv" >&6
11099   if test "$am_cv_func_iconv" = yes; then
11100
11101 cat >>confdefs.h <<\_ACEOF
11102 #define HAVE_ICONV 1
11103 _ACEOF
11104
11105   fi
11106   if test "$am_cv_lib_iconv" = yes; then
11107     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11108 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11109     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11110 echo "${ECHO_T}$LIBICONV" >&6
11111   else
11112             CPPFLAGS="$am_save_CPPFLAGS"
11113     LIBICONV=
11114     LTLIBICONV=
11115   fi
11116
11117
11118
11119   if test "$am_cv_func_iconv" = yes; then
11120     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11121 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11122     if test "${am_cv_proto_iconv+set}" = set; then
11123   echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125
11126       cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132
11133 #include <stdlib.h>
11134 #include <iconv.h>
11135 extern
11136 #ifdef __cplusplus
11137 "C"
11138 #endif
11139 #if defined(__STDC__) || defined(__cplusplus)
11140 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11141 #else
11142 size_t iconv();
11143 #endif
11144
11145 int
11146 main ()
11147 {
11148
11149   ;
11150   return 0;
11151 }
11152 _ACEOF
11153 rm -f conftest.$ac_objext
11154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11155   (eval $ac_compile) 2>conftest.er1
11156   ac_status=$?
11157   grep -v '^ *+' conftest.er1 >conftest.err
11158   rm -f conftest.er1
11159   cat conftest.err >&5
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } &&
11162          { ac_try='test -z "$ac_c_werror_flag"
11163                          || test ! -s conftest.err'
11164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165   (eval $ac_try) 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest.$ac_objext'
11170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171   (eval $ac_try) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; }; then
11175   am_cv_proto_iconv_arg1=""
11176 else
11177   echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11179
11180 am_cv_proto_iconv_arg1="const"
11181 fi
11182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11183       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);"
11184 fi
11185
11186     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11187     echo "$as_me:$LINENO: result: ${ac_t:-
11188          }$am_cv_proto_iconv" >&5
11189 echo "${ECHO_T}${ac_t:-
11190          }$am_cv_proto_iconv" >&6
11191
11192 cat >>confdefs.h <<_ACEOF
11193 #define ICONV_CONST $am_cv_proto_iconv_arg1
11194 _ACEOF
11195
11196   fi
11197
11198
11199   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11200 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11201 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   if test x$gcc_no_link = xyes; then
11205   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11207    { (exit 1); exit 1; }; }
11208 fi
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h.  */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h.  */
11215 #include <locale.h>
11216 int
11217 main ()
11218 {
11219 return LC_MESSAGES
11220   ;
11221   return 0;
11222 }
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226   (eval $ac_link) 2>conftest.er1
11227   ac_status=$?
11228   grep -v '^ *+' conftest.er1 >conftest.err
11229   rm -f conftest.er1
11230   cat conftest.err >&5
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } &&
11233          { ac_try='test -z "$ac_c_werror_flag"
11234                          || test ! -s conftest.err'
11235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236   (eval $ac_try) 2>&5
11237   ac_status=$?
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); }; } &&
11240          { ac_try='test -s conftest$ac_exeext'
11241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242   (eval $ac_try) 2>&5
11243   ac_status=$?
11244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245   (exit $ac_status); }; }; then
11246   am_cv_val_LC_MESSAGES=yes
11247 else
11248   echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11250
11251 am_cv_val_LC_MESSAGES=no
11252 fi
11253 rm -f conftest.err conftest.$ac_objext \
11254       conftest$ac_exeext conftest.$ac_ext
11255 fi
11256 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11257 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11258   if test $am_cv_val_LC_MESSAGES = yes; then
11259
11260 cat >>confdefs.h <<\_ACEOF
11261 #define HAVE_LC_MESSAGES 1
11262 _ACEOF
11263
11264   fi
11265
11266    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11267 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11268 if test "${ac_cv_struct_tm+set}" = set; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 else
11271   cat >conftest.$ac_ext <<_ACEOF
11272 /* confdefs.h.  */
11273 _ACEOF
11274 cat confdefs.h >>conftest.$ac_ext
11275 cat >>conftest.$ac_ext <<_ACEOF
11276 /* end confdefs.h.  */
11277 #include <sys/types.h>
11278 #include <time.h>
11279
11280 int
11281 main ()
11282 {
11283 struct tm *tp; tp->tm_sec;
11284   ;
11285   return 0;
11286 }
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11290   (eval $ac_compile) 2>conftest.er1
11291   ac_status=$?
11292   grep -v '^ *+' conftest.er1 >conftest.err
11293   rm -f conftest.er1
11294   cat conftest.err >&5
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); } &&
11297          { ac_try='test -z "$ac_c_werror_flag"
11298                          || test ! -s conftest.err'
11299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300   (eval $ac_try) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; } &&
11304          { ac_try='test -s conftest.$ac_objext'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   ac_cv_struct_tm=time.h
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_cv_struct_tm=sys/time.h
11316 fi
11317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11318 fi
11319 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11320 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11321 if test $ac_cv_struct_tm = sys/time.h; then
11322
11323 cat >>confdefs.h <<\_ACEOF
11324 #define TM_IN_SYS_TIME 1
11325 _ACEOF
11326
11327 fi
11328
11329 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11330 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11331 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11332   echo $ECHO_N "(cached) $ECHO_C" >&6
11333 else
11334   cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 #include <sys/types.h>
11341 #include <$ac_cv_struct_tm>
11342
11343
11344 int
11345 main ()
11346 {
11347 static struct tm ac_aggr;
11348 if (ac_aggr.tm_zone)
11349 return 0;
11350   ;
11351   return 0;
11352 }
11353 _ACEOF
11354 rm -f conftest.$ac_objext
11355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11356   (eval $ac_compile) 2>conftest.er1
11357   ac_status=$?
11358   grep -v '^ *+' conftest.er1 >conftest.err
11359   rm -f conftest.er1
11360   cat conftest.err >&5
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); } &&
11363          { ac_try='test -z "$ac_c_werror_flag"
11364                          || test ! -s conftest.err'
11365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366   (eval $ac_try) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; } &&
11370          { ac_try='test -s conftest.$ac_objext'
11371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372   (eval $ac_try) 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); }; }; then
11376   ac_cv_member_struct_tm_tm_zone=yes
11377 else
11378   echo "$as_me: failed program was:" >&5
11379 sed 's/^/| /' conftest.$ac_ext >&5
11380
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387 #include <sys/types.h>
11388 #include <$ac_cv_struct_tm>
11389
11390
11391 int
11392 main ()
11393 {
11394 static struct tm ac_aggr;
11395 if (sizeof ac_aggr.tm_zone)
11396 return 0;
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11403   (eval $ac_compile) 2>conftest.er1
11404   ac_status=$?
11405   grep -v '^ *+' conftest.er1 >conftest.err
11406   rm -f conftest.er1
11407   cat conftest.err >&5
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); } &&
11410          { ac_try='test -z "$ac_c_werror_flag"
11411                          || test ! -s conftest.err'
11412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413   (eval $ac_try) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; } &&
11417          { ac_try='test -s conftest.$ac_objext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   ac_cv_member_struct_tm_tm_zone=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 ac_cv_member_struct_tm_tm_zone=no
11429 fi
11430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11431 fi
11432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11433 fi
11434 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11435 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11436 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define HAVE_STRUCT_TM_TM_ZONE 1
11440 _ACEOF
11441
11442
11443 fi
11444
11445 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11446
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_TM_ZONE 1
11449 _ACEOF
11450
11451 else
11452   echo "$as_me:$LINENO: checking for tzname" >&5
11453 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11454 if test "${ac_cv_var_tzname+set}" = set; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   if test x$gcc_no_link = xyes; then
11458   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11460    { (exit 1); exit 1; }; }
11461 fi
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 #include <time.h>
11469 #ifndef tzname /* For SGI.  */
11470 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11471 #endif
11472
11473 int
11474 main ()
11475 {
11476 atoi(*tzname);
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11483   (eval $ac_link) 2>conftest.er1
11484   ac_status=$?
11485   grep -v '^ *+' conftest.er1 >conftest.err
11486   rm -f conftest.er1
11487   cat conftest.err >&5
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -z "$ac_c_werror_flag"
11491                          || test ! -s conftest.err'
11492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493   (eval $ac_try) 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; } &&
11497          { ac_try='test -s conftest$ac_exeext'
11498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499   (eval $ac_try) 2>&5
11500   ac_status=$?
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); }; }; then
11503   ac_cv_var_tzname=yes
11504 else
11505   echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 ac_cv_var_tzname=no
11509 fi
11510 rm -f conftest.err conftest.$ac_objext \
11511       conftest$ac_exeext conftest.$ac_ext
11512 fi
11513 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11514 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11515   if test $ac_cv_var_tzname = yes; then
11516
11517 cat >>confdefs.h <<\_ACEOF
11518 #define HAVE_TZNAME 1
11519 _ACEOF
11520
11521   fi
11522 fi
11523
11524
11525
11526
11527 for ac_func in gethostbyname_r
11528 do
11529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11530 echo "$as_me:$LINENO: checking for $ac_func" >&5
11531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11532 if eval "test \"\${$as_ac_var+set}\" = set"; then
11533   echo $ECHO_N "(cached) $ECHO_C" >&6
11534 else
11535   if test x$gcc_no_link = xyes; then
11536   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11538    { (exit 1); exit 1; }; }
11539 fi
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11548 #define $ac_func innocuous_$ac_func
11549
11550 /* System header to define __stub macros and hopefully few prototypes,
11551     which can conflict with char $ac_func (); below.
11552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11553     <limits.h> exists even on freestanding compilers.  */
11554
11555 #ifdef __STDC__
11556 # include <limits.h>
11557 #else
11558 # include <assert.h>
11559 #endif
11560
11561 #undef $ac_func
11562
11563 /* Override any gcc2 internal prototype to avoid an error.  */
11564 #ifdef __cplusplus
11565 extern "C"
11566 {
11567 #endif
11568 /* We use char because int might match the return type of a gcc2
11569    builtin and then its argument prototype would still apply.  */
11570 char $ac_func ();
11571 /* The GNU C library defines this for functions which it implements
11572     to always fail with ENOSYS.  Some functions are actually named
11573     something starting with __ and the normal name is an alias.  */
11574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11575 choke me
11576 #else
11577 char (*f) () = $ac_func;
11578 #endif
11579 #ifdef __cplusplus
11580 }
11581 #endif
11582
11583 int
11584 main ()
11585 {
11586 return f != $ac_func;
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11593   (eval $ac_link) 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } &&
11600          { ac_try='test -z "$ac_c_werror_flag"
11601                          || test ! -s conftest.err'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; } &&
11607          { ac_try='test -s conftest$ac_exeext'
11608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609   (eval $ac_try) 2>&5
11610   ac_status=$?
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); }; }; then
11613   eval "$as_ac_var=yes"
11614 else
11615   echo "$as_me: failed program was:" >&5
11616 sed 's/^/| /' conftest.$ac_ext >&5
11617
11618 eval "$as_ac_var=no"
11619 fi
11620 rm -f conftest.err conftest.$ac_objext \
11621       conftest$ac_exeext conftest.$ac_ext
11622 fi
11623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11625 if test `eval echo '${'$as_ac_var'}'` = yes; then
11626   cat >>confdefs.h <<_ACEOF
11627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11628 _ACEOF
11629
11630
11631 cat >>confdefs.h <<\_ACEOF
11632 #define HAVE_GETHOSTBYNAME_R 1
11633 _ACEOF
11634
11635      # There are two different kinds of gethostbyname_r.
11636      # We look for the one that returns `int'.
11637      # Hopefully this check is robust enough.
11638      cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11644 #include <netdb.h>
11645
11646 _ACEOF
11647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11648   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11649
11650
11651 cat >>confdefs.h <<\_ACEOF
11652 #define GETHOSTBYNAME_R_RETURNS_INT 1
11653 _ACEOF
11654
11655 fi
11656 rm -f conftest*
11657
11658
11659      case " $GCINCS " in
11660      *" -D_REENTRANT "*) ;;
11661      *)
11662                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11663 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11664 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11665   echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667    ac_ext=cc
11668 ac_cpp='$CXXCPP $CPPFLAGS'
11669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11672
11673           cat >conftest.$ac_ext <<_ACEOF
11674 /* confdefs.h.  */
11675 _ACEOF
11676 cat confdefs.h >>conftest.$ac_ext
11677 cat >>conftest.$ac_ext <<_ACEOF
11678 /* end confdefs.h.  */
11679 #include <netdb.h>
11680 int
11681 main ()
11682 {
11683 gethostbyname_r("", 0, 0);
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690   (eval $ac_compile) 2>conftest.er1
11691   ac_status=$?
11692   grep -v '^ *+' conftest.er1 >conftest.err
11693   rm -f conftest.er1
11694   cat conftest.err >&5
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); } &&
11697          { ac_try='test -z "$ac_cxx_werror_flag"
11698                          || test ! -s conftest.err'
11699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700   (eval $ac_try) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; } &&
11704          { ac_try='test -s conftest.$ac_objext'
11705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706   (eval $ac_try) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; }; then
11710   libjava_cv_gethostbyname_r_needs_reentrant=no
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715                 CPPFLAGS_SAVE="$CPPFLAGS"
11716                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11717                 cat >conftest.$ac_ext <<_ACEOF
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 #include <netdb.h>
11724 int
11725 main ()
11726 {
11727 gethostbyname_r("", 0, 0);
11728   ;
11729   return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext
11733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11734   (eval $ac_compile) 2>conftest.er1
11735   ac_status=$?
11736   grep -v '^ *+' conftest.er1 >conftest.err
11737   rm -f conftest.er1
11738   cat conftest.err >&5
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } &&
11741          { ac_try='test -z "$ac_cxx_werror_flag"
11742                          || test ! -s conftest.err'
11743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744   (eval $ac_try) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }; } &&
11748          { ac_try='test -s conftest.$ac_objext'
11749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750   (eval $ac_try) 2>&5
11751   ac_status=$?
11752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753   (exit $ac_status); }; }; then
11754   libjava_cv_gethostbyname_r_needs_reentrant=yes
11755 else
11756   echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759 libjava_cv_gethostbyname_r_needs_reentrant=fail
11760 fi
11761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762                 CPPFLAGS="$CPPFLAGS_SAVE"
11763
11764 fi
11765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11766           ac_ext=c
11767 ac_cpp='$CPP $CPPFLAGS'
11768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11771
11772
11773 fi
11774 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11775 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11776         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11777
11778 cat >>confdefs.h <<\_ACEOF
11779 #define _REENTRANT 1
11780 _ACEOF
11781
11782         fi
11783      ;;
11784      esac
11785
11786      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11787 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11788 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791         cat >conftest.$ac_ext <<_ACEOF
11792 /* confdefs.h.  */
11793 _ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h.  */
11797
11798 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11799 # define _REENTRANT 1
11800 #endif
11801 #include <netdb.h>
11802 int
11803 main ()
11804 {
11805 struct hostent_data data;
11806   ;
11807   return 0;
11808 }
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812   (eval $ac_compile) 2>conftest.er1
11813   ac_status=$?
11814   grep -v '^ *+' conftest.er1 >conftest.err
11815   rm -f conftest.er1
11816   cat conftest.err >&5
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); } &&
11819          { ac_try='test -z "$ac_c_werror_flag"
11820                          || test ! -s conftest.err'
11821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822   (eval $ac_try) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; } &&
11826          { ac_try='test -s conftest.$ac_objext'
11827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828   (eval $ac_try) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   libjava_cv_struct_hostent_data=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837 libjava_cv_struct_hostent_data=no
11838 fi
11839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840 fi
11841 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11842 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11843      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11844
11845 cat >>confdefs.h <<\_ACEOF
11846 #define HAVE_STRUCT_HOSTENT_DATA 1
11847 _ACEOF
11848
11849      fi
11850
11851 fi
11852 done
11853
11854
11855    # FIXME: libjava source code expects to find a prototype for
11856    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11857    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11858    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11859    # linkage check is enough, yet C++ code requires proper prototypes.)
11860    cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h.  */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h.  */
11866 #include <netdb.h>
11867
11868 _ACEOF
11869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11870   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11871
11872
11873 for ac_func in gethostbyaddr_r
11874 do
11875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11878 if eval "test \"\${$as_ac_var+set}\" = set"; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   if test x$gcc_no_link = xyes; then
11882   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11884    { (exit 1); exit 1; }; }
11885 fi
11886 cat >conftest.$ac_ext <<_ACEOF
11887 /* confdefs.h.  */
11888 _ACEOF
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h.  */
11892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11894 #define $ac_func innocuous_$ac_func
11895
11896 /* System header to define __stub macros and hopefully few prototypes,
11897     which can conflict with char $ac_func (); below.
11898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899     <limits.h> exists even on freestanding compilers.  */
11900
11901 #ifdef __STDC__
11902 # include <limits.h>
11903 #else
11904 # include <assert.h>
11905 #endif
11906
11907 #undef $ac_func
11908
11909 /* Override any gcc2 internal prototype to avoid an error.  */
11910 #ifdef __cplusplus
11911 extern "C"
11912 {
11913 #endif
11914 /* We use char because int might match the return type of a gcc2
11915    builtin and then its argument prototype would still apply.  */
11916 char $ac_func ();
11917 /* The GNU C library defines this for functions which it implements
11918     to always fail with ENOSYS.  Some functions are actually named
11919     something starting with __ and the normal name is an alias.  */
11920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11921 choke me
11922 #else
11923 char (*f) () = $ac_func;
11924 #endif
11925 #ifdef __cplusplus
11926 }
11927 #endif
11928
11929 int
11930 main ()
11931 {
11932 return f != $ac_func;
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939   (eval $ac_link) 2>conftest.er1
11940   ac_status=$?
11941   grep -v '^ *+' conftest.er1 >conftest.err
11942   rm -f conftest.er1
11943   cat conftest.err >&5
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -z "$ac_c_werror_flag"
11947                          || test ! -s conftest.err'
11948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949   (eval $ac_try) 2>&5
11950   ac_status=$?
11951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952   (exit $ac_status); }; } &&
11953          { ac_try='test -s conftest$ac_exeext'
11954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955   (eval $ac_try) 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   eval "$as_ac_var=yes"
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964 eval "$as_ac_var=no"
11965 fi
11966 rm -f conftest.err conftest.$ac_objext \
11967       conftest$ac_exeext conftest.$ac_ext
11968 fi
11969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11971 if test `eval echo '${'$as_ac_var'}'` = yes; then
11972   cat >>confdefs.h <<_ACEOF
11973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11974 _ACEOF
11975
11976
11977 cat >>confdefs.h <<\_ACEOF
11978 #define HAVE_GETHOSTBYADDR_R 1
11979 _ACEOF
11980
11981      # There are two different kinds of gethostbyaddr_r.
11982      # We look for the one that returns `int'.
11983      # Hopefully this check is robust enough.
11984      cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 #include <netdb.h>
11991
11992 _ACEOF
11993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11994   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11995
11996
11997 cat >>confdefs.h <<\_ACEOF
11998 #define GETHOSTBYADDR_R_RETURNS_INT 1
11999 _ACEOF
12000
12001 fi
12002 rm -f conftest*
12003
12004 fi
12005 done
12006
12007 fi
12008 rm -f conftest*
12009
12010
12011
12012 for ac_func in gethostname
12013 do
12014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12015 echo "$as_me:$LINENO: checking for $ac_func" >&5
12016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12017 if eval "test \"\${$as_ac_var+set}\" = set"; then
12018   echo $ECHO_N "(cached) $ECHO_C" >&6
12019 else
12020   if test x$gcc_no_link = xyes; then
12021   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12022 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12023    { (exit 1); exit 1; }; }
12024 fi
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h.  */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h.  */
12031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12033 #define $ac_func innocuous_$ac_func
12034
12035 /* System header to define __stub macros and hopefully few prototypes,
12036     which can conflict with char $ac_func (); below.
12037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12038     <limits.h> exists even on freestanding compilers.  */
12039
12040 #ifdef __STDC__
12041 # include <limits.h>
12042 #else
12043 # include <assert.h>
12044 #endif
12045
12046 #undef $ac_func
12047
12048 /* Override any gcc2 internal prototype to avoid an error.  */
12049 #ifdef __cplusplus
12050 extern "C"
12051 {
12052 #endif
12053 /* We use char because int might match the return type of a gcc2
12054    builtin and then its argument prototype would still apply.  */
12055 char $ac_func ();
12056 /* The GNU C library defines this for functions which it implements
12057     to always fail with ENOSYS.  Some functions are actually named
12058     something starting with __ and the normal name is an alias.  */
12059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12060 choke me
12061 #else
12062 char (*f) () = $ac_func;
12063 #endif
12064 #ifdef __cplusplus
12065 }
12066 #endif
12067
12068 int
12069 main ()
12070 {
12071 return f != $ac_func;
12072   ;
12073   return 0;
12074 }
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12078   (eval $ac_link) 2>conftest.er1
12079   ac_status=$?
12080   grep -v '^ *+' conftest.er1 >conftest.err
12081   rm -f conftest.er1
12082   cat conftest.err >&5
12083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084   (exit $ac_status); } &&
12085          { ac_try='test -z "$ac_c_werror_flag"
12086                          || test ! -s conftest.err'
12087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088   (eval $ac_try) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; } &&
12092          { ac_try='test -s conftest$ac_exeext'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; }; then
12098   eval "$as_ac_var=yes"
12099 else
12100   echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.$ac_ext >&5
12102
12103 eval "$as_ac_var=no"
12104 fi
12105 rm -f conftest.err conftest.$ac_objext \
12106       conftest$ac_exeext conftest.$ac_ext
12107 fi
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12110 if test `eval echo '${'$as_ac_var'}'` = yes; then
12111   cat >>confdefs.h <<_ACEOF
12112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 _ACEOF
12114
12115
12116 cat >>confdefs.h <<\_ACEOF
12117 #define HAVE_GETHOSTNAME 1
12118 _ACEOF
12119
12120      cat >conftest.$ac_ext <<_ACEOF
12121 /* confdefs.h.  */
12122 _ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h.  */
12126 #include <unistd.h>
12127
12128 _ACEOF
12129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12130   $EGREP "gethostname" >/dev/null 2>&1; then
12131
12132
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_GETHOSTNAME_DECL 1
12135 _ACEOF
12136
12137 fi
12138 rm -f conftest*
12139
12140 fi
12141 done
12142
12143
12144
12145 for ac_func in usleep
12146 do
12147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12148 echo "$as_me:$LINENO: checking for $ac_func" >&5
12149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12150 if eval "test \"\${$as_ac_var+set}\" = set"; then
12151   echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153   if test x$gcc_no_link = xyes; then
12154   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12156    { (exit 1); exit 1; }; }
12157 fi
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h.  */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h.  */
12164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12166 #define $ac_func innocuous_$ac_func
12167
12168 /* System header to define __stub macros and hopefully few prototypes,
12169     which can conflict with char $ac_func (); below.
12170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12171     <limits.h> exists even on freestanding compilers.  */
12172
12173 #ifdef __STDC__
12174 # include <limits.h>
12175 #else
12176 # include <assert.h>
12177 #endif
12178
12179 #undef $ac_func
12180
12181 /* Override any gcc2 internal prototype to avoid an error.  */
12182 #ifdef __cplusplus
12183 extern "C"
12184 {
12185 #endif
12186 /* We use char because int might match the return type of a gcc2
12187    builtin and then its argument prototype would still apply.  */
12188 char $ac_func ();
12189 /* The GNU C library defines this for functions which it implements
12190     to always fail with ENOSYS.  Some functions are actually named
12191     something starting with __ and the normal name is an alias.  */
12192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12193 choke me
12194 #else
12195 char (*f) () = $ac_func;
12196 #endif
12197 #ifdef __cplusplus
12198 }
12199 #endif
12200
12201 int
12202 main ()
12203 {
12204 return f != $ac_func;
12205   ;
12206   return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12211   (eval $ac_link) 2>conftest.er1
12212   ac_status=$?
12213   grep -v '^ *+' conftest.er1 >conftest.err
12214   rm -f conftest.er1
12215   cat conftest.err >&5
12216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217   (exit $ac_status); } &&
12218          { ac_try='test -z "$ac_c_werror_flag"
12219                          || test ! -s conftest.err'
12220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221   (eval $ac_try) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); }; } &&
12225          { ac_try='test -s conftest$ac_exeext'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   eval "$as_ac_var=yes"
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 eval "$as_ac_var=no"
12237 fi
12238 rm -f conftest.err conftest.$ac_objext \
12239       conftest$ac_exeext conftest.$ac_ext
12240 fi
12241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12243 if test `eval echo '${'$as_ac_var'}'` = yes; then
12244   cat >>confdefs.h <<_ACEOF
12245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 _ACEOF
12247
12248      cat >conftest.$ac_ext <<_ACEOF
12249 /* confdefs.h.  */
12250 _ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h.  */
12254 #include <unistd.h>
12255
12256 _ACEOF
12257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12258   $EGREP "usleep" >/dev/null 2>&1; then
12259
12260
12261 cat >>confdefs.h <<\_ACEOF
12262 #define HAVE_USLEEP_DECL 1
12263 _ACEOF
12264
12265 fi
12266 rm -f conftest*
12267
12268 fi
12269 done
12270
12271
12272    # Look for these functions in the thread library, but only bother
12273    # if using POSIX threads.
12274    if test "$THREADS" = posix; then
12275       save_LIBS="$LIBS"
12276       LIBS="$LIBS $THREADLIBS"
12277       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12278       # E.g., Solaris.
12279
12280
12281 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12282 do
12283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12284 echo "$as_me:$LINENO: checking for $ac_func" >&5
12285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12286 if eval "test \"\${$as_ac_var+set}\" = set"; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289   if test x$gcc_no_link = xyes; then
12290   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12292    { (exit 1); exit 1; }; }
12293 fi
12294 cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h.  */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h.  */
12300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12302 #define $ac_func innocuous_$ac_func
12303
12304 /* System header to define __stub macros and hopefully few prototypes,
12305     which can conflict with char $ac_func (); below.
12306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12307     <limits.h> exists even on freestanding compilers.  */
12308
12309 #ifdef __STDC__
12310 # include <limits.h>
12311 #else
12312 # include <assert.h>
12313 #endif
12314
12315 #undef $ac_func
12316
12317 /* Override any gcc2 internal prototype to avoid an error.  */
12318 #ifdef __cplusplus
12319 extern "C"
12320 {
12321 #endif
12322 /* We use char because int might match the return type of a gcc2
12323    builtin and then its argument prototype would still apply.  */
12324 char $ac_func ();
12325 /* The GNU C library defines this for functions which it implements
12326     to always fail with ENOSYS.  Some functions are actually named
12327     something starting with __ and the normal name is an alias.  */
12328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12329 choke me
12330 #else
12331 char (*f) () = $ac_func;
12332 #endif
12333 #ifdef __cplusplus
12334 }
12335 #endif
12336
12337 int
12338 main ()
12339 {
12340 return f != $ac_func;
12341   ;
12342   return 0;
12343 }
12344 _ACEOF
12345 rm -f conftest.$ac_objext conftest$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347   (eval $ac_link) 2>conftest.er1
12348   ac_status=$?
12349   grep -v '^ *+' conftest.er1 >conftest.err
12350   rm -f conftest.er1
12351   cat conftest.err >&5
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } &&
12354          { ac_try='test -z "$ac_c_werror_flag"
12355                          || test ! -s conftest.err'
12356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357   (eval $ac_try) 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; } &&
12361          { ac_try='test -s conftest$ac_exeext'
12362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363   (eval $ac_try) 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; }; then
12367   eval "$as_ac_var=yes"
12368 else
12369   echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372 eval "$as_ac_var=no"
12373 fi
12374 rm -f conftest.err conftest.$ac_objext \
12375       conftest$ac_exeext conftest.$ac_ext
12376 fi
12377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12379 if test `eval echo '${'$as_ac_var'}'` = yes; then
12380   cat >>confdefs.h <<_ACEOF
12381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12382 _ACEOF
12383
12384 fi
12385 done
12386
12387
12388       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12389       # Solaris 7 the name librt is preferred.
12390
12391 for ac_func in sched_yield
12392 do
12393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12394 echo "$as_me:$LINENO: checking for $ac_func" >&5
12395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12396 if eval "test \"\${$as_ac_var+set}\" = set"; then
12397   echo $ECHO_N "(cached) $ECHO_C" >&6
12398 else
12399   if test x$gcc_no_link = xyes; then
12400   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12402    { (exit 1); exit 1; }; }
12403 fi
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12412 #define $ac_func innocuous_$ac_func
12413
12414 /* System header to define __stub macros and hopefully few prototypes,
12415     which can conflict with char $ac_func (); below.
12416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12417     <limits.h> exists even on freestanding compilers.  */
12418
12419 #ifdef __STDC__
12420 # include <limits.h>
12421 #else
12422 # include <assert.h>
12423 #endif
12424
12425 #undef $ac_func
12426
12427 /* Override any gcc2 internal prototype to avoid an error.  */
12428 #ifdef __cplusplus
12429 extern "C"
12430 {
12431 #endif
12432 /* We use char because int might match the return type of a gcc2
12433    builtin and then its argument prototype would still apply.  */
12434 char $ac_func ();
12435 /* The GNU C library defines this for functions which it implements
12436     to always fail with ENOSYS.  Some functions are actually named
12437     something starting with __ and the normal name is an alias.  */
12438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12439 choke me
12440 #else
12441 char (*f) () = $ac_func;
12442 #endif
12443 #ifdef __cplusplus
12444 }
12445 #endif
12446
12447 int
12448 main ()
12449 {
12450 return f != $ac_func;
12451   ;
12452   return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457   (eval $ac_link) 2>conftest.er1
12458   ac_status=$?
12459   grep -v '^ *+' conftest.er1 >conftest.err
12460   rm -f conftest.er1
12461   cat conftest.err >&5
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -z "$ac_c_werror_flag"
12465                          || test ! -s conftest.err'
12466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467   (eval $ac_try) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; } &&
12471          { ac_try='test -s conftest$ac_exeext'
12472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473   (eval $ac_try) 2>&5
12474   ac_status=$?
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); }; }; then
12477   eval "$as_ac_var=yes"
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 eval "$as_ac_var=no"
12483 fi
12484 rm -f conftest.err conftest.$ac_objext \
12485       conftest$ac_exeext conftest.$ac_ext
12486 fi
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12489 if test `eval echo '${'$as_ac_var'}'` = yes; then
12490   cat >>confdefs.h <<_ACEOF
12491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12492 _ACEOF
12493
12494 else
12495
12496         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12497 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12498 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12499   echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501   ac_check_lib_save_LIBS=$LIBS
12502 LIBS="-lrt  $LIBS"
12503 if test x$gcc_no_link = xyes; then
12504   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12506    { (exit 1); exit 1; }; }
12507 fi
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h.  */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h.  */
12514
12515 /* Override any gcc2 internal prototype to avoid an error.  */
12516 #ifdef __cplusplus
12517 extern "C"
12518 #endif
12519 /* We use char because int might match the return type of a gcc2
12520    builtin and then its argument prototype would still apply.  */
12521 char sched_yield ();
12522 int
12523 main ()
12524 {
12525 sched_yield ();
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12532   (eval $ac_link) 2>conftest.er1
12533   ac_status=$?
12534   grep -v '^ *+' conftest.er1 >conftest.err
12535   rm -f conftest.er1
12536   cat conftest.err >&5
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); } &&
12539          { ac_try='test -z "$ac_c_werror_flag"
12540                          || test ! -s conftest.err'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; } &&
12546          { ac_try='test -s conftest$ac_exeext'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   ac_cv_lib_rt_sched_yield=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 ac_cv_lib_rt_sched_yield=no
12558 fi
12559 rm -f conftest.err conftest.$ac_objext \
12560       conftest$ac_exeext conftest.$ac_ext
12561 LIBS=$ac_check_lib_save_LIBS
12562 fi
12563 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12564 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12565 if test $ac_cv_lib_rt_sched_yield = yes; then
12566
12567           cat >>confdefs.h <<\_ACEOF
12568 #define HAVE_SCHED_YIELD 1
12569 _ACEOF
12570
12571           THREADLIBS="$THREADLIBS -lrt"
12572           THREADSPEC="$THREADSPEC -lrt"
12573 else
12574
12575           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12576 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12577 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-lposix4  $LIBS"
12582 if test x$gcc_no_link = xyes; then
12583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12585    { (exit 1); exit 1; }; }
12586 fi
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 /* Override any gcc2 internal prototype to avoid an error.  */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 /* We use char because int might match the return type of a gcc2
12599    builtin and then its argument prototype would still apply.  */
12600 char sched_yield ();
12601 int
12602 main ()
12603 {
12604 sched_yield ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12611   (eval $ac_link) 2>conftest.er1
12612   ac_status=$?
12613   grep -v '^ *+' conftest.er1 >conftest.err
12614   rm -f conftest.er1
12615   cat conftest.err >&5
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); } &&
12618          { ac_try='test -z "$ac_c_werror_flag"
12619                          || test ! -s conftest.err'
12620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621   (eval $ac_try) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; } &&
12625          { ac_try='test -s conftest$ac_exeext'
12626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627   (eval $ac_try) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; }; then
12631   ac_cv_lib_posix4_sched_yield=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_cv_lib_posix4_sched_yield=no
12637 fi
12638 rm -f conftest.err conftest.$ac_objext \
12639       conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12643 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12644 if test $ac_cv_lib_posix4_sched_yield = yes; then
12645
12646             cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_SCHED_YIELD 1
12648 _ACEOF
12649
12650             THREADLIBS="$THREADLIBS -lposix4"
12651             THREADSPEC="$THREADSPEC -lposix4"
12652 fi
12653
12654 fi
12655
12656 fi
12657 done
12658
12659
12660       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12661 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12662 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12663   echo $ECHO_N "(cached) $ECHO_C" >&6
12664 else
12665   ac_check_lib_save_LIBS=$LIBS
12666 LIBS="-lrt  $LIBS"
12667 if test x$gcc_no_link = xyes; then
12668   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12670    { (exit 1); exit 1; }; }
12671 fi
12672 cat >conftest.$ac_ext <<_ACEOF
12673 /* confdefs.h.  */
12674 _ACEOF
12675 cat confdefs.h >>conftest.$ac_ext
12676 cat >>conftest.$ac_ext <<_ACEOF
12677 /* end confdefs.h.  */
12678
12679 /* Override any gcc2 internal prototype to avoid an error.  */
12680 #ifdef __cplusplus
12681 extern "C"
12682 #endif
12683 /* We use char because int might match the return type of a gcc2
12684    builtin and then its argument prototype would still apply.  */
12685 char clock_gettime ();
12686 int
12687 main ()
12688 {
12689 clock_gettime ();
12690   ;
12691   return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696   (eval $ac_link) 2>conftest.er1
12697   ac_status=$?
12698   grep -v '^ *+' conftest.er1 >conftest.err
12699   rm -f conftest.er1
12700   cat conftest.err >&5
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); } &&
12703          { ac_try='test -z "$ac_c_werror_flag"
12704                          || test ! -s conftest.err'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; } &&
12710          { ac_try='test -s conftest$ac_exeext'
12711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712   (eval $ac_try) 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); }; }; then
12716   ac_cv_lib_rt_clock_gettime=yes
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 ac_cv_lib_rt_clock_gettime=no
12722 fi
12723 rm -f conftest.err conftest.$ac_objext \
12724       conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12728 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12729 if test $ac_cv_lib_rt_clock_gettime = yes; then
12730
12731
12732 cat >>confdefs.h <<\_ACEOF
12733 #define HAVE_CLOCK_GETTIME 1
12734 _ACEOF
12735
12736          case "$THREADSPEC" in
12737            *-lrt*) ;;
12738            *)
12739              THREADSPEC="$THREADSPEC -lrt"
12740              THREADLIBS="$THREADLIBS -lrt"
12741              ;;
12742          esac
12743 fi
12744
12745
12746       LIBS="$save_LIBS"
12747
12748       # We can save a little space at runtime if the mutex has m_count
12749       # or __m_count.  This is a nice hack for Linux.
12750       cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756 #include <pthread.h>
12757 int
12758 main ()
12759 {
12760
12761           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12762
12763   ;
12764   return 0;
12765 }
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12769   (eval $ac_compile) 2>conftest.er1
12770   ac_status=$?
12771   grep -v '^ *+' conftest.er1 >conftest.err
12772   rm -f conftest.er1
12773   cat conftest.err >&5
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); } &&
12776          { ac_try='test -z "$ac_c_werror_flag"
12777                          || test ! -s conftest.err'
12778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779   (eval $ac_try) 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; } &&
12783          { ac_try='test -s conftest.$ac_objext'
12784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12785   (eval $ac_try) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); }; }; then
12789
12790 cat >>confdefs.h <<\_ACEOF
12791 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12792 _ACEOF
12793
12794 else
12795   echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798
12799         cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805 #include <pthread.h>
12806 int
12807 main ()
12808 {
12809
12810             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12811
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 rm -f conftest.$ac_objext
12817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12818   (eval $ac_compile) 2>conftest.er1
12819   ac_status=$?
12820   grep -v '^ *+' conftest.er1 >conftest.err
12821   rm -f conftest.er1
12822   cat conftest.err >&5
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -z "$ac_c_werror_flag"
12826                          || test ! -s conftest.err'
12827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828   (eval $ac_try) 2>&5
12829   ac_status=$?
12830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831   (exit $ac_status); }; } &&
12832          { ac_try='test -s conftest.$ac_objext'
12833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834   (eval $ac_try) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); }; }; then
12838
12839 cat >>confdefs.h <<\_ACEOF
12840 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12841 _ACEOF
12842
12843 else
12844   echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12846
12847 fi
12848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12849 fi
12850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12851    fi
12852
12853    # We require a way to get the time.
12854    time_found=no
12855
12856
12857
12858 for ac_func in gettimeofday time ftime
12859 do
12860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12861 echo "$as_me:$LINENO: checking for $ac_func" >&5
12862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12863 if eval "test \"\${$as_ac_var+set}\" = set"; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   if test x$gcc_no_link = xyes; then
12867   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12869    { (exit 1); exit 1; }; }
12870 fi
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h.  */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h.  */
12877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12879 #define $ac_func innocuous_$ac_func
12880
12881 /* System header to define __stub macros and hopefully few prototypes,
12882     which can conflict with char $ac_func (); below.
12883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12884     <limits.h> exists even on freestanding compilers.  */
12885
12886 #ifdef __STDC__
12887 # include <limits.h>
12888 #else
12889 # include <assert.h>
12890 #endif
12891
12892 #undef $ac_func
12893
12894 /* Override any gcc2 internal prototype to avoid an error.  */
12895 #ifdef __cplusplus
12896 extern "C"
12897 {
12898 #endif
12899 /* We use char because int might match the return type of a gcc2
12900    builtin and then its argument prototype would still apply.  */
12901 char $ac_func ();
12902 /* The GNU C library defines this for functions which it implements
12903     to always fail with ENOSYS.  Some functions are actually named
12904     something starting with __ and the normal name is an alias.  */
12905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12906 choke me
12907 #else
12908 char (*f) () = $ac_func;
12909 #endif
12910 #ifdef __cplusplus
12911 }
12912 #endif
12913
12914 int
12915 main ()
12916 {
12917 return f != $ac_func;
12918   ;
12919   return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924   (eval $ac_link) 2>conftest.er1
12925   ac_status=$?
12926   grep -v '^ *+' conftest.er1 >conftest.err
12927   rm -f conftest.er1
12928   cat conftest.err >&5
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); } &&
12931          { ac_try='test -z "$ac_c_werror_flag"
12932                          || test ! -s conftest.err'
12933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934   (eval $ac_try) 2>&5
12935   ac_status=$?
12936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937   (exit $ac_status); }; } &&
12938          { ac_try='test -s conftest$ac_exeext'
12939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940   (eval $ac_try) 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; }; then
12944   eval "$as_ac_var=yes"
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 eval "$as_ac_var=no"
12950 fi
12951 rm -f conftest.err conftest.$ac_objext \
12952       conftest$ac_exeext conftest.$ac_ext
12953 fi
12954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12956 if test `eval echo '${'$as_ac_var'}'` = yes; then
12957   cat >>confdefs.h <<_ACEOF
12958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12959 _ACEOF
12960  time_found=yes
12961 fi
12962 done
12963
12964    if test "$time_found" = no; then
12965       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12966 echo "$as_me: error: no function found to get the time" >&2;}
12967    { (exit 1); exit 1; }; }
12968    fi
12969
12970
12971 for ac_func in memmove
12972 do
12973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12974 echo "$as_me:$LINENO: checking for $ac_func" >&5
12975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12976 if eval "test \"\${$as_ac_var+set}\" = set"; then
12977   echo $ECHO_N "(cached) $ECHO_C" >&6
12978 else
12979   if test x$gcc_no_link = xyes; then
12980   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12982    { (exit 1); exit 1; }; }
12983 fi
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h.  */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h.  */
12990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12992 #define $ac_func innocuous_$ac_func
12993
12994 /* System header to define __stub macros and hopefully few prototypes,
12995     which can conflict with char $ac_func (); below.
12996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12997     <limits.h> exists even on freestanding compilers.  */
12998
12999 #ifdef __STDC__
13000 # include <limits.h>
13001 #else
13002 # include <assert.h>
13003 #endif
13004
13005 #undef $ac_func
13006
13007 /* Override any gcc2 internal prototype to avoid an error.  */
13008 #ifdef __cplusplus
13009 extern "C"
13010 {
13011 #endif
13012 /* We use char because int might match the return type of a gcc2
13013    builtin and then its argument prototype would still apply.  */
13014 char $ac_func ();
13015 /* The GNU C library defines this for functions which it implements
13016     to always fail with ENOSYS.  Some functions are actually named
13017     something starting with __ and the normal name is an alias.  */
13018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13019 choke me
13020 #else
13021 char (*f) () = $ac_func;
13022 #endif
13023 #ifdef __cplusplus
13024 }
13025 #endif
13026
13027 int
13028 main ()
13029 {
13030 return f != $ac_func;
13031   ;
13032   return 0;
13033 }
13034 _ACEOF
13035 rm -f conftest.$ac_objext conftest$ac_exeext
13036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13037   (eval $ac_link) 2>conftest.er1
13038   ac_status=$?
13039   grep -v '^ *+' conftest.er1 >conftest.err
13040   rm -f conftest.er1
13041   cat conftest.err >&5
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); } &&
13044          { ac_try='test -z "$ac_c_werror_flag"
13045                          || test ! -s conftest.err'
13046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047   (eval $ac_try) 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; } &&
13051          { ac_try='test -s conftest$ac_exeext'
13052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053   (eval $ac_try) 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; }; then
13057   eval "$as_ac_var=yes"
13058 else
13059   echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13061
13062 eval "$as_ac_var=no"
13063 fi
13064 rm -f conftest.err conftest.$ac_objext \
13065       conftest$ac_exeext conftest.$ac_ext
13066 fi
13067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13069 if test `eval echo '${'$as_ac_var'}'` = yes; then
13070   cat >>confdefs.h <<_ACEOF
13071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13072 _ACEOF
13073
13074 fi
13075 done
13076
13077
13078    # We require memcpy.
13079    memcpy_found=no
13080
13081 for ac_func in memcpy
13082 do
13083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13084 echo "$as_me:$LINENO: checking for $ac_func" >&5
13085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13086 if eval "test \"\${$as_ac_var+set}\" = set"; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   if test x$gcc_no_link = xyes; then
13090   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13091 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13092    { (exit 1); exit 1; }; }
13093 fi
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h.  */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h.  */
13100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13102 #define $ac_func innocuous_$ac_func
13103
13104 /* System header to define __stub macros and hopefully few prototypes,
13105     which can conflict with char $ac_func (); below.
13106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13107     <limits.h> exists even on freestanding compilers.  */
13108
13109 #ifdef __STDC__
13110 # include <limits.h>
13111 #else
13112 # include <assert.h>
13113 #endif
13114
13115 #undef $ac_func
13116
13117 /* Override any gcc2 internal prototype to avoid an error.  */
13118 #ifdef __cplusplus
13119 extern "C"
13120 {
13121 #endif
13122 /* We use char because int might match the return type of a gcc2
13123    builtin and then its argument prototype would still apply.  */
13124 char $ac_func ();
13125 /* The GNU C library defines this for functions which it implements
13126     to always fail with ENOSYS.  Some functions are actually named
13127     something starting with __ and the normal name is an alias.  */
13128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13129 choke me
13130 #else
13131 char (*f) () = $ac_func;
13132 #endif
13133 #ifdef __cplusplus
13134 }
13135 #endif
13136
13137 int
13138 main ()
13139 {
13140 return f != $ac_func;
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 rm -f conftest.$ac_objext conftest$ac_exeext
13146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13147   (eval $ac_link) 2>conftest.er1
13148   ac_status=$?
13149   grep -v '^ *+' conftest.er1 >conftest.err
13150   rm -f conftest.er1
13151   cat conftest.err >&5
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } &&
13154          { ac_try='test -z "$ac_c_werror_flag"
13155                          || test ! -s conftest.err'
13156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13157   (eval $ac_try) 2>&5
13158   ac_status=$?
13159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160   (exit $ac_status); }; } &&
13161          { ac_try='test -s conftest$ac_exeext'
13162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163   (eval $ac_try) 2>&5
13164   ac_status=$?
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); }; }; then
13167   eval "$as_ac_var=yes"
13168 else
13169   echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13171
13172 eval "$as_ac_var=no"
13173 fi
13174 rm -f conftest.err conftest.$ac_objext \
13175       conftest$ac_exeext conftest.$ac_ext
13176 fi
13177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13179 if test `eval echo '${'$as_ac_var'}'` = yes; then
13180   cat >>confdefs.h <<_ACEOF
13181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13182 _ACEOF
13183  memcpy_found=yes
13184 fi
13185 done
13186
13187    if test "$memcpy_found" = no; then
13188       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13189 echo "$as_me: error: memcpy is required" >&2;}
13190    { (exit 1); exit 1; }; }
13191    fi
13192    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13193    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13194 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13196   echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198   ac_check_lib_save_LIBS=$LIBS
13199 LIBS="-ldl  $LIBS"
13200 if test x$gcc_no_link = xyes; then
13201   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13203    { (exit 1); exit 1; }; }
13204 fi
13205 cat >conftest.$ac_ext <<_ACEOF
13206 /* confdefs.h.  */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h.  */
13211
13212 /* Override any gcc2 internal prototype to avoid an error.  */
13213 #ifdef __cplusplus
13214 extern "C"
13215 #endif
13216 /* We use char because int might match the return type of a gcc2
13217    builtin and then its argument prototype would still apply.  */
13218 char dlopen ();
13219 int
13220 main ()
13221 {
13222 dlopen ();
13223   ;
13224   return 0;
13225 }
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13229   (eval $ac_link) 2>conftest.er1
13230   ac_status=$?
13231   grep -v '^ *+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -z "$ac_c_werror_flag"
13237                          || test ! -s conftest.err'
13238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239   (eval $ac_try) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; } &&
13243          { ac_try='test -s conftest$ac_exeext'
13244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245   (eval $ac_try) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_cv_lib_dl_dlopen=yes
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_cv_lib_dl_dlopen=no
13255 fi
13256 rm -f conftest.err conftest.$ac_objext \
13257       conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13259 fi
13260 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13261 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13262 if test $ac_cv_lib_dl_dlopen = yes; then
13263
13264
13265 cat >>confdefs.h <<\_ACEOF
13266 #define HAVE_DLOPEN 1
13267 _ACEOF
13268
13269 else
13270
13271        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13272 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13273 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13274   echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276   ac_check_lib_save_LIBS=$LIBS
13277 LIBS="-ldld  $LIBS"
13278 if test x$gcc_no_link = xyes; then
13279   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13281    { (exit 1); exit 1; }; }
13282 fi
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h.  */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h.  */
13289
13290 /* Override any gcc2 internal prototype to avoid an error.  */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 /* We use char because int might match the return type of a gcc2
13295    builtin and then its argument prototype would still apply.  */
13296 char dlopen ();
13297 int
13298 main ()
13299 {
13300 dlopen ();
13301   ;
13302   return 0;
13303 }
13304 _ACEOF
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13307   (eval $ac_link) 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -z "$ac_c_werror_flag"
13315                          || test ! -s conftest.err'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; } &&
13321          { ac_try='test -s conftest$ac_exeext'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_cv_lib_dld_dlopen=yes
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_cv_lib_dld_dlopen=no
13333 fi
13334 rm -f conftest.err conftest.$ac_objext \
13335       conftest$ac_exeext conftest.$ac_ext
13336 LIBS=$ac_check_lib_save_LIBS
13337 fi
13338 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13339 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13340 if test $ac_cv_lib_dld_dlopen = yes; then
13341
13342
13343 cat >>confdefs.h <<\_ACEOF
13344 #define HAVE_DLOPEN 1
13345 _ACEOF
13346
13347 fi
13348
13349 fi
13350
13351
13352    # Some library-finding code we stole from Tcl.
13353    #--------------------------------------------------------------------
13354    #    Check for the existence of the -lsocket and -lnsl libraries.
13355    #    The order here is important, so that they end up in the right
13356    #    order in the command line generated by make.  Here are some
13357    #    special considerations:
13358    #    1. Use "connect" and "accept" to check for -lsocket, and
13359    #       "gethostbyname" to check for -lnsl.
13360    #    2. Use each function name only once:  can't redo a check because
13361    #       autoconf caches the results of the last check and won't redo it.
13362    #    3. Use -lnsl and -lsocket only if they supply procedures that
13363    #       aren't already present in the normal libraries.  This is because
13364    #       IRIX 5.2 has libraries, but they aren't needed and they're
13365    #       bogus:  they goof up name resolution if used.
13366    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13367    #       To get around this problem, check for both libraries together
13368    #       if -lsocket doesn't work by itself.
13369    #--------------------------------------------------------------------
13370
13371    echo "$as_me:$LINENO: checking for socket libraries" >&5
13372 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13373 if test "${gcj_cv_lib_sockets+set}" = set; then
13374   echo $ECHO_N "(cached) $ECHO_C" >&6
13375 else
13376   gcj_cv_lib_sockets=
13377      gcj_checkBoth=0
13378      unset ac_cv_func_connect
13379      echo "$as_me:$LINENO: checking for connect" >&5
13380 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13381 if test "${ac_cv_func_connect+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   if test x$gcc_no_link = xyes; then
13385   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13386 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13387    { (exit 1); exit 1; }; }
13388 fi
13389 cat >conftest.$ac_ext <<_ACEOF
13390 /* confdefs.h.  */
13391 _ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h.  */
13395 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13397 #define connect innocuous_connect
13398
13399 /* System header to define __stub macros and hopefully few prototypes,
13400     which can conflict with char connect (); below.
13401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13402     <limits.h> exists even on freestanding compilers.  */
13403
13404 #ifdef __STDC__
13405 # include <limits.h>
13406 #else
13407 # include <assert.h>
13408 #endif
13409
13410 #undef connect
13411
13412 /* Override any gcc2 internal prototype to avoid an error.  */
13413 #ifdef __cplusplus
13414 extern "C"
13415 {
13416 #endif
13417 /* We use char because int might match the return type of a gcc2
13418    builtin and then its argument prototype would still apply.  */
13419 char connect ();
13420 /* The GNU C library defines this for functions which it implements
13421     to always fail with ENOSYS.  Some functions are actually named
13422     something starting with __ and the normal name is an alias.  */
13423 #if defined (__stub_connect) || defined (__stub___connect)
13424 choke me
13425 #else
13426 char (*f) () = connect;
13427 #endif
13428 #ifdef __cplusplus
13429 }
13430 #endif
13431
13432 int
13433 main ()
13434 {
13435 return f != connect;
13436   ;
13437   return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13442   (eval $ac_link) 2>conftest.er1
13443   ac_status=$?
13444   grep -v '^ *+' conftest.er1 >conftest.err
13445   rm -f conftest.er1
13446   cat conftest.err >&5
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } &&
13449          { ac_try='test -z "$ac_c_werror_flag"
13450                          || test ! -s conftest.err'
13451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452   (eval $ac_try) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; } &&
13456          { ac_try='test -s conftest$ac_exeext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_cv_func_connect=yes
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 ac_cv_func_connect=no
13468 fi
13469 rm -f conftest.err conftest.$ac_objext \
13470       conftest$ac_exeext conftest.$ac_ext
13471 fi
13472 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13473 echo "${ECHO_T}$ac_cv_func_connect" >&6
13474 if test $ac_cv_func_connect = yes; then
13475   gcj_checkSocket=0
13476 else
13477   gcj_checkSocket=1
13478 fi
13479
13480      if test "$gcj_checkSocket" = 1; then
13481          unset ac_cv_func_connect
13482          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13483 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13484 if test "${ac_cv_lib_socket_main+set}" = set; then
13485   echo $ECHO_N "(cached) $ECHO_C" >&6
13486 else
13487   ac_check_lib_save_LIBS=$LIBS
13488 LIBS="-lsocket  $LIBS"
13489 if test x$gcc_no_link = xyes; then
13490   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13492    { (exit 1); exit 1; }; }
13493 fi
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h.  */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h.  */
13500
13501
13502 int
13503 main ()
13504 {
13505 main ();
13506   ;
13507   return 0;
13508 }
13509 _ACEOF
13510 rm -f conftest.$ac_objext conftest$ac_exeext
13511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512   (eval $ac_link) 2>conftest.er1
13513   ac_status=$?
13514   grep -v '^ *+' conftest.er1 >conftest.err
13515   rm -f conftest.er1
13516   cat conftest.err >&5
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); } &&
13519          { ac_try='test -z "$ac_c_werror_flag"
13520                          || test ! -s conftest.err'
13521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522   (eval $ac_try) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest$ac_exeext'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; }; then
13532   ac_cv_lib_socket_main=yes
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 ac_cv_lib_socket_main=no
13538 fi
13539 rm -f conftest.err conftest.$ac_objext \
13540       conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13542 fi
13543 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13544 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13545 if test $ac_cv_lib_socket_main = yes; then
13546   gcj_cv_lib_sockets="-lsocket"
13547 else
13548   gcj_checkBoth=1
13549 fi
13550
13551      fi
13552      if test "$gcj_checkBoth" = 1; then
13553          gcj_oldLibs=$LIBS
13554          LIBS="$LIBS -lsocket -lnsl"
13555          unset ac_cv_func_accept
13556          echo "$as_me:$LINENO: checking for accept" >&5
13557 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13558 if test "${ac_cv_func_accept+set}" = set; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 else
13561   if test x$gcc_no_link = xyes; then
13562   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13564    { (exit 1); exit 1; }; }
13565 fi
13566 cat >conftest.$ac_ext <<_ACEOF
13567 /* confdefs.h.  */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h.  */
13572 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13574 #define accept innocuous_accept
13575
13576 /* System header to define __stub macros and hopefully few prototypes,
13577     which can conflict with char accept (); below.
13578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13579     <limits.h> exists even on freestanding compilers.  */
13580
13581 #ifdef __STDC__
13582 # include <limits.h>
13583 #else
13584 # include <assert.h>
13585 #endif
13586
13587 #undef accept
13588
13589 /* Override any gcc2 internal prototype to avoid an error.  */
13590 #ifdef __cplusplus
13591 extern "C"
13592 {
13593 #endif
13594 /* We use char because int might match the return type of a gcc2
13595    builtin and then its argument prototype would still apply.  */
13596 char accept ();
13597 /* The GNU C library defines this for functions which it implements
13598     to always fail with ENOSYS.  Some functions are actually named
13599     something starting with __ and the normal name is an alias.  */
13600 #if defined (__stub_accept) || defined (__stub___accept)
13601 choke me
13602 #else
13603 char (*f) () = accept;
13604 #endif
13605 #ifdef __cplusplus
13606 }
13607 #endif
13608
13609 int
13610 main ()
13611 {
13612 return f != accept;
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619   (eval $ac_link) 2>conftest.er1
13620   ac_status=$?
13621   grep -v '^ *+' conftest.er1 >conftest.err
13622   rm -f conftest.er1
13623   cat conftest.err >&5
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } &&
13626          { ac_try='test -z "$ac_c_werror_flag"
13627                          || test ! -s conftest.err'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; } &&
13633          { ac_try='test -s conftest$ac_exeext'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639   ac_cv_func_accept=yes
13640 else
13641   echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.$ac_ext >&5
13643
13644 ac_cv_func_accept=no
13645 fi
13646 rm -f conftest.err conftest.$ac_objext \
13647       conftest$ac_exeext conftest.$ac_ext
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13650 echo "${ECHO_T}$ac_cv_func_accept" >&6
13651 if test $ac_cv_func_accept = yes; then
13652   gcj_checkNsl=0
13653                         gcj_cv_lib_sockets="-lsocket -lnsl"
13654 fi
13655
13656          unset ac_cv_func_accept
13657          LIBS=$gcj_oldLibs
13658      fi
13659      unset ac_cv_func_gethostbyname
13660      gcj_oldLibs=$LIBS
13661      LIBS="$LIBS $gcj_cv_lib_sockets"
13662      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13663 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13664 if test "${ac_cv_func_gethostbyname+set}" = set; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   if test x$gcc_no_link = xyes; then
13668   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13670    { (exit 1); exit 1; }; }
13671 fi
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h.  */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h.  */
13678 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13680 #define gethostbyname innocuous_gethostbyname
13681
13682 /* System header to define __stub macros and hopefully few prototypes,
13683     which can conflict with char gethostbyname (); below.
13684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13685     <limits.h> exists even on freestanding compilers.  */
13686
13687 #ifdef __STDC__
13688 # include <limits.h>
13689 #else
13690 # include <assert.h>
13691 #endif
13692
13693 #undef gethostbyname
13694
13695 /* Override any gcc2 internal prototype to avoid an error.  */
13696 #ifdef __cplusplus
13697 extern "C"
13698 {
13699 #endif
13700 /* We use char because int might match the return type of a gcc2
13701    builtin and then its argument prototype would still apply.  */
13702 char gethostbyname ();
13703 /* The GNU C library defines this for functions which it implements
13704     to always fail with ENOSYS.  Some functions are actually named
13705     something starting with __ and the normal name is an alias.  */
13706 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13707 choke me
13708 #else
13709 char (*f) () = gethostbyname;
13710 #endif
13711 #ifdef __cplusplus
13712 }
13713 #endif
13714
13715 int
13716 main ()
13717 {
13718 return f != gethostbyname;
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725   (eval $ac_link) 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } &&
13732          { ac_try='test -z "$ac_c_werror_flag"
13733                          || test ! -s conftest.err'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; } &&
13739          { ac_try='test -s conftest$ac_exeext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   ac_cv_func_gethostbyname=yes
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 ac_cv_func_gethostbyname=no
13751 fi
13752 rm -f conftest.err conftest.$ac_objext \
13753       conftest$ac_exeext conftest.$ac_ext
13754 fi
13755 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13756 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13757 if test $ac_cv_func_gethostbyname = yes; then
13758   :
13759 else
13760   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13761 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13762 if test "${ac_cv_lib_nsl_main+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   ac_check_lib_save_LIBS=$LIBS
13766 LIBS="-lnsl  $LIBS"
13767 if test x$gcc_no_link = xyes; then
13768   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13769 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13770    { (exit 1); exit 1; }; }
13771 fi
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h.  */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h.  */
13778
13779
13780 int
13781 main ()
13782 {
13783 main ();
13784   ;
13785   return 0;
13786 }
13787 _ACEOF
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13790   (eval $ac_link) 2>conftest.er1
13791   ac_status=$?
13792   grep -v '^ *+' conftest.er1 >conftest.err
13793   rm -f conftest.er1
13794   cat conftest.err >&5
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); } &&
13797          { ac_try='test -z "$ac_c_werror_flag"
13798                          || test ! -s conftest.err'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; } &&
13804          { ac_try='test -s conftest$ac_exeext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_cv_lib_nsl_main=yes
13811 else
13812   echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.$ac_ext >&5
13814
13815 ac_cv_lib_nsl_main=no
13816 fi
13817 rm -f conftest.err conftest.$ac_objext \
13818       conftest$ac_exeext conftest.$ac_ext
13819 LIBS=$ac_check_lib_save_LIBS
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13822 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13823 if test $ac_cv_lib_nsl_main = yes; then
13824   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13825 fi
13826
13827 fi
13828
13829      unset ac_cv_func_gethostbyname
13830      LIBS=$gcj_oldLIBS
13831
13832 fi
13833 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13834 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13835    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13836
13837    if test "$with_system_zlib" = yes; then
13838       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13839 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13840 if test "${ac_cv_lib_z_deflate+set}" = set; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843   ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-lz  $LIBS"
13845 if test x$gcc_no_link = xyes; then
13846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13848    { (exit 1); exit 1; }; }
13849 fi
13850 cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856
13857 /* Override any gcc2 internal prototype to avoid an error.  */
13858 #ifdef __cplusplus
13859 extern "C"
13860 #endif
13861 /* We use char because int might match the return type of a gcc2
13862    builtin and then its argument prototype would still apply.  */
13863 char deflate ();
13864 int
13865 main ()
13866 {
13867 deflate ();
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 rm -f conftest.$ac_objext conftest$ac_exeext
13873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13874   (eval $ac_link) 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } &&
13881          { ac_try='test -z "$ac_c_werror_flag"
13882                          || test ! -s conftest.err'
13883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884   (eval $ac_try) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); }; } &&
13888          { ac_try='test -s conftest$ac_exeext'
13889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890   (eval $ac_try) 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_cv_lib_z_deflate=yes
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 ac_cv_lib_z_deflate=no
13900 fi
13901 rm -f conftest.err conftest.$ac_objext \
13902       conftest$ac_exeext conftest.$ac_ext
13903 LIBS=$ac_check_lib_save_LIBS
13904 fi
13905 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13906 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13907 if test $ac_cv_lib_z_deflate = yes; then
13908   ZLIBSPEC=-lz
13909 else
13910   ZLIBSPEC=
13911 fi
13912
13913    fi
13914
13915    LIBMAGIC=
13916    echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
13917 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
13918 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
13919   echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921   ac_check_lib_save_LIBS=$LIBS
13922 LIBS="-lmagic  $LIBS"
13923 if test x$gcc_no_link = xyes; then
13924   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13926    { (exit 1); exit 1; }; }
13927 fi
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934
13935 /* Override any gcc2 internal prototype to avoid an error.  */
13936 #ifdef __cplusplus
13937 extern "C"
13938 #endif
13939 /* We use char because int might match the return type of a gcc2
13940    builtin and then its argument prototype would still apply.  */
13941 char magic_open ();
13942 int
13943 main ()
13944 {
13945 magic_open ();
13946   ;
13947   return 0;
13948 }
13949 _ACEOF
13950 rm -f conftest.$ac_objext conftest$ac_exeext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13952   (eval $ac_link) 2>conftest.er1
13953   ac_status=$?
13954   grep -v '^ *+' conftest.er1 >conftest.err
13955   rm -f conftest.er1
13956   cat conftest.err >&5
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); } &&
13959          { ac_try='test -z "$ac_c_werror_flag"
13960                          || test ! -s conftest.err'
13961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962   (eval $ac_try) 2>&5
13963   ac_status=$?
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); }; } &&
13966          { ac_try='test -s conftest$ac_exeext'
13967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968   (eval $ac_try) 2>&5
13969   ac_status=$?
13970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971   (exit $ac_status); }; }; then
13972   ac_cv_lib_magic_magic_open=yes
13973 else
13974   echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ac_cv_lib_magic_magic_open=no
13978 fi
13979 rm -f conftest.err conftest.$ac_objext \
13980       conftest$ac_exeext conftest.$ac_ext
13981 LIBS=$ac_check_lib_save_LIBS
13982 fi
13983 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
13984 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
13985 if test $ac_cv_lib_magic_magic_open = yes; then
13986
13987
13988 cat >>confdefs.h <<\_ACEOF
13989 #define HAVE_MAGIC_OPEN 1
13990 _ACEOF
13991
13992       LIBMAGIC="-lmagic"
13993 fi
13994
13995
13996
13997    # Test for Gtk stuff, if asked for.
13998    if test "$use_gtk_awt" = yes; then
13999
14000   succeeded=no
14001
14002   if test -z "$PKG_CONFIG"; then
14003     # Extract the first word of "pkg-config", so it can be a program name with args.
14004 set dummy pkg-config; ac_word=$2
14005 echo "$as_me:$LINENO: checking for $ac_word" >&5
14006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14007 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   case $PKG_CONFIG in
14011   [\\/]* | ?:[\\/]*)
14012   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14013   ;;
14014   *)
14015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14017 do
14018   IFS=$as_save_IFS
14019   test -z "$as_dir" && as_dir=.
14020   for ac_exec_ext in '' $ac_executable_extensions; do
14021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14022     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14024     break 2
14025   fi
14026 done
14027 done
14028
14029   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14030   ;;
14031 esac
14032 fi
14033 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14034
14035 if test -n "$PKG_CONFIG"; then
14036   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14037 echo "${ECHO_T}$PKG_CONFIG" >&6
14038 else
14039   echo "$as_me:$LINENO: result: no" >&5
14040 echo "${ECHO_T}no" >&6
14041 fi
14042
14043   fi
14044
14045   if test "$PKG_CONFIG" = "no" ; then
14046      echo "*** The pkg-config script could not be found. Make sure it is"
14047      echo "*** in your path, or set the PKG_CONFIG environment variable"
14048      echo "*** to the full path to pkg-config."
14049      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14050   else
14051      PKG_CONFIG_MIN_VERSION=0.9.0
14052      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14053         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14054 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
14055
14056         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
14057             echo "$as_me:$LINENO: result: yes" >&5
14058 echo "${ECHO_T}yes" >&6
14059             succeeded=yes
14060
14061             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14062 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
14063             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
14064             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14065 echo "${ECHO_T}$GTK_CFLAGS" >&6
14066
14067             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14068 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
14069             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
14070             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14071 echo "${ECHO_T}$GTK_LIBS" >&6
14072         else
14073             GTK_CFLAGS=""
14074             GTK_LIBS=""
14075             ## If we have a custom action on failure, don't print errors, but
14076             ## do set a variable so people can do so.
14077             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14078             echo $GTK_PKG_ERRORS
14079         fi
14080
14081
14082
14083      else
14084         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14085         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14086      fi
14087   fi
14088
14089   if test $succeeded = yes; then
14090      :
14091   else
14092      { { 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
14093 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;}
14094    { (exit 1); exit 1; }; }
14095   fi
14096
14097
14098
14099
14100
14101   succeeded=no
14102
14103   if test -z "$PKG_CONFIG"; then
14104     # Extract the first word of "pkg-config", so it can be a program name with args.
14105 set dummy pkg-config; ac_word=$2
14106 echo "$as_me:$LINENO: checking for $ac_word" >&5
14107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14108 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   case $PKG_CONFIG in
14112   [\\/]* | ?:[\\/]*)
14113   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14114   ;;
14115   *)
14116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14118 do
14119   IFS=$as_save_IFS
14120   test -z "$as_dir" && as_dir=.
14121   for ac_exec_ext in '' $ac_executable_extensions; do
14122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14125     break 2
14126   fi
14127 done
14128 done
14129
14130   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14131   ;;
14132 esac
14133 fi
14134 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14135
14136 if test -n "$PKG_CONFIG"; then
14137   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14138 echo "${ECHO_T}$PKG_CONFIG" >&6
14139 else
14140   echo "$as_me:$LINENO: result: no" >&5
14141 echo "${ECHO_T}no" >&6
14142 fi
14143
14144   fi
14145
14146   if test "$PKG_CONFIG" = "no" ; then
14147      echo "*** The pkg-config script could not be found. Make sure it is"
14148      echo "*** in your path, or set the PKG_CONFIG environment variable"
14149      echo "*** to the full path to pkg-config."
14150      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14151   else
14152      PKG_CONFIG_MIN_VERSION=0.9.0
14153      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14154         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14155 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14156
14157         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14158             echo "$as_me:$LINENO: result: yes" >&5
14159 echo "${ECHO_T}yes" >&6
14160             succeeded=yes
14161
14162             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14163 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14164             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14165             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14166 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14167
14168             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14169 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14170             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14171             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14172 echo "${ECHO_T}$GLIB_LIBS" >&6
14173         else
14174             GLIB_CFLAGS=""
14175             GLIB_LIBS=""
14176             ## If we have a custom action on failure, don't print errors, but
14177             ## do set a variable so people can do so.
14178             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14179             echo $GLIB_PKG_ERRORS
14180         fi
14181
14182
14183
14184      else
14185         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14186         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14187      fi
14188   fi
14189
14190   if test $succeeded = yes; then
14191      :
14192   else
14193      { { 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
14194 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;}
14195    { (exit 1); exit 1; }; }
14196   fi
14197
14198
14199
14200
14201
14202   succeeded=no
14203
14204   if test -z "$PKG_CONFIG"; then
14205     # Extract the first word of "pkg-config", so it can be a program name with args.
14206 set dummy pkg-config; ac_word=$2
14207 echo "$as_me:$LINENO: checking for $ac_word" >&5
14208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14210   echo $ECHO_N "(cached) $ECHO_C" >&6
14211 else
14212   case $PKG_CONFIG in
14213   [\\/]* | ?:[\\/]*)
14214   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14215   ;;
14216   *)
14217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218 for as_dir in $PATH
14219 do
14220   IFS=$as_save_IFS
14221   test -z "$as_dir" && as_dir=.
14222   for ac_exec_ext in '' $ac_executable_extensions; do
14223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14224     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14226     break 2
14227   fi
14228 done
14229 done
14230
14231   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14232   ;;
14233 esac
14234 fi
14235 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14236
14237 if test -n "$PKG_CONFIG"; then
14238   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14239 echo "${ECHO_T}$PKG_CONFIG" >&6
14240 else
14241   echo "$as_me:$LINENO: result: no" >&5
14242 echo "${ECHO_T}no" >&6
14243 fi
14244
14245   fi
14246
14247   if test "$PKG_CONFIG" = "no" ; then
14248      echo "*** The pkg-config script could not be found. Make sure it is"
14249      echo "*** in your path, or set the PKG_CONFIG environment variable"
14250      echo "*** to the full path to pkg-config."
14251      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14252   else
14253      PKG_CONFIG_MIN_VERSION=0.9.0
14254      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14255         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14256 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14257
14258         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14259             echo "$as_me:$LINENO: result: yes" >&5
14260 echo "${ECHO_T}yes" >&6
14261             succeeded=yes
14262
14263             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14264 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14265             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14266             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14267 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14268
14269             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14270 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14271             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14272             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14273 echo "${ECHO_T}$LIBART_LIBS" >&6
14274         else
14275             LIBART_CFLAGS=""
14276             LIBART_LIBS=""
14277             ## If we have a custom action on failure, don't print errors, but
14278             ## do set a variable so people can do so.
14279             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14280             echo $LIBART_PKG_ERRORS
14281         fi
14282
14283
14284
14285      else
14286         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14287         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14288      fi
14289   fi
14290
14291   if test $succeeded = yes; then
14292      :
14293   else
14294      { { 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
14295 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;}
14296    { (exit 1); exit 1; }; }
14297   fi
14298
14299
14300
14301
14302       # We require the XTest Extension to support java.awt.Robot.
14303       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14304 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14305 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   ac_check_lib_save_LIBS=$LIBS
14309 LIBS="-lXtst ${X_LIBS} $LIBS"
14310 if test x$gcc_no_link = xyes; then
14311   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14313    { (exit 1); exit 1; }; }
14314 fi
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321
14322 /* Override any gcc2 internal prototype to avoid an error.  */
14323 #ifdef __cplusplus
14324 extern "C"
14325 #endif
14326 /* We use char because int might match the return type of a gcc2
14327    builtin and then its argument prototype would still apply.  */
14328 char XTestQueryExtension ();
14329 int
14330 main ()
14331 {
14332 XTestQueryExtension ();
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14339   (eval $ac_link) 2>conftest.er1
14340   ac_status=$?
14341   grep -v '^ *+' conftest.er1 >conftest.err
14342   rm -f conftest.er1
14343   cat conftest.err >&5
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } &&
14346          { ac_try='test -z "$ac_c_werror_flag"
14347                          || test ! -s conftest.err'
14348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349   (eval $ac_try) 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; } &&
14353          { ac_try='test -s conftest$ac_exeext'
14354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355   (eval $ac_try) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359   ac_cv_lib_Xtst_XTestQueryExtension=yes
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 ac_cv_lib_Xtst_XTestQueryExtension=no
14365 fi
14366 rm -f conftest.err conftest.$ac_objext \
14367       conftest$ac_exeext conftest.$ac_ext
14368 LIBS=$ac_check_lib_save_LIBS
14369 fi
14370 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14371 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14372 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14373   true
14374 else
14375   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14376 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14377    { (exit 1); exit 1; }; }
14378 fi
14379
14380    fi
14381
14382    # On Solaris, and maybe other architectures, the Boehm collector
14383    # requires -ldl.
14384    if test "$GC" = boehm; then
14385       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14386 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14387 if test "${ac_cv_lib_dl_main+set}" = set; then
14388   echo $ECHO_N "(cached) $ECHO_C" >&6
14389 else
14390   ac_check_lib_save_LIBS=$LIBS
14391 LIBS="-ldl  $LIBS"
14392 if test x$gcc_no_link = xyes; then
14393   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14395    { (exit 1); exit 1; }; }
14396 fi
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403
14404
14405 int
14406 main ()
14407 {
14408 main ();
14409   ;
14410   return 0;
14411 }
14412 _ACEOF
14413 rm -f conftest.$ac_objext conftest$ac_exeext
14414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14415   (eval $ac_link) 2>conftest.er1
14416   ac_status=$?
14417   grep -v '^ *+' conftest.er1 >conftest.err
14418   rm -f conftest.er1
14419   cat conftest.err >&5
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } &&
14422          { ac_try='test -z "$ac_c_werror_flag"
14423                          || test ! -s conftest.err'
14424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14425   (eval $ac_try) 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; } &&
14429          { ac_try='test -s conftest$ac_exeext'
14430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431   (eval $ac_try) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   ac_cv_lib_dl_main=yes
14436 else
14437   echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14439
14440 ac_cv_lib_dl_main=no
14441 fi
14442 rm -f conftest.err conftest.$ac_objext \
14443       conftest$ac_exeext conftest.$ac_ext
14444 LIBS=$ac_check_lib_save_LIBS
14445 fi
14446 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14447 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14448 if test $ac_cv_lib_dl_main = yes; then
14449   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14450 fi
14451
14452    fi
14453 fi
14454
14455 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14456 case $build in
14457     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14458     *)         CLASSPATH_SEPARATOR=':' ;;
14459 esac
14460
14461
14462 # We must search the source tree for java.lang, since we still don't
14463 # have libgcj.jar nor java/lang/*.class
14464 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14465 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14466
14467 # Since some classes depend on this one, we need its source available
14468 # before we can do any GCJ compilation test :-(
14469 if test ! -f gnu/classpath/Configuration.java; then
14470   test -d gnu || mkdir gnu
14471   test -d gnu/classpath || mkdir gnu/classpath
14472   # Note that it is not crucial that all the values here be correct.
14473   sed -e "s,@prefix@,$prefix," \
14474       -e "s,@VERSION@,$VERSION," \
14475       -e "s,@LIBDEBUG@,false," \
14476       -e "s,@INIT_LOAD_LIBRARY@,false," \
14477       -e "s,@@,$LIBGCJDEBUG," \
14478       -e "s,@default_toolkit@,$TOOLKIT," \
14479       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14480       -e "s,@GTK_CAIRO_ENABLED@,false," \
14481         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14482         > gnu/classpath/Configuration.java
14483   # We do not want to redirect the output of the grep below to /dev/null,
14484   # but we add /dev/null to the input list so that grep will print the
14485   # filename of Configuration.java in case it finds any matches.
14486   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14487     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14488 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14489    { (exit 1); exit 1; }; }
14490   fi
14491 fi
14492
14493 if test -n "$ac_tool_prefix"; then
14494   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14495 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14496 echo "$as_me:$LINENO: checking for $ac_word" >&5
14497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14498 if test "${ac_cv_prog_GCJ+set}" = set; then
14499   echo $ECHO_N "(cached) $ECHO_C" >&6
14500 else
14501   if test -n "$GCJ"; then
14502   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14503 else
14504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505 for as_dir in $PATH
14506 do
14507   IFS=$as_save_IFS
14508   test -z "$as_dir" && as_dir=.
14509   for ac_exec_ext in '' $ac_executable_extensions; do
14510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14511     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14513     break 2
14514   fi
14515 done
14516 done
14517
14518 fi
14519 fi
14520 GCJ=$ac_cv_prog_GCJ
14521 if test -n "$GCJ"; then
14522   echo "$as_me:$LINENO: result: $GCJ" >&5
14523 echo "${ECHO_T}$GCJ" >&6
14524 else
14525   echo "$as_me:$LINENO: result: no" >&5
14526 echo "${ECHO_T}no" >&6
14527 fi
14528
14529 fi
14530 if test -z "$ac_cv_prog_GCJ"; then
14531   ac_ct_GCJ=$GCJ
14532   # Extract the first word of "gcj", so it can be a program name with args.
14533 set dummy gcj; ac_word=$2
14534 echo "$as_me:$LINENO: checking for $ac_word" >&5
14535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14536 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14537   echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539   if test -n "$ac_ct_GCJ"; then
14540   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14541 else
14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543 for as_dir in $PATH
14544 do
14545   IFS=$as_save_IFS
14546   test -z "$as_dir" && as_dir=.
14547   for ac_exec_ext in '' $ac_executable_extensions; do
14548   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14549     ac_cv_prog_ac_ct_GCJ="gcj"
14550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14551     break 2
14552   fi
14553 done
14554 done
14555
14556   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14557 fi
14558 fi
14559 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14560 if test -n "$ac_ct_GCJ"; then
14561   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14562 echo "${ECHO_T}$ac_ct_GCJ" >&6
14563 else
14564   echo "$as_me:$LINENO: result: no" >&5
14565 echo "${ECHO_T}no" >&6
14566 fi
14567
14568   GCJ=$ac_ct_GCJ
14569 else
14570   GCJ="$ac_cv_prog_GCJ"
14571 fi
14572
14573   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14574
14575
14576
14577
14578 # Now remove it.
14579 rm -f gnu/classpath/Configuration.java
14580
14581 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14582
14583 echo "$as_me:$LINENO: checking for void *" >&5
14584 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14585 if test "${ac_cv_type_void_p+set}" = set; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   cat >conftest.$ac_ext <<_ACEOF
14589 /* confdefs.h.  */
14590 _ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h.  */
14594 $ac_includes_default
14595 int
14596 main ()
14597 {
14598 if ((void * *) 0)
14599   return 0;
14600 if (sizeof (void *))
14601   return 0;
14602   ;
14603   return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext
14607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608   (eval $ac_compile) 2>conftest.er1
14609   ac_status=$?
14610   grep -v '^ *+' conftest.er1 >conftest.err
14611   rm -f conftest.er1
14612   cat conftest.err >&5
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); } &&
14615          { ac_try='test -z "$ac_c_werror_flag"
14616                          || test ! -s conftest.err'
14617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618   (eval $ac_try) 2>&5
14619   ac_status=$?
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); }; } &&
14622          { ac_try='test -s conftest.$ac_objext'
14623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624   (eval $ac_try) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); }; }; then
14628   ac_cv_type_void_p=yes
14629 else
14630   echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 ac_cv_type_void_p=no
14634 fi
14635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14636 fi
14637 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14638 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14639
14640 echo "$as_me:$LINENO: checking size of void *" >&5
14641 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14642 if test "${ac_cv_sizeof_void_p+set}" = set; then
14643   echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645   if test "$ac_cv_type_void_p" = yes; then
14646   # The cast to unsigned long works around a bug in the HP C Compiler
14647   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14648   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14649   # This bug is HP SR number 8606223364.
14650   if test "$cross_compiling" = yes; then
14651   # Depending upon the size, compute the lo and hi bounds.
14652 cat >conftest.$ac_ext <<_ACEOF
14653 /* confdefs.h.  */
14654 _ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h.  */
14658 $ac_includes_default
14659 int
14660 main ()
14661 {
14662 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14663 test_array [0] = 0
14664
14665   ;
14666   return 0;
14667 }
14668 _ACEOF
14669 rm -f conftest.$ac_objext
14670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14671   (eval $ac_compile) 2>conftest.er1
14672   ac_status=$?
14673   grep -v '^ *+' conftest.er1 >conftest.err
14674   rm -f conftest.er1
14675   cat conftest.err >&5
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); } &&
14678          { ac_try='test -z "$ac_c_werror_flag"
14679                          || test ! -s conftest.err'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; } &&
14685          { ac_try='test -s conftest.$ac_objext'
14686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687   (eval $ac_try) 2>&5
14688   ac_status=$?
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); }; }; then
14691   ac_lo=0 ac_mid=0
14692   while :; do
14693     cat >conftest.$ac_ext <<_ACEOF
14694 /* confdefs.h.  */
14695 _ACEOF
14696 cat confdefs.h >>conftest.$ac_ext
14697 cat >>conftest.$ac_ext <<_ACEOF
14698 /* end confdefs.h.  */
14699 $ac_includes_default
14700 int
14701 main ()
14702 {
14703 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14704 test_array [0] = 0
14705
14706   ;
14707   return 0;
14708 }
14709 _ACEOF
14710 rm -f conftest.$ac_objext
14711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712   (eval $ac_compile) 2>conftest.er1
14713   ac_status=$?
14714   grep -v '^ *+' conftest.er1 >conftest.err
14715   rm -f conftest.er1
14716   cat conftest.err >&5
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); } &&
14719          { ac_try='test -z "$ac_c_werror_flag"
14720                          || test ! -s conftest.err'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; } &&
14726          { ac_try='test -s conftest.$ac_objext'
14727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728   (eval $ac_try) 2>&5
14729   ac_status=$?
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); }; }; then
14732   ac_hi=$ac_mid; break
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737 ac_lo=`expr $ac_mid + 1`
14738                     if test $ac_lo -le $ac_mid; then
14739                       ac_lo= ac_hi=
14740                       break
14741                     fi
14742                     ac_mid=`expr 2 '*' $ac_mid + 1`
14743 fi
14744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14745   done
14746 else
14747   echo "$as_me: failed program was:" >&5
14748 sed 's/^/| /' conftest.$ac_ext >&5
14749
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h.  */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h.  */
14756 $ac_includes_default
14757 int
14758 main ()
14759 {
14760 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14761 test_array [0] = 0
14762
14763   ;
14764   return 0;
14765 }
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769   (eval $ac_compile) 2>conftest.er1
14770   ac_status=$?
14771   grep -v '^ *+' conftest.er1 >conftest.err
14772   rm -f conftest.er1
14773   cat conftest.err >&5
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } &&
14776          { ac_try='test -z "$ac_c_werror_flag"
14777                          || test ! -s conftest.err'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; } &&
14783          { ac_try='test -s conftest.$ac_objext'
14784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785   (eval $ac_try) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); }; }; then
14789   ac_hi=-1 ac_mid=-1
14790   while :; do
14791     cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 $ac_includes_default
14798 int
14799 main ()
14800 {
14801 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14802 test_array [0] = 0
14803
14804   ;
14805   return 0;
14806 }
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14810   (eval $ac_compile) 2>conftest.er1
14811   ac_status=$?
14812   grep -v '^ *+' conftest.er1 >conftest.err
14813   rm -f conftest.er1
14814   cat conftest.err >&5
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); } &&
14817          { ac_try='test -z "$ac_c_werror_flag"
14818                          || test ! -s conftest.err'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; } &&
14824          { ac_try='test -s conftest.$ac_objext'
14825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826   (eval $ac_try) 2>&5
14827   ac_status=$?
14828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829   (exit $ac_status); }; }; then
14830   ac_lo=$ac_mid; break
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835 ac_hi=`expr '(' $ac_mid ')' - 1`
14836                        if test $ac_mid -le $ac_hi; then
14837                          ac_lo= ac_hi=
14838                          break
14839                        fi
14840                        ac_mid=`expr 2 '*' $ac_mid`
14841 fi
14842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14843   done
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848 ac_lo= ac_hi=
14849 fi
14850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14851 fi
14852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14853 # Binary search between lo and hi bounds.
14854 while test "x$ac_lo" != "x$ac_hi"; do
14855   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14856   cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h.  */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h.  */
14862 $ac_includes_default
14863 int
14864 main ()
14865 {
14866 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14867 test_array [0] = 0
14868
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875   (eval $ac_compile) 2>conftest.er1
14876   ac_status=$?
14877   grep -v '^ *+' conftest.er1 >conftest.err
14878   rm -f conftest.er1
14879   cat conftest.err >&5
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); } &&
14882          { ac_try='test -z "$ac_c_werror_flag"
14883                          || test ! -s conftest.err'
14884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885   (eval $ac_try) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; } &&
14889          { ac_try='test -s conftest.$ac_objext'
14890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891   (eval $ac_try) 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; }; then
14895   ac_hi=$ac_mid
14896 else
14897   echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 ac_lo=`expr '(' $ac_mid ')' + 1`
14901 fi
14902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14903 done
14904 case $ac_lo in
14905 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14906 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14907 See \`config.log' for more details." >&5
14908 echo "$as_me: error: cannot compute sizeof (void *), 77
14909 See \`config.log' for more details." >&2;}
14910    { (exit 1); exit 1; }; } ;;
14911 esac
14912 else
14913   if test "$cross_compiling" = yes; then
14914   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14915 See \`config.log' for more details." >&5
14916 echo "$as_me: error: cannot run test program while cross compiling
14917 See \`config.log' for more details." >&2;}
14918    { (exit 1); exit 1; }; }
14919 else
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 $ac_includes_default
14927 long longval () { return (long) (sizeof (void *)); }
14928 unsigned long ulongval () { return (long) (sizeof (void *)); }
14929 #include <stdio.h>
14930 #include <stdlib.h>
14931 int
14932 main ()
14933 {
14934
14935   FILE *f = fopen ("conftest.val", "w");
14936   if (! f)
14937     exit (1);
14938   if (((long) (sizeof (void *))) < 0)
14939     {
14940       long i = longval ();
14941       if (i != ((long) (sizeof (void *))))
14942         exit (1);
14943       fprintf (f, "%ld\n", i);
14944     }
14945   else
14946     {
14947       unsigned long i = ulongval ();
14948       if (i != ((long) (sizeof (void *))))
14949         exit (1);
14950       fprintf (f, "%lu\n", i);
14951     }
14952   exit (ferror (f) || fclose (f) != 0);
14953
14954   ;
14955   return 0;
14956 }
14957 _ACEOF
14958 rm -f conftest$ac_exeext
14959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14960   (eval $ac_link) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965   (eval $ac_try) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); }; }; then
14969   ac_cv_sizeof_void_p=`cat conftest.val`
14970 else
14971   echo "$as_me: program exited with status $ac_status" >&5
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14974
14975 ( exit $ac_status )
14976 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14977 See \`config.log' for more details." >&5
14978 echo "$as_me: error: cannot compute sizeof (void *), 77
14979 See \`config.log' for more details." >&2;}
14980    { (exit 1); exit 1; }; }
14981 fi
14982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14983 fi
14984 fi
14985 rm -f conftest.val
14986 else
14987   ac_cv_sizeof_void_p=0
14988 fi
14989 fi
14990 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14991 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14992 cat >>confdefs.h <<_ACEOF
14993 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14994 _ACEOF
14995
14996
14997
14998 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14999 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15000 if test "${ac_cv_c_bigendian+set}" = set; then
15001   echo $ECHO_N "(cached) $ECHO_C" >&6
15002 else
15003   # See if sys/param.h defines the BYTE_ORDER macro.
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 #include <sys/types.h>
15011 #include <sys/param.h>
15012
15013 int
15014 main ()
15015 {
15016 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15017  bogus endian macros
15018 #endif
15019
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026   (eval $ac_compile) 2>conftest.er1
15027   ac_status=$?
15028   grep -v '^ *+' conftest.er1 >conftest.err
15029   rm -f conftest.er1
15030   cat conftest.err >&5
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } &&
15033          { ac_try='test -z "$ac_c_werror_flag"
15034                          || test ! -s conftest.err'
15035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036   (eval $ac_try) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); }; } &&
15040          { ac_try='test -s conftest.$ac_objext'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046   # It does; now see whether it defined to BIG_ENDIAN or not.
15047 cat >conftest.$ac_ext <<_ACEOF
15048 /* confdefs.h.  */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h.  */
15053 #include <sys/types.h>
15054 #include <sys/param.h>
15055
15056 int
15057 main ()
15058 {
15059 #if BYTE_ORDER != BIG_ENDIAN
15060  not big endian
15061 #endif
15062
15063   ;
15064   return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15069   (eval $ac_compile) 2>conftest.er1
15070   ac_status=$?
15071   grep -v '^ *+' conftest.er1 >conftest.err
15072   rm -f conftest.er1
15073   cat conftest.err >&5
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); } &&
15076          { ac_try='test -z "$ac_c_werror_flag"
15077                          || test ! -s conftest.err'
15078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079   (eval $ac_try) 2>&5
15080   ac_status=$?
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); }; } &&
15083          { ac_try='test -s conftest.$ac_objext'
15084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085   (eval $ac_try) 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }; }; then
15089   ac_cv_c_bigendian=yes
15090 else
15091   echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15093
15094 ac_cv_c_bigendian=no
15095 fi
15096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15097 else
15098   echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101 # It does not; compile a test program.
15102 if test "$cross_compiling" = yes; then
15103   # try to guess the endianness by grepping values into an object file
15104   ac_cv_c_bigendian=unknown
15105   cat >conftest.$ac_ext <<_ACEOF
15106 /* confdefs.h.  */
15107 _ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h.  */
15111 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15112 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15113 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15114 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15115 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15116 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15117 int
15118 main ()
15119 {
15120  _ascii (); _ebcdic ();
15121   ;
15122   return 0;
15123 }
15124 _ACEOF
15125 rm -f conftest.$ac_objext
15126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15127   (eval $ac_compile) 2>conftest.er1
15128   ac_status=$?
15129   grep -v '^ *+' conftest.er1 >conftest.err
15130   rm -f conftest.er1
15131   cat conftest.err >&5
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); } &&
15134          { ac_try='test -z "$ac_c_werror_flag"
15135                          || test ! -s conftest.err'
15136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15137   (eval $ac_try) 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; } &&
15141          { ac_try='test -s conftest.$ac_objext'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; }; then
15147   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15148   ac_cv_c_bigendian=yes
15149 fi
15150 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15151   if test "$ac_cv_c_bigendian" = unknown; then
15152     ac_cv_c_bigendian=no
15153   else
15154     # finding both strings is unlikely to happen, but who knows?
15155     ac_cv_c_bigendian=unknown
15156   fi
15157 fi
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162 fi
15163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15164 else
15165   cat >conftest.$ac_ext <<_ACEOF
15166 /* confdefs.h.  */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h.  */
15171 int
15172 main ()
15173 {
15174   /* Are we little or big endian?  From Harbison&Steele.  */
15175   union
15176   {
15177     long l;
15178     char c[sizeof (long)];
15179   } u;
15180   u.l = 1;
15181   exit (u.c[sizeof (long) - 1] == 1);
15182 }
15183 _ACEOF
15184 rm -f conftest$ac_exeext
15185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15186   (eval $ac_link) 2>&5
15187   ac_status=$?
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191   (eval $ac_try) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; }; then
15195   ac_cv_c_bigendian=no
15196 else
15197   echo "$as_me: program exited with status $ac_status" >&5
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201 ( exit $ac_status )
15202 ac_cv_c_bigendian=yes
15203 fi
15204 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15205 fi
15206 fi
15207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15208 fi
15209 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15210 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15211 case $ac_cv_c_bigendian in
15212   yes)
15213
15214 cat >>confdefs.h <<\_ACEOF
15215 #define WORDS_BIGENDIAN 1
15216 _ACEOF
15217  ;;
15218   no)
15219      ;;
15220   *)
15221     { { echo "$as_me:$LINENO: error: unknown endianness
15222 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15223 echo "$as_me: error: unknown endianness
15224 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15225    { (exit 1); exit 1; }; } ;;
15226 esac
15227
15228
15229 ZLIBS=
15230 SYS_ZLIBS=
15231 ZINCS=
15232
15233 if test -z "$ZLIBSPEC"; then
15234    # Use zlib from the GCC tree.
15235    ZINCS='-I$(top_srcdir)/../zlib'
15236    ZLIBS=../zlib/libzgcj_convenience.la
15237 else
15238    # System's zlib.
15239    SYS_ZLIBS="$ZLIBSPEC"
15240 fi
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252 if test "$NATIVE" = yes; then
15253   NATIVE_TRUE=
15254   NATIVE_FALSE='#'
15255 else
15256   NATIVE_TRUE='#'
15257   NATIVE_FALSE=
15258 fi
15259
15260
15261
15262 if test "$enable_shared" = yes; then
15263   ENABLE_SHARED_TRUE=
15264   ENABLE_SHARED_FALSE='#'
15265 else
15266   ENABLE_SHARED_TRUE='#'
15267   ENABLE_SHARED_FALSE=
15268 fi
15269
15270
15271
15272 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15273   NEEDS_DATA_START_TRUE=
15274   NEEDS_DATA_START_FALSE='#'
15275 else
15276   NEEDS_DATA_START_TRUE='#'
15277   NEEDS_DATA_START_FALSE=
15278 fi
15279
15280
15281
15282 # Process the option "--enable-version-specific-runtime-libs"
15283 # Calculate toolexeclibdir
15284 case ${version_specific_libs} in
15285   yes)
15286     # Need the gcc compiler version to know where to install libraries
15287     # and header files if --enable-version-specific-runtime-libs option
15288     # is selected.
15289     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15290     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15291     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15292     toolexeclibdir=$toolexecmainlibdir
15293     ;;
15294   no)
15295     if test -n "$with_cross_host" &&
15296        test x"$with_cross_host" != x"no"; then
15297       # Install a library built with a cross compiler in tooldir, not libdir.
15298       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15299       toolexecmainlibdir='$(toolexecdir)/lib'
15300     else
15301       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15302       toolexecmainlibdir='$(libdir)'
15303     fi
15304     multi_os_directory=`$CC -print-multi-os-directory`
15305     case $multi_os_directory in
15306       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15307       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15308     esac
15309     ;;
15310 esac
15311
15312
15313
15314
15315 # Determine where the standard .db file and GNU Classpath JNI
15316 # libraries are found.
15317 multi_os_directory=`$CC -print-multi-os-directory`
15318 case $multi_os_directory in
15319   .)
15320    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15321    ;;
15322   *)
15323    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15324    ;;
15325 esac
15326
15327
15328 # Determine gcj version number.
15329 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15330 GCJVERSION=$gcjversion
15331
15332
15333 cat >>confdefs.h <<_ACEOF
15334 #define GCJVERSION "$GCJVERSION"
15335 _ACEOF
15336
15337
15338
15339 cat >>confdefs.h <<\_ACEOF
15340 #define JV_VERSION "1.5.0"
15341 _ACEOF
15342
15343
15344 cat >>confdefs.h <<\_ACEOF
15345 #define JV_API_VERSION "1.5"
15346 _ACEOF
15347
15348
15349
15350 case "${with_gxx_include_dir}" in
15351   yes)
15352     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15353 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15354    { (exit 1); exit 1; }; }
15355     ;;
15356   no | "")
15357     case "${enable_version_specific_runtime_libs}" in
15358       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15359       *)
15360         libstdcxx_incdir='c++/$(gcc_version)'
15361         gxx_include_dir='include/$(libstdcxx_incdir)'
15362         if test -n "$with_cross_host" &&
15363            test x"$with_cross_host" != x"no"; then
15364           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15365         else
15366           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15367         fi;;
15368     esac ;;
15369   *) gxx_include_dir=${with_gxx_include_dir} ;;
15370 esac
15371
15372
15373
15374
15375 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15376 # On that system, sys/ioctl.h will not include sys/filio.h unless
15377 # BSD_COMP is defined; just including sys/filio.h is simpler.
15378 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15379 # for now.  If you change this, you also must update natFile.cc.
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15404                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15405                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15406                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15407                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
15408 do
15409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15411   echo "$as_me:$LINENO: checking for $ac_header" >&5
15412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15414   echo $ECHO_N "(cached) $ECHO_C" >&6
15415 fi
15416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15418 else
15419   # Is the header compilable?
15420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h.  */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h.  */
15428 $ac_includes_default
15429 #include <$ac_header>
15430 _ACEOF
15431 rm -f conftest.$ac_objext
15432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15433   (eval $ac_compile) 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } &&
15440          { ac_try='test -z "$ac_c_werror_flag"
15441                          || test ! -s conftest.err'
15442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443   (eval $ac_try) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; } &&
15447          { ac_try='test -s conftest.$ac_objext'
15448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15449   (eval $ac_try) 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; }; then
15453   ac_header_compiler=yes
15454 else
15455   echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 ac_header_compiler=no
15459 fi
15460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15461 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15462 echo "${ECHO_T}$ac_header_compiler" >&6
15463
15464 # Is the header present?
15465 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h.  */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h.  */
15473 #include <$ac_header>
15474 _ACEOF
15475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15477   ac_status=$?
15478   grep -v '^ *+' conftest.er1 >conftest.err
15479   rm -f conftest.er1
15480   cat conftest.err >&5
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); } >/dev/null; then
15483   if test -s conftest.err; then
15484     ac_cpp_err=$ac_c_preproc_warn_flag
15485     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15486   else
15487     ac_cpp_err=
15488   fi
15489 else
15490   ac_cpp_err=yes
15491 fi
15492 if test -z "$ac_cpp_err"; then
15493   ac_header_preproc=yes
15494 else
15495   echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498   ac_header_preproc=no
15499 fi
15500 rm -f conftest.err conftest.$ac_ext
15501 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15502 echo "${ECHO_T}$ac_header_preproc" >&6
15503
15504 # So?  What about this header?
15505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15506   yes:no: )
15507     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15508 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15511     ac_header_preproc=yes
15512     ;;
15513   no:yes:* )
15514     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15516     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15517 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15519 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15521 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15524     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15525 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15526     (
15527       cat <<\_ASBOX
15528 ## ---------------------------------- ##
15529 ## Report this to the libjava lists.  ##
15530 ## ---------------------------------- ##
15531 _ASBOX
15532     ) |
15533       sed "s/^/$as_me: WARNING:     /" >&2
15534     ;;
15535 esac
15536 echo "$as_me:$LINENO: checking for $ac_header" >&5
15537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   eval "$as_ac_Header=\$ac_header_preproc"
15542 fi
15543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15545
15546 fi
15547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15548   cat >>confdefs.h <<_ACEOF
15549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15550 _ACEOF
15551
15552 fi
15553
15554 done
15555
15556
15557 for ac_header in inttypes.h
15558 do
15559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15561   echo "$as_me:$LINENO: checking for $ac_header" >&5
15562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15564   echo $ECHO_N "(cached) $ECHO_C" >&6
15565 fi
15566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15568 else
15569   # Is the header compilable?
15570 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15572 cat >conftest.$ac_ext <<_ACEOF
15573 /* confdefs.h.  */
15574 _ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h.  */
15578 $ac_includes_default
15579 #include <$ac_header>
15580 _ACEOF
15581 rm -f conftest.$ac_objext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583   (eval $ac_compile) 2>conftest.er1
15584   ac_status=$?
15585   grep -v '^ *+' conftest.er1 >conftest.err
15586   rm -f conftest.er1
15587   cat conftest.err >&5
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); } &&
15590          { ac_try='test -z "$ac_c_werror_flag"
15591                          || test ! -s conftest.err'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; } &&
15597          { ac_try='test -s conftest.$ac_objext'
15598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15599   (eval $ac_try) 2>&5
15600   ac_status=$?
15601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602   (exit $ac_status); }; }; then
15603   ac_header_compiler=yes
15604 else
15605   echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15607
15608 ac_header_compiler=no
15609 fi
15610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15612 echo "${ECHO_T}$ac_header_compiler" >&6
15613
15614 # Is the header present?
15615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623 #include <$ac_header>
15624 _ACEOF
15625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15627   ac_status=$?
15628   grep -v '^ *+' conftest.er1 >conftest.err
15629   rm -f conftest.er1
15630   cat conftest.err >&5
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); } >/dev/null; then
15633   if test -s conftest.err; then
15634     ac_cpp_err=$ac_c_preproc_warn_flag
15635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15636   else
15637     ac_cpp_err=
15638   fi
15639 else
15640   ac_cpp_err=yes
15641 fi
15642 if test -z "$ac_cpp_err"; then
15643   ac_header_preproc=yes
15644 else
15645   echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15647
15648   ac_header_preproc=no
15649 fi
15650 rm -f conftest.err conftest.$ac_ext
15651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15652 echo "${ECHO_T}$ac_header_preproc" >&6
15653
15654 # So?  What about this header?
15655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15656   yes:no: )
15657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15661     ac_header_preproc=yes
15662     ;;
15663   no:yes:* )
15664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15676     (
15677       cat <<\_ASBOX
15678 ## ---------------------------------- ##
15679 ## Report this to the libjava lists.  ##
15680 ## ---------------------------------- ##
15681 _ASBOX
15682     ) |
15683       sed "s/^/$as_me: WARNING:     /" >&2
15684     ;;
15685 esac
15686 echo "$as_me:$LINENO: checking for $ac_header" >&5
15687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15689   echo $ECHO_N "(cached) $ECHO_C" >&6
15690 else
15691   eval "$as_ac_Header=\$ac_header_preproc"
15692 fi
15693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15695
15696 fi
15697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15698   cat >>confdefs.h <<_ACEOF
15699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15700 _ACEOF
15701
15702
15703 cat >>confdefs.h <<\_ACEOF
15704 #define HAVE_INTTYPES_H 1
15705 _ACEOF
15706
15707
15708 cat >>confdefs.h <<\_ACEOF
15709 #define JV_HAVE_INTTYPES_H 1
15710 _ACEOF
15711
15712
15713 fi
15714
15715 done
15716
15717 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15718 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15719 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 #include <sys/types.h>
15729 #include <sys/wait.h>
15730 #ifndef WEXITSTATUS
15731 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15732 #endif
15733 #ifndef WIFEXITED
15734 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15735 #endif
15736
15737 int
15738 main ()
15739 {
15740   int s;
15741   wait (&s);
15742   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext
15748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15749   (eval $ac_compile) 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } &&
15756          { ac_try='test -z "$ac_c_werror_flag"
15757                          || test ! -s conftest.err'
15758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759   (eval $ac_try) 2>&5
15760   ac_status=$?
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); }; } &&
15763          { ac_try='test -s conftest.$ac_objext'
15764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765   (eval $ac_try) 2>&5
15766   ac_status=$?
15767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768   (exit $ac_status); }; }; then
15769   ac_cv_header_sys_wait_h=yes
15770 else
15771   echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15773
15774 ac_cv_header_sys_wait_h=no
15775 fi
15776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15777 fi
15778 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15779 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15780 if test $ac_cv_header_sys_wait_h = yes; then
15781
15782 cat >>confdefs.h <<\_ACEOF
15783 #define HAVE_SYS_WAIT_H 1
15784 _ACEOF
15785
15786 fi
15787
15788
15789 echo "$as_me:$LINENO: checking for ssize_t" >&5
15790 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15791 if test "${ac_cv_type_ssize_t+set}" = set; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800 $ac_includes_default
15801 int
15802 main ()
15803 {
15804 if ((ssize_t *) 0)
15805   return 0;
15806 if (sizeof (ssize_t))
15807   return 0;
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15814   (eval $ac_compile) 2>conftest.er1
15815   ac_status=$?
15816   grep -v '^ *+' conftest.er1 >conftest.err
15817   rm -f conftest.er1
15818   cat conftest.err >&5
15819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820   (exit $ac_status); } &&
15821          { ac_try='test -z "$ac_c_werror_flag"
15822                          || test ! -s conftest.err'
15823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824   (eval $ac_try) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; } &&
15828          { ac_try='test -s conftest.$ac_objext'
15829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830   (eval $ac_try) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; }; then
15834   ac_cv_type_ssize_t=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839 ac_cv_type_ssize_t=no
15840 fi
15841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15842 fi
15843 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15844 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15845 if test $ac_cv_type_ssize_t = yes; then
15846   :
15847 else
15848
15849 cat >>confdefs.h <<_ACEOF
15850 #define ssize_t int
15851 _ACEOF
15852
15853 fi
15854
15855
15856 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15857 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15858 cat >conftest.$ac_ext <<_ACEOF
15859 /* confdefs.h.  */
15860 _ACEOF
15861 cat confdefs.h >>conftest.$ac_ext
15862 cat >>conftest.$ac_ext <<_ACEOF
15863 /* end confdefs.h.  */
15864 #include <sys/types.h>
15865 #if STDC_HEADERS
15866 #include <stdlib.h>
15867 #include <stddef.h>
15868 #endif
15869 #if HAVE_NETINET_IN_H
15870 #include <netinet/in.h>
15871 #endif
15872 int
15873 main ()
15874 {
15875 in_addr_t foo;
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882   (eval $ac_compile) 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -z "$ac_c_werror_flag"
15890                          || test ! -s conftest.err'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; } &&
15896          { ac_try='test -s conftest.$ac_objext'
15897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898   (eval $ac_try) 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAVE_IN_ADDR_T 1
15905 _ACEOF
15906
15907    echo "$as_me:$LINENO: result: yes" >&5
15908 echo "${ECHO_T}yes" >&6
15909 else
15910   echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.$ac_ext >&5
15912
15913 echo "$as_me:$LINENO: result: no" >&5
15914 echo "${ECHO_T}no" >&6
15915 fi
15916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15917
15918 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15919 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926 #include <netinet/in.h>
15927 int
15928 main ()
15929 {
15930 struct ip_mreq mreq;
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 rm -f conftest.$ac_objext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15937   (eval $ac_compile) 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -z "$ac_c_werror_flag"
15945                          || test ! -s conftest.err'
15946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947   (eval $ac_try) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); }; } &&
15951          { ac_try='test -s conftest.$ac_objext'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957
15958 cat >>confdefs.h <<\_ACEOF
15959 #define HAVE_STRUCT_IP_MREQ 1
15960 _ACEOF
15961
15962    echo "$as_me:$LINENO: result: yes" >&5
15963 echo "${ECHO_T}yes" >&6
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 echo "$as_me:$LINENO: result: no" >&5
15969 echo "${ECHO_T}no" >&6
15970 fi
15971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15972
15973 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15974 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15975 cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 #include <netinet/in.h>
15982 int
15983 main ()
15984 {
15985 struct ipv6_mreq mreq6;
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 rm -f conftest.$ac_objext
15991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15992   (eval $ac_compile) 2>conftest.er1
15993   ac_status=$?
15994   grep -v '^ *+' conftest.er1 >conftest.err
15995   rm -f conftest.er1
15996   cat conftest.err >&5
15997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998   (exit $ac_status); } &&
15999          { ac_try='test -z "$ac_c_werror_flag"
16000                          || test ! -s conftest.err'
16001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002   (eval $ac_try) 2>&5
16003   ac_status=$?
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); }; } &&
16006          { ac_try='test -s conftest.$ac_objext'
16007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008   (eval $ac_try) 2>&5
16009   ac_status=$?
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); }; }; then
16012
16013 cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_STRUCT_IPV6_MREQ 1
16015 _ACEOF
16016
16017    echo "$as_me:$LINENO: result: yes" >&5
16018 echo "${ECHO_T}yes" >&6
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 echo "$as_me:$LINENO: result: no" >&5
16024 echo "${ECHO_T}no" >&6
16025 fi
16026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16027
16028 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16029 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
16030 cat >conftest.$ac_ext <<_ACEOF
16031 /* confdefs.h.  */
16032 _ACEOF
16033 cat confdefs.h >>conftest.$ac_ext
16034 cat >>conftest.$ac_ext <<_ACEOF
16035 /* end confdefs.h.  */
16036 #include <netinet/in.h>
16037 int
16038 main ()
16039 {
16040 struct sockaddr_in6 addr6;
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16047   (eval $ac_compile) 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } &&
16054          { ac_try='test -z "$ac_c_werror_flag"
16055                          || test ! -s conftest.err'
16056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057   (eval $ac_try) 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; } &&
16061          { ac_try='test -s conftest.$ac_objext'
16062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063   (eval $ac_try) 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; }; then
16067
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_INET6 1
16070 _ACEOF
16071
16072    echo "$as_me:$LINENO: result: yes" >&5
16073 echo "${ECHO_T}yes" >&6
16074 else
16075   echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16077
16078 echo "$as_me:$LINENO: result: no" >&5
16079 echo "${ECHO_T}no" >&6
16080 fi
16081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16082
16083 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16084 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h.  */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h.  */
16091 #define _POSIX_PII_SOCKET
16092 #include <sys/types.h>
16093 #include <sys/socket.h>
16094 int
16095 main ()
16096 {
16097 socklen_t x = 5;
16098   ;
16099   return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16104   (eval $ac_compile) 2>conftest.er1
16105   ac_status=$?
16106   grep -v '^ *+' conftest.er1 >conftest.err
16107   rm -f conftest.er1
16108   cat conftest.err >&5
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -z "$ac_c_werror_flag"
16112                          || test ! -s conftest.err'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; } &&
16118          { ac_try='test -s conftest.$ac_objext'
16119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120   (eval $ac_try) 2>&5
16121   ac_status=$?
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); }; }; then
16124
16125 cat >>confdefs.h <<\_ACEOF
16126 #define HAVE_SOCKLEN_T 1
16127 _ACEOF
16128
16129    echo "$as_me:$LINENO: result: yes" >&5
16130 echo "${ECHO_T}yes" >&6
16131 else
16132   echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16134
16135 echo "$as_me:$LINENO: result: no" >&5
16136 echo "${ECHO_T}no" >&6
16137 fi
16138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139
16140 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16141 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 #include <time.h>
16149 int
16150 main ()
16151 {
16152 struct tm tim; tim.tm_gmtoff = 0;
16153   ;
16154   return 0;
16155 }
16156 _ACEOF
16157 rm -f conftest.$ac_objext
16158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16159   (eval $ac_compile) 2>conftest.er1
16160   ac_status=$?
16161   grep -v '^ *+' conftest.er1 >conftest.err
16162   rm -f conftest.er1
16163   cat conftest.err >&5
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); } &&
16166          { ac_try='test -z "$ac_c_werror_flag"
16167                          || test ! -s conftest.err'
16168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16169   (eval $ac_try) 2>&5
16170   ac_status=$?
16171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16172   (exit $ac_status); }; } &&
16173          { ac_try='test -s conftest.$ac_objext'
16174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175   (eval $ac_try) 2>&5
16176   ac_status=$?
16177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178   (exit $ac_status); }; }; then
16179
16180 cat >>confdefs.h <<\_ACEOF
16181 #define STRUCT_TM_HAS_GMTOFF 1
16182 _ACEOF
16183
16184    echo "$as_me:$LINENO: result: yes" >&5
16185 echo "${ECHO_T}yes" >&6
16186 else
16187   echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190 echo "$as_me:$LINENO: result: no" >&5
16191 echo "${ECHO_T}no" >&6
16192    echo "$as_me:$LINENO: checking for global timezone variable" >&5
16193 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16194                cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h.  */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h.  */
16200 #include <time.h>
16201 int
16202 main ()
16203 {
16204 void i(){long z2 = 2*timezone;}
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211   (eval $ac_compile) 2>conftest.er1
16212   ac_status=$?
16213   grep -v '^ *+' conftest.er1 >conftest.err
16214   rm -f conftest.er1
16215   cat conftest.err >&5
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); } &&
16218          { ac_try='test -z "$ac_c_werror_flag"
16219                          || test ! -s conftest.err'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; } &&
16225          { ac_try='test -s conftest.$ac_objext'
16226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227   (eval $ac_try) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; }; then
16231
16232 cat >>confdefs.h <<\_ACEOF
16233 #define HAVE_TIMEZONE 1
16234 _ACEOF
16235
16236       echo "$as_me:$LINENO: result: yes" >&5
16237 echo "${ECHO_T}yes" >&6
16238 else
16239   echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 echo "$as_me:$LINENO: result: no" >&5
16243 echo "${ECHO_T}no" >&6
16244        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16245 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16246               cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252 #include <time.h>
16253 int
16254 main ()
16255 {
16256 long z2 = _timezone;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263   (eval $ac_compile) 2>conftest.er1
16264   ac_status=$?
16265   grep -v '^ *+' conftest.er1 >conftest.err
16266   rm -f conftest.er1
16267   cat conftest.err >&5
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } &&
16270          { ac_try='test -z "$ac_c_werror_flag"
16271                          || test ! -s conftest.err'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; } &&
16277          { ac_try='test -s conftest.$ac_objext'
16278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279   (eval $ac_try) 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; }; then
16283
16284 cat >>confdefs.h <<\_ACEOF
16285 #define HAVE_UNDERSCORE_TIMEZONE 1
16286 _ACEOF
16287
16288           echo "$as_me:$LINENO: result: yes" >&5
16289 echo "${ECHO_T}yes" >&6
16290 else
16291   echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.$ac_ext >&5
16293
16294 echo "$as_me:$LINENO: result: no" >&5
16295 echo "${ECHO_T}no" >&6
16296 fi
16297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16298 fi
16299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16300 fi
16301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16302
16303 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16304 # for constant arguments.  Useless!
16305 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16306 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16307 if test "${ac_cv_working_alloca_h+set}" = set; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310   if test x$gcc_no_link = xyes; then
16311   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16313    { (exit 1); exit 1; }; }
16314 fi
16315 cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321 #include <alloca.h>
16322 int
16323 main ()
16324 {
16325 char *p = (char *) alloca (2 * sizeof (int));
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext conftest$ac_exeext
16331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16332   (eval $ac_link) 2>conftest.er1
16333   ac_status=$?
16334   grep -v '^ *+' conftest.er1 >conftest.err
16335   rm -f conftest.er1
16336   cat conftest.err >&5
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); } &&
16339          { ac_try='test -z "$ac_c_werror_flag"
16340                          || test ! -s conftest.err'
16341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342   (eval $ac_try) 2>&5
16343   ac_status=$?
16344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345   (exit $ac_status); }; } &&
16346          { ac_try='test -s conftest$ac_exeext'
16347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348   (eval $ac_try) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); }; }; then
16352   ac_cv_working_alloca_h=yes
16353 else
16354   echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ac_cv_working_alloca_h=no
16358 fi
16359 rm -f conftest.err conftest.$ac_objext \
16360       conftest$ac_exeext conftest.$ac_ext
16361 fi
16362 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16363 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16364 if test $ac_cv_working_alloca_h = yes; then
16365
16366 cat >>confdefs.h <<\_ACEOF
16367 #define HAVE_ALLOCA_H 1
16368 _ACEOF
16369
16370 fi
16371
16372 echo "$as_me:$LINENO: checking for alloca" >&5
16373 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16374 if test "${ac_cv_func_alloca_works+set}" = set; then
16375   echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377   if test x$gcc_no_link = xyes; then
16378   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16380    { (exit 1); exit 1; }; }
16381 fi
16382 cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388 #ifdef __GNUC__
16389 # define alloca __builtin_alloca
16390 #else
16391 # ifdef _MSC_VER
16392 #  include <malloc.h>
16393 #  define alloca _alloca
16394 # else
16395 #  if HAVE_ALLOCA_H
16396 #   include <alloca.h>
16397 #  else
16398 #   ifdef _AIX
16399  #pragma alloca
16400 #   else
16401 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16402 char *alloca ();
16403 #    endif
16404 #   endif
16405 #  endif
16406 # endif
16407 #endif
16408
16409 int
16410 main ()
16411 {
16412 char *p = (char *) alloca (1);
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16419   (eval $ac_link) 2>conftest.er1
16420   ac_status=$?
16421   grep -v '^ *+' conftest.er1 >conftest.err
16422   rm -f conftest.er1
16423   cat conftest.err >&5
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); } &&
16426          { ac_try='test -z "$ac_c_werror_flag"
16427                          || test ! -s conftest.err'
16428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429   (eval $ac_try) 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }; } &&
16433          { ac_try='test -s conftest$ac_exeext'
16434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435   (eval $ac_try) 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); }; }; then
16439   ac_cv_func_alloca_works=yes
16440 else
16441   echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16443
16444 ac_cv_func_alloca_works=no
16445 fi
16446 rm -f conftest.err conftest.$ac_objext \
16447       conftest$ac_exeext conftest.$ac_ext
16448 fi
16449 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16450 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16451
16452 if test $ac_cv_func_alloca_works = yes; then
16453
16454 cat >>confdefs.h <<\_ACEOF
16455 #define HAVE_ALLOCA 1
16456 _ACEOF
16457
16458 else
16459   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16460 # that cause trouble.  Some versions do not even contain alloca or
16461 # contain a buggy version.  If you still want to use their alloca,
16462 # use ar to extract alloca.o from them instead of compiling alloca.c.
16463
16464 ALLOCA=alloca.$ac_objext
16465
16466 cat >>confdefs.h <<\_ACEOF
16467 #define C_ALLOCA 1
16468 _ACEOF
16469
16470
16471 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16472 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16473 if test "${ac_cv_os_cray+set}" = set; then
16474   echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476   cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h.  */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h.  */
16482 #if defined(CRAY) && ! defined(CRAY2)
16483 webecray
16484 #else
16485 wenotbecray
16486 #endif
16487
16488 _ACEOF
16489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16490   $EGREP "webecray" >/dev/null 2>&1; then
16491   ac_cv_os_cray=yes
16492 else
16493   ac_cv_os_cray=no
16494 fi
16495 rm -f conftest*
16496
16497 fi
16498 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16499 echo "${ECHO_T}$ac_cv_os_cray" >&6
16500 if test $ac_cv_os_cray = yes; then
16501   for ac_func in _getb67 GETB67 getb67; do
16502     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16503 echo "$as_me:$LINENO: checking for $ac_func" >&5
16504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16505 if eval "test \"\${$as_ac_var+set}\" = set"; then
16506   echo $ECHO_N "(cached) $ECHO_C" >&6
16507 else
16508   if test x$gcc_no_link = xyes; then
16509   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16511    { (exit 1); exit 1; }; }
16512 fi
16513 cat >conftest.$ac_ext <<_ACEOF
16514 /* confdefs.h.  */
16515 _ACEOF
16516 cat confdefs.h >>conftest.$ac_ext
16517 cat >>conftest.$ac_ext <<_ACEOF
16518 /* end confdefs.h.  */
16519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16521 #define $ac_func innocuous_$ac_func
16522
16523 /* System header to define __stub macros and hopefully few prototypes,
16524     which can conflict with char $ac_func (); below.
16525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16526     <limits.h> exists even on freestanding compilers.  */
16527
16528 #ifdef __STDC__
16529 # include <limits.h>
16530 #else
16531 # include <assert.h>
16532 #endif
16533
16534 #undef $ac_func
16535
16536 /* Override any gcc2 internal prototype to avoid an error.  */
16537 #ifdef __cplusplus
16538 extern "C"
16539 {
16540 #endif
16541 /* We use char because int might match the return type of a gcc2
16542    builtin and then its argument prototype would still apply.  */
16543 char $ac_func ();
16544 /* The GNU C library defines this for functions which it implements
16545     to always fail with ENOSYS.  Some functions are actually named
16546     something starting with __ and the normal name is an alias.  */
16547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16548 choke me
16549 #else
16550 char (*f) () = $ac_func;
16551 #endif
16552 #ifdef __cplusplus
16553 }
16554 #endif
16555
16556 int
16557 main ()
16558 {
16559 return f != $ac_func;
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest.$ac_objext conftest$ac_exeext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566   (eval $ac_link) 2>conftest.er1
16567   ac_status=$?
16568   grep -v '^ *+' conftest.er1 >conftest.err
16569   rm -f conftest.er1
16570   cat conftest.err >&5
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); } &&
16573          { ac_try='test -z "$ac_c_werror_flag"
16574                          || test ! -s conftest.err'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest$ac_exeext'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   eval "$as_ac_var=yes"
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591 eval "$as_ac_var=no"
16592 fi
16593 rm -f conftest.err conftest.$ac_objext \
16594       conftest$ac_exeext conftest.$ac_ext
16595 fi
16596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16598 if test `eval echo '${'$as_ac_var'}'` = yes; then
16599
16600 cat >>confdefs.h <<_ACEOF
16601 #define CRAY_STACKSEG_END $ac_func
16602 _ACEOF
16603
16604     break
16605 fi
16606
16607   done
16608 fi
16609
16610 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16611 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16612 if test "${ac_cv_c_stack_direction+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   if test "$cross_compiling" = yes; then
16616   ac_cv_c_stack_direction=0
16617 else
16618   cat >conftest.$ac_ext <<_ACEOF
16619 /* confdefs.h.  */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h.  */
16624 int
16625 find_stack_direction ()
16626 {
16627   static char *addr = 0;
16628   auto char dummy;
16629   if (addr == 0)
16630     {
16631       addr = &dummy;
16632       return find_stack_direction ();
16633     }
16634   else
16635     return (&dummy > addr) ? 1 : -1;
16636 }
16637
16638 int
16639 main ()
16640 {
16641   exit (find_stack_direction () < 0);
16642 }
16643 _ACEOF
16644 rm -f conftest$ac_exeext
16645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646   (eval $ac_link) 2>&5
16647   ac_status=$?
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651   (eval $ac_try) 2>&5
16652   ac_status=$?
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); }; }; then
16655   ac_cv_c_stack_direction=1
16656 else
16657   echo "$as_me: program exited with status $ac_status" >&5
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 ( exit $ac_status )
16662 ac_cv_c_stack_direction=-1
16663 fi
16664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16665 fi
16666 fi
16667 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16668 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16669
16670 cat >>confdefs.h <<_ACEOF
16671 #define STACK_DIRECTION $ac_cv_c_stack_direction
16672 _ACEOF
16673
16674
16675 fi
16676
16677
16678 for ac_prog in perl
16679 do
16680   # Extract the first word of "$ac_prog", so it can be a program name with args.
16681 set dummy $ac_prog; ac_word=$2
16682 echo "$as_me:$LINENO: checking for $ac_word" >&5
16683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16684 if test "${ac_cv_prog_PERL+set}" = set; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 else
16687   if test -n "$PERL"; then
16688   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16689 else
16690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16691 for as_dir in $PATH
16692 do
16693   IFS=$as_save_IFS
16694   test -z "$as_dir" && as_dir=.
16695   for ac_exec_ext in '' $ac_executable_extensions; do
16696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16697     ac_cv_prog_PERL="$ac_prog"
16698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16699     break 2
16700   fi
16701 done
16702 done
16703
16704 fi
16705 fi
16706 PERL=$ac_cv_prog_PERL
16707 if test -n "$PERL"; then
16708   echo "$as_me:$LINENO: result: $PERL" >&5
16709 echo "${ECHO_T}$PERL" >&6
16710 else
16711   echo "$as_me:$LINENO: result: no" >&5
16712 echo "${ECHO_T}no" >&6
16713 fi
16714
16715   test -n "$PERL" && break
16716 done
16717 test -n "$PERL" || PERL="false"
16718
16719
16720 SYSDEP_SOURCES=
16721 SIGNAL_HANDLER_AUX=
16722
16723 case "${host}" in
16724  i?86-*-linux*)
16725     SIGNAL_HANDLER=include/i386-signal.h
16726     ;;
16727  sparc*-sun-solaris*)
16728     SIGNAL_HANDLER=include/sparc-signal.h
16729     ;;
16730 # ia64-*)
16731 #    SYSDEP_SOURCES=sysdep/ia64.c
16732 #    test -d sysdep || mkdir sysdep
16733 #    ;;
16734  hppa*-*-linux*)
16735     SIGNAL_HANDLER=include/pa-signal.h
16736     ;;
16737  hppa*-hp-hpux*)
16738     SIGNAL_HANDLER=include/hppa-signal.h
16739     ;;
16740  ia64-*-linux*)
16741     SIGNAL_HANDLER=include/dwarf2-signal.h
16742     ;;
16743  powerpc*-*-linux*)
16744     SIGNAL_HANDLER=include/powerpc-signal.h
16745     ;;
16746  alpha*-*-linux*)
16747     SIGNAL_HANDLER=include/dwarf2-signal.h
16748     ;;
16749  s390*-*-linux*)
16750     SIGNAL_HANDLER=include/s390-signal.h
16751     ;;
16752  x86_64*-*-linux*)
16753     SIGNAL_HANDLER=include/x86_64-signal.h
16754     SIGNAL_HANDLER_AUX=include/i386-signal.h
16755     ;;
16756  sparc*-*-linux*)
16757     SIGNAL_HANDLER=include/dwarf2-signal.h
16758     ;;
16759  sh*-*-linux*)
16760     SIGNAL_HANDLER=include/sh-signal.h
16761     ;;
16762  *mingw*)
16763     SIGNAL_HANDLER=include/win32-signal.h
16764     ;;
16765  mips*-*-linux*)
16766     SIGNAL_HANDLER=include/mips-signal.h
16767     ;;
16768  powerpc*-*-darwin*)
16769     SIGNAL_HANDLER=include/darwin-signal.h
16770     ;;
16771  *)
16772     SIGNAL_HANDLER=include/default-signal.h
16773     ;;
16774 esac
16775
16776 # If we're using sjlj exceptions, forget what we just learned.
16777 if test "$enable_sjlj_exceptions" = yes; then
16778    SIGNAL_HANDLER=include/default-signal.h
16779    SIGNAL_HANDLER_AUX=
16780 fi
16781
16782
16783
16784 if test -z "$SIGNAL_HANDLER_AUX"; then
16785   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16786 fi
16787
16788                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16789
16790
16791 if test "${multilib}" = "yes"; then
16792   multilib_arg="--enable-multilib"
16793 else
16794   multilib_arg=
16795 fi
16796
16797 # See if we support thread-local storage.
16798
16799    # Check whether --enable-tls or --disable-tls was given.
16800 if test "${enable_tls+set}" = set; then
16801   enableval="$enable_tls"
16802
16803       case "$enableval" in
16804        yes|no) ;;
16805        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16806 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16807    { (exit 1); exit 1; }; } ;;
16808       esac
16809
16810 else
16811   enable_tls=yes
16812 fi;
16813
16814   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16815 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16816 if test "${have_tls+set}" = set; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819
16820     if test "$cross_compiling" = yes; then
16821   if test x$gcc_no_link = xyes; then
16822   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16824    { (exit 1); exit 1; }; }
16825 fi
16826 cat >conftest.$ac_ext <<_ACEOF
16827 __thread int a; int b; int main() { return a = b; }
16828 _ACEOF
16829 rm -f conftest.$ac_objext conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831   (eval $ac_link) 2>conftest.er1
16832   ac_status=$?
16833   grep -v '^ *+' conftest.er1 >conftest.err
16834   rm -f conftest.er1
16835   cat conftest.err >&5
16836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837   (exit $ac_status); } &&
16838          { ac_try='test -z "$ac_c_werror_flag"
16839                          || test ! -s conftest.err'
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); }; } &&
16845          { ac_try='test -s conftest$ac_exeext'
16846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847   (eval $ac_try) 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; }; then
16851   have_tls=yes
16852 else
16853   echo "$as_me: failed program was:" >&5
16854 sed 's/^/| /' conftest.$ac_ext >&5
16855
16856 have_tls=no
16857 fi
16858 rm -f conftest.err conftest.$ac_objext \
16859       conftest$ac_exeext conftest.$ac_ext
16860
16861 else
16862   cat >conftest.$ac_ext <<_ACEOF
16863 __thread int a; int b; int main() { return a = b; }
16864 _ACEOF
16865 rm -f conftest$ac_exeext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867   (eval $ac_link) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872   (eval $ac_try) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876                       save_LDFLAGS="$LDFLAGS"
16877       LDFLAGS="-static $LDFLAGS"
16878       if test x$gcc_no_link = xyes; then
16879   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16881    { (exit 1); exit 1; }; }
16882 fi
16883 cat >conftest.$ac_ext <<_ACEOF
16884 int main() { return 0; }
16885 _ACEOF
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888   (eval $ac_link) 2>conftest.er1
16889   ac_status=$?
16890   grep -v '^ *+' conftest.er1 >conftest.err
16891   rm -f conftest.er1
16892   cat conftest.err >&5
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } &&
16895          { ac_try='test -z "$ac_c_werror_flag"
16896                          || test ! -s conftest.err'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; } &&
16902          { ac_try='test -s conftest$ac_exeext'
16903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904   (eval $ac_try) 2>&5
16905   ac_status=$?
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); }; }; then
16908   if test "$cross_compiling" = yes; then
16909   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16910 See \`config.log' for more details." >&5
16911 echo "$as_me: error: cannot run test program while cross compiling
16912 See \`config.log' for more details." >&2;}
16913    { (exit 1); exit 1; }; }
16914 else
16915   cat >conftest.$ac_ext <<_ACEOF
16916 __thread int a; int b; int main() { return a = b; }
16917 _ACEOF
16918 rm -f conftest$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920   (eval $ac_link) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925   (eval $ac_try) 2>&5
16926   ac_status=$?
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); }; }; then
16929   have_tls=yes
16930 else
16931   echo "$as_me: program exited with status $ac_status" >&5
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ( exit $ac_status )
16936 have_tls=no
16937 fi
16938 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16939 fi
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944 have_tls=yes
16945 fi
16946 rm -f conftest.err conftest.$ac_objext \
16947       conftest$ac_exeext conftest.$ac_ext
16948       LDFLAGS="$save_LDFLAGS"
16949 else
16950   echo "$as_me: program exited with status $ac_status" >&5
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954 ( exit $ac_status )
16955 have_tls=no
16956 fi
16957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16958 fi
16959 fi
16960 echo "$as_me:$LINENO: result: $have_tls" >&5
16961 echo "${ECHO_T}$have_tls" >&6
16962   if test "$enable_tls $have_tls" = "yes yes"; then
16963
16964 cat >>confdefs.h <<\_ACEOF
16965 #define HAVE_TLS 1
16966 _ACEOF
16967
16968   fi
16969
16970 # For _Unwind_GetIPInfo.
16971
16972
16973
16974   ac_ext=cc
16975 ac_cpp='$CXXCPP $CPPFLAGS'
16976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16979
16980   ac_save_CXXFLAGS="$CXXFLAGS"
16981   CXXFLAGS="$CXXFLAGS -fno-exceptions"
16982   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16983 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16984   if test "${gcc_cv_getipinfo+set}" = set; then
16985   echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987
16988   if test x$gcc_no_link = xyes; then
16989   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16990 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16991    { (exit 1); exit 1; }; }
16992 fi
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h.  */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h.  */
16999 extern "C" { extern void _Unwind_GetIPInfo(); }
17000 int
17001 main ()
17002 {
17003 _Unwind_GetIPInfo();
17004   ;
17005   return 0;
17006 }
17007 _ACEOF
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17010   (eval $ac_link) 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -z "$ac_cxx_werror_flag"
17018                          || test ! -s conftest.err'
17019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17020   (eval $ac_try) 2>&5
17021   ac_status=$?
17022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023   (exit $ac_status); }; } &&
17024          { ac_try='test -s conftest$ac_exeext'
17025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17026   (eval $ac_try) 2>&5
17027   ac_status=$?
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); }; }; then
17030   gcc_cv_getipinfo=yes
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 gcc_cv_getipinfo=no
17036 fi
17037 rm -f conftest.err conftest.$ac_objext \
17038       conftest$ac_exeext conftest.$ac_ext
17039
17040 fi
17041
17042   if test $gcc_cv_getipinfo = yes; then
17043
17044 cat >>confdefs.h <<\_ACEOF
17045 #define HAVE_GETIPINFO 1
17046 _ACEOF
17047
17048   fi
17049   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
17050 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
17051   CXXFLAGS="$ac_save_CXXFLAGS"
17052   ac_ext=c
17053 ac_cpp='$CPP $CPPFLAGS'
17054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17057
17058
17059
17060 # Check if linker supports static linking on a per library basis
17061 LD_START_STATIC_SPEC=
17062 LD_FINISH_STATIC_SPEC=
17063 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17064   if $LD --help 2>&1 | grep -q -e -non_shared ; then
17065     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17066     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17067   fi
17068 fi
17069
17070
17071
17072 here=`${PWDCMD-pwd}`
17073
17074
17075 # We get this from the environment.
17076
17077
17078                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17079
17080
17081           ac_config_files="$ac_config_files scripts/jar"
17082
17083
17084           ac_config_commands="$ac_config_commands default"
17085
17086
17087 cat >confcache <<\_ACEOF
17088 # This file is a shell script that caches the results of configure
17089 # tests run on this system so they can be shared between configure
17090 # scripts and configure runs, see configure's option --config-cache.
17091 # It is not useful on other systems.  If it contains results you don't
17092 # want to keep, you may remove or edit it.
17093 #
17094 # config.status only pays attention to the cache file if you give it
17095 # the --recheck option to rerun configure.
17096 #
17097 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17098 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17099 # following values.
17100
17101 _ACEOF
17102
17103 # The following way of writing the cache mishandles newlines in values,
17104 # but we know of no workaround that is simple, portable, and efficient.
17105 # So, don't put newlines in cache variables' values.
17106 # Ultrix sh set writes to stderr and can't be redirected directly,
17107 # and sets the high bit in the cache file unless we assign to the vars.
17108 {
17109   (set) 2>&1 |
17110     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17111     *ac_space=\ *)
17112       # `set' does not quote correctly, so add quotes (double-quote
17113       # substitution turns \\\\ into \\, and sed turns \\ into \).
17114       sed -n \
17115         "s/'/'\\\\''/g;
17116           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17117       ;;
17118     *)
17119       # `set' quotes correctly as required by POSIX, so do not add quotes.
17120       sed -n \
17121         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17122       ;;
17123     esac;
17124 } |
17125   sed '
17126      t clear
17127      : clear
17128      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17129      t end
17130      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17131      : end' >>confcache
17132 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17133   if test -w $cache_file; then
17134     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17135     cat confcache >$cache_file
17136   else
17137     echo "not updating unwritable cache $cache_file"
17138   fi
17139 fi
17140 rm -f confcache
17141
17142 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17143 # Let make expand exec_prefix.
17144 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17145
17146 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17147 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17148 # trailing colons and then remove the whole line if VPATH becomes empty
17149 # (actually we leave an empty line to preserve line numbers).
17150 if test "x$srcdir" = x.; then
17151   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17152 s/:*\$(srcdir):*/:/;
17153 s/:*\${srcdir}:*/:/;
17154 s/:*@srcdir@:*/:/;
17155 s/^\([^=]*=[     ]*\):*/\1/;
17156 s/:*$//;
17157 s/^[^=]*=[       ]*$//;
17158 }'
17159 fi
17160
17161 DEFS=-DHAVE_CONFIG_H
17162
17163 ac_libobjs=
17164 ac_ltlibobjs=
17165 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17166   # 1. Remove the extension, and $U if already installed.
17167   ac_i=`echo "$ac_i" |
17168          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17169   # 2. Add them.
17170   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17171   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17172 done
17173 LIBOBJS=$ac_libobjs
17174
17175 LTLIBOBJS=$ac_ltlibobjs
17176
17177
17178 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17179   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17180 Usually this means the macro was only invoked conditionally." >&5
17181 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" 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 "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17186   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17187 Usually this means the macro was only invoked conditionally." >&5
17188 echo "$as_me: error: conditional \"AMDEP\" 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 "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17193   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17194 Usually this means the macro was only invoked conditionally." >&5
17195 echo "$as_me: error: conditional \"am__fastdepCC\" 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 "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17200   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17201 Usually this means the macro was only invoked conditionally." >&5
17202 echo "$as_me: error: conditional \"am__fastdepCXX\" 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 "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17207   { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17208 Usually this means the macro was only invoked conditionally." >&5
17209 echo "$as_me: error: conditional \"BASH_JAR\" 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 "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17214   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17215 Usually this means the macro was only invoked conditionally." >&5
17216 echo "$as_me: error: conditional \"MAINTAINER_MODE\" 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 "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17221   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17222 Usually this means the macro was only invoked conditionally." >&5
17223 echo "$as_me: error: conditional \"XLIB_AWT\" 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 "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17228   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17229 Usually this means the macro was only invoked conditionally." >&5
17230 echo "$as_me: error: conditional \"X_AWT\" 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 "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17235   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17236 Usually this means the macro was only invoked conditionally." >&5
17237 echo "$as_me: error: conditional \"am__fastdepGCJ\" 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 "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17242   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17243 Usually this means the macro was only invoked conditionally." >&5
17244 echo "$as_me: error: conditional \"TESTSUBDIR\" 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 "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17249   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17250 Usually this means the macro was only invoked conditionally." >&5
17251 echo "$as_me: error: conditional \"BUILD_ECJ1\" 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 "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17256   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17257 Usually this means the macro was only invoked conditionally." >&5
17258 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" 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 "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17263   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17264 Usually this means the macro was only invoked conditionally." >&5
17265 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17266 Usually this means the macro was only invoked conditionally." >&2;}
17267    { (exit 1); exit 1; }; }
17268 fi
17269 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17270   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17271 Usually this means the macro was only invoked conditionally." >&5
17272 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17273 Usually this means the macro was only invoked conditionally." >&2;}
17274    { (exit 1); exit 1; }; }
17275 fi
17276 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17277   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17278 Usually this means the macro was only invoked conditionally." >&5
17279 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17280 Usually this means the macro was only invoked conditionally." >&2;}
17281    { (exit 1); exit 1; }; }
17282 fi
17283 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17284   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17285 Usually this means the macro was only invoked conditionally." >&5
17286 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17287 Usually this means the macro was only invoked conditionally." >&2;}
17288    { (exit 1); exit 1; }; }
17289 fi
17290 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17291   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17292 Usually this means the macro was only invoked conditionally." >&5
17293 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17294 Usually this means the macro was only invoked conditionally." >&2;}
17295    { (exit 1); exit 1; }; }
17296 fi
17297 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17298   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17299 Usually this means the macro was only invoked conditionally." >&5
17300 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17301 Usually this means the macro was only invoked conditionally." >&2;}
17302    { (exit 1); exit 1; }; }
17303 fi
17304 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17305   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17306 Usually this means the macro was only invoked conditionally." >&5
17307 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17308 Usually this means the macro was only invoked conditionally." >&2;}
17309    { (exit 1); exit 1; }; }
17310 fi
17311 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17312   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17313 Usually this means the macro was only invoked conditionally." >&5
17314 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17315 Usually this means the macro was only invoked conditionally." >&2;}
17316    { (exit 1); exit 1; }; }
17317 fi
17318 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17319   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17320 Usually this means the macro was only invoked conditionally." >&5
17321 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17322 Usually this means the macro was only invoked conditionally." >&2;}
17323    { (exit 1); exit 1; }; }
17324 fi
17325 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17326   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17327 Usually this means the macro was only invoked conditionally." >&5
17328 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17329 Usually this means the macro was only invoked conditionally." >&2;}
17330    { (exit 1); exit 1; }; }
17331 fi
17332 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17333   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17334 Usually this means the macro was only invoked conditionally." >&5
17335 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17336 Usually this means the macro was only invoked conditionally." >&2;}
17337    { (exit 1); exit 1; }; }
17338 fi
17339 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17340   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17341 Usually this means the macro was only invoked conditionally." >&5
17342 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17343 Usually this means the macro was only invoked conditionally." >&2;}
17344    { (exit 1); exit 1; }; }
17345 fi
17346 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17347   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17348 Usually this means the macro was only invoked conditionally." >&5
17349 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17350 Usually this means the macro was only invoked conditionally." >&2;}
17351    { (exit 1); exit 1; }; }
17352 fi
17353 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17354   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17355 Usually this means the macro was only invoked conditionally." >&5
17356 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17357 Usually this means the macro was only invoked conditionally." >&2;}
17358    { (exit 1); exit 1; }; }
17359 fi
17360
17361 : ${CONFIG_STATUS=./config.status}
17362 ac_clean_files_save=$ac_clean_files
17363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17364 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17365 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17366 cat >$CONFIG_STATUS <<_ACEOF
17367 #! $SHELL
17368 # Generated by $as_me.
17369 # Run this file to recreate the current configuration.
17370 # Compiler output produced by configure, useful for debugging
17371 # configure, is in config.log if it exists.
17372
17373 debug=false
17374 ac_cs_recheck=false
17375 ac_cs_silent=false
17376 SHELL=\${CONFIG_SHELL-$SHELL}
17377 _ACEOF
17378
17379 cat >>$CONFIG_STATUS <<\_ACEOF
17380 ## --------------------- ##
17381 ## M4sh Initialization.  ##
17382 ## --------------------- ##
17383
17384 # Be Bourne compatible
17385 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17386   emulate sh
17387   NULLCMD=:
17388   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17389   # is contrary to our usage.  Disable this feature.
17390   alias -g '${1+"$@"}'='"$@"'
17391 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17392   set -o posix
17393 fi
17394 DUALCASE=1; export DUALCASE # for MKS sh
17395
17396 # Support unset when possible.
17397 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17398   as_unset=unset
17399 else
17400   as_unset=false
17401 fi
17402
17403
17404 # Work around bugs in pre-3.0 UWIN ksh.
17405 $as_unset ENV MAIL MAILPATH
17406 PS1='$ '
17407 PS2='> '
17408 PS4='+ '
17409
17410 # NLS nuisances.
17411 for as_var in \
17412   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17413   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17414   LC_TELEPHONE LC_TIME
17415 do
17416   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17417     eval $as_var=C; export $as_var
17418   else
17419     $as_unset $as_var
17420   fi
17421 done
17422
17423 # Required to use basename.
17424 if expr a : '\(a\)' >/dev/null 2>&1; then
17425   as_expr=expr
17426 else
17427   as_expr=false
17428 fi
17429
17430 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17431   as_basename=basename
17432 else
17433   as_basename=false
17434 fi
17435
17436
17437 # Name of the executable.
17438 as_me=`$as_basename "$0" ||
17439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17440          X"$0" : 'X\(//\)$' \| \
17441          X"$0" : 'X\(/\)$' \| \
17442          .     : '\(.\)' 2>/dev/null ||
17443 echo X/"$0" |
17444     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17445           /^X\/\(\/\/\)$/{ s//\1/; q; }
17446           /^X\/\(\/\).*/{ s//\1/; q; }
17447           s/.*/./; q'`
17448
17449
17450 # PATH needs CR, and LINENO needs CR and PATH.
17451 # Avoid depending upon Character Ranges.
17452 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17453 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17454 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17455 as_cr_digits='0123456789'
17456 as_cr_alnum=$as_cr_Letters$as_cr_digits
17457
17458 # The user is always right.
17459 if test "${PATH_SEPARATOR+set}" != set; then
17460   echo "#! /bin/sh" >conf$$.sh
17461   echo  "exit 0"   >>conf$$.sh
17462   chmod +x conf$$.sh
17463   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17464     PATH_SEPARATOR=';'
17465   else
17466     PATH_SEPARATOR=:
17467   fi
17468   rm -f conf$$.sh
17469 fi
17470
17471
17472   as_lineno_1=$LINENO
17473   as_lineno_2=$LINENO
17474   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17475   test "x$as_lineno_1" != "x$as_lineno_2" &&
17476   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17477   # Find who we are.  Look in the path if we contain no path at all
17478   # relative or not.
17479   case $0 in
17480     *[\\/]* ) as_myself=$0 ;;
17481     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17482 for as_dir in $PATH
17483 do
17484   IFS=$as_save_IFS
17485   test -z "$as_dir" && as_dir=.
17486   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17487 done
17488
17489        ;;
17490   esac
17491   # We did not find ourselves, most probably we were run as `sh COMMAND'
17492   # in which case we are not to be found in the path.
17493   if test "x$as_myself" = x; then
17494     as_myself=$0
17495   fi
17496   if test ! -f "$as_myself"; then
17497     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17498 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17499    { (exit 1); exit 1; }; }
17500   fi
17501   case $CONFIG_SHELL in
17502   '')
17503     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17504 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17505 do
17506   IFS=$as_save_IFS
17507   test -z "$as_dir" && as_dir=.
17508   for as_base in sh bash ksh sh5; do
17509          case $as_dir in
17510          /*)
17511            if ("$as_dir/$as_base" -c '
17512   as_lineno_1=$LINENO
17513   as_lineno_2=$LINENO
17514   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17515   test "x$as_lineno_1" != "x$as_lineno_2" &&
17516   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17517              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17518              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17519              CONFIG_SHELL=$as_dir/$as_base
17520              export CONFIG_SHELL
17521              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17522            fi;;
17523          esac
17524        done
17525 done
17526 ;;
17527   esac
17528
17529   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17530   # uniformly replaced by the line number.  The first 'sed' inserts a
17531   # line-number line before each line; the second 'sed' does the real
17532   # work.  The second script uses 'N' to pair each line-number line
17533   # with the numbered line, and appends trailing '-' during
17534   # substitution so that $LINENO is not a special case at line end.
17535   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17536   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17537   sed '=' <$as_myself |
17538     sed '
17539       N
17540       s,$,-,
17541       : loop
17542       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17543       t loop
17544       s,-$,,
17545       s,^['$as_cr_digits']*\n,,
17546     ' >$as_me.lineno &&
17547   chmod +x $as_me.lineno ||
17548     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17549 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17550    { (exit 1); exit 1; }; }
17551
17552   # Don't try to exec as it changes $[0], causing all sort of problems
17553   # (the dirname of $[0] is not the place where we might find the
17554   # original and so on.  Autoconf is especially sensible to this).
17555   . ./$as_me.lineno
17556   # Exit status is that of the last command.
17557   exit
17558 }
17559
17560
17561 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17562   *c*,-n*) ECHO_N= ECHO_C='
17563 ' ECHO_T='      ' ;;
17564   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17565   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17566 esac
17567
17568 if expr a : '\(a\)' >/dev/null 2>&1; then
17569   as_expr=expr
17570 else
17571   as_expr=false
17572 fi
17573
17574 rm -f conf$$ conf$$.exe conf$$.file
17575 echo >conf$$.file
17576 if ln -s conf$$.file conf$$ 2>/dev/null; then
17577   # We could just check for DJGPP; but this test a) works b) is more generic
17578   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17579   if test -f conf$$.exe; then
17580     # Don't use ln at all; we don't have any links
17581     as_ln_s='cp -p'
17582   else
17583     as_ln_s='ln -s'
17584   fi
17585 elif ln conf$$.file conf$$ 2>/dev/null; then
17586   as_ln_s=ln
17587 else
17588   as_ln_s='cp -p'
17589 fi
17590 rm -f conf$$ conf$$.exe conf$$.file
17591
17592 if mkdir -p . 2>/dev/null; then
17593   as_mkdir_p=:
17594 else
17595   test -d ./-p && rmdir ./-p
17596   as_mkdir_p=false
17597 fi
17598
17599 as_executable_p="test -f"
17600
17601 # Sed expression to map a string onto a valid CPP name.
17602 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17603
17604 # Sed expression to map a string onto a valid variable name.
17605 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17606
17607
17608 # IFS
17609 # We need space, tab and new line, in precisely that order.
17610 as_nl='
17611 '
17612 IFS="   $as_nl"
17613
17614 # CDPATH.
17615 $as_unset CDPATH
17616
17617 exec 6>&1
17618
17619 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17620 # report actual input values of CONFIG_FILES etc. instead of their
17621 # values after options handling.  Logging --version etc. is OK.
17622 exec 5>>config.log
17623 {
17624   echo
17625   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17626 ## Running $as_me. ##
17627 _ASBOX
17628 } >&5
17629 cat >&5 <<_CSEOF
17630
17631 This file was extended by libjava $as_me version-unused, which was
17632 generated by GNU Autoconf 2.59.  Invocation command line was
17633
17634   CONFIG_FILES    = $CONFIG_FILES
17635   CONFIG_HEADERS  = $CONFIG_HEADERS
17636   CONFIG_LINKS    = $CONFIG_LINKS
17637   CONFIG_COMMANDS = $CONFIG_COMMANDS
17638   $ $0 $@
17639
17640 _CSEOF
17641 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17642 echo >&5
17643 _ACEOF
17644
17645 # Files that config.status was made for.
17646 if test -n "$ac_config_files"; then
17647   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17648 fi
17649
17650 if test -n "$ac_config_headers"; then
17651   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17652 fi
17653
17654 if test -n "$ac_config_links"; then
17655   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17656 fi
17657
17658 if test -n "$ac_config_commands"; then
17659   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17660 fi
17661
17662 cat >>$CONFIG_STATUS <<\_ACEOF
17663
17664 ac_cs_usage="\
17665 \`$as_me' instantiates files from templates according to the
17666 current configuration.
17667
17668 Usage: $0 [OPTIONS] [FILE]...
17669
17670   -h, --help       print this help, then exit
17671   -V, --version    print version number, then exit
17672   -q, --quiet      do not print progress messages
17673   -d, --debug      don't remove temporary files
17674       --recheck    update $as_me by reconfiguring in the same conditions
17675   --file=FILE[:TEMPLATE]
17676                    instantiate the configuration file FILE
17677   --header=FILE[:TEMPLATE]
17678                    instantiate the configuration header FILE
17679
17680 Configuration files:
17681 $config_files
17682
17683 Configuration headers:
17684 $config_headers
17685
17686 Configuration links:
17687 $config_links
17688
17689 Configuration commands:
17690 $config_commands
17691
17692 Report bugs to <bug-autoconf@gnu.org>."
17693 _ACEOF
17694
17695 cat >>$CONFIG_STATUS <<_ACEOF
17696 ac_cs_version="\\
17697 libjava config.status version-unused
17698 configured by $0, generated by GNU Autoconf 2.59,
17699   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17700
17701 Copyright (C) 2003 Free Software Foundation, Inc.
17702 This config.status script is free software; the Free Software Foundation
17703 gives unlimited permission to copy, distribute and modify it."
17704 srcdir=$srcdir
17705 INSTALL="$INSTALL"
17706 _ACEOF
17707
17708 cat >>$CONFIG_STATUS <<\_ACEOF
17709 # If no file are specified by the user, then we need to provide default
17710 # value.  By we need to know if files were specified by the user.
17711 ac_need_defaults=:
17712 while test $# != 0
17713 do
17714   case $1 in
17715   --*=*)
17716     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17717     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17718     ac_shift=:
17719     ;;
17720   -*)
17721     ac_option=$1
17722     ac_optarg=$2
17723     ac_shift=shift
17724     ;;
17725   *) # This is not an option, so the user has probably given explicit
17726      # arguments.
17727      ac_option=$1
17728      ac_need_defaults=false;;
17729   esac
17730
17731   case $ac_option in
17732   # Handling of the options.
17733 _ACEOF
17734 cat >>$CONFIG_STATUS <<\_ACEOF
17735   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17736     ac_cs_recheck=: ;;
17737   --version | --vers* | -V )
17738     echo "$ac_cs_version"; exit 0 ;;
17739   --he | --h)
17740     # Conflict between --help and --header
17741     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17742 Try \`$0 --help' for more information." >&5
17743 echo "$as_me: error: ambiguous option: $1
17744 Try \`$0 --help' for more information." >&2;}
17745    { (exit 1); exit 1; }; };;
17746   --help | --hel | -h )
17747     echo "$ac_cs_usage"; exit 0 ;;
17748   --debug | --d* | -d )
17749     debug=: ;;
17750   --file | --fil | --fi | --f )
17751     $ac_shift
17752     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17753     ac_need_defaults=false;;
17754   --header | --heade | --head | --hea )
17755     $ac_shift
17756     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17757     ac_need_defaults=false;;
17758   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17759   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17760     ac_cs_silent=: ;;
17761
17762   # This is an error.
17763   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17764 Try \`$0 --help' for more information." >&5
17765 echo "$as_me: error: unrecognized option: $1
17766 Try \`$0 --help' for more information." >&2;}
17767    { (exit 1); exit 1; }; } ;;
17768
17769   *) ac_config_targets="$ac_config_targets $1" ;;
17770
17771   esac
17772   shift
17773 done
17774
17775 ac_configure_extra_args=
17776
17777 if $ac_cs_silent; then
17778   exec 6>/dev/null
17779   ac_configure_extra_args="$ac_configure_extra_args --silent"
17780 fi
17781
17782 _ACEOF
17783 cat >>$CONFIG_STATUS <<_ACEOF
17784 if \$ac_cs_recheck; then
17785   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17786   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17787 fi
17788
17789 _ACEOF
17790
17791 cat >>$CONFIG_STATUS <<_ACEOF
17792 #
17793 # INIT-COMMANDS section.
17794 #
17795
17796 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17797 srcdir=${srcdir}
17798 host=${host}
17799 target=${target}
17800 with_multisubdir=${with_multisubdir}
17801 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17802 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17803 libgcj_basedir=${libgcj_basedir}
17804 CC="${CC}"
17805 CXX="${CXX}"
17806 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17807
17808
17809 _ACEOF
17810
17811
17812
17813 cat >>$CONFIG_STATUS <<\_ACEOF
17814 for ac_config_target in $ac_config_targets
17815 do
17816   case "$ac_config_target" in
17817   # Handling of arguments.
17818   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17819   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17820   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17821   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17822   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17823   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17824   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17825   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17826   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17827   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17828   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17829   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17830   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17831   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17832   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17833   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17834   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17835   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17836   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17837   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17838   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17839   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17840   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17841   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17842   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17843   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17844   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17845   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17846   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17847   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17848 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17849    { (exit 1); exit 1; }; };;
17850   esac
17851 done
17852
17853 # If the user did not use the arguments to specify the items to instantiate,
17854 # then the envvar interface is used.  Set only those that are not.
17855 # We use the long form for the default assignment because of an extremely
17856 # bizarre bug on SunOS 4.1.3.
17857 if $ac_need_defaults; then
17858   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17859   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17860   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17861   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17862 fi
17863
17864 # Have a temporary directory for convenience.  Make it in the build tree
17865 # simply because there is no reason to put it here, and in addition,
17866 # creating and moving files from /tmp can sometimes cause problems.
17867 # Create a temporary directory, and hook for its removal unless debugging.
17868 $debug ||
17869 {
17870   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17871   trap '{ (exit 1); exit 1; }' 1 2 13 15
17872 }
17873
17874 # Create a (secure) tmp directory for tmp files.
17875
17876 {
17877   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17878   test -n "$tmp" && test -d "$tmp"
17879 }  ||
17880 {
17881   tmp=./confstat$$-$RANDOM
17882   (umask 077 && mkdir $tmp)
17883 } ||
17884 {
17885    echo "$me: cannot create a temporary directory in ." >&2
17886    { (exit 1); exit 1; }
17887 }
17888
17889 _ACEOF
17890
17891 cat >>$CONFIG_STATUS <<_ACEOF
17892
17893 #
17894 # CONFIG_FILES section.
17895 #
17896
17897 # No need to generate the scripts if there are no CONFIG_FILES.
17898 # This happens for instance when ./config.status config.h
17899 if test -n "\$CONFIG_FILES"; then
17900   # Protect against being on the right side of a sed subst in config.status.
17901   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17902    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17903 s,@SHELL@,$SHELL,;t t
17904 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17905 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17906 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17907 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17908 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17909 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17910 s,@exec_prefix@,$exec_prefix,;t t
17911 s,@prefix@,$prefix,;t t
17912 s,@program_transform_name@,$program_transform_name,;t t
17913 s,@bindir@,$bindir,;t t
17914 s,@sbindir@,$sbindir,;t t
17915 s,@libexecdir@,$libexecdir,;t t
17916 s,@datadir@,$datadir,;t t
17917 s,@sysconfdir@,$sysconfdir,;t t
17918 s,@sharedstatedir@,$sharedstatedir,;t t
17919 s,@localstatedir@,$localstatedir,;t t
17920 s,@libdir@,$libdir,;t t
17921 s,@includedir@,$includedir,;t t
17922 s,@oldincludedir@,$oldincludedir,;t t
17923 s,@infodir@,$infodir,;t t
17924 s,@mandir@,$mandir,;t t
17925 s,@build_alias@,$build_alias,;t t
17926 s,@host_alias@,$host_alias,;t t
17927 s,@target_alias@,$target_alias,;t t
17928 s,@DEFS@,$DEFS,;t t
17929 s,@ECHO_C@,$ECHO_C,;t t
17930 s,@ECHO_N@,$ECHO_N,;t t
17931 s,@ECHO_T@,$ECHO_T,;t t
17932 s,@LIBS@,$LIBS,;t t
17933 s,@build@,$build,;t t
17934 s,@build_cpu@,$build_cpu,;t t
17935 s,@build_vendor@,$build_vendor,;t t
17936 s,@build_os@,$build_os,;t t
17937 s,@build_libsubdir@,$build_libsubdir,;t t
17938 s,@build_subdir@,$build_subdir,;t t
17939 s,@host_subdir@,$host_subdir,;t t
17940 s,@target_subdir@,$target_subdir,;t t
17941 s,@libgcj_basedir@,$libgcj_basedir,;t t
17942 s,@host@,$host,;t t
17943 s,@host_cpu@,$host_cpu,;t t
17944 s,@host_vendor@,$host_vendor,;t t
17945 s,@host_os@,$host_os,;t t
17946 s,@target@,$target,;t t
17947 s,@target_cpu@,$target_cpu,;t t
17948 s,@target_vendor@,$target_vendor,;t t
17949 s,@target_os@,$target_os,;t t
17950 s,@target_noncanonical@,$target_noncanonical,;t t
17951 s,@LN_S@,$LN_S,;t t
17952 s,@mkinstalldirs@,$mkinstalldirs,;t t
17953 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17954 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
17955 s,@CC@,$CC,;t t
17956 s,@ac_ct_CC@,$ac_ct_CC,;t t
17957 s,@EXEEXT@,$EXEEXT,;t t
17958 s,@OBJEXT@,$OBJEXT,;t t
17959 s,@CXX@,$CXX,;t t
17960 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17961 s,@CFLAGS@,$CFLAGS,;t t
17962 s,@CXXFLAGS@,$CXXFLAGS,;t t
17963 s,@LDFLAGS@,$LDFLAGS,;t t
17964 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17965 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17966 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17967 s,@CYGPATH_W@,$CYGPATH_W,;t t
17968 s,@PACKAGE@,$PACKAGE,;t t
17969 s,@VERSION@,$VERSION,;t t
17970 s,@ACLOCAL@,$ACLOCAL,;t t
17971 s,@AUTOCONF@,$AUTOCONF,;t t
17972 s,@AUTOMAKE@,$AUTOMAKE,;t t
17973 s,@AUTOHEADER@,$AUTOHEADER,;t t
17974 s,@MAKEINFO@,$MAKEINFO,;t t
17975 s,@install_sh@,$install_sh,;t t
17976 s,@STRIP@,$STRIP,;t t
17977 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17978 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17979 s,@mkdir_p@,$mkdir_p,;t t
17980 s,@AWK@,$AWK,;t t
17981 s,@SET_MAKE@,$SET_MAKE,;t t
17982 s,@am__leading_dot@,$am__leading_dot,;t t
17983 s,@AMTAR@,$AMTAR,;t t
17984 s,@am__tar@,$am__tar,;t t
17985 s,@am__untar@,$am__untar,;t t
17986 s,@DEPDIR@,$DEPDIR,;t t
17987 s,@am__include@,$am__include,;t t
17988 s,@am__quote@,$am__quote,;t t
17989 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17990 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17991 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17992 s,@CCDEPMODE@,$CCDEPMODE,;t t
17993 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17994 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17995 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17996 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17997 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17998 s,@AS@,$AS,;t t
17999 s,@ac_ct_AS@,$ac_ct_AS,;t t
18000 s,@LD@,$LD,;t t
18001 s,@ac_ct_LD@,$ac_ct_LD,;t t
18002 s,@AR@,$AR,;t t
18003 s,@ac_ct_AR@,$ac_ct_AR,;t t
18004 s,@RANLIB@,$RANLIB,;t t
18005 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18006 s,@JAR@,$JAR,;t t
18007 s,@ZIP@,$ZIP,;t t
18008 s,@UNZIP@,$UNZIP,;t t
18009 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
18010 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
18011 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18012 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18013 s,@MAINT@,$MAINT,;t t
18014 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
18015 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
18016 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
18017 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
18018 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
18019 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
18020 s,@TOOLKIT@,$TOOLKIT,;t t
18021 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
18022 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
18023 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
18024 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
18025 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
18026 s,@GCJH@,$GCJH,;t t
18027 s,@host_exeext@,$host_exeext,;t t
18028 s,@INCLTDL@,$INCLTDL,;t t
18029 s,@LIBLTDL@,$LIBLTDL,;t t
18030 s,@DIRLTDL@,$DIRLTDL,;t t
18031 s,@LIBTOOL@,$LIBTOOL,;t t
18032 s,@CXXCPP@,$CXXCPP,;t t
18033 s,@CPPFLAGS@,$CPPFLAGS,;t t
18034 s,@GCJ@,$GCJ,;t t
18035 s,@GCJFLAGS@,$GCJFLAGS,;t t
18036 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
18037 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
18038 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
18039 s,@subdirs@,$subdirs,;t t
18040 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
18041 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
18042 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
18043 s,@ECJ_JAR@,$ECJ_JAR,;t t
18044 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
18045 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
18046 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
18047 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
18048 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
18049 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
18050 s,@JAVA_HOME@,$JAVA_HOME,;t t
18051 s,@INTERPRETER@,$INTERPRETER,;t t
18052 s,@LIBFFI@,$LIBFFI,;t t
18053 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
18054 s,@PLATFORM@,$PLATFORM,;t t
18055 s,@CPP@,$CPP,;t t
18056 s,@EGREP@,$EGREP,;t t
18057 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
18058 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
18059 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
18060 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
18061 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
18062 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18063 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18064 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18065 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18066 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18067 s,@X_CFLAGS@,$X_CFLAGS,;t t
18068 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18069 s,@X_LIBS@,$X_LIBS,;t t
18070 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18071 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18072 s,@GCLIBS@,$GCLIBS,;t t
18073 s,@GCINCS@,$GCINCS,;t t
18074 s,@GCDEPS@,$GCDEPS,;t t
18075 s,@GCSPEC@,$GCSPEC,;t t
18076 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18077 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18078 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18079 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18080 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18081 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18082 s,@THREADLIBS@,$THREADLIBS,;t t
18083 s,@THREADINCS@,$THREADINCS,;t t
18084 s,@THREADDEPS@,$THREADDEPS,;t t
18085 s,@THREADSPEC@,$THREADSPEC,;t t
18086 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18087 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18088 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18089 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18090 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18091 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18092 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18093 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18094 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18095 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18096 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18097 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18098 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18099 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18100 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18101 s,@LIBICONV@,$LIBICONV,;t t
18102 s,@LTLIBICONV@,$LTLIBICONV,;t t
18103 s,@LIBMAGIC@,$LIBMAGIC,;t t
18104 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18105 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18106 s,@GTK_LIBS@,$GTK_LIBS,;t t
18107 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18108 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18109 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18110 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18111 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18112 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18113 s,@ZLIBS@,$ZLIBS,;t t
18114 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18115 s,@ZINCS@,$ZINCS,;t t
18116 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18117 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18118 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18119 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18120 s,@IEEESPEC@,$IEEESPEC,;t t
18121 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18122 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18123 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18124 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18125 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18126 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18127 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18128 s,@toolexecdir@,$toolexecdir,;t t
18129 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18130 s,@toolexeclibdir@,$toolexeclibdir,;t t
18131 s,@dbexecdir@,$dbexecdir,;t t
18132 s,@GCJVERSION@,$GCJVERSION,;t t
18133 s,@gxx_include_dir@,$gxx_include_dir,;t t
18134 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18135 s,@ALLOCA@,$ALLOCA,;t t
18136 s,@PERL@,$PERL,;t t
18137 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18138 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18139 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18140 s,@here@,$here,;t t
18141 s,@LIBOBJS@,$LIBOBJS,;t t
18142 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18143 CEOF
18144
18145 _ACEOF
18146
18147   cat >>$CONFIG_STATUS <<\_ACEOF
18148   # Split the substitutions into bite-sized pieces for seds with
18149   # small command number limits, like on Digital OSF/1 and HP-UX.
18150   ac_max_sed_lines=48
18151   ac_sed_frag=1 # Number of current file.
18152   ac_beg=1 # First line for current file.
18153   ac_end=$ac_max_sed_lines # Line after last line for current file.
18154   ac_more_lines=:
18155   ac_sed_cmds=
18156   while $ac_more_lines; do
18157     if test $ac_beg -gt 1; then
18158       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18159     else
18160       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18161     fi
18162     if test ! -s $tmp/subs.frag; then
18163       ac_more_lines=false
18164     else
18165       # The purpose of the label and of the branching condition is to
18166       # speed up the sed processing (if there are no `@' at all, there
18167       # is no need to browse any of the substitutions).
18168       # These are the two extra sed commands mentioned above.
18169       (echo ':t
18170   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18171       if test -z "$ac_sed_cmds"; then
18172         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18173       else
18174         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18175       fi
18176       ac_sed_frag=`expr $ac_sed_frag + 1`
18177       ac_beg=$ac_end
18178       ac_end=`expr $ac_end + $ac_max_sed_lines`
18179     fi
18180   done
18181   if test -z "$ac_sed_cmds"; then
18182     ac_sed_cmds=cat
18183   fi
18184 fi # test -n "$CONFIG_FILES"
18185
18186 _ACEOF
18187 cat >>$CONFIG_STATUS <<\_ACEOF
18188 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18189   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18190   case $ac_file in
18191   - | *:- | *:-:* ) # input from stdin
18192         cat >$tmp/stdin
18193         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18194         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18195   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18196         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18197   * )   ac_file_in=$ac_file.in ;;
18198   esac
18199
18200   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18201   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18202 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18203          X"$ac_file" : 'X\(//\)[^/]' \| \
18204          X"$ac_file" : 'X\(//\)$' \| \
18205          X"$ac_file" : 'X\(/\)' \| \
18206          .     : '\(.\)' 2>/dev/null ||
18207 echo X"$ac_file" |
18208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18209           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18210           /^X\(\/\/\)$/{ s//\1/; q; }
18211           /^X\(\/\).*/{ s//\1/; q; }
18212           s/.*/./; q'`
18213   { if $as_mkdir_p; then
18214     mkdir -p "$ac_dir"
18215   else
18216     as_dir="$ac_dir"
18217     as_dirs=
18218     while test ! -d "$as_dir"; do
18219       as_dirs="$as_dir $as_dirs"
18220       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18222          X"$as_dir" : 'X\(//\)[^/]' \| \
18223          X"$as_dir" : 'X\(//\)$' \| \
18224          X"$as_dir" : 'X\(/\)' \| \
18225          .     : '\(.\)' 2>/dev/null ||
18226 echo X"$as_dir" |
18227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18228           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18229           /^X\(\/\/\)$/{ s//\1/; q; }
18230           /^X\(\/\).*/{ s//\1/; q; }
18231           s/.*/./; q'`
18232     done
18233     test ! -n "$as_dirs" || mkdir $as_dirs
18234   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18235 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18236    { (exit 1); exit 1; }; }; }
18237
18238   ac_builddir=.
18239
18240 if test "$ac_dir" != .; then
18241   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18242   # A "../" for each directory in $ac_dir_suffix.
18243   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18244 else
18245   ac_dir_suffix= ac_top_builddir=
18246 fi
18247
18248 case $srcdir in
18249   .)  # No --srcdir option.  We are building in place.
18250     ac_srcdir=.
18251     if test -z "$ac_top_builddir"; then
18252        ac_top_srcdir=.
18253     else
18254        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18255     fi ;;
18256   [\\/]* | ?:[\\/]* )  # Absolute path.
18257     ac_srcdir=$srcdir$ac_dir_suffix;
18258     ac_top_srcdir=$srcdir ;;
18259   *) # Relative path.
18260     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18261     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18262 esac
18263
18264 # Do not use `cd foo && pwd` to compute absolute paths, because
18265 # the directories may not exist.
18266 case `pwd` in
18267 .) ac_abs_builddir="$ac_dir";;
18268 *)
18269   case "$ac_dir" in
18270   .) ac_abs_builddir=`pwd`;;
18271   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18272   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18273   esac;;
18274 esac
18275 case $ac_abs_builddir in
18276 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18277 *)
18278   case ${ac_top_builddir}. in
18279   .) ac_abs_top_builddir=$ac_abs_builddir;;
18280   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18281   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18282   esac;;
18283 esac
18284 case $ac_abs_builddir in
18285 .) ac_abs_srcdir=$ac_srcdir;;
18286 *)
18287   case $ac_srcdir in
18288   .) ac_abs_srcdir=$ac_abs_builddir;;
18289   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18290   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18291   esac;;
18292 esac
18293 case $ac_abs_builddir in
18294 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18295 *)
18296   case $ac_top_srcdir in
18297   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18298   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18299   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18300   esac;;
18301 esac
18302
18303
18304   case $INSTALL in
18305   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18306   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18307   esac
18308
18309   if test x"$ac_file" != x-; then
18310     { echo "$as_me:$LINENO: creating $ac_file" >&5
18311 echo "$as_me: creating $ac_file" >&6;}
18312     rm -f "$ac_file"
18313   fi
18314   # Let's still pretend it is `configure' which instantiates (i.e., don't
18315   # use $as_me), people would be surprised to read:
18316   #    /* config.h.  Generated by config.status.  */
18317   if test x"$ac_file" = x-; then
18318     configure_input=
18319   else
18320     configure_input="$ac_file.  "
18321   fi
18322   configure_input=$configure_input"Generated from `echo $ac_file_in |
18323                                      sed 's,.*/,,'` by configure."
18324
18325   # First look for the input files in the build tree, otherwise in the
18326   # src tree.
18327   ac_file_inputs=`IFS=:
18328     for f in $ac_file_in; do
18329       case $f in
18330       -) echo $tmp/stdin ;;
18331       [\\/$]*)
18332          # Absolute (can't be DOS-style, as IFS=:)
18333          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18334 echo "$as_me: error: cannot find input file: $f" >&2;}
18335    { (exit 1); exit 1; }; }
18336          echo "$f";;
18337       *) # Relative
18338          if test -f "$f"; then
18339            # Build tree
18340            echo "$f"
18341          elif test -f "$srcdir/$f"; then
18342            # Source tree
18343            echo "$srcdir/$f"
18344          else
18345            # /dev/null tree
18346            { { 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          fi;;
18350       esac
18351     done` || { (exit 1); exit 1; }
18352 _ACEOF
18353 cat >>$CONFIG_STATUS <<_ACEOF
18354   sed "$ac_vpsub
18355 $extrasub
18356 _ACEOF
18357 cat >>$CONFIG_STATUS <<\_ACEOF
18358 :t
18359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18360 s,@configure_input@,$configure_input,;t t
18361 s,@srcdir@,$ac_srcdir,;t t
18362 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18363 s,@top_srcdir@,$ac_top_srcdir,;t t
18364 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18365 s,@builddir@,$ac_builddir,;t t
18366 s,@abs_builddir@,$ac_abs_builddir,;t t
18367 s,@top_builddir@,$ac_top_builddir,;t t
18368 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18369 s,@INSTALL@,$ac_INSTALL,;t t
18370 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18371   rm -f $tmp/stdin
18372   if test x"$ac_file" != x-; then
18373     mv $tmp/out $ac_file
18374   else
18375     cat $tmp/out
18376     rm -f $tmp/out
18377   fi
18378
18379   # Run the commands associated with the file.
18380   case $ac_file in
18381     scripts/jar ) chmod +x scripts/jar ;;
18382   esac
18383 done
18384 _ACEOF
18385 cat >>$CONFIG_STATUS <<\_ACEOF
18386
18387 #
18388 # CONFIG_HEADER section.
18389 #
18390
18391 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18392 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18393 #
18394 # ac_d sets the value in "#define NAME VALUE" lines.
18395 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18396 ac_dB='[         ].*$,\1#\2'
18397 ac_dC=' '
18398 ac_dD=',;t'
18399 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18400 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18401 ac_uB='$,\1#\2define\3'
18402 ac_uC=' '
18403 ac_uD=',;t'
18404
18405 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18406   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18407   case $ac_file in
18408   - | *:- | *:-:* ) # input from stdin
18409         cat >$tmp/stdin
18410         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18411         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18412   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18413         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18414   * )   ac_file_in=$ac_file.in ;;
18415   esac
18416
18417   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18418 echo "$as_me: creating $ac_file" >&6;}
18419
18420   # First look for the input files in the build tree, otherwise in the
18421   # src tree.
18422   ac_file_inputs=`IFS=:
18423     for f in $ac_file_in; do
18424       case $f in
18425       -) echo $tmp/stdin ;;
18426       [\\/$]*)
18427          # Absolute (can't be DOS-style, as IFS=:)
18428          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18429 echo "$as_me: error: cannot find input file: $f" >&2;}
18430    { (exit 1); exit 1; }; }
18431          # Do quote $f, to prevent DOS paths from being IFS'd.
18432          echo "$f";;
18433       *) # Relative
18434          if test -f "$f"; then
18435            # Build tree
18436            echo "$f"
18437          elif test -f "$srcdir/$f"; then
18438            # Source tree
18439            echo "$srcdir/$f"
18440          else
18441            # /dev/null tree
18442            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18443 echo "$as_me: error: cannot find input file: $f" >&2;}
18444    { (exit 1); exit 1; }; }
18445          fi;;
18446       esac
18447     done` || { (exit 1); exit 1; }
18448   # Remove the trailing spaces.
18449   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18450
18451 _ACEOF
18452
18453 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18454 # `conftest.undefs', that substitutes the proper values into
18455 # config.h.in to produce config.h.  The first handles `#define'
18456 # templates, and the second `#undef' templates.
18457 # And first: Protect against being on the right side of a sed subst in
18458 # config.status.  Protect against being in an unquoted here document
18459 # in config.status.
18460 rm -f conftest.defines conftest.undefs
18461 # Using a here document instead of a string reduces the quoting nightmare.
18462 # Putting comments in sed scripts is not portable.
18463 #
18464 # `end' is used to avoid that the second main sed command (meant for
18465 # 0-ary CPP macros) applies to n-ary macro definitions.
18466 # See the Autoconf documentation for `clear'.
18467 cat >confdef2sed.sed <<\_ACEOF
18468 s/[\\&,]/\\&/g
18469 s,[\\$`],\\&,g
18470 t clear
18471 : clear
18472 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18473 t end
18474 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18475 : end
18476 _ACEOF
18477 # If some macros were called several times there might be several times
18478 # the same #defines, which is useless.  Nevertheless, we may not want to
18479 # sort them, since we want the *last* AC-DEFINE to be honored.
18480 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18481 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18482 rm -f confdef2sed.sed
18483
18484 # This sed command replaces #undef with comments.  This is necessary, for
18485 # example, in the case of _POSIX_SOURCE, which is predefined and required
18486 # on some systems where configure will not decide to define it.
18487 cat >>conftest.undefs <<\_ACEOF
18488 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18489 _ACEOF
18490
18491 # Break up conftest.defines because some shells have a limit on the size
18492 # of here documents, and old seds have small limits too (100 cmds).
18493 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18494 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18495 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18496 echo '  :' >>$CONFIG_STATUS
18497 rm -f conftest.tail
18498 while grep . conftest.defines >/dev/null
18499 do
18500   # Write a limited-size here document to $tmp/defines.sed.
18501   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18502   # Speed up: don't consider the non `#define' lines.
18503   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18504   # Work around the forget-to-reset-the-flag bug.
18505   echo 't clr' >>$CONFIG_STATUS
18506   echo ': clr' >>$CONFIG_STATUS
18507   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18508   echo 'CEOF
18509   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18510   rm -f $tmp/in
18511   mv $tmp/out $tmp/in
18512 ' >>$CONFIG_STATUS
18513   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18514   rm -f conftest.defines
18515   mv conftest.tail conftest.defines
18516 done
18517 rm -f conftest.defines
18518 echo '  fi # grep' >>$CONFIG_STATUS
18519 echo >>$CONFIG_STATUS
18520
18521 # Break up conftest.undefs because some shells have a limit on the size
18522 # of here documents, and old seds have small limits too (100 cmds).
18523 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18524 rm -f conftest.tail
18525 while grep . conftest.undefs >/dev/null
18526 do
18527   # Write a limited-size here document to $tmp/undefs.sed.
18528   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18529   # Speed up: don't consider the non `#undef'
18530   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18531   # Work around the forget-to-reset-the-flag bug.
18532   echo 't clr' >>$CONFIG_STATUS
18533   echo ': clr' >>$CONFIG_STATUS
18534   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18535   echo 'CEOF
18536   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18537   rm -f $tmp/in
18538   mv $tmp/out $tmp/in
18539 ' >>$CONFIG_STATUS
18540   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18541   rm -f conftest.undefs
18542   mv conftest.tail conftest.undefs
18543 done
18544 rm -f conftest.undefs
18545
18546 cat >>$CONFIG_STATUS <<\_ACEOF
18547   # Let's still pretend it is `configure' which instantiates (i.e., don't
18548   # use $as_me), people would be surprised to read:
18549   #    /* config.h.  Generated by config.status.  */
18550   if test x"$ac_file" = x-; then
18551     echo "/* Generated by configure.  */" >$tmp/config.h
18552   else
18553     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18554   fi
18555   cat $tmp/in >>$tmp/config.h
18556   rm -f $tmp/in
18557   if test x"$ac_file" != x-; then
18558     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18559       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18560 echo "$as_me: $ac_file is unchanged" >&6;}
18561     else
18562       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18563 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18564          X"$ac_file" : 'X\(//\)[^/]' \| \
18565          X"$ac_file" : 'X\(//\)$' \| \
18566          X"$ac_file" : 'X\(/\)' \| \
18567          .     : '\(.\)' 2>/dev/null ||
18568 echo X"$ac_file" |
18569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18570           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18571           /^X\(\/\/\)$/{ s//\1/; q; }
18572           /^X\(\/\).*/{ s//\1/; q; }
18573           s/.*/./; q'`
18574       { if $as_mkdir_p; then
18575     mkdir -p "$ac_dir"
18576   else
18577     as_dir="$ac_dir"
18578     as_dirs=
18579     while test ! -d "$as_dir"; do
18580       as_dirs="$as_dir $as_dirs"
18581       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18583          X"$as_dir" : 'X\(//\)[^/]' \| \
18584          X"$as_dir" : 'X\(//\)$' \| \
18585          X"$as_dir" : 'X\(/\)' \| \
18586          .     : '\(.\)' 2>/dev/null ||
18587 echo X"$as_dir" |
18588     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18589           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18590           /^X\(\/\/\)$/{ s//\1/; q; }
18591           /^X\(\/\).*/{ s//\1/; q; }
18592           s/.*/./; q'`
18593     done
18594     test ! -n "$as_dirs" || mkdir $as_dirs
18595   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18596 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18597    { (exit 1); exit 1; }; }; }
18598
18599       rm -f $ac_file
18600       mv $tmp/config.h $ac_file
18601     fi
18602   else
18603     cat $tmp/config.h
18604     rm -f $tmp/config.h
18605   fi
18606 # Compute $ac_file's index in $config_headers.
18607 _am_stamp_count=1
18608 for _am_header in $config_headers :; do
18609   case $_am_header in
18610     $ac_file | $ac_file:* )
18611       break ;;
18612     * )
18613       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18614   esac
18615 done
18616 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18617 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18618          X$ac_file : 'X\(//\)[^/]' \| \
18619          X$ac_file : 'X\(//\)$' \| \
18620          X$ac_file : 'X\(/\)' \| \
18621          .     : '\(.\)' 2>/dev/null ||
18622 echo X$ac_file |
18623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18624           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18625           /^X\(\/\/\)$/{ s//\1/; q; }
18626           /^X\(\/\).*/{ s//\1/; q; }
18627           s/.*/./; q'`/stamp-h$_am_stamp_count
18628 done
18629 _ACEOF
18630 cat >>$CONFIG_STATUS <<\_ACEOF
18631
18632 #
18633 # CONFIG_LINKS section.
18634 #
18635
18636 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18637   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18638   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18639
18640   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18641 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18642
18643   if test ! -r $srcdir/$ac_source; then
18644     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18645 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18646    { (exit 1); exit 1; }; }
18647   fi
18648   rm -f $ac_dest
18649
18650   # Make relative symlinks.
18651   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18652 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18653          X"$ac_dest" : 'X\(//\)[^/]' \| \
18654          X"$ac_dest" : 'X\(//\)$' \| \
18655          X"$ac_dest" : 'X\(/\)' \| \
18656          .     : '\(.\)' 2>/dev/null ||
18657 echo X"$ac_dest" |
18658     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18659           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18660           /^X\(\/\/\)$/{ s//\1/; q; }
18661           /^X\(\/\).*/{ s//\1/; q; }
18662           s/.*/./; q'`
18663   { if $as_mkdir_p; then
18664     mkdir -p "$ac_dest_dir"
18665   else
18666     as_dir="$ac_dest_dir"
18667     as_dirs=
18668     while test ! -d "$as_dir"; do
18669       as_dirs="$as_dir $as_dirs"
18670       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18672          X"$as_dir" : 'X\(//\)[^/]' \| \
18673          X"$as_dir" : 'X\(//\)$' \| \
18674          X"$as_dir" : 'X\(/\)' \| \
18675          .     : '\(.\)' 2>/dev/null ||
18676 echo X"$as_dir" |
18677     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18678           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18679           /^X\(\/\/\)$/{ s//\1/; q; }
18680           /^X\(\/\).*/{ s//\1/; q; }
18681           s/.*/./; q'`
18682     done
18683     test ! -n "$as_dirs" || mkdir $as_dirs
18684   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18685 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18686    { (exit 1); exit 1; }; }; }
18687
18688   ac_builddir=.
18689
18690 if test "$ac_dest_dir" != .; then
18691   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18692   # A "../" for each directory in $ac_dir_suffix.
18693   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18694 else
18695   ac_dir_suffix= ac_top_builddir=
18696 fi
18697
18698 case $srcdir in
18699   .)  # No --srcdir option.  We are building in place.
18700     ac_srcdir=.
18701     if test -z "$ac_top_builddir"; then
18702        ac_top_srcdir=.
18703     else
18704        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18705     fi ;;
18706   [\\/]* | ?:[\\/]* )  # Absolute path.
18707     ac_srcdir=$srcdir$ac_dir_suffix;
18708     ac_top_srcdir=$srcdir ;;
18709   *) # Relative path.
18710     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18711     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18712 esac
18713
18714 # Do not use `cd foo && pwd` to compute absolute paths, because
18715 # the directories may not exist.
18716 case `pwd` in
18717 .) ac_abs_builddir="$ac_dest_dir";;
18718 *)
18719   case "$ac_dest_dir" in
18720   .) ac_abs_builddir=`pwd`;;
18721   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18722   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18723   esac;;
18724 esac
18725 case $ac_abs_builddir in
18726 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18727 *)
18728   case ${ac_top_builddir}. in
18729   .) ac_abs_top_builddir=$ac_abs_builddir;;
18730   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18731   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18732   esac;;
18733 esac
18734 case $ac_abs_builddir in
18735 .) ac_abs_srcdir=$ac_srcdir;;
18736 *)
18737   case $ac_srcdir in
18738   .) ac_abs_srcdir=$ac_abs_builddir;;
18739   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18740   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18741   esac;;
18742 esac
18743 case $ac_abs_builddir in
18744 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18745 *)
18746   case $ac_top_srcdir in
18747   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18748   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18749   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18750   esac;;
18751 esac
18752
18753
18754   case $srcdir in
18755   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18756       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18757   esac
18758
18759   # Try a symlink, then a hard link, then a copy.
18760   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18761     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18762     cp -p $srcdir/$ac_source $ac_dest ||
18763     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18764 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18765    { (exit 1); exit 1; }; }
18766 done
18767 _ACEOF
18768 cat >>$CONFIG_STATUS <<\_ACEOF
18769
18770 #
18771 # CONFIG_COMMANDS section.
18772 #
18773 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18774   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18775   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18776   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18777 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18778          X"$ac_dest" : 'X\(//\)[^/]' \| \
18779          X"$ac_dest" : 'X\(//\)$' \| \
18780          X"$ac_dest" : 'X\(/\)' \| \
18781          .     : '\(.\)' 2>/dev/null ||
18782 echo X"$ac_dest" |
18783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18784           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18785           /^X\(\/\/\)$/{ s//\1/; q; }
18786           /^X\(\/\).*/{ s//\1/; q; }
18787           s/.*/./; q'`
18788   { if $as_mkdir_p; then
18789     mkdir -p "$ac_dir"
18790   else
18791     as_dir="$ac_dir"
18792     as_dirs=
18793     while test ! -d "$as_dir"; do
18794       as_dirs="$as_dir $as_dirs"
18795       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797          X"$as_dir" : 'X\(//\)[^/]' \| \
18798          X"$as_dir" : 'X\(//\)$' \| \
18799          X"$as_dir" : 'X\(/\)' \| \
18800          .     : '\(.\)' 2>/dev/null ||
18801 echo X"$as_dir" |
18802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18803           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18804           /^X\(\/\/\)$/{ s//\1/; q; }
18805           /^X\(\/\).*/{ s//\1/; q; }
18806           s/.*/./; q'`
18807     done
18808     test ! -n "$as_dirs" || mkdir $as_dirs
18809   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18810 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18811    { (exit 1); exit 1; }; }; }
18812
18813   ac_builddir=.
18814
18815 if test "$ac_dir" != .; then
18816   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18817   # A "../" for each directory in $ac_dir_suffix.
18818   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18819 else
18820   ac_dir_suffix= ac_top_builddir=
18821 fi
18822
18823 case $srcdir in
18824   .)  # No --srcdir option.  We are building in place.
18825     ac_srcdir=.
18826     if test -z "$ac_top_builddir"; then
18827        ac_top_srcdir=.
18828     else
18829        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18830     fi ;;
18831   [\\/]* | ?:[\\/]* )  # Absolute path.
18832     ac_srcdir=$srcdir$ac_dir_suffix;
18833     ac_top_srcdir=$srcdir ;;
18834   *) # Relative path.
18835     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18836     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18837 esac
18838
18839 # Do not use `cd foo && pwd` to compute absolute paths, because
18840 # the directories may not exist.
18841 case `pwd` in
18842 .) ac_abs_builddir="$ac_dir";;
18843 *)
18844   case "$ac_dir" in
18845   .) ac_abs_builddir=`pwd`;;
18846   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18847   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18848   esac;;
18849 esac
18850 case $ac_abs_builddir in
18851 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18852 *)
18853   case ${ac_top_builddir}. in
18854   .) ac_abs_top_builddir=$ac_abs_builddir;;
18855   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18856   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18857   esac;;
18858 esac
18859 case $ac_abs_builddir in
18860 .) ac_abs_srcdir=$ac_srcdir;;
18861 *)
18862   case $ac_srcdir in
18863   .) ac_abs_srcdir=$ac_abs_builddir;;
18864   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18865   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18866   esac;;
18867 esac
18868 case $ac_abs_builddir in
18869 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18870 *)
18871   case $ac_top_srcdir in
18872   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18873   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18874   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18875   esac;;
18876 esac
18877
18878
18879   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18880 echo "$as_me: executing $ac_dest commands" >&6;}
18881   case $ac_dest in
18882     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18883   # Strip MF so we end up with the name of the file.
18884   mf=`echo "$mf" | sed -e 's/:.*$//'`
18885   # Check whether this is an Automake generated Makefile or not.
18886   # We used to match only the files named `Makefile.in', but
18887   # some people rename them; so instead we look at the file content.
18888   # Grep'ing the first line is not enough: some people post-process
18889   # each Makefile.in and add a new line on top of each file to say so.
18890   # So let's grep whole file.
18891   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18892     dirpart=`(dirname "$mf") 2>/dev/null ||
18893 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18894          X"$mf" : 'X\(//\)[^/]' \| \
18895          X"$mf" : 'X\(//\)$' \| \
18896          X"$mf" : 'X\(/\)' \| \
18897          .     : '\(.\)' 2>/dev/null ||
18898 echo X"$mf" |
18899     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18900           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18901           /^X\(\/\/\)$/{ s//\1/; q; }
18902           /^X\(\/\).*/{ s//\1/; q; }
18903           s/.*/./; q'`
18904   else
18905     continue
18906   fi
18907   # Extract the definition of DEPDIR, am__include, and am__quote
18908   # from the Makefile without running `make'.
18909   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18910   test -z "$DEPDIR" && continue
18911   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18912   test -z "am__include" && continue
18913   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18914   # When using ansi2knr, U may be empty or an underscore; expand it
18915   U=`sed -n 's/^U = //p' < "$mf"`
18916   # Find all dependency output files, they are included files with
18917   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18918   # simplest approach to changing $(DEPDIR) to its actual value in the
18919   # expansion.
18920   for file in `sed -n "
18921     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18922        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18923     # Make sure the directory exists.
18924     test -f "$dirpart/$file" && continue
18925     fdir=`(dirname "$file") 2>/dev/null ||
18926 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18927          X"$file" : 'X\(//\)[^/]' \| \
18928          X"$file" : 'X\(//\)$' \| \
18929          X"$file" : 'X\(/\)' \| \
18930          .     : '\(.\)' 2>/dev/null ||
18931 echo X"$file" |
18932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18933           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18934           /^X\(\/\/\)$/{ s//\1/; q; }
18935           /^X\(\/\).*/{ s//\1/; q; }
18936           s/.*/./; q'`
18937     { if $as_mkdir_p; then
18938     mkdir -p $dirpart/$fdir
18939   else
18940     as_dir=$dirpart/$fdir
18941     as_dirs=
18942     while test ! -d "$as_dir"; do
18943       as_dirs="$as_dir $as_dirs"
18944       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18946          X"$as_dir" : 'X\(//\)[^/]' \| \
18947          X"$as_dir" : 'X\(//\)$' \| \
18948          X"$as_dir" : 'X\(/\)' \| \
18949          .     : '\(.\)' 2>/dev/null ||
18950 echo X"$as_dir" |
18951     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18952           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18953           /^X\(\/\/\)$/{ s//\1/; q; }
18954           /^X\(\/\).*/{ s//\1/; q; }
18955           s/.*/./; q'`
18956     done
18957     test ! -n "$as_dirs" || mkdir $as_dirs
18958   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18959 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18960    { (exit 1); exit 1; }; }; }
18961
18962     # echo "creating $dirpart/$file"
18963     echo '# dummy' > "$dirpart/$file"
18964   done
18965 done
18966  ;;
18967     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18968 case " $CONFIG_FILES " in
18969  *" Makefile "*)
18970    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18971    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18972    ;;
18973 esac
18974 for ac_multi_file in $CONFIG_FILES; do
18975   case $ac_multi_file in
18976   */Makefile)
18977     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18978   esac
18979 done
18980  ;;
18981   esac
18982 done
18983 _ACEOF
18984
18985 cat >>$CONFIG_STATUS <<\_ACEOF
18986
18987 { (exit 0); exit 0; }
18988 _ACEOF
18989 chmod +x $CONFIG_STATUS
18990 ac_clean_files=$ac_clean_files_save
18991
18992
18993 # configure is writing to config.log, and then calls config.status.
18994 # config.status does its own redirection, appending to config.log.
18995 # Unfortunately, on DOS this fails, as config.log is still kept open
18996 # by configure, so config.status won't be able to write to it; its
18997 # output is simply discarded.  So we exec the FD to /dev/null,
18998 # effectively closing config.log, so it can be properly (re)opened and
18999 # appended to by config.status.  When coming back to configure, we
19000 # need to make the FD available again.
19001 if test "$no_create" != yes; then
19002   ac_cs_success=:
19003   ac_config_status_args=
19004   test "$silent" = yes &&
19005     ac_config_status_args="$ac_config_status_args --quiet"
19006   exec 5>/dev/null
19007   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19008   exec 5>>config.log
19009   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19010   # would make configure fail if this is the last instruction.
19011   $ac_cs_success || { (exit 1); exit 1; }
19012 fi
19013
19014 #
19015 # CONFIG_SUBDIRS section.
19016 #
19017 if test "$no_recursion" != yes; then
19018
19019   # Remove --cache-file and --srcdir arguments so they do not pile up.
19020   ac_sub_configure_args=
19021   ac_prev=
19022   for ac_arg in $ac_configure_args; do
19023     if test -n "$ac_prev"; then
19024       ac_prev=
19025       continue
19026     fi
19027     case $ac_arg in
19028     -cache-file | --cache-file | --cache-fil | --cache-fi \
19029     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19030       ac_prev=cache_file ;;
19031     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19032     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19033     | --c=*)
19034       ;;
19035     --config-cache | -C)
19036       ;;
19037     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19038       ac_prev=srcdir ;;
19039     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19040       ;;
19041     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19042       ac_prev=prefix ;;
19043     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19044       ;;
19045     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19046     esac
19047   done
19048
19049   # Always prepend --prefix to ensure using the same prefix
19050   # in subdir configurations.
19051   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19052
19053   ac_popdir=`pwd`
19054   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19055
19056     # Do not complain, so a configure script can configure whichever
19057     # parts of a large source tree are present.
19058     test -d $srcdir/$ac_dir || continue
19059
19060     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19061 echo "$as_me: configuring in $ac_dir" >&6;}
19062     { if $as_mkdir_p; then
19063     mkdir -p "$ac_dir"
19064   else
19065     as_dir="$ac_dir"
19066     as_dirs=
19067     while test ! -d "$as_dir"; do
19068       as_dirs="$as_dir $as_dirs"
19069       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19071          X"$as_dir" : 'X\(//\)[^/]' \| \
19072          X"$as_dir" : 'X\(//\)$' \| \
19073          X"$as_dir" : 'X\(/\)' \| \
19074          .     : '\(.\)' 2>/dev/null ||
19075 echo X"$as_dir" |
19076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19077           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19078           /^X\(\/\/\)$/{ s//\1/; q; }
19079           /^X\(\/\).*/{ s//\1/; q; }
19080           s/.*/./; q'`
19081     done
19082     test ! -n "$as_dirs" || mkdir $as_dirs
19083   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19085    { (exit 1); exit 1; }; }; }
19086
19087     ac_builddir=.
19088
19089 if test "$ac_dir" != .; then
19090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19091   # A "../" for each directory in $ac_dir_suffix.
19092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19093 else
19094   ac_dir_suffix= ac_top_builddir=
19095 fi
19096
19097 case $srcdir in
19098   .)  # No --srcdir option.  We are building in place.
19099     ac_srcdir=.
19100     if test -z "$ac_top_builddir"; then
19101        ac_top_srcdir=.
19102     else
19103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19104     fi ;;
19105   [\\/]* | ?:[\\/]* )  # Absolute path.
19106     ac_srcdir=$srcdir$ac_dir_suffix;
19107     ac_top_srcdir=$srcdir ;;
19108   *) # Relative path.
19109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19111 esac
19112
19113 # Do not use `cd foo && pwd` to compute absolute paths, because
19114 # the directories may not exist.
19115 case `pwd` in
19116 .) ac_abs_builddir="$ac_dir";;
19117 *)
19118   case "$ac_dir" in
19119   .) ac_abs_builddir=`pwd`;;
19120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19122   esac;;
19123 esac
19124 case $ac_abs_builddir in
19125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19126 *)
19127   case ${ac_top_builddir}. in
19128   .) ac_abs_top_builddir=$ac_abs_builddir;;
19129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19131   esac;;
19132 esac
19133 case $ac_abs_builddir in
19134 .) ac_abs_srcdir=$ac_srcdir;;
19135 *)
19136   case $ac_srcdir in
19137   .) ac_abs_srcdir=$ac_abs_builddir;;
19138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19140   esac;;
19141 esac
19142 case $ac_abs_builddir in
19143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19144 *)
19145   case $ac_top_srcdir in
19146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19149   esac;;
19150 esac
19151
19152
19153     cd $ac_dir
19154
19155     # Check for guested configure; otherwise get Cygnus style configure.
19156     if test -f $ac_srcdir/configure.gnu; then
19157       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19158     elif test -f $ac_srcdir/configure; then
19159       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19160     elif test -f $ac_srcdir/configure.in; then
19161       ac_sub_configure=$ac_configure
19162     else
19163       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19165       ac_sub_configure=
19166     fi
19167
19168     # The recursion is here.
19169     if test -n "$ac_sub_configure"; then
19170       # Make the cache file name correct relative to the subdirectory.
19171       case $cache_file in
19172       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19173       *) # Relative path.
19174         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19175       esac
19176
19177       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19178 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19179       # The eval makes quoting arguments work.
19180       eval $ac_sub_configure $ac_sub_configure_args \
19181            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19182         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19183 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19184    { (exit 1); exit 1; }; }
19185     fi
19186
19187     cd $ac_popdir
19188   done
19189 fi
19190