OSDN Git Service

2007-03-13 Thomas Fitzsimmons <fitzsim@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-multilib       build many library versions (default)
853   --enable-version-specific-runtime-libs
854                           specify that runtime libraries should be installed
855                           in a compiler-specific directory
856   --enable-plugin         build gcjwebplugin web browser plugin
857   --enable-gconf-peer     compile GConf native peers for util.preferences
858   --enable-java-maintainer-mode
859                           allow rebuilding of .class and .h files
860   --disable-dependency-tracking  speeds up one-time build
861   --enable-dependency-tracking   do not reject slow dependency extractors
862   --enable-maintainer-mode  enable make rules and dependencies not useful
863                           (and sometimes confusing) to the casual installer
864   --enable-libgcj-debug   enable runtime debugging code
865   --enable-java-awt       list of AWT peer implementations to be built
866   --enable-shared=PKGS  build shared libraries default=yes
867   --enable-static=PKGS  build static libraries default=yes
868   --enable-fast-install=PKGS  optimize for fast installation default=yes
869   --disable-libtool-lock  avoid locking (might break parallel builds)
870   --disable-getenv-properties
871                           don't set system properties from GCJ_PROPERTIES
872   --enable-hash-synchronization
873                           use global hash table for monitor locks
874   --enable-gc-debug       include full support for pointer backtracing etc.
875   --enable-interpreter    enable interpreter
876   --enable-sjlj-exceptions
877                           force use of builtin_setjmp for exceptions
878   --disable-java-net      disable java.net
879   --disable-jvmpi         disable JVMPI support
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881   --disable-rpath         do not hardcode runtime library paths
882   --enable-tls            Use thread-local storage [default=yes]
883
884 Optional Packages:
885   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
886   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
887   --with-build-libsubdir=DIR  Directory where to find libraries for build system
888   --with-target-subdir=SUBDIR
889                           configure in a subdirectory
890   --with-cross-host=HOST  configure with a cross compiler from HOST
891   --with-newlib           configure with newlib
892   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
893   --with-gnu-ld           assume the C compiler uses GNU ld default=no
894   --with-pic              try to use only PIC/non-PIC objects default=use both
895   --with-ecj-jar=FILE     use preinstalled ecj jar
896   --with-java-home=DIRECTORY
897                           value of java.home system property
898   --with-win32-nlsapi=ansi or unicows or unicode
899                           native MinGW libgcj Win32 OS API (default is ansi)
900   --without-libffi        don't use libffi
901   --with-ecos             enable runtime eCos target support
902   --with-system-zlib      use installed libz
903   --with-x                use the X Window System
904   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
905   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
906
907 Some influential environment variables:
908   CC          C compiler command
909   CFLAGS      C compiler flags
910   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
911               nonstandard directory <lib dir>
912   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
913               headers in a nonstandard directory <include dir>
914   CXX         C++ compiler command
915   CXXFLAGS    C++ compiler flags
916   CXXCPP      C++ preprocessor
917   CPP         C preprocessor
918
919 Use these variables to override the choices made by `configure' or to help
920 it to find libraries and programs with nonstandard names/locations.
921
922 _ACEOF
923 fi
924
925 if test "$ac_init_help" = "recursive"; then
926   # If there are subdirs, report their specific --help.
927   ac_popdir=`pwd`
928   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929     test -d $ac_dir || continue
930     ac_builddir=.
931
932 if test "$ac_dir" != .; then
933   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934   # A "../" for each directory in $ac_dir_suffix.
935   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 else
937   ac_dir_suffix= ac_top_builddir=
938 fi
939
940 case $srcdir in
941   .)  # No --srcdir option.  We are building in place.
942     ac_srcdir=.
943     if test -z "$ac_top_builddir"; then
944        ac_top_srcdir=.
945     else
946        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947     fi ;;
948   [\\/]* | ?:[\\/]* )  # Absolute path.
949     ac_srcdir=$srcdir$ac_dir_suffix;
950     ac_top_srcdir=$srcdir ;;
951   *) # Relative path.
952     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953     ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 esac
955
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
958 case `pwd` in
959 .) ac_abs_builddir="$ac_dir";;
960 *)
961   case "$ac_dir" in
962   .) ac_abs_builddir=`pwd`;;
963   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964   *) ac_abs_builddir=`pwd`/"$ac_dir";;
965   esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *)
970   case ${ac_top_builddir}. in
971   .) ac_abs_top_builddir=$ac_abs_builddir;;
972   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
978 *)
979   case $ac_srcdir in
980   .) ac_abs_srcdir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *)
988   case $ac_top_srcdir in
989   .) ac_abs_top_srcdir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992   esac;;
993 esac
994
995     cd $ac_dir
996     # Check for guested configure; otherwise get Cygnus style configure.
997     if test -f $ac_srcdir/configure.gnu; then
998       echo
999       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1000     elif test -f $ac_srcdir/configure; then
1001       echo
1002       $SHELL $ac_srcdir/configure  --help=recursive
1003     elif test -f $ac_srcdir/configure.ac ||
1004            test -f $ac_srcdir/configure.in; then
1005       echo
1006       $ac_configure --help
1007     else
1008       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009     fi
1010     cd $ac_popdir
1011   done
1012 fi
1013
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1016   cat <<\_ACEOF
1017 libjava configure version-unused
1018 generated by GNU Autoconf 2.59
1019
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1023 _ACEOF
1024   exit 0
1025 fi
1026 exec 5>config.log
1027 cat >&5 <<_ACEOF
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1030
1031 It was created by libjava $as_me version-unused, which was
1032 generated by GNU Autoconf 2.59.  Invocation command line was
1033
1034   $ $0 $@
1035
1036 _ACEOF
1037 {
1038 cat <<_ASUNAME
1039 ## --------- ##
1040 ## Platform. ##
1041 ## --------- ##
1042
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1051
1052 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1053 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1056 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1057 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1058 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1059
1060 _ASUNAME
1061
1062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063 for as_dir in $PATH
1064 do
1065   IFS=$as_save_IFS
1066   test -z "$as_dir" && as_dir=.
1067   echo "PATH: $as_dir"
1068 done
1069
1070 } >&5
1071
1072 cat >&5 <<_ACEOF
1073
1074
1075 ## ----------- ##
1076 ## Core tests. ##
1077 ## ----------- ##
1078
1079 _ACEOF
1080
1081
1082 # Keep a trace of the command line.
1083 # Strip out --no-create and --no-recursion so they do not pile up.
1084 # Strip out --silent because we don't want to record it for future runs.
1085 # Also quote any args containing shell meta-characters.
1086 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_configure_args=
1088 ac_configure_args0=
1089 ac_configure_args1=
1090 ac_sep=
1091 ac_must_keep_next=false
1092 for ac_pass in 1 2
1093 do
1094   for ac_arg
1095   do
1096     case $ac_arg in
1097     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099     | -silent | --silent | --silen | --sile | --sil)
1100       continue ;;
1101     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103     esac
1104     case $ac_pass in
1105     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106     2)
1107       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108       if test $ac_must_keep_next = true; then
1109         ac_must_keep_next=false # Got value, back to normal.
1110       else
1111         case $ac_arg in
1112           *=* | --config-cache | -C | -disable-* | --disable-* \
1113           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115           | -with-* | --with-* | -without-* | --without-* | --x)
1116             case "$ac_configure_args0 " in
1117               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118             esac
1119             ;;
1120           -* ) ac_must_keep_next=true ;;
1121         esac
1122       fi
1123       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124       # Get rid of the leading space.
1125       ac_sep=" "
1126       ;;
1127     esac
1128   done
1129 done
1130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1132
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log.  We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139   # Save into config.log some information that might help in debugging.
1140   {
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1147 _ASBOX
1148     echo
1149     # The following way of writing the cache mishandles newlines in values,
1150 {
1151   (set) 2>&1 |
1152     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153     *ac_space=\ *)
1154       sed -n \
1155         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157       ;;
1158     *)
1159       sed -n \
1160         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161       ;;
1162     esac;
1163 }
1164     echo
1165
1166     cat <<\_ASBOX
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1170 _ASBOX
1171     echo
1172     for ac_var in $ac_subst_vars
1173     do
1174       eval ac_val=$`echo $ac_var`
1175       echo "$ac_var='"'"'$ac_val'"'"'"
1176     done | sort
1177     echo
1178
1179     if test -n "$ac_subst_files"; then
1180       cat <<\_ASBOX
1181 ## ------------- ##
1182 ## Output files. ##
1183 ## ------------- ##
1184 _ASBOX
1185       echo
1186       for ac_var in $ac_subst_files
1187       do
1188         eval ac_val=$`echo $ac_var`
1189         echo "$ac_var='"'"'$ac_val'"'"'"
1190       done | sort
1191       echo
1192     fi
1193
1194     if test -s confdefs.h; then
1195       cat <<\_ASBOX
1196 ## ----------- ##
1197 ## confdefs.h. ##
1198 ## ----------- ##
1199 _ASBOX
1200       echo
1201       sed "/^$/d" confdefs.h | sort
1202       echo
1203     fi
1204     test "$ac_signal" != 0 &&
1205       echo "$as_me: caught signal $ac_signal"
1206     echo "$as_me: exit $exit_status"
1207   } >&5
1208   rm -f core *.core &&
1209   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210     exit $exit_status
1211      ' 0
1212 for ac_signal in 1 2 13 15; do
1213   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214 done
1215 ac_signal=0
1216
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220 echo >confdefs.h
1221
1222 # Predefined preprocessor variables.
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1241 _ACEOF
1242
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246 _ACEOF
1247
1248
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252   if test "x$prefix" != xNONE; then
1253     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254   else
1255     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256   fi
1257 fi
1258 for ac_site_file in $CONFIG_SITE; do
1259   if test -r "$ac_site_file"; then
1260     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262     sed 's/^/| /' "$ac_site_file" >&5
1263     . "$ac_site_file"
1264   fi
1265 done
1266
1267 if test -r "$cache_file"; then
1268   # Some versions of bash will fail to source /dev/null (special
1269   # files actually), so we avoid doing that.
1270   if test -f "$cache_file"; then
1271     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1273     case $cache_file in
1274       [\\/]* | ?:[\\/]* ) . $cache_file;;
1275       *)                      . ./$cache_file;;
1276     esac
1277   fi
1278 else
1279   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1281   >$cache_file
1282 fi
1283
1284 # Check that the precious variables saved in the cache have kept the same
1285 # value.
1286 ac_cache_corrupted=false
1287 for ac_var in `(set) 2>&1 |
1288                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290   eval ac_new_set=\$ac_env_${ac_var}_set
1291   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292   eval ac_new_val="\$ac_env_${ac_var}_value"
1293   case $ac_old_set,$ac_new_set in
1294     set,)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,set)
1299       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301       ac_cache_corrupted=: ;;
1302     ,);;
1303     *)
1304       if test "x$ac_old_val" != "x$ac_new_val"; then
1305         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1308 echo "$as_me:   former value:  $ac_old_val" >&2;}
1309         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1310 echo "$as_me:   current value: $ac_new_val" >&2;}
1311         ac_cache_corrupted=:
1312       fi;;
1313   esac
1314   # Pass precious variables to config.status.
1315   if test "$ac_new_set" = set; then
1316     case $ac_new_val in
1317     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319     *) ac_arg=$ac_var=$ac_new_val ;;
1320     esac
1321     case " $ac_configure_args " in
1322       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1323       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324     esac
1325   fi
1326 done
1327 if $ac_cache_corrupted; then
1328   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332    { (exit 1); exit 1; }; }
1333 fi
1334
1335 ac_ext=c
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 ac_aux_dir=
1371 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372   if test -f $ac_dir/install-sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install-sh -c"
1375     break
1376   elif test -f $ac_dir/install.sh; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/install.sh -c"
1379     break
1380   elif test -f $ac_dir/shtool; then
1381     ac_aux_dir=$ac_dir
1382     ac_install_sh="$ac_aux_dir/shtool install -c"
1383     break
1384   fi
1385 done
1386 if test -z "$ac_aux_dir"; then
1387   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389    { (exit 1); exit 1; }; }
1390 fi
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408   ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412    { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427  case ${build_alias} in
1428   "") build_noncanonical=${build} ;;
1429   *) build_noncanonical=${build_alias} ;;
1430 esac
1431
1432  case ${host_alias} in
1433   "") host_noncanonical=${build_noncanonical} ;;
1434   *) host_noncanonical=${host_alias} ;;
1435 esac
1436
1437  case ${target_alias} in
1438   "") target_noncanonical=${host_noncanonical} ;;
1439   *) target_noncanonical=${target_alias} ;;
1440 esac
1441
1442
1443 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1444 # have matching libraries, they should use host libraries: Makefile.tpl
1445 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1446 # However, they still use the build modules, because the corresponding
1447 # host modules (e.g. bison) are only built for the host when bootstrap
1448 # finishes. So:
1449 # - build_subdir is where we find build modules, and never changes.
1450 # - build_libsubdir is where we find build libraries, and can be overridden.
1451
1452 # Prefix 'build-' so this never conflicts with target_subdir.
1453 build_subdir="build-${build_noncanonical}"
1454
1455 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1456 if test "${with_build_libsubdir+set}" = set; then
1457   withval="$with_build_libsubdir"
1458   build_libsubdir="$withval"
1459 else
1460   build_libsubdir="$build_subdir"
1461 fi;
1462 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1463 if ( test $srcdir = . && test -d gcc ) \
1464    || test -d $srcdir/../host-${host_noncanonical}; then
1465   host_subdir="host-${host_noncanonical}"
1466 else
1467   host_subdir=.
1468 fi
1469 # No prefix.
1470 target_subdir=${target_noncanonical}
1471
1472
1473 # We use these options to decide which functions to include.
1474
1475 # Check whether --with-target-subdir or --without-target-subdir was given.
1476 if test "${with_target_subdir+set}" = set; then
1477   withval="$with_target_subdir"
1478
1479 fi;
1480
1481 # We may get other options which we don't document:
1482 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1483
1484 # Find the rest of the source tree framework.
1485 # Default to --enable-multilib
1486 # Check whether --enable-multilib or --disable-multilib was given.
1487 if test "${enable_multilib+set}" = set; then
1488   enableval="$enable_multilib"
1489   case "$enableval" in
1490   yes) multilib=yes ;;
1491   no)  multilib=no ;;
1492   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1493 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1494    { (exit 1); exit 1; }; } ;;
1495  esac
1496 else
1497   multilib=yes
1498 fi;
1499
1500 # We may get other options which we leave undocumented:
1501 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1502 # See config-ml.in if you want the gory details.
1503
1504 if test "$srcdir" = "."; then
1505   if test "$with_target_subdir" != "."; then
1506     multi_basedir="$srcdir/$with_multisrctop../.."
1507   else
1508     multi_basedir="$srcdir/$with_multisrctop.."
1509   fi
1510 else
1511   multi_basedir="$srcdir/.."
1512 fi
1513
1514
1515 # Even if the default multilib is not a cross compilation,
1516 # it may be that some of the other multilibs are.
1517 if test $cross_compiling = no && test $multilib = yes \
1518    && test "x${with_multisubdir}" != x ; then
1519    cross_compiling=maybe
1520 fi
1521
1522           ac_config_commands="$ac_config_commands default-1"
1523
1524
1525 echo "$as_me:$LINENO: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528   echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530   ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532   ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1534   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536    { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1541 host=$ac_cv_host
1542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 echo "$as_me:$LINENO: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554   ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1556   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 test -n "$target_alias" &&
1572   test "$program_prefix$program_suffix$program_transform_name" = \
1573     NONENONEs,x,x, &&
1574   program_prefix=${target_alias}-
1575  case ${build_alias} in
1576   "") build_noncanonical=${build} ;;
1577   *) build_noncanonical=${build_alias} ;;
1578 esac
1579
1580  case ${target_alias} in
1581   "") target_noncanonical=${host_noncanonical} ;;
1582   *) target_noncanonical=${target_alias} ;;
1583 esac
1584
1585
1586
1587
1588 # This works around the fact that libtool configuration may change LD
1589 # for this particular configuration, but some shells, instead of
1590 # keeping the changes in LD private, export them just because LD is
1591 # exported.
1592 ORIGINAL_LD_FOR_MULTILIBS=$LD
1593
1594 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1595 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1596 LN_S=$as_ln_s
1597 if test "$LN_S" = "ln -s"; then
1598   echo "$as_me:$LINENO: result: yes" >&5
1599 echo "${ECHO_T}yes" >&6
1600 else
1601   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1602 echo "${ECHO_T}no, using $LN_S" >&6
1603 fi
1604
1605
1606 # This works around an automake problem.
1607 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1608
1609
1610
1611 # Check whether --with-cross-host or --without-cross-host was given.
1612 if test "${with_cross_host+set}" = set; then
1613   withval="$with_cross_host"
1614
1615 fi;
1616
1617
1618 # Check whether --with-newlib or --without-newlib was given.
1619 if test "${with_newlib+set}" = set; then
1620   withval="$with_newlib"
1621
1622 fi;
1623
1624 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1625 if test "${enable_version_specific_runtime_libs+set}" = set; then
1626   enableval="$enable_version_specific_runtime_libs"
1627   case "$enableval" in
1628       yes) version_specific_libs=yes ;;
1629       no)  version_specific_libs=no ;;
1630       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1631 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1632    { (exit 1); exit 1; }; };;
1633      esac
1634 else
1635   version_specific_libs=no
1636
1637 fi;
1638
1639 # Check whether --enable-plugin or --disable-plugin was given.
1640 if test "${enable_plugin+set}" = set; then
1641   enableval="$enable_plugin"
1642   case "$enableval" in
1643       yes) plugin_enabled=yes ;;
1644       no)  plugin_enabled=no ;;
1645       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1646 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1647    { (exit 1); exit 1; }; };;
1648      esac
1649 else
1650   plugin_enabled=no
1651
1652 fi;
1653
1654 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1655 if test "${enable_gconf_peer+set}" = set; then
1656   enableval="$enable_gconf_peer"
1657   case "$enableval" in
1658       yes) gconf_enabled=yes ;;
1659       no)  gconf_enabled=no ;;
1660       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1661 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1662    { (exit 1); exit 1; }; };;
1663      esac
1664 else
1665   gconf_enabled=no
1666
1667 fi;
1668
1669 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1670 if test "${enable_java_maintainer_mode+set}" = set; then
1671   enableval="$enable_java_maintainer_mode"
1672
1673 fi;
1674
1675
1676 if test "$enable_java_maintainer_mode" = yes; then
1677   JAVA_MAINTAINER_MODE_TRUE=
1678   JAVA_MAINTAINER_MODE_FALSE='#'
1679 else
1680   JAVA_MAINTAINER_MODE_TRUE='#'
1681   JAVA_MAINTAINER_MODE_FALSE=
1682 fi
1683
1684
1685 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1686
1687
1688 # (1) We use an abnormal CXX (without library references), so we
1689 # must cache it under a different name.
1690 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1691 # the non-multilib-adjusted value will be used in multilibs.
1692 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1693 # (4) As another side effect, automake doesn't automatically include them
1694 # in Makefile.in.
1695 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1696 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1697 # used in later tests.  This may not be necessary in libjava; I don't know.
1698
1699
1700 save_CXXFLAGS="$CXXFLAGS"
1701 CXXFLAGS="$CXXFLAGS -fno-builtin"
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$CC"; then
1716   ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736   echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743 fi
1744 if test -z "$ac_cv_prog_CC"; then
1745   ac_ct_CC=$CC
1746   # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$ac_ct_CC"; then
1754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_ac_ct_CC="gcc"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781   CC=$ac_ct_CC
1782 else
1783   CC="$ac_cv_prog_CC"
1784 fi
1785
1786 if test -z "$CC"; then
1787   if test -n "$ac_tool_prefix"; then
1788   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$CC"; then
1796   ac_cv_prog_CC="$CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_CC="${ac_tool_prefix}cc"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816   echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823 fi
1824 if test -z "$ac_cv_prog_CC"; then
1825   ac_ct_CC=$CC
1826   # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$ac_ct_CC"; then
1834   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_ac_ct_CC="cc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   CC=$ac_ct_CC
1862 else
1863   CC="$ac_cv_prog_CC"
1864 fi
1865
1866 fi
1867 if test -z "$CC"; then
1868   # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$CC"; then
1876   ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878   ac_prog_rejected=no
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887        ac_prog_rejected=yes
1888        continue
1889      fi
1890     ac_cv_prog_CC="cc"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 if test $ac_prog_rejected = yes; then
1898   # We found a bogon in the path, so make sure we never use it.
1899   set dummy $ac_cv_prog_CC
1900   shift
1901   if test $# != 0; then
1902     # We chose a different compiler from the bogus one.
1903     # However, it has the same basename, so the bogon will be chosen
1904     # first if we set CC to just the basename; use the full file name.
1905     shift
1906     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1907   fi
1908 fi
1909 fi
1910 fi
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913   echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 fi
1921 if test -z "$CC"; then
1922   if test -n "$ac_tool_prefix"; then
1923   for ac_prog in cl
1924   do
1925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$CC"; then
1933   ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953   echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960     test -n "$CC" && break
1961   done
1962 fi
1963 if test -z "$CC"; then
1964   ac_ct_CC=$CC
1965   for ac_prog in cl
1966 do
1967   # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$ac_ct_CC"; then
1975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984     ac_cv_prog_ac_ct_CC="$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002   test -n "$ac_ct_CC" && break
2003 done
2004
2005   CC=$ac_ct_CC
2006 fi
2007
2008 fi
2009
2010
2011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 See \`config.log' for more details." >&2;}
2015    { (exit 1); exit 1; }; }
2016
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019      "checking for C compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022   (eval $ac_compiler --version </dev/null >&5) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027   (eval $ac_compiler -v </dev/null >&5) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032   (eval $ac_compiler -V </dev/null >&5) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }
2036
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h.  */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h.  */
2043
2044 int
2045 main ()
2046 {
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 # FIXME: Cleanup?
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054   (eval $ac_link) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }; then
2058   gcc_no_link=no
2059 else
2060   gcc_no_link=yes
2061 fi
2062
2063 if test x$gcc_no_link = xyes; then
2064   # Setting cross_compile will disable run tests; it will
2065   # also disable AC_CHECK_FILE but that's generally
2066   # correct if we can't link.
2067   cross_compiling=yes
2068   EXEEXT=
2069 else
2070   cat >conftest.$ac_ext <<_ACEOF
2071 /* confdefs.h.  */
2072 _ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h.  */
2076
2077 int
2078 main ()
2079 {
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2089 # of exeext.
2090 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094   (eval $ac_link_default) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; then
2098   # Find the output, starting from the most likely.  This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # resort.
2101
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 ac_cv_exeext=
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 do
2108   test -f "$ac_file" || continue
2109   case $ac_file in
2110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111         ;;
2112     conftest.$ac_ext )
2113         # This is the source file.
2114         ;;
2115     [ab].out )
2116         # We found the default executable, but exeext='' is most
2117         # certainly right.
2118         break;;
2119     *.* )
2120         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121         # FIXME: I believe we export ac_cv_exeext for Libtool,
2122         # but it would be cool to find out if it's true.  Does anybody
2123         # maintain Libtool? --akim.
2124         export ac_cv_exeext
2125         break;;
2126     * )
2127         break;;
2128   esac
2129 done
2130 else
2131   echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138    { (exit 77); exit 77; }; }
2139 fi
2140
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2144
2145 # Check the compiler produces executables we can run.  If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152   if { ac_try='./$ac_file'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158     cross_compiling=no
2159   else
2160     if test "$cross_compiling" = maybe; then
2161         cross_compiling=yes
2162     else
2163         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169    { (exit 1); exit 1; }; }
2170     fi
2171   fi
2172 fi
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2175
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run.  If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2184
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188   (eval $ac_link) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; then
2192   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 # `rm'.
2196 for ac_file in conftest.exe conftest conftest.*; do
2197   test -f "$ac_file" || continue
2198   case $ac_file in
2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201           export ac_cv_exeext
2202           break;;
2203     * ) break;;
2204   esac
2205 done
2206 else
2207   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2220 ac_exeext=$EXEEXT
2221 fi
2222 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2223 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2224 if test "${ac_cv_objext+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h.  */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h.  */
2233
2234 int
2235 main ()
2236 {
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244   (eval $ac_compile) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; then
2248   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2251     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2252        break;;
2253   esac
2254 done
2255 else
2256   echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263    { (exit 1); exit 1; }; }
2264 fi
2265
2266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT=$ac_cv_objext
2271 ac_objext=$OBJEXT
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283
2284 int
2285 main ()
2286 {
2287 #ifndef __GNUC__
2288        choke me
2289 #endif
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297   (eval $ac_compile) 2>conftest.er1
2298   ac_status=$?
2299   grep -v '^ *+' conftest.er1 >conftest.err
2300   rm -f conftest.er1
2301   cat conftest.err >&5
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); } &&
2304          { ac_try='test -z "$ac_c_werror_flag"
2305                          || test ! -s conftest.err'
2306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307   (eval $ac_try) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   ac_compiler_gnu=yes
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 ac_compiler_gnu=no
2323 fi
2324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2326
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS=${CFLAGS+set}
2332 ac_save_CFLAGS=$CFLAGS
2333 CFLAGS="-g"
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>conftest.er1
2357   ac_status=$?
2358   grep -v '^ *+' conftest.er1 >conftest.err
2359   rm -f conftest.er1
2360   cat conftest.err >&5
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); } &&
2363          { ac_try='test -z "$ac_c_werror_flag"
2364                          || test ! -s conftest.err'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   ac_cv_prog_cc_g=yes
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 ac_cv_prog_cc_g=no
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388   CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390   if test "$GCC" = yes; then
2391     CFLAGS="-g -O2"
2392   else
2393     CFLAGS="-g"
2394   fi
2395 else
2396   if test "$GCC" = yes; then
2397     CFLAGS="-O2"
2398   else
2399     CFLAGS=
2400   fi
2401 fi
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415 #include <stdarg.h>
2416 #include <stdio.h>
2417 #include <sys/types.h>
2418 #include <sys/stat.h>
2419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2420 struct buf { int x; };
2421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2422 static char *e (p, i)
2423      char **p;
2424      int i;
2425 {
2426   return p[i];
2427 }
2428 static char *f (char * (*g) (char **, int), char **p, ...)
2429 {
2430   char *s;
2431   va_list v;
2432   va_start (v,p);
2433   s = g (p, va_arg (v,int));
2434   va_end (v);
2435   return s;
2436 }
2437
2438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2439    function prototypes and stuff, but not '\xHH' hex character constants.
2440    These don't provoke an error unfortunately, instead are silently treated
2441    as 'x'.  The following induces an error, until -std1 is added to get
2442    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2443    array size at least.  It's necessary to write '\x00'==0 to get something
2444    that's true only with -std1.  */
2445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2446
2447 int test (int i, double x);
2448 struct s1 {int (*f) (int a);};
2449 struct s2 {int (*f) (double a);};
2450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2451 int argc;
2452 char **argv;
2453 int
2454 main ()
2455 {
2456 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 # Don't try gcc -ansi; that turns off useful extensions and
2462 # breaks some systems' header files.
2463 # AIX                   -qlanglvl=ansi
2464 # Ultrix and OSF/1      -std1
2465 # HP-UX 10.20 and later -Ae
2466 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2467 # SVR4                  -Xc -D__EXTENSIONS__
2468 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2469 do
2470   CC="$ac_save_CC $ac_arg"
2471   rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473   (eval $ac_compile) 2>conftest.er1
2474   ac_status=$?
2475   grep -v '^ *+' conftest.er1 >conftest.err
2476   rm -f conftest.er1
2477   cat conftest.err >&5
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -z "$ac_c_werror_flag"
2481                          || test ! -s conftest.err'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; } &&
2487          { ac_try='test -s conftest.$ac_objext'
2488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489   (eval $ac_try) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493   ac_cv_prog_cc_stdc=$ac_arg
2494 break
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 fi
2500 rm -f conftest.err conftest.$ac_objext
2501 done
2502 rm -f conftest.$ac_ext conftest.$ac_objext
2503 CC=$ac_save_CC
2504
2505 fi
2506
2507 case "x$ac_cv_prog_cc_stdc" in
2508   x|xno)
2509     echo "$as_me:$LINENO: result: none needed" >&5
2510 echo "${ECHO_T}none needed" >&6 ;;
2511   *)
2512     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2514     CC="$CC $ac_cv_prog_cc_stdc" ;;
2515 esac
2516
2517 # Some people use a C++ compiler to compile C.  Since we use `exit',
2518 # in C++ we need to declare it.  In case someone uses the same compiler
2519 # for both compiling C and C++ we need to have the C++ compiler decide
2520 # the declaration of exit, since it's the most demanding environment.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #ifndef __cplusplus
2523   choke me
2524 #endif
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528   (eval $ac_compile) 2>conftest.er1
2529   ac_status=$?
2530   grep -v '^ *+' conftest.er1 >conftest.err
2531   rm -f conftest.er1
2532   cat conftest.err >&5
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -z "$ac_c_werror_flag"
2536                          || test ! -s conftest.err'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   for ac_declaration in \
2549    '' \
2550    'extern "C" void std::exit (int) throw (); using std::exit;' \
2551    'extern "C" void std::exit (int); using std::exit;' \
2552    'extern "C" void exit (int) throw ();' \
2553    'extern "C" void exit (int);' \
2554    'void exit (int);'
2555 do
2556   cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562 $ac_declaration
2563 #include <stdlib.h>
2564 int
2565 main ()
2566 {
2567 exit (42);
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag"
2582                          || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   :
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 continue
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608 $ac_declaration
2609 int
2610 main ()
2611 {
2612 exit (42);
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"
2627                          || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 fi
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666 ac_ext=cc
2667 ac_cpp='$CXXCPP $CPPFLAGS'
2668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2673   do
2674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CXX+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if test -n "$CXX"; then
2682   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689   for ac_exec_ext in '' $ac_executable_extensions; do
2690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696 done
2697
2698 fi
2699 fi
2700 CXX=$ac_cv_prog_CXX
2701 if test -n "$CXX"; then
2702   echo "$as_me:$LINENO: result: $CXX" >&5
2703 echo "${ECHO_T}$CXX" >&6
2704 else
2705   echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709     test -n "$CXX" && break
2710   done
2711 fi
2712 if test -z "$CXX"; then
2713   ac_ct_CXX=$CXX
2714   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2715 do
2716   # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   if test -n "$ac_ct_CXX"; then
2724   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731   for ac_exec_ext in '' $ac_executable_extensions; do
2732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_ac_ct_CXX="$ac_prog"
2734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738 done
2739
2740 fi
2741 fi
2742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2743 if test -n "$ac_ct_CXX"; then
2744   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745 echo "${ECHO_T}$ac_ct_CXX" >&6
2746 else
2747   echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2749 fi
2750
2751   test -n "$ac_ct_CXX" && break
2752 done
2753 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2754
2755   CXX=$ac_ct_CXX
2756 fi
2757
2758
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO:" \
2761      "checking for C++ compiler version" >&5
2762 ac_compiler=`set X $ac_compile; echo $2`
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764   (eval $ac_compiler --version </dev/null >&5) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }
2768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769   (eval $ac_compiler -v </dev/null >&5) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }
2773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774   (eval $ac_compiler -V </dev/null >&5) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }
2778
2779 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794 #ifndef __GNUC__
2795        choke me
2796 #endif
2797
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804   (eval $ac_compile) 2>conftest.er1
2805   ac_status=$?
2806   grep -v '^ *+' conftest.er1 >conftest.err
2807   rm -f conftest.er1
2808   cat conftest.err >&5
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } &&
2811          { ac_try='test -z "$ac_cxx_werror_flag"
2812                          || test ! -s conftest.err'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; } &&
2818          { ac_try='test -s conftest.$ac_objext'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; }; then
2824   ac_compiler_gnu=yes
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_compiler_gnu=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2833
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2837 GXX=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CXXFLAGS=${CXXFLAGS+set}
2839 ac_save_CXXFLAGS=$CXXFLAGS
2840 CXXFLAGS="-g"
2841 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2842 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cxx_g+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852
2853 int
2854 main ()
2855 {
2856
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_cxx_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   ac_cv_prog_cxx_g=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 ac_cv_prog_cxx_g=no
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 fi
2892 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2894 if test "$ac_test_CXXFLAGS" = set; then
2895   CXXFLAGS=$ac_save_CXXFLAGS
2896 elif test $ac_cv_prog_cxx_g = yes; then
2897   if test "$GXX" = yes; then
2898     CXXFLAGS="-g -O2"
2899   else
2900     CXXFLAGS="-g"
2901   fi
2902 else
2903   if test "$GXX" = yes; then
2904     CXXFLAGS="-O2"
2905   else
2906     CXXFLAGS=
2907   fi
2908 fi
2909 for ac_declaration in \
2910    '' \
2911    'extern "C" void std::exit (int) throw (); using std::exit;' \
2912    'extern "C" void std::exit (int); using std::exit;' \
2913    'extern "C" void exit (int) throw ();' \
2914    'extern "C" void exit (int);' \
2915    'void exit (int);'
2916 do
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 $ac_declaration
2924 #include <stdlib.h>
2925 int
2926 main ()
2927 {
2928 exit (42);
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935   (eval $ac_compile) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_cxx_werror_flag"
2943                          || test ! -s conftest.err'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   :
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963   cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 $ac_declaration
2970 int
2971 main ()
2972 {
2973 exit (42);
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980   (eval $ac_compile) 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } &&
2987          { ac_try='test -z "$ac_cxx_werror_flag"
2988                          || test ! -s conftest.err'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; } &&
2994          { ac_try='test -s conftest.$ac_objext'
2995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996   (eval $ac_try) 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; }; then
3000   break
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 fi
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 done
3008 rm -f conftest*
3009 if test -n "$ac_declaration"; then
3010   echo '#ifdef __cplusplus' >>confdefs.h
3011   echo $ac_declaration      >>confdefs.h
3012   echo '#endif'             >>confdefs.h
3013 fi
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021 CXXFLAGS="$save_CXXFLAGS"
3022
3023
3024
3025
3026
3027 am__api_version="1.9"
3028 # Find a good install program.  We prefer a C program (faster),
3029 # so one script is as good as another.  But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3034 # AIX /bin/install
3035 # AmigaOS /C/install, which installs bootblocks on floppy discs
3036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3039 # OS/2's system install, which has a completely different semantic
3040 # ./install, which can be erroneously created by make from ./install.sh.
3041 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3043 if test -z "$INSTALL"; then
3044 if test "${ac_cv_path_install+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052   # Account for people who put trailing slashes in PATH elements.
3053 case $as_dir/ in
3054   ./ | .// | /cC/* | \
3055   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3056   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3057   /usr/ucb/* ) ;;
3058   *)
3059     # OSF1 and SCO ODT 3.0 have their own names for install.
3060     # Don't use installbsd from OSF since it installs stuff as root
3061     # by default.
3062     for ac_prog in ginstall scoinst install; do
3063       for ac_exec_ext in '' $ac_executable_extensions; do
3064         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3065           if test $ac_prog = install &&
3066             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3067             # AIX install.  It has an incompatible calling convention.
3068             :
3069           elif test $ac_prog = install &&
3070             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071             # program-specific install script used by HP pwplus--don't use.
3072             :
3073           else
3074             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3075             break 3
3076           fi
3077         fi
3078       done
3079     done
3080     ;;
3081 esac
3082 done
3083
3084
3085 fi
3086   if test "${ac_cv_path_install+set}" = set; then
3087     INSTALL=$ac_cv_path_install
3088   else
3089     # As a last resort, use the slow shell script.  We don't cache a
3090     # path for INSTALL within a source directory, because that will
3091     # break other packages using the cache if that directory is
3092     # removed, or if the path is relative.
3093     INSTALL=$ac_install_sh
3094   fi
3095 fi
3096 echo "$as_me:$LINENO: result: $INSTALL" >&5
3097 echo "${ECHO_T}$INSTALL" >&6
3098
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3102
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3104
3105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3106
3107 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3109 # Just in case
3110 sleep 1
3111 echo timestamp > conftest.file
3112 # Do `set' in a subshell so we don't clobber the current shell's
3113 # arguments.  Must try -L first in case configure is actually a
3114 # symlink; some systems play weird games with the mod time of symlinks
3115 # (eg FreeBSD returns the mod time of the symlink's containing
3116 # directory).
3117 if (
3118    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3119    if test "$*" = "X"; then
3120       # -L didn't work.
3121       set X `ls -t $srcdir/configure conftest.file`
3122    fi
3123    rm -f conftest.file
3124    if test "$*" != "X $srcdir/configure conftest.file" \
3125       && test "$*" != "X conftest.file $srcdir/configure"; then
3126
3127       # If neither matched, then we have a broken ls.  This can happen
3128       # if, for instance, CONFIG_SHELL is bash and it inherits a
3129       # broken ls alias from the environment.  This has actually
3130       # happened.  Such a system could not be considered "sane".
3131       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3132 alias in your environment" >&5
3133 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3134 alias in your environment" >&2;}
3135    { (exit 1); exit 1; }; }
3136    fi
3137
3138    test "$2" = conftest.file
3139    )
3140 then
3141    # Ok.
3142    :
3143 else
3144    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3145 Check your system clock" >&5
3146 echo "$as_me: error: newly created file is older than distributed files!
3147 Check your system clock" >&2;}
3148    { (exit 1); exit 1; }; }
3149 fi
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152 test "$program_prefix" != NONE &&
3153   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3157 # Double any \ or $.  echo might interpret backslashes.
3158 # By default was `s,x,x', remove it if useless.
3159 cat <<\_ACEOF >conftest.sed
3160 s/[\\$]/&&/g;s/;s,x,x,$//
3161 _ACEOF
3162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3163 rm conftest.sed
3164
3165 # expand $ac_aux_dir to an absolute path
3166 am_aux_dir=`cd $ac_aux_dir && pwd`
3167
3168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3169 # Use eval to expand $SHELL
3170 if eval "$MISSING --run true"; then
3171   am_missing_run="$MISSING --run "
3172 else
3173   am_missing_run=
3174   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3176 fi
3177
3178 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3179   # We used to keeping the `.' as first argument, in order to
3180   # allow $(mkdir_p) to be used without argument.  As in
3181   #   $(mkdir_p) $(somedir)
3182   # where $(somedir) is conditionally defined.  However this is wrong
3183   # for two reasons:
3184   #  1. if the package is installed by a user who cannot write `.'
3185   #     make install will fail,
3186   #  2. the above comment should most certainly read
3187   #     $(mkdir_p) $(DESTDIR)$(somedir)
3188   #     so it does not work when $(somedir) is undefined and
3189   #     $(DESTDIR) is not.
3190   #  To support the latter case, we have to write
3191   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3192   #  so the `.' trick is pointless.
3193   mkdir_p='mkdir -p --'
3194 else
3195   # On NextStep and OpenStep, the `mkdir' command does not
3196   # recognize any option.  It will interpret all options as
3197   # directories to create, and then abort because `.' already
3198   # exists.
3199   for d in ./-p ./--version;
3200   do
3201     test -d $d && rmdir $d
3202   done
3203   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3204   if test -f "$ac_aux_dir/mkinstalldirs"; then
3205     mkdir_p='$(mkinstalldirs)'
3206   else
3207     mkdir_p='$(install_sh) -d'
3208   fi
3209 fi
3210
3211 for ac_prog in gawk mawk nawk awk
3212 do
3213   # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_AWK+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   if test -n "$AWK"; then
3221   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_AWK="$ac_prog"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236
3237 fi
3238 fi
3239 AWK=$ac_cv_prog_AWK
3240 if test -n "$AWK"; then
3241   echo "$as_me:$LINENO: result: $AWK" >&5
3242 echo "${ECHO_T}$AWK" >&6
3243 else
3244   echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3246 fi
3247
3248   test -n "$AWK" && break
3249 done
3250
3251 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3252 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3253 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3254 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   cat >conftest.make <<\_ACEOF
3258 all:
3259         @echo 'ac_maketemp="$(MAKE)"'
3260 _ACEOF
3261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3262 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3263 if test -n "$ac_maketemp"; then
3264   eval ac_cv_prog_make_${ac_make}_set=yes
3265 else
3266   eval ac_cv_prog_make_${ac_make}_set=no
3267 fi
3268 rm -f conftest.make
3269 fi
3270 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3271   echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3273   SET_MAKE=
3274 else
3275   echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277   SET_MAKE="MAKE=${MAKE-make}"
3278 fi
3279
3280 rm -rf .tst 2>/dev/null
3281 mkdir .tst 2>/dev/null
3282 if test -d .tst; then
3283   am__leading_dot=.
3284 else
3285   am__leading_dot=_
3286 fi
3287 rmdir .tst 2>/dev/null
3288
3289 DEPDIR="${am__leading_dot}deps"
3290
3291           ac_config_commands="$ac_config_commands depfiles"
3292
3293
3294 am_make=${MAKE-make}
3295 cat > confinc << 'END'
3296 am__doit:
3297         @echo done
3298 .PHONY: am__doit
3299 END
3300 # If we don't find an include directive, just comment out the code.
3301 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3303 am__include="#"
3304 am__quote=
3305 _am_result=none
3306 # First try GNU make style include.
3307 echo "include confinc" > confmf
3308 # We grep out `Entering directory' and `Leaving directory'
3309 # messages which can occur if `w' ends up in MAKEFLAGS.
3310 # In particular we don't look at `^make:' because GNU make might
3311 # be invoked under some other name (usually "gmake"), in which
3312 # case it prints its new name instead of `make'.
3313 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3314    am__include=include
3315    am__quote=
3316    _am_result=GNU
3317 fi
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320    echo '.include "confinc"' > confmf
3321    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322       am__include=.include
3323       am__quote="\""
3324       _am_result=BSD
3325    fi
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: result: $_am_result" >&5
3330 echo "${ECHO_T}$_am_result" >&6
3331 rm -f confinc confmf
3332
3333 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3334 if test "${enable_dependency_tracking+set}" = set; then
3335   enableval="$enable_dependency_tracking"
3336
3337 fi;
3338 if test "x$enable_dependency_tracking" != xno; then
3339   am_depcomp="$ac_aux_dir/depcomp"
3340   AMDEPBACKSLASH='\'
3341 fi
3342
3343
3344 if test "x$enable_dependency_tracking" != xno; then
3345   AMDEP_TRUE=
3346   AMDEP_FALSE='#'
3347 else
3348   AMDEP_TRUE='#'
3349   AMDEP_FALSE=
3350 fi
3351
3352
3353
3354 # test to see if srcdir already configured
3355 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3356    test -f $srcdir/config.status; then
3357   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3358 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3359    { (exit 1); exit 1; }; }
3360 fi
3361
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364   if (cygpath --version) >/dev/null 2>/dev/null; then
3365     CYGPATH_W='cygpath -w'
3366   else
3367     CYGPATH_W=echo
3368   fi
3369 fi
3370
3371
3372 # Define the identity of the package.
3373  PACKAGE='libjava'
3374  VERSION='version-unused'
3375
3376
3377 cat >>confdefs.h <<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3379 _ACEOF
3380
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define VERSION "$VERSION"
3384 _ACEOF
3385
3386 # Some tools Automake needs.
3387
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3389
3390
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3392
3393
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3395
3396
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3398
3399
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3401
3402 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3403
3404 # Installed binaries are usually stripped using `strip' when the user
3405 # run `make install-strip'.  However `strip' might not be the right
3406 # tool to use in cross-compilation environments, therefore Automake
3407 # will honor the `STRIP' environment variable to overrule this program.
3408 if test "$cross_compiling" != no; then
3409   if test -n "$ac_tool_prefix"; then
3410   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}strip; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_STRIP+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   if test -n "$STRIP"; then
3418   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425   for ac_exec_ext in '' $ac_executable_extensions; do
3426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432 done
3433
3434 fi
3435 fi
3436 STRIP=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438   echo "$as_me:$LINENO: result: $STRIP" >&5
3439 echo "${ECHO_T}$STRIP" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 fi
3444
3445 fi
3446 if test -z "$ac_cv_prog_STRIP"; then
3447   ac_ct_STRIP=$STRIP
3448   # Extract the first word of "strip", so it can be a program name with args.
3449 set dummy strip; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   if test -n "$ac_ct_STRIP"; then
3456   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463   for ac_exec_ext in '' $ac_executable_extensions; do
3464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465     ac_cv_prog_ac_ct_STRIP="strip"
3466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470 done
3471
3472   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3473 fi
3474 fi
3475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3476 if test -n "$ac_ct_STRIP"; then
3477   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3478 echo "${ECHO_T}$ac_ct_STRIP" >&6
3479 else
3480   echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 fi
3483
3484   STRIP=$ac_ct_STRIP
3485 else
3486   STRIP="$ac_cv_prog_STRIP"
3487 fi
3488
3489 fi
3490 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3491
3492 # We need awk for the "check" target.  The system "awk" is bad on
3493 # some platforms.
3494 # Always define AMTAR for backward compatibility.
3495
3496 AMTAR=${AMTAR-"${am_missing_run}tar"}
3497
3498 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3499
3500
3501
3502
3503 depcc="$CC"   am_compiler_list=
3504
3505 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511   # We make a subdir and do the tests there.  Otherwise we can end up
3512   # making bogus files that we don't know about and never remove.  For
3513   # instance it was reported that on HP-UX the gcc test will end up
3514   # making a dummy file named `D' -- because `-MD' means `put the output
3515   # in D'.
3516   mkdir conftest.dir
3517   # Copy depcomp to subdir because otherwise we won't find it if we're
3518   # using a relative directory.
3519   cp "$am_depcomp" conftest.dir
3520   cd conftest.dir
3521   # We will build objects and dependencies in a subdirectory because
3522   # it helps to detect inapplicable dependency modes.  For instance
3523   # both Tru64's cc and ICC support -MD to output dependencies as a
3524   # side effect of compilation, but ICC will put the dependencies in
3525   # the current directory while Tru64 will put them in the object
3526   # directory.
3527   mkdir sub
3528
3529   am_cv_CC_dependencies_compiler_type=none
3530   if test "$am_compiler_list" = ""; then
3531      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3532   fi
3533   for depmode in $am_compiler_list; do
3534     # Setup a source with many dependencies, because some compilers
3535     # like to wrap large dependency lists on column 80 (with \), and
3536     # we should not choose a depcomp mode which is confused by this.
3537     #
3538     # We need to recreate these files for each test, as the compiler may
3539     # overwrite some of them when testing with obscure command lines.
3540     # This happens at least with the AIX C compiler.
3541     : > sub/conftest.c
3542     for i in 1 2 3 4 5 6; do
3543       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3544       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545       # Solaris 8's {/usr,}/bin/sh.
3546       touch sub/conftst$i.h
3547     done
3548     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3549
3550     case $depmode in
3551     nosideeffect)
3552       # after this tag, mechanisms are not by side-effect, so they'll
3553       # only be used when explicitly requested
3554       if test "x$enable_dependency_tracking" = xyes; then
3555         continue
3556       else
3557         break
3558       fi
3559       ;;
3560     none) break ;;
3561     esac
3562     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563     # mode.  It turns out that the SunPro C++ compiler does not properly
3564     # handle `-M -o', and we need to detect this.
3565     if depmode=$depmode \
3566        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3567        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3569          >/dev/null 2>conftest.err &&
3570        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3571        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3572        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3573       # icc doesn't choke on unknown options, it will just issue warnings
3574       # or remarks (even with -Werror).  So we grep stderr for any message
3575       # that says an option was ignored or not supported.
3576       # When given -MP, icc 7.0 and 7.1 complain thusly:
3577       #   icc: Command line warning: ignoring option '-M'; no argument required
3578       # The diagnosis changed in icc 8.0:
3579       #   icc: Command line remark: option '-MP' not supported
3580       if (grep 'ignoring option' conftest.err ||
3581           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3582         am_cv_CC_dependencies_compiler_type=$depmode
3583         break
3584       fi
3585     fi
3586   done
3587
3588   cd ..
3589   rm -rf conftest.dir
3590 else
3591   am_cv_CC_dependencies_compiler_type=none
3592 fi
3593
3594 fi
3595 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3598
3599
3600
3601 if
3602   test "x$enable_dependency_tracking" != xno \
3603   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604   am__fastdepCC_TRUE=
3605   am__fastdepCC_FALSE='#'
3606 else
3607   am__fastdepCC_TRUE='#'
3608   am__fastdepCC_FALSE=
3609 fi
3610
3611
3612 depcc="$CXX"  am_compiler_list=
3613
3614 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3616 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620   # We make a subdir and do the tests there.  Otherwise we can end up
3621   # making bogus files that we don't know about and never remove.  For
3622   # instance it was reported that on HP-UX the gcc test will end up
3623   # making a dummy file named `D' -- because `-MD' means `put the output
3624   # in D'.
3625   mkdir conftest.dir
3626   # Copy depcomp to subdir because otherwise we won't find it if we're
3627   # using a relative directory.
3628   cp "$am_depcomp" conftest.dir
3629   cd conftest.dir
3630   # We will build objects and dependencies in a subdirectory because
3631   # it helps to detect inapplicable dependency modes.  For instance
3632   # both Tru64's cc and ICC support -MD to output dependencies as a
3633   # side effect of compilation, but ICC will put the dependencies in
3634   # the current directory while Tru64 will put them in the object
3635   # directory.
3636   mkdir sub
3637
3638   am_cv_CXX_dependencies_compiler_type=none
3639   if test "$am_compiler_list" = ""; then
3640      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641   fi
3642   for depmode in $am_compiler_list; do
3643     # Setup a source with many dependencies, because some compilers
3644     # like to wrap large dependency lists on column 80 (with \), and
3645     # we should not choose a depcomp mode which is confused by this.
3646     #
3647     # We need to recreate these files for each test, as the compiler may
3648     # overwrite some of them when testing with obscure command lines.
3649     # This happens at least with the AIX C compiler.
3650     : > sub/conftest.c
3651     for i in 1 2 3 4 5 6; do
3652       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654       # Solaris 8's {/usr,}/bin/sh.
3655       touch sub/conftst$i.h
3656     done
3657     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3658
3659     case $depmode in
3660     nosideeffect)
3661       # after this tag, mechanisms are not by side-effect, so they'll
3662       # only be used when explicitly requested
3663       if test "x$enable_dependency_tracking" = xyes; then
3664         continue
3665       else
3666         break
3667       fi
3668       ;;
3669     none) break ;;
3670     esac
3671     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672     # mode.  It turns out that the SunPro C++ compiler does not properly
3673     # handle `-M -o', and we need to detect this.
3674     if depmode=$depmode \
3675        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678          >/dev/null 2>conftest.err &&
3679        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3681        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682       # icc doesn't choke on unknown options, it will just issue warnings
3683       # or remarks (even with -Werror).  So we grep stderr for any message
3684       # that says an option was ignored or not supported.
3685       # When given -MP, icc 7.0 and 7.1 complain thusly:
3686       #   icc: Command line warning: ignoring option '-M'; no argument required
3687       # The diagnosis changed in icc 8.0:
3688       #   icc: Command line remark: option '-MP' not supported
3689       if (grep 'ignoring option' conftest.err ||
3690           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691         am_cv_CXX_dependencies_compiler_type=$depmode
3692         break
3693       fi
3694     fi
3695   done
3696
3697   cd ..
3698   rm -rf conftest.dir
3699 else
3700   am_cv_CXX_dependencies_compiler_type=none
3701 fi
3702
3703 fi
3704 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3706 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3707
3708
3709
3710 if
3711   test "x$enable_dependency_tracking" != xno \
3712   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3713   am__fastdepCXX_TRUE=
3714   am__fastdepCXX_FALSE='#'
3715 else
3716   am__fastdepCXX_TRUE='#'
3717   am__fastdepCXX_FALSE=
3718 fi
3719
3720
3721
3722
3723 if test -n "$ac_tool_prefix"; then
3724   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}as; ac_word=$2
3726 echo "$as_me:$LINENO: checking for $ac_word" >&5
3727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728 if test "${ac_cv_prog_AS+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   if test -n "$AS"; then
3732   ac_cv_prog_AS="$AS" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739   for ac_exec_ext in '' $ac_executable_extensions; do
3740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741     ac_cv_prog_AS="${ac_tool_prefix}as"
3742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746 done
3747
3748 fi
3749 fi
3750 AS=$ac_cv_prog_AS
3751 if test -n "$AS"; then
3752   echo "$as_me:$LINENO: result: $AS" >&5
3753 echo "${ECHO_T}$AS" >&6
3754 else
3755   echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 fi
3758
3759 fi
3760 if test -z "$ac_cv_prog_AS"; then
3761   ac_ct_AS=$AS
3762   # Extract the first word of "as", so it can be a program name with args.
3763 set dummy as; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if test -n "$ac_ct_AS"; then
3770   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   for ac_exec_ext in '' $ac_executable_extensions; do
3778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779     ac_cv_prog_ac_ct_AS="as"
3780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781     break 2
3782   fi
3783 done
3784 done
3785
3786 fi
3787 fi
3788 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3789 if test -n "$ac_ct_AS"; then
3790   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3791 echo "${ECHO_T}$ac_ct_AS" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797   AS=$ac_ct_AS
3798 else
3799   AS="$ac_cv_prog_AS"
3800 fi
3801
3802 if test -n "$ac_tool_prefix"; then
3803   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}ld; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_LD+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   if test -n "$LD"; then
3811   ac_cv_prog_LD="$LD" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_prog_LD="${ac_tool_prefix}ld"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827 fi
3828 fi
3829 LD=$ac_cv_prog_LD
3830 if test -n "$LD"; then
3831   echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3833 else
3834   echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 fi
3837
3838 fi
3839 if test -z "$ac_cv_prog_LD"; then
3840   ac_ct_LD=$LD
3841   # Extract the first word of "ld", so it can be a program name with args.
3842 set dummy ld; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   if test -n "$ac_ct_LD"; then
3849   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856   for ac_exec_ext in '' $ac_executable_extensions; do
3857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_prog_ac_ct_LD="ld"
3859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863 done
3864
3865 fi
3866 fi
3867 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3868 if test -n "$ac_ct_LD"; then
3869   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3870 echo "${ECHO_T}$ac_ct_LD" >&6
3871 else
3872   echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 fi
3875
3876   LD=$ac_ct_LD
3877 else
3878   LD="$ac_cv_prog_LD"
3879 fi
3880
3881 if test -n "$ac_tool_prefix"; then
3882   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ar; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   if test -n "$AR"; then
3890   ac_cv_prog_AR="$AR" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897   for ac_exec_ext in '' $ac_executable_extensions; do
3898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899     ac_cv_prog_AR="${ac_tool_prefix}ar"
3900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901     break 2
3902   fi
3903 done
3904 done
3905
3906 fi
3907 fi
3908 AR=$ac_cv_prog_AR
3909 if test -n "$AR"; then
3910   echo "$as_me:$LINENO: result: $AR" >&5
3911 echo "${ECHO_T}$AR" >&6
3912 else
3913   echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 fi
3918 if test -z "$ac_cv_prog_AR"; then
3919   ac_ct_AR=$AR
3920   # Extract the first word of "ar", so it can be a program name with args.
3921 set dummy ar; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   if test -n "$ac_ct_AR"; then
3928   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_exec_ext in '' $ac_executable_extensions; do
3936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_ac_ct_AR="ar"
3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942 done
3943
3944 fi
3945 fi
3946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3947 if test -n "$ac_ct_AR"; then
3948   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3949 echo "${ECHO_T}$ac_ct_AR" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955   AR=$ac_ct_AR
3956 else
3957   AR="$ac_cv_prog_AR"
3958 fi
3959
3960 if test -n "$ac_tool_prefix"; then
3961   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test -n "$RANLIB"; then
3969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989   echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996 fi
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998   ac_ct_RANLIB=$RANLIB
3999   # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$ac_ct_RANLIB"; then
4007   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_ac_ct_RANLIB="ranlib"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024 fi
4025 fi
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031   echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035   RANLIB=$ac_ct_RANLIB
4036 else
4037   RANLIB="$ac_cv_prog_RANLIB"
4038 fi
4039
4040 for ac_prog in gawk mawk nawk awk
4041 do
4042   # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$AWK"; then
4050   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_AWK="$ac_prog"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065
4066 fi
4067 fi
4068 AWK=$ac_cv_prog_AWK
4069 if test -n "$AWK"; then
4070   echo "$as_me:$LINENO: result: $AWK" >&5
4071 echo "${ECHO_T}$AWK" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4075 fi
4076
4077   test -n "$AWK" && break
4078 done
4079
4080 for ac_prog in jar fastjar gjar
4081 do
4082   # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_JAR+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$JAR"; then
4090   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_JAR="$ac_prog"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 JAR=$ac_cv_prog_JAR
4109 if test -n "$JAR"; then
4110   echo "$as_me:$LINENO: result: $JAR" >&5
4111 echo "${ECHO_T}$JAR" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117   test -n "$JAR" && break
4118 done
4119 test -n "$JAR" || JAR="no"
4120
4121 # Extract the first word of "zip", so it can be a program name with args.
4122 set dummy zip; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_path_ZIP+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   case $ZIP in
4129   [\\/]* | ?:[\\/]*)
4130   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4131   ;;
4132   *)
4133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146
4147   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4148   ;;
4149 esac
4150 fi
4151 ZIP=$ac_cv_path_ZIP
4152
4153 if test -n "$ZIP"; then
4154   echo "$as_me:$LINENO: result: $ZIP" >&5
4155 echo "${ECHO_T}$ZIP" >&6
4156 else
4157   echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161 # Extract the first word of "unzip", so it can be a program name with args.
4162 set dummy unzip; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_UNZIP+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   case $UNZIP in
4169   [\\/]* | ?:[\\/]*)
4170   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4171   ;;
4172   *)
4173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4188   ;;
4189 esac
4190 fi
4191 UNZIP=$ac_cv_path_UNZIP
4192
4193 if test -n "$UNZIP"; then
4194   echo "$as_me:$LINENO: result: $UNZIP" >&5
4195 echo "${ECHO_T}$UNZIP" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201
4202 # We need a jar that supports -@.  This is a GNU extension.
4203 if test "$JAR" != no; then
4204    rm -f config-test.jar
4205    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4206    if test -f config-test.jar; then
4207      rm -f config-test.jar
4208    else
4209      JAR=no
4210    fi
4211 fi
4212
4213 # Prefer the jar we found, but fall back to our jar script.
4214 if test "$JAR" = no; then
4215   if test "$ZIP" = no; then
4216     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4217 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4218    { (exit 1); exit 1; }; }
4219   else
4220     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4221     JAR=`pwd`/scripts/jar
4222   fi
4223 fi
4224
4225 # Find a good install program.  We prefer a C program (faster),
4226 # so one script is as good as another.  But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4231 # AIX /bin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   # Account for people who put trailing slashes in PATH elements.
4250 case $as_dir/ in
4251   ./ | .// | /cC/* | \
4252   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4254   /usr/ucb/* ) ;;
4255   *)
4256     # OSF1 and SCO ODT 3.0 have their own names for install.
4257     # Don't use installbsd from OSF since it installs stuff as root
4258     # by default.
4259     for ac_prog in ginstall scoinst install; do
4260       for ac_exec_ext in '' $ac_executable_extensions; do
4261         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4262           if test $ac_prog = install &&
4263             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264             # AIX install.  It has an incompatible calling convention.
4265             :
4266           elif test $ac_prog = install &&
4267             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # program-specific install script used by HP pwplus--don't use.
4269             :
4270           else
4271             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4272             break 3
4273           fi
4274         fi
4275       done
4276     done
4277     ;;
4278 esac
4279 done
4280
4281
4282 fi
4283   if test "${ac_cv_path_install+set}" = set; then
4284     INSTALL=$ac_cv_path_install
4285   else
4286     # As a last resort, use the slow shell script.  We don't cache a
4287     # path for INSTALL within a source directory, because that will
4288     # break other packages using the cache if that directory is
4289     # removed, or if the path is relative.
4290     INSTALL=$ac_install_sh
4291   fi
4292 fi
4293 echo "$as_me:$LINENO: result: $INSTALL" >&5
4294 echo "${ECHO_T}$INSTALL" >&6
4295
4296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4297 # It thinks the first close brace ends the variable substitution.
4298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4299
4300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4301
4302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4303
4304
4305 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4306 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4307     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4308 if test "${enable_maintainer_mode+set}" = set; then
4309   enableval="$enable_maintainer_mode"
4310   USE_MAINTAINER_MODE=$enableval
4311 else
4312   USE_MAINTAINER_MODE=no
4313 fi;
4314   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4315 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4316
4317
4318 if test $USE_MAINTAINER_MODE = yes; then
4319   MAINTAINER_MODE_TRUE=
4320   MAINTAINER_MODE_FALSE='#'
4321 else
4322   MAINTAINER_MODE_TRUE='#'
4323   MAINTAINER_MODE_FALSE=
4324 fi
4325
4326   MAINT=$MAINTAINER_MODE_TRUE
4327
4328
4329
4330
4331
4332 # configure.host sets the following important variables
4333 #       libgcj_cflags    - host specific C compiler flags
4334 #       libgcj_cxxflags  - host specific C++ compiler flags
4335 #       libgcj_javaflags - host specific Java compiler flags
4336
4337 libgcj_cflags=
4338 libgcj_cxxflags=
4339 libgcj_javaflags=
4340
4341 . ${srcdir}/configure.host
4342
4343 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4345 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4350   acl_cv_prog_gnu_ld=yes
4351 else
4352   acl_cv_prog_gnu_ld=no
4353 fi
4354 fi
4355 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4356 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4357 with_gnu_ld=$acl_cv_prog_gnu_ld
4358
4359 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4360 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4361 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364
4365 acl_cv_prog_gnu_ld_symbolic=no
4366
4367 if test x"$with_gnu_ld" = x"yes"; then
4368   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4369     acl_cv_prog_gnu_ld_symbolic=yes
4370   fi
4371 fi
4372 fi
4373 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4374 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4375 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4376   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4377 else
4378   SYMBOLIC_LDFLAGS=''
4379 fi
4380
4381 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4382 if test -z "$libgcj_ld_symbolic"; then
4383   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4384 fi
4385
4386 LIBGCJ_CFLAGS="${libgcj_cflags}"
4387 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4388 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4389 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4390 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4391
4392
4393
4394
4395
4396
4397 # Only use libltdl for non-newlib builds.
4398 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4399    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4401 library_names_spec=
4402 libname_spec='lib$name'
4403 soname_spec=
4404 shrext=".so"
4405 postinstall_cmds=
4406 postuninstall_cmds=
4407 finish_cmds=
4408 finish_eval=
4409 shlibpath_var=
4410 shlibpath_overrides_runpath=unknown
4411 version_type=none
4412 dynamic_linker="$host_os ld.so"
4413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4414 if test "$GCC" = yes; then
4415   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4416   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4417     # if the path contains ";" then we assume it to be the separator
4418     # otherwise default to the standard path separator (i.e. ":") - it is
4419     # assumed that no part of a normal pathname contains ";" but that should
4420     # okay in the real world where ";" in dirpaths is itself problematic.
4421     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4422   else
4423     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4424   fi
4425 else
4426   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4427 fi
4428 need_lib_prefix=unknown
4429 hardcode_into_libs=no
4430
4431 # when you set need_version to no, make sure it does not cause -set_version
4432 # flags to be left without arguments
4433 need_version=unknown
4434
4435 case $host_os in
4436 aix3*)
4437   version_type=linux
4438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4439   shlibpath_var=LIBPATH
4440
4441   # AIX 3 has no versioning support, so we append a major version to the name.
4442   soname_spec='${libname}${release}${shared_ext}$major'
4443   ;;
4444
4445 aix4* | aix5*)
4446   version_type=linux
4447   need_lib_prefix=no
4448   need_version=no
4449   hardcode_into_libs=yes
4450   if test "$host_cpu" = ia64; then
4451     # AIX 5 supports IA64
4452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4453     shlibpath_var=LD_LIBRARY_PATH
4454   else
4455     # With GCC up to 2.95.x, collect2 would create an import file
4456     # for dependence libraries.  The import file would start with
4457     # the line `#! .'.  This would cause the generated library to
4458     # depend on `.', always an invalid library.  This was fixed in
4459     # development snapshots of GCC prior to 3.0.
4460     case $host_os in
4461       aix4 | aix4.[01] | aix4.[01].*)
4462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4463            echo ' yes '
4464            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4465         :
4466       else
4467         can_build_shared=no
4468       fi
4469       ;;
4470     esac
4471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4472     # soname into executable. Probably we can add versioning support to
4473     # collect2, so additional links can be useful in future.
4474     if test "$aix_use_runtimelinking" = yes; then
4475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4476       # instead of lib<name>.a to let people know that these are not
4477       # typical AIX shared libraries.
4478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4479     else
4480       # We preserve .a as extension for shared libraries through AIX4.2
4481       # and later when we are not doing run time linking.
4482       library_names_spec='${libname}${release}.a $libname.a'
4483       soname_spec='${libname}${release}${shared_ext}$major'
4484     fi
4485     shlibpath_var=LIBPATH
4486   fi
4487   ;;
4488
4489 amigaos*)
4490   library_names_spec='$libname.ixlibrary $libname.a'
4491   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4492   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'
4493   ;;
4494
4495 beos*)
4496   library_names_spec='${libname}${shared_ext}'
4497   dynamic_linker="$host_os ld.so"
4498   shlibpath_var=LIBRARY_PATH
4499   ;;
4500
4501 bsdi4*)
4502   version_type=linux
4503   need_version=no
4504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4505   soname_spec='${libname}${release}${shared_ext}$major'
4506   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4507   shlibpath_var=LD_LIBRARY_PATH
4508   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4509   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4510   # the default ld.so.conf also contains /usr/contrib/lib and
4511   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4512   # libtool to hard-code these into programs
4513   ;;
4514
4515 cygwin* | mingw* | pw32*)
4516   version_type=windows
4517   shrext=".dll"
4518   need_version=no
4519   need_lib_prefix=no
4520
4521   case $GCC,$host_os in
4522   yes,cygwin* | yes,mingw* | yes,pw32*)
4523     library_names_spec='$libname.dll.a'
4524     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4525     postinstall_cmds='base_file=`basename \${file}`~
4526       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4527       dldir=$destdir/`dirname \$dlpath`~
4528       test -d \$dldir || mkdir -p \$dldir~
4529       $install_prog $dir/$dlname \$dldir/$dlname'
4530     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4531       dlpath=$dir/\$dldll~
4532        $rm \$dlpath'
4533     shlibpath_overrides_runpath=yes
4534
4535     case $host_os in
4536     cygwin*)
4537       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4538       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4539       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4540       ;;
4541     mingw*)
4542       # MinGW DLLs use traditional 'lib' prefix
4543       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4544       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4545       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4546         # It is most probably a Windows format PATH printed by
4547         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4548         # path with ; separators, and with drive letters. We can handle the
4549         # drive letters (cygwin fileutils understands them), so leave them,
4550         # especially as we might pass files found there to a mingw objdump,
4551         # which wouldn't understand a cygwinified path. Ahh.
4552         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4553       else
4554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4555       fi
4556       ;;
4557     pw32*)
4558       # pw32 DLLs use 'pw' prefix rather than 'lib'
4559       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4560       ;;
4561     esac
4562     ;;
4563
4564   *)
4565     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4566     ;;
4567   esac
4568   dynamic_linker='Win32 ld.exe'
4569   # FIXME: first we should search . and the directory the executable is in
4570   shlibpath_var=PATH
4571   ;;
4572
4573 darwin* | rhapsody*)
4574   dynamic_linker="$host_os dyld"
4575   version_type=darwin
4576   need_lib_prefix=no
4577   need_version=no
4578   # FIXME: Relying on posixy $() will cause problems for
4579   #        cross-compilation, but unfortunately the echo tests do not
4580   #        yet detect zsh echo's removal of \ escapes.
4581   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4582   soname_spec='${libname}${release}${major}$shared_ext'
4583   shlibpath_overrides_runpath=yes
4584   shlibpath_var=DYLD_LIBRARY_PATH
4585   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4586   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4587   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4588   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"`
4589   fi
4590   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4591   ;;
4592
4593 dgux*)
4594   version_type=linux
4595   need_lib_prefix=no
4596   need_version=no
4597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4598   soname_spec='${libname}${release}${shared_ext}$major'
4599   shlibpath_var=LD_LIBRARY_PATH
4600   ;;
4601
4602 freebsd1*)
4603   dynamic_linker=no
4604   ;;
4605
4606 freebsd*)
4607   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4608   version_type=freebsd-$objformat
4609   case $version_type in
4610     freebsd-elf*)
4611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4612       need_version=no
4613       need_lib_prefix=no
4614       ;;
4615     freebsd-*)
4616       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4617       need_version=yes
4618       ;;
4619   esac
4620   shlibpath_var=LD_LIBRARY_PATH
4621   case $host_os in
4622   freebsd2*)
4623     shlibpath_overrides_runpath=yes
4624     ;;
4625   freebsd3.01* | freebsdelf3.01*)
4626     shlibpath_overrides_runpath=yes
4627     hardcode_into_libs=yes
4628     ;;
4629   *) # from 3.2 on
4630     shlibpath_overrides_runpath=no
4631     hardcode_into_libs=yes
4632     ;;
4633   esac
4634   ;;
4635
4636 gnu*)
4637   version_type=linux
4638   need_lib_prefix=no
4639   need_version=no
4640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4641   soname_spec='${libname}${release}${shared_ext}$major'
4642   shlibpath_var=LD_LIBRARY_PATH
4643   hardcode_into_libs=yes
4644   ;;
4645
4646 hpux9* | hpux10* | hpux11*)
4647   # Give a soname corresponding to the major version so that dld.sl refuses to
4648   # link against other versions.
4649   version_type=sunos
4650   need_lib_prefix=no
4651   need_version=no
4652   case "$host_cpu" in
4653   ia64*)
4654     shrext='.so'
4655     hardcode_into_libs=yes
4656     dynamic_linker="$host_os dld.so"
4657     shlibpath_var=LD_LIBRARY_PATH
4658     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4660     soname_spec='${libname}${release}${shared_ext}$major'
4661     if test "X$HPUX_IA64_MODE" = X32; then
4662       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4663     else
4664       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4665     fi
4666     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4667     ;;
4668    hppa*64*)
4669      shrext='.sl'
4670      hardcode_into_libs=yes
4671      dynamic_linker="$host_os dld.sl"
4672      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4673      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4675      soname_spec='${libname}${release}${shared_ext}$major'
4676      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4677      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4678      ;;
4679    *)
4680     shrext='.sl'
4681     dynamic_linker="$host_os dld.sl"
4682     shlibpath_var=SHLIB_PATH
4683     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4685     soname_spec='${libname}${release}${shared_ext}$major'
4686     ;;
4687   esac
4688   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4689   postinstall_cmds='chmod 555 $lib'
4690   ;;
4691
4692 irix5* | irix6* | nonstopux*)
4693   case $host_os in
4694     nonstopux*) version_type=nonstopux ;;
4695     *)
4696         if test "$lt_cv_prog_gnu_ld" = yes; then
4697                 version_type=linux
4698         else
4699                 version_type=irix
4700         fi ;;
4701   esac
4702   need_lib_prefix=no
4703   need_version=no
4704   soname_spec='${libname}${release}${shared_ext}$major'
4705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4706   case $host_os in
4707   irix5* | nonstopux*)
4708     libsuff= shlibsuff=
4709     ;;
4710   *)
4711     case $LD in # libtool.m4 will add one of these switches to LD
4712     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4713       libsuff= shlibsuff= libmagic=32-bit;;
4714     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4715       libsuff=32 shlibsuff=N32 libmagic=N32;;
4716     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4717       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4718     *) libsuff= shlibsuff= libmagic=never-match;;
4719     esac
4720     ;;
4721   esac
4722   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4723   shlibpath_overrides_runpath=no
4724   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4725   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4726   hardcode_into_libs=yes
4727   ;;
4728
4729 # No shared lib support for Linux oldld, aout, or coff.
4730 linux*oldld* | linux*aout* | linux*coff*)
4731   dynamic_linker=no
4732   ;;
4733
4734 # This must be Linux ELF.
4735 linux*|k*bsd*-gnu)
4736   version_type=linux
4737   need_lib_prefix=no
4738   need_version=no
4739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4740   soname_spec='${libname}${release}${shared_ext}$major'
4741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4742   shlibpath_var=LD_LIBRARY_PATH
4743   shlibpath_overrides_runpath=no
4744   # This implies no fast_install, which is unacceptable.
4745   # Some rework will be needed to allow for fast_install
4746   # before this can be enabled.
4747   hardcode_into_libs=yes
4748
4749   # We used to test for /lib/ld.so.1 and disable shared libraries on
4750   # powerpc, because MkLinux only supported shared libraries with the
4751   # GNU dynamic linker.  Since this was broken with cross compilers,
4752   # most powerpc-linux boxes support dynamic linking these days and
4753   # people can always --disable-shared, the test was removed, and we
4754   # assume the GNU/Linux dynamic linker is in use.
4755   dynamic_linker='GNU/Linux ld.so'
4756   ;;
4757
4758 netbsd*)
4759   version_type=sunos
4760   need_lib_prefix=no
4761   need_version=no
4762   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4765     dynamic_linker='NetBSD (a.out) ld.so'
4766   else
4767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4768     soname_spec='${libname}${release}${shared_ext}$major'
4769     dynamic_linker='NetBSD ld.elf_so'
4770   fi
4771   shlibpath_var=LD_LIBRARY_PATH
4772   shlibpath_overrides_runpath=yes
4773   hardcode_into_libs=yes
4774   ;;
4775
4776 newsos6)
4777   version_type=linux
4778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4779   shlibpath_var=LD_LIBRARY_PATH
4780   shlibpath_overrides_runpath=yes
4781   ;;
4782
4783 nto-qnx)
4784   version_type=linux
4785   need_lib_prefix=no
4786   need_version=no
4787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4788   soname_spec='${libname}${release}${shared_ext}$major'
4789   shlibpath_var=LD_LIBRARY_PATH
4790   shlibpath_overrides_runpath=yes
4791   ;;
4792
4793 openbsd*)
4794   version_type=sunos
4795   need_lib_prefix=no
4796   need_version=no
4797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4799   shlibpath_var=LD_LIBRARY_PATH
4800   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4801     case $host_os in
4802       openbsd2.[89] | openbsd2.[89].*)
4803         shlibpath_overrides_runpath=no
4804         ;;
4805       *)
4806         shlibpath_overrides_runpath=yes
4807         ;;
4808       esac
4809   else
4810     shlibpath_overrides_runpath=yes
4811   fi
4812   ;;
4813
4814 os2*)
4815   libname_spec='$name'
4816   shrext=".dll"
4817   need_lib_prefix=no
4818   library_names_spec='$libname${shared_ext} $libname.a'
4819   dynamic_linker='OS/2 ld.exe'
4820   shlibpath_var=LIBPATH
4821   ;;
4822
4823 osf3* | osf4* | osf5*)
4824   version_type=osf
4825   need_lib_prefix=no
4826   need_version=no
4827   soname_spec='${libname}${release}${shared_ext}$major'
4828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4829   shlibpath_var=LD_LIBRARY_PATH
4830   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4831   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4832   ;;
4833
4834 sco3.2v5*)
4835   version_type=osf
4836   soname_spec='${libname}${release}${shared_ext}$major'
4837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4838   shlibpath_var=LD_LIBRARY_PATH
4839   ;;
4840
4841 solaris*)
4842   version_type=linux
4843   need_lib_prefix=no
4844   need_version=no
4845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4846   soname_spec='${libname}${release}${shared_ext}$major'
4847   shlibpath_var=LD_LIBRARY_PATH
4848   shlibpath_overrides_runpath=yes
4849   hardcode_into_libs=yes
4850   # ldd complains unless libraries are executable
4851   postinstall_cmds='chmod +x $lib'
4852   ;;
4853
4854 sunos4*)
4855   version_type=sunos
4856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4857   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4858   shlibpath_var=LD_LIBRARY_PATH
4859   shlibpath_overrides_runpath=yes
4860   if test "$with_gnu_ld" = yes; then
4861     need_lib_prefix=no
4862   fi
4863   need_version=yes
4864   ;;
4865
4866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4867   version_type=linux
4868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4869   soname_spec='${libname}${release}${shared_ext}$major'
4870   shlibpath_var=LD_LIBRARY_PATH
4871   case $host_vendor in
4872     sni)
4873       shlibpath_overrides_runpath=no
4874       need_lib_prefix=no
4875       export_dynamic_flag_spec='${wl}-Blargedynsym'
4876       runpath_var=LD_RUN_PATH
4877       ;;
4878     siemens)
4879       need_lib_prefix=no
4880       ;;
4881     motorola)
4882       need_lib_prefix=no
4883       need_version=no
4884       shlibpath_overrides_runpath=no
4885       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4886       ;;
4887   esac
4888   ;;
4889
4890 sysv4*MP*)
4891   if test -d /usr/nec ;then
4892     version_type=linux
4893     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4894     soname_spec='$libname${shared_ext}.$major'
4895     shlibpath_var=LD_LIBRARY_PATH
4896   fi
4897   ;;
4898
4899 uts4*)
4900   version_type=linux
4901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4902   soname_spec='${libname}${release}${shared_ext}$major'
4903   shlibpath_var=LD_LIBRARY_PATH
4904   ;;
4905
4906 *)
4907   dynamic_linker=no
4908   ;;
4909 esac
4910 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4911 echo "${ECHO_T}$dynamic_linker" >&6
4912 test "$dynamic_linker" = no && can_build_shared=no
4913
4914
4915 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4916 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4917 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   libltdl_cv_shlibpath_var="$shlibpath_var"
4921 fi
4922 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4923 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4924 if test -n "$libltdl_cv_shlibpath_var"; then
4925
4926 cat >>confdefs.h <<_ACEOF
4927 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4928 _ACEOF
4929
4930 fi
4931
4932 fi
4933
4934                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4935
4936
4937 # See if the user has requested runtime debugging.
4938 LIBGCJDEBUG="disable"
4939
4940 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4941 if test "${enable_libgcj_debug+set}" = set; then
4942   enableval="$enable_libgcj_debug"
4943   if test "$enable_libgcj_debug" = yes; then
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define DEBUG 1
4947 _ACEOF
4948
4949     LIBGCJDEBUG="enable"
4950   fi
4951 fi;
4952
4953
4954 # Check whether --with-escher or --without-escher was given.
4955 if test "${with_escher+set}" = set; then
4956   withval="$with_escher"
4957
4958 fi;
4959 case "$with_escher" in
4960 "")
4961         use_escher=false
4962         ;;
4963 "no")
4964         use_escher=false
4965         ;;
4966 "yes")
4967         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4968 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4969    { (exit 1); exit 1; }; }
4970         ;;
4971 *)
4972         use_escher=true
4973         ;;
4974 esac
4975
4976 # Determine which AWT peer libraries to build
4977 # Check whether --enable-java-awt or --disable-java-awt was given.
4978 if test "${enable_java_awt+set}" = set; then
4979   enableval="$enable_java_awt"
4980
4981 fi;
4982
4983 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4984 use_xlib_awt=""
4985 use_gtk_awt=""
4986 use_qt_awt=""
4987 use_x_awt=""
4988 # The default toolkit to use is the first one specified.
4989 TOOLKIT=
4990
4991
4992 for peer in $peerlibs ; do
4993   case $peer in
4994     xlib)
4995       if test "$no_x" = yes; then
4996         echo "*** xlib peers requested but no X library available" 1>&2
4997         exit 1
4998       else
4999         use_xlib_awt="yes"
5000         if test -z "$TOOLKIT"; then
5001            TOOLKIT=gnu.awt.xlib.XToolkit
5002         fi
5003       fi
5004       ;;
5005     gtk)
5006       if test "$no_x" = yes; then
5007          echo "*** gtk peers requested but no X library available" 1>&2
5008          exit 1
5009       else
5010          use_gtk_awt=yes
5011          if test -z "$TOOLKIT"; then
5012             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5013          fi
5014       fi
5015       ;;
5016     qt)
5017       if test "$no_x" = yes; then
5018          # Perhaps we should admit the possibility of embedded Qt.
5019          echo "*** Qt peers requested but no X library available" 1>&2
5020          exit 1
5021       else
5022          use_qt_awt=yes
5023          if test -z "$TOOLKIT"; then
5024             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5025          fi
5026       fi
5027       ;;
5028     x)
5029       use_x_awt=yes
5030       if test -z "$TOOLKIT"; then
5031          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5032       fi
5033       ;;
5034     no)
5035       use_xlib_awt=
5036       use_gtk_awt=
5037       use_qt_awt=
5038       use_x_awt=
5039       break
5040       ;;
5041     *)
5042       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5043       exit 1
5044   esac
5045 done
5046
5047
5048
5049 if test "$use_xlib_awt" = yes; then
5050   XLIB_AWT_TRUE=
5051   XLIB_AWT_FALSE='#'
5052 else
5053   XLIB_AWT_TRUE='#'
5054   XLIB_AWT_FALSE=
5055 fi
5056
5057
5058
5059 if test "$use_x_awt" = yes; then
5060   X_AWT_TRUE=
5061   X_AWT_FALSE='#'
5062 else
5063   X_AWT_TRUE='#'
5064   X_AWT_FALSE=
5065 fi
5066
5067
5068
5069 cat >>confdefs.h <<_ACEOF
5070 #define AWT_TOOLKIT "$TOOLKIT"
5071 _ACEOF
5072
5073
5074
5075 cat >>confdefs.h <<_ACEOF
5076 #define LIBGCJ_PREFIX "$prefix"
5077 _ACEOF
5078
5079
5080 # Create standard.omit based on decisions we just made.
5081 cp $srcdir/standard.omit.in standard.omit
5082 if test "$use_xlib_awt" != yes; then
5083    echo gnu/awt/xlib >> standard.omit
5084    echo gnu/gcj/xlib >> standard.omit
5085 fi
5086 if test "$use_x_awt" != yes; then
5087    echo gnu/java/awt/peer/x >> standard.omit
5088 fi
5089
5090 # Tools that need to be compiled against classpath's tools classes
5091 : > vm-tools-packages
5092 for package in gnu/gcj/tools/gc_analyze ; do
5093     echo $package >> standard.omit
5094     echo $package >> vm-tools-packages
5095 done
5096
5097 if test -z "${with_multisubdir}"; then
5098    builddotdot=.
5099 else
5100    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5101 fi
5102
5103 NATIVE=yes
5104
5105 # Which gcj and host gcj (for ecjx) do we use?
5106 which_gcj=default
5107 host_exeext=${ac_exeext}
5108 GCJ_FOR_ECJX=
5109 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5110 if test -n "${with_cross_host}"; then
5111   # We are being configured with a cross compiler. We can't
5112   # use ac_exeext, because that is for the target platform.
5113   NATIVE=no
5114   cross_host_exeext=
5115   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5116   case "${with_cross_host}" in
5117      *mingw* | *cygwin*)
5118          cross_host_exeext=.exe
5119      ;;
5120   esac
5121   host_exeext=${cross_host_exeext}
5122   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5123      if test x"$build_noncanonical" = x"$with_cross_host"; then
5124         # Ordinary cross (host!=target and host=build)
5125         which_gcj=built
5126      else
5127         # Canadian cross (host!=target and host!=build)
5128         which_gcj=cross
5129      fi
5130   else
5131      which_gcj=cross
5132   fi
5133 else
5134   # We are being configured with a native or crossed-native compiler
5135   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5136      if test x"$build" = x"$host"; then
5137         # True native build (host=target and host=build)
5138         which_gcj=built
5139      else
5140         # Crossed-native build (host=target and host!=build)
5141         which_gcj=cross
5142      fi
5143   else
5144      which_gcj=path
5145   fi
5146 fi
5147 case "${which_gcj}" in
5148    built)
5149       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5150       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5151    ;;
5152    cross)
5153       if test "x${with_newlib}" = "xyes"; then
5154          # FIXME (comment): Why is this needed?
5155          GCC_UNWIND_INCLUDE=
5156          GCJ="${target_noncanonical}-gcj"
5157       else
5158          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5159       fi
5160       GCJH='$(target_noncanonical)-gcjh'
5161    ;;
5162    path)
5163       GCJ="gcj -B`${PWDCMD-pwd}`/"
5164       GCJH=gcjh
5165    ;;
5166 esac
5167
5168
5169
5170
5171
5172 # Create it, so that compile/link tests don't fail
5173 test -f libgcj.spec || touch libgcj.spec
5174
5175
5176
5177 # Set up to configure Classpath.
5178 # FIXME: no supported way to pass args in autoconf.
5179 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5180 # Disable tool wrappers to avoid ltdl.h configure check.
5181 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5182 ac_configure_args="$ac_configure_args --disable-load-library"
5183 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5184 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5185 dir1=`cd $srcdir && pwd`
5186 dir2=`pwd`
5187 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5188 ac_configure_args="$ac_configure_args --disable-core-jni"
5189 ac_configure_args="$ac_configure_args --disable-examples"
5190 ac_configure_args="$ac_configure_args --with-glibj=build"
5191 if test "$plugin_enabled" != yes; then
5192   ac_configure_args="$ac_configure_args --disable-plugin"
5193 fi
5194 if test "$gconf_enabled" != yes; then
5195   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5196   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5197 fi
5198 if test "$use_gtk_awt" != yes; then
5199   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5200 fi
5201 if test "$use_qt_awt" != yes; then
5202   ac_configure_args="$ac_configure_args --disable-qt-peer"
5203 else
5204   # We need this as qt is disabled by default in classpath.
5205   ac_configure_args="$ac_configure_args --enable-qt-peer"
5206 fi
5207 if test "$use_x_awt" != yes; then
5208   ac_configure_args="$ac_configure_args --without-escher"
5209 else
5210   # We need this as escher is disabled by default in classpath.
5211   if test "$use_escher" != true; then
5212     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5213 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5214    { (exit 1); exit 1; }; }
5215   else
5216     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5217   fi
5218 fi
5219 # -Werror causes unavoidable problems in code using alsa.
5220 ac_configure_args="$ac_configure_args --disable-Werror"
5221
5222 # Only use libltdl for non-newlib builds.
5223 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5224      case $enable_ltdl_convenience in
5225   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5226 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228   "") enable_ltdl_convenience=yes
5229       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5230   esac
5231   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5232   INCLTDL='-I${top_srcdir}/''libltdl'
5233
5234
5235    DIRLTDL=libltdl
5236
5237 cat >>confdefs.h <<\_ACEOF
5238 #define USE_LTDL 1
5239 _ACEOF
5240
5241    # Sigh.  Libtool's macro doesn't do the right thing.
5242    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5243    # FIXME: this is a hack.
5244    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5245    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5246 fi
5247
5248
5249
5250 # Check whether --enable-shared or --disable-shared was given.
5251 if test "${enable_shared+set}" = set; then
5252   enableval="$enable_shared"
5253   p=${PACKAGE-default}
5254 case $enableval in
5255 yes) enable_shared=yes ;;
5256 no) enable_shared=no ;;
5257 *)
5258   enable_shared=no
5259   # Look at the argument we got.  We use all the common list separators.
5260   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5261   for pkg in $enableval; do
5262     if test "X$pkg" = "X$p"; then
5263       enable_shared=yes
5264     fi
5265   done
5266   IFS="$ac_save_ifs"
5267   ;;
5268 esac
5269 else
5270   enable_shared=yes
5271 fi;
5272 # Check whether --enable-static or --disable-static was given.
5273 if test "${enable_static+set}" = set; then
5274   enableval="$enable_static"
5275   p=${PACKAGE-default}
5276 case $enableval in
5277 yes) enable_static=yes ;;
5278 no) enable_static=no ;;
5279 *)
5280   enable_static=no
5281   # Look at the argument we got.  We use all the common list separators.
5282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5283   for pkg in $enableval; do
5284     if test "X$pkg" = "X$p"; then
5285       enable_static=yes
5286     fi
5287   done
5288   IFS="$ac_save_ifs"
5289   ;;
5290 esac
5291 else
5292   enable_static=yes
5293 fi;
5294 # Check whether --enable-fast-install or --disable-fast-install was given.
5295 if test "${enable_fast_install+set}" = set; then
5296   enableval="$enable_fast_install"
5297   p=${PACKAGE-default}
5298 case $enableval in
5299 yes) enable_fast_install=yes ;;
5300 no) enable_fast_install=no ;;
5301 *)
5302   enable_fast_install=no
5303   # Look at the argument we got.  We use all the common list separators.
5304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5305   for pkg in $enableval; do
5306     if test "X$pkg" = "X$p"; then
5307       enable_fast_install=yes
5308     fi
5309   done
5310   IFS="$ac_save_ifs"
5311   ;;
5312 esac
5313 else
5314   enable_fast_install=yes
5315 fi;
5316
5317 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then
5319   withval="$with_gnu_ld"
5320   test "$withval" = no || with_gnu_ld=yes
5321 else
5322   with_gnu_ld=no
5323 fi;
5324 ac_prog=ld
5325 if test "$GCC" = yes; then
5326   # Check if gcc -print-prog-name=ld gives a path.
5327   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5328 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5329   case $host in
5330   *-*-mingw*)
5331     # gcc leaves a trailing carriage return which upsets mingw
5332     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5333   *)
5334     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335   esac
5336   case $ac_prog in
5337     # Accept absolute paths.
5338     [\\/]* | [A-Za-z]:[\\/]*)
5339       re_direlt='/[^/][^/]*/\.\./'
5340       # Canonicalize the path of ld
5341       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5342       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5343         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5344       done
5345       test -z "$LD" && LD="$ac_prog"
5346       ;;
5347   "")
5348     # If it fails, then pretend we aren't using GCC.
5349     ac_prog=ld
5350     ;;
5351   *)
5352     # If it is relative, then search for the first ld in PATH.
5353     with_gnu_ld=unknown
5354     ;;
5355   esac
5356 elif test "$with_gnu_ld" = yes; then
5357   echo "$as_me:$LINENO: checking for GNU ld" >&5
5358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5359 else
5360   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5362 fi
5363 if test "${lt_cv_path_LD+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   if test -z "$LD"; then
5367   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5368   for ac_dir in $PATH; do
5369     test -z "$ac_dir" && ac_dir=.
5370     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5371       lt_cv_path_LD="$ac_dir/$ac_prog"
5372       # Check to see if the program is GNU ld.  I'd rather use --version,
5373       # but apparently some GNU ld's only accept -v.
5374       # Break only if it was the GNU/non-GNU ld that we prefer.
5375       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5376         test "$with_gnu_ld" != no && break
5377       else
5378         test "$with_gnu_ld" != yes && break
5379       fi
5380     fi
5381   done
5382   IFS="$ac_save_ifs"
5383 else
5384   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5385 fi
5386 fi
5387
5388 LD="$lt_cv_path_LD"
5389 if test -n "$LD"; then
5390   echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5392 else
5393   echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5395 fi
5396 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5397 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5398    { (exit 1); exit 1; }; }
5399 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5400 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5401 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5405 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5406   lt_cv_prog_gnu_ld=yes
5407 else
5408   lt_cv_prog_gnu_ld=no
5409 fi
5410 fi
5411 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5412 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5413 with_gnu_ld=$lt_cv_prog_gnu_ld
5414
5415
5416 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5417 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5418 if test "${lt_cv_ld_reload_flag+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   lt_cv_ld_reload_flag='-r'
5422 fi
5423 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5424 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5425 reload_flag=$lt_cv_ld_reload_flag
5426 test -n "$reload_flag" && reload_flag=" $reload_flag"
5427
5428 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5429 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5430 if test "${lt_cv_path_NM+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   if test -n "$NM"; then
5434   # Let the user override the test.
5435   lt_cv_path_NM="$NM"
5436 else
5437   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5438   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5439     test -z "$ac_dir" && ac_dir=.
5440     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5441     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5442       # Check to see if the nm accepts a BSD-compat flag.
5443       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5444       #   nm: unknown option "B" ignored
5445       # Tru64's nm complains that /dev/null is an invalid object file
5446       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5447         lt_cv_path_NM="$tmp_nm -B"
5448         break
5449       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5450         lt_cv_path_NM="$tmp_nm -p"
5451         break
5452       else
5453         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5454         continue # so that we can try to find one that supports BSD flags
5455       fi
5456     fi
5457   done
5458   IFS="$ac_save_ifs"
5459   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5460 fi
5461 fi
5462
5463 NM="$lt_cv_path_NM"
5464 echo "$as_me:$LINENO: result: $NM" >&5
5465 echo "${ECHO_T}$NM" >&6
5466
5467 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5468 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5469 if test "${lt_cv_deplibs_check_method+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   lt_cv_file_magic_cmd='$MAGIC_CMD'
5473 lt_cv_file_magic_test_file=
5474 lt_cv_deplibs_check_method='unknown'
5475 # Need to set the preceding variable on all platforms that support
5476 # interlibrary dependencies.
5477 # 'none' -- dependencies not supported.
5478 # `unknown' -- same as none, but documents that we really don't know.
5479 # 'pass_all' -- all dependencies passed with no checks.
5480 # 'test_compile' -- check by making test program.
5481 # 'file_magic [regex]' -- check by looking for files in library path
5482 # which responds to the $file_magic_cmd with a given egrep regex.
5483 # If you have `file' or equivalent on your system and you're not sure
5484 # whether `pass_all' will *always* work, you probably want this one.
5485
5486 case $host_os in
5487 aix*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 beos*)
5492   lt_cv_deplibs_check_method=pass_all
5493   ;;
5494
5495 bsdi4*)
5496   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5497   lt_cv_file_magic_cmd='/usr/bin/file -L'
5498   lt_cv_file_magic_test_file=/shlib/libc.so
5499   ;;
5500
5501 cygwin* | mingw* |pw32*)
5502   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5503   lt_cv_file_magic_cmd='$OBJDUMP -f'
5504   ;;
5505
5506 darwin* | rhapsody*)
5507   # this will be overwritten by pass_all, but leave it in just in case
5508   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5509   lt_cv_file_magic_cmd='/usr/bin/file -L'
5510   case "$host_os" in
5511   rhapsody* | darwin1.012)
5512     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5513     ;;
5514   *) # Darwin 1.3 on
5515     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5516     ;;
5517   esac
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 freebsd* | kfreebsd*-gnu)
5522   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5523     case $host_cpu in
5524     i*86 )
5525       # Not sure whether the presence of OpenBSD here was a mistake.
5526       # Let's accept both of them until this is cleared up.
5527       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5528       lt_cv_file_magic_cmd=/usr/bin/file
5529       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530       ;;
5531     esac
5532   else
5533     lt_cv_deplibs_check_method=pass_all
5534   fi
5535   ;;
5536
5537 gnu*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 hpux10.20*|hpux11*)
5542   case $host_cpu in
5543   hppa*)
5544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5545     lt_cv_file_magic_cmd=/usr/bin/file
5546     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5547     ;;
5548   ia64*)
5549     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5550     lt_cv_file_magic_cmd=/usr/bin/file
5551     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5552     ;;
5553   esac
5554   ;;
5555
5556 irix5* | irix6*)
5557   case $host_os in
5558   irix5*)
5559     # this will be overridden with pass_all, but let us keep it just in case
5560     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5561     ;;
5562   *)
5563     case $LD in
5564     *-32|*"-32 ") libmagic=32-bit;;
5565     *-n32|*"-n32 ") libmagic=N32;;
5566     *-64|*"-64 ") libmagic=64-bit;;
5567     *) libmagic=never-match;;
5568     esac
5569     # this will be overridden with pass_all, but let us keep it just in case
5570     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5571     ;;
5572   esac
5573   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5574   lt_cv_deplibs_check_method=pass_all
5575   ;;
5576
5577 # This must be Linux ELF.
5578 linux-gnu*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 netbsd* | knetbsd*-gnu)
5583   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5584     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5585   else
5586     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5587   fi
5588   ;;
5589
5590 newsos6)
5591   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5592   lt_cv_file_magic_cmd=/usr/bin/file
5593   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5594   ;;
5595
5596 osf3* | osf4* | osf5*)
5597   # this will be overridden with pass_all, but let us keep it just in case
5598   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5599   lt_cv_file_magic_test_file=/shlib/libc.so
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 sco3.2v5*)
5604   lt_cv_deplibs_check_method=pass_all
5605   ;;
5606
5607 solaris*)
5608   lt_cv_deplibs_check_method=pass_all
5609   lt_cv_file_magic_test_file=/lib/libc.so
5610   ;;
5611
5612 sysv5uw[78]* | sysv4*uw2*)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615
5616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5617   case $host_vendor in
5618   ncr)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   motorola)
5622     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]'
5623     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5624     ;;
5625   esac
5626   ;;
5627 esac
5628
5629 fi
5630 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5631 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5632 file_magic_cmd=$lt_cv_file_magic_cmd
5633 deplibs_check_method=$lt_cv_deplibs_check_method
5634
5635
5636
5637
5638 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5639
5640 # find the maximum length of command line arguments
5641 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5642 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5643 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646     i=0
5647   teststring="ABCD"
5648
5649   case $build_os in
5650   msdosdjgpp*)
5651     # On DJGPP, this test can blow up pretty badly due to problems in libc
5652     # (any single argument exceeding 2000 bytes causes a buffer overrun
5653     # during glob expansion).  Even if it were fixed, the result of this
5654     # check would be larger than it should be.
5655     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5656     ;;
5657
5658   cygwin* | mingw*)
5659     # On Win9x/ME, this test blows up -- it succeeds, but takes
5660     # about 5 minutes as the teststring grows exponentially.
5661     # Worse, since 9x/ME are not pre-emptively multitasking,
5662     # you end up with a "frozen" computer, even though with patience
5663     # the test eventually succeeds (with a max line length of 256k).
5664     # Instead, let's just punt: use the minimum linelength reported by
5665     # all of the supported platforms: 8192 (on NT/2K/XP).
5666     lt_cv_sys_max_cmd_len=8192;
5667     ;;
5668
5669   amigaos*)
5670     # On AmigaOS with pdksh, this test takes hours, literally.
5671     # So we just punt and use a minimum line length of 8192.
5672     lt_cv_sys_max_cmd_len=8192;
5673     ;;
5674
5675   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5676     # This has been around since 386BSD, at least.  Likely further.
5677     if test -x /sbin/sysctl; then
5678       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5679     elif test -x /usr/sbin/sysctl; then
5680       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5681     else
5682       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5683     fi
5684     # And add a safety zone
5685     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5686     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5687     ;;
5688   esac
5689
5690 fi
5691
5692 if test -n "$lt_cv_sys_max_cmd_len" ; then
5693   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5694 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5695 else
5696   echo "$as_me:$LINENO: result: none" >&5
5697 echo "${ECHO_T}none" >&6
5698 fi
5699
5700
5701 # Only perform the check for file, if the check method requires it
5702 case $deplibs_check_method in
5703 file_magic*)
5704   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5705     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5706 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5707 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   case $MAGIC_CMD in
5711   /*)
5712   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5713   ;;
5714   ?:/*)
5715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5716   ;;
5717   *)
5718   ac_save_MAGIC_CMD="$MAGIC_CMD"
5719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5720   ac_dummy="/usr/bin:$PATH"
5721   for ac_dir in $ac_dummy; do
5722     test -z "$ac_dir" && ac_dir=.
5723     if test -f $ac_dir/${ac_tool_prefix}file; then
5724       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5725       if test -n "$file_magic_test_file"; then
5726         case $deplibs_check_method in
5727         "file_magic "*)
5728           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5729           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5730           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5731             egrep "$file_magic_regex" > /dev/null; then
5732             :
5733           else
5734             cat <<EOF 1>&2
5735
5736 *** Warning: the command libtool uses to detect shared libraries,
5737 *** $file_magic_cmd, produces output that libtool cannot recognize.
5738 *** The result is that libtool may fail to recognize shared libraries
5739 *** as such.  This will affect the creation of libtool libraries that
5740 *** depend on shared libraries, but programs linked with such libtool
5741 *** libraries will work regardless of this problem.  Nevertheless, you
5742 *** may want to report the problem to your system manager and/or to
5743 *** bug-libtool@gnu.org
5744
5745 EOF
5746           fi ;;
5747         esac
5748       fi
5749       break
5750     fi
5751   done
5752   IFS="$ac_save_ifs"
5753   MAGIC_CMD="$ac_save_MAGIC_CMD"
5754   ;;
5755 esac
5756 fi
5757
5758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5759 if test -n "$MAGIC_CMD"; then
5760   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5761 echo "${ECHO_T}$MAGIC_CMD" >&6
5762 else
5763   echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6
5765 fi
5766
5767 if test -z "$lt_cv_path_MAGIC_CMD"; then
5768   if test -n "$ac_tool_prefix"; then
5769     echo "$as_me:$LINENO: checking for file" >&5
5770 echo $ECHO_N "checking for file... $ECHO_C" >&6
5771 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   case $MAGIC_CMD in
5775   /*)
5776   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5777   ;;
5778   ?:/*)
5779   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5780   ;;
5781   *)
5782   ac_save_MAGIC_CMD="$MAGIC_CMD"
5783   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5784   ac_dummy="/usr/bin:$PATH"
5785   for ac_dir in $ac_dummy; do
5786     test -z "$ac_dir" && ac_dir=.
5787     if test -f $ac_dir/file; then
5788       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5789       if test -n "$file_magic_test_file"; then
5790         case $deplibs_check_method in
5791         "file_magic "*)
5792           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5793           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5794           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5795             egrep "$file_magic_regex" > /dev/null; then
5796             :
5797           else
5798             cat <<EOF 1>&2
5799
5800 *** Warning: the command libtool uses to detect shared libraries,
5801 *** $file_magic_cmd, produces output that libtool cannot recognize.
5802 *** The result is that libtool may fail to recognize shared libraries
5803 *** as such.  This will affect the creation of libtool libraries that
5804 *** depend on shared libraries, but programs linked with such libtool
5805 *** libraries will work regardless of this problem.  Nevertheless, you
5806 *** may want to report the problem to your system manager and/or to
5807 *** bug-libtool@gnu.org
5808
5809 EOF
5810           fi ;;
5811         esac
5812       fi
5813       break
5814     fi
5815   done
5816   IFS="$ac_save_ifs"
5817   MAGIC_CMD="$ac_save_MAGIC_CMD"
5818   ;;
5819 esac
5820 fi
5821
5822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5823 if test -n "$MAGIC_CMD"; then
5824   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5825 echo "${ECHO_T}$MAGIC_CMD" >&6
5826 else
5827   echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5829 fi
5830
5831   else
5832     MAGIC_CMD=:
5833   fi
5834 fi
5835
5836   fi
5837   ;;
5838 esac
5839
5840 if test -n "$ac_tool_prefix"; then
5841   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5843 echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845 if test "${ac_cv_prog_RANLIB+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   if test -n "$RANLIB"; then
5849   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864
5865 fi
5866 fi
5867 RANLIB=$ac_cv_prog_RANLIB
5868 if test -n "$RANLIB"; then
5869   echo "$as_me:$LINENO: result: $RANLIB" >&5
5870 echo "${ECHO_T}$RANLIB" >&6
5871 else
5872   echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6
5874 fi
5875
5876 fi
5877 if test -z "$ac_cv_prog_RANLIB"; then
5878   ac_ct_RANLIB=$RANLIB
5879   # Extract the first word of "ranlib", so it can be a program name with args.
5880 set dummy ranlib; ac_word=$2
5881 echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   if test -n "$ac_ct_RANLIB"; then
5887   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894   for ac_exec_ext in '' $ac_executable_extensions; do
5895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896     ac_cv_prog_ac_ct_RANLIB="ranlib"
5897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901 done
5902
5903   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5904 fi
5905 fi
5906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5907 if test -n "$ac_ct_RANLIB"; then
5908   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5909 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5910 else
5911   echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6
5913 fi
5914
5915   RANLIB=$ac_ct_RANLIB
5916 else
5917   RANLIB="$ac_cv_prog_RANLIB"
5918 fi
5919
5920 if test -n "$ac_tool_prefix"; then
5921   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}strip; ac_word=$2
5923 echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5925 if test "${ac_cv_prog_STRIP+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$STRIP"; then
5929   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944
5945 fi
5946 fi
5947 STRIP=$ac_cv_prog_STRIP
5948 if test -n "$STRIP"; then
5949   echo "$as_me:$LINENO: result: $STRIP" >&5
5950 echo "${ECHO_T}$STRIP" >&6
5951 else
5952   echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5954 fi
5955
5956 fi
5957 if test -z "$ac_cv_prog_STRIP"; then
5958   ac_ct_STRIP=$STRIP
5959   # Extract the first word of "strip", so it can be a program name with args.
5960 set dummy strip; ac_word=$2
5961 echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   if test -n "$ac_ct_STRIP"; then
5967   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972   IFS=$as_save_IFS
5973   test -z "$as_dir" && as_dir=.
5974   for ac_exec_ext in '' $ac_executable_extensions; do
5975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976     ac_cv_prog_ac_ct_STRIP="strip"
5977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978     break 2
5979   fi
5980 done
5981 done
5982
5983   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5984 fi
5985 fi
5986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5987 if test -n "$ac_ct_STRIP"; then
5988   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5989 echo "${ECHO_T}$ac_ct_STRIP" >&6
5990 else
5991   echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6
5993 fi
5994
5995   STRIP=$ac_ct_STRIP
5996 else
5997   STRIP="$ac_cv_prog_STRIP"
5998 fi
5999
6000
6001 # Check for any special flags to pass to ltconfig.
6002 libtool_flags="--cache-file=$cache_file"
6003 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
6004 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
6005 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6006 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
6007 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6008
6009
6010 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6011 if test "${enable_libtool_lock+set}" = set; then
6012   enableval="$enable_libtool_lock"
6013
6014 fi;
6015 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6016 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6017
6018
6019 # Check whether --with-pic or --without-pic was given.
6020 if test "${with_pic+set}" = set; then
6021   withval="$with_pic"
6022   pic_mode="$withval"
6023 else
6024   pic_mode=default
6025 fi;
6026 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6027 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6028
6029 # Some flags need to be propagated to the compiler or linker for good
6030 # libtool support.
6031 case $host in
6032 *-*-irix6*)
6033   # Find out which ABI we are using.
6034   echo '#line 6034 "configure"' > conftest.$ac_ext
6035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036   (eval $ac_compile) 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; then
6040    if test "$lt_cv_prog_gnu_ld" = yes; then
6041     case `/usr/bin/file conftest.$ac_objext` in
6042     *32-bit*)
6043       LD="${LD-ld} -melf32bsmip"
6044       ;;
6045     *N32*)
6046       LD="${LD-ld} -melf32bmipn32"
6047       ;;
6048     *64-bit*)
6049       LD="${LD-ld} -melf64bmip"
6050       ;;
6051     esac
6052    else
6053     case `/usr/bin/file conftest.$ac_objext` in
6054     *32-bit*)
6055       LD="${LD-ld} -32"
6056       ;;
6057     *N32*)
6058       LD="${LD-ld} -n32"
6059       ;;
6060     *64-bit*)
6061       LD="${LD-ld} -64"
6062       ;;
6063     esac
6064    fi
6065   fi
6066   rm -rf conftest*
6067   ;;
6068
6069 ia64-*-hpux*)
6070   # Find out which ABI we are using.
6071   echo 'int i;' > conftest.$ac_ext
6072   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073   (eval $ac_compile) 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; then
6077     case "`/usr/bin/file conftest.o`" in
6078     *ELF-32*)
6079       HPUX_IA64_MODE="32"
6080       ;;
6081     *ELF-64*)
6082       HPUX_IA64_MODE="64"
6083       ;;
6084     esac
6085   fi
6086   rm -rf conftest*
6087   ;;
6088
6089 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6090   # Find out which ABI we are using.
6091   echo 'int i;' > conftest.$ac_ext
6092   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093   (eval $ac_compile) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; then
6097     case "`/usr/bin/file conftest.o`" in
6098     *32-bit*)
6099       case $host in
6100         x86_64-*linux*)
6101           LD="${LD-ld} -m elf_i386"
6102           ;;
6103         ppc64-*linux*|powerpc64-*linux*)
6104           LD="${LD-ld} -m elf32ppclinux"
6105           ;;
6106         s390x-*linux*)
6107           LD="${LD-ld} -m elf_s390"
6108           ;;
6109         sparc64-*linux*)
6110           LD="${LD-ld} -m elf32_sparc"
6111           ;;
6112       esac
6113       ;;
6114     *64-bit*)
6115       case $host in
6116         x86_64-*linux*)
6117           LD="${LD-ld} -m elf_x86_64"
6118           ;;
6119         ppc*-*linux*|powerpc*-*linux*)
6120           LD="${LD-ld} -m elf64ppc"
6121           ;;
6122         s390*-*linux*)
6123           LD="${LD-ld} -m elf64_s390"
6124           ;;
6125         sparc*-*linux*)
6126           LD="${LD-ld} -m elf64_sparc"
6127           ;;
6128       esac
6129       ;;
6130     esac
6131   fi
6132   rm -rf conftest*
6133   ;;
6134
6135 *-*-sco3.2v5*)
6136   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6137   SAVE_CFLAGS="$CFLAGS"
6138   CFLAGS="$CFLAGS -belf"
6139   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6140 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6141 if test "${lt_cv_cc_needs_belf+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144
6145
6146      ac_ext=c
6147 ac_cpp='$CPP $CPPFLAGS'
6148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151
6152      if test x$gcc_no_link = xyes; then
6153   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6155    { (exit 1); exit 1; }; }
6156 fi
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163
6164 int
6165 main ()
6166 {
6167
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174   (eval $ac_link) 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -z "$ac_c_werror_flag"
6182                          || test ! -s conftest.err'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; } &&
6188          { ac_try='test -s conftest$ac_exeext'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; }; then
6194   lt_cv_cc_needs_belf=yes
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 lt_cv_cc_needs_belf=no
6200 fi
6201 rm -f conftest.err conftest.$ac_objext \
6202       conftest$ac_exeext conftest.$ac_ext
6203      ac_ext=c
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
6209 fi
6210 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6211 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6212   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6213     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6214     CFLAGS="$SAVE_CFLAGS"
6215   fi
6216   ;;
6217
6218
6219 esac
6220
6221
6222 # Save cache, so that ltconfig can load it
6223 cat >confcache <<\_ACEOF
6224 # This file is a shell script that caches the results of configure
6225 # tests run on this system so they can be shared between configure
6226 # scripts and configure runs, see configure's option --config-cache.
6227 # It is not useful on other systems.  If it contains results you don't
6228 # want to keep, you may remove or edit it.
6229 #
6230 # config.status only pays attention to the cache file if you give it
6231 # the --recheck option to rerun configure.
6232 #
6233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6235 # following values.
6236
6237 _ACEOF
6238
6239 # The following way of writing the cache mishandles newlines in values,
6240 # but we know of no workaround that is simple, portable, and efficient.
6241 # So, don't put newlines in cache variables' values.
6242 # Ultrix sh set writes to stderr and can't be redirected directly,
6243 # and sets the high bit in the cache file unless we assign to the vars.
6244 {
6245   (set) 2>&1 |
6246     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6247     *ac_space=\ *)
6248       # `set' does not quote correctly, so add quotes (double-quote
6249       # substitution turns \\\\ into \\, and sed turns \\ into \).
6250       sed -n \
6251         "s/'/'\\\\''/g;
6252           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6253       ;;
6254     *)
6255       # `set' quotes correctly as required by POSIX, so do not add quotes.
6256       sed -n \
6257         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6258       ;;
6259     esac;
6260 } |
6261   sed '
6262      t clear
6263      : clear
6264      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6265      t end
6266      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6267      : end' >>confcache
6268 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6269   if test -w $cache_file; then
6270     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6271     cat confcache >$cache_file
6272   else
6273     echo "not updating unwritable cache $cache_file"
6274   fi
6275 fi
6276 rm -f confcache
6277
6278 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6279 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6280 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6281 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6282 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6283 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6284 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6285 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6286 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6287 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6288 echo "$as_me: error: libtool configure failed" >&2;}
6289    { (exit 1); exit 1; }; }
6290
6291 # Reload cache, that may have been modified by ltconfig
6292 if test -r "$cache_file"; then
6293   # Some versions of bash will fail to source /dev/null (special
6294   # files actually), so we avoid doing that.
6295   if test -f "$cache_file"; then
6296     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6297 echo "$as_me: loading cache $cache_file" >&6;}
6298     case $cache_file in
6299       [\\/]* | ?:[\\/]* ) . $cache_file;;
6300       *)                      . ./$cache_file;;
6301     esac
6302   fi
6303 else
6304   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6305 echo "$as_me: creating cache $cache_file" >&6;}
6306   >$cache_file
6307 fi
6308
6309
6310 # This can be used to rebuild libtool when needed
6311 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6312
6313 # Always use our own libtool.
6314 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6315
6316 # Redirect the config.log output again, so that the ltconfig log is not
6317 # clobbered by the next message.
6318 exec 5>>./config.log
6319
6320 ac_ext=cc
6321 ac_cpp='$CXXCPP $CPPFLAGS'
6322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6325 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6326 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6327 if test -z "$CXXCPP"; then
6328   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331       # Double quotes because CXXCPP needs to be expanded
6332     for CXXCPP in "$CXX -E" "/lib/cpp"
6333     do
6334       ac_preproc_ok=false
6335 for ac_cxx_preproc_warn_flag in '' yes
6336 do
6337   # Use a header file that comes with gcc, so configuring glibc
6338   # with a fresh cross-compiler works.
6339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340   # <limits.h> exists even on freestanding compilers.
6341   # On the NeXT, cc -E runs the code through the compiler's parser,
6342   # not just through cpp. "Syntax error" is here to catch this case.
6343   cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h.  */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h.  */
6349 #ifdef __STDC__
6350 # include <limits.h>
6351 #else
6352 # include <assert.h>
6353 #endif
6354                      Syntax error
6355 _ACEOF
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } >/dev/null; then
6364   if test -s conftest.err; then
6365     ac_cpp_err=$ac_cxx_preproc_warn_flag
6366     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6367   else
6368     ac_cpp_err=
6369   fi
6370 else
6371   ac_cpp_err=yes
6372 fi
6373 if test -z "$ac_cpp_err"; then
6374   :
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379   # Broken: fails on valid input.
6380 continue
6381 fi
6382 rm -f conftest.err conftest.$ac_ext
6383
6384   # OK, works on sane cases.  Now check whether non-existent headers
6385   # can be detected and how.
6386   cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 #include <ac_nonexistent.h>
6393 _ACEOF
6394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6396   ac_status=$?
6397   grep -v '^ *+' conftest.er1 >conftest.err
6398   rm -f conftest.er1
6399   cat conftest.err >&5
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } >/dev/null; then
6402   if test -s conftest.err; then
6403     ac_cpp_err=$ac_cxx_preproc_warn_flag
6404     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6405   else
6406     ac_cpp_err=
6407   fi
6408 else
6409   ac_cpp_err=yes
6410 fi
6411 if test -z "$ac_cpp_err"; then
6412   # Broken: success on invalid input.
6413 continue
6414 else
6415   echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418   # Passes both tests.
6419 ac_preproc_ok=:
6420 break
6421 fi
6422 rm -f conftest.err conftest.$ac_ext
6423
6424 done
6425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6426 rm -f conftest.err conftest.$ac_ext
6427 if $ac_preproc_ok; then
6428   break
6429 fi
6430
6431     done
6432     ac_cv_prog_CXXCPP=$CXXCPP
6433
6434 fi
6435   CXXCPP=$ac_cv_prog_CXXCPP
6436 else
6437   ac_cv_prog_CXXCPP=$CXXCPP
6438 fi
6439 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6440 echo "${ECHO_T}$CXXCPP" >&6
6441 ac_preproc_ok=false
6442 for ac_cxx_preproc_warn_flag in '' yes
6443 do
6444   # Use a header file that comes with gcc, so configuring glibc
6445   # with a fresh cross-compiler works.
6446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6447   # <limits.h> exists even on freestanding compilers.
6448   # On the NeXT, cc -E runs the code through the compiler's parser,
6449   # not just through cpp. "Syntax error" is here to catch this case.
6450   cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456 #ifdef __STDC__
6457 # include <limits.h>
6458 #else
6459 # include <assert.h>
6460 #endif
6461                      Syntax error
6462 _ACEOF
6463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465   ac_status=$?
6466   grep -v '^ *+' conftest.er1 >conftest.err
6467   rm -f conftest.er1
6468   cat conftest.err >&5
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); } >/dev/null; then
6471   if test -s conftest.err; then
6472     ac_cpp_err=$ac_cxx_preproc_warn_flag
6473     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6474   else
6475     ac_cpp_err=
6476   fi
6477 else
6478   ac_cpp_err=yes
6479 fi
6480 if test -z "$ac_cpp_err"; then
6481   :
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486   # Broken: fails on valid input.
6487 continue
6488 fi
6489 rm -f conftest.err conftest.$ac_ext
6490
6491   # OK, works on sane cases.  Now check whether non-existent headers
6492   # can be detected and how.
6493   cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <ac_nonexistent.h>
6500 _ACEOF
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503   ac_status=$?
6504   grep -v '^ *+' conftest.er1 >conftest.err
6505   rm -f conftest.er1
6506   cat conftest.err >&5
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } >/dev/null; then
6509   if test -s conftest.err; then
6510     ac_cpp_err=$ac_cxx_preproc_warn_flag
6511     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6512   else
6513     ac_cpp_err=
6514   fi
6515 else
6516   ac_cpp_err=yes
6517 fi
6518 if test -z "$ac_cpp_err"; then
6519   # Broken: success on invalid input.
6520 continue
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525   # Passes both tests.
6526 ac_preproc_ok=:
6527 break
6528 fi
6529 rm -f conftest.err conftest.$ac_ext
6530
6531 done
6532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6533 rm -f conftest.err conftest.$ac_ext
6534 if $ac_preproc_ok; then
6535   :
6536 else
6537   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6538 See \`config.log' for more details." >&5
6539 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6540 See \`config.log' for more details." >&2;}
6541    { (exit 1); exit 1; }; }
6542 fi
6543
6544 ac_ext=c
6545 ac_cpp='$CPP $CPPFLAGS'
6546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549
6550
6551
6552 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6553 lt_save_CC="$CC"
6554 lt_save_CFLAGS="$CFLAGS"
6555 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6556 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6557 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6558 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6559 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6560 deplibs_check_method="$deplibs_check_method" \
6561 file_magic_cmd="$file_magic_cmd" \
6562 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6563 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6564 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6565 echo "$as_me: error: libtool tag configuration failed" >&2;}
6566    { (exit 1); exit 1; }; }
6567 CC="$lt_save_CC"
6568 CFLAGS="$lt_save_CFLAGS"
6569
6570 # Redirect the config.log output again, so that the ltconfig log is not
6571 # clobbered by the next message.
6572 exec 5>>./config.log
6573
6574
6575
6576
6577
6578
6579
6580 for ac_prog in gcj
6581 do
6582   # Extract the first word of "$ac_prog", so it can be a program name with args.
6583 set dummy $ac_prog; ac_word=$2
6584 echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586 if test "${ac_cv_prog_GCJ+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   if test -n "$GCJ"; then
6590   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597   for ac_exec_ext in '' $ac_executable_extensions; do
6598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599     ac_cv_prog_GCJ="$ac_prog"
6600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601     break 2
6602   fi
6603 done
6604 done
6605
6606 fi
6607 fi
6608 GCJ=$ac_cv_prog_GCJ
6609 if test -n "$GCJ"; then
6610   echo "$as_me:$LINENO: result: $GCJ" >&5
6611 echo "${ECHO_T}$GCJ" >&6
6612 else
6613   echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6615 fi
6616
6617   test -n "$GCJ" && break
6618 done
6619 test -n "$GCJ" || GCJ="gcj"
6620
6621 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6622 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6623    { (exit 1); exit 1; }; }
6624 if test "x${GCJFLAGS-unset}" = xunset; then
6625    GCJFLAGS="-g -O2"
6626 fi
6627
6628
6629 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6630
6631 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6632 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6633 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6637   # We make a subdir and do the tests there.  Otherwise we can end up
6638   # making bogus files that we don't know about and never remove.  For
6639   # instance it was reported that on HP-UX the gcc test will end up
6640   # making a dummy file named `D' -- because `-MD' means `put the output
6641   # in D'.
6642   mkdir conftest.dir
6643   # Copy depcomp to subdir because otherwise we won't find it if we're
6644   # using a relative directory.
6645   cp "$am_depcomp" conftest.dir
6646   cd conftest.dir
6647   # We will build objects and dependencies in a subdirectory because
6648   # it helps to detect inapplicable dependency modes.  For instance
6649   # both Tru64's cc and ICC support -MD to output dependencies as a
6650   # side effect of compilation, but ICC will put the dependencies in
6651   # the current directory while Tru64 will put them in the object
6652   # directory.
6653   mkdir sub
6654
6655   am_cv_GCJ_dependencies_compiler_type=none
6656   if test "$am_compiler_list" = ""; then
6657      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6658   fi
6659   for depmode in $am_compiler_list; do
6660     # Setup a source with many dependencies, because some compilers
6661     # like to wrap large dependency lists on column 80 (with \), and
6662     # we should not choose a depcomp mode which is confused by this.
6663     #
6664     # We need to recreate these files for each test, as the compiler may
6665     # overwrite some of them when testing with obscure command lines.
6666     # This happens at least with the AIX C compiler.
6667     : > sub/conftest.c
6668     for i in 1 2 3 4 5 6; do
6669       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6670       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6671       # Solaris 8's {/usr,}/bin/sh.
6672       touch sub/conftst$i.h
6673     done
6674     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6675
6676     case $depmode in
6677     nosideeffect)
6678       # after this tag, mechanisms are not by side-effect, so they'll
6679       # only be used when explicitly requested
6680       if test "x$enable_dependency_tracking" = xyes; then
6681         continue
6682       else
6683         break
6684       fi
6685       ;;
6686     none) break ;;
6687     esac
6688     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6689     # mode.  It turns out that the SunPro C++ compiler does not properly
6690     # handle `-M -o', and we need to detect this.
6691     if depmode=$depmode \
6692        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6693        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6694        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6695          >/dev/null 2>conftest.err &&
6696        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6697        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6698        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6699       # icc doesn't choke on unknown options, it will just issue warnings
6700       # or remarks (even with -Werror).  So we grep stderr for any message
6701       # that says an option was ignored or not supported.
6702       # When given -MP, icc 7.0 and 7.1 complain thusly:
6703       #   icc: Command line warning: ignoring option '-M'; no argument required
6704       # The diagnosis changed in icc 8.0:
6705       #   icc: Command line remark: option '-MP' not supported
6706       if (grep 'ignoring option' conftest.err ||
6707           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6708         am_cv_GCJ_dependencies_compiler_type=$depmode
6709         break
6710       fi
6711     fi
6712   done
6713
6714   cd ..
6715   rm -rf conftest.dir
6716 else
6717   am_cv_GCJ_dependencies_compiler_type=none
6718 fi
6719
6720 fi
6721 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6722 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6723 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6724
6725
6726
6727 if
6728   test "x$enable_dependency_tracking" != xno \
6729   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6730   am__fastdepGCJ_TRUE=
6731   am__fastdepGCJ_FALSE='#'
6732 else
6733   am__fastdepGCJ_TRUE='#'
6734   am__fastdepGCJ_FALSE=
6735 fi
6736
6737
6738
6739
6740 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6741 lt_save_CC="$CC"
6742 lt_save_CFLAGS="$CFLAGS"
6743 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6744 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6745 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6746 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6747 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6748 deplibs_check_method="$deplibs_check_method" \
6749 file_magic_cmd="$file_magic_cmd" \
6750 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6751 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6752 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6753 echo "$as_me: error: libtool tag configuration failed" >&2;}
6754    { (exit 1); exit 1; }; }
6755 CC="$lt_save_CC"
6756 CFLAGS="$lt_save_CFLAGS"
6757
6758 # Redirect the config.log output again, so that the ltconfig log is not
6759 # clobbered by the next message.
6760 exec 5>>./config.log
6761
6762
6763
6764 if test "x$CC" != xcc; then
6765   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6766 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6767 else
6768   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6769 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6770 fi
6771 set dummy $CC; ac_cc=`echo $2 |
6772                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6773 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h.  */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h.  */
6782
6783 int
6784 main ()
6785 {
6786
6787   ;
6788   return 0;
6789 }
6790 _ACEOF
6791 # Make sure it works both with $CC and with simple cc.
6792 # We do the test twice because some compilers refuse to overwrite an
6793 # existing .o file with -o, though they will create one.
6794 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6795 if { (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); } &&
6800    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); };
6805 then
6806   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6807   if test "x$CC" != xcc; then
6808     # Test first that cc exists at all.
6809     if { ac_try='cc -c conftest.$ac_ext >&5'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6816       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } &&
6821          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822   (eval $ac_try) 2>&5
6823   ac_status=$?
6824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825   (exit $ac_status); };
6826       then
6827         # cc works too.
6828         :
6829       else
6830         # cc exists but doesn't like -o.
6831         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6832       fi
6833     fi
6834   fi
6835 else
6836   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6837 fi
6838 rm -f conftest*
6839
6840 fi
6841 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6842   echo "$as_me:$LINENO: result: yes" >&5
6843 echo "${ECHO_T}yes" >&6
6844 else
6845   echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6
6847
6848 cat >>confdefs.h <<\_ACEOF
6849 #define NO_MINUS_C_MINUS_O 1
6850 _ACEOF
6851
6852 fi
6853
6854 # FIXME: we rely on the cache variable name because
6855 # there is no other way.
6856 set dummy $CC
6857 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6859    # Losing compiler, so override with the script.
6860    # FIXME: It is wrong to rewrite CC.
6861    # But if we don't then we get into trouble of one sort or another.
6862    # A longer-term fix would be to have automake use am__CC in this case,
6863    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6864    CC="$am_aux_dir/compile $CC"
6865 fi
6866
6867
6868
6869
6870 subdirs="$subdirs classpath libltdl"
6871
6872
6873 # The -no-testsuite modules omit the test subdir.
6874
6875
6876 if test -d $srcdir/testsuite; then
6877   TESTSUBDIR_TRUE=
6878   TESTSUBDIR_FALSE='#'
6879 else
6880   TESTSUBDIR_TRUE='#'
6881   TESTSUBDIR_FALSE=
6882 fi
6883
6884
6885 # Should the runtime set system properties by examining the
6886 # environment variable GCJ_PROPERTIES?
6887 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6888 if test "${enable_getenv_properties+set}" = set; then
6889   enableval="$enable_getenv_properties"
6890
6891 fi;
6892
6893 # Whether GCJ_PROPERTIES is used depends on the target.
6894 if test -z "$enable_getenv_properties"; then
6895    enable_getenv_properties=${enable_getenv_properties_default-yes}
6896 fi
6897 if test "$enable_getenv_properties" = no; then
6898
6899 cat >>confdefs.h <<\_ACEOF
6900 #define DISABLE_GETENV_PROPERTIES 1
6901 _ACEOF
6902
6903 fi
6904
6905 # Whether we should use arguments to main()
6906 if test -z "$enable_main_args"; then
6907    enable_main_args=${enable_main_args_default-yes}
6908 fi
6909 if test "$enable_main_args" = no; then
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define DISABLE_MAIN_ARGS 1
6913 _ACEOF
6914
6915 fi
6916
6917
6918 # Should we use hashtable-based synchronization?
6919 # Currently works only for Linux X86/ia64
6920 # Typically faster and more space-efficient
6921 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6922 if test "${enable_hash_synchronization+set}" = set; then
6923   enableval="$enable_hash_synchronization"
6924
6925 fi;
6926
6927 if test -z "$enable_hash_synchronization"; then
6928    enable_hash_synchronization=$enable_hash_synchronization_default
6929 fi
6930
6931
6932 install_ecj_jar=no
6933 ECJ_BUILD_JAR=
6934 ECJ_JAR=
6935
6936 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6937 if test "${with_ecj_jar+set}" = set; then
6938   withval="$with_ecj_jar"
6939   ECJ_JAR=$withval
6940 else
6941   if test -f $multi_basedir/ecj.jar; then
6942            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
6943            ECJ_JAR='$(jardir)/ecj.jar'
6944            install_ecj_jar=yes
6945          fi
6946 fi;
6947
6948
6949
6950
6951 if test "$ECJ_JAR" != ""; then
6952   BUILD_ECJ1_TRUE=
6953   BUILD_ECJ1_FALSE='#'
6954 else
6955   BUILD_ECJ1_TRUE='#'
6956   BUILD_ECJ1_FALSE=
6957 fi
6958
6959
6960
6961 if test $install_ecj_jar = yes; then
6962   INSTALL_ECJ_JAR_TRUE=
6963   INSTALL_ECJ_JAR_FALSE='#'
6964 else
6965   INSTALL_ECJ_JAR_TRUE='#'
6966   INSTALL_ECJ_JAR_FALSE=
6967 fi
6968
6969
6970
6971 # Check whether --with-java-home or --without-java-home was given.
6972 if test "${with_java_home+set}" = set; then
6973   withval="$with_java_home"
6974   JAVA_HOME="${withval}"
6975 else
6976   JAVA_HOME=""
6977 fi;
6978
6979
6980 if test ! -z "$JAVA_HOME"; then
6981   JAVA_HOME_SET_TRUE=
6982   JAVA_HOME_SET_FALSE='#'
6983 else
6984   JAVA_HOME_SET_TRUE='#'
6985   JAVA_HOME_SET_FALSE=
6986 fi
6987
6988
6989
6990 # What is the native OS API for MinGW?
6991
6992 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6993 if test "${with_win32_nlsapi+set}" = set; then
6994   withval="$with_win32_nlsapi"
6995   case "${withval}" in
6996   ansi) with_win32_nlsapi=ansi ;;
6997   unicows) with_win32_nlsapi=unicows ;;
6998   unicode) with_win32_nlsapi=unicode ;;
6999   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
7000 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
7001    { (exit 1); exit 1; }; } ;;
7002 esac
7003 else
7004   with_win32_nlsapi=ansi
7005 fi;
7006
7007 case "${with_win32_nlsapi}" in
7008   unicows | unicode)
7009
7010 cat >>confdefs.h <<\_ACEOF
7011 #define MINGW_LIBGCJ_UNICODE 1
7012 _ACEOF
7013
7014     ;;
7015 esac
7016
7017 # configure.host sets slow_pthread_self if the synchronization code should
7018 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7019 if test "${slow_pthread_self}" = "yes"; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define SLOW_PTHREAD_SELF 1
7023 _ACEOF
7024
7025 fi
7026
7027 # Check for gc debugging.  This option is handled both here and in the GC.
7028 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7029 if test "${enable_gc_debug+set}" = set; then
7030   enableval="$enable_gc_debug"
7031    if test "$enable_gc_debug" = "yes"; then
7032
7033 cat >>confdefs.h <<\_ACEOF
7034 #define LIBGCJ_GC_DEBUG 1
7035 _ACEOF
7036
7037   fi
7038 fi;
7039
7040 # See if the user has the interpreter included.
7041 # Check whether --enable-interpreter or --disable-interpreter was given.
7042 if test "${enable_interpreter+set}" = set; then
7043   enableval="$enable_interpreter"
7044   if test "$enable_interpreter" = yes; then
7045     # This can also be set in configure.host.
7046     libgcj_interpreter=yes
7047   elif test "$enable_interpreter" = no; then
7048     libgcj_interpreter=no
7049   fi
7050 fi;
7051
7052 if test "$libgcj_interpreter" = yes; then
7053
7054 cat >>confdefs.h <<\_ACEOF
7055 #define INTERPRETER 1
7056 _ACEOF
7057
7058 fi
7059 INTERPRETER="$libgcj_interpreter"
7060
7061
7062 echo "$as_me:$LINENO: checking for exception model to use" >&5
7063 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7064 ac_ext=cc
7065 ac_cpp='$CXXCPP $CPPFLAGS'
7066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7069
7070 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7071 if test "${enable_sjlj_exceptions+set}" = set; then
7072   enableval="$enable_sjlj_exceptions"
7073   :
7074 else
7075   cat > conftest.$ac_ext << EOF
7076 #line 7076 "configure"
7077 struct S { ~S(); };
7078 void bar();
7079 void foo()
7080 {
7081   S s;
7082   bar();
7083 }
7084 EOF
7085 old_CXXFLAGS="$CXXFLAGS"
7086 CXXFLAGS=-S
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088   (eval $ac_compile) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; then
7092   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7093     enable_sjlj_exceptions=yes
7094   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7095     enable_sjlj_exceptions=no
7096   fi
7097 fi
7098 CXXFLAGS="$old_CXXFLAGS"
7099 rm -f conftest*
7100 fi;
7101 if test x$enable_sjlj_exceptions = xyes; then
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define SJLJ_EXCEPTIONS 1
7105 _ACEOF
7106
7107   ac_exception_model_name=sjlj
7108 elif test x$enable_sjlj_exceptions = xno; then
7109   ac_exception_model_name="call frame"
7110 else
7111   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7112 echo "$as_me: error: unable to detect exception model" >&2;}
7113    { (exit 1); exit 1; }; }
7114 fi
7115 ac_ext=c
7116 ac_cpp='$CPP $CPPFLAGS'
7117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7120
7121 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7122 echo "${ECHO_T}$ac_exception_model_name" >&6
7123
7124 # If we are non using SJLJ exceptions, and this host does not have support
7125 # for unwinding from a signal handler, enable checked dereferences and divides.
7126 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7127   CHECKREFSPEC=-fcheck-references
7128   DIVIDESPEC=-fuse-divide-subroutine
7129   EXCEPTIONSPEC=
7130 fi
7131
7132 # See if the user wants to disable java.net.  This is the mildly
7133 # ugly way that we admit that target-side configuration sucks.
7134 # Check whether --enable-java-net or --disable-java-net was given.
7135 if test "${enable_java_net+set}" = set; then
7136   enableval="$enable_java_net"
7137
7138 fi;
7139
7140 # Whether java.net is built by default can depend on the target.
7141 if test -z "$enable_java_net"; then
7142    enable_java_net=${enable_java_net_default-yes}
7143 fi
7144 if test "$enable_java_net" = no; then
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define DISABLE_JAVA_NET 1
7148 _ACEOF
7149
7150 fi
7151
7152 # See if the user wants to configure without libffi.  Some
7153 # architectures don't support it, and default values are set in
7154 # configure.host.
7155
7156 # Check whether --with-libffi or --without-libffi was given.
7157 if test "${with_libffi+set}" = set; then
7158   withval="$with_libffi"
7159   :
7160 else
7161   with_libffi=${with_libffi_default-yes}
7162 fi;
7163
7164 LIBFFI=
7165 LIBFFIINCS=
7166 if test "$with_libffi" != no; then
7167
7168 cat >>confdefs.h <<\_ACEOF
7169 #define USE_LIBFFI 1
7170 _ACEOF
7171
7172    LIBFFI=../libffi/libffi_convenience.la
7173    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7174 fi
7175
7176
7177
7178 # See if the user wants to disable JVMPI support.
7179 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7180 if test "${enable_jvmpi+set}" = set; then
7181   enableval="$enable_jvmpi"
7182
7183 fi;
7184
7185 if test "$enable_jvmpi" != no; then
7186
7187 cat >>confdefs.h <<\_ACEOF
7188 #define ENABLE_JVMPI 1
7189 _ACEOF
7190
7191 fi
7192
7193 # If the target is an eCos system, use the appropriate eCos
7194 # I/O routines.
7195 # FIXME: this should not be a local option but a global target
7196 # system; at present there is no eCos target.
7197 TARGET_ECOS=${PROCESS-"no"}
7198
7199 # Check whether --with-ecos or --without-ecos was given.
7200 if test "${with_ecos+set}" = set; then
7201   withval="$with_ecos"
7202   TARGET_ECOS="$with_ecos"
7203
7204 fi;
7205
7206 case "$TARGET_ECOS" in
7207    no) case "$host" in
7208       *mingw*)
7209             PLATFORM=Win32
7210             PLATFORMNET=Win32
7211             PLATFORMH=win32.h
7212
7213 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7214 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7215 LD_PROG=`$CC --print-prog-name=ld`
7216 LD_VERSION=`$LD_PROG --version`
7217 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7218 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7219 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7220   LD_OK="ok"
7221 else
7222   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7223     LD_OK="ok"
7224   fi
7225 fi
7226 if test "x$LD_OK" != x; then
7227   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7228 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7229 else
7230   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7231 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7232   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7233 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7234
7235 cat >>confdefs.h <<\_ACEOF
7236 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7237 _ACEOF
7238
7239 fi
7240       ;;
7241       *)
7242             PLATFORM=Posix
7243             PLATFORMNET=Posix
7244             PLATFORMH=posix.h
7245       ;;
7246       esac
7247       ;;
7248    *)
7249       PLATFORM=Ecos
7250       PLATFORMNET=NoNet
7251
7252 cat >>confdefs.h <<\_ACEOF
7253 #define ECOS 1
7254 _ACEOF
7255
7256       PLATFORMH=posix.h
7257       ;;
7258 esac
7259
7260           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7261
7262
7263 ac_ext=c
7264 ac_cpp='$CPP $CPPFLAGS'
7265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7270 # On Suns, sometimes $CPP names a directory.
7271 if test -n "$CPP" && test -d "$CPP"; then
7272   CPP=
7273 fi
7274 if test -z "$CPP"; then
7275   if test "${ac_cv_prog_CPP+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278       # Double quotes because CPP needs to be expanded
7279     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7280     do
7281       ac_preproc_ok=false
7282 for ac_c_preproc_warn_flag in '' yes
7283 do
7284   # Use a header file that comes with gcc, so configuring glibc
7285   # with a fresh cross-compiler works.
7286   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7287   # <limits.h> exists even on freestanding compilers.
7288   # On the NeXT, cc -E runs the code through the compiler's parser,
7289   # not just through cpp. "Syntax error" is here to catch this case.
7290   cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 #ifdef __STDC__
7297 # include <limits.h>
7298 #else
7299 # include <assert.h>
7300 #endif
7301                      Syntax error
7302 _ACEOF
7303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7305   ac_status=$?
7306   grep -v '^ *+' conftest.er1 >conftest.err
7307   rm -f conftest.er1
7308   cat conftest.err >&5
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); } >/dev/null; then
7311   if test -s conftest.err; then
7312     ac_cpp_err=$ac_c_preproc_warn_flag
7313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7314   else
7315     ac_cpp_err=
7316   fi
7317 else
7318   ac_cpp_err=yes
7319 fi
7320 if test -z "$ac_cpp_err"; then
7321   :
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326   # Broken: fails on valid input.
7327 continue
7328 fi
7329 rm -f conftest.err conftest.$ac_ext
7330
7331   # OK, works on sane cases.  Now check whether non-existent headers
7332   # can be detected and how.
7333   cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h.  */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h.  */
7339 #include <ac_nonexistent.h>
7340 _ACEOF
7341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7343   ac_status=$?
7344   grep -v '^ *+' conftest.er1 >conftest.err
7345   rm -f conftest.er1
7346   cat conftest.err >&5
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } >/dev/null; then
7349   if test -s conftest.err; then
7350     ac_cpp_err=$ac_c_preproc_warn_flag
7351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7352   else
7353     ac_cpp_err=
7354   fi
7355 else
7356   ac_cpp_err=yes
7357 fi
7358 if test -z "$ac_cpp_err"; then
7359   # Broken: success on invalid input.
7360 continue
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365   # Passes both tests.
7366 ac_preproc_ok=:
7367 break
7368 fi
7369 rm -f conftest.err conftest.$ac_ext
7370
7371 done
7372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373 rm -f conftest.err conftest.$ac_ext
7374 if $ac_preproc_ok; then
7375   break
7376 fi
7377
7378     done
7379     ac_cv_prog_CPP=$CPP
7380
7381 fi
7382   CPP=$ac_cv_prog_CPP
7383 else
7384   ac_cv_prog_CPP=$CPP
7385 fi
7386 echo "$as_me:$LINENO: result: $CPP" >&5
7387 echo "${ECHO_T}$CPP" >&6
7388 ac_preproc_ok=false
7389 for ac_c_preproc_warn_flag in '' yes
7390 do
7391   # Use a header file that comes with gcc, so configuring glibc
7392   # with a fresh cross-compiler works.
7393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394   # <limits.h> exists even on freestanding compilers.
7395   # On the NeXT, cc -E runs the code through the compiler's parser,
7396   # not just through cpp. "Syntax error" is here to catch this case.
7397   cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 #ifdef __STDC__
7404 # include <limits.h>
7405 #else
7406 # include <assert.h>
7407 #endif
7408                      Syntax error
7409 _ACEOF
7410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7412   ac_status=$?
7413   grep -v '^ *+' conftest.er1 >conftest.err
7414   rm -f conftest.er1
7415   cat conftest.err >&5
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); } >/dev/null; then
7418   if test -s conftest.err; then
7419     ac_cpp_err=$ac_c_preproc_warn_flag
7420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7421   else
7422     ac_cpp_err=
7423   fi
7424 else
7425   ac_cpp_err=yes
7426 fi
7427 if test -z "$ac_cpp_err"; then
7428   :
7429 else
7430   echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7432
7433   # Broken: fails on valid input.
7434 continue
7435 fi
7436 rm -f conftest.err conftest.$ac_ext
7437
7438   # OK, works on sane cases.  Now check whether non-existent headers
7439   # can be detected and how.
7440   cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h.  */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h.  */
7446 #include <ac_nonexistent.h>
7447 _ACEOF
7448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7450   ac_status=$?
7451   grep -v '^ *+' conftest.er1 >conftest.err
7452   rm -f conftest.er1
7453   cat conftest.err >&5
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } >/dev/null; then
7456   if test -s conftest.err; then
7457     ac_cpp_err=$ac_c_preproc_warn_flag
7458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7459   else
7460     ac_cpp_err=
7461   fi
7462 else
7463   ac_cpp_err=yes
7464 fi
7465 if test -z "$ac_cpp_err"; then
7466   # Broken: success on invalid input.
7467 continue
7468 else
7469   echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472   # Passes both tests.
7473 ac_preproc_ok=:
7474 break
7475 fi
7476 rm -f conftest.err conftest.$ac_ext
7477
7478 done
7479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7480 rm -f conftest.err conftest.$ac_ext
7481 if $ac_preproc_ok; then
7482   :
7483 else
7484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7485 See \`config.log' for more details." >&5
7486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7487 See \`config.log' for more details." >&2;}
7488    { (exit 1); exit 1; }; }
7489 fi
7490
7491 ac_ext=c
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496
7497
7498 echo "$as_me:$LINENO: checking for egrep" >&5
7499 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7500 if test "${ac_cv_prog_egrep+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7504     then ac_cv_prog_egrep='grep -E'
7505     else ac_cv_prog_egrep='egrep'
7506     fi
7507 fi
7508 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7509 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7510  EGREP=$ac_cv_prog_egrep
7511
7512
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519 #include <stdint.h>
7520
7521 _ACEOF
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523   $EGREP "uint32_t" >/dev/null 2>&1; then
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_INT32_DEFINED 1
7527 _ACEOF
7528
7529 fi
7530 rm -f conftest*
7531
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 #include <inttypes.h>
7539
7540 _ACEOF
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542   $EGREP "uint32_t" >/dev/null 2>&1; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_INT32_DEFINED 1
7546 _ACEOF
7547
7548 fi
7549 rm -f conftest*
7550
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 #include <sys/types.h>
7558
7559 _ACEOF
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561   $EGREP "u_int32_t" >/dev/null 2>&1; then
7562
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_BSD_INT32_DEFINED 1
7565 _ACEOF
7566
7567 fi
7568 rm -f conftest*
7569
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576 #include <sys/config.h>
7577
7578 _ACEOF
7579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7580   $EGREP "u_int32_t" >/dev/null 2>&1; then
7581
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_BSD_INT32_DEFINED 1
7584 _ACEOF
7585
7586 fi
7587 rm -f conftest*
7588
7589
7590
7591
7592 if test "$PLATFORM" = Win32; then
7593   USING_WIN32_PLATFORM_TRUE=
7594   USING_WIN32_PLATFORM_FALSE='#'
7595 else
7596   USING_WIN32_PLATFORM_TRUE='#'
7597   USING_WIN32_PLATFORM_FALSE=
7598 fi
7599
7600
7601
7602 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7603   USING_POSIX_PLATFORM_TRUE=
7604   USING_POSIX_PLATFORM_FALSE='#'
7605 else
7606   USING_POSIX_PLATFORM_TRUE='#'
7607   USING_POSIX_PLATFORM_FALSE=
7608 fi
7609
7610
7611 case "$host" in
7612   *-darwin*) DARWIN_CRT=true ;;
7613   *) DARWIN_CRT=false ;;
7614 esac
7615
7616
7617 if $DARWIN_CRT; then
7618   USING_DARWIN_CRT_TRUE=
7619   USING_DARWIN_CRT_FALSE='#'
7620 else
7621   USING_DARWIN_CRT_TRUE='#'
7622   USING_DARWIN_CRT_FALSE=
7623 fi
7624
7625
7626 # These may not be defined in a non-ANS conformant embedded system.
7627 # FIXME: Should these case a runtime exception in that case?
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h.  */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h.  */
7634 #include <time.h>
7635
7636 _ACEOF
7637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7638   $EGREP "mktime" >/dev/null 2>&1; then
7639
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_MKTIME 1
7642 _ACEOF
7643
7644 fi
7645 rm -f conftest*
7646
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653 #include <time.h>
7654
7655 _ACEOF
7656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7657   $EGREP "localtime" >/dev/null 2>&1; then
7658
7659 cat >>confdefs.h <<\_ACEOF
7660 #define HAVE_LOCALTIME 1
7661 _ACEOF
7662
7663 fi
7664 rm -f conftest*
7665
7666
7667 # Create the subdirectory for natFile.cc, or the attempt
7668 # to create the link will fail.
7669 test -d java || mkdir java
7670 test -d java/io || mkdir java/io
7671 test -d gnu || mkdir gnu
7672           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7673
7674
7675 # Likewise for natConcreteProcess.cc.
7676 test -d java/lang || mkdir java/lang
7677           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7678
7679
7680 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7681 test -d java/net || mkdir java/net
7682           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7683
7684           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7685
7686
7687 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7688 test -d gnu/java || mkdir gnu/java
7689 test -d gnu/java/net || mkdir gnu/java/net
7690           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7691
7692           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7693
7694
7695 # Likewise for natVMPipe.cc and natVMSelector.cc.
7696 test -d gnu/java/nio || mkdir gnu/java/nio
7697           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7698
7699           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7700
7701
7702 # Likewise for natFileChannelImpl.cc
7703 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7704           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7705
7706
7707 case "${host}" in
7708     *mingw*)
7709       SYSTEMSPEC="-lgdi32 -lws2_32"
7710       if test "${with_win32_nlsapi}" = "unicows"; then
7711         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7712       fi
7713     ;;
7714     *)
7715       SYSTEMSPEC=
7716     ;;
7717 esac
7718
7719
7720 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7721
7722
7723
7724 # Check whether --with-system-zlib or --without-system-zlib was given.
7725 if test "${with_system_zlib+set}" = set; then
7726   withval="$with_system_zlib"
7727
7728 fi;
7729 ZLIBSPEC=
7730
7731 ZLIBTESTSPEC=
7732
7733
7734 echo "$as_me:$LINENO: checking for X" >&5
7735 echo $ECHO_N "checking for X... $ECHO_C" >&6
7736
7737
7738 # Check whether --with-x or --without-x was given.
7739 if test "${with_x+set}" = set; then
7740   withval="$with_x"
7741
7742 fi;
7743 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7744 if test "x$with_x" = xno; then
7745   # The user explicitly disabled X.
7746   have_x=disabled
7747 else
7748   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7749     # Both variables are already set.
7750     have_x=yes
7751   else
7752     if test "${ac_cv_have_x+set}" = set; then
7753   echo $ECHO_N "(cached) $ECHO_C" >&6
7754 else
7755   # One or both of the vars are not set, and there is no cached value.
7756 ac_x_includes=no ac_x_libraries=no
7757 rm -fr conftest.dir
7758 if mkdir conftest.dir; then
7759   cd conftest.dir
7760   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7761   cat >Imakefile <<'_ACEOF'
7762 acfindx:
7763         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7764 _ACEOF
7765   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7766     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7767     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7768     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7769     for ac_extension in a so sl; do
7770       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7771          test -f $ac_im_libdir/libX11.$ac_extension; then
7772         ac_im_usrlibdir=$ac_im_libdir; break
7773       fi
7774     done
7775     # Screen out bogus values from the imake configuration.  They are
7776     # bogus both because they are the default anyway, and because
7777     # using them would break gcc on systems where it needs fixed includes.
7778     case $ac_im_incroot in
7779         /usr/include) ;;
7780         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7781     esac
7782     case $ac_im_usrlibdir in
7783         /usr/lib | /lib) ;;
7784         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7785     esac
7786   fi
7787   cd ..
7788   rm -fr conftest.dir
7789 fi
7790
7791 # Standard set of common directories for X headers.
7792 # Check X11 before X11Rn because it is often a symlink to the current release.
7793 ac_x_header_dirs='
7794 /usr/X11/include
7795 /usr/X11R6/include
7796 /usr/X11R5/include
7797 /usr/X11R4/include
7798
7799 /usr/include/X11
7800 /usr/include/X11R6
7801 /usr/include/X11R5
7802 /usr/include/X11R4
7803
7804 /usr/local/X11/include
7805 /usr/local/X11R6/include
7806 /usr/local/X11R5/include
7807 /usr/local/X11R4/include
7808
7809 /usr/local/include/X11
7810 /usr/local/include/X11R6
7811 /usr/local/include/X11R5
7812 /usr/local/include/X11R4
7813
7814 /usr/X386/include
7815 /usr/x386/include
7816 /usr/XFree86/include/X11
7817
7818 /usr/include
7819 /usr/local/include
7820 /usr/unsupported/include
7821 /usr/athena/include
7822 /usr/local/x11r5/include
7823 /usr/lpp/Xamples/include
7824
7825 /usr/openwin/include
7826 /usr/openwin/share/include'
7827
7828 if test "$ac_x_includes" = no; then
7829   # Guess where to find include files, by looking for Xlib.h.
7830   # First, try using that file with no special directory specified.
7831   cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837 #include <X11/Xlib.h>
7838 _ACEOF
7839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7841   ac_status=$?
7842   grep -v '^ *+' conftest.er1 >conftest.err
7843   rm -f conftest.er1
7844   cat conftest.err >&5
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); } >/dev/null; then
7847   if test -s conftest.err; then
7848     ac_cpp_err=$ac_c_preproc_warn_flag
7849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7850   else
7851     ac_cpp_err=
7852   fi
7853 else
7854   ac_cpp_err=yes
7855 fi
7856 if test -z "$ac_cpp_err"; then
7857   # We can compile using X headers with no special include directory.
7858 ac_x_includes=
7859 else
7860   echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7862
7863   for ac_dir in $ac_x_header_dirs; do
7864   if test -r "$ac_dir/X11/Xlib.h"; then
7865     ac_x_includes=$ac_dir
7866     break
7867   fi
7868 done
7869 fi
7870 rm -f conftest.err conftest.$ac_ext
7871 fi # $ac_x_includes = no
7872
7873 if test "$ac_x_libraries" = no; then
7874   # Check for the libraries.
7875   # See if we find them without any special options.
7876   # Don't add to $LIBS permanently.
7877   ac_save_LIBS=$LIBS
7878   LIBS="-lX11 $LIBS"
7879   if test x$gcc_no_link = xyes; then
7880   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7882    { (exit 1); exit 1; }; }
7883 fi
7884 cat >conftest.$ac_ext <<_ACEOF
7885 /* confdefs.h.  */
7886 _ACEOF
7887 cat confdefs.h >>conftest.$ac_ext
7888 cat >>conftest.$ac_ext <<_ACEOF
7889 /* end confdefs.h.  */
7890 #include <X11/Xlib.h>
7891 int
7892 main ()
7893 {
7894 XrmInitialize ()
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest.$ac_objext conftest$ac_exeext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7901   (eval $ac_link) 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -z "$ac_c_werror_flag"
7909                          || test ! -s conftest.err'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; } &&
7915          { ac_try='test -s conftest$ac_exeext'
7916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917   (eval $ac_try) 2>&5
7918   ac_status=$?
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); }; }; then
7921   LIBS=$ac_save_LIBS
7922 # We can link X programs with no special library path.
7923 ac_x_libraries=
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928 LIBS=$ac_save_LIBS
7929 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7930 do
7931   # Don't even attempt the hair of trying to link an X program!
7932   for ac_extension in a so sl; do
7933     if test -r $ac_dir/libXt.$ac_extension; then
7934       ac_x_libraries=$ac_dir
7935       break 2
7936     fi
7937   done
7938 done
7939 fi
7940 rm -f conftest.err conftest.$ac_objext \
7941       conftest$ac_exeext conftest.$ac_ext
7942 fi # $ac_x_libraries = no
7943
7944 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7945   # Didn't find X anywhere.  Cache the known absence of X.
7946   ac_cv_have_x="have_x=no"
7947 else
7948   # Record where we found X for the cache.
7949   ac_cv_have_x="have_x=yes \
7950                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7951 fi
7952 fi
7953
7954   fi
7955   eval "$ac_cv_have_x"
7956 fi # $with_x != no
7957
7958 if test "$have_x" != yes; then
7959   echo "$as_me:$LINENO: result: $have_x" >&5
7960 echo "${ECHO_T}$have_x" >&6
7961   no_x=yes
7962 else
7963   # If each of the values was on the command line, it overrides each guess.
7964   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7965   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7966   # Update the cache value to reflect the command line values.
7967   ac_cv_have_x="have_x=yes \
7968                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7969   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7970 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7971 fi
7972
7973 if test "$no_x" = yes; then
7974   # Not all programs may use this symbol, but it does not hurt to define it.
7975
7976 cat >>confdefs.h <<\_ACEOF
7977 #define X_DISPLAY_MISSING 1
7978 _ACEOF
7979
7980   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7981 else
7982   if test -n "$x_includes"; then
7983     X_CFLAGS="$X_CFLAGS -I$x_includes"
7984   fi
7985
7986   # It would also be nice to do this for all -L options, not just this one.
7987   if test -n "$x_libraries"; then
7988     X_LIBS="$X_LIBS -L$x_libraries"
7989     # For Solaris; some versions of Sun CC require a space after -R and
7990     # others require no space.  Words are not sufficient . . . .
7991     case `(uname -sr) 2>/dev/null` in
7992     "SunOS 5"*)
7993       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7994 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7995       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7996       if test x$gcc_no_link = xyes; then
7997   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7999    { (exit 1); exit 1; }; }
8000 fi
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h.  */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h.  */
8007
8008 int
8009 main ()
8010 {
8011
8012   ;
8013   return 0;
8014 }
8015 _ACEOF
8016 rm -f conftest.$ac_objext conftest$ac_exeext
8017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8018   (eval $ac_link) 2>conftest.er1
8019   ac_status=$?
8020   grep -v '^ *+' conftest.er1 >conftest.err
8021   rm -f conftest.er1
8022   cat conftest.err >&5
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } &&
8025          { ac_try='test -z "$ac_c_werror_flag"
8026                          || test ! -s conftest.err'
8027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028   (eval $ac_try) 2>&5
8029   ac_status=$?
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); }; } &&
8032          { ac_try='test -s conftest$ac_exeext'
8033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034   (eval $ac_try) 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; }; then
8038   ac_R_nospace=yes
8039 else
8040   echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_R_nospace=no
8044 fi
8045 rm -f conftest.err conftest.$ac_objext \
8046       conftest$ac_exeext conftest.$ac_ext
8047       if test $ac_R_nospace = yes; then
8048         echo "$as_me:$LINENO: result: no" >&5
8049 echo "${ECHO_T}no" >&6
8050         X_LIBS="$X_LIBS -R$x_libraries"
8051       else
8052         LIBS="$ac_xsave_LIBS -R $x_libraries"
8053         if test x$gcc_no_link = xyes; then
8054   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8056    { (exit 1); exit 1; }; }
8057 fi
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h.  */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h.  */
8064
8065 int
8066 main ()
8067 {
8068
8069   ;
8070   return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075   (eval $ac_link) 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -z "$ac_c_werror_flag"
8083                          || test ! -s conftest.err'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; } &&
8089          { ac_try='test -s conftest$ac_exeext'
8090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091   (eval $ac_try) 2>&5
8092   ac_status=$?
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); }; }; then
8095   ac_R_space=yes
8096 else
8097   echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100 ac_R_space=no
8101 fi
8102 rm -f conftest.err conftest.$ac_objext \
8103       conftest$ac_exeext conftest.$ac_ext
8104         if test $ac_R_space = yes; then
8105           echo "$as_me:$LINENO: result: yes" >&5
8106 echo "${ECHO_T}yes" >&6
8107           X_LIBS="$X_LIBS -R $x_libraries"
8108         else
8109           echo "$as_me:$LINENO: result: neither works" >&5
8110 echo "${ECHO_T}neither works" >&6
8111         fi
8112       fi
8113       LIBS=$ac_xsave_LIBS
8114     esac
8115   fi
8116
8117   # Check for system-dependent libraries X programs must link with.
8118   # Do this before checking for the system-independent R6 libraries
8119   # (-lICE), since we may need -lsocket or whatever for X linking.
8120
8121   if test "$ISC" = yes; then
8122     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8123   else
8124     # Martyn Johnson says this is needed for Ultrix, if the X
8125     # libraries were built with DECnet support.  And Karl Berry says
8126     # the Alpha needs dnet_stub (dnet does not exist).
8127     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8128     if test x$gcc_no_link = xyes; then
8129   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8131    { (exit 1); exit 1; }; }
8132 fi
8133 cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139
8140 /* Override any gcc2 internal prototype to avoid an error.  */
8141 #ifdef __cplusplus
8142 extern "C"
8143 #endif
8144 /* We use char because int might match the return type of a gcc2
8145    builtin and then its argument prototype would still apply.  */
8146 char XOpenDisplay ();
8147 int
8148 main ()
8149 {
8150 XOpenDisplay ();
8151   ;
8152   return 0;
8153 }
8154 _ACEOF
8155 rm -f conftest.$ac_objext conftest$ac_exeext
8156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8157   (eval $ac_link) 2>conftest.er1
8158   ac_status=$?
8159   grep -v '^ *+' conftest.er1 >conftest.err
8160   rm -f conftest.er1
8161   cat conftest.err >&5
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); } &&
8164          { ac_try='test -z "$ac_c_werror_flag"
8165                          || test ! -s conftest.err'
8166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167   (eval $ac_try) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); }; } &&
8171          { ac_try='test -s conftest$ac_exeext'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; }; then
8177   :
8178 else
8179   echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8183 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8184 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   ac_check_lib_save_LIBS=$LIBS
8188 LIBS="-ldnet  $LIBS"
8189 if test x$gcc_no_link = xyes; then
8190   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8192    { (exit 1); exit 1; }; }
8193 fi
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200
8201 /* Override any gcc2 internal prototype to avoid an error.  */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 /* We use char because int might match the return type of a gcc2
8206    builtin and then its argument prototype would still apply.  */
8207 char dnet_ntoa ();
8208 int
8209 main ()
8210 {
8211 dnet_ntoa ();
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext
8217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8218   (eval $ac_link) 2>conftest.er1
8219   ac_status=$?
8220   grep -v '^ *+' conftest.er1 >conftest.err
8221   rm -f conftest.er1
8222   cat conftest.err >&5
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); } &&
8225          { ac_try='test -z "$ac_c_werror_flag"
8226                          || test ! -s conftest.err'
8227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228   (eval $ac_try) 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); }; } &&
8232          { ac_try='test -s conftest$ac_exeext'
8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238   ac_cv_lib_dnet_dnet_ntoa=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_cv_lib_dnet_dnet_ntoa=no
8244 fi
8245 rm -f conftest.err conftest.$ac_objext \
8246       conftest$ac_exeext conftest.$ac_ext
8247 LIBS=$ac_check_lib_save_LIBS
8248 fi
8249 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8250 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8251 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8252   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8253 fi
8254
8255     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8256       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8257 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8258 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8259   echo $ECHO_N "(cached) $ECHO_C" >&6
8260 else
8261   ac_check_lib_save_LIBS=$LIBS
8262 LIBS="-ldnet_stub  $LIBS"
8263 if test x$gcc_no_link = xyes; then
8264   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8265 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8266    { (exit 1); exit 1; }; }
8267 fi
8268 cat >conftest.$ac_ext <<_ACEOF
8269 /* confdefs.h.  */
8270 _ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h.  */
8274
8275 /* Override any gcc2 internal prototype to avoid an error.  */
8276 #ifdef __cplusplus
8277 extern "C"
8278 #endif
8279 /* We use char because int might match the return type of a gcc2
8280    builtin and then its argument prototype would still apply.  */
8281 char dnet_ntoa ();
8282 int
8283 main ()
8284 {
8285 dnet_ntoa ();
8286   ;
8287   return 0;
8288 }
8289 _ACEOF
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8292   (eval $ac_link) 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -z "$ac_c_werror_flag"
8300                          || test ! -s conftest.err'
8301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302   (eval $ac_try) 2>&5
8303   ac_status=$?
8304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305   (exit $ac_status); }; } &&
8306          { ac_try='test -s conftest$ac_exeext'
8307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308   (eval $ac_try) 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317 ac_cv_lib_dnet_stub_dnet_ntoa=no
8318 fi
8319 rm -f conftest.err conftest.$ac_objext \
8320       conftest$ac_exeext conftest.$ac_ext
8321 LIBS=$ac_check_lib_save_LIBS
8322 fi
8323 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8324 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8325 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8326   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8327 fi
8328
8329     fi
8330 fi
8331 rm -f conftest.err conftest.$ac_objext \
8332       conftest$ac_exeext conftest.$ac_ext
8333     LIBS="$ac_xsave_LIBS"
8334
8335     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8336     # to get the SysV transport functions.
8337     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8338     # needs -lnsl.
8339     # The nsl library prevents programs from opening the X display
8340     # on Irix 5.2, according to T.E. Dickey.
8341     # The functions gethostbyname, getservbyname, and inet_addr are
8342     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8343     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8344 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8345 if test "${ac_cv_func_gethostbyname+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   if test x$gcc_no_link = xyes; then
8349   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8350 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8351    { (exit 1); exit 1; }; }
8352 fi
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8361 #define gethostbyname innocuous_gethostbyname
8362
8363 /* System header to define __stub macros and hopefully few prototypes,
8364     which can conflict with char gethostbyname (); below.
8365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8366     <limits.h> exists even on freestanding compilers.  */
8367
8368 #ifdef __STDC__
8369 # include <limits.h>
8370 #else
8371 # include <assert.h>
8372 #endif
8373
8374 #undef gethostbyname
8375
8376 /* Override any gcc2 internal prototype to avoid an error.  */
8377 #ifdef __cplusplus
8378 extern "C"
8379 {
8380 #endif
8381 /* We use char because int might match the return type of a gcc2
8382    builtin and then its argument prototype would still apply.  */
8383 char gethostbyname ();
8384 /* The GNU C library defines this for functions which it implements
8385     to always fail with ENOSYS.  Some functions are actually named
8386     something starting with __ and the normal name is an alias.  */
8387 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8388 choke me
8389 #else
8390 char (*f) () = gethostbyname;
8391 #endif
8392 #ifdef __cplusplus
8393 }
8394 #endif
8395
8396 int
8397 main ()
8398 {
8399 return f != gethostbyname;
8400   ;
8401   return 0;
8402 }
8403 _ACEOF
8404 rm -f conftest.$ac_objext conftest$ac_exeext
8405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8406   (eval $ac_link) 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -z "$ac_c_werror_flag"
8414                          || test ! -s conftest.err'
8415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8416   (eval $ac_try) 2>&5
8417   ac_status=$?
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); }; } &&
8420          { ac_try='test -s conftest$ac_exeext'
8421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8422   (eval $ac_try) 2>&5
8423   ac_status=$?
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   (exit $ac_status); }; }; then
8426   ac_cv_func_gethostbyname=yes
8427 else
8428   echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431 ac_cv_func_gethostbyname=no
8432 fi
8433 rm -f conftest.err conftest.$ac_objext \
8434       conftest$ac_exeext conftest.$ac_ext
8435 fi
8436 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8437 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8438
8439     if test $ac_cv_func_gethostbyname = no; then
8440       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8441 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8442 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   ac_check_lib_save_LIBS=$LIBS
8446 LIBS="-lnsl  $LIBS"
8447 if test x$gcc_no_link = xyes; then
8448   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8449 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8450    { (exit 1); exit 1; }; }
8451 fi
8452 cat >conftest.$ac_ext <<_ACEOF
8453 /* confdefs.h.  */
8454 _ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h.  */
8458
8459 /* Override any gcc2 internal prototype to avoid an error.  */
8460 #ifdef __cplusplus
8461 extern "C"
8462 #endif
8463 /* We use char because int might match the return type of a gcc2
8464    builtin and then its argument prototype would still apply.  */
8465 char gethostbyname ();
8466 int
8467 main ()
8468 {
8469 gethostbyname ();
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 rm -f conftest.$ac_objext conftest$ac_exeext
8475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8476   (eval $ac_link) 2>conftest.er1
8477   ac_status=$?
8478   grep -v '^ *+' conftest.er1 >conftest.err
8479   rm -f conftest.er1
8480   cat conftest.err >&5
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); } &&
8483          { ac_try='test -z "$ac_c_werror_flag"
8484                          || test ! -s conftest.err'
8485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8486   (eval $ac_try) 2>&5
8487   ac_status=$?
8488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489   (exit $ac_status); }; } &&
8490          { ac_try='test -s conftest$ac_exeext'
8491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492   (eval $ac_try) 2>&5
8493   ac_status=$?
8494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495   (exit $ac_status); }; }; then
8496   ac_cv_lib_nsl_gethostbyname=yes
8497 else
8498   echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 ac_cv_lib_nsl_gethostbyname=no
8502 fi
8503 rm -f conftest.err conftest.$ac_objext \
8504       conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8506 fi
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8508 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8509 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8510   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8511 fi
8512
8513       if test $ac_cv_lib_nsl_gethostbyname = no; then
8514         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8515 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8516 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   ac_check_lib_save_LIBS=$LIBS
8520 LIBS="-lbsd  $LIBS"
8521 if test x$gcc_no_link = xyes; then
8522   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8523 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8524    { (exit 1); exit 1; }; }
8525 fi
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532
8533 /* Override any gcc2 internal prototype to avoid an error.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char gethostbyname ();
8540 int
8541 main ()
8542 {
8543 gethostbyname ();
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550   (eval $ac_link) 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -z "$ac_c_werror_flag"
8558                          || test ! -s conftest.err'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; } &&
8564          { ac_try='test -s conftest$ac_exeext'
8565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566   (eval $ac_try) 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; }; then
8570   ac_cv_lib_bsd_gethostbyname=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ac_cv_lib_bsd_gethostbyname=no
8576 fi
8577 rm -f conftest.err conftest.$ac_objext \
8578       conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8580 fi
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8582 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8583 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8584   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8585 fi
8586
8587       fi
8588     fi
8589
8590     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8591     # socket/setsockopt and other routines are undefined under SCO ODT
8592     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8593     # on later versions), says Simon Leinen: it contains gethostby*
8594     # variants that don't use the name server (or something).  -lsocket
8595     # must be given before -lnsl if both are needed.  We assume that
8596     # if connect needs -lnsl, so does gethostbyname.
8597     echo "$as_me:$LINENO: checking for connect" >&5
8598 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8599 if test "${ac_cv_func_connect+set}" = set; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602   if test x$gcc_no_link = xyes; then
8603   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8605    { (exit 1); exit 1; }; }
8606 fi
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h.  */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h.  */
8613 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8615 #define connect innocuous_connect
8616
8617 /* System header to define __stub macros and hopefully few prototypes,
8618     which can conflict with char connect (); below.
8619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8620     <limits.h> exists even on freestanding compilers.  */
8621
8622 #ifdef __STDC__
8623 # include <limits.h>
8624 #else
8625 # include <assert.h>
8626 #endif
8627
8628 #undef connect
8629
8630 /* Override any gcc2 internal prototype to avoid an error.  */
8631 #ifdef __cplusplus
8632 extern "C"
8633 {
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636    builtin and then its argument prototype would still apply.  */
8637 char connect ();
8638 /* The GNU C library defines this for functions which it implements
8639     to always fail with ENOSYS.  Some functions are actually named
8640     something starting with __ and the normal name is an alias.  */
8641 #if defined (__stub_connect) || defined (__stub___connect)
8642 choke me
8643 #else
8644 char (*f) () = connect;
8645 #endif
8646 #ifdef __cplusplus
8647 }
8648 #endif
8649
8650 int
8651 main ()
8652 {
8653 return f != connect;
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660   (eval $ac_link) 2>conftest.er1
8661   ac_status=$?
8662   grep -v '^ *+' conftest.er1 >conftest.err
8663   rm -f conftest.er1
8664   cat conftest.err >&5
8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } &&
8667          { ac_try='test -z "$ac_c_werror_flag"
8668                          || test ! -s conftest.err'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; } &&
8674          { ac_try='test -s conftest$ac_exeext'
8675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676   (eval $ac_try) 2>&5
8677   ac_status=$?
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); }; }; then
8680   ac_cv_func_connect=yes
8681 else
8682   echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8684
8685 ac_cv_func_connect=no
8686 fi
8687 rm -f conftest.err conftest.$ac_objext \
8688       conftest$ac_exeext conftest.$ac_ext
8689 fi
8690 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8691 echo "${ECHO_T}$ac_cv_func_connect" >&6
8692
8693     if test $ac_cv_func_connect = no; then
8694       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8695 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8696 if test "${ac_cv_lib_socket_connect+set}" = set; then
8697   echo $ECHO_N "(cached) $ECHO_C" >&6
8698 else
8699   ac_check_lib_save_LIBS=$LIBS
8700 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8701 if test x$gcc_no_link = xyes; then
8702   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8704    { (exit 1); exit 1; }; }
8705 fi
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712
8713 /* Override any gcc2 internal prototype to avoid an error.  */
8714 #ifdef __cplusplus
8715 extern "C"
8716 #endif
8717 /* We use char because int might match the return type of a gcc2
8718    builtin and then its argument prototype would still apply.  */
8719 char connect ();
8720 int
8721 main ()
8722 {
8723 connect ();
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730   (eval $ac_link) 2>conftest.er1
8731   ac_status=$?
8732   grep -v '^ *+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } &&
8737          { ac_try='test -z "$ac_c_werror_flag"
8738                          || test ! -s conftest.err'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; } &&
8744          { ac_try='test -s conftest$ac_exeext'
8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746   (eval $ac_try) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   ac_cv_lib_socket_connect=yes
8751 else
8752   echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8754
8755 ac_cv_lib_socket_connect=no
8756 fi
8757 rm -f conftest.err conftest.$ac_objext \
8758       conftest$ac_exeext conftest.$ac_ext
8759 LIBS=$ac_check_lib_save_LIBS
8760 fi
8761 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8762 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8763 if test $ac_cv_lib_socket_connect = yes; then
8764   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8765 fi
8766
8767     fi
8768
8769     # Guillermo Gomez says -lposix is necessary on A/UX.
8770     echo "$as_me:$LINENO: checking for remove" >&5
8771 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8772 if test "${ac_cv_func_remove+set}" = set; then
8773   echo $ECHO_N "(cached) $ECHO_C" >&6
8774 else
8775   if test x$gcc_no_link = xyes; then
8776   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8777 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8778    { (exit 1); exit 1; }; }
8779 fi
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h.  */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h.  */
8786 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8788 #define remove innocuous_remove
8789
8790 /* System header to define __stub macros and hopefully few prototypes,
8791     which can conflict with char remove (); below.
8792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8793     <limits.h> exists even on freestanding compilers.  */
8794
8795 #ifdef __STDC__
8796 # include <limits.h>
8797 #else
8798 # include <assert.h>
8799 #endif
8800
8801 #undef remove
8802
8803 /* Override any gcc2 internal prototype to avoid an error.  */
8804 #ifdef __cplusplus
8805 extern "C"
8806 {
8807 #endif
8808 /* We use char because int might match the return type of a gcc2
8809    builtin and then its argument prototype would still apply.  */
8810 char remove ();
8811 /* The GNU C library defines this for functions which it implements
8812     to always fail with ENOSYS.  Some functions are actually named
8813     something starting with __ and the normal name is an alias.  */
8814 #if defined (__stub_remove) || defined (__stub___remove)
8815 choke me
8816 #else
8817 char (*f) () = remove;
8818 #endif
8819 #ifdef __cplusplus
8820 }
8821 #endif
8822
8823 int
8824 main ()
8825 {
8826 return f != remove;
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8833   (eval $ac_link) 2>conftest.er1
8834   ac_status=$?
8835   grep -v '^ *+' conftest.er1 >conftest.err
8836   rm -f conftest.er1
8837   cat conftest.err >&5
8838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839   (exit $ac_status); } &&
8840          { ac_try='test -z "$ac_c_werror_flag"
8841                          || test ! -s conftest.err'
8842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8843   (eval $ac_try) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); }; } &&
8847          { ac_try='test -s conftest$ac_exeext'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; }; then
8853   ac_cv_func_remove=yes
8854 else
8855   echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 ac_cv_func_remove=no
8859 fi
8860 rm -f conftest.err conftest.$ac_objext \
8861       conftest$ac_exeext conftest.$ac_ext
8862 fi
8863 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8864 echo "${ECHO_T}$ac_cv_func_remove" >&6
8865
8866     if test $ac_cv_func_remove = no; then
8867       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8868 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8869 if test "${ac_cv_lib_posix_remove+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   ac_check_lib_save_LIBS=$LIBS
8873 LIBS="-lposix  $LIBS"
8874 if test x$gcc_no_link = xyes; then
8875   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8877    { (exit 1); exit 1; }; }
8878 fi
8879 cat >conftest.$ac_ext <<_ACEOF
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885
8886 /* Override any gcc2 internal prototype to avoid an error.  */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 /* We use char because int might match the return type of a gcc2
8891    builtin and then its argument prototype would still apply.  */
8892 char remove ();
8893 int
8894 main ()
8895 {
8896 remove ();
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>conftest.er1
8904   ac_status=$?
8905   grep -v '^ *+' conftest.er1 >conftest.err
8906   rm -f conftest.er1
8907   cat conftest.err >&5
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -z "$ac_c_werror_flag"
8911                          || test ! -s conftest.err'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; } &&
8917          { ac_try='test -s conftest$ac_exeext'
8918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919   (eval $ac_try) 2>&5
8920   ac_status=$?
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); }; }; then
8923   ac_cv_lib_posix_remove=yes
8924 else
8925   echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928 ac_cv_lib_posix_remove=no
8929 fi
8930 rm -f conftest.err conftest.$ac_objext \
8931       conftest$ac_exeext conftest.$ac_ext
8932 LIBS=$ac_check_lib_save_LIBS
8933 fi
8934 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8935 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8936 if test $ac_cv_lib_posix_remove = yes; then
8937   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8938 fi
8939
8940     fi
8941
8942     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8943     echo "$as_me:$LINENO: checking for shmat" >&5
8944 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8945 if test "${ac_cv_func_shmat+set}" = set; then
8946   echo $ECHO_N "(cached) $ECHO_C" >&6
8947 else
8948   if test x$gcc_no_link = xyes; then
8949   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8951    { (exit 1); exit 1; }; }
8952 fi
8953 cat >conftest.$ac_ext <<_ACEOF
8954 /* confdefs.h.  */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h.  */
8959 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8961 #define shmat innocuous_shmat
8962
8963 /* System header to define __stub macros and hopefully few prototypes,
8964     which can conflict with char shmat (); below.
8965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8966     <limits.h> exists even on freestanding compilers.  */
8967
8968 #ifdef __STDC__
8969 # include <limits.h>
8970 #else
8971 # include <assert.h>
8972 #endif
8973
8974 #undef shmat
8975
8976 /* Override any gcc2 internal prototype to avoid an error.  */
8977 #ifdef __cplusplus
8978 extern "C"
8979 {
8980 #endif
8981 /* We use char because int might match the return type of a gcc2
8982    builtin and then its argument prototype would still apply.  */
8983 char shmat ();
8984 /* The GNU C library defines this for functions which it implements
8985     to always fail with ENOSYS.  Some functions are actually named
8986     something starting with __ and the normal name is an alias.  */
8987 #if defined (__stub_shmat) || defined (__stub___shmat)
8988 choke me
8989 #else
8990 char (*f) () = shmat;
8991 #endif
8992 #ifdef __cplusplus
8993 }
8994 #endif
8995
8996 int
8997 main ()
8998 {
8999 return f != shmat;
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006   (eval $ac_link) 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } &&
9013          { ac_try='test -z "$ac_c_werror_flag"
9014                          || test ! -s conftest.err'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; } &&
9020          { ac_try='test -s conftest$ac_exeext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_cv_func_shmat=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_cv_func_shmat=no
9032 fi
9033 rm -f conftest.err conftest.$ac_objext \
9034       conftest$ac_exeext conftest.$ac_ext
9035 fi
9036 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9037 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9038
9039     if test $ac_cv_func_shmat = no; then
9040       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9041 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9042 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9043   echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045   ac_check_lib_save_LIBS=$LIBS
9046 LIBS="-lipc  $LIBS"
9047 if test x$gcc_no_link = xyes; then
9048   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9050    { (exit 1); exit 1; }; }
9051 fi
9052 cat >conftest.$ac_ext <<_ACEOF
9053 /* confdefs.h.  */
9054 _ACEOF
9055 cat confdefs.h >>conftest.$ac_ext
9056 cat >>conftest.$ac_ext <<_ACEOF
9057 /* end confdefs.h.  */
9058
9059 /* Override any gcc2 internal prototype to avoid an error.  */
9060 #ifdef __cplusplus
9061 extern "C"
9062 #endif
9063 /* We use char because int might match the return type of a gcc2
9064    builtin and then its argument prototype would still apply.  */
9065 char shmat ();
9066 int
9067 main ()
9068 {
9069 shmat ();
9070   ;
9071   return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076   (eval $ac_link) 2>conftest.er1
9077   ac_status=$?
9078   grep -v '^ *+' conftest.er1 >conftest.err
9079   rm -f conftest.er1
9080   cat conftest.err >&5
9081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082   (exit $ac_status); } &&
9083          { ac_try='test -z "$ac_c_werror_flag"
9084                          || test ! -s conftest.err'
9085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086   (eval $ac_try) 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); }; } &&
9090          { ac_try='test -s conftest$ac_exeext'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; }; then
9096   ac_cv_lib_ipc_shmat=yes
9097 else
9098   echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9100
9101 ac_cv_lib_ipc_shmat=no
9102 fi
9103 rm -f conftest.err conftest.$ac_objext \
9104       conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9106 fi
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9108 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9109 if test $ac_cv_lib_ipc_shmat = yes; then
9110   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9111 fi
9112
9113     fi
9114   fi
9115
9116   # Check for libraries that X11R6 Xt/Xaw programs need.
9117   ac_save_LDFLAGS=$LDFLAGS
9118   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9119   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9120   # check for ICE first), but we must link in the order -lSM -lICE or
9121   # we get undefined symbols.  So assume we have SM if we have ICE.
9122   # These have to be linked with before -lX11, unlike the other
9123   # libraries we check for below, so use a different variable.
9124   # John Interrante, Karl Berry
9125   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9126 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9127 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130   ac_check_lib_save_LIBS=$LIBS
9131 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9132 if test x$gcc_no_link = xyes; then
9133   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9134 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9135    { (exit 1); exit 1; }; }
9136 fi
9137 cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h.  */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h.  */
9143
9144 /* Override any gcc2 internal prototype to avoid an error.  */
9145 #ifdef __cplusplus
9146 extern "C"
9147 #endif
9148 /* We use char because int might match the return type of a gcc2
9149    builtin and then its argument prototype would still apply.  */
9150 char IceConnectionNumber ();
9151 int
9152 main ()
9153 {
9154 IceConnectionNumber ();
9155   ;
9156   return 0;
9157 }
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161   (eval $ac_link) 2>conftest.er1
9162   ac_status=$?
9163   grep -v '^ *+' conftest.er1 >conftest.err
9164   rm -f conftest.er1
9165   cat conftest.err >&5
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); } &&
9168          { ac_try='test -z "$ac_c_werror_flag"
9169                          || test ! -s conftest.err'
9170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171   (eval $ac_try) 2>&5
9172   ac_status=$?
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); }; } &&
9175          { ac_try='test -s conftest$ac_exeext'
9176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177   (eval $ac_try) 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); }; }; then
9181   ac_cv_lib_ICE_IceConnectionNumber=yes
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186 ac_cv_lib_ICE_IceConnectionNumber=no
9187 fi
9188 rm -f conftest.err conftest.$ac_objext \
9189       conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9191 fi
9192 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9193 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9194 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9195   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9196 fi
9197
9198   LDFLAGS=$ac_save_LDFLAGS
9199
9200 fi
9201
9202
9203 # FIXME: this should be _libs on some hosts.
9204 libsubdir=.libs
9205
9206 # extra LD Flags which are required for targets
9207 case "${host}" in
9208 *-*-darwin[0-7].*)
9209     # For now we have to disable it on darwin[8-9] because it slows down
9210     # the linking phase. A possible bug in ld?
9211     # on Darwin -single_module speeds up loading of the dynamic libraries.
9212     extra_ldflags_libjava=-Wl,-single_module
9213     ;;
9214 esac
9215
9216
9217 # Allow the GC to be disabled.  Can be useful when debugging.
9218 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9219 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9220 # Check whether --enable-java-gc or --disable-java-gc was given.
9221 if test "${enable_java_gc+set}" = set; then
9222   enableval="$enable_java_gc"
9223   GC=$enableval
9224 else
9225   GC=boehm
9226 fi;
9227 GCLIBS=
9228 GCINCS=
9229 GCDEPS=
9230 GCSPEC=
9231 JC1GCSPEC=
9232 GCTESTSPEC=
9233 case "$GC" in
9234  boehm)
9235     echo "$as_me:$LINENO: result: boehm" >&5
9236 echo "${ECHO_T}boehm" >&6
9237     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9238     JC1GCSPEC='-fuse-boehm-gc'
9239     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9240     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9241     GCOBJS=boehm.lo
9242     GCHDR=boehm-gc.h
9243     # The POSIX thread support needs to know this.
9244
9245 cat >>confdefs.h <<\_ACEOF
9246 #define HAVE_BOEHM_GC 1
9247 _ACEOF
9248
9249     ;;
9250  no)
9251     echo "$as_me:$LINENO: result: none" >&5
9252 echo "${ECHO_T}none" >&6
9253     GCHDR=no-gc.h
9254     ;;
9255  *)
9256     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9257 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9258    { (exit 1); exit 1; }; }
9259     ;;
9260 esac
9261
9262
9263
9264
9265
9266
9267           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9268
9269
9270
9271 if test "$GC" = boehm; then
9272   USING_BOEHMGC_TRUE=
9273   USING_BOEHMGC_FALSE='#'
9274 else
9275   USING_BOEHMGC_TRUE='#'
9276   USING_BOEHMGC_FALSE=
9277 fi
9278
9279
9280
9281 if test "$GC" = no; then
9282   USING_NOGC_TRUE=
9283   USING_NOGC_FALSE='#'
9284 else
9285   USING_NOGC_TRUE='#'
9286   USING_NOGC_FALSE=
9287 fi
9288
9289
9290
9291 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9292 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9293 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9294 echo "$as_me:$LINENO: result: $THREADS" >&5
9295 echo "${ECHO_T}$THREADS" >&6
9296
9297 case "$THREADS" in
9298  no | none | single)
9299     THREADS=none
9300     ;;
9301  posix | posix95 | pthreads)
9302     THREADS=posix
9303     case "$host" in
9304      *-*-linux*)
9305
9306 cat >>confdefs.h <<\_ACEOF
9307 #define LINUX_THREADS 1
9308 _ACEOF
9309
9310         ;;
9311     esac
9312     ;;
9313  win32)
9314     ;;
9315  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9316     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9317 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9318    { (exit 1); exit 1; }; }
9319     ;;
9320  *)
9321     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9322 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9323    { (exit 1); exit 1; }; }
9324     ;;
9325 esac
9326
9327 THREADCXXFLAGS=
9328 THREADLDFLAGS=
9329 THREADLIBS=
9330 THREADINCS=
9331 THREADDEPS=
9332 THREADH=
9333 THREADSPEC=
9334 THREADSTARTFILESPEC=
9335 case "$THREADS" in
9336  posix)
9337     case "$host" in
9338      *-*-cygwin*)
9339         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9340         ;;
9341      *-*-freebsd[1234]*)
9342         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9343         # merely adds pthread_* functions) but it does have a -pthread switch
9344         # which is required at link-time to select -lc_r *instead* of -lc.
9345         THREADLDFLAGS=-pthread
9346         # Don't set THREADSPEC here as might be expected since -pthread is
9347         # not processed when found within a spec file, it must come from
9348         # the command line.  For now, the user must provide the -pthread
9349         # switch to link code compiled with gcj.  In future, consider adding
9350         # support for weak references to pthread_* functions ala gthr.h API.
9351         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9352         ;;
9353      *-*-freebsd*)
9354         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9355         # systems which support threads and -lpthread.
9356         THREADLDFLAGS=-pthread
9357         THREADSPEC=-lpthread
9358         ;;
9359      alpha*-dec-osf* | hppa*-hp-hpux*)
9360         THREADCXXFLAGS=-pthread
9361         # boehm-gc needs some functions from librt, so link that too.
9362         THREADLIBS='-lpthread -lrt'
9363         THREADSPEC='-lpthread -lrt'
9364         ;;
9365      *)
9366         THREADLIBS=-lpthread
9367         THREADSPEC=-lpthread
9368         ;;
9369     esac
9370     THREADH=posix-threads.h
9371     # MIT pthreads doesn't seem to have the mutexattr functions.
9372     # But for now we don't check for it.  We just assume you aren't
9373     # using MIT pthreads.
9374
9375 cat >>confdefs.h <<\_ACEOF
9376 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9377 _ACEOF
9378
9379
9380     # If we're using the Boehm GC, then we happen to know that it
9381     # defines _REENTRANT, so we don't bother.  Eww.
9382     if test "$GC" != boehm; then
9383
9384 cat >>confdefs.h <<\_ACEOF
9385 #define _REENTRANT 1
9386 _ACEOF
9387
9388     fi
9389
9390 cat >>confdefs.h <<\_ACEOF
9391 #define _POSIX_PTHREAD_SEMANTICS 1
9392 _ACEOF
9393
9394     ;;
9395
9396  win32)
9397     THREADH=win32-threads.h
9398     THREADCXXFLAGS=-mthreads
9399     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9400     # But we do not want the executables created to be dependent on
9401     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9402     # exception handling contexts.  The following kludge achieves this effect
9403     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9404     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9405     # A workaround is to explicitly use -mthreads while linking Java programs.
9406     # See PR libgcj/28263.
9407     #
9408     # FIXME: In Java we are able to detect thread death at the end of
9409     # Thread.run() so we should be able to clean up the exception handling
9410     # contexts ourselves.
9411     THREADSTARTFILESPEC='crtmt%O%s'
9412     ;;
9413
9414  none)
9415     THREADH=no-threads.h
9416     ;;
9417 esac
9418           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429 if test "$THREADS" = posix; then
9430   USING_POSIX_THREADS_TRUE=
9431   USING_POSIX_THREADS_FALSE='#'
9432 else
9433   USING_POSIX_THREADS_TRUE='#'
9434   USING_POSIX_THREADS_FALSE=
9435 fi
9436
9437
9438
9439 if test "$THREADS" = win32; then
9440   USING_WIN32_THREADS_TRUE=
9441   USING_WIN32_THREADS_FALSE='#'
9442 else
9443   USING_WIN32_THREADS_TRUE='#'
9444   USING_WIN32_THREADS_FALSE=
9445 fi
9446
9447
9448
9449 if test "$THREADS" = none; then
9450   USING_NO_THREADS_TRUE=
9451   USING_NO_THREADS_FALSE='#'
9452 else
9453   USING_NO_THREADS_TRUE='#'
9454   USING_NO_THREADS_FALSE=
9455 fi
9456
9457
9458
9459 if test "$use_libgcj_bc" = yes; then
9460   USE_LIBGCJ_BC_TRUE=
9461   USE_LIBGCJ_BC_FALSE='#'
9462 else
9463   USE_LIBGCJ_BC_TRUE='#'
9464   USE_LIBGCJ_BC_FALSE=
9465 fi
9466
9467
9468 if test -d sysdep; then true; else mkdir sysdep; fi
9469           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9470
9471           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9472
9473           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9474
9475
9476 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9477 if test "$use_libgcj_bc" = yes; then
9478   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9479 fi
9480
9481
9482 HASH_SYNC_SPEC=
9483 # Hash synchronization is only useful with posix threads right now.
9484 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9485    HASH_SYNC_SPEC=-fhash-synchronization
9486
9487 cat >>confdefs.h <<\_ACEOF
9488 #define JV_HASH_SYNCHRONIZATION 1
9489 _ACEOF
9490
9491 fi
9492
9493
9494
9495
9496 if test "$GCC" = yes; then
9497   USING_GCC_TRUE=
9498   USING_GCC_FALSE='#'
9499 else
9500   USING_GCC_TRUE='#'
9501   USING_GCC_FALSE=
9502 fi
9503
9504
9505 # We're in the tree with gcc, and need to include some of its headers.
9506 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9507
9508 if test "x${with_newlib}" = "xyes"; then
9509    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9510    # may not work correctly, because the compiler may not be able to
9511    # link executables.
9512
9513    # We assume newlib.  This lets us hard-code the functions we know
9514    # we'll have.
9515
9516 cat >>confdefs.h <<\_ACEOF
9517 #define HAVE_MEMMOVE 1
9518 _ACEOF
9519
9520
9521 cat >>confdefs.h <<\_ACEOF
9522 #define HAVE_MEMCPY 1
9523 _ACEOF
9524
9525
9526 cat >>confdefs.h <<\_ACEOF
9527 #define HAVE_STRERROR 1
9528 _ACEOF
9529
9530
9531 cat >>confdefs.h <<\_ACEOF
9532 #define HAVE_TIME 1
9533 _ACEOF
9534
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define HAVE_GMTIME_R 1
9538 _ACEOF
9539
9540
9541 cat >>confdefs.h <<\_ACEOF
9542 #define HAVE_LOCALTIME_R 1
9543 _ACEOF
9544
9545
9546 cat >>confdefs.h <<\_ACEOF
9547 #define HAVE_USLEEP_DECL 1
9548 _ACEOF
9549
9550    # This is only for POSIX threads.
9551
9552 cat >>confdefs.h <<\_ACEOF
9553 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9554 _ACEOF
9555
9556    # We also assume we are using gcc, which provides alloca.
9557    cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_ALLOCA 1
9559 _ACEOF
9560
9561
9562    # Assume we do not have getuid and friends.
9563
9564 cat >>confdefs.h <<\_ACEOF
9565 #define NO_GETUID 1
9566 _ACEOF
9567
9568    PLATFORMNET=NoNet
9569 else
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9606                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9607                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9608                    nl_langinfo setlocale \
9609                    inet_pton uname inet_ntoa \
9610                    fork execvp pipe sigaction ftruncate mmap \
9611                    getifaddrs
9612 do
9613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9614 echo "$as_me:$LINENO: checking for $ac_func" >&5
9615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9616 if eval "test \"\${$as_ac_var+set}\" = set"; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   if test x$gcc_no_link = xyes; then
9620   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9621 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9622    { (exit 1); exit 1; }; }
9623 fi
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h.  */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h.  */
9630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9632 #define $ac_func innocuous_$ac_func
9633
9634 /* System header to define __stub macros and hopefully few prototypes,
9635     which can conflict with char $ac_func (); below.
9636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9637     <limits.h> exists even on freestanding compilers.  */
9638
9639 #ifdef __STDC__
9640 # include <limits.h>
9641 #else
9642 # include <assert.h>
9643 #endif
9644
9645 #undef $ac_func
9646
9647 /* Override any gcc2 internal prototype to avoid an error.  */
9648 #ifdef __cplusplus
9649 extern "C"
9650 {
9651 #endif
9652 /* We use char because int might match the return type of a gcc2
9653    builtin and then its argument prototype would still apply.  */
9654 char $ac_func ();
9655 /* The GNU C library defines this for functions which it implements
9656     to always fail with ENOSYS.  Some functions are actually named
9657     something starting with __ and the normal name is an alias.  */
9658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9659 choke me
9660 #else
9661 char (*f) () = $ac_func;
9662 #endif
9663 #ifdef __cplusplus
9664 }
9665 #endif
9666
9667 int
9668 main ()
9669 {
9670 return f != $ac_func;
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677   (eval $ac_link) 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } &&
9684          { ac_try='test -z "$ac_c_werror_flag"
9685                          || test ! -s conftest.err'
9686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687   (eval $ac_try) 2>&5
9688   ac_status=$?
9689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690   (exit $ac_status); }; } &&
9691          { ac_try='test -s conftest$ac_exeext'
9692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693   (eval $ac_try) 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; }; then
9697   eval "$as_ac_var=yes"
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 eval "$as_ac_var=no"
9703 fi
9704 rm -f conftest.err conftest.$ac_objext \
9705       conftest$ac_exeext conftest.$ac_ext
9706 fi
9707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9709 if test `eval echo '${'$as_ac_var'}'` = yes; then
9710   cat >>confdefs.h <<_ACEOF
9711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9712 _ACEOF
9713
9714 fi
9715 done
9716
9717
9718
9719 for ac_func in inet_aton inet_addr
9720 do
9721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9722 echo "$as_me:$LINENO: checking for $ac_func" >&5
9723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9724 if eval "test \"\${$as_ac_var+set}\" = set"; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   if test x$gcc_no_link = xyes; then
9728   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9730    { (exit 1); exit 1; }; }
9731 fi
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h.  */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h.  */
9738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9740 #define $ac_func innocuous_$ac_func
9741
9742 /* System header to define __stub macros and hopefully few prototypes,
9743     which can conflict with char $ac_func (); below.
9744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745     <limits.h> exists even on freestanding compilers.  */
9746
9747 #ifdef __STDC__
9748 # include <limits.h>
9749 #else
9750 # include <assert.h>
9751 #endif
9752
9753 #undef $ac_func
9754
9755 /* Override any gcc2 internal prototype to avoid an error.  */
9756 #ifdef __cplusplus
9757 extern "C"
9758 {
9759 #endif
9760 /* We use char because int might match the return type of a gcc2
9761    builtin and then its argument prototype would still apply.  */
9762 char $ac_func ();
9763 /* The GNU C library defines this for functions which it implements
9764     to always fail with ENOSYS.  Some functions are actually named
9765     something starting with __ and the normal name is an alias.  */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9767 choke me
9768 #else
9769 char (*f) () = $ac_func;
9770 #endif
9771 #ifdef __cplusplus
9772 }
9773 #endif
9774
9775 int
9776 main ()
9777 {
9778 return f != $ac_func;
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785   (eval $ac_link) 2>conftest.er1
9786   ac_status=$?
9787   grep -v '^ *+' conftest.er1 >conftest.err
9788   rm -f conftest.er1
9789   cat conftest.err >&5
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -z "$ac_c_werror_flag"
9793                          || test ! -s conftest.err'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; } &&
9799          { ac_try='test -s conftest$ac_exeext'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   eval "$as_ac_var=yes"
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 eval "$as_ac_var=no"
9811 fi
9812 rm -f conftest.err conftest.$ac_objext \
9813       conftest$ac_exeext conftest.$ac_ext
9814 fi
9815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9817 if test `eval echo '${'$as_ac_var'}'` = yes; then
9818   cat >>confdefs.h <<_ACEOF
9819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9820 _ACEOF
9821  break
9822 fi
9823 done
9824
9825    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9827 if test "${ac_cv_header_stdc+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   cat >conftest.$ac_ext <<_ACEOF
9831 /* confdefs.h.  */
9832 _ACEOF
9833 cat confdefs.h >>conftest.$ac_ext
9834 cat >>conftest.$ac_ext <<_ACEOF
9835 /* end confdefs.h.  */
9836 #include <stdlib.h>
9837 #include <stdarg.h>
9838 #include <string.h>
9839 #include <float.h>
9840
9841 int
9842 main ()
9843 {
9844
9845   ;
9846   return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext
9850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9851   (eval $ac_compile) 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } &&
9858          { ac_try='test -z "$ac_c_werror_flag"
9859                          || test ! -s conftest.err'
9860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861   (eval $ac_try) 2>&5
9862   ac_status=$?
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); }; } &&
9865          { ac_try='test -s conftest.$ac_objext'
9866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867   (eval $ac_try) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; }; then
9871   ac_cv_header_stdc=yes
9872 else
9873   echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9875
9876 ac_cv_header_stdc=no
9877 fi
9878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9879
9880 if test $ac_cv_header_stdc = yes; then
9881   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9882   cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 #include <string.h>
9889
9890 _ACEOF
9891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9892   $EGREP "memchr" >/dev/null 2>&1; then
9893   :
9894 else
9895   ac_cv_header_stdc=no
9896 fi
9897 rm -f conftest*
9898
9899 fi
9900
9901 if test $ac_cv_header_stdc = yes; then
9902   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9903   cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909 #include <stdlib.h>
9910
9911 _ACEOF
9912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9913   $EGREP "free" >/dev/null 2>&1; then
9914   :
9915 else
9916   ac_cv_header_stdc=no
9917 fi
9918 rm -f conftest*
9919
9920 fi
9921
9922 if test $ac_cv_header_stdc = yes; then
9923   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9924   if test "$cross_compiling" = yes; then
9925   :
9926 else
9927   cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933 #include <ctype.h>
9934 #if ((' ' & 0x0FF) == 0x020)
9935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9937 #else
9938 # define ISLOWER(c) \
9939                    (('a' <= (c) && (c) <= 'i') \
9940                      || ('j' <= (c) && (c) <= 'r') \
9941                      || ('s' <= (c) && (c) <= 'z'))
9942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9943 #endif
9944
9945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9946 int
9947 main ()
9948 {
9949   int i;
9950   for (i = 0; i < 256; i++)
9951     if (XOR (islower (i), ISLOWER (i))
9952         || toupper (i) != TOUPPER (i))
9953       exit(2);
9954   exit (0);
9955 }
9956 _ACEOF
9957 rm -f conftest$ac_exeext
9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9959   (eval $ac_link) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   :
9969 else
9970   echo "$as_me: program exited with status $ac_status" >&5
9971 echo "$as_me: failed program was:" >&5
9972 sed 's/^/| /' conftest.$ac_ext >&5
9973
9974 ( exit $ac_status )
9975 ac_cv_header_stdc=no
9976 fi
9977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9978 fi
9979 fi
9980 fi
9981 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9982 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9983 if test $ac_cv_header_stdc = yes; then
9984
9985 cat >>confdefs.h <<\_ACEOF
9986 #define STDC_HEADERS 1
9987 _ACEOF
9988
9989 fi
9990
9991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10002                   inttypes.h stdint.h unistd.h
10003 do
10004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10005 echo "$as_me:$LINENO: checking for $ac_header" >&5
10006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10008   echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010   cat >conftest.$ac_ext <<_ACEOF
10011 /* confdefs.h.  */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h.  */
10016 $ac_includes_default
10017
10018 #include <$ac_header>
10019 _ACEOF
10020 rm -f conftest.$ac_objext
10021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10022   (eval $ac_compile) 2>conftest.er1
10023   ac_status=$?
10024   grep -v '^ *+' conftest.er1 >conftest.err
10025   rm -f conftest.er1
10026   cat conftest.err >&5
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); } &&
10029          { ac_try='test -z "$ac_c_werror_flag"
10030                          || test ! -s conftest.err'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; } &&
10036          { ac_try='test -s conftest.$ac_objext'
10037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038   (eval $ac_try) 2>&5
10039   ac_status=$?
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   (exit $ac_status); }; }; then
10042   eval "$as_ac_Header=yes"
10043 else
10044   echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047 eval "$as_ac_Header=no"
10048 fi
10049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10050 fi
10051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10054   cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10056 _ACEOF
10057
10058 fi
10059
10060 done
10061
10062
10063
10064
10065
10066 for ac_header in execinfo.h unistd.h dlfcn.h
10067 do
10068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10070   echo "$as_me:$LINENO: checking for $ac_header" >&5
10071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 fi
10075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10077 else
10078   # Is the header compilable?
10079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 $ac_includes_default
10088 #include <$ac_header>
10089 _ACEOF
10090 rm -f conftest.$ac_objext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10092   (eval $ac_compile) 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag"
10100                          || test ! -s conftest.err'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; } &&
10106          { ac_try='test -s conftest.$ac_objext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   ac_header_compiler=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_header_compiler=no
10118 fi
10119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10121 echo "${ECHO_T}$ac_header_compiler" >&6
10122
10123 # Is the header present?
10124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132 #include <$ac_header>
10133 _ACEOF
10134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10136   ac_status=$?
10137   grep -v '^ *+' conftest.er1 >conftest.err
10138   rm -f conftest.er1
10139   cat conftest.err >&5
10140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141   (exit $ac_status); } >/dev/null; then
10142   if test -s conftest.err; then
10143     ac_cpp_err=$ac_c_preproc_warn_flag
10144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10145   else
10146     ac_cpp_err=
10147   fi
10148 else
10149   ac_cpp_err=yes
10150 fi
10151 if test -z "$ac_cpp_err"; then
10152   ac_header_preproc=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157   ac_header_preproc=no
10158 fi
10159 rm -f conftest.err conftest.$ac_ext
10160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10161 echo "${ECHO_T}$ac_header_preproc" >&6
10162
10163 # So?  What about this header?
10164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10165   yes:no: )
10166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10170     ac_header_preproc=yes
10171     ;;
10172   no:yes:* )
10173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10185     (
10186       cat <<\_ASBOX
10187 ## ---------------------------------- ##
10188 ## Report this to the libjava lists.  ##
10189 ## ---------------------------------- ##
10190 _ASBOX
10191     ) |
10192       sed "s/^/$as_me: WARNING:     /" >&2
10193     ;;
10194 esac
10195 echo "$as_me:$LINENO: checking for $ac_header" >&5
10196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   eval "$as_ac_Header=\$ac_header_preproc"
10201 fi
10202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10204
10205 fi
10206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10207   cat >>confdefs.h <<_ACEOF
10208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10209 _ACEOF
10210
10211 fi
10212
10213 done
10214
10215    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10216    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10217 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10218 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-ldl  $LIBS"
10223 if test x$gcc_no_link = xyes; then
10224   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10226    { (exit 1); exit 1; }; }
10227 fi
10228 cat >conftest.$ac_ext <<_ACEOF
10229 /* confdefs.h.  */
10230 _ACEOF
10231 cat confdefs.h >>conftest.$ac_ext
10232 cat >>conftest.$ac_ext <<_ACEOF
10233 /* end confdefs.h.  */
10234
10235 /* Override any gcc2 internal prototype to avoid an error.  */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 /* We use char because int might match the return type of a gcc2
10240    builtin and then its argument prototype would still apply.  */
10241 char dladdr ();
10242 int
10243 main ()
10244 {
10245 dladdr ();
10246   ;
10247   return 0;
10248 }
10249 _ACEOF
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10252   (eval $ac_link) 2>conftest.er1
10253   ac_status=$?
10254   grep -v '^ *+' conftest.er1 >conftest.err
10255   rm -f conftest.er1
10256   cat conftest.err >&5
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); } &&
10259          { ac_try='test -z "$ac_c_werror_flag"
10260                          || test ! -s conftest.err'
10261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262   (eval $ac_try) 2>&5
10263   ac_status=$?
10264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265   (exit $ac_status); }; } &&
10266          { ac_try='test -s conftest$ac_exeext'
10267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268   (eval $ac_try) 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; }; then
10272   ac_cv_lib_dl_dladdr=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_cv_lib_dl_dladdr=no
10278 fi
10279 rm -f conftest.err conftest.$ac_objext \
10280       conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10282 fi
10283 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10284 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10285 if test $ac_cv_lib_dl_dladdr = yes; then
10286
10287
10288 cat >>confdefs.h <<\_ACEOF
10289 #define HAVE_DLADDR 1
10290 _ACEOF
10291
10292 else
10293
10294        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10295 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10296 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10297   echo $ECHO_N "(cached) $ECHO_C" >&6
10298 else
10299   ac_check_lib_save_LIBS=$LIBS
10300 LIBS="-ldld  $LIBS"
10301 if test x$gcc_no_link = xyes; then
10302   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10304    { (exit 1); exit 1; }; }
10305 fi
10306 cat >conftest.$ac_ext <<_ACEOF
10307 /* confdefs.h.  */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h.  */
10312
10313 /* Override any gcc2 internal prototype to avoid an error.  */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 /* We use char because int might match the return type of a gcc2
10318    builtin and then its argument prototype would still apply.  */
10319 char dladdr ();
10320 int
10321 main ()
10322 {
10323 dladdr ();
10324   ;
10325   return 0;
10326 }
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10330   (eval $ac_link) 2>conftest.er1
10331   ac_status=$?
10332   grep -v '^ *+' conftest.er1 >conftest.err
10333   rm -f conftest.er1
10334   cat conftest.err >&5
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } &&
10337          { ac_try='test -z "$ac_c_werror_flag"
10338                          || test ! -s conftest.err'
10339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340   (eval $ac_try) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; } &&
10344          { ac_try='test -s conftest$ac_exeext'
10345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346   (eval $ac_try) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; }; then
10350   ac_cv_lib_dld_dladdr=yes
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 ac_cv_lib_dld_dladdr=no
10356 fi
10357 rm -f conftest.err conftest.$ac_objext \
10358       conftest$ac_exeext conftest.$ac_ext
10359 LIBS=$ac_check_lib_save_LIBS
10360 fi
10361 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10362 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10363 if test $ac_cv_lib_dld_dladdr = yes; then
10364
10365
10366 cat >>confdefs.h <<\_ACEOF
10367 #define HAVE_DLADDR 1
10368 _ACEOF
10369
10370 fi
10371
10372 fi
10373
10374
10375    if test x"$cross_compiling" = x"no"; then
10376      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10377 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10378 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10379   echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381   test "$cross_compiling" = yes &&
10382   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10383 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10384    { (exit 1); exit 1; }; }
10385 if test -r "/proc/self/exe"; then
10386   ac_cv_file__proc_self_exe=yes
10387 else
10388   ac_cv_file__proc_self_exe=no
10389 fi
10390 fi
10391 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10392 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10393 if test $ac_cv_file__proc_self_exe = yes; then
10394
10395 cat >>confdefs.h <<_ACEOF
10396 #define HAVE__PROC_SELF_EXE 1
10397 _ACEOF
10398
10399
10400
10401 cat >>confdefs.h <<\_ACEOF
10402 #define HAVE_PROC_SELF_EXE 1
10403 _ACEOF
10404
10405 fi
10406
10407      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
10408 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
10409 if test "${ac_cv_file__proc_self_maps+set}" = set; then
10410   echo $ECHO_N "(cached) $ECHO_C" >&6
10411 else
10412   test "$cross_compiling" = yes &&
10413   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10414 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10415    { (exit 1); exit 1; }; }
10416 if test -r "/proc/self/maps"; then
10417   ac_cv_file__proc_self_maps=yes
10418 else
10419   ac_cv_file__proc_self_maps=no
10420 fi
10421 fi
10422 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
10423 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
10424 if test $ac_cv_file__proc_self_maps = yes; then
10425
10426 cat >>confdefs.h <<_ACEOF
10427 #define HAVE__PROC_SELF_MAPS 1
10428 _ACEOF
10429
10430
10431
10432 cat >>confdefs.h <<\_ACEOF
10433 #define HAVE_PROC_SELF_MAPS 1
10434 _ACEOF
10435
10436 fi
10437
10438    else
10439      case $host in
10440      *-linux*)
10441
10442 cat >>confdefs.h <<\_ACEOF
10443 #define HAVE_PROC_SELF_EXE 1
10444 _ACEOF
10445
10446
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_PROC_SELF_MAPS 1
10449 _ACEOF
10450
10451        ;;
10452      esac
10453    fi
10454
10455
10456       if test "X$prefix" = "XNONE"; then
10457     acl_final_prefix="$ac_default_prefix"
10458   else
10459     acl_final_prefix="$prefix"
10460   fi
10461   if test "X$exec_prefix" = "XNONE"; then
10462     acl_final_exec_prefix='${prefix}'
10463   else
10464     acl_final_exec_prefix="$exec_prefix"
10465   fi
10466   acl_save_prefix="$prefix"
10467   prefix="$acl_final_prefix"
10468   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10469   prefix="$acl_save_prefix"
10470
10471
10472 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10473 if test "${with_gnu_ld+set}" = set; then
10474   withval="$with_gnu_ld"
10475   test "$withval" = no || with_gnu_ld=yes
10476 else
10477   with_gnu_ld=no
10478 fi;
10479 # Prepare PATH_SEPARATOR.
10480 # The user is always right.
10481 if test "${PATH_SEPARATOR+set}" != set; then
10482   echo "#! /bin/sh" >conf$$.sh
10483   echo  "exit 0"   >>conf$$.sh
10484   chmod +x conf$$.sh
10485   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10486     PATH_SEPARATOR=';'
10487   else
10488     PATH_SEPARATOR=:
10489   fi
10490   rm -f conf$$.sh
10491 fi
10492 ac_prog=ld
10493 if test "$GCC" = yes; then
10494   # Check if gcc -print-prog-name=ld gives a path.
10495   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10496 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10497   case $host in
10498   *-*-mingw*)
10499     # gcc leaves a trailing carriage return which upsets mingw
10500     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10501   *)
10502     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10503   esac
10504   case $ac_prog in
10505     # Accept absolute paths.
10506     [\\/]* | [A-Za-z]:[\\/]*)
10507       re_direlt='/[^/][^/]*/\.\./'
10508       # Canonicalize the path of ld
10509       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10510       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10511         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10512       done
10513       test -z "$LD" && LD="$ac_prog"
10514       ;;
10515   "")
10516     # If it fails, then pretend we aren't using GCC.
10517     ac_prog=ld
10518     ;;
10519   *)
10520     # If it is relative, then search for the first ld in PATH.
10521     with_gnu_ld=unknown
10522     ;;
10523   esac
10524 elif test "$with_gnu_ld" = yes; then
10525   echo "$as_me:$LINENO: checking for GNU ld" >&5
10526 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10527 else
10528   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10529 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10530 fi
10531 if test "${acl_cv_path_LD+set}" = set; then
10532   echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534   if test -z "$LD"; then
10535   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10536   for ac_dir in $PATH; do
10537     test -z "$ac_dir" && ac_dir=.
10538     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10539       acl_cv_path_LD="$ac_dir/$ac_prog"
10540       # Check to see if the program is GNU ld.  I'd rather use --version,
10541       # but apparently some GNU ld's only accept -v.
10542       # Break only if it was the GNU/non-GNU ld that we prefer.
10543       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10544         test "$with_gnu_ld" != no && break
10545       else
10546         test "$with_gnu_ld" != yes && break
10547       fi
10548     fi
10549   done
10550   IFS="$ac_save_ifs"
10551 else
10552   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10553 fi
10554 fi
10555
10556 LD="$acl_cv_path_LD"
10557 if test -n "$LD"; then
10558   echo "$as_me:$LINENO: result: $LD" >&5
10559 echo "${ECHO_T}$LD" >&6
10560 else
10561   echo "$as_me:$LINENO: result: no" >&5
10562 echo "${ECHO_T}no" >&6
10563 fi
10564 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10565 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10566    { (exit 1); exit 1; }; }
10567 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10568 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10569 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10570   echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10573 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10574   acl_cv_prog_gnu_ld=yes
10575 else
10576   acl_cv_prog_gnu_ld=no
10577 fi
10578 fi
10579 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10580 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10581 with_gnu_ld=$acl_cv_prog_gnu_ld
10582
10583
10584
10585                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10586 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10587 if test "${acl_cv_rpath+set}" = set; then
10588   echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590
10591     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10592     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10593     . ./conftest.sh
10594     rm -f ./conftest.sh
10595     acl_cv_rpath=done
10596
10597 fi
10598 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10599 echo "${ECHO_T}$acl_cv_rpath" >&6
10600   wl="$acl_cv_wl"
10601   libext="$acl_cv_libext"
10602   shlibext="$acl_cv_shlibext"
10603   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10604   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10605   hardcode_direct="$acl_cv_hardcode_direct"
10606   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10607     # Check whether --enable-rpath or --disable-rpath was given.
10608 if test "${enable_rpath+set}" = set; then
10609   enableval="$enable_rpath"
10610   :
10611 else
10612   enable_rpath=yes
10613 fi;
10614
10615
10616
10617
10618
10619
10620
10621     use_additional=yes
10622
10623   acl_save_prefix="$prefix"
10624   prefix="$acl_final_prefix"
10625   acl_save_exec_prefix="$exec_prefix"
10626   exec_prefix="$acl_final_exec_prefix"
10627
10628     eval additional_includedir=\"$includedir\"
10629     eval additional_libdir=\"$libdir\"
10630
10631   exec_prefix="$acl_save_exec_prefix"
10632   prefix="$acl_save_prefix"
10633
10634
10635 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10636 if test "${with_libiconv_prefix+set}" = set; then
10637   withval="$with_libiconv_prefix"
10638
10639     if test "X$withval" = "Xno"; then
10640       use_additional=no
10641     else
10642       if test "X$withval" = "X"; then
10643
10644   acl_save_prefix="$prefix"
10645   prefix="$acl_final_prefix"
10646   acl_save_exec_prefix="$exec_prefix"
10647   exec_prefix="$acl_final_exec_prefix"
10648
10649           eval additional_includedir=\"$includedir\"
10650           eval additional_libdir=\"$libdir\"
10651
10652   exec_prefix="$acl_save_exec_prefix"
10653   prefix="$acl_save_prefix"
10654
10655       else
10656         additional_includedir="$withval/include"
10657         additional_libdir="$withval/lib"
10658       fi
10659     fi
10660
10661 fi;
10662       LIBICONV=
10663   LTLIBICONV=
10664   INCICONV=
10665   rpathdirs=
10666   ltrpathdirs=
10667   names_already_handled=
10668   names_next_round='iconv '
10669   while test -n "$names_next_round"; do
10670     names_this_round="$names_next_round"
10671     names_next_round=
10672     for name in $names_this_round; do
10673       already_handled=
10674       for n in $names_already_handled; do
10675         if test "$n" = "$name"; then
10676           already_handled=yes
10677           break
10678         fi
10679       done
10680       if test -z "$already_handled"; then
10681         names_already_handled="$names_already_handled $name"
10682                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10683         eval value=\"\$HAVE_LIB$uppername\"
10684         if test -n "$value"; then
10685           if test "$value" = yes; then
10686             eval value=\"\$LIB$uppername\"
10687             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10688             eval value=\"\$LTLIB$uppername\"
10689             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10690           else
10691                                     :
10692           fi
10693         else
10694                               found_dir=
10695           found_la=
10696           found_so=
10697           found_a=
10698           if test $use_additional = yes; then
10699             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10700               found_dir="$additional_libdir"
10701               found_so="$additional_libdir/lib$name.$shlibext"
10702               if test -f "$additional_libdir/lib$name.la"; then
10703                 found_la="$additional_libdir/lib$name.la"
10704               fi
10705             else
10706               if test -f "$additional_libdir/lib$name.$libext"; then
10707                 found_dir="$additional_libdir"
10708                 found_a="$additional_libdir/lib$name.$libext"
10709                 if test -f "$additional_libdir/lib$name.la"; then
10710                   found_la="$additional_libdir/lib$name.la"
10711                 fi
10712               fi
10713             fi
10714           fi
10715           if test "X$found_dir" = "X"; then
10716             for x in $LDFLAGS $LTLIBICONV; do
10717
10718   acl_save_prefix="$prefix"
10719   prefix="$acl_final_prefix"
10720   acl_save_exec_prefix="$exec_prefix"
10721   exec_prefix="$acl_final_exec_prefix"
10722   eval x=\"$x\"
10723   exec_prefix="$acl_save_exec_prefix"
10724   prefix="$acl_save_prefix"
10725
10726               case "$x" in
10727                 -L*)
10728                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10729                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10730                     found_dir="$dir"
10731                     found_so="$dir/lib$name.$shlibext"
10732                     if test -f "$dir/lib$name.la"; then
10733                       found_la="$dir/lib$name.la"
10734                     fi
10735                   else
10736                     if test -f "$dir/lib$name.$libext"; then
10737                       found_dir="$dir"
10738                       found_a="$dir/lib$name.$libext"
10739                       if test -f "$dir/lib$name.la"; then
10740                         found_la="$dir/lib$name.la"
10741                       fi
10742                     fi
10743                   fi
10744                   ;;
10745               esac
10746               if test "X$found_dir" != "X"; then
10747                 break
10748               fi
10749             done
10750           fi
10751           if test "X$found_dir" != "X"; then
10752                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10753             if test "X$found_so" != "X"; then
10754                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10755                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10756               else
10757                                                                                 haveit=
10758                 for x in $ltrpathdirs; do
10759                   if test "X$x" = "X$found_dir"; then
10760                     haveit=yes
10761                     break
10762                   fi
10763                 done
10764                 if test -z "$haveit"; then
10765                   ltrpathdirs="$ltrpathdirs $found_dir"
10766                 fi
10767                                 if test "$hardcode_direct" = yes; then
10768                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10769                 else
10770                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10771                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10772                                                             haveit=
10773                     for x in $rpathdirs; do
10774                       if test "X$x" = "X$found_dir"; then
10775                         haveit=yes
10776                         break
10777                       fi
10778                     done
10779                     if test -z "$haveit"; then
10780                       rpathdirs="$rpathdirs $found_dir"
10781                     fi
10782                   else
10783                                                                                 haveit=
10784                     for x in $LDFLAGS $LIBICONV; do
10785
10786   acl_save_prefix="$prefix"
10787   prefix="$acl_final_prefix"
10788   acl_save_exec_prefix="$exec_prefix"
10789   exec_prefix="$acl_final_exec_prefix"
10790   eval x=\"$x\"
10791   exec_prefix="$acl_save_exec_prefix"
10792   prefix="$acl_save_prefix"
10793
10794                       if test "X$x" = "X-L$found_dir"; then
10795                         haveit=yes
10796                         break
10797                       fi
10798                     done
10799                     if test -z "$haveit"; then
10800                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10801                     fi
10802                     if test "$hardcode_minus_L" != no; then
10803                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10804                     else
10805                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10806                     fi
10807                   fi
10808                 fi
10809               fi
10810             else
10811               if test "X$found_a" != "X"; then
10812                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10813               else
10814                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10815               fi
10816             fi
10817                         additional_includedir=
10818             case "$found_dir" in
10819               */lib | */lib/)
10820                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10821                 additional_includedir="$basedir/include"
10822                 ;;
10823             esac
10824             if test "X$additional_includedir" != "X"; then
10825                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10826                 haveit=
10827                 if test "X$additional_includedir" = "X/usr/local/include"; then
10828                   if test -n "$GCC"; then
10829                     case $host_os in
10830                       linux*) haveit=yes;;
10831                     esac
10832                   fi
10833                 fi
10834                 if test -z "$haveit"; then
10835                   for x in $CPPFLAGS $INCICONV; do
10836
10837   acl_save_prefix="$prefix"
10838   prefix="$acl_final_prefix"
10839   acl_save_exec_prefix="$exec_prefix"
10840   exec_prefix="$acl_final_exec_prefix"
10841   eval x=\"$x\"
10842   exec_prefix="$acl_save_exec_prefix"
10843   prefix="$acl_save_prefix"
10844
10845                     if test "X$x" = "X-I$additional_includedir"; then
10846                       haveit=yes
10847                       break
10848                     fi
10849                   done
10850                   if test -z "$haveit"; then
10851                     if test -d "$additional_includedir"; then
10852                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10853                     fi
10854                   fi
10855                 fi
10856               fi
10857             fi
10858                         if test -n "$found_la"; then
10859                                                         save_libdir="$libdir"
10860               case "$found_la" in
10861                 */* | *\\*) . "$found_la" ;;
10862                 *) . "./$found_la" ;;
10863               esac
10864               libdir="$save_libdir"
10865                             for dep in $dependency_libs; do
10866                 case "$dep" in
10867                   -L*)
10868                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10869                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10870                       haveit=
10871                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10872                         if test -n "$GCC"; then
10873                           case $host_os in
10874                             linux*) haveit=yes;;
10875                           esac
10876                         fi
10877                       fi
10878                       if test -z "$haveit"; then
10879                         haveit=
10880                         for x in $LDFLAGS $LIBICONV; do
10881
10882   acl_save_prefix="$prefix"
10883   prefix="$acl_final_prefix"
10884   acl_save_exec_prefix="$exec_prefix"
10885   exec_prefix="$acl_final_exec_prefix"
10886   eval x=\"$x\"
10887   exec_prefix="$acl_save_exec_prefix"
10888   prefix="$acl_save_prefix"
10889
10890                           if test "X$x" = "X-L$additional_libdir"; then
10891                             haveit=yes
10892                             break
10893                           fi
10894                         done
10895                         if test -z "$haveit"; then
10896                           if test -d "$additional_libdir"; then
10897                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10898                           fi
10899                         fi
10900                         haveit=
10901                         for x in $LDFLAGS $LTLIBICONV; do
10902
10903   acl_save_prefix="$prefix"
10904   prefix="$acl_final_prefix"
10905   acl_save_exec_prefix="$exec_prefix"
10906   exec_prefix="$acl_final_exec_prefix"
10907   eval x=\"$x\"
10908   exec_prefix="$acl_save_exec_prefix"
10909   prefix="$acl_save_prefix"
10910
10911                           if test "X$x" = "X-L$additional_libdir"; then
10912                             haveit=yes
10913                             break
10914                           fi
10915                         done
10916                         if test -z "$haveit"; then
10917                           if test -d "$additional_libdir"; then
10918                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10919                           fi
10920                         fi
10921                       fi
10922                     fi
10923                     ;;
10924                   -R*)
10925                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10926                     if test "$enable_rpath" != no; then
10927                                                                   haveit=
10928                       for x in $rpathdirs; do
10929                         if test "X$x" = "X$dir"; then
10930                           haveit=yes
10931                           break
10932                         fi
10933                       done
10934                       if test -z "$haveit"; then
10935                         rpathdirs="$rpathdirs $dir"
10936                       fi
10937                                                                   haveit=
10938                       for x in $ltrpathdirs; do
10939                         if test "X$x" = "X$dir"; then
10940                           haveit=yes
10941                           break
10942                         fi
10943                       done
10944                       if test -z "$haveit"; then
10945                         ltrpathdirs="$ltrpathdirs $dir"
10946                       fi
10947                     fi
10948                     ;;
10949                   -l*)
10950                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10951                     ;;
10952                   *.la)
10953                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10954                     ;;
10955                   *)
10956                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10957                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10958                     ;;
10959                 esac
10960               done
10961             fi
10962           else
10963                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10964             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10965           fi
10966         fi
10967       fi
10968     done
10969   done
10970   if test "X$rpathdirs" != "X"; then
10971     if test -n "$hardcode_libdir_separator"; then
10972                         alldirs=
10973       for found_dir in $rpathdirs; do
10974         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10975       done
10976             acl_save_libdir="$libdir"
10977       libdir="$alldirs"
10978       eval flag=\"$hardcode_libdir_flag_spec\"
10979       libdir="$acl_save_libdir"
10980       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10981     else
10982             for found_dir in $rpathdirs; do
10983         acl_save_libdir="$libdir"
10984         libdir="$found_dir"
10985         eval flag=\"$hardcode_libdir_flag_spec\"
10986         libdir="$acl_save_libdir"
10987         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10988       done
10989     fi
10990   fi
10991   if test "X$ltrpathdirs" != "X"; then
10992             for found_dir in $ltrpathdirs; do
10993       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10994     done
10995   fi
10996
10997
10998
10999
11000
11001
11002
11003           am_save_CPPFLAGS="$CPPFLAGS"
11004
11005   for element in $INCICONV; do
11006     haveit=
11007     for x in $CPPFLAGS; do
11008
11009   acl_save_prefix="$prefix"
11010   prefix="$acl_final_prefix"
11011   acl_save_exec_prefix="$exec_prefix"
11012   exec_prefix="$acl_final_exec_prefix"
11013   eval x=\"$x\"
11014   exec_prefix="$acl_save_exec_prefix"
11015   prefix="$acl_save_prefix"
11016
11017       if test "X$x" = "X$element"; then
11018         haveit=yes
11019         break
11020       fi
11021     done
11022     if test -z "$haveit"; then
11023       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11024     fi
11025   done
11026
11027
11028   echo "$as_me:$LINENO: checking for iconv" >&5
11029 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11030 if test "${am_cv_func_iconv+set}" = set; then
11031   echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033
11034     am_cv_func_iconv="no, consider installing GNU libiconv"
11035     am_cv_lib_iconv=no
11036     if test x$gcc_no_link = xyes; then
11037   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11039    { (exit 1); exit 1; }; }
11040 fi
11041 cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047 #include <stdlib.h>
11048 #include <iconv.h>
11049 int
11050 main ()
11051 {
11052 iconv_t cd = iconv_open("","");
11053        iconv(cd,NULL,NULL,NULL,NULL);
11054        iconv_close(cd);
11055   ;
11056   return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061   (eval $ac_link) 2>conftest.er1
11062   ac_status=$?
11063   grep -v '^ *+' conftest.er1 >conftest.err
11064   rm -f conftest.er1
11065   cat conftest.err >&5
11066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067   (exit $ac_status); } &&
11068          { ac_try='test -z "$ac_c_werror_flag"
11069                          || test ! -s conftest.err'
11070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071   (eval $ac_try) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); }; } &&
11075          { ac_try='test -s conftest$ac_exeext'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   am_cv_func_iconv=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 fi
11087 rm -f conftest.err conftest.$ac_objext \
11088       conftest$ac_exeext conftest.$ac_ext
11089     if test "$am_cv_func_iconv" != yes; then
11090       am_save_LIBS="$LIBS"
11091       LIBS="$LIBS $LIBICONV"
11092       if test x$gcc_no_link = xyes; then
11093   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11095    { (exit 1); exit 1; }; }
11096 fi
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103 #include <stdlib.h>
11104 #include <iconv.h>
11105 int
11106 main ()
11107 {
11108 iconv_t cd = iconv_open("","");
11109          iconv(cd,NULL,NULL,NULL,NULL);
11110          iconv_close(cd);
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11117   (eval $ac_link) 2>conftest.er1
11118   ac_status=$?
11119   grep -v '^ *+' conftest.er1 >conftest.err
11120   rm -f conftest.er1
11121   cat conftest.err >&5
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -z "$ac_c_werror_flag"
11125                          || test ! -s conftest.err'
11126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127   (eval $ac_try) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; } &&
11131          { ac_try='test -s conftest$ac_exeext'
11132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133   (eval $ac_try) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; }; then
11137   am_cv_lib_iconv=yes
11138         am_cv_func_iconv=yes
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 fi
11144 rm -f conftest.err conftest.$ac_objext \
11145       conftest$ac_exeext conftest.$ac_ext
11146       LIBS="$am_save_LIBS"
11147     fi
11148
11149 fi
11150 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11151 echo "${ECHO_T}$am_cv_func_iconv" >&6
11152   if test "$am_cv_func_iconv" = yes; then
11153
11154 cat >>confdefs.h <<\_ACEOF
11155 #define HAVE_ICONV 1
11156 _ACEOF
11157
11158   fi
11159   if test "$am_cv_lib_iconv" = yes; then
11160     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11161 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11162     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11163 echo "${ECHO_T}$LIBICONV" >&6
11164   else
11165             CPPFLAGS="$am_save_CPPFLAGS"
11166     LIBICONV=
11167     LTLIBICONV=
11168   fi
11169
11170
11171
11172   if test "$am_cv_func_iconv" = yes; then
11173     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11174 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11175     if test "${am_cv_proto_iconv+set}" = set; then
11176   echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178
11179       cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185
11186 #include <stdlib.h>
11187 #include <iconv.h>
11188 extern
11189 #ifdef __cplusplus
11190 "C"
11191 #endif
11192 #if defined(__STDC__) || defined(__cplusplus)
11193 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11194 #else
11195 size_t iconv();
11196 #endif
11197
11198 int
11199 main ()
11200 {
11201
11202   ;
11203   return 0;
11204 }
11205 _ACEOF
11206 rm -f conftest.$ac_objext
11207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208   (eval $ac_compile) 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } &&
11215          { ac_try='test -z "$ac_c_werror_flag"
11216                          || test ! -s conftest.err'
11217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218   (eval $ac_try) 2>&5
11219   ac_status=$?
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); }; } &&
11222          { ac_try='test -s conftest.$ac_objext'
11223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224   (eval $ac_try) 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); }; }; then
11228   am_cv_proto_iconv_arg1=""
11229 else
11230   echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233 am_cv_proto_iconv_arg1="const"
11234 fi
11235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11236       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);"
11237 fi
11238
11239     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11240     echo "$as_me:$LINENO: result: ${ac_t:-
11241          }$am_cv_proto_iconv" >&5
11242 echo "${ECHO_T}${ac_t:-
11243          }$am_cv_proto_iconv" >&6
11244
11245 cat >>confdefs.h <<_ACEOF
11246 #define ICONV_CONST $am_cv_proto_iconv_arg1
11247 _ACEOF
11248
11249   fi
11250
11251
11252   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11253 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11254 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11255   echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257   if test x$gcc_no_link = xyes; then
11258   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11260    { (exit 1); exit 1; }; }
11261 fi
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 #include <locale.h>
11269 int
11270 main ()
11271 {
11272 return LC_MESSAGES
11273   ;
11274   return 0;
11275 }
11276 _ACEOF
11277 rm -f conftest.$ac_objext conftest$ac_exeext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11279   (eval $ac_link) 2>conftest.er1
11280   ac_status=$?
11281   grep -v '^ *+' conftest.er1 >conftest.err
11282   rm -f conftest.er1
11283   cat conftest.err >&5
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } &&
11286          { ac_try='test -z "$ac_c_werror_flag"
11287                          || test ! -s conftest.err'
11288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289   (eval $ac_try) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); }; } &&
11293          { ac_try='test -s conftest$ac_exeext'
11294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; }; then
11299   am_cv_val_LC_MESSAGES=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304 am_cv_val_LC_MESSAGES=no
11305 fi
11306 rm -f conftest.err conftest.$ac_objext \
11307       conftest$ac_exeext conftest.$ac_ext
11308 fi
11309 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11310 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11311   if test $am_cv_val_LC_MESSAGES = yes; then
11312
11313 cat >>confdefs.h <<\_ACEOF
11314 #define HAVE_LC_MESSAGES 1
11315 _ACEOF
11316
11317   fi
11318
11319    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11320 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11321 if test "${ac_cv_struct_tm+set}" = set; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   cat >conftest.$ac_ext <<_ACEOF
11325 /* confdefs.h.  */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h.  */
11330 #include <sys/types.h>
11331 #include <time.h>
11332
11333 int
11334 main ()
11335 {
11336 struct tm *tp; tp->tm_sec;
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 rm -f conftest.$ac_objext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11343   (eval $ac_compile) 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } &&
11350          { ac_try='test -z "$ac_c_werror_flag"
11351                          || test ! -s conftest.err'
11352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11353   (eval $ac_try) 2>&5
11354   ac_status=$?
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); }; } &&
11357          { ac_try='test -s conftest.$ac_objext'
11358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359   (eval $ac_try) 2>&5
11360   ac_status=$?
11361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362   (exit $ac_status); }; }; then
11363   ac_cv_struct_tm=time.h
11364 else
11365   echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11367
11368 ac_cv_struct_tm=sys/time.h
11369 fi
11370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11371 fi
11372 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11373 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11374 if test $ac_cv_struct_tm = sys/time.h; then
11375
11376 cat >>confdefs.h <<\_ACEOF
11377 #define TM_IN_SYS_TIME 1
11378 _ACEOF
11379
11380 fi
11381
11382 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11383 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11384 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393 #include <sys/types.h>
11394 #include <$ac_cv_struct_tm>
11395
11396
11397 int
11398 main ()
11399 {
11400 static struct tm ac_aggr;
11401 if (ac_aggr.tm_zone)
11402 return 0;
11403   ;
11404   return 0;
11405 }
11406 _ACEOF
11407 rm -f conftest.$ac_objext
11408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11409   (eval $ac_compile) 2>conftest.er1
11410   ac_status=$?
11411   grep -v '^ *+' conftest.er1 >conftest.err
11412   rm -f conftest.er1
11413   cat conftest.err >&5
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); } &&
11416          { ac_try='test -z "$ac_c_werror_flag"
11417                          || test ! -s conftest.err'
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); }; } &&
11423          { ac_try='test -s conftest.$ac_objext'
11424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11425   (eval $ac_try) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); }; }; then
11429   ac_cv_member_struct_tm_tm_zone=yes
11430 else
11431   echo "$as_me: failed program was:" >&5
11432 sed 's/^/| /' conftest.$ac_ext >&5
11433
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440 #include <sys/types.h>
11441 #include <$ac_cv_struct_tm>
11442
11443
11444 int
11445 main ()
11446 {
11447 static struct tm ac_aggr;
11448 if (sizeof ac_aggr.tm_zone)
11449 return 0;
11450   ;
11451   return 0;
11452 }
11453 _ACEOF
11454 rm -f conftest.$ac_objext
11455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456   (eval $ac_compile) 2>conftest.er1
11457   ac_status=$?
11458   grep -v '^ *+' conftest.er1 >conftest.err
11459   rm -f conftest.er1
11460   cat conftest.err >&5
11461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462   (exit $ac_status); } &&
11463          { ac_try='test -z "$ac_c_werror_flag"
11464                          || test ! -s conftest.err'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; } &&
11470          { ac_try='test -s conftest.$ac_objext'
11471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472   (eval $ac_try) 2>&5
11473   ac_status=$?
11474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475   (exit $ac_status); }; }; then
11476   ac_cv_member_struct_tm_tm_zone=yes
11477 else
11478   echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11480
11481 ac_cv_member_struct_tm_tm_zone=no
11482 fi
11483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11484 fi
11485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11486 fi
11487 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11488 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11489 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11490
11491 cat >>confdefs.h <<_ACEOF
11492 #define HAVE_STRUCT_TM_TM_ZONE 1
11493 _ACEOF
11494
11495
11496 fi
11497
11498 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11499
11500 cat >>confdefs.h <<\_ACEOF
11501 #define HAVE_TM_ZONE 1
11502 _ACEOF
11503
11504 else
11505   echo "$as_me:$LINENO: checking for tzname" >&5
11506 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11507 if test "${ac_cv_var_tzname+set}" = set; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   if test x$gcc_no_link = xyes; then
11511   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11512 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11513    { (exit 1); exit 1; }; }
11514 fi
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h.  */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h.  */
11521 #include <time.h>
11522 #ifndef tzname /* For SGI.  */
11523 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11524 #endif
11525
11526 int
11527 main ()
11528 {
11529 atoi(*tzname);
11530   ;
11531   return 0;
11532 }
11533 _ACEOF
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11536   (eval $ac_link) 2>conftest.er1
11537   ac_status=$?
11538   grep -v '^ *+' conftest.er1 >conftest.err
11539   rm -f conftest.er1
11540   cat conftest.err >&5
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -z "$ac_c_werror_flag"
11544                          || test ! -s conftest.err'
11545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546   (eval $ac_try) 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; } &&
11550          { ac_try='test -s conftest$ac_exeext'
11551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552   (eval $ac_try) 2>&5
11553   ac_status=$?
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); }; }; then
11556   ac_cv_var_tzname=yes
11557 else
11558   echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561 ac_cv_var_tzname=no
11562 fi
11563 rm -f conftest.err conftest.$ac_objext \
11564       conftest$ac_exeext conftest.$ac_ext
11565 fi
11566 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11567 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11568   if test $ac_cv_var_tzname = yes; then
11569
11570 cat >>confdefs.h <<\_ACEOF
11571 #define HAVE_TZNAME 1
11572 _ACEOF
11573
11574   fi
11575 fi
11576
11577
11578
11579
11580 for ac_func in gethostbyname_r
11581 do
11582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11583 echo "$as_me:$LINENO: checking for $ac_func" >&5
11584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11585 if eval "test \"\${$as_ac_var+set}\" = set"; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588   if test x$gcc_no_link = xyes; then
11589   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11591    { (exit 1); exit 1; }; }
11592 fi
11593 cat >conftest.$ac_ext <<_ACEOF
11594 /* confdefs.h.  */
11595 _ACEOF
11596 cat confdefs.h >>conftest.$ac_ext
11597 cat >>conftest.$ac_ext <<_ACEOF
11598 /* end confdefs.h.  */
11599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11601 #define $ac_func innocuous_$ac_func
11602
11603 /* System header to define __stub macros and hopefully few prototypes,
11604     which can conflict with char $ac_func (); below.
11605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11606     <limits.h> exists even on freestanding compilers.  */
11607
11608 #ifdef __STDC__
11609 # include <limits.h>
11610 #else
11611 # include <assert.h>
11612 #endif
11613
11614 #undef $ac_func
11615
11616 /* Override any gcc2 internal prototype to avoid an error.  */
11617 #ifdef __cplusplus
11618 extern "C"
11619 {
11620 #endif
11621 /* We use char because int might match the return type of a gcc2
11622    builtin and then its argument prototype would still apply.  */
11623 char $ac_func ();
11624 /* The GNU C library defines this for functions which it implements
11625     to always fail with ENOSYS.  Some functions are actually named
11626     something starting with __ and the normal name is an alias.  */
11627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11628 choke me
11629 #else
11630 char (*f) () = $ac_func;
11631 #endif
11632 #ifdef __cplusplus
11633 }
11634 #endif
11635
11636 int
11637 main ()
11638 {
11639 return f != $ac_func;
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11646   (eval $ac_link) 2>conftest.er1
11647   ac_status=$?
11648   grep -v '^ *+' conftest.er1 >conftest.err
11649   rm -f conftest.er1
11650   cat conftest.err >&5
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } &&
11653          { ac_try='test -z "$ac_c_werror_flag"
11654                          || test ! -s conftest.err'
11655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656   (eval $ac_try) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); }; } &&
11660          { ac_try='test -s conftest$ac_exeext'
11661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662   (eval $ac_try) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; }; then
11666   eval "$as_ac_var=yes"
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 eval "$as_ac_var=no"
11672 fi
11673 rm -f conftest.err conftest.$ac_objext \
11674       conftest$ac_exeext conftest.$ac_ext
11675 fi
11676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11678 if test `eval echo '${'$as_ac_var'}'` = yes; then
11679   cat >>confdefs.h <<_ACEOF
11680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11681 _ACEOF
11682
11683
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_GETHOSTBYNAME_R 1
11686 _ACEOF
11687
11688      # There are two different kinds of gethostbyname_r.
11689      # We look for the one that returns `int'.
11690      # Hopefully this check is robust enough.
11691      cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h.  */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h.  */
11697 #include <netdb.h>
11698
11699 _ACEOF
11700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11701   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11702
11703
11704 cat >>confdefs.h <<\_ACEOF
11705 #define GETHOSTBYNAME_R_RETURNS_INT 1
11706 _ACEOF
11707
11708 fi
11709 rm -f conftest*
11710
11711
11712      case " $GCINCS " in
11713      *" -D_REENTRANT "*) ;;
11714      *)
11715                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11716 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11717 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11718   echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720    ac_ext=cc
11721 ac_cpp='$CXXCPP $CPPFLAGS'
11722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11725
11726           cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732 #include <netdb.h>
11733 int
11734 main ()
11735 {
11736 gethostbyname_r("", 0, 0);
11737   ;
11738   return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743   (eval $ac_compile) 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } &&
11750          { ac_try='test -z "$ac_cxx_werror_flag"
11751                          || test ! -s conftest.err'
11752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753   (eval $ac_try) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; } &&
11757          { ac_try='test -s conftest.$ac_objext'
11758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759   (eval $ac_try) 2>&5
11760   ac_status=$?
11761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762   (exit $ac_status); }; }; then
11763   libjava_cv_gethostbyname_r_needs_reentrant=no
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768                 CPPFLAGS_SAVE="$CPPFLAGS"
11769                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11770                 cat >conftest.$ac_ext <<_ACEOF
11771 /* confdefs.h.  */
11772 _ACEOF
11773 cat confdefs.h >>conftest.$ac_ext
11774 cat >>conftest.$ac_ext <<_ACEOF
11775 /* end confdefs.h.  */
11776 #include <netdb.h>
11777 int
11778 main ()
11779 {
11780 gethostbyname_r("", 0, 0);
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11787   (eval $ac_compile) 2>conftest.er1
11788   ac_status=$?
11789   grep -v '^ *+' conftest.er1 >conftest.err
11790   rm -f conftest.er1
11791   cat conftest.err >&5
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); } &&
11794          { ac_try='test -z "$ac_cxx_werror_flag"
11795                          || test ! -s conftest.err'
11796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797   (eval $ac_try) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; } &&
11801          { ac_try='test -s conftest.$ac_objext'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   libjava_cv_gethostbyname_r_needs_reentrant=yes
11808 else
11809   echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 libjava_cv_gethostbyname_r_needs_reentrant=fail
11813 fi
11814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11815                 CPPFLAGS="$CPPFLAGS_SAVE"
11816
11817 fi
11818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819           ac_ext=c
11820 ac_cpp='$CPP $CPPFLAGS'
11821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11824
11825
11826 fi
11827 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11828 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11829         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11830
11831 cat >>confdefs.h <<\_ACEOF
11832 #define _REENTRANT 1
11833 _ACEOF
11834
11835         fi
11836      ;;
11837      esac
11838
11839      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11840 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11841 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11842   echo $ECHO_N "(cached) $ECHO_C" >&6
11843 else
11844         cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850
11851 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11852 # define _REENTRANT 1
11853 #endif
11854 #include <netdb.h>
11855 int
11856 main ()
11857 {
11858 struct hostent_data data;
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 rm -f conftest.$ac_objext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11865   (eval $ac_compile) 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_c_werror_flag"
11873                          || test ! -s conftest.err'
11874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875   (eval $ac_try) 2>&5
11876   ac_status=$?
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); }; } &&
11879          { ac_try='test -s conftest.$ac_objext'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; }; then
11885   libjava_cv_struct_hostent_data=yes
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890 libjava_cv_struct_hostent_data=no
11891 fi
11892 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11893 fi
11894 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11895 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11896      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11897
11898 cat >>confdefs.h <<\_ACEOF
11899 #define HAVE_STRUCT_HOSTENT_DATA 1
11900 _ACEOF
11901
11902      fi
11903
11904 fi
11905 done
11906
11907
11908    # FIXME: libjava source code expects to find a prototype for
11909    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11910    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11911    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11912    # linkage check is enough, yet C++ code requires proper prototypes.)
11913    cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h.  */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h.  */
11919 #include <netdb.h>
11920
11921 _ACEOF
11922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11923   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11924
11925
11926 for ac_func in gethostbyaddr_r
11927 do
11928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929 echo "$as_me:$LINENO: checking for $ac_func" >&5
11930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11931 if eval "test \"\${$as_ac_var+set}\" = set"; then
11932   echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934   if test x$gcc_no_link = xyes; then
11935   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11936 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11937    { (exit 1); exit 1; }; }
11938 fi
11939 cat >conftest.$ac_ext <<_ACEOF
11940 /* confdefs.h.  */
11941 _ACEOF
11942 cat confdefs.h >>conftest.$ac_ext
11943 cat >>conftest.$ac_ext <<_ACEOF
11944 /* end confdefs.h.  */
11945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11946    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11947 #define $ac_func innocuous_$ac_func
11948
11949 /* System header to define __stub macros and hopefully few prototypes,
11950     which can conflict with char $ac_func (); below.
11951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952     <limits.h> exists even on freestanding compilers.  */
11953
11954 #ifdef __STDC__
11955 # include <limits.h>
11956 #else
11957 # include <assert.h>
11958 #endif
11959
11960 #undef $ac_func
11961
11962 /* Override any gcc2 internal prototype to avoid an error.  */
11963 #ifdef __cplusplus
11964 extern "C"
11965 {
11966 #endif
11967 /* We use char because int might match the return type of a gcc2
11968    builtin and then its argument prototype would still apply.  */
11969 char $ac_func ();
11970 /* The GNU C library defines this for functions which it implements
11971     to always fail with ENOSYS.  Some functions are actually named
11972     something starting with __ and the normal name is an alias.  */
11973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11974 choke me
11975 #else
11976 char (*f) () = $ac_func;
11977 #endif
11978 #ifdef __cplusplus
11979 }
11980 #endif
11981
11982 int
11983 main ()
11984 {
11985 return f != $ac_func;
11986   ;
11987   return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992   (eval $ac_link) 2>conftest.er1
11993   ac_status=$?
11994   grep -v '^ *+' conftest.er1 >conftest.err
11995   rm -f conftest.er1
11996   cat conftest.err >&5
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } &&
11999          { ac_try='test -z "$ac_c_werror_flag"
12000                          || test ! -s conftest.err'
12001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002   (eval $ac_try) 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); }; } &&
12006          { ac_try='test -s conftest$ac_exeext'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   eval "$as_ac_var=yes"
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 eval "$as_ac_var=no"
12018 fi
12019 rm -f conftest.err conftest.$ac_objext \
12020       conftest$ac_exeext conftest.$ac_ext
12021 fi
12022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12024 if test `eval echo '${'$as_ac_var'}'` = yes; then
12025   cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12027 _ACEOF
12028
12029
12030 cat >>confdefs.h <<\_ACEOF
12031 #define HAVE_GETHOSTBYADDR_R 1
12032 _ACEOF
12033
12034      # There are two different kinds of gethostbyaddr_r.
12035      # We look for the one that returns `int'.
12036      # Hopefully this check is robust enough.
12037      cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h.  */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h.  */
12043 #include <netdb.h>
12044
12045 _ACEOF
12046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12047   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12048
12049
12050 cat >>confdefs.h <<\_ACEOF
12051 #define GETHOSTBYADDR_R_RETURNS_INT 1
12052 _ACEOF
12053
12054 fi
12055 rm -f conftest*
12056
12057 fi
12058 done
12059
12060 fi
12061 rm -f conftest*
12062
12063
12064
12065 for ac_func in gethostname
12066 do
12067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12068 echo "$as_me:$LINENO: checking for $ac_func" >&5
12069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12070 if eval "test \"\${$as_ac_var+set}\" = set"; then
12071   echo $ECHO_N "(cached) $ECHO_C" >&6
12072 else
12073   if test x$gcc_no_link = xyes; then
12074   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12076    { (exit 1); exit 1; }; }
12077 fi
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12086 #define $ac_func innocuous_$ac_func
12087
12088 /* System header to define __stub macros and hopefully few prototypes,
12089     which can conflict with char $ac_func (); below.
12090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091     <limits.h> exists even on freestanding compilers.  */
12092
12093 #ifdef __STDC__
12094 # include <limits.h>
12095 #else
12096 # include <assert.h>
12097 #endif
12098
12099 #undef $ac_func
12100
12101 /* Override any gcc2 internal prototype to avoid an error.  */
12102 #ifdef __cplusplus
12103 extern "C"
12104 {
12105 #endif
12106 /* We use char because int might match the return type of a gcc2
12107    builtin and then its argument prototype would still apply.  */
12108 char $ac_func ();
12109 /* The GNU C library defines this for functions which it implements
12110     to always fail with ENOSYS.  Some functions are actually named
12111     something starting with __ and the normal name is an alias.  */
12112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12113 choke me
12114 #else
12115 char (*f) () = $ac_func;
12116 #endif
12117 #ifdef __cplusplus
12118 }
12119 #endif
12120
12121 int
12122 main ()
12123 {
12124 return f != $ac_func;
12125   ;
12126   return 0;
12127 }
12128 _ACEOF
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131   (eval $ac_link) 2>conftest.er1
12132   ac_status=$?
12133   grep -v '^ *+' conftest.er1 >conftest.err
12134   rm -f conftest.er1
12135   cat conftest.err >&5
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); } &&
12138          { ac_try='test -z "$ac_c_werror_flag"
12139                          || test ! -s conftest.err'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; } &&
12145          { ac_try='test -s conftest$ac_exeext'
12146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147   (eval $ac_try) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); }; }; then
12151   eval "$as_ac_var=yes"
12152 else
12153   echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 eval "$as_ac_var=no"
12157 fi
12158 rm -f conftest.err conftest.$ac_objext \
12159       conftest$ac_exeext conftest.$ac_ext
12160 fi
12161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12163 if test `eval echo '${'$as_ac_var'}'` = yes; then
12164   cat >>confdefs.h <<_ACEOF
12165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12166 _ACEOF
12167
12168
12169 cat >>confdefs.h <<\_ACEOF
12170 #define HAVE_GETHOSTNAME 1
12171 _ACEOF
12172
12173      cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179 #include <unistd.h>
12180
12181 _ACEOF
12182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12183   $EGREP "gethostname" >/dev/null 2>&1; then
12184
12185
12186 cat >>confdefs.h <<\_ACEOF
12187 #define HAVE_GETHOSTNAME_DECL 1
12188 _ACEOF
12189
12190 fi
12191 rm -f conftest*
12192
12193 fi
12194 done
12195
12196
12197
12198 for ac_func in usleep
12199 do
12200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12201 echo "$as_me:$LINENO: checking for $ac_func" >&5
12202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12203 if eval "test \"\${$as_ac_var+set}\" = set"; then
12204   echo $ECHO_N "(cached) $ECHO_C" >&6
12205 else
12206   if test x$gcc_no_link = xyes; then
12207   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12209    { (exit 1); exit 1; }; }
12210 fi
12211 cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12219 #define $ac_func innocuous_$ac_func
12220
12221 /* System header to define __stub macros and hopefully few prototypes,
12222     which can conflict with char $ac_func (); below.
12223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12224     <limits.h> exists even on freestanding compilers.  */
12225
12226 #ifdef __STDC__
12227 # include <limits.h>
12228 #else
12229 # include <assert.h>
12230 #endif
12231
12232 #undef $ac_func
12233
12234 /* Override any gcc2 internal prototype to avoid an error.  */
12235 #ifdef __cplusplus
12236 extern "C"
12237 {
12238 #endif
12239 /* We use char because int might match the return type of a gcc2
12240    builtin and then its argument prototype would still apply.  */
12241 char $ac_func ();
12242 /* The GNU C library defines this for functions which it implements
12243     to always fail with ENOSYS.  Some functions are actually named
12244     something starting with __ and the normal name is an alias.  */
12245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12246 choke me
12247 #else
12248 char (*f) () = $ac_func;
12249 #endif
12250 #ifdef __cplusplus
12251 }
12252 #endif
12253
12254 int
12255 main ()
12256 {
12257 return f != $ac_func;
12258   ;
12259   return 0;
12260 }
12261 _ACEOF
12262 rm -f conftest.$ac_objext conftest$ac_exeext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264   (eval $ac_link) 2>conftest.er1
12265   ac_status=$?
12266   grep -v '^ *+' conftest.er1 >conftest.err
12267   rm -f conftest.er1
12268   cat conftest.err >&5
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); } &&
12271          { ac_try='test -z "$ac_c_werror_flag"
12272                          || test ! -s conftest.err'
12273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274   (eval $ac_try) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; } &&
12278          { ac_try='test -s conftest$ac_exeext'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; }; then
12284   eval "$as_ac_var=yes"
12285 else
12286   echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 eval "$as_ac_var=no"
12290 fi
12291 rm -f conftest.err conftest.$ac_objext \
12292       conftest$ac_exeext conftest.$ac_ext
12293 fi
12294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12296 if test `eval echo '${'$as_ac_var'}'` = yes; then
12297   cat >>confdefs.h <<_ACEOF
12298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12299 _ACEOF
12300
12301      cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307 #include <unistd.h>
12308
12309 _ACEOF
12310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12311   $EGREP "usleep" >/dev/null 2>&1; then
12312
12313
12314 cat >>confdefs.h <<\_ACEOF
12315 #define HAVE_USLEEP_DECL 1
12316 _ACEOF
12317
12318 fi
12319 rm -f conftest*
12320
12321 fi
12322 done
12323
12324
12325    # Look for these functions in the thread library, but only bother
12326    # if using POSIX threads.
12327    if test "$THREADS" = posix; then
12328       save_LIBS="$LIBS"
12329       LIBS="$LIBS $THREADLIBS"
12330       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12331       # E.g., Solaris.
12332
12333
12334 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12335 do
12336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12337 echo "$as_me:$LINENO: checking for $ac_func" >&5
12338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12339 if eval "test \"\${$as_ac_var+set}\" = set"; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   if test x$gcc_no_link = xyes; then
12343   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12345    { (exit 1); exit 1; }; }
12346 fi
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12355 #define $ac_func innocuous_$ac_func
12356
12357 /* System header to define __stub macros and hopefully few prototypes,
12358     which can conflict with char $ac_func (); below.
12359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360     <limits.h> exists even on freestanding compilers.  */
12361
12362 #ifdef __STDC__
12363 # include <limits.h>
12364 #else
12365 # include <assert.h>
12366 #endif
12367
12368 #undef $ac_func
12369
12370 /* Override any gcc2 internal prototype to avoid an error.  */
12371 #ifdef __cplusplus
12372 extern "C"
12373 {
12374 #endif
12375 /* We use char because int might match the return type of a gcc2
12376    builtin and then its argument prototype would still apply.  */
12377 char $ac_func ();
12378 /* The GNU C library defines this for functions which it implements
12379     to always fail with ENOSYS.  Some functions are actually named
12380     something starting with __ and the normal name is an alias.  */
12381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12382 choke me
12383 #else
12384 char (*f) () = $ac_func;
12385 #endif
12386 #ifdef __cplusplus
12387 }
12388 #endif
12389
12390 int
12391 main ()
12392 {
12393 return f != $ac_func;
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400   (eval $ac_link) 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } &&
12407          { ac_try='test -z "$ac_c_werror_flag"
12408                          || test ! -s conftest.err'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; } &&
12414          { ac_try='test -s conftest$ac_exeext'
12415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416   (eval $ac_try) 2>&5
12417   ac_status=$?
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); }; }; then
12420   eval "$as_ac_var=yes"
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 eval "$as_ac_var=no"
12426 fi
12427 rm -f conftest.err conftest.$ac_objext \
12428       conftest$ac_exeext conftest.$ac_ext
12429 fi
12430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12432 if test `eval echo '${'$as_ac_var'}'` = yes; then
12433   cat >>confdefs.h <<_ACEOF
12434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12435 _ACEOF
12436
12437 fi
12438 done
12439
12440
12441       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12442       # Solaris 7 the name librt is preferred.
12443
12444 for ac_func in sched_yield
12445 do
12446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12447 echo "$as_me:$LINENO: checking for $ac_func" >&5
12448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12449 if eval "test \"\${$as_ac_var+set}\" = set"; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   if test x$gcc_no_link = xyes; then
12453   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12455    { (exit 1); exit 1; }; }
12456 fi
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12465 #define $ac_func innocuous_$ac_func
12466
12467 /* System header to define __stub macros and hopefully few prototypes,
12468     which can conflict with char $ac_func (); below.
12469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12470     <limits.h> exists even on freestanding compilers.  */
12471
12472 #ifdef __STDC__
12473 # include <limits.h>
12474 #else
12475 # include <assert.h>
12476 #endif
12477
12478 #undef $ac_func
12479
12480 /* Override any gcc2 internal prototype to avoid an error.  */
12481 #ifdef __cplusplus
12482 extern "C"
12483 {
12484 #endif
12485 /* We use char because int might match the return type of a gcc2
12486    builtin and then its argument prototype would still apply.  */
12487 char $ac_func ();
12488 /* The GNU C library defines this for functions which it implements
12489     to always fail with ENOSYS.  Some functions are actually named
12490     something starting with __ and the normal name is an alias.  */
12491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12492 choke me
12493 #else
12494 char (*f) () = $ac_func;
12495 #endif
12496 #ifdef __cplusplus
12497 }
12498 #endif
12499
12500 int
12501 main ()
12502 {
12503 return f != $ac_func;
12504   ;
12505   return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext conftest$ac_exeext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12510   (eval $ac_link) 2>conftest.er1
12511   ac_status=$?
12512   grep -v '^ *+' conftest.er1 >conftest.err
12513   rm -f conftest.er1
12514   cat conftest.err >&5
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); } &&
12517          { ac_try='test -z "$ac_c_werror_flag"
12518                          || test ! -s conftest.err'
12519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520   (eval $ac_try) 2>&5
12521   ac_status=$?
12522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523   (exit $ac_status); }; } &&
12524          { ac_try='test -s conftest$ac_exeext'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; }; then
12530   eval "$as_ac_var=yes"
12531 else
12532   echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 eval "$as_ac_var=no"
12536 fi
12537 rm -f conftest.err conftest.$ac_objext \
12538       conftest$ac_exeext conftest.$ac_ext
12539 fi
12540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12542 if test `eval echo '${'$as_ac_var'}'` = yes; then
12543   cat >>confdefs.h <<_ACEOF
12544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12545 _ACEOF
12546
12547 else
12548
12549         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12550 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12551 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-lrt  $LIBS"
12556 if test x$gcc_no_link = xyes; then
12557   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12559    { (exit 1); exit 1; }; }
12560 fi
12561 cat >conftest.$ac_ext <<_ACEOF
12562 /* confdefs.h.  */
12563 _ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h.  */
12567
12568 /* Override any gcc2 internal prototype to avoid an error.  */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 /* We use char because int might match the return type of a gcc2
12573    builtin and then its argument prototype would still apply.  */
12574 char sched_yield ();
12575 int
12576 main ()
12577 {
12578 sched_yield ();
12579   ;
12580   return 0;
12581 }
12582 _ACEOF
12583 rm -f conftest.$ac_objext conftest$ac_exeext
12584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585   (eval $ac_link) 2>conftest.er1
12586   ac_status=$?
12587   grep -v '^ *+' conftest.er1 >conftest.err
12588   rm -f conftest.er1
12589   cat conftest.err >&5
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); } &&
12592          { ac_try='test -z "$ac_c_werror_flag"
12593                          || test ! -s conftest.err'
12594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595   (eval $ac_try) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); }; } &&
12599          { ac_try='test -s conftest$ac_exeext'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   ac_cv_lib_rt_sched_yield=yes
12606 else
12607   echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 ac_cv_lib_rt_sched_yield=no
12611 fi
12612 rm -f conftest.err conftest.$ac_objext \
12613       conftest$ac_exeext conftest.$ac_ext
12614 LIBS=$ac_check_lib_save_LIBS
12615 fi
12616 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12617 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12618 if test $ac_cv_lib_rt_sched_yield = yes; then
12619
12620           cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_SCHED_YIELD 1
12622 _ACEOF
12623
12624           THREADLIBS="$THREADLIBS -lrt"
12625           THREADSPEC="$THREADSPEC -lrt"
12626 else
12627
12628           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12629 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12630 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   ac_check_lib_save_LIBS=$LIBS
12634 LIBS="-lposix4  $LIBS"
12635 if test x$gcc_no_link = xyes; then
12636   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12638    { (exit 1); exit 1; }; }
12639 fi
12640 cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h.  */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h.  */
12646
12647 /* Override any gcc2 internal prototype to avoid an error.  */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 /* We use char because int might match the return type of a gcc2
12652    builtin and then its argument prototype would still apply.  */
12653 char sched_yield ();
12654 int
12655 main ()
12656 {
12657 sched_yield ();
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664   (eval $ac_link) 2>conftest.er1
12665   ac_status=$?
12666   grep -v '^ *+' conftest.er1 >conftest.err
12667   rm -f conftest.er1
12668   cat conftest.err >&5
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } &&
12671          { ac_try='test -z "$ac_c_werror_flag"
12672                          || test ! -s conftest.err'
12673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674   (eval $ac_try) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; } &&
12678          { ac_try='test -s conftest$ac_exeext'
12679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680   (eval $ac_try) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); }; }; then
12684   ac_cv_lib_posix4_sched_yield=yes
12685 else
12686   echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12688
12689 ac_cv_lib_posix4_sched_yield=no
12690 fi
12691 rm -f conftest.err conftest.$ac_objext \
12692       conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12694 fi
12695 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12696 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12697 if test $ac_cv_lib_posix4_sched_yield = yes; then
12698
12699             cat >>confdefs.h <<\_ACEOF
12700 #define HAVE_SCHED_YIELD 1
12701 _ACEOF
12702
12703             THREADLIBS="$THREADLIBS -lposix4"
12704             THREADSPEC="$THREADSPEC -lposix4"
12705 fi
12706
12707 fi
12708
12709 fi
12710 done
12711
12712
12713       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12714 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12715 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12716   echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718   ac_check_lib_save_LIBS=$LIBS
12719 LIBS="-lrt  $LIBS"
12720 if test x$gcc_no_link = xyes; then
12721   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12723    { (exit 1); exit 1; }; }
12724 fi
12725 cat >conftest.$ac_ext <<_ACEOF
12726 /* confdefs.h.  */
12727 _ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h.  */
12731
12732 /* Override any gcc2 internal prototype to avoid an error.  */
12733 #ifdef __cplusplus
12734 extern "C"
12735 #endif
12736 /* We use char because int might match the return type of a gcc2
12737    builtin and then its argument prototype would still apply.  */
12738 char clock_gettime ();
12739 int
12740 main ()
12741 {
12742 clock_gettime ();
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749   (eval $ac_link) 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -z "$ac_c_werror_flag"
12757                          || test ! -s conftest.err'
12758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759   (eval $ac_try) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }; } &&
12763          { ac_try='test -s conftest$ac_exeext'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769   ac_cv_lib_rt_clock_gettime=yes
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 ac_cv_lib_rt_clock_gettime=no
12775 fi
12776 rm -f conftest.err conftest.$ac_objext \
12777       conftest$ac_exeext conftest.$ac_ext
12778 LIBS=$ac_check_lib_save_LIBS
12779 fi
12780 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12781 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12782 if test $ac_cv_lib_rt_clock_gettime = yes; then
12783
12784
12785 cat >>confdefs.h <<\_ACEOF
12786 #define HAVE_CLOCK_GETTIME 1
12787 _ACEOF
12788
12789          case "$THREADSPEC" in
12790            *-lrt*) ;;
12791            *)
12792              THREADSPEC="$THREADSPEC -lrt"
12793              THREADLIBS="$THREADLIBS -lrt"
12794              ;;
12795          esac
12796 fi
12797
12798
12799       LIBS="$save_LIBS"
12800
12801       # We can save a little space at runtime if the mutex has m_count
12802       # or __m_count.  This is a nice hack for Linux.
12803       cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809 #include <pthread.h>
12810 int
12811 main ()
12812 {
12813
12814           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12815
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12822   (eval $ac_compile) 2>conftest.er1
12823   ac_status=$?
12824   grep -v '^ *+' conftest.er1 >conftest.err
12825   rm -f conftest.er1
12826   cat conftest.err >&5
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); } &&
12829          { ac_try='test -z "$ac_c_werror_flag"
12830                          || test ! -s conftest.err'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; } &&
12836          { ac_try='test -s conftest.$ac_objext'
12837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838   (eval $ac_try) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; }; then
12842
12843 cat >>confdefs.h <<\_ACEOF
12844 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12845 _ACEOF
12846
12847 else
12848   echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12850
12851
12852         cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858 #include <pthread.h>
12859 int
12860 main ()
12861 {
12862
12863             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12864
12865   ;
12866   return 0;
12867 }
12868 _ACEOF
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12871   (eval $ac_compile) 2>conftest.er1
12872   ac_status=$?
12873   grep -v '^ *+' conftest.er1 >conftest.err
12874   rm -f conftest.er1
12875   cat conftest.err >&5
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); } &&
12878          { ac_try='test -z "$ac_c_werror_flag"
12879                          || test ! -s conftest.err'
12880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881   (eval $ac_try) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); }; } &&
12885          { ac_try='test -s conftest.$ac_objext'
12886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12887   (eval $ac_try) 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; }; then
12891
12892 cat >>confdefs.h <<\_ACEOF
12893 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12894 _ACEOF
12895
12896 else
12897   echo "$as_me: failed program was:" >&5
12898 sed 's/^/| /' conftest.$ac_ext >&5
12899
12900 fi
12901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12902 fi
12903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904    fi
12905
12906    # We require a way to get the time.
12907    time_found=no
12908
12909
12910
12911 for ac_func in gettimeofday time ftime
12912 do
12913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12914 echo "$as_me:$LINENO: checking for $ac_func" >&5
12915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12916 if eval "test \"\${$as_ac_var+set}\" = set"; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   if test x$gcc_no_link = xyes; then
12920   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12922    { (exit 1); exit 1; }; }
12923 fi
12924 cat >conftest.$ac_ext <<_ACEOF
12925 /* confdefs.h.  */
12926 _ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h.  */
12930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12932 #define $ac_func innocuous_$ac_func
12933
12934 /* System header to define __stub macros and hopefully few prototypes,
12935     which can conflict with char $ac_func (); below.
12936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937     <limits.h> exists even on freestanding compilers.  */
12938
12939 #ifdef __STDC__
12940 # include <limits.h>
12941 #else
12942 # include <assert.h>
12943 #endif
12944
12945 #undef $ac_func
12946
12947 /* Override any gcc2 internal prototype to avoid an error.  */
12948 #ifdef __cplusplus
12949 extern "C"
12950 {
12951 #endif
12952 /* We use char because int might match the return type of a gcc2
12953    builtin and then its argument prototype would still apply.  */
12954 char $ac_func ();
12955 /* The GNU C library defines this for functions which it implements
12956     to always fail with ENOSYS.  Some functions are actually named
12957     something starting with __ and the normal name is an alias.  */
12958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12959 choke me
12960 #else
12961 char (*f) () = $ac_func;
12962 #endif
12963 #ifdef __cplusplus
12964 }
12965 #endif
12966
12967 int
12968 main ()
12969 {
12970 return f != $ac_func;
12971   ;
12972   return 0;
12973 }
12974 _ACEOF
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977   (eval $ac_link) 2>conftest.er1
12978   ac_status=$?
12979   grep -v '^ *+' conftest.er1 >conftest.err
12980   rm -f conftest.er1
12981   cat conftest.err >&5
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); } &&
12984          { ac_try='test -z "$ac_c_werror_flag"
12985                          || test ! -s conftest.err'
12986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987   (eval $ac_try) 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; } &&
12991          { ac_try='test -s conftest$ac_exeext'
12992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993   (eval $ac_try) 2>&5
12994   ac_status=$?
12995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996   (exit $ac_status); }; }; then
12997   eval "$as_ac_var=yes"
12998 else
12999   echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13001
13002 eval "$as_ac_var=no"
13003 fi
13004 rm -f conftest.err conftest.$ac_objext \
13005       conftest$ac_exeext conftest.$ac_ext
13006 fi
13007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13009 if test `eval echo '${'$as_ac_var'}'` = yes; then
13010   cat >>confdefs.h <<_ACEOF
13011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012 _ACEOF
13013  time_found=yes
13014 fi
13015 done
13016
13017    if test "$time_found" = no; then
13018       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
13019 echo "$as_me: error: no function found to get the time" >&2;}
13020    { (exit 1); exit 1; }; }
13021    fi
13022
13023
13024 for ac_func in memmove
13025 do
13026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13027 echo "$as_me:$LINENO: checking for $ac_func" >&5
13028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13029 if eval "test \"\${$as_ac_var+set}\" = set"; then
13030   echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032   if test x$gcc_no_link = xyes; then
13033   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13034 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13035    { (exit 1); exit 1; }; }
13036 fi
13037 cat >conftest.$ac_ext <<_ACEOF
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13045 #define $ac_func innocuous_$ac_func
13046
13047 /* System header to define __stub macros and hopefully few prototypes,
13048     which can conflict with char $ac_func (); below.
13049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13050     <limits.h> exists even on freestanding compilers.  */
13051
13052 #ifdef __STDC__
13053 # include <limits.h>
13054 #else
13055 # include <assert.h>
13056 #endif
13057
13058 #undef $ac_func
13059
13060 /* Override any gcc2 internal prototype to avoid an error.  */
13061 #ifdef __cplusplus
13062 extern "C"
13063 {
13064 #endif
13065 /* We use char because int might match the return type of a gcc2
13066    builtin and then its argument prototype would still apply.  */
13067 char $ac_func ();
13068 /* The GNU C library defines this for functions which it implements
13069     to always fail with ENOSYS.  Some functions are actually named
13070     something starting with __ and the normal name is an alias.  */
13071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13072 choke me
13073 #else
13074 char (*f) () = $ac_func;
13075 #endif
13076 #ifdef __cplusplus
13077 }
13078 #endif
13079
13080 int
13081 main ()
13082 {
13083 return f != $ac_func;
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext conftest$ac_exeext
13089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13090   (eval $ac_link) 2>conftest.er1
13091   ac_status=$?
13092   grep -v '^ *+' conftest.er1 >conftest.err
13093   rm -f conftest.er1
13094   cat conftest.err >&5
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); } &&
13097          { ac_try='test -z "$ac_c_werror_flag"
13098                          || test ! -s conftest.err'
13099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100   (eval $ac_try) 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); }; } &&
13104          { ac_try='test -s conftest$ac_exeext'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   eval "$as_ac_var=yes"
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115 eval "$as_ac_var=no"
13116 fi
13117 rm -f conftest.err conftest.$ac_objext \
13118       conftest$ac_exeext conftest.$ac_ext
13119 fi
13120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13122 if test `eval echo '${'$as_ac_var'}'` = yes; then
13123   cat >>confdefs.h <<_ACEOF
13124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13125 _ACEOF
13126
13127 fi
13128 done
13129
13130
13131    # We require memcpy.
13132    memcpy_found=no
13133
13134 for ac_func in memcpy
13135 do
13136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13137 echo "$as_me:$LINENO: checking for $ac_func" >&5
13138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13139 if eval "test \"\${$as_ac_var+set}\" = set"; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   if test x$gcc_no_link = xyes; then
13143   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13144 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13145    { (exit 1); exit 1; }; }
13146 fi
13147 cat >conftest.$ac_ext <<_ACEOF
13148 /* confdefs.h.  */
13149 _ACEOF
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h.  */
13153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13155 #define $ac_func innocuous_$ac_func
13156
13157 /* System header to define __stub macros and hopefully few prototypes,
13158     which can conflict with char $ac_func (); below.
13159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13160     <limits.h> exists even on freestanding compilers.  */
13161
13162 #ifdef __STDC__
13163 # include <limits.h>
13164 #else
13165 # include <assert.h>
13166 #endif
13167
13168 #undef $ac_func
13169
13170 /* Override any gcc2 internal prototype to avoid an error.  */
13171 #ifdef __cplusplus
13172 extern "C"
13173 {
13174 #endif
13175 /* We use char because int might match the return type of a gcc2
13176    builtin and then its argument prototype would still apply.  */
13177 char $ac_func ();
13178 /* The GNU C library defines this for functions which it implements
13179     to always fail with ENOSYS.  Some functions are actually named
13180     something starting with __ and the normal name is an alias.  */
13181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13182 choke me
13183 #else
13184 char (*f) () = $ac_func;
13185 #endif
13186 #ifdef __cplusplus
13187 }
13188 #endif
13189
13190 int
13191 main ()
13192 {
13193 return f != $ac_func;
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 rm -f conftest.$ac_objext conftest$ac_exeext
13199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13200   (eval $ac_link) 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } &&
13207          { ac_try='test -z "$ac_c_werror_flag"
13208                          || test ! -s conftest.err'
13209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210   (eval $ac_try) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; } &&
13214          { ac_try='test -s conftest$ac_exeext'
13215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216   (eval $ac_try) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   eval "$as_ac_var=yes"
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 eval "$as_ac_var=no"
13226 fi
13227 rm -f conftest.err conftest.$ac_objext \
13228       conftest$ac_exeext conftest.$ac_ext
13229 fi
13230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13232 if test `eval echo '${'$as_ac_var'}'` = yes; then
13233   cat >>confdefs.h <<_ACEOF
13234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13235 _ACEOF
13236  memcpy_found=yes
13237 fi
13238 done
13239
13240    if test "$memcpy_found" = no; then
13241       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13242 echo "$as_me: error: memcpy is required" >&2;}
13243    { (exit 1); exit 1; }; }
13244    fi
13245    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13246    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13247 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13249   echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251   ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-ldl  $LIBS"
13253 if test x$gcc_no_link = xyes; then
13254   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13256    { (exit 1); exit 1; }; }
13257 fi
13258 cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h.  */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h.  */
13264
13265 /* Override any gcc2 internal prototype to avoid an error.  */
13266 #ifdef __cplusplus
13267 extern "C"
13268 #endif
13269 /* We use char because int might match the return type of a gcc2
13270    builtin and then its argument prototype would still apply.  */
13271 char dlopen ();
13272 int
13273 main ()
13274 {
13275 dlopen ();
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13282   (eval $ac_link) 2>conftest.er1
13283   ac_status=$?
13284   grep -v '^ *+' conftest.er1 >conftest.err
13285   rm -f conftest.er1
13286   cat conftest.err >&5
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } &&
13289          { ac_try='test -z "$ac_c_werror_flag"
13290                          || test ! -s conftest.err'
13291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292   (eval $ac_try) 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; } &&
13296          { ac_try='test -s conftest$ac_exeext'
13297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298   (eval $ac_try) 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; }; then
13302   ac_cv_lib_dl_dlopen=yes
13303 else
13304   echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13306
13307 ac_cv_lib_dl_dlopen=no
13308 fi
13309 rm -f conftest.err conftest.$ac_objext \
13310       conftest$ac_exeext conftest.$ac_ext
13311 LIBS=$ac_check_lib_save_LIBS
13312 fi
13313 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13314 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13315 if test $ac_cv_lib_dl_dlopen = yes; then
13316
13317
13318 cat >>confdefs.h <<\_ACEOF
13319 #define HAVE_DLOPEN 1
13320 _ACEOF
13321
13322 else
13323
13324        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13325 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13326 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13327   echo $ECHO_N "(cached) $ECHO_C" >&6
13328 else
13329   ac_check_lib_save_LIBS=$LIBS
13330 LIBS="-ldld  $LIBS"
13331 if test x$gcc_no_link = xyes; then
13332   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13334    { (exit 1); exit 1; }; }
13335 fi
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h.  */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h.  */
13342
13343 /* Override any gcc2 internal prototype to avoid an error.  */
13344 #ifdef __cplusplus
13345 extern "C"
13346 #endif
13347 /* We use char because int might match the return type of a gcc2
13348    builtin and then its argument prototype would still apply.  */
13349 char dlopen ();
13350 int
13351 main ()
13352 {
13353 dlopen ();
13354   ;
13355   return 0;
13356 }
13357 _ACEOF
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13360   (eval $ac_link) 2>conftest.er1
13361   ac_status=$?
13362   grep -v '^ *+' conftest.er1 >conftest.err
13363   rm -f conftest.er1
13364   cat conftest.err >&5
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); } &&
13367          { ac_try='test -z "$ac_c_werror_flag"
13368                          || test ! -s conftest.err'
13369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370   (eval $ac_try) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; } &&
13374          { ac_try='test -s conftest$ac_exeext'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }; then
13380   ac_cv_lib_dld_dlopen=yes
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 ac_cv_lib_dld_dlopen=no
13386 fi
13387 rm -f conftest.err conftest.$ac_objext \
13388       conftest$ac_exeext conftest.$ac_ext
13389 LIBS=$ac_check_lib_save_LIBS
13390 fi
13391 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13392 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13393 if test $ac_cv_lib_dld_dlopen = yes; then
13394
13395
13396 cat >>confdefs.h <<\_ACEOF
13397 #define HAVE_DLOPEN 1
13398 _ACEOF
13399
13400 fi
13401
13402 fi
13403
13404
13405    # Some library-finding code we stole from Tcl.
13406    #--------------------------------------------------------------------
13407    #    Check for the existence of the -lsocket and -lnsl libraries.
13408    #    The order here is important, so that they end up in the right
13409    #    order in the command line generated by make.  Here are some
13410    #    special considerations:
13411    #    1. Use "connect" and "accept" to check for -lsocket, and
13412    #       "gethostbyname" to check for -lnsl.
13413    #    2. Use each function name only once:  can't redo a check because
13414    #       autoconf caches the results of the last check and won't redo it.
13415    #    3. Use -lnsl and -lsocket only if they supply procedures that
13416    #       aren't already present in the normal libraries.  This is because
13417    #       IRIX 5.2 has libraries, but they aren't needed and they're
13418    #       bogus:  they goof up name resolution if used.
13419    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13420    #       To get around this problem, check for both libraries together
13421    #       if -lsocket doesn't work by itself.
13422    #--------------------------------------------------------------------
13423
13424    echo "$as_me:$LINENO: checking for socket libraries" >&5
13425 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13426 if test "${gcj_cv_lib_sockets+set}" = set; then
13427   echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429   gcj_cv_lib_sockets=
13430      gcj_checkBoth=0
13431      unset ac_cv_func_connect
13432      echo "$as_me:$LINENO: checking for connect" >&5
13433 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13434 if test "${ac_cv_func_connect+set}" = set; then
13435   echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437   if test x$gcc_no_link = xyes; then
13438   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13440    { (exit 1); exit 1; }; }
13441 fi
13442 cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13450 #define connect innocuous_connect
13451
13452 /* System header to define __stub macros and hopefully few prototypes,
13453     which can conflict with char connect (); below.
13454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13455     <limits.h> exists even on freestanding compilers.  */
13456
13457 #ifdef __STDC__
13458 # include <limits.h>
13459 #else
13460 # include <assert.h>
13461 #endif
13462
13463 #undef connect
13464
13465 /* Override any gcc2 internal prototype to avoid an error.  */
13466 #ifdef __cplusplus
13467 extern "C"
13468 {
13469 #endif
13470 /* We use char because int might match the return type of a gcc2
13471    builtin and then its argument prototype would still apply.  */
13472 char connect ();
13473 /* The GNU C library defines this for functions which it implements
13474     to always fail with ENOSYS.  Some functions are actually named
13475     something starting with __ and the normal name is an alias.  */
13476 #if defined (__stub_connect) || defined (__stub___connect)
13477 choke me
13478 #else
13479 char (*f) () = connect;
13480 #endif
13481 #ifdef __cplusplus
13482 }
13483 #endif
13484
13485 int
13486 main ()
13487 {
13488 return f != connect;
13489   ;
13490   return 0;
13491 }
13492 _ACEOF
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13495   (eval $ac_link) 2>conftest.er1
13496   ac_status=$?
13497   grep -v '^ *+' conftest.er1 >conftest.err
13498   rm -f conftest.er1
13499   cat conftest.err >&5
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); } &&
13502          { ac_try='test -z "$ac_c_werror_flag"
13503                          || test ! -s conftest.err'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; } &&
13509          { ac_try='test -s conftest$ac_exeext'
13510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511   (eval $ac_try) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); }; }; then
13515   ac_cv_func_connect=yes
13516 else
13517   echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13519
13520 ac_cv_func_connect=no
13521 fi
13522 rm -f conftest.err conftest.$ac_objext \
13523       conftest$ac_exeext conftest.$ac_ext
13524 fi
13525 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13526 echo "${ECHO_T}$ac_cv_func_connect" >&6
13527 if test $ac_cv_func_connect = yes; then
13528   gcj_checkSocket=0
13529 else
13530   gcj_checkSocket=1
13531 fi
13532
13533      if test "$gcj_checkSocket" = 1; then
13534          unset ac_cv_func_connect
13535          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13536 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13537 if test "${ac_cv_lib_socket_main+set}" = set; then
13538   echo $ECHO_N "(cached) $ECHO_C" >&6
13539 else
13540   ac_check_lib_save_LIBS=$LIBS
13541 LIBS="-lsocket  $LIBS"
13542 if test x$gcc_no_link = xyes; then
13543   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13545    { (exit 1); exit 1; }; }
13546 fi
13547 cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553
13554
13555 int
13556 main ()
13557 {
13558 main ();
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13565   (eval $ac_link) 2>conftest.er1
13566   ac_status=$?
13567   grep -v '^ *+' conftest.er1 >conftest.err
13568   rm -f conftest.er1
13569   cat conftest.err >&5
13570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571   (exit $ac_status); } &&
13572          { ac_try='test -z "$ac_c_werror_flag"
13573                          || test ! -s conftest.err'
13574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575   (eval $ac_try) 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; } &&
13579          { ac_try='test -s conftest$ac_exeext'
13580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13581   (eval $ac_try) 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; }; then
13585   ac_cv_lib_socket_main=yes
13586 else
13587   echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13589
13590 ac_cv_lib_socket_main=no
13591 fi
13592 rm -f conftest.err conftest.$ac_objext \
13593       conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13595 fi
13596 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13597 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13598 if test $ac_cv_lib_socket_main = yes; then
13599   gcj_cv_lib_sockets="-lsocket"
13600 else
13601   gcj_checkBoth=1
13602 fi
13603
13604      fi
13605      if test "$gcj_checkBoth" = 1; then
13606          gcj_oldLibs=$LIBS
13607          LIBS="$LIBS -lsocket -lnsl"
13608          unset ac_cv_func_accept
13609          echo "$as_me:$LINENO: checking for accept" >&5
13610 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13611 if test "${ac_cv_func_accept+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   if test x$gcc_no_link = xyes; then
13615   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13616 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13617    { (exit 1); exit 1; }; }
13618 fi
13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h.  */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
13624 /* end confdefs.h.  */
13625 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13627 #define accept innocuous_accept
13628
13629 /* System header to define __stub macros and hopefully few prototypes,
13630     which can conflict with char accept (); below.
13631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13632     <limits.h> exists even on freestanding compilers.  */
13633
13634 #ifdef __STDC__
13635 # include <limits.h>
13636 #else
13637 # include <assert.h>
13638 #endif
13639
13640 #undef accept
13641
13642 /* Override any gcc2 internal prototype to avoid an error.  */
13643 #ifdef __cplusplus
13644 extern "C"
13645 {
13646 #endif
13647 /* We use char because int might match the return type of a gcc2
13648    builtin and then its argument prototype would still apply.  */
13649 char accept ();
13650 /* The GNU C library defines this for functions which it implements
13651     to always fail with ENOSYS.  Some functions are actually named
13652     something starting with __ and the normal name is an alias.  */
13653 #if defined (__stub_accept) || defined (__stub___accept)
13654 choke me
13655 #else
13656 char (*f) () = accept;
13657 #endif
13658 #ifdef __cplusplus
13659 }
13660 #endif
13661
13662 int
13663 main ()
13664 {
13665 return f != accept;
13666   ;
13667   return 0;
13668 }
13669 _ACEOF
13670 rm -f conftest.$ac_objext conftest$ac_exeext
13671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13672   (eval $ac_link) 2>conftest.er1
13673   ac_status=$?
13674   grep -v '^ *+' conftest.er1 >conftest.err
13675   rm -f conftest.er1
13676   cat conftest.err >&5
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } &&
13679          { ac_try='test -z "$ac_c_werror_flag"
13680                          || test ! -s conftest.err'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; } &&
13686          { ac_try='test -s conftest$ac_exeext'
13687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688   (eval $ac_try) 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); }; }; then
13692   ac_cv_func_accept=yes
13693 else
13694   echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_cv_func_accept=no
13698 fi
13699 rm -f conftest.err conftest.$ac_objext \
13700       conftest$ac_exeext conftest.$ac_ext
13701 fi
13702 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13703 echo "${ECHO_T}$ac_cv_func_accept" >&6
13704 if test $ac_cv_func_accept = yes; then
13705   gcj_checkNsl=0
13706                         gcj_cv_lib_sockets="-lsocket -lnsl"
13707 fi
13708
13709          unset ac_cv_func_accept
13710          LIBS=$gcj_oldLibs
13711      fi
13712      unset ac_cv_func_gethostbyname
13713      gcj_oldLibs=$LIBS
13714      LIBS="$LIBS $gcj_cv_lib_sockets"
13715      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13716 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13717 if test "${ac_cv_func_gethostbyname+set}" = set; then
13718   echo $ECHO_N "(cached) $ECHO_C" >&6
13719 else
13720   if test x$gcc_no_link = xyes; then
13721   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13723    { (exit 1); exit 1; }; }
13724 fi
13725 cat >conftest.$ac_ext <<_ACEOF
13726 /* confdefs.h.  */
13727 _ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h.  */
13731 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13733 #define gethostbyname innocuous_gethostbyname
13734
13735 /* System header to define __stub macros and hopefully few prototypes,
13736     which can conflict with char gethostbyname (); below.
13737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13738     <limits.h> exists even on freestanding compilers.  */
13739
13740 #ifdef __STDC__
13741 # include <limits.h>
13742 #else
13743 # include <assert.h>
13744 #endif
13745
13746 #undef gethostbyname
13747
13748 /* Override any gcc2 internal prototype to avoid an error.  */
13749 #ifdef __cplusplus
13750 extern "C"
13751 {
13752 #endif
13753 /* We use char because int might match the return type of a gcc2
13754    builtin and then its argument prototype would still apply.  */
13755 char gethostbyname ();
13756 /* The GNU C library defines this for functions which it implements
13757     to always fail with ENOSYS.  Some functions are actually named
13758     something starting with __ and the normal name is an alias.  */
13759 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13760 choke me
13761 #else
13762 char (*f) () = gethostbyname;
13763 #endif
13764 #ifdef __cplusplus
13765 }
13766 #endif
13767
13768 int
13769 main ()
13770 {
13771 return f != gethostbyname;
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13778   (eval $ac_link) 2>conftest.er1
13779   ac_status=$?
13780   grep -v '^ *+' conftest.er1 >conftest.err
13781   rm -f conftest.er1
13782   cat conftest.err >&5
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } &&
13785          { ac_try='test -z "$ac_c_werror_flag"
13786                          || test ! -s conftest.err'
13787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788   (eval $ac_try) 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; } &&
13792          { ac_try='test -s conftest$ac_exeext'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; }; then
13798   ac_cv_func_gethostbyname=yes
13799 else
13800   echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 ac_cv_func_gethostbyname=no
13804 fi
13805 rm -f conftest.err conftest.$ac_objext \
13806       conftest$ac_exeext conftest.$ac_ext
13807 fi
13808 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13809 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13810 if test $ac_cv_func_gethostbyname = yes; then
13811   :
13812 else
13813   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13814 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13815 if test "${ac_cv_lib_nsl_main+set}" = set; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   ac_check_lib_save_LIBS=$LIBS
13819 LIBS="-lnsl  $LIBS"
13820 if test x$gcc_no_link = xyes; then
13821   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13823    { (exit 1); exit 1; }; }
13824 fi
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h.  */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h.  */
13831
13832
13833 int
13834 main ()
13835 {
13836 main ();
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest.$ac_objext conftest$ac_exeext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843   (eval $ac_link) 2>conftest.er1
13844   ac_status=$?
13845   grep -v '^ *+' conftest.er1 >conftest.err
13846   rm -f conftest.er1
13847   cat conftest.err >&5
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); } &&
13850          { ac_try='test -z "$ac_c_werror_flag"
13851                          || test ! -s conftest.err'
13852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853   (eval $ac_try) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; } &&
13857          { ac_try='test -s conftest$ac_exeext'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; }; then
13863   ac_cv_lib_nsl_main=yes
13864 else
13865   echo "$as_me: failed program was:" >&5
13866 sed 's/^/| /' conftest.$ac_ext >&5
13867
13868 ac_cv_lib_nsl_main=no
13869 fi
13870 rm -f conftest.err conftest.$ac_objext \
13871       conftest$ac_exeext conftest.$ac_ext
13872 LIBS=$ac_check_lib_save_LIBS
13873 fi
13874 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13875 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13876 if test $ac_cv_lib_nsl_main = yes; then
13877   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13878 fi
13879
13880 fi
13881
13882      unset ac_cv_func_gethostbyname
13883      LIBS=$gcj_oldLIBS
13884
13885 fi
13886 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13887 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13888    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13889
13890    if test "$with_system_zlib" = yes; then
13891       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13892 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13893 if test "${ac_cv_lib_z_deflate+set}" = set; then
13894   echo $ECHO_N "(cached) $ECHO_C" >&6
13895 else
13896   ac_check_lib_save_LIBS=$LIBS
13897 LIBS="-lz  $LIBS"
13898 if test x$gcc_no_link = xyes; then
13899   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13900 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13901    { (exit 1); exit 1; }; }
13902 fi
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h.  */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h.  */
13909
13910 /* Override any gcc2 internal prototype to avoid an error.  */
13911 #ifdef __cplusplus
13912 extern "C"
13913 #endif
13914 /* We use char because int might match the return type of a gcc2
13915    builtin and then its argument prototype would still apply.  */
13916 char deflate ();
13917 int
13918 main ()
13919 {
13920 deflate ();
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext conftest$ac_exeext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13927   (eval $ac_link) 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -z "$ac_c_werror_flag"
13935                          || test ! -s conftest.err'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; } &&
13941          { ac_try='test -s conftest$ac_exeext'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_cv_lib_z_deflate=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_cv_lib_z_deflate=no
13953 fi
13954 rm -f conftest.err conftest.$ac_objext \
13955       conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13957 fi
13958 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13959 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13960 if test $ac_cv_lib_z_deflate = yes; then
13961   ZLIBSPEC=-lz
13962 else
13963   ZLIBSPEC=
13964 fi
13965
13966    fi
13967
13968    # Test for Gtk stuff, if asked for.
13969    if test "$use_gtk_awt" = yes; then
13970
13971   succeeded=no
13972
13973   if test -z "$PKG_CONFIG"; then
13974     # Extract the first word of "pkg-config", so it can be a program name with args.
13975 set dummy pkg-config; ac_word=$2
13976 echo "$as_me:$LINENO: checking for $ac_word" >&5
13977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13979   echo $ECHO_N "(cached) $ECHO_C" >&6
13980 else
13981   case $PKG_CONFIG in
13982   [\\/]* | ?:[\\/]*)
13983   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13984   ;;
13985   *)
13986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13987 for as_dir in $PATH
13988 do
13989   IFS=$as_save_IFS
13990   test -z "$as_dir" && as_dir=.
13991   for ac_exec_ext in '' $ac_executable_extensions; do
13992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13993     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13995     break 2
13996   fi
13997 done
13998 done
13999
14000   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14001   ;;
14002 esac
14003 fi
14004 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14005
14006 if test -n "$PKG_CONFIG"; then
14007   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14008 echo "${ECHO_T}$PKG_CONFIG" >&6
14009 else
14010   echo "$as_me:$LINENO: result: no" >&5
14011 echo "${ECHO_T}no" >&6
14012 fi
14013
14014   fi
14015
14016   if test "$PKG_CONFIG" = "no" ; then
14017      echo "*** The pkg-config script could not be found. Make sure it is"
14018      echo "*** in your path, or set the PKG_CONFIG environment variable"
14019      echo "*** to the full path to pkg-config."
14020      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14021   else
14022      PKG_CONFIG_MIN_VERSION=0.9.0
14023      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14024         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14025 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
14026
14027         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
14028             echo "$as_me:$LINENO: result: yes" >&5
14029 echo "${ECHO_T}yes" >&6
14030             succeeded=yes
14031
14032             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14033 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
14034             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
14035             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14036 echo "${ECHO_T}$GTK_CFLAGS" >&6
14037
14038             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14039 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
14040             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
14041             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14042 echo "${ECHO_T}$GTK_LIBS" >&6
14043         else
14044             GTK_CFLAGS=""
14045             GTK_LIBS=""
14046             ## If we have a custom action on failure, don't print errors, but
14047             ## do set a variable so people can do so.
14048             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14049             echo $GTK_PKG_ERRORS
14050         fi
14051
14052
14053
14054      else
14055         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14056         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14057      fi
14058   fi
14059
14060   if test $succeeded = yes; then
14061      :
14062   else
14063      { { 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
14064 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;}
14065    { (exit 1); exit 1; }; }
14066   fi
14067
14068
14069
14070
14071
14072   succeeded=no
14073
14074   if test -z "$PKG_CONFIG"; then
14075     # Extract the first word of "pkg-config", so it can be a program name with args.
14076 set dummy pkg-config; ac_word=$2
14077 echo "$as_me:$LINENO: checking for $ac_word" >&5
14078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14079 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   case $PKG_CONFIG in
14083   [\\/]* | ?:[\\/]*)
14084   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14085   ;;
14086   *)
14087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14089 do
14090   IFS=$as_save_IFS
14091   test -z "$as_dir" && as_dir=.
14092   for ac_exec_ext in '' $ac_executable_extensions; do
14093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14094     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14096     break 2
14097   fi
14098 done
14099 done
14100
14101   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14102   ;;
14103 esac
14104 fi
14105 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14106
14107 if test -n "$PKG_CONFIG"; then
14108   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14109 echo "${ECHO_T}$PKG_CONFIG" >&6
14110 else
14111   echo "$as_me:$LINENO: result: no" >&5
14112 echo "${ECHO_T}no" >&6
14113 fi
14114
14115   fi
14116
14117   if test "$PKG_CONFIG" = "no" ; then
14118      echo "*** The pkg-config script could not be found. Make sure it is"
14119      echo "*** in your path, or set the PKG_CONFIG environment variable"
14120      echo "*** to the full path to pkg-config."
14121      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14122   else
14123      PKG_CONFIG_MIN_VERSION=0.9.0
14124      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14125         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14126 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
14127
14128         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14129             echo "$as_me:$LINENO: result: yes" >&5
14130 echo "${ECHO_T}yes" >&6
14131             succeeded=yes
14132
14133             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14134 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
14135             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14136             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14137 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14138
14139             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14140 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14141             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14142             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14143 echo "${ECHO_T}$GLIB_LIBS" >&6
14144         else
14145             GLIB_CFLAGS=""
14146             GLIB_LIBS=""
14147             ## If we have a custom action on failure, don't print errors, but
14148             ## do set a variable so people can do so.
14149             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14150             echo $GLIB_PKG_ERRORS
14151         fi
14152
14153
14154
14155      else
14156         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14157         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14158      fi
14159   fi
14160
14161   if test $succeeded = yes; then
14162      :
14163   else
14164      { { 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
14165 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;}
14166    { (exit 1); exit 1; }; }
14167   fi
14168
14169
14170
14171
14172
14173   succeeded=no
14174
14175   if test -z "$PKG_CONFIG"; then
14176     # Extract the first word of "pkg-config", so it can be a program name with args.
14177 set dummy pkg-config; ac_word=$2
14178 echo "$as_me:$LINENO: checking for $ac_word" >&5
14179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14180 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   case $PKG_CONFIG in
14184   [\\/]* | ?:[\\/]*)
14185   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14186   ;;
14187   *)
14188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14189 for as_dir in $PATH
14190 do
14191   IFS=$as_save_IFS
14192   test -z "$as_dir" && as_dir=.
14193   for ac_exec_ext in '' $ac_executable_extensions; do
14194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14195     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14197     break 2
14198   fi
14199 done
14200 done
14201
14202   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14203   ;;
14204 esac
14205 fi
14206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14207
14208 if test -n "$PKG_CONFIG"; then
14209   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14210 echo "${ECHO_T}$PKG_CONFIG" >&6
14211 else
14212   echo "$as_me:$LINENO: result: no" >&5
14213 echo "${ECHO_T}no" >&6
14214 fi
14215
14216   fi
14217
14218   if test "$PKG_CONFIG" = "no" ; then
14219      echo "*** The pkg-config script could not be found. Make sure it is"
14220      echo "*** in your path, or set the PKG_CONFIG environment variable"
14221      echo "*** to the full path to pkg-config."
14222      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14223   else
14224      PKG_CONFIG_MIN_VERSION=0.9.0
14225      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14226         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14227 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14228
14229         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14230             echo "$as_me:$LINENO: result: yes" >&5
14231 echo "${ECHO_T}yes" >&6
14232             succeeded=yes
14233
14234             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14235 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14236             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14237             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14238 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14239
14240             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14241 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14242             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14243             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14244 echo "${ECHO_T}$LIBART_LIBS" >&6
14245         else
14246             LIBART_CFLAGS=""
14247             LIBART_LIBS=""
14248             ## If we have a custom action on failure, don't print errors, but
14249             ## do set a variable so people can do so.
14250             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14251             echo $LIBART_PKG_ERRORS
14252         fi
14253
14254
14255
14256      else
14257         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14258         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14259      fi
14260   fi
14261
14262   if test $succeeded = yes; then
14263      :
14264   else
14265      { { 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
14266 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;}
14267    { (exit 1); exit 1; }; }
14268   fi
14269
14270
14271
14272
14273       # We require the XTest Extension to support java.awt.Robot.
14274       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14275 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14276 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14277   echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279   ac_check_lib_save_LIBS=$LIBS
14280 LIBS="-lXtst ${X_LIBS} $LIBS"
14281 if test x$gcc_no_link = xyes; then
14282   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14283 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14284    { (exit 1); exit 1; }; }
14285 fi
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292
14293 /* Override any gcc2 internal prototype to avoid an error.  */
14294 #ifdef __cplusplus
14295 extern "C"
14296 #endif
14297 /* We use char because int might match the return type of a gcc2
14298    builtin and then its argument prototype would still apply.  */
14299 char XTestQueryExtension ();
14300 int
14301 main ()
14302 {
14303 XTestQueryExtension ();
14304   ;
14305   return 0;
14306 }
14307 _ACEOF
14308 rm -f conftest.$ac_objext conftest$ac_exeext
14309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14310   (eval $ac_link) 2>conftest.er1
14311   ac_status=$?
14312   grep -v '^ *+' conftest.er1 >conftest.err
14313   rm -f conftest.er1
14314   cat conftest.err >&5
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } &&
14317          { ac_try='test -z "$ac_c_werror_flag"
14318                          || test ! -s conftest.err'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; } &&
14324          { ac_try='test -s conftest$ac_exeext'
14325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326   (eval $ac_try) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   ac_cv_lib_Xtst_XTestQueryExtension=yes
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 ac_cv_lib_Xtst_XTestQueryExtension=no
14336 fi
14337 rm -f conftest.err conftest.$ac_objext \
14338       conftest$ac_exeext conftest.$ac_ext
14339 LIBS=$ac_check_lib_save_LIBS
14340 fi
14341 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14342 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14343 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14344   true
14345 else
14346   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14347 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14348    { (exit 1); exit 1; }; }
14349 fi
14350
14351    fi
14352
14353    # On Solaris, and maybe other architectures, the Boehm collector
14354    # requires -ldl.
14355    if test "$GC" = boehm; then
14356       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14357 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14358 if test "${ac_cv_lib_dl_main+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   ac_check_lib_save_LIBS=$LIBS
14362 LIBS="-ldl  $LIBS"
14363 if test x$gcc_no_link = xyes; then
14364   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14365 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14366    { (exit 1); exit 1; }; }
14367 fi
14368 cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h.  */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h.  */
14374
14375
14376 int
14377 main ()
14378 {
14379 main ();
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext conftest$ac_exeext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14386   (eval $ac_link) 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -z "$ac_c_werror_flag"
14394                          || test ! -s conftest.err'
14395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396   (eval $ac_try) 2>&5
14397   ac_status=$?
14398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399   (exit $ac_status); }; } &&
14400          { ac_try='test -s conftest$ac_exeext'
14401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402   (eval $ac_try) 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); }; }; then
14406   ac_cv_lib_dl_main=yes
14407 else
14408   echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14410
14411 ac_cv_lib_dl_main=no
14412 fi
14413 rm -f conftest.err conftest.$ac_objext \
14414       conftest$ac_exeext conftest.$ac_ext
14415 LIBS=$ac_check_lib_save_LIBS
14416 fi
14417 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14418 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14419 if test $ac_cv_lib_dl_main = yes; then
14420   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14421 fi
14422
14423    fi
14424 fi
14425
14426 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14427 case $build in
14428     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14429     *)         CLASSPATH_SEPARATOR=':' ;;
14430 esac
14431
14432
14433 # We must search the source tree for java.lang, since we still don't
14434 # have libgcj.jar nor java/lang/*.class
14435 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14436 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14437
14438 # Since some classes depend on this one, we need its source available
14439 # before we can do any GCJ compilation test :-(
14440 if test ! -f gnu/classpath/Configuration.java; then
14441   test -d gnu || mkdir gnu
14442   test -d gnu/classpath || mkdir gnu/classpath
14443   # Note that it is not crucial that all the values here be correct.
14444   sed -e "s,@prefix@,$prefix," \
14445       -e "s,@VERSION@,$VERSION," \
14446       -e "s,@LIBDEBUG@,false," \
14447       -e "s,@INIT_LOAD_LIBRARY@,false," \
14448       -e "s,@@,$LIBGCJDEBUG," \
14449       -e "s,@default_toolkit@,$TOOLKIT," \
14450       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14451       -e "s,@GTK_CAIRO_ENABLED@,false," \
14452       -e "s,@ECJ_JAR@,," \
14453         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14454         > gnu/classpath/Configuration.java
14455   # We do not want to redirect the output of the grep below to /dev/null,
14456   # but we add /dev/null to the input list so that grep will print the
14457   # filename of Configuration.java in case it finds any matches.
14458   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14459     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14460 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14461    { (exit 1); exit 1; }; }
14462   fi
14463 fi
14464
14465 if test -n "$ac_tool_prefix"; then
14466   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14467 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14468 echo "$as_me:$LINENO: checking for $ac_word" >&5
14469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14470 if test "${ac_cv_prog_GCJ+set}" = set; then
14471   echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473   if test -n "$GCJ"; then
14474   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14475 else
14476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14477 for as_dir in $PATH
14478 do
14479   IFS=$as_save_IFS
14480   test -z "$as_dir" && as_dir=.
14481   for ac_exec_ext in '' $ac_executable_extensions; do
14482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14483     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14485     break 2
14486   fi
14487 done
14488 done
14489
14490 fi
14491 fi
14492 GCJ=$ac_cv_prog_GCJ
14493 if test -n "$GCJ"; then
14494   echo "$as_me:$LINENO: result: $GCJ" >&5
14495 echo "${ECHO_T}$GCJ" >&6
14496 else
14497   echo "$as_me:$LINENO: result: no" >&5
14498 echo "${ECHO_T}no" >&6
14499 fi
14500
14501 fi
14502 if test -z "$ac_cv_prog_GCJ"; then
14503   ac_ct_GCJ=$GCJ
14504   # Extract the first word of "gcj", so it can be a program name with args.
14505 set dummy gcj; ac_word=$2
14506 echo "$as_me:$LINENO: checking for $ac_word" >&5
14507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14508 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14509   echo $ECHO_N "(cached) $ECHO_C" >&6
14510 else
14511   if test -n "$ac_ct_GCJ"; then
14512   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14513 else
14514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14515 for as_dir in $PATH
14516 do
14517   IFS=$as_save_IFS
14518   test -z "$as_dir" && as_dir=.
14519   for ac_exec_ext in '' $ac_executable_extensions; do
14520   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14521     ac_cv_prog_ac_ct_GCJ="gcj"
14522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14523     break 2
14524   fi
14525 done
14526 done
14527
14528   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14529 fi
14530 fi
14531 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14532 if test -n "$ac_ct_GCJ"; then
14533   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14534 echo "${ECHO_T}$ac_ct_GCJ" >&6
14535 else
14536   echo "$as_me:$LINENO: result: no" >&5
14537 echo "${ECHO_T}no" >&6
14538 fi
14539
14540   GCJ=$ac_ct_GCJ
14541 else
14542   GCJ="$ac_cv_prog_GCJ"
14543 fi
14544
14545   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14546
14547
14548
14549
14550 # Now remove it.
14551 rm -f gnu/classpath/Configuration.java
14552
14553 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14554
14555 echo "$as_me:$LINENO: checking for void *" >&5
14556 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14557 if test "${ac_cv_type_void_p+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 $ac_includes_default
14567 int
14568 main ()
14569 {
14570 if ((void * *) 0)
14571   return 0;
14572 if (sizeof (void *))
14573   return 0;
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 rm -f conftest.$ac_objext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580   (eval $ac_compile) 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } &&
14587          { ac_try='test -z "$ac_c_werror_flag"
14588                          || test ! -s conftest.err'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; } &&
14594          { ac_try='test -s conftest.$ac_objext'
14595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596   (eval $ac_try) 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); }; }; then
14600   ac_cv_type_void_p=yes
14601 else
14602   echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_cv_type_void_p=no
14606 fi
14607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608 fi
14609 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14610 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14611
14612 echo "$as_me:$LINENO: checking size of void *" >&5
14613 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14614 if test "${ac_cv_sizeof_void_p+set}" = set; then
14615   echo $ECHO_N "(cached) $ECHO_C" >&6
14616 else
14617   if test "$ac_cv_type_void_p" = yes; then
14618   # The cast to unsigned long works around a bug in the HP C Compiler
14619   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14620   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14621   # This bug is HP SR number 8606223364.
14622   if test "$cross_compiling" = yes; then
14623   # Depending upon the size, compute the lo and hi bounds.
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630 $ac_includes_default
14631 int
14632 main ()
14633 {
14634 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14635 test_array [0] = 0
14636
14637   ;
14638   return 0;
14639 }
14640 _ACEOF
14641 rm -f conftest.$ac_objext
14642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14643   (eval $ac_compile) 2>conftest.er1
14644   ac_status=$?
14645   grep -v '^ *+' conftest.er1 >conftest.err
14646   rm -f conftest.er1
14647   cat conftest.err >&5
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); } &&
14650          { ac_try='test -z "$ac_c_werror_flag"
14651                          || test ! -s conftest.err'
14652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653   (eval $ac_try) 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); }; } &&
14657          { ac_try='test -s conftest.$ac_objext'
14658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659   (eval $ac_try) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; }; then
14663   ac_lo=0 ac_mid=0
14664   while :; do
14665     cat >conftest.$ac_ext <<_ACEOF
14666 /* confdefs.h.  */
14667 _ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h.  */
14671 $ac_includes_default
14672 int
14673 main ()
14674 {
14675 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14676 test_array [0] = 0
14677
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684   (eval $ac_compile) 2>conftest.er1
14685   ac_status=$?
14686   grep -v '^ *+' conftest.er1 >conftest.err
14687   rm -f conftest.er1
14688   cat conftest.err >&5
14689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690   (exit $ac_status); } &&
14691          { ac_try='test -z "$ac_c_werror_flag"
14692                          || test ! -s conftest.err'
14693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694   (eval $ac_try) 2>&5
14695   ac_status=$?
14696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697   (exit $ac_status); }; } &&
14698          { ac_try='test -s conftest.$ac_objext'
14699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700   (eval $ac_try) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   ac_hi=$ac_mid; break
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 ac_lo=`expr $ac_mid + 1`
14710                     if test $ac_lo -le $ac_mid; then
14711                       ac_lo= ac_hi=
14712                       break
14713                     fi
14714                     ac_mid=`expr 2 '*' $ac_mid + 1`
14715 fi
14716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14717   done
14718 else
14719   echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728 $ac_includes_default
14729 int
14730 main ()
14731 {
14732 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14733 test_array [0] = 0
14734
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741   (eval $ac_compile) 2>conftest.er1
14742   ac_status=$?
14743   grep -v '^ *+' conftest.er1 >conftest.err
14744   rm -f conftest.er1
14745   cat conftest.err >&5
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); } &&
14748          { ac_try='test -z "$ac_c_werror_flag"
14749                          || test ! -s conftest.err'
14750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751   (eval $ac_try) 2>&5
14752   ac_status=$?
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); }; } &&
14755          { ac_try='test -s conftest.$ac_objext'
14756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757   (eval $ac_try) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; }; then
14761   ac_hi=-1 ac_mid=-1
14762   while :; do
14763     cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769 $ac_includes_default
14770 int
14771 main ()
14772 {
14773 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14774 test_array [0] = 0
14775
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782   (eval $ac_compile) 2>conftest.er1
14783   ac_status=$?
14784   grep -v '^ *+' conftest.er1 >conftest.err
14785   rm -f conftest.er1
14786   cat conftest.err >&5
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } &&
14789          { ac_try='test -z "$ac_c_werror_flag"
14790                          || test ! -s conftest.err'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; } &&
14796          { ac_try='test -s conftest.$ac_objext'
14797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798   (eval $ac_try) 2>&5
14799   ac_status=$?
14800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); }; }; then
14802   ac_lo=$ac_mid; break
14803 else
14804   echo "$as_me: failed program was:" >&5
14805 sed 's/^/| /' conftest.$ac_ext >&5
14806
14807 ac_hi=`expr '(' $ac_mid ')' - 1`
14808                        if test $ac_mid -le $ac_hi; then
14809                          ac_lo= ac_hi=
14810                          break
14811                        fi
14812                        ac_mid=`expr 2 '*' $ac_mid`
14813 fi
14814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14815   done
14816 else
14817   echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ac_lo= ac_hi=
14821 fi
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 fi
14824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14825 # Binary search between lo and hi bounds.
14826 while test "x$ac_lo" != "x$ac_hi"; do
14827   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14828   cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834 $ac_includes_default
14835 int
14836 main ()
14837 {
14838 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14839 test_array [0] = 0
14840
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847   (eval $ac_compile) 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -z "$ac_c_werror_flag"
14855                          || test ! -s conftest.err'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; } &&
14861          { ac_try='test -s conftest.$ac_objext'
14862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863   (eval $ac_try) 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   ac_hi=$ac_mid
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 ac_lo=`expr '(' $ac_mid ')' + 1`
14873 fi
14874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14875 done
14876 case $ac_lo in
14877 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14878 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14879 See \`config.log' for more details." >&5
14880 echo "$as_me: error: cannot compute sizeof (void *), 77
14881 See \`config.log' for more details." >&2;}
14882    { (exit 1); exit 1; }; } ;;
14883 esac
14884 else
14885   if test "$cross_compiling" = yes; then
14886   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14887 See \`config.log' for more details." >&5
14888 echo "$as_me: error: cannot run test program while cross compiling
14889 See \`config.log' for more details." >&2;}
14890    { (exit 1); exit 1; }; }
14891 else
14892   cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 $ac_includes_default
14899 long longval () { return (long) (sizeof (void *)); }
14900 unsigned long ulongval () { return (long) (sizeof (void *)); }
14901 #include <stdio.h>
14902 #include <stdlib.h>
14903 int
14904 main ()
14905 {
14906
14907   FILE *f = fopen ("conftest.val", "w");
14908   if (! f)
14909     exit (1);
14910   if (((long) (sizeof (void *))) < 0)
14911     {
14912       long i = longval ();
14913       if (i != ((long) (sizeof (void *))))
14914         exit (1);
14915       fprintf (f, "%ld\n", i);
14916     }
14917   else
14918     {
14919       unsigned long i = ulongval ();
14920       if (i != ((long) (sizeof (void *))))
14921         exit (1);
14922       fprintf (f, "%lu\n", i);
14923     }
14924   exit (ferror (f) || fclose (f) != 0);
14925
14926   ;
14927   return 0;
14928 }
14929 _ACEOF
14930 rm -f conftest$ac_exeext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14932   (eval $ac_link) 2>&5
14933   ac_status=$?
14934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937   (eval $ac_try) 2>&5
14938   ac_status=$?
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); }; }; then
14941   ac_cv_sizeof_void_p=`cat conftest.val`
14942 else
14943   echo "$as_me: program exited with status $ac_status" >&5
14944 echo "$as_me: failed program was:" >&5
14945 sed 's/^/| /' conftest.$ac_ext >&5
14946
14947 ( exit $ac_status )
14948 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14949 See \`config.log' for more details." >&5
14950 echo "$as_me: error: cannot compute sizeof (void *), 77
14951 See \`config.log' for more details." >&2;}
14952    { (exit 1); exit 1; }; }
14953 fi
14954 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14955 fi
14956 fi
14957 rm -f conftest.val
14958 else
14959   ac_cv_sizeof_void_p=0
14960 fi
14961 fi
14962 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14963 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14964 cat >>confdefs.h <<_ACEOF
14965 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14966 _ACEOF
14967
14968
14969
14970 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14971 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14972 if test "${ac_cv_c_bigendian+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   # See if sys/param.h defines the BYTE_ORDER macro.
14976 cat >conftest.$ac_ext <<_ACEOF
14977 /* confdefs.h.  */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h.  */
14982 #include <sys/types.h>
14983 #include <sys/param.h>
14984
14985 int
14986 main ()
14987 {
14988 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14989  bogus endian macros
14990 #endif
14991
14992   ;
14993   return 0;
14994 }
14995 _ACEOF
14996 rm -f conftest.$ac_objext
14997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14998   (eval $ac_compile) 2>conftest.er1
14999   ac_status=$?
15000   grep -v '^ *+' conftest.er1 >conftest.err
15001   rm -f conftest.er1
15002   cat conftest.err >&5
15003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004   (exit $ac_status); } &&
15005          { ac_try='test -z "$ac_c_werror_flag"
15006                          || test ! -s conftest.err'
15007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008   (eval $ac_try) 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; } &&
15012          { ac_try='test -s conftest.$ac_objext'
15013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014   (eval $ac_try) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; }; then
15018   # It does; now see whether it defined to BIG_ENDIAN or not.
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025 #include <sys/types.h>
15026 #include <sys/param.h>
15027
15028 int
15029 main ()
15030 {
15031 #if BYTE_ORDER != BIG_ENDIAN
15032  not big endian
15033 #endif
15034
15035   ;
15036   return 0;
15037 }
15038 _ACEOF
15039 rm -f conftest.$ac_objext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041   (eval $ac_compile) 2>conftest.er1
15042   ac_status=$?
15043   grep -v '^ *+' conftest.er1 >conftest.err
15044   rm -f conftest.er1
15045   cat conftest.err >&5
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); } &&
15048          { ac_try='test -z "$ac_c_werror_flag"
15049                          || test ! -s conftest.err'
15050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051   (eval $ac_try) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest.$ac_objext'
15056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057   (eval $ac_try) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); }; }; then
15061   ac_cv_c_bigendian=yes
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_cv_c_bigendian=no
15067 fi
15068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 # It does not; compile a test program.
15074 if test "$cross_compiling" = yes; then
15075   # try to guess the endianness by grepping values into an object file
15076   ac_cv_c_bigendian=unknown
15077   cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h.  */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h.  */
15083 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15084 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15085 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15086 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15087 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15088 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15089 int
15090 main ()
15091 {
15092  _ascii (); _ebcdic ();
15093   ;
15094   return 0;
15095 }
15096 _ACEOF
15097 rm -f conftest.$ac_objext
15098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099   (eval $ac_compile) 2>conftest.er1
15100   ac_status=$?
15101   grep -v '^ *+' conftest.er1 >conftest.err
15102   rm -f conftest.er1
15103   cat conftest.err >&5
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } &&
15106          { ac_try='test -z "$ac_c_werror_flag"
15107                          || test ! -s conftest.err'
15108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109   (eval $ac_try) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); }; } &&
15113          { ac_try='test -s conftest.$ac_objext'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; }; then
15119   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15120   ac_cv_c_bigendian=yes
15121 fi
15122 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15123   if test "$ac_cv_c_bigendian" = unknown; then
15124     ac_cv_c_bigendian=no
15125   else
15126     # finding both strings is unlikely to happen, but who knows?
15127     ac_cv_c_bigendian=unknown
15128   fi
15129 fi
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 fi
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 else
15137   cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143 int
15144 main ()
15145 {
15146   /* Are we little or big endian?  From Harbison&Steele.  */
15147   union
15148   {
15149     long l;
15150     char c[sizeof (long)];
15151   } u;
15152   u.l = 1;
15153   exit (u.c[sizeof (long) - 1] == 1);
15154 }
15155 _ACEOF
15156 rm -f conftest$ac_exeext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15158   (eval $ac_link) 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163   (eval $ac_try) 2>&5
15164   ac_status=$?
15165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166   (exit $ac_status); }; }; then
15167   ac_cv_c_bigendian=no
15168 else
15169   echo "$as_me: program exited with status $ac_status" >&5
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ( exit $ac_status )
15174 ac_cv_c_bigendian=yes
15175 fi
15176 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15177 fi
15178 fi
15179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15180 fi
15181 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15182 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15183 case $ac_cv_c_bigendian in
15184   yes)
15185
15186 cat >>confdefs.h <<\_ACEOF
15187 #define WORDS_BIGENDIAN 1
15188 _ACEOF
15189  ;;
15190   no)
15191      ;;
15192   *)
15193     { { echo "$as_me:$LINENO: error: unknown endianness
15194 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15195 echo "$as_me: error: unknown endianness
15196 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15197    { (exit 1); exit 1; }; } ;;
15198 esac
15199
15200
15201 ZLIBS=
15202 SYS_ZLIBS=
15203 ZINCS=
15204
15205 if test -z "$ZLIBSPEC"; then
15206    # Use zlib from the GCC tree.
15207    ZINCS='-I$(top_srcdir)/../zlib'
15208    ZLIBS=../zlib/libzgcj_convenience.la
15209 else
15210    # System's zlib.
15211    SYS_ZLIBS="$ZLIBSPEC"
15212 fi
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224 if test "$NATIVE" = yes; then
15225   NATIVE_TRUE=
15226   NATIVE_FALSE='#'
15227 else
15228   NATIVE_TRUE='#'
15229   NATIVE_FALSE=
15230 fi
15231
15232
15233
15234 if test "$enable_shared" = yes; then
15235   ENABLE_SHARED_TRUE=
15236   ENABLE_SHARED_FALSE='#'
15237 else
15238   ENABLE_SHARED_TRUE='#'
15239   ENABLE_SHARED_FALSE=
15240 fi
15241
15242
15243
15244 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15245   NEEDS_DATA_START_TRUE=
15246   NEEDS_DATA_START_FALSE='#'
15247 else
15248   NEEDS_DATA_START_TRUE='#'
15249   NEEDS_DATA_START_FALSE=
15250 fi
15251
15252
15253
15254 # Process the option "--enable-version-specific-runtime-libs"
15255 # Calculate toolexeclibdir
15256 case ${version_specific_libs} in
15257   yes)
15258     # Need the gcc compiler version to know where to install libraries
15259     # and header files if --enable-version-specific-runtime-libs option
15260     # is selected.
15261     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15262     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15263     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15264     toolexeclibdir=$toolexecmainlibdir
15265     ;;
15266   no)
15267     if test -n "$with_cross_host" &&
15268        test x"$with_cross_host" != x"no"; then
15269       # Install a library built with a cross compiler in tooldir, not libdir.
15270       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15271       toolexecmainlibdir='$(toolexecdir)/lib'
15272     else
15273       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15274       toolexecmainlibdir='$(libdir)'
15275     fi
15276     multi_os_directory=`$CC -print-multi-os-directory`
15277     case $multi_os_directory in
15278       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15279       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15280     esac
15281     ;;
15282 esac
15283
15284
15285
15286
15287 # Determine where the standard .db file and GNU Classpath JNI
15288 # libraries are found.
15289 multi_os_directory=`$CC -print-multi-os-directory`
15290 case $multi_os_directory in
15291   .)
15292    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15293    ;;
15294   *)
15295    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15296    ;;
15297 esac
15298
15299
15300 # Determine gcj version number.
15301 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15302 GCJVERSION=$gcjversion
15303
15304
15305 cat >>confdefs.h <<_ACEOF
15306 #define GCJVERSION "$GCJVERSION"
15307 _ACEOF
15308
15309
15310
15311 cat >>confdefs.h <<\_ACEOF
15312 #define JV_VERSION "1.5.0"
15313 _ACEOF
15314
15315
15316 cat >>confdefs.h <<\_ACEOF
15317 #define JV_API_VERSION "1.5"
15318 _ACEOF
15319
15320
15321
15322 case "${with_gxx_include_dir}" in
15323   yes)
15324     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15325 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15326    { (exit 1); exit 1; }; }
15327     ;;
15328   no | "")
15329     case "${enable_version_specific_runtime_libs}" in
15330       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15331       *)
15332         libstdcxx_incdir='c++/$(gcc_version)'
15333         gxx_include_dir='include/$(libstdcxx_incdir)'
15334         if test -n "$with_cross_host" &&
15335            test x"$with_cross_host" != x"no"; then
15336           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15337         else
15338           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15339         fi;;
15340     esac ;;
15341   *) gxx_include_dir=${with_gxx_include_dir} ;;
15342 esac
15343
15344
15345
15346
15347 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15348 # On that system, sys/ioctl.h will not include sys/filio.h unless
15349 # BSD_COMP is defined; just including sys/filio.h is simpler.
15350 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15351 # for now.  If you change this, you also must update natFile.cc.
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15376                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15377                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15378                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15379                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
15380 do
15381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15383   echo "$as_me:$LINENO: checking for $ac_header" >&5
15384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 fi
15388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15390 else
15391   # Is the header compilable?
15392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 $ac_includes_default
15401 #include <$ac_header>
15402 _ACEOF
15403 rm -f conftest.$ac_objext
15404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15405   (eval $ac_compile) 2>conftest.er1
15406   ac_status=$?
15407   grep -v '^ *+' conftest.er1 >conftest.err
15408   rm -f conftest.er1
15409   cat conftest.err >&5
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); } &&
15412          { ac_try='test -z "$ac_c_werror_flag"
15413                          || test ! -s conftest.err'
15414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415   (eval $ac_try) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; } &&
15419          { ac_try='test -s conftest.$ac_objext'
15420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421   (eval $ac_try) 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }; }; then
15425   ac_header_compiler=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 ac_header_compiler=no
15431 fi
15432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15434 echo "${ECHO_T}$ac_header_compiler" >&6
15435
15436 # Is the header present?
15437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15439 cat >conftest.$ac_ext <<_ACEOF
15440 /* confdefs.h.  */
15441 _ACEOF
15442 cat confdefs.h >>conftest.$ac_ext
15443 cat >>conftest.$ac_ext <<_ACEOF
15444 /* end confdefs.h.  */
15445 #include <$ac_header>
15446 _ACEOF
15447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15448   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15449   ac_status=$?
15450   grep -v '^ *+' conftest.er1 >conftest.err
15451   rm -f conftest.er1
15452   cat conftest.err >&5
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } >/dev/null; then
15455   if test -s conftest.err; then
15456     ac_cpp_err=$ac_c_preproc_warn_flag
15457     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15458   else
15459     ac_cpp_err=
15460   fi
15461 else
15462   ac_cpp_err=yes
15463 fi
15464 if test -z "$ac_cpp_err"; then
15465   ac_header_preproc=yes
15466 else
15467   echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15469
15470   ac_header_preproc=no
15471 fi
15472 rm -f conftest.err conftest.$ac_ext
15473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15474 echo "${ECHO_T}$ac_header_preproc" >&6
15475
15476 # So?  What about this header?
15477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15478   yes:no: )
15479     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15483     ac_header_preproc=yes
15484     ;;
15485   no:yes:* )
15486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15488     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15489 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15490     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15492     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15493 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15496     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15498     (
15499       cat <<\_ASBOX
15500 ## ---------------------------------- ##
15501 ## Report this to the libjava lists.  ##
15502 ## ---------------------------------- ##
15503 _ASBOX
15504     ) |
15505       sed "s/^/$as_me: WARNING:     /" >&2
15506     ;;
15507 esac
15508 echo "$as_me:$LINENO: checking for $ac_header" >&5
15509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15511   echo $ECHO_N "(cached) $ECHO_C" >&6
15512 else
15513   eval "$as_ac_Header=\$ac_header_preproc"
15514 fi
15515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15517
15518 fi
15519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15520   cat >>confdefs.h <<_ACEOF
15521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15522 _ACEOF
15523
15524 fi
15525
15526 done
15527
15528
15529 for ac_header in inttypes.h
15530 do
15531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15533   echo "$as_me:$LINENO: checking for $ac_header" >&5
15534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15535 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15536   echo $ECHO_N "(cached) $ECHO_C" >&6
15537 fi
15538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15540 else
15541   # Is the header compilable?
15542 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15544 cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550 $ac_includes_default
15551 #include <$ac_header>
15552 _ACEOF
15553 rm -f conftest.$ac_objext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555   (eval $ac_compile) 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag"
15563                          || test ! -s conftest.err'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; } &&
15569          { ac_try='test -s conftest.$ac_objext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_header_compiler=yes
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580 ac_header_compiler=no
15581 fi
15582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15583 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15584 echo "${ECHO_T}$ac_header_compiler" >&6
15585
15586 # Is the header present?
15587 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595 #include <$ac_header>
15596 _ACEOF
15597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15599   ac_status=$?
15600   grep -v '^ *+' conftest.er1 >conftest.err
15601   rm -f conftest.er1
15602   cat conftest.err >&5
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); } >/dev/null; then
15605   if test -s conftest.err; then
15606     ac_cpp_err=$ac_c_preproc_warn_flag
15607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15608   else
15609     ac_cpp_err=
15610   fi
15611 else
15612   ac_cpp_err=yes
15613 fi
15614 if test -z "$ac_cpp_err"; then
15615   ac_header_preproc=yes
15616 else
15617   echo "$as_me: failed program was:" >&5
15618 sed 's/^/| /' conftest.$ac_ext >&5
15619
15620   ac_header_preproc=no
15621 fi
15622 rm -f conftest.err conftest.$ac_ext
15623 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15624 echo "${ECHO_T}$ac_header_preproc" >&6
15625
15626 # So?  What about this header?
15627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15628   yes:no: )
15629     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15633     ac_header_preproc=yes
15634     ;;
15635   no:yes:* )
15636     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15638     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15639 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15640     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15642     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15643 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15644     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15646     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15648     (
15649       cat <<\_ASBOX
15650 ## ---------------------------------- ##
15651 ## Report this to the libjava lists.  ##
15652 ## ---------------------------------- ##
15653 _ASBOX
15654     ) |
15655       sed "s/^/$as_me: WARNING:     /" >&2
15656     ;;
15657 esac
15658 echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   eval "$as_ac_Header=\$ac_header_preproc"
15664 fi
15665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15667
15668 fi
15669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15670   cat >>confdefs.h <<_ACEOF
15671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15672 _ACEOF
15673
15674
15675 cat >>confdefs.h <<\_ACEOF
15676 #define HAVE_INTTYPES_H 1
15677 _ACEOF
15678
15679
15680 cat >>confdefs.h <<\_ACEOF
15681 #define JV_HAVE_INTTYPES_H 1
15682 _ACEOF
15683
15684
15685 fi
15686
15687 done
15688
15689 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15690 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15691 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15692   echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694   cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700 #include <sys/types.h>
15701 #include <sys/wait.h>
15702 #ifndef WEXITSTATUS
15703 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15704 #endif
15705 #ifndef WIFEXITED
15706 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15707 #endif
15708
15709 int
15710 main ()
15711 {
15712   int s;
15713   wait (&s);
15714   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15715   ;
15716   return 0;
15717 }
15718 _ACEOF
15719 rm -f conftest.$ac_objext
15720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15721   (eval $ac_compile) 2>conftest.er1
15722   ac_status=$?
15723   grep -v '^ *+' conftest.er1 >conftest.err
15724   rm -f conftest.er1
15725   cat conftest.err >&5
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } &&
15728          { ac_try='test -z "$ac_c_werror_flag"
15729                          || test ! -s conftest.err'
15730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731   (eval $ac_try) 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); }; } &&
15735          { ac_try='test -s conftest.$ac_objext'
15736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737   (eval $ac_try) 2>&5
15738   ac_status=$?
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); }; }; then
15741   ac_cv_header_sys_wait_h=yes
15742 else
15743   echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15745
15746 ac_cv_header_sys_wait_h=no
15747 fi
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15749 fi
15750 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15751 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15752 if test $ac_cv_header_sys_wait_h = yes; then
15753
15754 cat >>confdefs.h <<\_ACEOF
15755 #define HAVE_SYS_WAIT_H 1
15756 _ACEOF
15757
15758 fi
15759
15760
15761 echo "$as_me:$LINENO: checking for ssize_t" >&5
15762 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15763 if test "${ac_cv_type_ssize_t+set}" = set; then
15764   echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766   cat >conftest.$ac_ext <<_ACEOF
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772 $ac_includes_default
15773 int
15774 main ()
15775 {
15776 if ((ssize_t *) 0)
15777   return 0;
15778 if (sizeof (ssize_t))
15779   return 0;
15780   ;
15781   return 0;
15782 }
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786   (eval $ac_compile) 2>conftest.er1
15787   ac_status=$?
15788   grep -v '^ *+' conftest.er1 >conftest.err
15789   rm -f conftest.er1
15790   cat conftest.err >&5
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); } &&
15793          { ac_try='test -z "$ac_c_werror_flag"
15794                          || test ! -s conftest.err'
15795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796   (eval $ac_try) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; } &&
15800          { ac_try='test -s conftest.$ac_objext'
15801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802   (eval $ac_try) 2>&5
15803   ac_status=$?
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); }; }; then
15806   ac_cv_type_ssize_t=yes
15807 else
15808   echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15810
15811 ac_cv_type_ssize_t=no
15812 fi
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814 fi
15815 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15816 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15817 if test $ac_cv_type_ssize_t = yes; then
15818   :
15819 else
15820
15821 cat >>confdefs.h <<_ACEOF
15822 #define ssize_t int
15823 _ACEOF
15824
15825 fi
15826
15827 echo "$as_me:$LINENO: checking for magic_t" >&5
15828 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
15829 if test "${ac_cv_type_magic_t+set}" = set; then
15830   echo $ECHO_N "(cached) $ECHO_C" >&6
15831 else
15832   cat >conftest.$ac_ext <<_ACEOF
15833 /* confdefs.h.  */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h.  */
15838
15839 #ifdef HAVE_MAGIC_H
15840 #include <magic.h>
15841 #endif
15842
15843 int
15844 main ()
15845 {
15846 if ((magic_t *) 0)
15847   return 0;
15848 if (sizeof (magic_t))
15849   return 0;
15850   ;
15851   return 0;
15852 }
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856   (eval $ac_compile) 2>conftest.er1
15857   ac_status=$?
15858   grep -v '^ *+' conftest.er1 >conftest.err
15859   rm -f conftest.er1
15860   cat conftest.err >&5
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); } &&
15863          { ac_try='test -z "$ac_c_werror_flag"
15864                          || test ! -s conftest.err'
15865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866   (eval $ac_try) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); }; } &&
15870          { ac_try='test -s conftest.$ac_objext'
15871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872   (eval $ac_try) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; }; then
15876   ac_cv_type_magic_t=yes
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 ac_cv_type_magic_t=no
15882 fi
15883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15884 fi
15885 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
15886 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
15887 if test $ac_cv_type_magic_t = yes; then
15888
15889
15890 cat >>confdefs.h <<\_ACEOF
15891 #define HAVE_MAGIC_T 1
15892 _ACEOF
15893
15894 fi
15895
15896
15897 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15898 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15899 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905 #include <sys/types.h>
15906 #if STDC_HEADERS
15907 #include <stdlib.h>
15908 #include <stddef.h>
15909 #endif
15910 #if HAVE_NETINET_IN_H
15911 #include <netinet/in.h>
15912 #endif
15913 int
15914 main ()
15915 {
15916 in_addr_t foo;
15917   ;
15918   return 0;
15919 }
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923   (eval $ac_compile) 2>conftest.er1
15924   ac_status=$?
15925   grep -v '^ *+' conftest.er1 >conftest.err
15926   rm -f conftest.er1
15927   cat conftest.err >&5
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } &&
15930          { ac_try='test -z "$ac_c_werror_flag"
15931                          || test ! -s conftest.err'
15932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933   (eval $ac_try) 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; } &&
15937          { ac_try='test -s conftest.$ac_objext'
15938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939   (eval $ac_try) 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); }; }; then
15943
15944 cat >>confdefs.h <<\_ACEOF
15945 #define HAVE_IN_ADDR_T 1
15946 _ACEOF
15947
15948    echo "$as_me:$LINENO: result: yes" >&5
15949 echo "${ECHO_T}yes" >&6
15950 else
15951   echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15953
15954 echo "$as_me:$LINENO: result: no" >&5
15955 echo "${ECHO_T}no" >&6
15956 fi
15957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15958
15959 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15960 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15961 cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967 #include <netinet/in.h>
15968 int
15969 main ()
15970 {
15971 struct ip_mreq mreq;
15972   ;
15973   return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15978   (eval $ac_compile) 2>conftest.er1
15979   ac_status=$?
15980   grep -v '^ *+' conftest.er1 >conftest.err
15981   rm -f conftest.er1
15982   cat conftest.err >&5
15983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984   (exit $ac_status); } &&
15985          { ac_try='test -z "$ac_c_werror_flag"
15986                          || test ! -s conftest.err'
15987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988   (eval $ac_try) 2>&5
15989   ac_status=$?
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); }; } &&
15992          { ac_try='test -s conftest.$ac_objext'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998
15999 cat >>confdefs.h <<\_ACEOF
16000 #define HAVE_STRUCT_IP_MREQ 1
16001 _ACEOF
16002
16003    echo "$as_me:$LINENO: result: yes" >&5
16004 echo "${ECHO_T}yes" >&6
16005 else
16006   echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16008
16009 echo "$as_me:$LINENO: result: no" >&5
16010 echo "${ECHO_T}no" >&6
16011 fi
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013
16014 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
16015 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
16016 cat >conftest.$ac_ext <<_ACEOF
16017 /* confdefs.h.  */
16018 _ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h.  */
16022 #include <netinet/in.h>
16023 int
16024 main ()
16025 {
16026 struct ipv6_mreq mreq6;
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16033   (eval $ac_compile) 2>conftest.er1
16034   ac_status=$?
16035   grep -v '^ *+' conftest.er1 >conftest.err
16036   rm -f conftest.er1
16037   cat conftest.err >&5
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } &&
16040          { ac_try='test -z "$ac_c_werror_flag"
16041                          || test ! -s conftest.err'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; } &&
16047          { ac_try='test -s conftest.$ac_objext'
16048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049   (eval $ac_try) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); }; }; then
16053
16054 cat >>confdefs.h <<\_ACEOF
16055 #define HAVE_STRUCT_IPV6_MREQ 1
16056 _ACEOF
16057
16058    echo "$as_me:$LINENO: result: yes" >&5
16059 echo "${ECHO_T}yes" >&6
16060 else
16061   echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064 echo "$as_me:$LINENO: result: no" >&5
16065 echo "${ECHO_T}no" >&6
16066 fi
16067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16068
16069 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16070 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h.  */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h.  */
16077 #include <netinet/in.h>
16078 int
16079 main ()
16080 {
16081 struct sockaddr_in6 addr6;
16082   ;
16083   return 0;
16084 }
16085 _ACEOF
16086 rm -f conftest.$ac_objext
16087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16088   (eval $ac_compile) 2>conftest.er1
16089   ac_status=$?
16090   grep -v '^ *+' conftest.er1 >conftest.err
16091   rm -f conftest.er1
16092   cat conftest.err >&5
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); } &&
16095          { ac_try='test -z "$ac_c_werror_flag"
16096                          || test ! -s conftest.err'
16097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098   (eval $ac_try) 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); }; } &&
16102          { ac_try='test -s conftest.$ac_objext'
16103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104   (eval $ac_try) 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; }; then
16108
16109 cat >>confdefs.h <<\_ACEOF
16110 #define HAVE_INET6 1
16111 _ACEOF
16112
16113    echo "$as_me:$LINENO: result: yes" >&5
16114 echo "${ECHO_T}yes" >&6
16115 else
16116   echo "$as_me: failed program was:" >&5
16117 sed 's/^/| /' conftest.$ac_ext >&5
16118
16119 echo "$as_me:$LINENO: result: no" >&5
16120 echo "${ECHO_T}no" >&6
16121 fi
16122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16123
16124 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16125 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
16126 cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h.  */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h.  */
16132 #define _POSIX_PII_SOCKET
16133 #include <sys/types.h>
16134 #include <sys/socket.h>
16135 int
16136 main ()
16137 {
16138 socklen_t x = 5;
16139   ;
16140   return 0;
16141 }
16142 _ACEOF
16143 rm -f conftest.$ac_objext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16145   (eval $ac_compile) 2>conftest.er1
16146   ac_status=$?
16147   grep -v '^ *+' conftest.er1 >conftest.err
16148   rm -f conftest.er1
16149   cat conftest.err >&5
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } &&
16152          { ac_try='test -z "$ac_c_werror_flag"
16153                          || test ! -s conftest.err'
16154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155   (eval $ac_try) 2>&5
16156   ac_status=$?
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); }; } &&
16159          { ac_try='test -s conftest.$ac_objext'
16160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161   (eval $ac_try) 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); }; }; then
16165
16166 cat >>confdefs.h <<\_ACEOF
16167 #define HAVE_SOCKLEN_T 1
16168 _ACEOF
16169
16170    echo "$as_me:$LINENO: result: yes" >&5
16171 echo "${ECHO_T}yes" >&6
16172 else
16173   echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176 echo "$as_me:$LINENO: result: no" >&5
16177 echo "${ECHO_T}no" >&6
16178 fi
16179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16180
16181 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16182 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
16183 cat >conftest.$ac_ext <<_ACEOF
16184 /* confdefs.h.  */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h.  */
16189 #include <time.h>
16190 int
16191 main ()
16192 {
16193 struct tm tim; tim.tm_gmtoff = 0;
16194   ;
16195   return 0;
16196 }
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200   (eval $ac_compile) 2>conftest.er1
16201   ac_status=$?
16202   grep -v '^ *+' conftest.er1 >conftest.err
16203   rm -f conftest.er1
16204   cat conftest.err >&5
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } &&
16207          { ac_try='test -z "$ac_c_werror_flag"
16208                          || test ! -s conftest.err'
16209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210   (eval $ac_try) 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; } &&
16214          { ac_try='test -s conftest.$ac_objext'
16215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216   (eval $ac_try) 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; }; then
16220
16221 cat >>confdefs.h <<\_ACEOF
16222 #define STRUCT_TM_HAS_GMTOFF 1
16223 _ACEOF
16224
16225    echo "$as_me:$LINENO: result: yes" >&5
16226 echo "${ECHO_T}yes" >&6
16227 else
16228   echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231 echo "$as_me:$LINENO: result: no" >&5
16232 echo "${ECHO_T}no" >&6
16233    echo "$as_me:$LINENO: checking for global timezone variable" >&5
16234 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16235                cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h.  */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h.  */
16241 #include <time.h>
16242 int
16243 main ()
16244 {
16245 void i(){long z2 = 2*timezone;}
16246   ;
16247   return 0;
16248 }
16249 _ACEOF
16250 rm -f conftest.$ac_objext
16251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16252   (eval $ac_compile) 2>conftest.er1
16253   ac_status=$?
16254   grep -v '^ *+' conftest.er1 >conftest.err
16255   rm -f conftest.er1
16256   cat conftest.err >&5
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); } &&
16259          { ac_try='test -z "$ac_c_werror_flag"
16260                          || test ! -s conftest.err'
16261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262   (eval $ac_try) 2>&5
16263   ac_status=$?
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); }; } &&
16266          { ac_try='test -s conftest.$ac_objext'
16267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16268   (eval $ac_try) 2>&5
16269   ac_status=$?
16270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271   (exit $ac_status); }; }; then
16272
16273 cat >>confdefs.h <<\_ACEOF
16274 #define HAVE_TIMEZONE 1
16275 _ACEOF
16276
16277       echo "$as_me:$LINENO: result: yes" >&5
16278 echo "${ECHO_T}yes" >&6
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283 echo "$as_me:$LINENO: result: no" >&5
16284 echo "${ECHO_T}no" >&6
16285        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16286 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16287               cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293 #include <time.h>
16294 int
16295 main ()
16296 {
16297 long z2 = _timezone;
16298   ;
16299   return 0;
16300 }
16301 _ACEOF
16302 rm -f conftest.$ac_objext
16303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16304   (eval $ac_compile) 2>conftest.er1
16305   ac_status=$?
16306   grep -v '^ *+' conftest.er1 >conftest.err
16307   rm -f conftest.er1
16308   cat conftest.err >&5
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); } &&
16311          { ac_try='test -z "$ac_c_werror_flag"
16312                          || test ! -s conftest.err'
16313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314   (eval $ac_try) 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); }; } &&
16318          { ac_try='test -s conftest.$ac_objext'
16319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320   (eval $ac_try) 2>&5
16321   ac_status=$?
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); }; }; then
16324
16325 cat >>confdefs.h <<\_ACEOF
16326 #define HAVE_UNDERSCORE_TIMEZONE 1
16327 _ACEOF
16328
16329           echo "$as_me:$LINENO: result: yes" >&5
16330 echo "${ECHO_T}yes" >&6
16331 else
16332   echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335 echo "$as_me:$LINENO: result: no" >&5
16336 echo "${ECHO_T}no" >&6
16337 fi
16338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16341 fi
16342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16343
16344 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16345 # for constant arguments.  Useless!
16346 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16347 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16348 if test "${ac_cv_working_alloca_h+set}" = set; then
16349   echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351   if test x$gcc_no_link = xyes; then
16352   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16353 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16354    { (exit 1); exit 1; }; }
16355 fi
16356 cat >conftest.$ac_ext <<_ACEOF
16357 /* confdefs.h.  */
16358 _ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h.  */
16362 #include <alloca.h>
16363 int
16364 main ()
16365 {
16366 char *p = (char *) alloca (2 * sizeof (int));
16367   ;
16368   return 0;
16369 }
16370 _ACEOF
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373   (eval $ac_link) 2>conftest.er1
16374   ac_status=$?
16375   grep -v '^ *+' conftest.er1 >conftest.err
16376   rm -f conftest.er1
16377   cat conftest.err >&5
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); } &&
16380          { ac_try='test -z "$ac_c_werror_flag"
16381                          || test ! -s conftest.err'
16382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383   (eval $ac_try) 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); }; } &&
16387          { ac_try='test -s conftest$ac_exeext'
16388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389   (eval $ac_try) 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); }; }; then
16393   ac_cv_working_alloca_h=yes
16394 else
16395   echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16397
16398 ac_cv_working_alloca_h=no
16399 fi
16400 rm -f conftest.err conftest.$ac_objext \
16401       conftest$ac_exeext conftest.$ac_ext
16402 fi
16403 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16404 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16405 if test $ac_cv_working_alloca_h = yes; then
16406
16407 cat >>confdefs.h <<\_ACEOF
16408 #define HAVE_ALLOCA_H 1
16409 _ACEOF
16410
16411 fi
16412
16413 echo "$as_me:$LINENO: checking for alloca" >&5
16414 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16415 if test "${ac_cv_func_alloca_works+set}" = set; then
16416   echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418   if test x$gcc_no_link = xyes; then
16419   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16421    { (exit 1); exit 1; }; }
16422 fi
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h.  */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h.  */
16429 #ifdef __GNUC__
16430 # define alloca __builtin_alloca
16431 #else
16432 # ifdef _MSC_VER
16433 #  include <malloc.h>
16434 #  define alloca _alloca
16435 # else
16436 #  if HAVE_ALLOCA_H
16437 #   include <alloca.h>
16438 #  else
16439 #   ifdef _AIX
16440  #pragma alloca
16441 #   else
16442 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16443 char *alloca ();
16444 #    endif
16445 #   endif
16446 #  endif
16447 # endif
16448 #endif
16449
16450 int
16451 main ()
16452 {
16453 char *p = (char *) alloca (1);
16454   ;
16455   return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460   (eval $ac_link) 2>conftest.er1
16461   ac_status=$?
16462   grep -v '^ *+' conftest.er1 >conftest.err
16463   rm -f conftest.er1
16464   cat conftest.err >&5
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); } &&
16467          { ac_try='test -z "$ac_c_werror_flag"
16468                          || test ! -s conftest.err'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; } &&
16474          { ac_try='test -s conftest$ac_exeext'
16475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16476   (eval $ac_try) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; }; then
16480   ac_cv_func_alloca_works=yes
16481 else
16482   echo "$as_me: failed program was:" >&5
16483 sed 's/^/| /' conftest.$ac_ext >&5
16484
16485 ac_cv_func_alloca_works=no
16486 fi
16487 rm -f conftest.err conftest.$ac_objext \
16488       conftest$ac_exeext conftest.$ac_ext
16489 fi
16490 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16491 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16492
16493 if test $ac_cv_func_alloca_works = yes; then
16494
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE_ALLOCA 1
16497 _ACEOF
16498
16499 else
16500   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16501 # that cause trouble.  Some versions do not even contain alloca or
16502 # contain a buggy version.  If you still want to use their alloca,
16503 # use ar to extract alloca.o from them instead of compiling alloca.c.
16504
16505 ALLOCA=alloca.$ac_objext
16506
16507 cat >>confdefs.h <<\_ACEOF
16508 #define C_ALLOCA 1
16509 _ACEOF
16510
16511
16512 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16513 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16514 if test "${ac_cv_os_cray+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517   cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h.  */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h.  */
16523 #if defined(CRAY) && ! defined(CRAY2)
16524 webecray
16525 #else
16526 wenotbecray
16527 #endif
16528
16529 _ACEOF
16530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16531   $EGREP "webecray" >/dev/null 2>&1; then
16532   ac_cv_os_cray=yes
16533 else
16534   ac_cv_os_cray=no
16535 fi
16536 rm -f conftest*
16537
16538 fi
16539 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16540 echo "${ECHO_T}$ac_cv_os_cray" >&6
16541 if test $ac_cv_os_cray = yes; then
16542   for ac_func in _getb67 GETB67 getb67; do
16543     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16544 echo "$as_me:$LINENO: checking for $ac_func" >&5
16545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16546 if eval "test \"\${$as_ac_var+set}\" = set"; then
16547   echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549   if test x$gcc_no_link = xyes; then
16550   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16551 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16552    { (exit 1); exit 1; }; }
16553 fi
16554 cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16562 #define $ac_func innocuous_$ac_func
16563
16564 /* System header to define __stub macros and hopefully few prototypes,
16565     which can conflict with char $ac_func (); below.
16566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16567     <limits.h> exists even on freestanding compilers.  */
16568
16569 #ifdef __STDC__
16570 # include <limits.h>
16571 #else
16572 # include <assert.h>
16573 #endif
16574
16575 #undef $ac_func
16576
16577 /* Override any gcc2 internal prototype to avoid an error.  */
16578 #ifdef __cplusplus
16579 extern "C"
16580 {
16581 #endif
16582 /* We use char because int might match the return type of a gcc2
16583    builtin and then its argument prototype would still apply.  */
16584 char $ac_func ();
16585 /* The GNU C library defines this for functions which it implements
16586     to always fail with ENOSYS.  Some functions are actually named
16587     something starting with __ and the normal name is an alias.  */
16588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16589 choke me
16590 #else
16591 char (*f) () = $ac_func;
16592 #endif
16593 #ifdef __cplusplus
16594 }
16595 #endif
16596
16597 int
16598 main ()
16599 {
16600 return f != $ac_func;
16601   ;
16602   return 0;
16603 }
16604 _ACEOF
16605 rm -f conftest.$ac_objext conftest$ac_exeext
16606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16607   (eval $ac_link) 2>conftest.er1
16608   ac_status=$?
16609   grep -v '^ *+' conftest.er1 >conftest.err
16610   rm -f conftest.er1
16611   cat conftest.err >&5
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); } &&
16614          { ac_try='test -z "$ac_c_werror_flag"
16615                          || test ! -s conftest.err'
16616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617   (eval $ac_try) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; } &&
16621          { ac_try='test -s conftest$ac_exeext'
16622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623   (eval $ac_try) 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; }; then
16627   eval "$as_ac_var=yes"
16628 else
16629   echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632 eval "$as_ac_var=no"
16633 fi
16634 rm -f conftest.err conftest.$ac_objext \
16635       conftest$ac_exeext conftest.$ac_ext
16636 fi
16637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16638 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16639 if test `eval echo '${'$as_ac_var'}'` = yes; then
16640
16641 cat >>confdefs.h <<_ACEOF
16642 #define CRAY_STACKSEG_END $ac_func
16643 _ACEOF
16644
16645     break
16646 fi
16647
16648   done
16649 fi
16650
16651 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16652 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16653 if test "${ac_cv_c_stack_direction+set}" = set; then
16654   echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656   if test "$cross_compiling" = yes; then
16657   ac_cv_c_stack_direction=0
16658 else
16659   cat >conftest.$ac_ext <<_ACEOF
16660 /* confdefs.h.  */
16661 _ACEOF
16662 cat confdefs.h >>conftest.$ac_ext
16663 cat >>conftest.$ac_ext <<_ACEOF
16664 /* end confdefs.h.  */
16665 int
16666 find_stack_direction ()
16667 {
16668   static char *addr = 0;
16669   auto char dummy;
16670   if (addr == 0)
16671     {
16672       addr = &dummy;
16673       return find_stack_direction ();
16674     }
16675   else
16676     return (&dummy > addr) ? 1 : -1;
16677 }
16678
16679 int
16680 main ()
16681 {
16682   exit (find_stack_direction () < 0);
16683 }
16684 _ACEOF
16685 rm -f conftest$ac_exeext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687   (eval $ac_link) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692   (eval $ac_try) 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; }; then
16696   ac_cv_c_stack_direction=1
16697 else
16698   echo "$as_me: program exited with status $ac_status" >&5
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 ( exit $ac_status )
16703 ac_cv_c_stack_direction=-1
16704 fi
16705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16706 fi
16707 fi
16708 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16709 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16710
16711 cat >>confdefs.h <<_ACEOF
16712 #define STACK_DIRECTION $ac_cv_c_stack_direction
16713 _ACEOF
16714
16715
16716 fi
16717
16718
16719 for ac_prog in perl
16720 do
16721   # Extract the first word of "$ac_prog", so it can be a program name with args.
16722 set dummy $ac_prog; ac_word=$2
16723 echo "$as_me:$LINENO: checking for $ac_word" >&5
16724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16725 if test "${ac_cv_prog_PERL+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   if test -n "$PERL"; then
16729   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16730 else
16731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16732 for as_dir in $PATH
16733 do
16734   IFS=$as_save_IFS
16735   test -z "$as_dir" && as_dir=.
16736   for ac_exec_ext in '' $ac_executable_extensions; do
16737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16738     ac_cv_prog_PERL="$ac_prog"
16739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16740     break 2
16741   fi
16742 done
16743 done
16744
16745 fi
16746 fi
16747 PERL=$ac_cv_prog_PERL
16748 if test -n "$PERL"; then
16749   echo "$as_me:$LINENO: result: $PERL" >&5
16750 echo "${ECHO_T}$PERL" >&6
16751 else
16752   echo "$as_me:$LINENO: result: no" >&5
16753 echo "${ECHO_T}no" >&6
16754 fi
16755
16756   test -n "$PERL" && break
16757 done
16758 test -n "$PERL" || PERL="false"
16759
16760
16761 SYSDEP_SOURCES=
16762 SIGNAL_HANDLER_AUX=
16763
16764 case "${host}" in
16765  i?86-*-linux*)
16766     SIGNAL_HANDLER=include/i386-signal.h
16767     ;;
16768  sparc*-sun-solaris*)
16769     SIGNAL_HANDLER=include/sparc-signal.h
16770     ;;
16771 # ia64-*)
16772 #    SYSDEP_SOURCES=sysdep/ia64.c
16773 #    test -d sysdep || mkdir sysdep
16774 #    ;;
16775  hppa*-*-linux*)
16776     SIGNAL_HANDLER=include/pa-signal.h
16777     ;;
16778  hppa*-hp-hpux*)
16779     SIGNAL_HANDLER=include/hppa-signal.h
16780     ;;
16781  ia64-*-linux*)
16782     SIGNAL_HANDLER=include/dwarf2-signal.h
16783     ;;
16784  powerpc*-*-linux*)
16785     SIGNAL_HANDLER=include/powerpc-signal.h
16786     ;;
16787  alpha*-*-linux*)
16788     SIGNAL_HANDLER=include/dwarf2-signal.h
16789     ;;
16790  s390*-*-linux*)
16791     SIGNAL_HANDLER=include/s390-signal.h
16792     ;;
16793  x86_64*-*-linux*)
16794     SIGNAL_HANDLER=include/x86_64-signal.h
16795     SIGNAL_HANDLER_AUX=include/i386-signal.h
16796     ;;
16797  sparc*-*-linux*)
16798     SIGNAL_HANDLER=include/dwarf2-signal.h
16799     ;;
16800  sh*-*-linux*)
16801     SIGNAL_HANDLER=include/sh-signal.h
16802     ;;
16803  *mingw*)
16804     SIGNAL_HANDLER=include/win32-signal.h
16805     ;;
16806  mips*-*-linux*)
16807     SIGNAL_HANDLER=include/mips-signal.h
16808     ;;
16809  powerpc*-*-darwin*)
16810     SIGNAL_HANDLER=include/darwin-signal.h
16811     ;;
16812  *)
16813     SIGNAL_HANDLER=include/default-signal.h
16814     ;;
16815 esac
16816
16817 # If we're using sjlj exceptions, forget what we just learned.
16818 if test "$enable_sjlj_exceptions" = yes; then
16819    SIGNAL_HANDLER=include/default-signal.h
16820    SIGNAL_HANDLER_AUX=
16821 fi
16822
16823
16824
16825 if test -z "$SIGNAL_HANDLER_AUX"; then
16826   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16827 fi
16828
16829                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16830
16831
16832 if test "${multilib}" = "yes"; then
16833   multilib_arg="--enable-multilib"
16834 else
16835   multilib_arg=
16836 fi
16837
16838 # See if we support thread-local storage.
16839
16840    # Check whether --enable-tls or --disable-tls was given.
16841 if test "${enable_tls+set}" = set; then
16842   enableval="$enable_tls"
16843
16844       case "$enableval" in
16845        yes|no) ;;
16846        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16847 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16848    { (exit 1); exit 1; }; } ;;
16849       esac
16850
16851 else
16852   enable_tls=yes
16853 fi;
16854
16855   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16856 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16857 if test "${have_tls+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860
16861     if test "$cross_compiling" = yes; then
16862                 if test x$gcc_no_link = xyes; then
16863   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16865    { (exit 1); exit 1; }; }
16866 fi
16867 cat >conftest.$ac_ext <<_ACEOF
16868 __thread int a; int b; int main() { return a = b; }
16869 _ACEOF
16870 rm -f conftest.$ac_objext conftest$ac_exeext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872   (eval $ac_link) 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -z "$ac_c_werror_flag"
16880                          || test ! -s conftest.err'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; } &&
16886          { ac_try='test -s conftest$ac_exeext'
16887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888   (eval $ac_try) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892   have_tls=yes
16893 else
16894   echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 have_tls=no
16898 fi
16899 rm -f conftest.err conftest.$ac_objext \
16900       conftest$ac_exeext conftest.$ac_ext
16901
16902
16903 else
16904   cat >conftest.$ac_ext <<_ACEOF
16905 __thread int a; int b; int main() { return a = b; }
16906 _ACEOF
16907 rm -f conftest$ac_exeext
16908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16909   (eval $ac_link) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914   (eval $ac_try) 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; }; then
16918                       chktls_save_LDFLAGS="$LDFLAGS"
16919       LDFLAGS="-static $LDFLAGS"
16920       if test x$gcc_no_link = xyes; then
16921   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16923    { (exit 1); exit 1; }; }
16924 fi
16925 cat >conftest.$ac_ext <<_ACEOF
16926 int main() { return 0; }
16927 _ACEOF
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930   (eval $ac_link) 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } &&
16937          { ac_try='test -z "$ac_c_werror_flag"
16938                          || test ! -s conftest.err'
16939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16940   (eval $ac_try) 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); }; } &&
16944          { ac_try='test -s conftest$ac_exeext'
16945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946   (eval $ac_try) 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); }; }; then
16950   if test "$cross_compiling" = yes; then
16951   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16952 See \`config.log' for more details." >&5
16953 echo "$as_me: error: cannot run test program while cross compiling
16954 See \`config.log' for more details." >&2;}
16955    { (exit 1); exit 1; }; }
16956 else
16957   cat >conftest.$ac_ext <<_ACEOF
16958 __thread int a; int b; int main() { return a = b; }
16959 _ACEOF
16960 rm -f conftest$ac_exeext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16962   (eval $ac_link) 2>&5
16963   ac_status=$?
16964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967   (eval $ac_try) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }; }; then
16971   have_tls=yes
16972 else
16973   echo "$as_me: program exited with status $ac_status" >&5
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977 ( exit $ac_status )
16978 have_tls=no
16979 fi
16980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16981 fi
16982 else
16983   echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986 have_tls=yes
16987 fi
16988 rm -f conftest.err conftest.$ac_objext \
16989       conftest$ac_exeext conftest.$ac_ext
16990       LDFLAGS="$chktls_save_LDFLAGS"
16991       if test $have_tls = yes; then
16992                                                 chktls_save_CFLAGS="$CFLAGS"
16993         thread_CFLAGS=failed
16994         for flag in '' '-pthread' '-lpthread'; do
16995           CFLAGS="$flag $chktls_save_CFLAGS"
16996           if test x$gcc_no_link = xyes; then
16997   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16999    { (exit 1); exit 1; }; }
17000 fi
17001 cat >conftest.$ac_ext <<_ACEOF
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007 #include <pthread.h>
17008                 void *g(void *d) { return NULL; }
17009 int
17010 main ()
17011 {
17012 pthread_t t; pthread_create(&t,NULL,g,NULL);
17013   ;
17014   return 0;
17015 }
17016 _ACEOF
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019   (eval $ac_link) 2>conftest.er1
17020   ac_status=$?
17021   grep -v '^ *+' conftest.er1 >conftest.err
17022   rm -f conftest.er1
17023   cat conftest.err >&5
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } &&
17026          { ac_try='test -z "$ac_c_werror_flag"
17027                          || test ! -s conftest.err'
17028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029   (eval $ac_try) 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; } &&
17033          { ac_try='test -s conftest$ac_exeext'
17034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035   (eval $ac_try) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); }; }; then
17039   thread_CFLAGS="$flag"
17040 else
17041   echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044 fi
17045 rm -f conftest.err conftest.$ac_objext \
17046       conftest$ac_exeext conftest.$ac_ext
17047           if test "X$thread_CFLAGS" != Xfailed; then
17048             break
17049           fi
17050         done
17051         CFLAGS="$chktls_save_CFLAGS"
17052         if test "X$thread_CFLAGS" != Xfailed; then
17053           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
17054           if test "$cross_compiling" = yes; then
17055   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17056 See \`config.log' for more details." >&5
17057 echo "$as_me: error: cannot run test program while cross compiling
17058 See \`config.log' for more details." >&2;}
17059    { (exit 1); exit 1; }; }
17060 else
17061   cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 #include <pthread.h>
17068                 __thread int a;
17069                 static int *a_in_other_thread;
17070                 static void *
17071                 thread_func (void *arg)
17072                 {
17073                   a_in_other_thread = &a;
17074                   return (void *)0;
17075                 }
17076 int
17077 main ()
17078 {
17079 pthread_t thread;
17080                 void *thread_retval;
17081                 int *a_in_main_thread;
17082                 if (pthread_create (&thread, (pthread_attr_t *)0,
17083                                     thread_func, (void *)0))
17084                   return 0;
17085                 a_in_main_thread = &a;
17086                 if (pthread_join (thread, &thread_retval))
17087                   return 0;
17088                 return (a_in_other_thread == a_in_main_thread);
17089   ;
17090   return 0;
17091 }
17092 _ACEOF
17093 rm -f conftest$ac_exeext
17094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17095   (eval $ac_link) 2>&5
17096   ac_status=$?
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100   (eval $ac_try) 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; }; then
17104   have_tls=yes
17105 else
17106   echo "$as_me: program exited with status $ac_status" >&5
17107 echo "$as_me: failed program was:" >&5
17108 sed 's/^/| /' conftest.$ac_ext >&5
17109
17110 ( exit $ac_status )
17111 have_tls=no
17112 fi
17113 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17114 fi
17115           CFLAGS="$chktls_save_CFLAGS"
17116         fi
17117       fi
17118 else
17119   echo "$as_me: program exited with status $ac_status" >&5
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 ( exit $ac_status )
17124 have_tls=no
17125 fi
17126 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17127 fi
17128 fi
17129 echo "$as_me:$LINENO: result: $have_tls" >&5
17130 echo "${ECHO_T}$have_tls" >&6
17131   if test "$enable_tls $have_tls" = "yes yes"; then
17132
17133 cat >>confdefs.h <<\_ACEOF
17134 #define HAVE_TLS 1
17135 _ACEOF
17136
17137   fi
17138
17139 # For _Unwind_GetIPInfo.
17140
17141
17142
17143   ac_ext=cc
17144 ac_cpp='$CXXCPP $CPPFLAGS'
17145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17148
17149   ac_save_CXXFLAGS="$CXXFLAGS"
17150   CXXFLAGS="$CXXFLAGS -fno-exceptions"
17151   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
17152 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
17153   if test "${gcc_cv_getipinfo+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156
17157   if test x$gcc_no_link = xyes; then
17158   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17160    { (exit 1); exit 1; }; }
17161 fi
17162 cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h.  */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h.  */
17168 extern "C" { extern void _Unwind_GetIPInfo(); }
17169 int
17170 main ()
17171 {
17172 _Unwind_GetIPInfo();
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest.$ac_objext conftest$ac_exeext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179   (eval $ac_link) 2>conftest.er1
17180   ac_status=$?
17181   grep -v '^ *+' conftest.er1 >conftest.err
17182   rm -f conftest.er1
17183   cat conftest.err >&5
17184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185   (exit $ac_status); } &&
17186          { ac_try='test -z "$ac_cxx_werror_flag"
17187                          || test ! -s conftest.err'
17188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189   (eval $ac_try) 2>&5
17190   ac_status=$?
17191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192   (exit $ac_status); }; } &&
17193          { ac_try='test -s conftest$ac_exeext'
17194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195   (eval $ac_try) 2>&5
17196   ac_status=$?
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); }; }; then
17199   gcc_cv_getipinfo=yes
17200 else
17201   echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17203
17204 gcc_cv_getipinfo=no
17205 fi
17206 rm -f conftest.err conftest.$ac_objext \
17207       conftest$ac_exeext conftest.$ac_ext
17208
17209 fi
17210
17211   if test $gcc_cv_getipinfo = yes; then
17212
17213 cat >>confdefs.h <<\_ACEOF
17214 #define HAVE_GETIPINFO 1
17215 _ACEOF
17216
17217   fi
17218   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
17219 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
17220   CXXFLAGS="$ac_save_CXXFLAGS"
17221   ac_ext=c
17222 ac_cpp='$CPP $CPPFLAGS'
17223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17226
17227
17228
17229 # See if linker supports anonymous version scripts.
17230 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
17231 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
17232 if test "${libjava_cv_anon_version_script+set}" = set; then
17233   echo $ECHO_N "(cached) $ECHO_C" >&6
17234 else
17235   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
17236    libjava_cv_anon_version_script=no
17237    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
17238    echo '{ global: globalsymb*; local: *; };' > conftest.map
17239    if test x$gcc_no_link = xyes; then
17240   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17241 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17242    { (exit 1); exit 1; }; }
17243 fi
17244 cat >conftest.$ac_ext <<_ACEOF
17245 /* confdefs.h.  */
17246 _ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h.  */
17250 void globalsymbol (void) {} void localsymbol (void) {}
17251 int
17252 main ()
17253 {
17254
17255   ;
17256   return 0;
17257 }
17258 _ACEOF
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17261   (eval $ac_link) 2>conftest.er1
17262   ac_status=$?
17263   grep -v '^ *+' conftest.er1 >conftest.err
17264   rm -f conftest.er1
17265   cat conftest.err >&5
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); } &&
17268          { ac_try='test -z "$ac_c_werror_flag"
17269                          || test ! -s conftest.err'
17270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271   (eval $ac_try) 2>&5
17272   ac_status=$?
17273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274   (exit $ac_status); }; } &&
17275          { ac_try='test -s conftest$ac_exeext'
17276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277   (eval $ac_try) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); }; }; then
17281   libjava_cv_anon_version_script=yes
17282 else
17283   echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286 fi
17287 rm -f conftest.err conftest.$ac_objext \
17288       conftest$ac_exeext conftest.$ac_ext
17289    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
17290
17291 fi
17292 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
17293 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
17294
17295
17296 if test "$libjava_cv_anon_version_script" = yes; then
17297   ANONVERSCRIPT_TRUE=
17298   ANONVERSCRIPT_FALSE='#'
17299 else
17300   ANONVERSCRIPT_TRUE='#'
17301   ANONVERSCRIPT_FALSE=
17302 fi
17303
17304
17305 # Check if linker supports static linking on a per library basis
17306 LD_START_STATIC_SPEC=
17307 LD_FINISH_STATIC_SPEC=
17308 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17309   if $LD --help 2>&1 | grep -q -e -non_shared ; then
17310     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17311     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17312   fi
17313 fi
17314
17315
17316
17317 here=`${PWDCMD-pwd}`
17318
17319
17320 # We get this from the environment.
17321
17322
17323                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17324
17325
17326           ac_config_files="$ac_config_files scripts/jar"
17327
17328
17329           ac_config_commands="$ac_config_commands default"
17330
17331
17332 cat >confcache <<\_ACEOF
17333 # This file is a shell script that caches the results of configure
17334 # tests run on this system so they can be shared between configure
17335 # scripts and configure runs, see configure's option --config-cache.
17336 # It is not useful on other systems.  If it contains results you don't
17337 # want to keep, you may remove or edit it.
17338 #
17339 # config.status only pays attention to the cache file if you give it
17340 # the --recheck option to rerun configure.
17341 #
17342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17344 # following values.
17345
17346 _ACEOF
17347
17348 # The following way of writing the cache mishandles newlines in values,
17349 # but we know of no workaround that is simple, portable, and efficient.
17350 # So, don't put newlines in cache variables' values.
17351 # Ultrix sh set writes to stderr and can't be redirected directly,
17352 # and sets the high bit in the cache file unless we assign to the vars.
17353 {
17354   (set) 2>&1 |
17355     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17356     *ac_space=\ *)
17357       # `set' does not quote correctly, so add quotes (double-quote
17358       # substitution turns \\\\ into \\, and sed turns \\ into \).
17359       sed -n \
17360         "s/'/'\\\\''/g;
17361           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17362       ;;
17363     *)
17364       # `set' quotes correctly as required by POSIX, so do not add quotes.
17365       sed -n \
17366         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17367       ;;
17368     esac;
17369 } |
17370   sed '
17371      t clear
17372      : clear
17373      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17374      t end
17375      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17376      : end' >>confcache
17377 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17378   if test -w $cache_file; then
17379     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17380     cat confcache >$cache_file
17381   else
17382     echo "not updating unwritable cache $cache_file"
17383   fi
17384 fi
17385 rm -f confcache
17386
17387 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17388 # Let make expand exec_prefix.
17389 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17390
17391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17393 # trailing colons and then remove the whole line if VPATH becomes empty
17394 # (actually we leave an empty line to preserve line numbers).
17395 if test "x$srcdir" = x.; then
17396   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17397 s/:*\$(srcdir):*/:/;
17398 s/:*\${srcdir}:*/:/;
17399 s/:*@srcdir@:*/:/;
17400 s/^\([^=]*=[     ]*\):*/\1/;
17401 s/:*$//;
17402 s/^[^=]*=[       ]*$//;
17403 }'
17404 fi
17405
17406 DEFS=-DHAVE_CONFIG_H
17407
17408 ac_libobjs=
17409 ac_ltlibobjs=
17410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17411   # 1. Remove the extension, and $U if already installed.
17412   ac_i=`echo "$ac_i" |
17413          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17414   # 2. Add them.
17415   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17416   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17417 done
17418 LIBOBJS=$ac_libobjs
17419
17420 LTLIBOBJS=$ac_ltlibobjs
17421
17422
17423 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
17424   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17425 Usually this means the macro was only invoked conditionally." >&5
17426 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
17427 Usually this means the macro was only invoked conditionally." >&2;}
17428    { (exit 1); exit 1; }; }
17429 fi
17430 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17431   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17432 Usually this means the macro was only invoked conditionally." >&5
17433 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17434 Usually this means the macro was only invoked conditionally." >&2;}
17435    { (exit 1); exit 1; }; }
17436 fi
17437 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17438   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17439 Usually this means the macro was only invoked conditionally." >&5
17440 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17441 Usually this means the macro was only invoked conditionally." >&2;}
17442    { (exit 1); exit 1; }; }
17443 fi
17444 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17445   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17446 Usually this means the macro was only invoked conditionally." >&5
17447 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17448 Usually this means the macro was only invoked conditionally." >&2;}
17449    { (exit 1); exit 1; }; }
17450 fi
17451 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17452   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17453 Usually this means the macro was only invoked conditionally." >&5
17454 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17455 Usually this means the macro was only invoked conditionally." >&2;}
17456    { (exit 1); exit 1; }; }
17457 fi
17458 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17459   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17460 Usually this means the macro was only invoked conditionally." >&5
17461 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17462 Usually this means the macro was only invoked conditionally." >&2;}
17463    { (exit 1); exit 1; }; }
17464 fi
17465 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
17466   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
17467 Usually this means the macro was only invoked conditionally." >&5
17468 echo "$as_me: error: conditional \"X_AWT\" was never defined.
17469 Usually this means the macro was only invoked conditionally." >&2;}
17470    { (exit 1); exit 1; }; }
17471 fi
17472 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17473   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17474 Usually this means the macro was only invoked conditionally." >&5
17475 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17476 Usually this means the macro was only invoked conditionally." >&2;}
17477    { (exit 1); exit 1; }; }
17478 fi
17479 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17480   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17481 Usually this means the macro was only invoked conditionally." >&5
17482 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17483 Usually this means the macro was only invoked conditionally." >&2;}
17484    { (exit 1); exit 1; }; }
17485 fi
17486 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
17487   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
17488 Usually this means the macro was only invoked conditionally." >&5
17489 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
17490 Usually this means the macro was only invoked conditionally." >&2;}
17491    { (exit 1); exit 1; }; }
17492 fi
17493 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
17494   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17495 Usually this means the macro was only invoked conditionally." >&5
17496 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
17497 Usually this means the macro was only invoked conditionally." >&2;}
17498    { (exit 1); exit 1; }; }
17499 fi
17500 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17501   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17502 Usually this means the macro was only invoked conditionally." >&5
17503 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17504 Usually this means the macro was only invoked conditionally." >&2;}
17505    { (exit 1); exit 1; }; }
17506 fi
17507 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17508   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17509 Usually this means the macro was only invoked conditionally." >&5
17510 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17511 Usually this means the macro was only invoked conditionally." >&2;}
17512    { (exit 1); exit 1; }; }
17513 fi
17514 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17515   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17516 Usually this means the macro was only invoked conditionally." >&5
17517 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17518 Usually this means the macro was only invoked conditionally." >&2;}
17519    { (exit 1); exit 1; }; }
17520 fi
17521 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17522   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17523 Usually this means the macro was only invoked conditionally." >&5
17524 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17525 Usually this means the macro was only invoked conditionally." >&2;}
17526    { (exit 1); exit 1; }; }
17527 fi
17528 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17529   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17530 Usually this means the macro was only invoked conditionally." >&5
17531 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17532 Usually this means the macro was only invoked conditionally." >&2;}
17533    { (exit 1); exit 1; }; }
17534 fi
17535 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17536   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17537 Usually this means the macro was only invoked conditionally." >&5
17538 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17539 Usually this means the macro was only invoked conditionally." >&2;}
17540    { (exit 1); exit 1; }; }
17541 fi
17542 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17543   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17544 Usually this means the macro was only invoked conditionally." >&5
17545 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17546 Usually this means the macro was only invoked conditionally." >&2;}
17547    { (exit 1); exit 1; }; }
17548 fi
17549 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17550   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17551 Usually this means the macro was only invoked conditionally." >&5
17552 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17553 Usually this means the macro was only invoked conditionally." >&2;}
17554    { (exit 1); exit 1; }; }
17555 fi
17556 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17557   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17558 Usually this means the macro was only invoked conditionally." >&5
17559 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17560 Usually this means the macro was only invoked conditionally." >&2;}
17561    { (exit 1); exit 1; }; }
17562 fi
17563 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
17564   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17565 Usually this means the macro was only invoked conditionally." >&5
17566 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
17567 Usually this means the macro was only invoked conditionally." >&2;}
17568    { (exit 1); exit 1; }; }
17569 fi
17570 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17571   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17572 Usually this means the macro was only invoked conditionally." >&5
17573 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17574 Usually this means the macro was only invoked conditionally." >&2;}
17575    { (exit 1); exit 1; }; }
17576 fi
17577 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17578   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17579 Usually this means the macro was only invoked conditionally." >&5
17580 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17581 Usually this means the macro was only invoked conditionally." >&2;}
17582    { (exit 1); exit 1; }; }
17583 fi
17584 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17585   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17586 Usually this means the macro was only invoked conditionally." >&5
17587 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17588 Usually this means the macro was only invoked conditionally." >&2;}
17589    { (exit 1); exit 1; }; }
17590 fi
17591 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17592   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17593 Usually this means the macro was only invoked conditionally." >&5
17594 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17595 Usually this means the macro was only invoked conditionally." >&2;}
17596    { (exit 1); exit 1; }; }
17597 fi
17598 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
17599   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
17600 Usually this means the macro was only invoked conditionally." >&5
17601 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
17602 Usually this means the macro was only invoked conditionally." >&2;}
17603    { (exit 1); exit 1; }; }
17604 fi
17605
17606 : ${CONFIG_STATUS=./config.status}
17607 ac_clean_files_save=$ac_clean_files
17608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17609 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17610 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17611 cat >$CONFIG_STATUS <<_ACEOF
17612 #! $SHELL
17613 # Generated by $as_me.
17614 # Run this file to recreate the current configuration.
17615 # Compiler output produced by configure, useful for debugging
17616 # configure, is in config.log if it exists.
17617
17618 debug=false
17619 ac_cs_recheck=false
17620 ac_cs_silent=false
17621 SHELL=\${CONFIG_SHELL-$SHELL}
17622 _ACEOF
17623
17624 cat >>$CONFIG_STATUS <<\_ACEOF
17625 ## --------------------- ##
17626 ## M4sh Initialization.  ##
17627 ## --------------------- ##
17628
17629 # Be Bourne compatible
17630 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17631   emulate sh
17632   NULLCMD=:
17633   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17634   # is contrary to our usage.  Disable this feature.
17635   alias -g '${1+"$@"}'='"$@"'
17636 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17637   set -o posix
17638 fi
17639 DUALCASE=1; export DUALCASE # for MKS sh
17640
17641 # Support unset when possible.
17642 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17643   as_unset=unset
17644 else
17645   as_unset=false
17646 fi
17647
17648
17649 # Work around bugs in pre-3.0 UWIN ksh.
17650 $as_unset ENV MAIL MAILPATH
17651 PS1='$ '
17652 PS2='> '
17653 PS4='+ '
17654
17655 # NLS nuisances.
17656 for as_var in \
17657   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17658   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17659   LC_TELEPHONE LC_TIME
17660 do
17661   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17662     eval $as_var=C; export $as_var
17663   else
17664     $as_unset $as_var
17665   fi
17666 done
17667
17668 # Required to use basename.
17669 if expr a : '\(a\)' >/dev/null 2>&1; then
17670   as_expr=expr
17671 else
17672   as_expr=false
17673 fi
17674
17675 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17676   as_basename=basename
17677 else
17678   as_basename=false
17679 fi
17680
17681
17682 # Name of the executable.
17683 as_me=`$as_basename "$0" ||
17684 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17685          X"$0" : 'X\(//\)$' \| \
17686          X"$0" : 'X\(/\)$' \| \
17687          .     : '\(.\)' 2>/dev/null ||
17688 echo X/"$0" |
17689     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17690           /^X\/\(\/\/\)$/{ s//\1/; q; }
17691           /^X\/\(\/\).*/{ s//\1/; q; }
17692           s/.*/./; q'`
17693
17694
17695 # PATH needs CR, and LINENO needs CR and PATH.
17696 # Avoid depending upon Character Ranges.
17697 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17698 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17699 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17700 as_cr_digits='0123456789'
17701 as_cr_alnum=$as_cr_Letters$as_cr_digits
17702
17703 # The user is always right.
17704 if test "${PATH_SEPARATOR+set}" != set; then
17705   echo "#! /bin/sh" >conf$$.sh
17706   echo  "exit 0"   >>conf$$.sh
17707   chmod +x conf$$.sh
17708   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17709     PATH_SEPARATOR=';'
17710   else
17711     PATH_SEPARATOR=:
17712   fi
17713   rm -f conf$$.sh
17714 fi
17715
17716
17717   as_lineno_1=$LINENO
17718   as_lineno_2=$LINENO
17719   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17720   test "x$as_lineno_1" != "x$as_lineno_2" &&
17721   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17722   # Find who we are.  Look in the path if we contain no path at all
17723   # relative or not.
17724   case $0 in
17725     *[\\/]* ) as_myself=$0 ;;
17726     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17727 for as_dir in $PATH
17728 do
17729   IFS=$as_save_IFS
17730   test -z "$as_dir" && as_dir=.
17731   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17732 done
17733
17734        ;;
17735   esac
17736   # We did not find ourselves, most probably we were run as `sh COMMAND'
17737   # in which case we are not to be found in the path.
17738   if test "x$as_myself" = x; then
17739     as_myself=$0
17740   fi
17741   if test ! -f "$as_myself"; then
17742     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17743 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17744    { (exit 1); exit 1; }; }
17745   fi
17746   case $CONFIG_SHELL in
17747   '')
17748     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17750 do
17751   IFS=$as_save_IFS
17752   test -z "$as_dir" && as_dir=.
17753   for as_base in sh bash ksh sh5; do
17754          case $as_dir in
17755          /*)
17756            if ("$as_dir/$as_base" -c '
17757   as_lineno_1=$LINENO
17758   as_lineno_2=$LINENO
17759   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17760   test "x$as_lineno_1" != "x$as_lineno_2" &&
17761   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17762              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17763              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17764              CONFIG_SHELL=$as_dir/$as_base
17765              export CONFIG_SHELL
17766              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17767            fi;;
17768          esac
17769        done
17770 done
17771 ;;
17772   esac
17773
17774   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17775   # uniformly replaced by the line number.  The first 'sed' inserts a
17776   # line-number line before each line; the second 'sed' does the real
17777   # work.  The second script uses 'N' to pair each line-number line
17778   # with the numbered line, and appends trailing '-' during
17779   # substitution so that $LINENO is not a special case at line end.
17780   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17781   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17782   sed '=' <$as_myself |
17783     sed '
17784       N
17785       s,$,-,
17786       : loop
17787       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17788       t loop
17789       s,-$,,
17790       s,^['$as_cr_digits']*\n,,
17791     ' >$as_me.lineno &&
17792   chmod +x $as_me.lineno ||
17793     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17794 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17795    { (exit 1); exit 1; }; }
17796
17797   # Don't try to exec as it changes $[0], causing all sort of problems
17798   # (the dirname of $[0] is not the place where we might find the
17799   # original and so on.  Autoconf is especially sensible to this).
17800   . ./$as_me.lineno
17801   # Exit status is that of the last command.
17802   exit
17803 }
17804
17805
17806 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17807   *c*,-n*) ECHO_N= ECHO_C='
17808 ' ECHO_T='      ' ;;
17809   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17810   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17811 esac
17812
17813 if expr a : '\(a\)' >/dev/null 2>&1; then
17814   as_expr=expr
17815 else
17816   as_expr=false
17817 fi
17818
17819 rm -f conf$$ conf$$.exe conf$$.file
17820 echo >conf$$.file
17821 if ln -s conf$$.file conf$$ 2>/dev/null; then
17822   # We could just check for DJGPP; but this test a) works b) is more generic
17823   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17824   if test -f conf$$.exe; then
17825     # Don't use ln at all; we don't have any links
17826     as_ln_s='cp -p'
17827   else
17828     as_ln_s='ln -s'
17829   fi
17830 elif ln conf$$.file conf$$ 2>/dev/null; then
17831   as_ln_s=ln
17832 else
17833   as_ln_s='cp -p'
17834 fi
17835 rm -f conf$$ conf$$.exe conf$$.file
17836
17837 if mkdir -p . 2>/dev/null; then
17838   as_mkdir_p=:
17839 else
17840   test -d ./-p && rmdir ./-p
17841   as_mkdir_p=false
17842 fi
17843
17844 as_executable_p="test -f"
17845
17846 # Sed expression to map a string onto a valid CPP name.
17847 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17848
17849 # Sed expression to map a string onto a valid variable name.
17850 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17851
17852
17853 # IFS
17854 # We need space, tab and new line, in precisely that order.
17855 as_nl='
17856 '
17857 IFS="   $as_nl"
17858
17859 # CDPATH.
17860 $as_unset CDPATH
17861
17862 exec 6>&1
17863
17864 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17865 # report actual input values of CONFIG_FILES etc. instead of their
17866 # values after options handling.  Logging --version etc. is OK.
17867 exec 5>>config.log
17868 {
17869   echo
17870   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17871 ## Running $as_me. ##
17872 _ASBOX
17873 } >&5
17874 cat >&5 <<_CSEOF
17875
17876 This file was extended by libjava $as_me version-unused, which was
17877 generated by GNU Autoconf 2.59.  Invocation command line was
17878
17879   CONFIG_FILES    = $CONFIG_FILES
17880   CONFIG_HEADERS  = $CONFIG_HEADERS
17881   CONFIG_LINKS    = $CONFIG_LINKS
17882   CONFIG_COMMANDS = $CONFIG_COMMANDS
17883   $ $0 $@
17884
17885 _CSEOF
17886 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17887 echo >&5
17888 _ACEOF
17889
17890 # Files that config.status was made for.
17891 if test -n "$ac_config_files"; then
17892   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17893 fi
17894
17895 if test -n "$ac_config_headers"; then
17896   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17897 fi
17898
17899 if test -n "$ac_config_links"; then
17900   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17901 fi
17902
17903 if test -n "$ac_config_commands"; then
17904   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17905 fi
17906
17907 cat >>$CONFIG_STATUS <<\_ACEOF
17908
17909 ac_cs_usage="\
17910 \`$as_me' instantiates files from templates according to the
17911 current configuration.
17912
17913 Usage: $0 [OPTIONS] [FILE]...
17914
17915   -h, --help       print this help, then exit
17916   -V, --version    print version number, then exit
17917   -q, --quiet      do not print progress messages
17918   -d, --debug      don't remove temporary files
17919       --recheck    update $as_me by reconfiguring in the same conditions
17920   --file=FILE[:TEMPLATE]
17921                    instantiate the configuration file FILE
17922   --header=FILE[:TEMPLATE]
17923                    instantiate the configuration header FILE
17924
17925 Configuration files:
17926 $config_files
17927
17928 Configuration headers:
17929 $config_headers
17930
17931 Configuration links:
17932 $config_links
17933
17934 Configuration commands:
17935 $config_commands
17936
17937 Report bugs to <bug-autoconf@gnu.org>."
17938 _ACEOF
17939
17940 cat >>$CONFIG_STATUS <<_ACEOF
17941 ac_cs_version="\\
17942 libjava config.status version-unused
17943 configured by $0, generated by GNU Autoconf 2.59,
17944   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17945
17946 Copyright (C) 2003 Free Software Foundation, Inc.
17947 This config.status script is free software; the Free Software Foundation
17948 gives unlimited permission to copy, distribute and modify it."
17949 srcdir=$srcdir
17950 INSTALL="$INSTALL"
17951 _ACEOF
17952
17953 cat >>$CONFIG_STATUS <<\_ACEOF
17954 # If no file are specified by the user, then we need to provide default
17955 # value.  By we need to know if files were specified by the user.
17956 ac_need_defaults=:
17957 while test $# != 0
17958 do
17959   case $1 in
17960   --*=*)
17961     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17962     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17963     ac_shift=:
17964     ;;
17965   -*)
17966     ac_option=$1
17967     ac_optarg=$2
17968     ac_shift=shift
17969     ;;
17970   *) # This is not an option, so the user has probably given explicit
17971      # arguments.
17972      ac_option=$1
17973      ac_need_defaults=false;;
17974   esac
17975
17976   case $ac_option in
17977   # Handling of the options.
17978 _ACEOF
17979 cat >>$CONFIG_STATUS <<\_ACEOF
17980   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17981     ac_cs_recheck=: ;;
17982   --version | --vers* | -V )
17983     echo "$ac_cs_version"; exit 0 ;;
17984   --he | --h)
17985     # Conflict between --help and --header
17986     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17987 Try \`$0 --help' for more information." >&5
17988 echo "$as_me: error: ambiguous option: $1
17989 Try \`$0 --help' for more information." >&2;}
17990    { (exit 1); exit 1; }; };;
17991   --help | --hel | -h )
17992     echo "$ac_cs_usage"; exit 0 ;;
17993   --debug | --d* | -d )
17994     debug=: ;;
17995   --file | --fil | --fi | --f )
17996     $ac_shift
17997     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17998     ac_need_defaults=false;;
17999   --header | --heade | --head | --hea )
18000     $ac_shift
18001     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18002     ac_need_defaults=false;;
18003   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18004   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18005     ac_cs_silent=: ;;
18006
18007   # This is an error.
18008   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18009 Try \`$0 --help' for more information." >&5
18010 echo "$as_me: error: unrecognized option: $1
18011 Try \`$0 --help' for more information." >&2;}
18012    { (exit 1); exit 1; }; } ;;
18013
18014   *) ac_config_targets="$ac_config_targets $1" ;;
18015
18016   esac
18017   shift
18018 done
18019
18020 ac_configure_extra_args=
18021
18022 if $ac_cs_silent; then
18023   exec 6>/dev/null
18024   ac_configure_extra_args="$ac_configure_extra_args --silent"
18025 fi
18026
18027 _ACEOF
18028 cat >>$CONFIG_STATUS <<_ACEOF
18029 if \$ac_cs_recheck; then
18030   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18031   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18032 fi
18033
18034 _ACEOF
18035
18036 cat >>$CONFIG_STATUS <<_ACEOF
18037 #
18038 # INIT-COMMANDS section.
18039 #
18040
18041
18042 srcdir="$srcdir"
18043 host="$host"
18044 target="$target"
18045 with_multisubdir="$with_multisubdir"
18046 with_multisrctop="$with_multisrctop"
18047 with_target_subdir="$with_target_subdir"
18048 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18049 multi_basedir="$multi_basedir"
18050 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18051 CC="$CC"
18052 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18053 srcdir=${srcdir}
18054 host=${host}
18055 target=${target}
18056 with_multisubdir=${with_multisubdir}
18057 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18058 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18059 multi_basedir=${multi_basedir}
18060 CC="${CC}"
18061 CXX="${CXX}"
18062 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
18063
18064
18065 _ACEOF
18066
18067
18068
18069 cat >>$CONFIG_STATUS <<\_ACEOF
18070 for ac_config_target in $ac_config_targets
18071 do
18072   case "$ac_config_target" in
18073   # Handling of arguments.
18074   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18075   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
18076   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
18077   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
18078   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
18079   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18080   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18081   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
18082   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
18083   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
18084   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
18085   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
18086   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
18087   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
18088   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
18089   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
18090   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
18091   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
18092   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
18093   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
18094   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
18095   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
18096   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
18097   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
18098   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
18099   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18100   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18101   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18102   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18103   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
18104   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18105 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18106    { (exit 1); exit 1; }; };;
18107   esac
18108 done
18109
18110 # If the user did not use the arguments to specify the items to instantiate,
18111 # then the envvar interface is used.  Set only those that are not.
18112 # We use the long form for the default assignment because of an extremely
18113 # bizarre bug on SunOS 4.1.3.
18114 if $ac_need_defaults; then
18115   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18116   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18117   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18118   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18119 fi
18120
18121 # Have a temporary directory for convenience.  Make it in the build tree
18122 # simply because there is no reason to put it here, and in addition,
18123 # creating and moving files from /tmp can sometimes cause problems.
18124 # Create a temporary directory, and hook for its removal unless debugging.
18125 $debug ||
18126 {
18127   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18128   trap '{ (exit 1); exit 1; }' 1 2 13 15
18129 }
18130
18131 # Create a (secure) tmp directory for tmp files.
18132
18133 {
18134   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18135   test -n "$tmp" && test -d "$tmp"
18136 }  ||
18137 {
18138   tmp=./confstat$$-$RANDOM
18139   (umask 077 && mkdir $tmp)
18140 } ||
18141 {
18142    echo "$me: cannot create a temporary directory in ." >&2
18143    { (exit 1); exit 1; }
18144 }
18145
18146 _ACEOF
18147
18148 cat >>$CONFIG_STATUS <<_ACEOF
18149
18150 #
18151 # CONFIG_FILES section.
18152 #
18153
18154 # No need to generate the scripts if there are no CONFIG_FILES.
18155 # This happens for instance when ./config.status config.h
18156 if test -n "\$CONFIG_FILES"; then
18157   # Protect against being on the right side of a sed subst in config.status.
18158   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18159    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18160 s,@SHELL@,$SHELL,;t t
18161 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18162 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18163 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18164 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18165 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18166 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18167 s,@exec_prefix@,$exec_prefix,;t t
18168 s,@prefix@,$prefix,;t t
18169 s,@program_transform_name@,$program_transform_name,;t t
18170 s,@bindir@,$bindir,;t t
18171 s,@sbindir@,$sbindir,;t t
18172 s,@libexecdir@,$libexecdir,;t t
18173 s,@datadir@,$datadir,;t t
18174 s,@sysconfdir@,$sysconfdir,;t t
18175 s,@sharedstatedir@,$sharedstatedir,;t t
18176 s,@localstatedir@,$localstatedir,;t t
18177 s,@libdir@,$libdir,;t t
18178 s,@includedir@,$includedir,;t t
18179 s,@oldincludedir@,$oldincludedir,;t t
18180 s,@infodir@,$infodir,;t t
18181 s,@mandir@,$mandir,;t t
18182 s,@build_alias@,$build_alias,;t t
18183 s,@host_alias@,$host_alias,;t t
18184 s,@target_alias@,$target_alias,;t t
18185 s,@DEFS@,$DEFS,;t t
18186 s,@ECHO_C@,$ECHO_C,;t t
18187 s,@ECHO_N@,$ECHO_N,;t t
18188 s,@ECHO_T@,$ECHO_T,;t t
18189 s,@LIBS@,$LIBS,;t t
18190 s,@build@,$build,;t t
18191 s,@build_cpu@,$build_cpu,;t t
18192 s,@build_vendor@,$build_vendor,;t t
18193 s,@build_os@,$build_os,;t t
18194 s,@build_libsubdir@,$build_libsubdir,;t t
18195 s,@build_subdir@,$build_subdir,;t t
18196 s,@host_subdir@,$host_subdir,;t t
18197 s,@target_subdir@,$target_subdir,;t t
18198 s,@multi_basedir@,$multi_basedir,;t t
18199 s,@host@,$host,;t t
18200 s,@host_cpu@,$host_cpu,;t t
18201 s,@host_vendor@,$host_vendor,;t t
18202 s,@host_os@,$host_os,;t t
18203 s,@target@,$target,;t t
18204 s,@target_cpu@,$target_cpu,;t t
18205 s,@target_vendor@,$target_vendor,;t t
18206 s,@target_os@,$target_os,;t t
18207 s,@target_noncanonical@,$target_noncanonical,;t t
18208 s,@LN_S@,$LN_S,;t t
18209 s,@mkinstalldirs@,$mkinstalldirs,;t t
18210 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
18211 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
18212 s,@CC@,$CC,;t t
18213 s,@ac_ct_CC@,$ac_ct_CC,;t t
18214 s,@EXEEXT@,$EXEEXT,;t t
18215 s,@OBJEXT@,$OBJEXT,;t t
18216 s,@CXX@,$CXX,;t t
18217 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18218 s,@CFLAGS@,$CFLAGS,;t t
18219 s,@CXXFLAGS@,$CXXFLAGS,;t t
18220 s,@LDFLAGS@,$LDFLAGS,;t t
18221 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18222 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18223 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18224 s,@CYGPATH_W@,$CYGPATH_W,;t t
18225 s,@PACKAGE@,$PACKAGE,;t t
18226 s,@VERSION@,$VERSION,;t t
18227 s,@ACLOCAL@,$ACLOCAL,;t t
18228 s,@AUTOCONF@,$AUTOCONF,;t t
18229 s,@AUTOMAKE@,$AUTOMAKE,;t t
18230 s,@AUTOHEADER@,$AUTOHEADER,;t t
18231 s,@MAKEINFO@,$MAKEINFO,;t t
18232 s,@install_sh@,$install_sh,;t t
18233 s,@STRIP@,$STRIP,;t t
18234 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18235 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18236 s,@mkdir_p@,$mkdir_p,;t t
18237 s,@AWK@,$AWK,;t t
18238 s,@SET_MAKE@,$SET_MAKE,;t t
18239 s,@am__leading_dot@,$am__leading_dot,;t t
18240 s,@AMTAR@,$AMTAR,;t t
18241 s,@am__tar@,$am__tar,;t t
18242 s,@am__untar@,$am__untar,;t t
18243 s,@DEPDIR@,$DEPDIR,;t t
18244 s,@am__include@,$am__include,;t t
18245 s,@am__quote@,$am__quote,;t t
18246 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18247 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18248 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18249 s,@CCDEPMODE@,$CCDEPMODE,;t t
18250 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
18251 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
18252 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18253 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
18254 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
18255 s,@AS@,$AS,;t t
18256 s,@ac_ct_AS@,$ac_ct_AS,;t t
18257 s,@LD@,$LD,;t t
18258 s,@ac_ct_LD@,$ac_ct_LD,;t t
18259 s,@AR@,$AR,;t t
18260 s,@ac_ct_AR@,$ac_ct_AR,;t t
18261 s,@RANLIB@,$RANLIB,;t t
18262 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18263 s,@JAR@,$JAR,;t t
18264 s,@ZIP@,$ZIP,;t t
18265 s,@UNZIP@,$UNZIP,;t t
18266 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
18267 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
18268 s,@MAINT@,$MAINT,;t t
18269 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
18270 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
18271 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
18272 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
18273 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
18274 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
18275 s,@TOOLKIT@,$TOOLKIT,;t t
18276 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
18277 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
18278 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
18279 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
18280 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
18281 s,@GCJH@,$GCJH,;t t
18282 s,@host_exeext@,$host_exeext,;t t
18283 s,@INCLTDL@,$INCLTDL,;t t
18284 s,@LIBLTDL@,$LIBLTDL,;t t
18285 s,@DIRLTDL@,$DIRLTDL,;t t
18286 s,@LIBTOOL@,$LIBTOOL,;t t
18287 s,@CXXCPP@,$CXXCPP,;t t
18288 s,@CPPFLAGS@,$CPPFLAGS,;t t
18289 s,@GCJ@,$GCJ,;t t
18290 s,@GCJFLAGS@,$GCJFLAGS,;t t
18291 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
18292 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
18293 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
18294 s,@subdirs@,$subdirs,;t t
18295 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
18296 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
18297 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
18298 s,@ECJ_JAR@,$ECJ_JAR,;t t
18299 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
18300 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
18301 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
18302 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
18303 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
18304 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
18305 s,@JAVA_HOME@,$JAVA_HOME,;t t
18306 s,@INTERPRETER@,$INTERPRETER,;t t
18307 s,@LIBFFI@,$LIBFFI,;t t
18308 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
18309 s,@PLATFORM@,$PLATFORM,;t t
18310 s,@CPP@,$CPP,;t t
18311 s,@EGREP@,$EGREP,;t t
18312 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
18313 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
18314 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
18315 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
18316 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
18317 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
18318 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
18319 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
18320 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
18321 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
18322 s,@X_CFLAGS@,$X_CFLAGS,;t t
18323 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18324 s,@X_LIBS@,$X_LIBS,;t t
18325 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18326 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
18327 s,@GCLIBS@,$GCLIBS,;t t
18328 s,@GCINCS@,$GCINCS,;t t
18329 s,@GCDEPS@,$GCDEPS,;t t
18330 s,@GCSPEC@,$GCSPEC,;t t
18331 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
18332 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
18333 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
18334 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
18335 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
18336 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
18337 s,@THREADLIBS@,$THREADLIBS,;t t
18338 s,@THREADINCS@,$THREADINCS,;t t
18339 s,@THREADDEPS@,$THREADDEPS,;t t
18340 s,@THREADSPEC@,$THREADSPEC,;t t
18341 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
18342 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
18343 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
18344 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
18345 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
18346 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
18347 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
18348 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
18349 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
18350 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
18351 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
18352 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
18353 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
18354 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
18355 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
18356 s,@LIBICONV@,$LIBICONV,;t t
18357 s,@LTLIBICONV@,$LTLIBICONV,;t t
18358 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18359 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
18360 s,@GTK_LIBS@,$GTK_LIBS,;t t
18361 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
18362 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
18363 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
18364 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
18365 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
18366 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
18367 s,@ZLIBS@,$ZLIBS,;t t
18368 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
18369 s,@ZINCS@,$ZINCS,;t t
18370 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
18371 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
18372 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
18373 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
18374 s,@IEEESPEC@,$IEEESPEC,;t t
18375 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
18376 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
18377 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
18378 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
18379 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
18380 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
18381 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
18382 s,@toolexecdir@,$toolexecdir,;t t
18383 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
18384 s,@toolexeclibdir@,$toolexeclibdir,;t t
18385 s,@dbexecdir@,$dbexecdir,;t t
18386 s,@GCJVERSION@,$GCJVERSION,;t t
18387 s,@gxx_include_dir@,$gxx_include_dir,;t t
18388 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
18389 s,@ALLOCA@,$ALLOCA,;t t
18390 s,@PERL@,$PERL,;t t
18391 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
18392 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
18393 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
18394 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
18395 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
18396 s,@here@,$here,;t t
18397 s,@LIBOBJS@,$LIBOBJS,;t t
18398 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18399 CEOF
18400
18401 _ACEOF
18402
18403   cat >>$CONFIG_STATUS <<\_ACEOF
18404   # Split the substitutions into bite-sized pieces for seds with
18405   # small command number limits, like on Digital OSF/1 and HP-UX.
18406   ac_max_sed_lines=48
18407   ac_sed_frag=1 # Number of current file.
18408   ac_beg=1 # First line for current file.
18409   ac_end=$ac_max_sed_lines # Line after last line for current file.
18410   ac_more_lines=:
18411   ac_sed_cmds=
18412   while $ac_more_lines; do
18413     if test $ac_beg -gt 1; then
18414       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18415     else
18416       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18417     fi
18418     if test ! -s $tmp/subs.frag; then
18419       ac_more_lines=false
18420     else
18421       # The purpose of the label and of the branching condition is to
18422       # speed up the sed processing (if there are no `@' at all, there
18423       # is no need to browse any of the substitutions).
18424       # These are the two extra sed commands mentioned above.
18425       (echo ':t
18426   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18427       if test -z "$ac_sed_cmds"; then
18428         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18429       else
18430         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18431       fi
18432       ac_sed_frag=`expr $ac_sed_frag + 1`
18433       ac_beg=$ac_end
18434       ac_end=`expr $ac_end + $ac_max_sed_lines`
18435     fi
18436   done
18437   if test -z "$ac_sed_cmds"; then
18438     ac_sed_cmds=cat
18439   fi
18440 fi # test -n "$CONFIG_FILES"
18441
18442 _ACEOF
18443 cat >>$CONFIG_STATUS <<\_ACEOF
18444 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18445   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18446   case $ac_file in
18447   - | *:- | *:-:* ) # input from stdin
18448         cat >$tmp/stdin
18449         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18450         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18451   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18452         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18453   * )   ac_file_in=$ac_file.in ;;
18454   esac
18455
18456   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18457   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459          X"$ac_file" : 'X\(//\)[^/]' \| \
18460          X"$ac_file" : 'X\(//\)$' \| \
18461          X"$ac_file" : 'X\(/\)' \| \
18462          .     : '\(.\)' 2>/dev/null ||
18463 echo X"$ac_file" |
18464     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18465           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18466           /^X\(\/\/\)$/{ s//\1/; q; }
18467           /^X\(\/\).*/{ s//\1/; q; }
18468           s/.*/./; q'`
18469   { if $as_mkdir_p; then
18470     mkdir -p "$ac_dir"
18471   else
18472     as_dir="$ac_dir"
18473     as_dirs=
18474     while test ! -d "$as_dir"; do
18475       as_dirs="$as_dir $as_dirs"
18476       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478          X"$as_dir" : 'X\(//\)[^/]' \| \
18479          X"$as_dir" : 'X\(//\)$' \| \
18480          X"$as_dir" : 'X\(/\)' \| \
18481          .     : '\(.\)' 2>/dev/null ||
18482 echo X"$as_dir" |
18483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18484           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18485           /^X\(\/\/\)$/{ s//\1/; q; }
18486           /^X\(\/\).*/{ s//\1/; q; }
18487           s/.*/./; q'`
18488     done
18489     test ! -n "$as_dirs" || mkdir $as_dirs
18490   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18492    { (exit 1); exit 1; }; }; }
18493
18494   ac_builddir=.
18495
18496 if test "$ac_dir" != .; then
18497   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18498   # A "../" for each directory in $ac_dir_suffix.
18499   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18500 else
18501   ac_dir_suffix= ac_top_builddir=
18502 fi
18503
18504 case $srcdir in
18505   .)  # No --srcdir option.  We are building in place.
18506     ac_srcdir=.
18507     if test -z "$ac_top_builddir"; then
18508        ac_top_srcdir=.
18509     else
18510        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18511     fi ;;
18512   [\\/]* | ?:[\\/]* )  # Absolute path.
18513     ac_srcdir=$srcdir$ac_dir_suffix;
18514     ac_top_srcdir=$srcdir ;;
18515   *) # Relative path.
18516     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18517     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18518 esac
18519
18520 # Do not use `cd foo && pwd` to compute absolute paths, because
18521 # the directories may not exist.
18522 case `pwd` in
18523 .) ac_abs_builddir="$ac_dir";;
18524 *)
18525   case "$ac_dir" in
18526   .) ac_abs_builddir=`pwd`;;
18527   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18528   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18529   esac;;
18530 esac
18531 case $ac_abs_builddir in
18532 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18533 *)
18534   case ${ac_top_builddir}. in
18535   .) ac_abs_top_builddir=$ac_abs_builddir;;
18536   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18537   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18538   esac;;
18539 esac
18540 case $ac_abs_builddir in
18541 .) ac_abs_srcdir=$ac_srcdir;;
18542 *)
18543   case $ac_srcdir in
18544   .) ac_abs_srcdir=$ac_abs_builddir;;
18545   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18546   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18547   esac;;
18548 esac
18549 case $ac_abs_builddir in
18550 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18551 *)
18552   case $ac_top_srcdir in
18553   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18554   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18555   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18556   esac;;
18557 esac
18558
18559
18560   case $INSTALL in
18561   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18562   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18563   esac
18564
18565   if test x"$ac_file" != x-; then
18566     { echo "$as_me:$LINENO: creating $ac_file" >&5
18567 echo "$as_me: creating $ac_file" >&6;}
18568     rm -f "$ac_file"
18569   fi
18570   # Let's still pretend it is `configure' which instantiates (i.e., don't
18571   # use $as_me), people would be surprised to read:
18572   #    /* config.h.  Generated by config.status.  */
18573   if test x"$ac_file" = x-; then
18574     configure_input=
18575   else
18576     configure_input="$ac_file.  "
18577   fi
18578   configure_input=$configure_input"Generated from `echo $ac_file_in |
18579                                      sed 's,.*/,,'` by configure."
18580
18581   # First look for the input files in the build tree, otherwise in the
18582   # src tree.
18583   ac_file_inputs=`IFS=:
18584     for f in $ac_file_in; do
18585       case $f in
18586       -) echo $tmp/stdin ;;
18587       [\\/$]*)
18588          # Absolute (can't be DOS-style, as IFS=:)
18589          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18590 echo "$as_me: error: cannot find input file: $f" >&2;}
18591    { (exit 1); exit 1; }; }
18592          echo "$f";;
18593       *) # Relative
18594          if test -f "$f"; then
18595            # Build tree
18596            echo "$f"
18597          elif test -f "$srcdir/$f"; then
18598            # Source tree
18599            echo "$srcdir/$f"
18600          else
18601            # /dev/null tree
18602            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18603 echo "$as_me: error: cannot find input file: $f" >&2;}
18604    { (exit 1); exit 1; }; }
18605          fi;;
18606       esac
18607     done` || { (exit 1); exit 1; }
18608 _ACEOF
18609 cat >>$CONFIG_STATUS <<_ACEOF
18610   sed "$ac_vpsub
18611 $extrasub
18612 _ACEOF
18613 cat >>$CONFIG_STATUS <<\_ACEOF
18614 :t
18615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18616 s,@configure_input@,$configure_input,;t t
18617 s,@srcdir@,$ac_srcdir,;t t
18618 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18619 s,@top_srcdir@,$ac_top_srcdir,;t t
18620 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18621 s,@builddir@,$ac_builddir,;t t
18622 s,@abs_builddir@,$ac_abs_builddir,;t t
18623 s,@top_builddir@,$ac_top_builddir,;t t
18624 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18625 s,@INSTALL@,$ac_INSTALL,;t t
18626 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18627   rm -f $tmp/stdin
18628   if test x"$ac_file" != x-; then
18629     mv $tmp/out $ac_file
18630   else
18631     cat $tmp/out
18632     rm -f $tmp/out
18633   fi
18634
18635   # Run the commands associated with the file.
18636   case $ac_file in
18637     scripts/jar ) chmod +x scripts/jar ;;
18638   esac
18639 done
18640 _ACEOF
18641 cat >>$CONFIG_STATUS <<\_ACEOF
18642
18643 #
18644 # CONFIG_HEADER section.
18645 #
18646
18647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18649 #
18650 # ac_d sets the value in "#define NAME VALUE" lines.
18651 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18652 ac_dB='[         ].*$,\1#\2'
18653 ac_dC=' '
18654 ac_dD=',;t'
18655 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18656 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18657 ac_uB='$,\1#\2define\3'
18658 ac_uC=' '
18659 ac_uD=',;t'
18660
18661 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18662   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18663   case $ac_file in
18664   - | *:- | *:-:* ) # input from stdin
18665         cat >$tmp/stdin
18666         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18668   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18669         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18670   * )   ac_file_in=$ac_file.in ;;
18671   esac
18672
18673   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18674 echo "$as_me: creating $ac_file" >&6;}
18675
18676   # First look for the input files in the build tree, otherwise in the
18677   # src tree.
18678   ac_file_inputs=`IFS=:
18679     for f in $ac_file_in; do
18680       case $f in
18681       -) echo $tmp/stdin ;;
18682       [\\/$]*)
18683          # Absolute (can't be DOS-style, as IFS=:)
18684          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18685 echo "$as_me: error: cannot find input file: $f" >&2;}
18686    { (exit 1); exit 1; }; }
18687          # Do quote $f, to prevent DOS paths from being IFS'd.
18688          echo "$f";;
18689       *) # Relative
18690          if test -f "$f"; then
18691            # Build tree
18692            echo "$f"
18693          elif test -f "$srcdir/$f"; then
18694            # Source tree
18695            echo "$srcdir/$f"
18696          else
18697            # /dev/null tree
18698            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18699 echo "$as_me: error: cannot find input file: $f" >&2;}
18700    { (exit 1); exit 1; }; }
18701          fi;;
18702       esac
18703     done` || { (exit 1); exit 1; }
18704   # Remove the trailing spaces.
18705   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18706
18707 _ACEOF
18708
18709 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18710 # `conftest.undefs', that substitutes the proper values into
18711 # config.h.in to produce config.h.  The first handles `#define'
18712 # templates, and the second `#undef' templates.
18713 # And first: Protect against being on the right side of a sed subst in
18714 # config.status.  Protect against being in an unquoted here document
18715 # in config.status.
18716 rm -f conftest.defines conftest.undefs
18717 # Using a here document instead of a string reduces the quoting nightmare.
18718 # Putting comments in sed scripts is not portable.
18719 #
18720 # `end' is used to avoid that the second main sed command (meant for
18721 # 0-ary CPP macros) applies to n-ary macro definitions.
18722 # See the Autoconf documentation for `clear'.
18723 cat >confdef2sed.sed <<\_ACEOF
18724 s/[\\&,]/\\&/g
18725 s,[\\$`],\\&,g
18726 t clear
18727 : clear
18728 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18729 t end
18730 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18731 : end
18732 _ACEOF
18733 # If some macros were called several times there might be several times
18734 # the same #defines, which is useless.  Nevertheless, we may not want to
18735 # sort them, since we want the *last* AC-DEFINE to be honored.
18736 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18737 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18738 rm -f confdef2sed.sed
18739
18740 # This sed command replaces #undef with comments.  This is necessary, for
18741 # example, in the case of _POSIX_SOURCE, which is predefined and required
18742 # on some systems where configure will not decide to define it.
18743 cat >>conftest.undefs <<\_ACEOF
18744 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18745 _ACEOF
18746
18747 # Break up conftest.defines because some shells have a limit on the size
18748 # of here documents, and old seds have small limits too (100 cmds).
18749 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18750 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18751 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18752 echo '  :' >>$CONFIG_STATUS
18753 rm -f conftest.tail
18754 while grep . conftest.defines >/dev/null
18755 do
18756   # Write a limited-size here document to $tmp/defines.sed.
18757   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18758   # Speed up: don't consider the non `#define' lines.
18759   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18760   # Work around the forget-to-reset-the-flag bug.
18761   echo 't clr' >>$CONFIG_STATUS
18762   echo ': clr' >>$CONFIG_STATUS
18763   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18764   echo 'CEOF
18765   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18766   rm -f $tmp/in
18767   mv $tmp/out $tmp/in
18768 ' >>$CONFIG_STATUS
18769   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18770   rm -f conftest.defines
18771   mv conftest.tail conftest.defines
18772 done
18773 rm -f conftest.defines
18774 echo '  fi # grep' >>$CONFIG_STATUS
18775 echo >>$CONFIG_STATUS
18776
18777 # Break up conftest.undefs because some shells have a limit on the size
18778 # of here documents, and old seds have small limits too (100 cmds).
18779 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18780 rm -f conftest.tail
18781 while grep . conftest.undefs >/dev/null
18782 do
18783   # Write a limited-size here document to $tmp/undefs.sed.
18784   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18785   # Speed up: don't consider the non `#undef'
18786   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18787   # Work around the forget-to-reset-the-flag bug.
18788   echo 't clr' >>$CONFIG_STATUS
18789   echo ': clr' >>$CONFIG_STATUS
18790   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18791   echo 'CEOF
18792   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18793   rm -f $tmp/in
18794   mv $tmp/out $tmp/in
18795 ' >>$CONFIG_STATUS
18796   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18797   rm -f conftest.undefs
18798   mv conftest.tail conftest.undefs
18799 done
18800 rm -f conftest.undefs
18801
18802 cat >>$CONFIG_STATUS <<\_ACEOF
18803   # Let's still pretend it is `configure' which instantiates (i.e., don't
18804   # use $as_me), people would be surprised to read:
18805   #    /* config.h.  Generated by config.status.  */
18806   if test x"$ac_file" = x-; then
18807     echo "/* Generated by configure.  */" >$tmp/config.h
18808   else
18809     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18810   fi
18811   cat $tmp/in >>$tmp/config.h
18812   rm -f $tmp/in
18813   if test x"$ac_file" != x-; then
18814     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18815       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18816 echo "$as_me: $ac_file is unchanged" >&6;}
18817     else
18818       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18819 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18820          X"$ac_file" : 'X\(//\)[^/]' \| \
18821          X"$ac_file" : 'X\(//\)$' \| \
18822          X"$ac_file" : 'X\(/\)' \| \
18823          .     : '\(.\)' 2>/dev/null ||
18824 echo X"$ac_file" |
18825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18827           /^X\(\/\/\)$/{ s//\1/; q; }
18828           /^X\(\/\).*/{ s//\1/; q; }
18829           s/.*/./; q'`
18830       { if $as_mkdir_p; then
18831     mkdir -p "$ac_dir"
18832   else
18833     as_dir="$ac_dir"
18834     as_dirs=
18835     while test ! -d "$as_dir"; do
18836       as_dirs="$as_dir $as_dirs"
18837       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18839          X"$as_dir" : 'X\(//\)[^/]' \| \
18840          X"$as_dir" : 'X\(//\)$' \| \
18841          X"$as_dir" : 'X\(/\)' \| \
18842          .     : '\(.\)' 2>/dev/null ||
18843 echo X"$as_dir" |
18844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18846           /^X\(\/\/\)$/{ s//\1/; q; }
18847           /^X\(\/\).*/{ s//\1/; q; }
18848           s/.*/./; q'`
18849     done
18850     test ! -n "$as_dirs" || mkdir $as_dirs
18851   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18853    { (exit 1); exit 1; }; }; }
18854
18855       rm -f $ac_file
18856       mv $tmp/config.h $ac_file
18857     fi
18858   else
18859     cat $tmp/config.h
18860     rm -f $tmp/config.h
18861   fi
18862 # Compute $ac_file's index in $config_headers.
18863 _am_stamp_count=1
18864 for _am_header in $config_headers :; do
18865   case $_am_header in
18866     $ac_file | $ac_file:* )
18867       break ;;
18868     * )
18869       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18870   esac
18871 done
18872 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18873 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18874          X$ac_file : 'X\(//\)[^/]' \| \
18875          X$ac_file : 'X\(//\)$' \| \
18876          X$ac_file : 'X\(/\)' \| \
18877          .     : '\(.\)' 2>/dev/null ||
18878 echo X$ac_file |
18879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18881           /^X\(\/\/\)$/{ s//\1/; q; }
18882           /^X\(\/\).*/{ s//\1/; q; }
18883           s/.*/./; q'`/stamp-h$_am_stamp_count
18884 done
18885 _ACEOF
18886 cat >>$CONFIG_STATUS <<\_ACEOF
18887
18888 #
18889 # CONFIG_LINKS section.
18890 #
18891
18892 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18893   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18894   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18895
18896   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18897 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18898
18899   if test ! -r $srcdir/$ac_source; then
18900     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18901 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18902    { (exit 1); exit 1; }; }
18903   fi
18904   rm -f $ac_dest
18905
18906   # Make relative symlinks.
18907   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18908 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18909          X"$ac_dest" : 'X\(//\)[^/]' \| \
18910          X"$ac_dest" : 'X\(//\)$' \| \
18911          X"$ac_dest" : 'X\(/\)' \| \
18912          .     : '\(.\)' 2>/dev/null ||
18913 echo X"$ac_dest" |
18914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18915           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18916           /^X\(\/\/\)$/{ s//\1/; q; }
18917           /^X\(\/\).*/{ s//\1/; q; }
18918           s/.*/./; q'`
18919   { if $as_mkdir_p; then
18920     mkdir -p "$ac_dest_dir"
18921   else
18922     as_dir="$ac_dest_dir"
18923     as_dirs=
18924     while test ! -d "$as_dir"; do
18925       as_dirs="$as_dir $as_dirs"
18926       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18928          X"$as_dir" : 'X\(//\)[^/]' \| \
18929          X"$as_dir" : 'X\(//\)$' \| \
18930          X"$as_dir" : 'X\(/\)' \| \
18931          .     : '\(.\)' 2>/dev/null ||
18932 echo X"$as_dir" |
18933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18934           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18935           /^X\(\/\/\)$/{ s//\1/; q; }
18936           /^X\(\/\).*/{ s//\1/; q; }
18937           s/.*/./; q'`
18938     done
18939     test ! -n "$as_dirs" || mkdir $as_dirs
18940   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18941 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18942    { (exit 1); exit 1; }; }; }
18943
18944   ac_builddir=.
18945
18946 if test "$ac_dest_dir" != .; then
18947   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18948   # A "../" for each directory in $ac_dir_suffix.
18949   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18950 else
18951   ac_dir_suffix= ac_top_builddir=
18952 fi
18953
18954 case $srcdir in
18955   .)  # No --srcdir option.  We are building in place.
18956     ac_srcdir=.
18957     if test -z "$ac_top_builddir"; then
18958        ac_top_srcdir=.
18959     else
18960        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18961     fi ;;
18962   [\\/]* | ?:[\\/]* )  # Absolute path.
18963     ac_srcdir=$srcdir$ac_dir_suffix;
18964     ac_top_srcdir=$srcdir ;;
18965   *) # Relative path.
18966     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18967     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18968 esac
18969
18970 # Do not use `cd foo && pwd` to compute absolute paths, because
18971 # the directories may not exist.
18972 case `pwd` in
18973 .) ac_abs_builddir="$ac_dest_dir";;
18974 *)
18975   case "$ac_dest_dir" in
18976   .) ac_abs_builddir=`pwd`;;
18977   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18978   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18979   esac;;
18980 esac
18981 case $ac_abs_builddir in
18982 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18983 *)
18984   case ${ac_top_builddir}. in
18985   .) ac_abs_top_builddir=$ac_abs_builddir;;
18986   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18987   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18988   esac;;
18989 esac
18990 case $ac_abs_builddir in
18991 .) ac_abs_srcdir=$ac_srcdir;;
18992 *)
18993   case $ac_srcdir in
18994   .) ac_abs_srcdir=$ac_abs_builddir;;
18995   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18996   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18997   esac;;
18998 esac
18999 case $ac_abs_builddir in
19000 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19001 *)
19002   case $ac_top_srcdir in
19003   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19004   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19005   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19006   esac;;
19007 esac
19008
19009
19010   case $srcdir in
19011   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19012       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
19013   esac
19014
19015   # Try a symlink, then a hard link, then a copy.
19016   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
19017     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
19018     cp -p $srcdir/$ac_source $ac_dest ||
19019     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
19020 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
19021    { (exit 1); exit 1; }; }
19022 done
19023 _ACEOF
19024 cat >>$CONFIG_STATUS <<\_ACEOF
19025
19026 #
19027 # CONFIG_COMMANDS section.
19028 #
19029 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19030   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19031   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19032   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19033 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034          X"$ac_dest" : 'X\(//\)[^/]' \| \
19035          X"$ac_dest" : 'X\(//\)$' \| \
19036          X"$ac_dest" : 'X\(/\)' \| \
19037          .     : '\(.\)' 2>/dev/null ||
19038 echo X"$ac_dest" |
19039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19040           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19041           /^X\(\/\/\)$/{ s//\1/; q; }
19042           /^X\(\/\).*/{ s//\1/; q; }
19043           s/.*/./; q'`
19044   { if $as_mkdir_p; then
19045     mkdir -p "$ac_dir"
19046   else
19047     as_dir="$ac_dir"
19048     as_dirs=
19049     while test ! -d "$as_dir"; do
19050       as_dirs="$as_dir $as_dirs"
19051       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19053          X"$as_dir" : 'X\(//\)[^/]' \| \
19054          X"$as_dir" : 'X\(//\)$' \| \
19055          X"$as_dir" : 'X\(/\)' \| \
19056          .     : '\(.\)' 2>/dev/null ||
19057 echo X"$as_dir" |
19058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19060           /^X\(\/\/\)$/{ s//\1/; q; }
19061           /^X\(\/\).*/{ s//\1/; q; }
19062           s/.*/./; q'`
19063     done
19064     test ! -n "$as_dirs" || mkdir $as_dirs
19065   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19067    { (exit 1); exit 1; }; }; }
19068
19069   ac_builddir=.
19070
19071 if test "$ac_dir" != .; then
19072   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19073   # A "../" for each directory in $ac_dir_suffix.
19074   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19075 else
19076   ac_dir_suffix= ac_top_builddir=
19077 fi
19078
19079 case $srcdir in
19080   .)  # No --srcdir option.  We are building in place.
19081     ac_srcdir=.
19082     if test -z "$ac_top_builddir"; then
19083        ac_top_srcdir=.
19084     else
19085        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19086     fi ;;
19087   [\\/]* | ?:[\\/]* )  # Absolute path.
19088     ac_srcdir=$srcdir$ac_dir_suffix;
19089     ac_top_srcdir=$srcdir ;;
19090   *) # Relative path.
19091     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19092     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19093 esac
19094
19095 # Do not use `cd foo && pwd` to compute absolute paths, because
19096 # the directories may not exist.
19097 case `pwd` in
19098 .) ac_abs_builddir="$ac_dir";;
19099 *)
19100   case "$ac_dir" in
19101   .) ac_abs_builddir=`pwd`;;
19102   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19103   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19104   esac;;
19105 esac
19106 case $ac_abs_builddir in
19107 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19108 *)
19109   case ${ac_top_builddir}. in
19110   .) ac_abs_top_builddir=$ac_abs_builddir;;
19111   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19112   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19113   esac;;
19114 esac
19115 case $ac_abs_builddir in
19116 .) ac_abs_srcdir=$ac_srcdir;;
19117 *)
19118   case $ac_srcdir in
19119   .) ac_abs_srcdir=$ac_abs_builddir;;
19120   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19121   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19122   esac;;
19123 esac
19124 case $ac_abs_builddir in
19125 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19126 *)
19127   case $ac_top_srcdir in
19128   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19129   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19130   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19131   esac;;
19132 esac
19133
19134
19135   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19136 echo "$as_me: executing $ac_dest commands" >&6;}
19137   case $ac_dest in
19138     default-1 )
19139 # Only add multilib support code if we just rebuilt the top-level
19140 # Makefile.
19141 case " $CONFIG_FILES " in
19142  *" Makefile "*)
19143    ac_file=Makefile . ${multi_basedir}/config-ml.in
19144    ;;
19145 esac ;;
19146     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19147   # Strip MF so we end up with the name of the file.
19148   mf=`echo "$mf" | sed -e 's/:.*$//'`
19149   # Check whether this is an Automake generated Makefile or not.
19150   # We used to match only the files named `Makefile.in', but
19151   # some people rename them; so instead we look at the file content.
19152   # Grep'ing the first line is not enough: some people post-process
19153   # each Makefile.in and add a new line on top of each file to say so.
19154   # So let's grep whole file.
19155   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19156     dirpart=`(dirname "$mf") 2>/dev/null ||
19157 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19158          X"$mf" : 'X\(//\)[^/]' \| \
19159          X"$mf" : 'X\(//\)$' \| \
19160          X"$mf" : 'X\(/\)' \| \
19161          .     : '\(.\)' 2>/dev/null ||
19162 echo X"$mf" |
19163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19165           /^X\(\/\/\)$/{ s//\1/; q; }
19166           /^X\(\/\).*/{ s//\1/; q; }
19167           s/.*/./; q'`
19168   else
19169     continue
19170   fi
19171   # Extract the definition of DEPDIR, am__include, and am__quote
19172   # from the Makefile without running `make'.
19173   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19174   test -z "$DEPDIR" && continue
19175   am__include=`sed -n 's/^am__include = //p' < "$mf"`
19176   test -z "am__include" && continue
19177   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19178   # When using ansi2knr, U may be empty or an underscore; expand it
19179   U=`sed -n 's/^U = //p' < "$mf"`
19180   # Find all dependency output files, they are included files with
19181   # $(DEPDIR) in their names.  We invoke sed twice because it is the
19182   # simplest approach to changing $(DEPDIR) to its actual value in the
19183   # expansion.
19184   for file in `sed -n "
19185     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19186        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19187     # Make sure the directory exists.
19188     test -f "$dirpart/$file" && continue
19189     fdir=`(dirname "$file") 2>/dev/null ||
19190 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19191          X"$file" : 'X\(//\)[^/]' \| \
19192          X"$file" : 'X\(//\)$' \| \
19193          X"$file" : 'X\(/\)' \| \
19194          .     : '\(.\)' 2>/dev/null ||
19195 echo X"$file" |
19196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19197           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19198           /^X\(\/\/\)$/{ s//\1/; q; }
19199           /^X\(\/\).*/{ s//\1/; q; }
19200           s/.*/./; q'`
19201     { if $as_mkdir_p; then
19202     mkdir -p $dirpart/$fdir
19203   else
19204     as_dir=$dirpart/$fdir
19205     as_dirs=
19206     while test ! -d "$as_dir"; do
19207       as_dirs="$as_dir $as_dirs"
19208       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19210          X"$as_dir" : 'X\(//\)[^/]' \| \
19211          X"$as_dir" : 'X\(//\)$' \| \
19212          X"$as_dir" : 'X\(/\)' \| \
19213          .     : '\(.\)' 2>/dev/null ||
19214 echo X"$as_dir" |
19215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19216           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19217           /^X\(\/\/\)$/{ s//\1/; q; }
19218           /^X\(\/\).*/{ s//\1/; q; }
19219           s/.*/./; q'`
19220     done
19221     test ! -n "$as_dirs" || mkdir $as_dirs
19222   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19223 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19224    { (exit 1); exit 1; }; }; }
19225
19226     # echo "creating $dirpart/$file"
19227     echo '# dummy' > "$dirpart/$file"
19228   done
19229 done
19230  ;;
19231     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
19232 case " $CONFIG_FILES " in
19233  *" Makefile "*)
19234    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
19235    ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
19236    ;;
19237 esac
19238 for ac_multi_file in $CONFIG_FILES; do
19239   case $ac_multi_file in
19240   */Makefile)
19241     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
19242   esac
19243 done
19244  ;;
19245   esac
19246 done
19247 _ACEOF
19248
19249 cat >>$CONFIG_STATUS <<\_ACEOF
19250
19251 { (exit 0); exit 0; }
19252 _ACEOF
19253 chmod +x $CONFIG_STATUS
19254 ac_clean_files=$ac_clean_files_save
19255
19256
19257 # configure is writing to config.log, and then calls config.status.
19258 # config.status does its own redirection, appending to config.log.
19259 # Unfortunately, on DOS this fails, as config.log is still kept open
19260 # by configure, so config.status won't be able to write to it; its
19261 # output is simply discarded.  So we exec the FD to /dev/null,
19262 # effectively closing config.log, so it can be properly (re)opened and
19263 # appended to by config.status.  When coming back to configure, we
19264 # need to make the FD available again.
19265 if test "$no_create" != yes; then
19266   ac_cs_success=:
19267   ac_config_status_args=
19268   test "$silent" = yes &&
19269     ac_config_status_args="$ac_config_status_args --quiet"
19270   exec 5>/dev/null
19271   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19272   exec 5>>config.log
19273   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19274   # would make configure fail if this is the last instruction.
19275   $ac_cs_success || { (exit 1); exit 1; }
19276 fi
19277
19278 #
19279 # CONFIG_SUBDIRS section.
19280 #
19281 if test "$no_recursion" != yes; then
19282
19283   # Remove --cache-file and --srcdir arguments so they do not pile up.
19284   ac_sub_configure_args=
19285   ac_prev=
19286   for ac_arg in $ac_configure_args; do
19287     if test -n "$ac_prev"; then
19288       ac_prev=
19289       continue
19290     fi
19291     case $ac_arg in
19292     -cache-file | --cache-file | --cache-fil | --cache-fi \
19293     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19294       ac_prev=cache_file ;;
19295     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19296     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19297     | --c=*)
19298       ;;
19299     --config-cache | -C)
19300       ;;
19301     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19302       ac_prev=srcdir ;;
19303     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19304       ;;
19305     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19306       ac_prev=prefix ;;
19307     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19308       ;;
19309     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19310     esac
19311   done
19312
19313   # Always prepend --prefix to ensure using the same prefix
19314   # in subdir configurations.
19315   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19316
19317   ac_popdir=`pwd`
19318   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19319
19320     # Do not complain, so a configure script can configure whichever
19321     # parts of a large source tree are present.
19322     test -d $srcdir/$ac_dir || continue
19323
19324     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
19325 echo "$as_me: configuring in $ac_dir" >&6;}
19326     { if $as_mkdir_p; then
19327     mkdir -p "$ac_dir"
19328   else
19329     as_dir="$ac_dir"
19330     as_dirs=
19331     while test ! -d "$as_dir"; do
19332       as_dirs="$as_dir $as_dirs"
19333       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335          X"$as_dir" : 'X\(//\)[^/]' \| \
19336          X"$as_dir" : 'X\(//\)$' \| \
19337          X"$as_dir" : 'X\(/\)' \| \
19338          .     : '\(.\)' 2>/dev/null ||
19339 echo X"$as_dir" |
19340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19341           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19342           /^X\(\/\/\)$/{ s//\1/; q; }
19343           /^X\(\/\).*/{ s//\1/; q; }
19344           s/.*/./; q'`
19345     done
19346     test ! -n "$as_dirs" || mkdir $as_dirs
19347   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19349    { (exit 1); exit 1; }; }; }
19350
19351     ac_builddir=.
19352
19353 if test "$ac_dir" != .; then
19354   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19355   # A "../" for each directory in $ac_dir_suffix.
19356   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19357 else
19358   ac_dir_suffix= ac_top_builddir=
19359 fi
19360
19361 case $srcdir in
19362   .)  # No --srcdir option.  We are building in place.
19363     ac_srcdir=.
19364     if test -z "$ac_top_builddir"; then
19365        ac_top_srcdir=.
19366     else
19367        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19368     fi ;;
19369   [\\/]* | ?:[\\/]* )  # Absolute path.
19370     ac_srcdir=$srcdir$ac_dir_suffix;
19371     ac_top_srcdir=$srcdir ;;
19372   *) # Relative path.
19373     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19374     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19375 esac
19376
19377 # Do not use `cd foo && pwd` to compute absolute paths, because
19378 # the directories may not exist.
19379 case `pwd` in
19380 .) ac_abs_builddir="$ac_dir";;
19381 *)
19382   case "$ac_dir" in
19383   .) ac_abs_builddir=`pwd`;;
19384   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19385   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19386   esac;;
19387 esac
19388 case $ac_abs_builddir in
19389 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19390 *)
19391   case ${ac_top_builddir}. in
19392   .) ac_abs_top_builddir=$ac_abs_builddir;;
19393   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19394   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19395   esac;;
19396 esac
19397 case $ac_abs_builddir in
19398 .) ac_abs_srcdir=$ac_srcdir;;
19399 *)
19400   case $ac_srcdir in
19401   .) ac_abs_srcdir=$ac_abs_builddir;;
19402   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19403   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19404   esac;;
19405 esac
19406 case $ac_abs_builddir in
19407 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19408 *)
19409   case $ac_top_srcdir in
19410   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19411   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19412   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19413   esac;;
19414 esac
19415
19416
19417     cd $ac_dir
19418
19419     # Check for guested configure; otherwise get Cygnus style configure.
19420     if test -f $ac_srcdir/configure.gnu; then
19421       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19422     elif test -f $ac_srcdir/configure; then
19423       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19424     elif test -f $ac_srcdir/configure.in; then
19425       ac_sub_configure=$ac_configure
19426     else
19427       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19428 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19429       ac_sub_configure=
19430     fi
19431
19432     # The recursion is here.
19433     if test -n "$ac_sub_configure"; then
19434       # Make the cache file name correct relative to the subdirectory.
19435       case $cache_file in
19436       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19437       *) # Relative path.
19438         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19439       esac
19440
19441       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19442 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19443       # The eval makes quoting arguments work.
19444       eval $ac_sub_configure $ac_sub_configure_args \
19445            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19446         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19447 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19448    { (exit 1); exit 1; }; }
19449     fi
19450
19451     cd $ac_popdir
19452   done
19453 fi
19454