OSDN Git Service

2004-09-08 Bryce McKinlay <mckinlay@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 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 libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --disable-dependency-tracking  speeds up one-time build
857   --enable-dependency-tracking   do not reject slow dependency extractors
858   --enable-maintainer-mode  enable make rules and dependencies not useful
859                           (and sometimes confusing) to the casual installer
860   --enable-shared=PKGS  build shared libraries default=yes
861   --enable-static=PKGS  build static libraries default=yes
862   --enable-fast-install=PKGS  optimize for fast installation default=yes
863   --disable-libtool-lock  avoid locking (might break parallel builds)
864   --disable-getenv-properties
865                           don't set system properties from GCJ_PROPERTIES
866   --enable-hash-synchronization
867                           use global hash table for monitor locks
868   --enable-libgcj-multifile
869                  allow compilation of several files at once
870
871   --enable-libgcj-debug   enable runtime debugging code
872   --enable-gc-debug       include full support for pointer backtracing etc.
873   --enable-interpreter    enable interpreter
874   --enable-sjlj-exceptions
875                           force use of builtin_setjmp for exceptions
876   --disable-java-net      disable java.net
877   --disable-jvmpi         disable JVMPI support
878   --enable-java-awt       list of AWT peer implementations to be built
879   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881
882 Optional Packages:
883   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
884   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
885   --with-target-subdir=SUBDIR
886                           configure in a subdirectory
887   --with-cross-host=HOST  configure with a cross compiler from HOST
888   --with-newlib           configure with newlib
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890   --with-pic              try to use only PIC/non-PIC objects default=use both
891   --with-win32-nlsapi=ansi or unicows or unicode
892                           native MinGW libgcj Win32 OS API (default is ansi)
893   --without-libffi        don't use libffi
894   --with-ecos             enable runtime eCos target support
895   --with-system-zlib      use installed libz
896   --with-x                use the X Window System
897   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
898
899 Some influential environment variables:
900   CC          C compiler command
901   CFLAGS      C compiler flags
902   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
903               nonstandard directory <lib dir>
904   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
905               headers in a nonstandard directory <include dir>
906   CXX         C++ compiler command
907   CXXFLAGS    C++ compiler flags
908   CXXCPP      C++ preprocessor
909   CPP         C preprocessor
910
911 Use these variables to override the choices made by `configure' or to help
912 it to find libraries and programs with nonstandard names/locations.
913
914 _ACEOF
915 fi
916
917 if test "$ac_init_help" = "recursive"; then
918   # If there are subdirs, report their specific --help.
919   ac_popdir=`pwd`
920   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
921     test -d $ac_dir || continue
922     ac_builddir=.
923
924 if test "$ac_dir" != .; then
925   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
926   # A "../" for each directory in $ac_dir_suffix.
927   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
928 else
929   ac_dir_suffix= ac_top_builddir=
930 fi
931
932 case $srcdir in
933   .)  # No --srcdir option.  We are building in place.
934     ac_srcdir=.
935     if test -z "$ac_top_builddir"; then
936        ac_top_srcdir=.
937     else
938        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
939     fi ;;
940   [\\/]* | ?:[\\/]* )  # Absolute path.
941     ac_srcdir=$srcdir$ac_dir_suffix;
942     ac_top_srcdir=$srcdir ;;
943   *) # Relative path.
944     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
945     ac_top_srcdir=$ac_top_builddir$srcdir ;;
946 esac
947
948 # Do not use `cd foo && pwd` to compute absolute paths, because
949 # the directories may not exist.
950 case `pwd` in
951 .) ac_abs_builddir="$ac_dir";;
952 *)
953   case "$ac_dir" in
954   .) ac_abs_builddir=`pwd`;;
955   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
956   *) ac_abs_builddir=`pwd`/"$ac_dir";;
957   esac;;
958 esac
959 case $ac_abs_builddir in
960 .) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *)
962   case ${ac_top_builddir}. in
963   .) ac_abs_top_builddir=$ac_abs_builddir;;
964   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
965   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
966   esac;;
967 esac
968 case $ac_abs_builddir in
969 .) ac_abs_srcdir=$ac_srcdir;;
970 *)
971   case $ac_srcdir in
972   .) ac_abs_srcdir=$ac_abs_builddir;;
973   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
974   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
975   esac;;
976 esac
977 case $ac_abs_builddir in
978 .) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *)
980   case $ac_top_srcdir in
981   .) ac_abs_top_srcdir=$ac_abs_builddir;;
982   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
983   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
984   esac;;
985 esac
986
987     cd $ac_dir
988     # Check for guested configure; otherwise get Cygnus style configure.
989     if test -f $ac_srcdir/configure.gnu; then
990       echo
991       $SHELL $ac_srcdir/configure.gnu  --help=recursive
992     elif test -f $ac_srcdir/configure; then
993       echo
994       $SHELL $ac_srcdir/configure  --help=recursive
995     elif test -f $ac_srcdir/configure.ac ||
996            test -f $ac_srcdir/configure.in; then
997       echo
998       $ac_configure --help
999     else
1000       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001     fi
1002     cd $ac_popdir
1003   done
1004 fi
1005
1006 test -n "$ac_init_help" && exit 0
1007 if $ac_init_version; then
1008   cat <<\_ACEOF
1009 libjava configure version-unused
1010 generated by GNU Autoconf 2.59
1011
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1015 _ACEOF
1016   exit 0
1017 fi
1018 exec 5>config.log
1019 cat >&5 <<_ACEOF
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1022
1023 It was created by libjava $as_me version-unused, which was
1024 generated by GNU Autoconf 2.59.  Invocation command line was
1025
1026   $ $0 $@
1027
1028 _ACEOF
1029 {
1030 cat <<_ASUNAME
1031 ## --------- ##
1032 ## Platform. ##
1033 ## --------- ##
1034
1035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040
1041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1043
1044 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1045 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1048 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1049 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1050 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1051
1052 _ASUNAME
1053
1054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 for as_dir in $PATH
1056 do
1057   IFS=$as_save_IFS
1058   test -z "$as_dir" && as_dir=.
1059   echo "PATH: $as_dir"
1060 done
1061
1062 } >&5
1063
1064 cat >&5 <<_ACEOF
1065
1066
1067 ## ----------- ##
1068 ## Core tests. ##
1069 ## ----------- ##
1070
1071 _ACEOF
1072
1073
1074 # Keep a trace of the command line.
1075 # Strip out --no-create and --no-recursion so they do not pile up.
1076 # Strip out --silent because we don't want to record it for future runs.
1077 # Also quote any args containing shell meta-characters.
1078 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_configure_args=
1080 ac_configure_args0=
1081 ac_configure_args1=
1082 ac_sep=
1083 ac_must_keep_next=false
1084 for ac_pass in 1 2
1085 do
1086   for ac_arg
1087   do
1088     case $ac_arg in
1089     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091     | -silent | --silent | --silen | --sile | --sil)
1092       continue ;;
1093     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095     esac
1096     case $ac_pass in
1097     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098     2)
1099       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100       if test $ac_must_keep_next = true; then
1101         ac_must_keep_next=false # Got value, back to normal.
1102       else
1103         case $ac_arg in
1104           *=* | --config-cache | -C | -disable-* | --disable-* \
1105           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107           | -with-* | --with-* | -without-* | --without-* | --x)
1108             case "$ac_configure_args0 " in
1109               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110             esac
1111             ;;
1112           -* ) ac_must_keep_next=true ;;
1113         esac
1114       fi
1115       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116       # Get rid of the leading space.
1117       ac_sep=" "
1118       ;;
1119     esac
1120   done
1121 done
1122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124
1125 # When interrupted or exit'd, cleanup temporary files, and complete
1126 # config.log.  We remove comments because anyway the quotes in there
1127 # would cause problems or look ugly.
1128 # WARNING: Be sure not to use single quotes in there, as some shells,
1129 # such as our DU 5.0 friend, will then `close' the trap.
1130 trap 'exit_status=$?
1131   # Save into config.log some information that might help in debugging.
1132   {
1133     echo
1134
1135     cat <<\_ASBOX
1136 ## ---------------- ##
1137 ## Cache variables. ##
1138 ## ---------------- ##
1139 _ASBOX
1140     echo
1141     # The following way of writing the cache mishandles newlines in values,
1142 {
1143   (set) 2>&1 |
1144     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145     *ac_space=\ *)
1146       sed -n \
1147         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149       ;;
1150     *)
1151       sed -n \
1152         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153       ;;
1154     esac;
1155 }
1156     echo
1157
1158     cat <<\_ASBOX
1159 ## ----------------- ##
1160 ## Output variables. ##
1161 ## ----------------- ##
1162 _ASBOX
1163     echo
1164     for ac_var in $ac_subst_vars
1165     do
1166       eval ac_val=$`echo $ac_var`
1167       echo "$ac_var='"'"'$ac_val'"'"'"
1168     done | sort
1169     echo
1170
1171     if test -n "$ac_subst_files"; then
1172       cat <<\_ASBOX
1173 ## ------------- ##
1174 ## Output files. ##
1175 ## ------------- ##
1176 _ASBOX
1177       echo
1178       for ac_var in $ac_subst_files
1179       do
1180         eval ac_val=$`echo $ac_var`
1181         echo "$ac_var='"'"'$ac_val'"'"'"
1182       done | sort
1183       echo
1184     fi
1185
1186     if test -s confdefs.h; then
1187       cat <<\_ASBOX
1188 ## ----------- ##
1189 ## confdefs.h. ##
1190 ## ----------- ##
1191 _ASBOX
1192       echo
1193       sed "/^$/d" confdefs.h | sort
1194       echo
1195     fi
1196     test "$ac_signal" != 0 &&
1197       echo "$as_me: caught signal $ac_signal"
1198     echo "$as_me: exit $exit_status"
1199   } >&5
1200   rm -f core *.core &&
1201   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202     exit $exit_status
1203      ' 0
1204 for ac_signal in 1 2 13 15; do
1205   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 done
1207 ac_signal=0
1208
1209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210 rm -rf conftest* confdefs.h
1211 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 echo >confdefs.h
1213
1214 # Predefined preprocessor variables.
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 _ACEOF
1239
1240
1241 # Let the site file select an alternate cache file if it wants to.
1242 # Prefer explicitly selected file to automatically selected ones.
1243 if test -z "$CONFIG_SITE"; then
1244   if test "x$prefix" != xNONE; then
1245     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246   else
1247     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248   fi
1249 fi
1250 for ac_site_file in $CONFIG_SITE; do
1251   if test -r "$ac_site_file"; then
1252     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253 echo "$as_me: loading site script $ac_site_file" >&6;}
1254     sed 's/^/| /' "$ac_site_file" >&5
1255     . "$ac_site_file"
1256   fi
1257 done
1258
1259 if test -r "$cache_file"; then
1260   # Some versions of bash will fail to source /dev/null (special
1261   # files actually), so we avoid doing that.
1262   if test -f "$cache_file"; then
1263     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264 echo "$as_me: loading cache $cache_file" >&6;}
1265     case $cache_file in
1266       [\\/]* | ?:[\\/]* ) . $cache_file;;
1267       *)                      . ./$cache_file;;
1268     esac
1269   fi
1270 else
1271   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272 echo "$as_me: creating cache $cache_file" >&6;}
1273   >$cache_file
1274 fi
1275
1276 # Check that the precious variables saved in the cache have kept the same
1277 # value.
1278 ac_cache_corrupted=false
1279 for ac_var in `(set) 2>&1 |
1280                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282   eval ac_new_set=\$ac_env_${ac_var}_set
1283   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284   eval ac_new_val="\$ac_env_${ac_var}_value"
1285   case $ac_old_set,$ac_new_set in
1286     set,)
1287       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289       ac_cache_corrupted=: ;;
1290     ,set)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,);;
1295     *)
1296       if test "x$ac_old_val" != "x$ac_new_val"; then
1297         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1298 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1299         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1300 echo "$as_me:   former value:  $ac_old_val" >&2;}
1301         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1302 echo "$as_me:   current value: $ac_new_val" >&2;}
1303         ac_cache_corrupted=:
1304       fi;;
1305   esac
1306   # Pass precious variables to config.status.
1307   if test "$ac_new_set" = set; then
1308     case $ac_new_val in
1309     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1311     *) ac_arg=$ac_var=$ac_new_val ;;
1312     esac
1313     case " $ac_configure_args " in
1314       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1315       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1316     esac
1317   fi
1318 done
1319 if $ac_cache_corrupted; then
1320   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1321 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1322   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1323 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1324    { (exit 1); exit 1; }; }
1325 fi
1326
1327 ac_ext=c
1328 ac_cpp='$CPP $CPPFLAGS'
1329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362 # We use these options to decide which functions to include.
1363
1364 # Check whether --with-target-subdir or --without-target-subdir was given.
1365 if test "${with_target_subdir+set}" = set; then
1366   withval="$with_target_subdir"
1367
1368 fi;
1369
1370 # We may get other options which we don't document:
1371 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1372
1373 # When building with srcdir == objdir, links to the source files will
1374 # be created in directories within the target_subdir.  We have to
1375 # adjust toplevel_srcdir accordingly, so that configure finds
1376 # install-sh and other auxiliary files that live in the top-level
1377 # source directory.
1378 if test "${srcdir}" = "."; then
1379   if test -z "${with_target_subdir}"; then
1380     toprel=".."
1381   else
1382     if test "${with_target_subdir}" != "."; then
1383       toprel="${with_multisrctop}../.."
1384     else
1385       toprel="${with_multisrctop}.."
1386     fi
1387   fi
1388 else
1389   toprel=".."
1390 fi
1391
1392 libgcj_basedir=$srcdir/$toprel/./libjava
1393
1394
1395 ac_aux_dir=
1396 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1397   if test -f $ac_dir/install-sh; then
1398     ac_aux_dir=$ac_dir
1399     ac_install_sh="$ac_aux_dir/install-sh -c"
1400     break
1401   elif test -f $ac_dir/install.sh; then
1402     ac_aux_dir=$ac_dir
1403     ac_install_sh="$ac_aux_dir/install.sh -c"
1404     break
1405   elif test -f $ac_dir/shtool; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/shtool install -c"
1408     break
1409   fi
1410 done
1411 if test -z "$ac_aux_dir"; then
1412   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1413 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1414    { (exit 1); exit 1; }; }
1415 fi
1416 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1417 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1418 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1419
1420 # Make sure we can run config.sub.
1421 $ac_config_sub sun4 >/dev/null 2>&1 ||
1422   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1423 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1424    { (exit 1); exit 1; }; }
1425
1426 echo "$as_me:$LINENO: checking build system type" >&5
1427 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1428 if test "${ac_cv_build+set}" = set; then
1429   echo $ECHO_N "(cached) $ECHO_C" >&6
1430 else
1431   ac_cv_build_alias=$build_alias
1432 test -z "$ac_cv_build_alias" &&
1433   ac_cv_build_alias=`$ac_config_guess`
1434 test -z "$ac_cv_build_alias" &&
1435   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1437    { (exit 1); exit 1; }; }
1438 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1439   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1441    { (exit 1); exit 1; }; }
1442
1443 fi
1444 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1445 echo "${ECHO_T}$ac_cv_build" >&6
1446 build=$ac_cv_build
1447 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1451
1452 echo "$as_me:$LINENO: checking host system type" >&5
1453 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1454 if test "${ac_cv_host+set}" = set; then
1455   echo $ECHO_N "(cached) $ECHO_C" >&6
1456 else
1457   ac_cv_host_alias=$host_alias
1458 test -z "$ac_cv_host_alias" &&
1459   ac_cv_host_alias=$ac_cv_build_alias
1460 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1461   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1462 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1463    { (exit 1); exit 1; }; }
1464
1465 fi
1466 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1467 echo "${ECHO_T}$ac_cv_host" >&6
1468 host=$ac_cv_host
1469 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1470 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1471 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1472
1473
1474 echo "$as_me:$LINENO: checking target system type" >&5
1475 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1476 if test "${ac_cv_target+set}" = set; then
1477   echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479   ac_cv_target_alias=$target_alias
1480 test "x$ac_cv_target_alias" = "x" &&
1481   ac_cv_target_alias=$ac_cv_host_alias
1482 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1483   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1484 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1485    { (exit 1); exit 1; }; }
1486
1487 fi
1488 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1489 echo "${ECHO_T}$ac_cv_target" >&6
1490 target=$ac_cv_target
1491 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1492 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1493 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1494
1495
1496 # The aliases save the names the user supplied, while $host etc.
1497 # will get canonicalized.
1498 test -n "$target_alias" &&
1499   test "$program_prefix$program_suffix$program_transform_name" = \
1500     NONENONEs,x,x, &&
1501   program_prefix=${target_alias}-
1502  case ${build_alias} in
1503   "") build_noncanonical=${build} ;;
1504   *) build_noncanonical=${build_alias} ;;
1505 esac
1506
1507  case ${host_alias} in
1508   "") host_noncanonical=${build_noncanonical} ;;
1509   *) host_noncanonical=${host_alias} ;;
1510 esac
1511
1512  case ${target_alias} in
1513   "") target_noncanonical=${host_noncanonical} ;;
1514   *) target_noncanonical=${target_alias} ;;
1515 esac
1516
1517
1518
1519
1520 # This works around the fact that libtool configuration may change LD
1521 # for this particular configuration, but some shells, instead of
1522 # keeping the changes in LD private, export them just because LD is
1523 # exported.
1524 ORIGINAL_LD_FOR_MULTILIBS=$LD
1525
1526 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1527 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1528 LN_S=$as_ln_s
1529 if test "$LN_S" = "ln -s"; then
1530   echo "$as_me:$LINENO: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1532 else
1533   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1534 echo "${ECHO_T}no, using $LN_S" >&6
1535 fi
1536
1537
1538 # This works around an automake problem.
1539 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1540
1541
1542
1543 # Check whether --with-cross-host or --without-cross-host was given.
1544 if test "${with_cross_host+set}" = set; then
1545   withval="$with_cross_host"
1546
1547 fi;
1548
1549
1550 # Check whether --with-newlib or --without-newlib was given.
1551 if test "${with_newlib+set}" = set; then
1552   withval="$with_newlib"
1553
1554 fi;
1555
1556 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1557 if test "${enable_version_specific_runtime_libs+set}" = set; then
1558   enableval="$enable_version_specific_runtime_libs"
1559   case "$enableval" in
1560       yes) version_specific_libs=yes ;;
1561       no)  version_specific_libs=no ;;
1562       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1563 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1564    { (exit 1); exit 1; }; };;
1565      esac
1566 else
1567   version_specific_libs=no
1568
1569 fi;
1570
1571 # Default to --enable-multilib
1572 # Check whether --enable-multilib or --disable-multilib was given.
1573 if test "${enable_multilib+set}" = set; then
1574   enableval="$enable_multilib"
1575   case "${enableval}" in
1576   yes) multilib=yes ;;
1577   no)  multilib=no ;;
1578   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1579 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1580    { (exit 1); exit 1; }; } ;;
1581  esac
1582 else
1583   multilib=yes
1584 fi;
1585 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1586
1587
1588 # (1) We use an abnormal CXX (without library references), so we
1589 # must cache it under a different name.
1590 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1591 # the non-multilib-adjusted value will be used in multilibs.
1592 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1593 # (4) As another side effect, automake doesn't automatically include them
1594 # in Makefile.in.
1595 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1596 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1597 # used in later tests.  This may not be necessary in libjava; I don't know.
1598
1599
1600
1601 save_CXXFLAGS="$CXXFLAGS"
1602 CXXFLAGS="$CXXFLAGS -fno-builtin"
1603 ac_ext=c
1604 ac_cpp='$CPP $CPPFLAGS'
1605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1608 if test -n "$ac_tool_prefix"; then
1609   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   if test -n "$CC"; then
1617   ac_cv_prog_CC="$CC" # Let the user override the test.
1618 else
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 for as_dir in $PATH
1621 do
1622   IFS=$as_save_IFS
1623   test -z "$as_dir" && as_dir=.
1624   for ac_exec_ext in '' $ac_executable_extensions; do
1625   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628     break 2
1629   fi
1630 done
1631 done
1632
1633 fi
1634 fi
1635 CC=$ac_cv_prog_CC
1636 if test -n "$CC"; then
1637   echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1639 else
1640   echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1642 fi
1643
1644 fi
1645 if test -z "$ac_cv_prog_CC"; then
1646   ac_ct_CC=$CC
1647   # Extract the first word of "gcc", so it can be a program name with args.
1648 set dummy gcc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652   echo $ECHO_N "(cached) $ECHO_C" >&6
1653 else
1654   if test -n "$ac_ct_CC"; then
1655   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656 else
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660   IFS=$as_save_IFS
1661   test -z "$as_dir" && as_dir=.
1662   for ac_exec_ext in '' $ac_executable_extensions; do
1663   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664     ac_cv_prog_ac_ct_CC="gcc"
1665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666     break 2
1667   fi
1668 done
1669 done
1670
1671 fi
1672 fi
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1677 else
1678   echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1680 fi
1681
1682   CC=$ac_ct_CC
1683 else
1684   CC="$ac_cv_prog_CC"
1685 fi
1686
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1690 set dummy ${ac_tool_prefix}cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   if test -n "$CC"; then
1697   ac_cv_prog_CC="$CC" # Let the user override the test.
1698 else
1699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 for as_dir in $PATH
1701 do
1702   IFS=$as_save_IFS
1703   test -z "$as_dir" && as_dir=.
1704   for ac_exec_ext in '' $ac_executable_extensions; do
1705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706     ac_cv_prog_CC="${ac_tool_prefix}cc"
1707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708     break 2
1709   fi
1710 done
1711 done
1712
1713 fi
1714 fi
1715 CC=$ac_cv_prog_CC
1716 if test -n "$CC"; then
1717   echo "$as_me:$LINENO: result: $CC" >&5
1718 echo "${ECHO_T}$CC" >&6
1719 else
1720   echo "$as_me:$LINENO: result: no" >&5
1721 echo "${ECHO_T}no" >&6
1722 fi
1723
1724 fi
1725 if test -z "$ac_cv_prog_CC"; then
1726   ac_ct_CC=$CC
1727   # Extract the first word of "cc", so it can be a program name with args.
1728 set dummy cc; ac_word=$2
1729 echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1732   echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734   if test -n "$ac_ct_CC"; then
1735   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1736 else
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 for as_dir in $PATH
1739 do
1740   IFS=$as_save_IFS
1741   test -z "$as_dir" && as_dir=.
1742   for ac_exec_ext in '' $ac_executable_extensions; do
1743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1744     ac_cv_prog_ac_ct_CC="cc"
1745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1746     break 2
1747   fi
1748 done
1749 done
1750
1751 fi
1752 fi
1753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1754 if test -n "$ac_ct_CC"; then
1755   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1756 echo "${ECHO_T}$ac_ct_CC" >&6
1757 else
1758   echo "$as_me:$LINENO: result: no" >&5
1759 echo "${ECHO_T}no" >&6
1760 fi
1761
1762   CC=$ac_ct_CC
1763 else
1764   CC="$ac_cv_prog_CC"
1765 fi
1766
1767 fi
1768 if test -z "$CC"; then
1769   # Extract the first word of "cc", so it can be a program name with args.
1770 set dummy cc; ac_word=$2
1771 echo "$as_me:$LINENO: checking for $ac_word" >&5
1772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773 if test "${ac_cv_prog_CC+set}" = set; then
1774   echo $ECHO_N "(cached) $ECHO_C" >&6
1775 else
1776   if test -n "$CC"; then
1777   ac_cv_prog_CC="$CC" # Let the user override the test.
1778 else
1779   ac_prog_rejected=no
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1782 do
1783   IFS=$as_save_IFS
1784   test -z "$as_dir" && as_dir=.
1785   for ac_exec_ext in '' $ac_executable_extensions; do
1786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1788        ac_prog_rejected=yes
1789        continue
1790      fi
1791     ac_cv_prog_CC="cc"
1792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1793     break 2
1794   fi
1795 done
1796 done
1797
1798 if test $ac_prog_rejected = yes; then
1799   # We found a bogon in the path, so make sure we never use it.
1800   set dummy $ac_cv_prog_CC
1801   shift
1802   if test $# != 0; then
1803     # We chose a different compiler from the bogus one.
1804     # However, it has the same basename, so the bogon will be chosen
1805     # first if we set CC to just the basename; use the full file name.
1806     shift
1807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1808   fi
1809 fi
1810 fi
1811 fi
1812 CC=$ac_cv_prog_CC
1813 if test -n "$CC"; then
1814   echo "$as_me:$LINENO: result: $CC" >&5
1815 echo "${ECHO_T}$CC" >&6
1816 else
1817   echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1819 fi
1820
1821 fi
1822 if test -z "$CC"; then
1823   if test -n "$ac_tool_prefix"; then
1824   for ac_prog in cl
1825   do
1826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1827 set dummy $ac_tool_prefix$ac_prog; 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_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$CC"; then
1834   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$ac_prog"
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 CC=$ac_cv_prog_CC
1853 if test -n "$CC"; then
1854   echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861     test -n "$CC" && break
1862   done
1863 fi
1864 if test -z "$CC"; then
1865   ac_ct_CC=$CC
1866   for ac_prog in cl
1867 do
1868   # Extract the first word of "$ac_prog", so it can be a program name with args.
1869 set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$ac_ct_CC"; then
1876   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_ac_ct_CC="$ac_prog"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1891
1892 fi
1893 fi
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1902
1903   test -n "$ac_ct_CC" && break
1904 done
1905
1906   CC=$ac_ct_CC
1907 fi
1908
1909 fi
1910
1911
1912 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&2;}
1916    { (exit 1); exit 1; }; }
1917
1918 # Provide some information about the compiler.
1919 echo "$as_me:$LINENO:" \
1920      "checking for C compiler version" >&5
1921 ac_compiler=`set X $ac_compile; echo $2`
1922 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1923   (eval $ac_compiler --version </dev/null >&5) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }
1927 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1928   (eval $ac_compiler -v </dev/null >&5) 2>&5
1929   ac_status=$?
1930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931   (exit $ac_status); }
1932 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1933   (eval $ac_compiler -V </dev/null >&5) 2>&5
1934   ac_status=$?
1935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936   (exit $ac_status); }
1937
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h.  */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h.  */
1944
1945 int
1946 main ()
1947 {
1948
1949   ;
1950   return 0;
1951 }
1952 _ACEOF
1953 # FIXME: Cleanup?
1954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1955   (eval $ac_link) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }; then
1959   gcc_no_link=no
1960 else
1961   gcc_no_link=yes
1962 fi
1963
1964 if test x$gcc_no_link = xyes; then
1965   # Setting cross_compile will disable run tests; it will
1966   # also disable AC_CHECK_FILE but that's generally
1967   # correct if we can't link.
1968   cross_compiling=yes
1969   EXEEXT=
1970 else
1971   cat >conftest.$ac_ext <<_ACEOF
1972 /* confdefs.h.  */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h.  */
1977
1978 int
1979 main ()
1980 {
1981
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 ac_clean_files_save=$ac_clean_files
1987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1988 # Try to create an executable without -o first, disregard a.out.
1989 # It will help us diagnose broken compilers, and finding out an intuition
1990 # of exeext.
1991 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1994 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1995   (eval $ac_link_default) 2>&5
1996   ac_status=$?
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); }; then
1999   # Find the output, starting from the most likely.  This scheme is
2000 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2001 # resort.
2002
2003 # Be careful to initialize this variable, since it used to be cached.
2004 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2005 ac_cv_exeext=
2006 # b.out is created by i960 compilers.
2007 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2008 do
2009   test -f "$ac_file" || continue
2010   case $ac_file in
2011     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2012         ;;
2013     conftest.$ac_ext )
2014         # This is the source file.
2015         ;;
2016     [ab].out )
2017         # We found the default executable, but exeext='' is most
2018         # certainly right.
2019         break;;
2020     *.* )
2021         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2022         # FIXME: I believe we export ac_cv_exeext for Libtool,
2023         # but it would be cool to find out if it's true.  Does anybody
2024         # maintain Libtool? --akim.
2025         export ac_cv_exeext
2026         break;;
2027     * )
2028         break;;
2029   esac
2030 done
2031 else
2032   echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2036 See \`config.log' for more details." >&5
2037 echo "$as_me: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&2;}
2039    { (exit 77); exit 77; }; }
2040 fi
2041
2042 ac_exeext=$ac_cv_exeext
2043 echo "$as_me:$LINENO: result: $ac_file" >&5
2044 echo "${ECHO_T}$ac_file" >&6
2045
2046 # Check the compiler produces executables we can run.  If not, either
2047 # the compiler is broken, or we cross compile.
2048 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2049 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2050 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2051 # If not cross compiling, check that we can run a simple program.
2052 if test "$cross_compiling" != yes; then
2053   if { ac_try='./$ac_file'
2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; }; then
2059     cross_compiling=no
2060   else
2061     if test "$cross_compiling" = maybe; then
2062         cross_compiling=yes
2063     else
2064         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2065 If you meant to cross compile, use \`--host'.
2066 See \`config.log' for more details." >&5
2067 echo "$as_me: error: cannot run C compiled programs.
2068 If you meant to cross compile, use \`--host'.
2069 See \`config.log' for more details." >&2;}
2070    { (exit 1); exit 1; }; }
2071     fi
2072   fi
2073 fi
2074 echo "$as_me:$LINENO: result: yes" >&5
2075 echo "${ECHO_T}yes" >&6
2076
2077 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2078 ac_clean_files=$ac_clean_files_save
2079 # Check the compiler produces executables we can run.  If not, either
2080 # the compiler is broken, or we cross compile.
2081 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2082 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2083 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2084 echo "${ECHO_T}$cross_compiling" >&6
2085
2086 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2087 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2089   (eval $ac_link) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; then
2093   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2094 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2095 # work properly (i.e., refer to `conftest.exe'), while it won't with
2096 # `rm'.
2097 for ac_file in conftest.exe conftest conftest.*; do
2098   test -f "$ac_file" || continue
2099   case $ac_file in
2100     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2101     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2102           export ac_cv_exeext
2103           break;;
2104     * ) break;;
2105   esac
2106 done
2107 else
2108   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2109 See \`config.log' for more details." >&5
2110 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&2;}
2112    { (exit 1); exit 1; }; }
2113 fi
2114
2115 rm -f conftest$ac_cv_exeext
2116 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2117 echo "${ECHO_T}$ac_cv_exeext" >&6
2118
2119 rm -f conftest.$ac_ext
2120 EXEEXT=$ac_cv_exeext
2121 ac_exeext=$EXEEXT
2122 fi
2123 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2124 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2125 if test "${ac_cv_objext+set}" = set; then
2126   echo $ECHO_N "(cached) $ECHO_C" >&6
2127 else
2128   cat >conftest.$ac_ext <<_ACEOF
2129 /* confdefs.h.  */
2130 _ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h.  */
2134
2135 int
2136 main ()
2137 {
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 rm -f conftest.o conftest.obj
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145   (eval $ac_compile) 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2150   case $ac_file in
2151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2152     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2153        break;;
2154   esac
2155 done
2156 else
2157   echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2161 See \`config.log' for more details." >&5
2162 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&2;}
2164    { (exit 1); exit 1; }; }
2165 fi
2166
2167 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2168 fi
2169 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2170 echo "${ECHO_T}$ac_cv_objext" >&6
2171 OBJEXT=$ac_cv_objext
2172 ac_objext=$OBJEXT
2173 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2174 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2175 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   cat >conftest.$ac_ext <<_ACEOF
2179 /* confdefs.h.  */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h.  */
2184
2185 int
2186 main ()
2187 {
2188 #ifndef __GNUC__
2189        choke me
2190 #endif
2191
2192   ;
2193   return 0;
2194 }
2195 _ACEOF
2196 rm -f conftest.$ac_objext
2197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2198   (eval $ac_compile) 2>conftest.er1
2199   ac_status=$?
2200   grep -v '^ *+' conftest.er1 >conftest.err
2201   rm -f conftest.er1
2202   cat conftest.err >&5
2203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2204   (exit $ac_status); } &&
2205          { ac_try='test -z "$ac_c_werror_flag"
2206                          || test ! -s conftest.err'
2207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208   (eval $ac_try) 2>&5
2209   ac_status=$?
2210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211   (exit $ac_status); }; } &&
2212          { ac_try='test -s conftest.$ac_objext'
2213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214   (eval $ac_try) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; }; then
2218   ac_compiler_gnu=yes
2219 else
2220   echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 ac_compiler_gnu=no
2224 fi
2225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2227
2228 fi
2229 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2230 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2231 GCC=`test $ac_compiler_gnu = yes && echo yes`
2232 ac_test_CFLAGS=${CFLAGS+set}
2233 ac_save_CFLAGS=$CFLAGS
2234 CFLAGS="-g"
2235 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2236 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2237 if test "${ac_cv_prog_cc_g+set}" = set; then
2238   echo $ECHO_N "(cached) $ECHO_C" >&6
2239 else
2240   cat >conftest.$ac_ext <<_ACEOF
2241 /* confdefs.h.  */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h.  */
2246
2247 int
2248 main ()
2249 {
2250
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 rm -f conftest.$ac_objext
2256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257   (eval $ac_compile) 2>conftest.er1
2258   ac_status=$?
2259   grep -v '^ *+' conftest.er1 >conftest.err
2260   rm -f conftest.er1
2261   cat conftest.err >&5
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -z "$ac_c_werror_flag"
2265                          || test ! -s conftest.err'
2266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267   (eval $ac_try) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); }; } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   ac_cv_prog_cc_g=yes
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 ac_cv_prog_cc_g=no
2283 fi
2284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2285 fi
2286 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2287 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2288 if test "$ac_test_CFLAGS" = set; then
2289   CFLAGS=$ac_save_CFLAGS
2290 elif test $ac_cv_prog_cc_g = yes; then
2291   if test "$GCC" = yes; then
2292     CFLAGS="-g -O2"
2293   else
2294     CFLAGS="-g"
2295   fi
2296 else
2297   if test "$GCC" = yes; then
2298     CFLAGS="-O2"
2299   else
2300     CFLAGS=
2301   fi
2302 fi
2303 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2304 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   ac_cv_prog_cc_stdc=no
2309 ac_save_CC=$CC
2310 cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h.  */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h.  */
2316 #include <stdarg.h>
2317 #include <stdio.h>
2318 #include <sys/types.h>
2319 #include <sys/stat.h>
2320 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2321 struct buf { int x; };
2322 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2323 static char *e (p, i)
2324      char **p;
2325      int i;
2326 {
2327   return p[i];
2328 }
2329 static char *f (char * (*g) (char **, int), char **p, ...)
2330 {
2331   char *s;
2332   va_list v;
2333   va_start (v,p);
2334   s = g (p, va_arg (v,int));
2335   va_end (v);
2336   return s;
2337 }
2338
2339 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2340    function prototypes and stuff, but not '\xHH' hex character constants.
2341    These don't provoke an error unfortunately, instead are silently treated
2342    as 'x'.  The following induces an error, until -std1 is added to get
2343    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2344    array size at least.  It's necessary to write '\x00'==0 to get something
2345    that's true only with -std1.  */
2346 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2347
2348 int test (int i, double x);
2349 struct s1 {int (*f) (int a);};
2350 struct s2 {int (*f) (double a);};
2351 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2352 int argc;
2353 char **argv;
2354 int
2355 main ()
2356 {
2357 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 # Don't try gcc -ansi; that turns off useful extensions and
2363 # breaks some systems' header files.
2364 # AIX                   -qlanglvl=ansi
2365 # Ultrix and OSF/1      -std1
2366 # HP-UX 10.20 and later -Ae
2367 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2368 # SVR4                  -Xc -D__EXTENSIONS__
2369 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2370 do
2371   CC="$ac_save_CC $ac_arg"
2372   rm -f conftest.$ac_objext
2373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374   (eval $ac_compile) 2>conftest.er1
2375   ac_status=$?
2376   grep -v '^ *+' conftest.er1 >conftest.err
2377   rm -f conftest.er1
2378   cat conftest.err >&5
2379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380   (exit $ac_status); } &&
2381          { ac_try='test -z "$ac_c_werror_flag"
2382                          || test ! -s conftest.err'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; } &&
2388          { ac_try='test -s conftest.$ac_objext'
2389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390   (eval $ac_try) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }; }; then
2394   ac_cv_prog_cc_stdc=$ac_arg
2395 break
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 fi
2401 rm -f conftest.err conftest.$ac_objext
2402 done
2403 rm -f conftest.$ac_ext conftest.$ac_objext
2404 CC=$ac_save_CC
2405
2406 fi
2407
2408 case "x$ac_cv_prog_cc_stdc" in
2409   x|xno)
2410     echo "$as_me:$LINENO: result: none needed" >&5
2411 echo "${ECHO_T}none needed" >&6 ;;
2412   *)
2413     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2414 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2415     CC="$CC $ac_cv_prog_cc_stdc" ;;
2416 esac
2417
2418 # Some people use a C++ compiler to compile C.  Since we use `exit',
2419 # in C++ we need to declare it.  In case someone uses the same compiler
2420 # for both compiling C and C++ we need to have the C++ compiler decide
2421 # the declaration of exit, since it's the most demanding environment.
2422 cat >conftest.$ac_ext <<_ACEOF
2423 #ifndef __cplusplus
2424   choke me
2425 #endif
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>conftest.er1
2430   ac_status=$?
2431   grep -v '^ *+' conftest.er1 >conftest.err
2432   rm -f conftest.er1
2433   cat conftest.err >&5
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); } &&
2436          { ac_try='test -z "$ac_c_werror_flag"
2437                          || test ! -s conftest.err'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; } &&
2443          { ac_try='test -s conftest.$ac_objext'
2444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445   (eval $ac_try) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; }; then
2449   for ac_declaration in \
2450    '' \
2451    'extern "C" void std::exit (int) throw (); using std::exit;' \
2452    'extern "C" void std::exit (int); using std::exit;' \
2453    'extern "C" void exit (int) throw ();' \
2454    'extern "C" void exit (int);' \
2455    'void exit (int);'
2456 do
2457   cat >conftest.$ac_ext <<_ACEOF
2458 /* confdefs.h.  */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h.  */
2463 $ac_declaration
2464 #include <stdlib.h>
2465 int
2466 main ()
2467 {
2468 exit (42);
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>conftest.er1
2476   ac_status=$?
2477   grep -v '^ *+' conftest.er1 >conftest.err
2478   rm -f conftest.er1
2479   cat conftest.err >&5
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); } &&
2482          { ac_try='test -z "$ac_c_werror_flag"
2483                          || test ! -s conftest.err'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; } &&
2489          { ac_try='test -s conftest.$ac_objext'
2490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491   (eval $ac_try) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; }; then
2495   :
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 continue
2501 fi
2502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509 $ac_declaration
2510 int
2511 main ()
2512 {
2513 exit (42);
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520   (eval $ac_compile) 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -z "$ac_c_werror_flag"
2528                          || test ! -s conftest.err'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; } &&
2534          { ac_try='test -s conftest.$ac_objext'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   break
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 fi
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 done
2548 rm -f conftest*
2549 if test -n "$ac_declaration"; then
2550   echo '#ifdef __cplusplus' >>confdefs.h
2551   echo $ac_declaration      >>confdefs.h
2552   echo '#endif'             >>confdefs.h
2553 fi
2554
2555 else
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 fi
2560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567 ac_ext=cc
2568 ac_cpp='$CXXCPP $CPPFLAGS'
2569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2572 if test -n "$ac_tool_prefix"; then
2573   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2574   do
2575     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2577 echo "$as_me:$LINENO: checking for $ac_word" >&5
2578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2579 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   if test -n "$CXX"; then
2583   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590   for ac_exec_ext in '' $ac_executable_extensions; do
2591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597 done
2598
2599 fi
2600 fi
2601 CXX=$glibcxx_cv_prog_CXX
2602 if test -n "$CXX"; then
2603   echo "$as_me:$LINENO: result: $CXX" >&5
2604 echo "${ECHO_T}$CXX" >&6
2605 else
2606   echo "$as_me:$LINENO: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2608 fi
2609
2610     test -n "$CXX" && break
2611   done
2612 fi
2613 if test -z "$CXX"; then
2614   ac_ct_CXX=$CXX
2615   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2616 do
2617   # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2621 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   if test -n "$ac_ct_CXX"; then
2625   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632   for ac_exec_ext in '' $ac_executable_extensions; do
2633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2634     ac_cv_prog_ac_ct_CXX="$ac_prog"
2635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639 done
2640
2641 fi
2642 fi
2643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2644 if test -n "$ac_ct_CXX"; then
2645   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2646 echo "${ECHO_T}$ac_ct_CXX" >&6
2647 else
2648   echo "$as_me:$LINENO: result: no" >&5
2649 echo "${ECHO_T}no" >&6
2650 fi
2651
2652   test -n "$ac_ct_CXX" && break
2653 done
2654 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2655
2656   CXX=$ac_ct_CXX
2657 fi
2658
2659
2660 # Provide some information about the compiler.
2661 echo "$as_me:$LINENO:" \
2662      "checking for C++ compiler version" >&5
2663 ac_compiler=`set X $ac_compile; echo $2`
2664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2665   (eval $ac_compiler --version </dev/null >&5) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }
2669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2670   (eval $ac_compiler -v </dev/null >&5) 2>&5
2671   ac_status=$?
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); }
2674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2675   (eval $ac_compiler -V </dev/null >&5) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }
2679
2680 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695 #ifndef __GNUC__
2696        choke me
2697 #endif
2698
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705   (eval $ac_compile) 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } &&
2712          { ac_try='test -z "$ac_cxx_werror_flag"
2713                          || test ! -s conftest.err'
2714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; } &&
2719          { ac_try='test -s conftest.$ac_objext'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; }; then
2725   ac_compiler_gnu=yes
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 ac_compiler_gnu=no
2731 fi
2732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2734
2735 fi
2736 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2737 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2738 GXX=`test $ac_compiler_gnu = yes && echo yes`
2739 ac_test_CXXFLAGS=${CXXFLAGS+set}
2740 ac_save_CXXFLAGS=$CXXFLAGS
2741 CXXFLAGS="-g"
2742 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2743 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2744 if test "${ac_cv_prog_cxx_g+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h.  */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h.  */
2753
2754 int
2755 main ()
2756 {
2757
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 rm -f conftest.$ac_objext
2763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764   (eval $ac_compile) 2>conftest.er1
2765   ac_status=$?
2766   grep -v '^ *+' conftest.er1 >conftest.err
2767   rm -f conftest.er1
2768   cat conftest.err >&5
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); } &&
2771          { ac_try='test -z "$ac_cxx_werror_flag"
2772                          || test ! -s conftest.err'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; } &&
2778          { ac_try='test -s conftest.$ac_objext'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; }; then
2784   ac_cv_prog_cxx_g=yes
2785 else
2786   echo "$as_me: failed program was:" >&5
2787 sed 's/^/| /' conftest.$ac_ext >&5
2788
2789 ac_cv_prog_cxx_g=no
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 fi
2793 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2795 if test "$ac_test_CXXFLAGS" = set; then
2796   CXXFLAGS=$ac_save_CXXFLAGS
2797 elif test $ac_cv_prog_cxx_g = yes; then
2798   if test "$GXX" = yes; then
2799     CXXFLAGS="-g -O2"
2800   else
2801     CXXFLAGS="-g"
2802   fi
2803 else
2804   if test "$GXX" = yes; then
2805     CXXFLAGS="-O2"
2806   else
2807     CXXFLAGS=
2808   fi
2809 fi
2810 for ac_declaration in \
2811    '' \
2812    'extern "C" void std::exit (int) throw (); using std::exit;' \
2813    'extern "C" void std::exit (int); using std::exit;' \
2814    'extern "C" void exit (int) throw ();' \
2815    'extern "C" void exit (int);' \
2816    'void exit (int);'
2817 do
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 $ac_declaration
2825 #include <stdlib.h>
2826 int
2827 main ()
2828 {
2829 exit (42);
2830   ;
2831   return 0;
2832 }
2833 _ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2836   (eval $ac_compile) 2>conftest.er1
2837   ac_status=$?
2838   grep -v '^ *+' conftest.er1 >conftest.err
2839   rm -f conftest.er1
2840   cat conftest.err >&5
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); } &&
2843          { ac_try='test -z "$ac_cxx_werror_flag"
2844                          || test ! -s conftest.err'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; } &&
2850          { ac_try='test -s conftest.$ac_objext'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856   :
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 continue
2862 fi
2863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2864   cat >conftest.$ac_ext <<_ACEOF
2865 /* confdefs.h.  */
2866 _ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h.  */
2870 $ac_declaration
2871 int
2872 main ()
2873 {
2874 exit (42);
2875   ;
2876   return 0;
2877 }
2878 _ACEOF
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881   (eval $ac_compile) 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } &&
2888          { ac_try='test -z "$ac_cxx_werror_flag"
2889                          || test ! -s conftest.err'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; } &&
2895          { ac_try='test -s conftest.$ac_objext'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; }; then
2901   break
2902 else
2903   echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2905
2906 fi
2907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2908 done
2909 rm -f conftest*
2910 if test -n "$ac_declaration"; then
2911   echo '#ifdef __cplusplus' >>confdefs.h
2912   echo $ac_declaration      >>confdefs.h
2913   echo '#endif'             >>confdefs.h
2914 fi
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921
2922 CXXFLAGS="$save_CXXFLAGS"
2923
2924
2925
2926
2927
2928 am__api_version="1.9"
2929 # Find a good install program.  We prefer a C program (faster),
2930 # so one script is as good as another.  But avoid the broken or
2931 # incompatible versions:
2932 # SysV /etc/install, /usr/sbin/install
2933 # SunOS /usr/etc/install
2934 # IRIX /sbin/install
2935 # AIX /bin/install
2936 # AmigaOS /C/install, which installs bootblocks on floppy discs
2937 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2940 # OS/2's system install, which has a completely different semantic
2941 # ./install, which can be erroneously created by make from ./install.sh.
2942 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2943 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2944 if test -z "$INSTALL"; then
2945 if test "${ac_cv_path_install+set}" = set; then
2946   echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   # Account for people who put trailing slashes in PATH elements.
2954 case $as_dir/ in
2955   ./ | .// | /cC/* | \
2956   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2957   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2958   /usr/ucb/* ) ;;
2959   *)
2960     # OSF1 and SCO ODT 3.0 have their own names for install.
2961     # Don't use installbsd from OSF since it installs stuff as root
2962     # by default.
2963     for ac_prog in ginstall scoinst install; do
2964       for ac_exec_ext in '' $ac_executable_extensions; do
2965         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2966           if test $ac_prog = install &&
2967             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2968             # AIX install.  It has an incompatible calling convention.
2969             :
2970           elif test $ac_prog = install &&
2971             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972             # program-specific install script used by HP pwplus--don't use.
2973             :
2974           else
2975             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2976             break 3
2977           fi
2978         fi
2979       done
2980     done
2981     ;;
2982 esac
2983 done
2984
2985
2986 fi
2987   if test "${ac_cv_path_install+set}" = set; then
2988     INSTALL=$ac_cv_path_install
2989   else
2990     # As a last resort, use the slow shell script.  We don't cache a
2991     # path for INSTALL within a source directory, because that will
2992     # break other packages using the cache if that directory is
2993     # removed, or if the path is relative.
2994     INSTALL=$ac_install_sh
2995   fi
2996 fi
2997 echo "$as_me:$LINENO: result: $INSTALL" >&5
2998 echo "${ECHO_T}$INSTALL" >&6
2999
3000 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3001 # It thinks the first close brace ends the variable substitution.
3002 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3003
3004 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3005
3006 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3007
3008 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3009 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3010 # Just in case
3011 sleep 1
3012 echo timestamp > conftest.file
3013 # Do `set' in a subshell so we don't clobber the current shell's
3014 # arguments.  Must try -L first in case configure is actually a
3015 # symlink; some systems play weird games with the mod time of symlinks
3016 # (eg FreeBSD returns the mod time of the symlink's containing
3017 # directory).
3018 if (
3019    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3020    if test "$*" = "X"; then
3021       # -L didn't work.
3022       set X `ls -t $srcdir/configure conftest.file`
3023    fi
3024    rm -f conftest.file
3025    if test "$*" != "X $srcdir/configure conftest.file" \
3026       && test "$*" != "X conftest.file $srcdir/configure"; then
3027
3028       # If neither matched, then we have a broken ls.  This can happen
3029       # if, for instance, CONFIG_SHELL is bash and it inherits a
3030       # broken ls alias from the environment.  This has actually
3031       # happened.  Such a system could not be considered "sane".
3032       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3033 alias in your environment" >&5
3034 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3035 alias in your environment" >&2;}
3036    { (exit 1); exit 1; }; }
3037    fi
3038
3039    test "$2" = conftest.file
3040    )
3041 then
3042    # Ok.
3043    :
3044 else
3045    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3046 Check your system clock" >&5
3047 echo "$as_me: error: newly created file is older than distributed files!
3048 Check your system clock" >&2;}
3049    { (exit 1); exit 1; }; }
3050 fi
3051 echo "$as_me:$LINENO: result: yes" >&5
3052 echo "${ECHO_T}yes" >&6
3053 test "$program_prefix" != NONE &&
3054   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3055 # Use a double $ so make ignores it.
3056 test "$program_suffix" != NONE &&
3057   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3058 # Double any \ or $.  echo might interpret backslashes.
3059 # By default was `s,x,x', remove it if useless.
3060 cat <<\_ACEOF >conftest.sed
3061 s/[\\$]/&&/g;s/;s,x,x,$//
3062 _ACEOF
3063 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3064 rm conftest.sed
3065
3066 # expand $ac_aux_dir to an absolute path
3067 am_aux_dir=`cd $ac_aux_dir && pwd`
3068
3069 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3070 # Use eval to expand $SHELL
3071 if eval "$MISSING --run true"; then
3072   am_missing_run="$MISSING --run "
3073 else
3074   am_missing_run=
3075   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3076 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3077 fi
3078
3079 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3080   # We used to keeping the `.' as first argument, in order to
3081   # allow $(mkdir_p) to be used without argument.  As in
3082   #   $(mkdir_p) $(somedir)
3083   # where $(somedir) is conditionally defined.  However this is wrong
3084   # for two reasons:
3085   #  1. if the package is installed by a user who cannot write `.'
3086   #     make install will fail,
3087   #  2. the above comment should most certainly read
3088   #     $(mkdir_p) $(DESTDIR)$(somedir)
3089   #     so it does not work when $(somedir) is undefined and
3090   #     $(DESTDIR) is not.
3091   #  To support the latter case, we have to write
3092   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3093   #  so the `.' trick is pointless.
3094   mkdir_p='mkdir -p --'
3095 else
3096   # On NextStep and OpenStep, the `mkdir' command does not
3097   # recognize any option.  It will interpret all options as
3098   # directories to create, and then abort because `.' already
3099   # exists.
3100   for d in ./-p ./--version;
3101   do
3102     test -d $d && rmdir $d
3103   done
3104   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3105   if test -f "$ac_aux_dir/mkinstalldirs"; then
3106     mkdir_p='$(mkinstalldirs)'
3107   else
3108     mkdir_p='$(install_sh) -d'
3109   fi
3110 fi
3111
3112 for ac_prog in gawk mawk nawk awk
3113 do
3114   # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 echo "$as_me:$LINENO: checking for $ac_word" >&5
3117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118 if test "${ac_cv_prog_AWK+set}" = set; then
3119   echo $ECHO_N "(cached) $ECHO_C" >&6
3120 else
3121   if test -n "$AWK"; then
3122   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129   for ac_exec_ext in '' $ac_executable_extensions; do
3130   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131     ac_cv_prog_AWK="$ac_prog"
3132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136 done
3137
3138 fi
3139 fi
3140 AWK=$ac_cv_prog_AWK
3141 if test -n "$AWK"; then
3142   echo "$as_me:$LINENO: result: $AWK" >&5
3143 echo "${ECHO_T}$AWK" >&6
3144 else
3145   echo "$as_me:$LINENO: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3147 fi
3148
3149   test -n "$AWK" && break
3150 done
3151
3152 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3153 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3154 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3155 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   cat >conftest.make <<\_ACEOF
3159 all:
3160         @echo 'ac_maketemp="$(MAKE)"'
3161 _ACEOF
3162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3163 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3164 if test -n "$ac_maketemp"; then
3165   eval ac_cv_prog_make_${ac_make}_set=yes
3166 else
3167   eval ac_cv_prog_make_${ac_make}_set=no
3168 fi
3169 rm -f conftest.make
3170 fi
3171 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3172   echo "$as_me:$LINENO: result: yes" >&5
3173 echo "${ECHO_T}yes" >&6
3174   SET_MAKE=
3175 else
3176   echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178   SET_MAKE="MAKE=${MAKE-make}"
3179 fi
3180
3181 rm -rf .tst 2>/dev/null
3182 mkdir .tst 2>/dev/null
3183 if test -d .tst; then
3184   am__leading_dot=.
3185 else
3186   am__leading_dot=_
3187 fi
3188 rmdir .tst 2>/dev/null
3189
3190 DEPDIR="${am__leading_dot}deps"
3191
3192           ac_config_commands="$ac_config_commands depfiles"
3193
3194
3195 am_make=${MAKE-make}
3196 cat > confinc << 'END'
3197 am__doit:
3198         @echo done
3199 .PHONY: am__doit
3200 END
3201 # If we don't find an include directive, just comment out the code.
3202 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3203 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3204 am__include="#"
3205 am__quote=
3206 _am_result=none
3207 # First try GNU make style include.
3208 echo "include confinc" > confmf
3209 # We grep out `Entering directory' and `Leaving directory'
3210 # messages which can occur if `w' ends up in MAKEFLAGS.
3211 # In particular we don't look at `^make:' because GNU make might
3212 # be invoked under some other name (usually "gmake"), in which
3213 # case it prints its new name instead of `make'.
3214 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3215    am__include=include
3216    am__quote=
3217    _am_result=GNU
3218 fi
3219 # Now try BSD make style include.
3220 if test "$am__include" = "#"; then
3221    echo '.include "confinc"' > confmf
3222    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3223       am__include=.include
3224       am__quote="\""
3225       _am_result=BSD
3226    fi
3227 fi
3228
3229
3230 echo "$as_me:$LINENO: result: $_am_result" >&5
3231 echo "${ECHO_T}$_am_result" >&6
3232 rm -f confinc confmf
3233
3234 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3235 if test "${enable_dependency_tracking+set}" = set; then
3236   enableval="$enable_dependency_tracking"
3237
3238 fi;
3239 if test "x$enable_dependency_tracking" != xno; then
3240   am_depcomp="$ac_aux_dir/depcomp"
3241   AMDEPBACKSLASH='\'
3242 fi
3243
3244
3245 if test "x$enable_dependency_tracking" != xno; then
3246   AMDEP_TRUE=
3247   AMDEP_FALSE='#'
3248 else
3249   AMDEP_TRUE='#'
3250   AMDEP_FALSE=
3251 fi
3252
3253
3254
3255 # test to see if srcdir already configured
3256 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3257    test -f $srcdir/config.status; then
3258   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3259 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3260    { (exit 1); exit 1; }; }
3261 fi
3262
3263 # test whether we have cygpath
3264 if test -z "$CYGPATH_W"; then
3265   if (cygpath --version) >/dev/null 2>/dev/null; then
3266     CYGPATH_W='cygpath -w'
3267   else
3268     CYGPATH_W=echo
3269   fi
3270 fi
3271
3272
3273 # Define the identity of the package.
3274  PACKAGE='libjava'
3275  VERSION='version-unused'
3276
3277
3278 cat >>confdefs.h <<_ACEOF
3279 #define PACKAGE "$PACKAGE"
3280 _ACEOF
3281
3282
3283 cat >>confdefs.h <<_ACEOF
3284 #define VERSION "$VERSION"
3285 _ACEOF
3286
3287 # Some tools Automake needs.
3288
3289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3290
3291
3292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3293
3294
3295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3296
3297
3298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3299
3300
3301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3302
3303 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3304
3305 # Installed binaries are usually stripped using `strip' when the user
3306 # run `make install-strip'.  However `strip' might not be the right
3307 # tool to use in cross-compilation environments, therefore Automake
3308 # will honor the `STRIP' environment variable to overrule this program.
3309 if test "$cross_compiling" != no; then
3310   if test -n "$ac_tool_prefix"; then
3311   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}strip; ac_word=$2
3313 echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315 if test "${ac_cv_prog_STRIP+set}" = set; then
3316   echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318   if test -n "$STRIP"; then
3319   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326   for ac_exec_ext in '' $ac_executable_extensions; do
3327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333 done
3334
3335 fi
3336 fi
3337 STRIP=$ac_cv_prog_STRIP
3338 if test -n "$STRIP"; then
3339   echo "$as_me:$LINENO: result: $STRIP" >&5
3340 echo "${ECHO_T}$STRIP" >&6
3341 else
3342   echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346 fi
3347 if test -z "$ac_cv_prog_STRIP"; then
3348   ac_ct_STRIP=$STRIP
3349   # Extract the first word of "strip", so it can be a program name with args.
3350 set dummy strip; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   if test -n "$ac_ct_STRIP"; then
3357   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364   for ac_exec_ext in '' $ac_executable_extensions; do
3365   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366     ac_cv_prog_ac_ct_STRIP="strip"
3367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371 done
3372
3373   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3374 fi
3375 fi
3376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3377 if test -n "$ac_ct_STRIP"; then
3378   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3379 echo "${ECHO_T}$ac_ct_STRIP" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385   STRIP=$ac_ct_STRIP
3386 else
3387   STRIP="$ac_cv_prog_STRIP"
3388 fi
3389
3390 fi
3391 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3392
3393 # We need awk for the "check" target.  The system "awk" is bad on
3394 # some platforms.
3395 # Always define AMTAR for backward compatibility.
3396
3397 AMTAR=${AMTAR-"${am_missing_run}tar"}
3398
3399 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3400
3401
3402
3403
3404 depcc="$CC"   am_compiler_list=
3405
3406 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3407 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3408 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3412   # We make a subdir and do the tests there.  Otherwise we can end up
3413   # making bogus files that we don't know about and never remove.  For
3414   # instance it was reported that on HP-UX the gcc test will end up
3415   # making a dummy file named `D' -- because `-MD' means `put the output
3416   # in D'.
3417   mkdir conftest.dir
3418   # Copy depcomp to subdir because otherwise we won't find it if we're
3419   # using a relative directory.
3420   cp "$am_depcomp" conftest.dir
3421   cd conftest.dir
3422   # We will build objects and dependencies in a subdirectory because
3423   # it helps to detect inapplicable dependency modes.  For instance
3424   # both Tru64's cc and ICC support -MD to output dependencies as a
3425   # side effect of compilation, but ICC will put the dependencies in
3426   # the current directory while Tru64 will put them in the object
3427   # directory.
3428   mkdir sub
3429
3430   am_cv_CC_dependencies_compiler_type=none
3431   if test "$am_compiler_list" = ""; then
3432      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3433   fi
3434   for depmode in $am_compiler_list; do
3435     # Setup a source with many dependencies, because some compilers
3436     # like to wrap large dependency lists on column 80 (with \), and
3437     # we should not choose a depcomp mode which is confused by this.
3438     #
3439     # We need to recreate these files for each test, as the compiler may
3440     # overwrite some of them when testing with obscure command lines.
3441     # This happens at least with the AIX C compiler.
3442     : > sub/conftest.c
3443     for i in 1 2 3 4 5 6; do
3444       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3445       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3446       # Solaris 8's {/usr,}/bin/sh.
3447       touch sub/conftst$i.h
3448     done
3449     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3450
3451     case $depmode in
3452     nosideeffect)
3453       # after this tag, mechanisms are not by side-effect, so they'll
3454       # only be used when explicitly requested
3455       if test "x$enable_dependency_tracking" = xyes; then
3456         continue
3457       else
3458         break
3459       fi
3460       ;;
3461     none) break ;;
3462     esac
3463     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3464     # mode.  It turns out that the SunPro C++ compiler does not properly
3465     # handle `-M -o', and we need to detect this.
3466     if depmode=$depmode \
3467        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3468        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3469        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3470          >/dev/null 2>conftest.err &&
3471        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3472        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3473        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3474       # icc doesn't choke on unknown options, it will just issue warnings
3475       # or remarks (even with -Werror).  So we grep stderr for any message
3476       # that says an option was ignored or not supported.
3477       # When given -MP, icc 7.0 and 7.1 complain thusly:
3478       #   icc: Command line warning: ignoring option '-M'; no argument required
3479       # The diagnosis changed in icc 8.0:
3480       #   icc: Command line remark: option '-MP' not supported
3481       if (grep 'ignoring option' conftest.err ||
3482           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3483         am_cv_CC_dependencies_compiler_type=$depmode
3484         break
3485       fi
3486     fi
3487   done
3488
3489   cd ..
3490   rm -rf conftest.dir
3491 else
3492   am_cv_CC_dependencies_compiler_type=none
3493 fi
3494
3495 fi
3496 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3497 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3499
3500
3501
3502 if
3503   test "x$enable_dependency_tracking" != xno \
3504   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3505   am__fastdepCC_TRUE=
3506   am__fastdepCC_FALSE='#'
3507 else
3508   am__fastdepCC_TRUE='#'
3509   am__fastdepCC_FALSE=
3510 fi
3511
3512
3513 depcc="$CXX"  am_compiler_list=
3514
3515 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3516 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3517 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3518   echo $ECHO_N "(cached) $ECHO_C" >&6
3519 else
3520   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3521   # We make a subdir and do the tests there.  Otherwise we can end up
3522   # making bogus files that we don't know about and never remove.  For
3523   # instance it was reported that on HP-UX the gcc test will end up
3524   # making a dummy file named `D' -- because `-MD' means `put the output
3525   # in D'.
3526   mkdir conftest.dir
3527   # Copy depcomp to subdir because otherwise we won't find it if we're
3528   # using a relative directory.
3529   cp "$am_depcomp" conftest.dir
3530   cd conftest.dir
3531   # We will build objects and dependencies in a subdirectory because
3532   # it helps to detect inapplicable dependency modes.  For instance
3533   # both Tru64's cc and ICC support -MD to output dependencies as a
3534   # side effect of compilation, but ICC will put the dependencies in
3535   # the current directory while Tru64 will put them in the object
3536   # directory.
3537   mkdir sub
3538
3539   am_cv_CXX_dependencies_compiler_type=none
3540   if test "$am_compiler_list" = ""; then
3541      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3542   fi
3543   for depmode in $am_compiler_list; do
3544     # Setup a source with many dependencies, because some compilers
3545     # like to wrap large dependency lists on column 80 (with \), and
3546     # we should not choose a depcomp mode which is confused by this.
3547     #
3548     # We need to recreate these files for each test, as the compiler may
3549     # overwrite some of them when testing with obscure command lines.
3550     # This happens at least with the AIX C compiler.
3551     : > sub/conftest.c
3552     for i in 1 2 3 4 5 6; do
3553       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3554       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3555       # Solaris 8's {/usr,}/bin/sh.
3556       touch sub/conftst$i.h
3557     done
3558     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3559
3560     case $depmode in
3561     nosideeffect)
3562       # after this tag, mechanisms are not by side-effect, so they'll
3563       # only be used when explicitly requested
3564       if test "x$enable_dependency_tracking" = xyes; then
3565         continue
3566       else
3567         break
3568       fi
3569       ;;
3570     none) break ;;
3571     esac
3572     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3573     # mode.  It turns out that the SunPro C++ compiler does not properly
3574     # handle `-M -o', and we need to detect this.
3575     if depmode=$depmode \
3576        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3577        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3578        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3579          >/dev/null 2>conftest.err &&
3580        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3581        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3582        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3583       # icc doesn't choke on unknown options, it will just issue warnings
3584       # or remarks (even with -Werror).  So we grep stderr for any message
3585       # that says an option was ignored or not supported.
3586       # When given -MP, icc 7.0 and 7.1 complain thusly:
3587       #   icc: Command line warning: ignoring option '-M'; no argument required
3588       # The diagnosis changed in icc 8.0:
3589       #   icc: Command line remark: option '-MP' not supported
3590       if (grep 'ignoring option' conftest.err ||
3591           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3592         am_cv_CXX_dependencies_compiler_type=$depmode
3593         break
3594       fi
3595     fi
3596   done
3597
3598   cd ..
3599   rm -rf conftest.dir
3600 else
3601   am_cv_CXX_dependencies_compiler_type=none
3602 fi
3603
3604 fi
3605 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3606 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3607 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3608
3609
3610
3611 if
3612   test "x$enable_dependency_tracking" != xno \
3613   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3614   am__fastdepCXX_TRUE=
3615   am__fastdepCXX_FALSE='#'
3616 else
3617   am__fastdepCXX_TRUE='#'
3618   am__fastdepCXX_FALSE=
3619 fi
3620
3621
3622
3623
3624 if test -n "$ac_tool_prefix"; then
3625   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3626 set dummy ${ac_tool_prefix}as; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_prog_AS+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   if test -n "$AS"; then
3633   ac_cv_prog_AS="$AS" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642     ac_cv_prog_AS="${ac_tool_prefix}as"
3643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647 done
3648
3649 fi
3650 fi
3651 AS=$ac_cv_prog_AS
3652 if test -n "$AS"; then
3653   echo "$as_me:$LINENO: result: $AS" >&5
3654 echo "${ECHO_T}$AS" >&6
3655 else
3656   echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6
3658 fi
3659
3660 fi
3661 if test -z "$ac_cv_prog_AS"; then
3662   ac_ct_AS=$AS
3663   # Extract the first word of "as", so it can be a program name with args.
3664 set dummy as; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   if test -n "$ac_ct_AS"; then
3671   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3672 else
3673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 for as_dir in $PATH
3675 do
3676   IFS=$as_save_IFS
3677   test -z "$as_dir" && as_dir=.
3678   for ac_exec_ext in '' $ac_executable_extensions; do
3679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3680     ac_cv_prog_ac_ct_AS="as"
3681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3682     break 2
3683   fi
3684 done
3685 done
3686
3687 fi
3688 fi
3689 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3690 if test -n "$ac_ct_AS"; then
3691   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3692 echo "${ECHO_T}$ac_ct_AS" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698   AS=$ac_ct_AS
3699 else
3700   AS="$ac_cv_prog_AS"
3701 fi
3702
3703 if test -n "$ac_tool_prefix"; then
3704   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3705 set dummy ${ac_tool_prefix}ar; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_prog_AR+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   if test -n "$AR"; then
3712   ac_cv_prog_AR="$AR" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   test -z "$as_dir" && as_dir=.
3719   for ac_exec_ext in '' $ac_executable_extensions; do
3720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721     ac_cv_prog_AR="${ac_tool_prefix}ar"
3722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3723     break 2
3724   fi
3725 done
3726 done
3727
3728 fi
3729 fi
3730 AR=$ac_cv_prog_AR
3731 if test -n "$AR"; then
3732   echo "$as_me:$LINENO: result: $AR" >&5
3733 echo "${ECHO_T}$AR" >&6
3734 else
3735   echo "$as_me:$LINENO: result: no" >&5
3736 echo "${ECHO_T}no" >&6
3737 fi
3738
3739 fi
3740 if test -z "$ac_cv_prog_AR"; then
3741   ac_ct_AR=$AR
3742   # Extract the first word of "ar", so it can be a program name with args.
3743 set dummy ar; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if test -n "$ac_ct_AR"; then
3750   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     ac_cv_prog_ac_ct_AR="ar"
3760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764 done
3765
3766 fi
3767 fi
3768 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3769 if test -n "$ac_ct_AR"; then
3770   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3771 echo "${ECHO_T}$ac_ct_AR" >&6
3772 else
3773   echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777   AR=$ac_ct_AR
3778 else
3779   AR="$ac_cv_prog_AR"
3780 fi
3781
3782 if test -n "$ac_tool_prefix"; then
3783   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_prog_RANLIB+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   if test -n "$RANLIB"; then
3791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798   for ac_exec_ext in '' $ac_executable_extensions; do
3799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802     break 2
3803   fi
3804 done
3805 done
3806
3807 fi
3808 fi
3809 RANLIB=$ac_cv_prog_RANLIB
3810 if test -n "$RANLIB"; then
3811   echo "$as_me:$LINENO: result: $RANLIB" >&5
3812 echo "${ECHO_T}$RANLIB" >&6
3813 else
3814   echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3816 fi
3817
3818 fi
3819 if test -z "$ac_cv_prog_RANLIB"; then
3820   ac_ct_RANLIB=$RANLIB
3821   # Extract the first word of "ranlib", so it can be a program name with args.
3822 set dummy ranlib; ac_word=$2
3823 echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3826   echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828   if test -n "$ac_ct_RANLIB"; then
3829   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   for ac_exec_ext in '' $ac_executable_extensions; do
3837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3838     ac_cv_prog_ac_ct_RANLIB="ranlib"
3839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840     break 2
3841   fi
3842 done
3843 done
3844
3845   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3846 fi
3847 fi
3848 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3849 if test -n "$ac_ct_RANLIB"; then
3850   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3851 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3852 else
3853   echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3855 fi
3856
3857   RANLIB=$ac_ct_RANLIB
3858 else
3859   RANLIB="$ac_cv_prog_RANLIB"
3860 fi
3861
3862
3863 # Find a good install program.  We prefer a C program (faster),
3864 # so one script is as good as another.  But avoid the broken or
3865 # incompatible versions:
3866 # SysV /etc/install, /usr/sbin/install
3867 # SunOS /usr/etc/install
3868 # IRIX /sbin/install
3869 # AIX /bin/install
3870 # AmigaOS /C/install, which installs bootblocks on floppy discs
3871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3874 # OS/2's system install, which has a completely different semantic
3875 # ./install, which can be erroneously created by make from ./install.sh.
3876 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3877 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3878 if test -z "$INSTALL"; then
3879 if test "${ac_cv_path_install+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   # Account for people who put trailing slashes in PATH elements.
3888 case $as_dir/ in
3889   ./ | .// | /cC/* | \
3890   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3891   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3892   /usr/ucb/* ) ;;
3893   *)
3894     # OSF1 and SCO ODT 3.0 have their own names for install.
3895     # Don't use installbsd from OSF since it installs stuff as root
3896     # by default.
3897     for ac_prog in ginstall scoinst install; do
3898       for ac_exec_ext in '' $ac_executable_extensions; do
3899         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3900           if test $ac_prog = install &&
3901             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3902             # AIX install.  It has an incompatible calling convention.
3903             :
3904           elif test $ac_prog = install &&
3905             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3906             # program-specific install script used by HP pwplus--don't use.
3907             :
3908           else
3909             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3910             break 3
3911           fi
3912         fi
3913       done
3914     done
3915     ;;
3916 esac
3917 done
3918
3919
3920 fi
3921   if test "${ac_cv_path_install+set}" = set; then
3922     INSTALL=$ac_cv_path_install
3923   else
3924     # As a last resort, use the slow shell script.  We don't cache a
3925     # path for INSTALL within a source directory, because that will
3926     # break other packages using the cache if that directory is
3927     # removed, or if the path is relative.
3928     INSTALL=$ac_install_sh
3929   fi
3930 fi
3931 echo "$as_me:$LINENO: result: $INSTALL" >&5
3932 echo "${ECHO_T}$INSTALL" >&6
3933
3934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3935 # It thinks the first close brace ends the variable substitution.
3936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3937
3938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3939
3940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3941
3942
3943 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3944 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3945     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3946 if test "${enable_maintainer_mode+set}" = set; then
3947   enableval="$enable_maintainer_mode"
3948   USE_MAINTAINER_MODE=$enableval
3949 else
3950   USE_MAINTAINER_MODE=no
3951 fi;
3952   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3953 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3954
3955
3956 if test $USE_MAINTAINER_MODE = yes; then
3957   MAINTAINER_MODE_TRUE=
3958   MAINTAINER_MODE_FALSE='#'
3959 else
3960   MAINTAINER_MODE_TRUE='#'
3961   MAINTAINER_MODE_FALSE=
3962 fi
3963
3964   MAINT=$MAINTAINER_MODE_TRUE
3965
3966
3967
3968
3969
3970 # configure.host sets the following important variables
3971 #       libgcj_cflags    - host specific C compiler flags
3972 #       libgcj_cxxflags  - host specific C++ compiler flags
3973 #       libgcj_javaflags - host specific Java compiler flags
3974
3975 libgcj_cflags=
3976 libgcj_cxxflags=
3977 libgcj_javaflags=
3978
3979 . ${srcdir}/configure.host
3980
3981 LIBGCJ_CFLAGS="${libgcj_cflags}"
3982 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3983 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3984
3985
3986
3987
3988                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3989
3990
3991 # Only use libltdl for non-newlib builds.
3992 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3993      case $enable_ltdl_convenience in
3994   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3995 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3996    { (exit 1); exit 1; }; } ;;
3997   "") enable_ltdl_convenience=yes
3998       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3999   esac
4000   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4001   INCLTDL='-I${top_srcdir}/''libltdl'
4002
4003
4004    DIRLTDL=libltdl
4005
4006 cat >>confdefs.h <<\_ACEOF
4007 #define USE_LTDL 1
4008 _ACEOF
4009
4010    # Sigh.  Libtool's macro doesn't do the right thing.
4011    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4012    # FIXME: this is a hack.
4013    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4014    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4015 fi
4016
4017
4018
4019 # Check whether --enable-shared or --disable-shared was given.
4020 if test "${enable_shared+set}" = set; then
4021   enableval="$enable_shared"
4022   p=${PACKAGE-default}
4023 case $enableval in
4024 yes) enable_shared=yes ;;
4025 no) enable_shared=no ;;
4026 *)
4027   enable_shared=no
4028   # Look at the argument we got.  We use all the common list separators.
4029   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4030   for pkg in $enableval; do
4031     if test "X$pkg" = "X$p"; then
4032       enable_shared=yes
4033     fi
4034   done
4035   IFS="$ac_save_ifs"
4036   ;;
4037 esac
4038 else
4039   enable_shared=yes
4040 fi;
4041 # Check whether --enable-static or --disable-static was given.
4042 if test "${enable_static+set}" = set; then
4043   enableval="$enable_static"
4044   p=${PACKAGE-default}
4045 case $enableval in
4046 yes) enable_static=yes ;;
4047 no) enable_static=no ;;
4048 *)
4049   enable_static=no
4050   # Look at the argument we got.  We use all the common list separators.
4051   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4052   for pkg in $enableval; do
4053     if test "X$pkg" = "X$p"; then
4054       enable_static=yes
4055     fi
4056   done
4057   IFS="$ac_save_ifs"
4058   ;;
4059 esac
4060 else
4061   enable_static=yes
4062 fi;
4063 # Check whether --enable-fast-install or --disable-fast-install was given.
4064 if test "${enable_fast_install+set}" = set; then
4065   enableval="$enable_fast_install"
4066   p=${PACKAGE-default}
4067 case $enableval in
4068 yes) enable_fast_install=yes ;;
4069 no) enable_fast_install=no ;;
4070 *)
4071   enable_fast_install=no
4072   # Look at the argument we got.  We use all the common list separators.
4073   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4074   for pkg in $enableval; do
4075     if test "X$pkg" = "X$p"; then
4076       enable_fast_install=yes
4077     fi
4078   done
4079   IFS="$ac_save_ifs"
4080   ;;
4081 esac
4082 else
4083   enable_fast_install=yes
4084 fi;
4085
4086 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4087 if test "${with_gnu_ld+set}" = set; then
4088   withval="$with_gnu_ld"
4089   test "$withval" = no || with_gnu_ld=yes
4090 else
4091   with_gnu_ld=no
4092 fi;
4093 ac_prog=ld
4094 if test "$GCC" = yes; then
4095   # Check if gcc -print-prog-name=ld gives a path.
4096   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4097 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4098   case $host in
4099   *-*-mingw*)
4100     # gcc leaves a trailing carriage return which upsets mingw
4101     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4102   *)
4103     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4104   esac
4105   case $ac_prog in
4106     # Accept absolute paths.
4107     [\\/]* | [A-Za-z]:[\\/]*)
4108       re_direlt='/[^/][^/]*/\.\./'
4109       # Canonicalize the path of ld
4110       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4111       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4112         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4113       done
4114       test -z "$LD" && LD="$ac_prog"
4115       ;;
4116   "")
4117     # If it fails, then pretend we aren't using GCC.
4118     ac_prog=ld
4119     ;;
4120   *)
4121     # If it is relative, then search for the first ld in PATH.
4122     with_gnu_ld=unknown
4123     ;;
4124   esac
4125 elif test "$with_gnu_ld" = yes; then
4126   echo "$as_me:$LINENO: checking for GNU ld" >&5
4127 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4128 else
4129   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4130 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4131 fi
4132 if test "${lt_cv_path_LD+set}" = set; then
4133   echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135   if test -z "$LD"; then
4136   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4137   for ac_dir in $PATH; do
4138     test -z "$ac_dir" && ac_dir=.
4139     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4140       lt_cv_path_LD="$ac_dir/$ac_prog"
4141       # Check to see if the program is GNU ld.  I'd rather use --version,
4142       # but apparently some GNU ld's only accept -v.
4143       # Break only if it was the GNU/non-GNU ld that we prefer.
4144       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4145         test "$with_gnu_ld" != no && break
4146       else
4147         test "$with_gnu_ld" != yes && break
4148       fi
4149     fi
4150   done
4151   IFS="$ac_save_ifs"
4152 else
4153   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4154 fi
4155 fi
4156
4157 LD="$lt_cv_path_LD"
4158 if test -n "$LD"; then
4159   echo "$as_me:$LINENO: result: $LD" >&5
4160 echo "${ECHO_T}$LD" >&6
4161 else
4162   echo "$as_me:$LINENO: result: no" >&5
4163 echo "${ECHO_T}no" >&6
4164 fi
4165 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4166 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4167    { (exit 1); exit 1; }; }
4168 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4169 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4170 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4171   echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4174 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4175   lt_cv_prog_gnu_ld=yes
4176 else
4177   lt_cv_prog_gnu_ld=no
4178 fi
4179 fi
4180 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4181 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4182 with_gnu_ld=$lt_cv_prog_gnu_ld
4183
4184
4185 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4187 if test "${lt_cv_ld_reload_flag+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   lt_cv_ld_reload_flag='-r'
4191 fi
4192 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4194 reload_flag=$lt_cv_ld_reload_flag
4195 test -n "$reload_flag" && reload_flag=" $reload_flag"
4196
4197 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4198 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4199 if test "${lt_cv_path_NM+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   if test -n "$NM"; then
4203   # Let the user override the test.
4204   lt_cv_path_NM="$NM"
4205 else
4206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4207   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4208     test -z "$ac_dir" && ac_dir=.
4209     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4210     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4211       # Check to see if the nm accepts a BSD-compat flag.
4212       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4213       #   nm: unknown option "B" ignored
4214       # Tru64's nm complains that /dev/null is an invalid object file
4215       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4216         lt_cv_path_NM="$tmp_nm -B"
4217         break
4218       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4219         lt_cv_path_NM="$tmp_nm -p"
4220         break
4221       else
4222         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4223         continue # so that we can try to find one that supports BSD flags
4224       fi
4225     fi
4226   done
4227   IFS="$ac_save_ifs"
4228   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4229 fi
4230 fi
4231
4232 NM="$lt_cv_path_NM"
4233 echo "$as_me:$LINENO: result: $NM" >&5
4234 echo "${ECHO_T}$NM" >&6
4235
4236 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4237 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4238 if test "${lt_cv_deplibs_check_method+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   lt_cv_file_magic_cmd='$MAGIC_CMD'
4242 lt_cv_file_magic_test_file=
4243 lt_cv_deplibs_check_method='unknown'
4244 # Need to set the preceding variable on all platforms that support
4245 # interlibrary dependencies.
4246 # 'none' -- dependencies not supported.
4247 # `unknown' -- same as none, but documents that we really don't know.
4248 # 'pass_all' -- all dependencies passed with no checks.
4249 # 'test_compile' -- check by making test program.
4250 # 'file_magic [regex]' -- check by looking for files in library path
4251 # which responds to the $file_magic_cmd with a given egrep regex.
4252 # If you have `file' or equivalent on your system and you're not sure
4253 # whether `pass_all' will *always* work, you probably want this one.
4254
4255 case $host_os in
4256 aix*)
4257   lt_cv_deplibs_check_method=pass_all
4258   ;;
4259
4260 beos*)
4261   lt_cv_deplibs_check_method=pass_all
4262   ;;
4263
4264 bsdi4*)
4265   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4266   lt_cv_file_magic_cmd='/usr/bin/file -L'
4267   lt_cv_file_magic_test_file=/shlib/libc.so
4268   ;;
4269
4270 cygwin* | mingw* |pw32*)
4271   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4272   lt_cv_file_magic_cmd='$OBJDUMP -f'
4273   ;;
4274
4275 darwin* | rhapsody*)
4276   # this will be overwritten by pass_all, but leave it in just in case
4277   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4278   lt_cv_file_magic_cmd='/usr/bin/file -L'
4279   case "$host_os" in
4280   rhapsody* | darwin1.012)
4281     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4282     ;;
4283   *) # Darwin 1.3 on
4284     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4285     ;;
4286   esac
4287   lt_cv_deplibs_check_method=pass_all
4288   ;;
4289
4290 freebsd* | kfreebsd*-gnu)
4291   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4292     case $host_cpu in
4293     i*86 )
4294       # Not sure whether the presence of OpenBSD here was a mistake.
4295       # Let's accept both of them until this is cleared up.
4296       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4297       lt_cv_file_magic_cmd=/usr/bin/file
4298       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4299       ;;
4300     esac
4301   else
4302     lt_cv_deplibs_check_method=pass_all
4303   fi
4304   ;;
4305
4306 gnu*)
4307   lt_cv_deplibs_check_method=pass_all
4308   ;;
4309
4310 hpux10.20*|hpux11*)
4311   case $host_cpu in
4312   hppa*)
4313     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4314     lt_cv_file_magic_cmd=/usr/bin/file
4315     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4316     ;;
4317   ia64*)
4318     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4319     lt_cv_file_magic_cmd=/usr/bin/file
4320     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4321     ;;
4322   esac
4323   ;;
4324
4325 irix5* | irix6*)
4326   case $host_os in
4327   irix5*)
4328     # this will be overridden with pass_all, but let us keep it just in case
4329     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4330     ;;
4331   *)
4332     case $LD in
4333     *-32|*"-32 ") libmagic=32-bit;;
4334     *-n32|*"-n32 ") libmagic=N32;;
4335     *-64|*"-64 ") libmagic=64-bit;;
4336     *) libmagic=never-match;;
4337     esac
4338     # this will be overridden with pass_all, but let us keep it just in case
4339     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4340     ;;
4341   esac
4342   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4343   lt_cv_deplibs_check_method=pass_all
4344   ;;
4345
4346 # This must be Linux ELF.
4347 linux-gnu*)
4348   case $host_cpu in
4349   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4350     lt_cv_deplibs_check_method=pass_all ;;
4351   *)
4352     # glibc up to 2.1.1 does not perform some relocations on ARM
4353     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4354   esac
4355   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4356   ;;
4357
4358 netbsd* | knetbsd*-gnu)
4359   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4360     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4361   else
4362     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4363   fi
4364   ;;
4365
4366 newsos6)
4367   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4368   lt_cv_file_magic_cmd=/usr/bin/file
4369   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4370   ;;
4371
4372 osf3* | osf4* | osf5*)
4373   # this will be overridden with pass_all, but let us keep it just in case
4374   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4375   lt_cv_file_magic_test_file=/shlib/libc.so
4376   lt_cv_deplibs_check_method=pass_all
4377   ;;
4378
4379 sco3.2v5*)
4380   lt_cv_deplibs_check_method=pass_all
4381   ;;
4382
4383 solaris*)
4384   lt_cv_deplibs_check_method=pass_all
4385   lt_cv_file_magic_test_file=/lib/libc.so
4386   ;;
4387
4388 sysv5uw[78]* | sysv4*uw2*)
4389   lt_cv_deplibs_check_method=pass_all
4390   ;;
4391
4392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4393   case $host_vendor in
4394   ncr)
4395     lt_cv_deplibs_check_method=pass_all
4396     ;;
4397   motorola)
4398     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]'
4399     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4400     ;;
4401   esac
4402   ;;
4403 esac
4404
4405 fi
4406 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4407 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4408 file_magic_cmd=$lt_cv_file_magic_cmd
4409 deplibs_check_method=$lt_cv_deplibs_check_method
4410
4411
4412
4413
4414 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4415
4416 # Only perform the check for file, if the check method requires it
4417 case $deplibs_check_method in
4418 file_magic*)
4419   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4420     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4421 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4422 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   case $MAGIC_CMD in
4426   /*)
4427   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4428   ;;
4429   ?:/*)
4430   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4431   ;;
4432   *)
4433   ac_save_MAGIC_CMD="$MAGIC_CMD"
4434   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4435   ac_dummy="/usr/bin:$PATH"
4436   for ac_dir in $ac_dummy; do
4437     test -z "$ac_dir" && ac_dir=.
4438     if test -f $ac_dir/${ac_tool_prefix}file; then
4439       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4440       if test -n "$file_magic_test_file"; then
4441         case $deplibs_check_method in
4442         "file_magic "*)
4443           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4444           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4445           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4446             egrep "$file_magic_regex" > /dev/null; then
4447             :
4448           else
4449             cat <<EOF 1>&2
4450
4451 *** Warning: the command libtool uses to detect shared libraries,
4452 *** $file_magic_cmd, produces output that libtool cannot recognize.
4453 *** The result is that libtool may fail to recognize shared libraries
4454 *** as such.  This will affect the creation of libtool libraries that
4455 *** depend on shared libraries, but programs linked with such libtool
4456 *** libraries will work regardless of this problem.  Nevertheless, you
4457 *** may want to report the problem to your system manager and/or to
4458 *** bug-libtool@gnu.org
4459
4460 EOF
4461           fi ;;
4462         esac
4463       fi
4464       break
4465     fi
4466   done
4467   IFS="$ac_save_ifs"
4468   MAGIC_CMD="$ac_save_MAGIC_CMD"
4469   ;;
4470 esac
4471 fi
4472
4473 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4474 if test -n "$MAGIC_CMD"; then
4475   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4476 echo "${ECHO_T}$MAGIC_CMD" >&6
4477 else
4478   echo "$as_me:$LINENO: result: no" >&5
4479 echo "${ECHO_T}no" >&6
4480 fi
4481
4482 if test -z "$lt_cv_path_MAGIC_CMD"; then
4483   if test -n "$ac_tool_prefix"; then
4484     echo "$as_me:$LINENO: checking for file" >&5
4485 echo $ECHO_N "checking for file... $ECHO_C" >&6
4486 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   case $MAGIC_CMD in
4490   /*)
4491   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4492   ;;
4493   ?:/*)
4494   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4495   ;;
4496   *)
4497   ac_save_MAGIC_CMD="$MAGIC_CMD"
4498   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4499   ac_dummy="/usr/bin:$PATH"
4500   for ac_dir in $ac_dummy; do
4501     test -z "$ac_dir" && ac_dir=.
4502     if test -f $ac_dir/file; then
4503       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4504       if test -n "$file_magic_test_file"; then
4505         case $deplibs_check_method in
4506         "file_magic "*)
4507           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4508           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4509           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4510             egrep "$file_magic_regex" > /dev/null; then
4511             :
4512           else
4513             cat <<EOF 1>&2
4514
4515 *** Warning: the command libtool uses to detect shared libraries,
4516 *** $file_magic_cmd, produces output that libtool cannot recognize.
4517 *** The result is that libtool may fail to recognize shared libraries
4518 *** as such.  This will affect the creation of libtool libraries that
4519 *** depend on shared libraries, but programs linked with such libtool
4520 *** libraries will work regardless of this problem.  Nevertheless, you
4521 *** may want to report the problem to your system manager and/or to
4522 *** bug-libtool@gnu.org
4523
4524 EOF
4525           fi ;;
4526         esac
4527       fi
4528       break
4529     fi
4530   done
4531   IFS="$ac_save_ifs"
4532   MAGIC_CMD="$ac_save_MAGIC_CMD"
4533   ;;
4534 esac
4535 fi
4536
4537 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4538 if test -n "$MAGIC_CMD"; then
4539   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4540 echo "${ECHO_T}$MAGIC_CMD" >&6
4541 else
4542   echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544 fi
4545
4546   else
4547     MAGIC_CMD=:
4548   fi
4549 fi
4550
4551   fi
4552   ;;
4553 esac
4554
4555 if test -n "$ac_tool_prefix"; then
4556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4558 echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560 if test "${ac_cv_prog_RANLIB+set}" = set; then
4561   echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563   if test -n "$RANLIB"; then
4564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569   IFS=$as_save_IFS
4570   test -z "$as_dir" && as_dir=.
4571   for ac_exec_ext in '' $ac_executable_extensions; do
4572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575     break 2
4576   fi
4577 done
4578 done
4579
4580 fi
4581 fi
4582 RANLIB=$ac_cv_prog_RANLIB
4583 if test -n "$RANLIB"; then
4584   echo "$as_me:$LINENO: result: $RANLIB" >&5
4585 echo "${ECHO_T}$RANLIB" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591 fi
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593   ac_ct_RANLIB=$RANLIB
4594   # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_RANLIB"; then
4602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611     ac_cv_prog_ac_ct_RANLIB="ranlib"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617
4618   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4619 fi
4620 fi
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4625 else
4626   echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630   RANLIB=$ac_ct_RANLIB
4631 else
4632   RANLIB="$ac_cv_prog_RANLIB"
4633 fi
4634
4635 if test -n "$ac_tool_prefix"; then
4636   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}strip; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_STRIP+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   if test -n "$STRIP"; then
4644   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660 fi
4661 fi
4662 STRIP=$ac_cv_prog_STRIP
4663 if test -n "$STRIP"; then
4664   echo "$as_me:$LINENO: result: $STRIP" >&5
4665 echo "${ECHO_T}$STRIP" >&6
4666 else
4667   echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4669 fi
4670
4671 fi
4672 if test -z "$ac_cv_prog_STRIP"; then
4673   ac_ct_STRIP=$STRIP
4674   # Extract the first word of "strip", so it can be a program name with args.
4675 set dummy strip; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test -n "$ac_ct_STRIP"; then
4682   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691     ac_cv_prog_ac_ct_STRIP="strip"
4692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696 done
4697
4698   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4699 fi
4700 fi
4701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4702 if test -n "$ac_ct_STRIP"; then
4703   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4704 echo "${ECHO_T}$ac_ct_STRIP" >&6
4705 else
4706   echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4708 fi
4709
4710   STRIP=$ac_ct_STRIP
4711 else
4712   STRIP="$ac_cv_prog_STRIP"
4713 fi
4714
4715
4716 # Check for any special flags to pass to ltconfig.
4717 libtool_flags="--cache-file=$cache_file"
4718 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4719 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4720 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4721 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4722 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4723
4724
4725 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4726 if test "${enable_libtool_lock+set}" = set; then
4727   enableval="$enable_libtool_lock"
4728
4729 fi;
4730 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4731 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4732
4733
4734 # Check whether --with-pic or --without-pic was given.
4735 if test "${with_pic+set}" = set; then
4736   withval="$with_pic"
4737   pic_mode="$withval"
4738 else
4739   pic_mode=default
4740 fi;
4741 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4742 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4743
4744 # Some flags need to be propagated to the compiler or linker for good
4745 # libtool support.
4746 case $host in
4747 *-*-irix6*)
4748   # Find out which ABI we are using.
4749   echo '#line 4749 "configure"' > conftest.$ac_ext
4750   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751   (eval $ac_compile) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; then
4755    if test "$lt_cv_prog_gnu_ld" = yes; then
4756     case `/usr/bin/file conftest.$ac_objext` in
4757     *32-bit*)
4758       LD="${LD-ld} -melf32bsmip"
4759       ;;
4760     *N32*)
4761       LD="${LD-ld} -melf32bmipn32"
4762       ;;
4763     *64-bit*)
4764       LD="${LD-ld} -melf64bmip"
4765       ;;
4766     esac
4767    else
4768     case `/usr/bin/file conftest.$ac_objext` in
4769     *32-bit*)
4770       LD="${LD-ld} -32"
4771       ;;
4772     *N32*)
4773       LD="${LD-ld} -n32"
4774       ;;
4775     *64-bit*)
4776       LD="${LD-ld} -64"
4777       ;;
4778     esac
4779    fi
4780   fi
4781   rm -rf conftest*
4782   ;;
4783
4784 ia64-*-hpux*)
4785   # Find out which ABI we are using.
4786   echo 'int i;' > conftest.$ac_ext
4787   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>&5
4789   ac_status=$?
4790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791   (exit $ac_status); }; then
4792     case "`/usr/bin/file conftest.o`" in
4793     *ELF-32*)
4794       HPUX_IA64_MODE="32"
4795       ;;
4796     *ELF-64*)
4797       HPUX_IA64_MODE="64"
4798       ;;
4799     esac
4800   fi
4801   rm -rf conftest*
4802   ;;
4803
4804 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4805   # Find out which ABI we are using.
4806   echo 'int i;' > conftest.$ac_ext
4807   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808   (eval $ac_compile) 2>&5
4809   ac_status=$?
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); }; then
4812     case "`/usr/bin/file conftest.o`" in
4813     *32-bit*)
4814       case $host in
4815         x86_64-*linux*)
4816           LD="${LD-ld} -m elf_i386"
4817           ;;
4818         ppc64-*linux*|powerpc64-*linux*)
4819           LD="${LD-ld} -m elf32ppclinux"
4820           ;;
4821         s390x-*linux*)
4822           LD="${LD-ld} -m elf_s390"
4823           ;;
4824         sparc64-*linux*)
4825           LD="${LD-ld} -m elf32_sparc"
4826           ;;
4827       esac
4828       ;;
4829     *64-bit*)
4830       case $host in
4831         x86_64-*linux*)
4832           LD="${LD-ld} -m elf_x86_64"
4833           ;;
4834         ppc*-*linux*|powerpc*-*linux*)
4835           LD="${LD-ld} -m elf64ppc"
4836           ;;
4837         s390*-*linux*)
4838           LD="${LD-ld} -m elf64_s390"
4839           ;;
4840         sparc*-*linux*)
4841           LD="${LD-ld} -m elf64_sparc"
4842           ;;
4843       esac
4844       ;;
4845     esac
4846   fi
4847   rm -rf conftest*
4848   ;;
4849
4850 *-*-sco3.2v5*)
4851   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4852   SAVE_CFLAGS="$CFLAGS"
4853   CFLAGS="$CFLAGS -belf"
4854   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4855 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4856 if test "${lt_cv_cc_needs_belf+set}" = set; then
4857   echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859
4860
4861      ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4866
4867      if test x$gcc_no_link = xyes; then
4868   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4870    { (exit 1); exit 1; }; }
4871 fi
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h.  */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h.  */
4878
4879 int
4880 main ()
4881 {
4882
4883   ;
4884   return 0;
4885 }
4886 _ACEOF
4887 rm -f conftest.$ac_objext conftest$ac_exeext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4889   (eval $ac_link) 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } &&
4896          { ac_try='test -z "$ac_c_werror_flag"
4897                          || test ! -s conftest.err'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; } &&
4903          { ac_try='test -s conftest$ac_exeext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   lt_cv_cc_needs_belf=yes
4910 else
4911   echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4913
4914 lt_cv_cc_needs_belf=no
4915 fi
4916 rm -f conftest.err conftest.$ac_objext \
4917       conftest$ac_exeext conftest.$ac_ext
4918      ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 fi
4925 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4926 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4927   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4928     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4929     CFLAGS="$SAVE_CFLAGS"
4930   fi
4931   ;;
4932
4933
4934 esac
4935
4936
4937 # Save cache, so that ltconfig can load it
4938 cat >confcache <<\_ACEOF
4939 # This file is a shell script that caches the results of configure
4940 # tests run on this system so they can be shared between configure
4941 # scripts and configure runs, see configure's option --config-cache.
4942 # It is not useful on other systems.  If it contains results you don't
4943 # want to keep, you may remove or edit it.
4944 #
4945 # config.status only pays attention to the cache file if you give it
4946 # the --recheck option to rerun configure.
4947 #
4948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4950 # following values.
4951
4952 _ACEOF
4953
4954 # The following way of writing the cache mishandles newlines in values,
4955 # but we know of no workaround that is simple, portable, and efficient.
4956 # So, don't put newlines in cache variables' values.
4957 # Ultrix sh set writes to stderr and can't be redirected directly,
4958 # and sets the high bit in the cache file unless we assign to the vars.
4959 {
4960   (set) 2>&1 |
4961     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4962     *ac_space=\ *)
4963       # `set' does not quote correctly, so add quotes (double-quote
4964       # substitution turns \\\\ into \\, and sed turns \\ into \).
4965       sed -n \
4966         "s/'/'\\\\''/g;
4967           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4968       ;;
4969     *)
4970       # `set' quotes correctly as required by POSIX, so do not add quotes.
4971       sed -n \
4972         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4973       ;;
4974     esac;
4975 } |
4976   sed '
4977      t clear
4978      : clear
4979      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4980      t end
4981      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4982      : end' >>confcache
4983 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4984   if test -w $cache_file; then
4985     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4986     cat confcache >$cache_file
4987   else
4988     echo "not updating unwritable cache $cache_file"
4989   fi
4990 fi
4991 rm -f confcache
4992
4993 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4994 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4995 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4996 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4997 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4998 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4999 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5000 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5001 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5002 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5003 echo "$as_me: error: libtool configure failed" >&2;}
5004    { (exit 1); exit 1; }; }
5005
5006 # Reload cache, that may have been modified by ltconfig
5007 if test -r "$cache_file"; then
5008   # Some versions of bash will fail to source /dev/null (special
5009   # files actually), so we avoid doing that.
5010   if test -f "$cache_file"; then
5011     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5012 echo "$as_me: loading cache $cache_file" >&6;}
5013     case $cache_file in
5014       [\\/]* | ?:[\\/]* ) . $cache_file;;
5015       *)                      . ./$cache_file;;
5016     esac
5017   fi
5018 else
5019   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5020 echo "$as_me: creating cache $cache_file" >&6;}
5021   >$cache_file
5022 fi
5023
5024
5025 # This can be used to rebuild libtool when needed
5026 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5027
5028 # Always use our own libtool.
5029 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5030
5031 # Redirect the config.log output again, so that the ltconfig log is not
5032 # clobbered by the next message.
5033 exec 5>>./config.log
5034
5035 ac_ext=cc
5036 ac_cpp='$CXXCPP $CPPFLAGS'
5037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5040 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5041 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5042 if test -z "$CXXCPP"; then
5043   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046       # Double quotes because CXXCPP needs to be expanded
5047     for CXXCPP in "$CXX -E" "/lib/cpp"
5048     do
5049       ac_preproc_ok=false
5050 for ac_cxx_preproc_warn_flag in '' yes
5051 do
5052   # Use a header file that comes with gcc, so configuring glibc
5053   # with a fresh cross-compiler works.
5054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055   # <limits.h> exists even on freestanding compilers.
5056   # On the NeXT, cc -E runs the code through the compiler's parser,
5057   # not just through cpp. "Syntax error" is here to catch this case.
5058   cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 #ifdef __STDC__
5065 # include <limits.h>
5066 #else
5067 # include <assert.h>
5068 #endif
5069                      Syntax error
5070 _ACEOF
5071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5073   ac_status=$?
5074   grep -v '^ *+' conftest.er1 >conftest.err
5075   rm -f conftest.er1
5076   cat conftest.err >&5
5077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078   (exit $ac_status); } >/dev/null; then
5079   if test -s conftest.err; then
5080     ac_cpp_err=$ac_cxx_preproc_warn_flag
5081     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5082   else
5083     ac_cpp_err=
5084   fi
5085 else
5086   ac_cpp_err=yes
5087 fi
5088 if test -z "$ac_cpp_err"; then
5089   :
5090 else
5091   echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094   # Broken: fails on valid input.
5095 continue
5096 fi
5097 rm -f conftest.err conftest.$ac_ext
5098
5099   # OK, works on sane cases.  Now check whether non-existent headers
5100   # can be detected and how.
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 #include <ac_nonexistent.h>
5108 _ACEOF
5109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111   ac_status=$?
5112   grep -v '^ *+' conftest.er1 >conftest.err
5113   rm -f conftest.er1
5114   cat conftest.err >&5
5115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116   (exit $ac_status); } >/dev/null; then
5117   if test -s conftest.err; then
5118     ac_cpp_err=$ac_cxx_preproc_warn_flag
5119     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5120   else
5121     ac_cpp_err=
5122   fi
5123 else
5124   ac_cpp_err=yes
5125 fi
5126 if test -z "$ac_cpp_err"; then
5127   # Broken: success on invalid input.
5128 continue
5129 else
5130   echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133   # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5136 fi
5137 rm -f conftest.err conftest.$ac_ext
5138
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then
5143   break
5144 fi
5145
5146     done
5147     ac_cv_prog_CXXCPP=$CXXCPP
5148
5149 fi
5150   CXXCPP=$ac_cv_prog_CXXCPP
5151 else
5152   ac_cv_prog_CXXCPP=$CXXCPP
5153 fi
5154 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5155 echo "${ECHO_T}$CXXCPP" >&6
5156 ac_preproc_ok=false
5157 for ac_cxx_preproc_warn_flag in '' yes
5158 do
5159   # Use a header file that comes with gcc, so configuring glibc
5160   # with a fresh cross-compiler works.
5161   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162   # <limits.h> exists even on freestanding compilers.
5163   # On the NeXT, cc -E runs the code through the compiler's parser,
5164   # not just through cpp. "Syntax error" is here to catch this case.
5165   cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h.  */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h.  */
5171 #ifdef __STDC__
5172 # include <limits.h>
5173 #else
5174 # include <assert.h>
5175 #endif
5176                      Syntax error
5177 _ACEOF
5178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5180   ac_status=$?
5181   grep -v '^ *+' conftest.er1 >conftest.err
5182   rm -f conftest.er1
5183   cat conftest.err >&5
5184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185   (exit $ac_status); } >/dev/null; then
5186   if test -s conftest.err; then
5187     ac_cpp_err=$ac_cxx_preproc_warn_flag
5188     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5189   else
5190     ac_cpp_err=
5191   fi
5192 else
5193   ac_cpp_err=yes
5194 fi
5195 if test -z "$ac_cpp_err"; then
5196   :
5197 else
5198   echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201   # Broken: fails on valid input.
5202 continue
5203 fi
5204 rm -f conftest.err conftest.$ac_ext
5205
5206   # OK, works on sane cases.  Now check whether non-existent headers
5207   # can be detected and how.
5208   cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214 #include <ac_nonexistent.h>
5215 _ACEOF
5216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5218   ac_status=$?
5219   grep -v '^ *+' conftest.er1 >conftest.err
5220   rm -f conftest.er1
5221   cat conftest.err >&5
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); } >/dev/null; then
5224   if test -s conftest.err; then
5225     ac_cpp_err=$ac_cxx_preproc_warn_flag
5226     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5227   else
5228     ac_cpp_err=
5229   fi
5230 else
5231   ac_cpp_err=yes
5232 fi
5233 if test -z "$ac_cpp_err"; then
5234   # Broken: success on invalid input.
5235 continue
5236 else
5237   echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240   # Passes both tests.
5241 ac_preproc_ok=:
5242 break
5243 fi
5244 rm -f conftest.err conftest.$ac_ext
5245
5246 done
5247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248 rm -f conftest.err conftest.$ac_ext
5249 if $ac_preproc_ok; then
5250   :
5251 else
5252   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5255 See \`config.log' for more details." >&2;}
5256    { (exit 1); exit 1; }; }
5257 fi
5258
5259 ac_ext=c
5260 ac_cpp='$CPP $CPPFLAGS'
5261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264
5265
5266
5267 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5268 lt_save_CC="$CC"
5269 lt_save_CFLAGS="$CFLAGS"
5270 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5271 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5272 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5273 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5274 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5275 deplibs_check_method="$deplibs_check_method" \
5276 file_magic_cmd="$file_magic_cmd" \
5277 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5278 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5279 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5280 echo "$as_me: error: libtool tag configuration failed" >&2;}
5281    { (exit 1); exit 1; }; }
5282 CC="$lt_save_CC"
5283 CFLAGS="$lt_save_CFLAGS"
5284
5285 # Redirect the config.log output again, so that the ltconfig log is not
5286 # clobbered by the next message.
5287 exec 5>>./config.log
5288
5289
5290
5291
5292
5293
5294
5295 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
5296 do
5297   # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_GCJ+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   if test -n "$GCJ"; then
5305   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_prog_GCJ="$ac_prog"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320
5321 fi
5322 fi
5323 GCJ=$ac_cv_prog_GCJ
5324 if test -n "$GCJ"; then
5325   echo "$as_me:$LINENO: result: $GCJ" >&5
5326 echo "${ECHO_T}$GCJ" >&6
5327 else
5328   echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330 fi
5331
5332   test -n "$GCJ" && break
5333 done
5334 test -n "$GCJ" || GCJ="gcj"
5335
5336 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5337 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5338    { (exit 1); exit 1; }; }
5339 if test "x${GCJFLAGS-unset}" = xunset; then
5340    GCJFLAGS="-g -O2"
5341 fi
5342
5343
5344 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5345
5346 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5347 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5348 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5352   # We make a subdir and do the tests there.  Otherwise we can end up
5353   # making bogus files that we don't know about and never remove.  For
5354   # instance it was reported that on HP-UX the gcc test will end up
5355   # making a dummy file named `D' -- because `-MD' means `put the output
5356   # in D'.
5357   mkdir conftest.dir
5358   # Copy depcomp to subdir because otherwise we won't find it if we're
5359   # using a relative directory.
5360   cp "$am_depcomp" conftest.dir
5361   cd conftest.dir
5362   # We will build objects and dependencies in a subdirectory because
5363   # it helps to detect inapplicable dependency modes.  For instance
5364   # both Tru64's cc and ICC support -MD to output dependencies as a
5365   # side effect of compilation, but ICC will put the dependencies in
5366   # the current directory while Tru64 will put them in the object
5367   # directory.
5368   mkdir sub
5369
5370   am_cv_GCJ_dependencies_compiler_type=none
5371   if test "$am_compiler_list" = ""; then
5372      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5373   fi
5374   for depmode in $am_compiler_list; do
5375     # Setup a source with many dependencies, because some compilers
5376     # like to wrap large dependency lists on column 80 (with \), and
5377     # we should not choose a depcomp mode which is confused by this.
5378     #
5379     # We need to recreate these files for each test, as the compiler may
5380     # overwrite some of them when testing with obscure command lines.
5381     # This happens at least with the AIX C compiler.
5382     : > sub/conftest.c
5383     for i in 1 2 3 4 5 6; do
5384       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5385       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5386       # Solaris 8's {/usr,}/bin/sh.
5387       touch sub/conftst$i.h
5388     done
5389     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5390
5391     case $depmode in
5392     nosideeffect)
5393       # after this tag, mechanisms are not by side-effect, so they'll
5394       # only be used when explicitly requested
5395       if test "x$enable_dependency_tracking" = xyes; then
5396         continue
5397       else
5398         break
5399       fi
5400       ;;
5401     none) break ;;
5402     esac
5403     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5404     # mode.  It turns out that the SunPro C++ compiler does not properly
5405     # handle `-M -o', and we need to detect this.
5406     if depmode=$depmode \
5407        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5408        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5409        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5410          >/dev/null 2>conftest.err &&
5411        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5412        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5413        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5414       # icc doesn't choke on unknown options, it will just issue warnings
5415       # or remarks (even with -Werror).  So we grep stderr for any message
5416       # that says an option was ignored or not supported.
5417       # When given -MP, icc 7.0 and 7.1 complain thusly:
5418       #   icc: Command line warning: ignoring option '-M'; no argument required
5419       # The diagnosis changed in icc 8.0:
5420       #   icc: Command line remark: option '-MP' not supported
5421       if (grep 'ignoring option' conftest.err ||
5422           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5423         am_cv_GCJ_dependencies_compiler_type=$depmode
5424         break
5425       fi
5426     fi
5427   done
5428
5429   cd ..
5430   rm -rf conftest.dir
5431 else
5432   am_cv_GCJ_dependencies_compiler_type=none
5433 fi
5434
5435 fi
5436 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5437 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5438 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5439
5440
5441
5442 if
5443   test "x$enable_dependency_tracking" != xno \
5444   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5445   am__fastdepGCJ_TRUE=
5446   am__fastdepGCJ_FALSE='#'
5447 else
5448   am__fastdepGCJ_TRUE='#'
5449   am__fastdepGCJ_FALSE=
5450 fi
5451
5452
5453
5454
5455 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5456 lt_save_CC="$CC"
5457 lt_save_CFLAGS="$CFLAGS"
5458 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5459 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5460 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5461 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5462 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5463 deplibs_check_method="$deplibs_check_method" \
5464 file_magic_cmd="$file_magic_cmd" \
5465 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5466 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5467 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5468 echo "$as_me: error: libtool tag configuration failed" >&2;}
5469    { (exit 1); exit 1; }; }
5470 CC="$lt_save_CC"
5471 CFLAGS="$lt_save_CFLAGS"
5472
5473 # Redirect the config.log output again, so that the ltconfig log is not
5474 # clobbered by the next message.
5475 exec 5>>./config.log
5476
5477
5478
5479 if test "x$CC" != xcc; then
5480   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5481 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5482 else
5483   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5484 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5485 fi
5486 set dummy $CC; ac_cc=`echo $2 |
5487                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5488 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   cat >conftest.$ac_ext <<_ACEOF
5492 /* confdefs.h.  */
5493 _ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h.  */
5497
5498 int
5499 main ()
5500 {
5501
5502   ;
5503   return 0;
5504 }
5505 _ACEOF
5506 # Make sure it works both with $CC and with simple cc.
5507 # We do the test twice because some compilers refuse to overwrite an
5508 # existing .o file with -o, though they will create one.
5509 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5510 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511   (eval $ac_try) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); } &&
5515    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516   (eval $ac_try) 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); };
5520 then
5521   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5522   if test "x$CC" != xcc; then
5523     # Test first that cc exists at all.
5524     if { ac_try='cc -c conftest.$ac_ext >&5'
5525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526   (eval $ac_try) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; }; then
5530       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5531       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532   (eval $ac_try) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); } &&
5536          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5537   (eval $ac_try) 2>&5
5538   ac_status=$?
5539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); };
5541       then
5542         # cc works too.
5543         :
5544       else
5545         # cc exists but doesn't like -o.
5546         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5547       fi
5548     fi
5549   fi
5550 else
5551   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5552 fi
5553 rm -f conftest*
5554
5555 fi
5556 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5557   echo "$as_me:$LINENO: result: yes" >&5
5558 echo "${ECHO_T}yes" >&6
5559 else
5560   echo "$as_me:$LINENO: result: no" >&5
5561 echo "${ECHO_T}no" >&6
5562
5563 cat >>confdefs.h <<\_ACEOF
5564 #define NO_MINUS_C_MINUS_O 1
5565 _ACEOF
5566
5567 fi
5568
5569 # FIXME: we rely on the cache variable name because
5570 # there is no other way.
5571 set dummy $CC
5572 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5573 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5574    # Losing compiler, so override with the script.
5575    # FIXME: It is wrong to rewrite CC.
5576    # But if we don't then we get into trouble of one sort or another.
5577    # A longer-term fix would be to have automake use am__CC in this case,
5578    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5579    CC="$am_aux_dir/compile $CC"
5580 fi
5581
5582
5583
5584 subdirs="$subdirs libltdl"
5585
5586
5587 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5588    COMPPATH=.
5589 else
5590    COMPPATH=..
5591 fi
5592
5593
5594 # The -no-testsuite modules omit the test subdir.
5595
5596
5597 if test -d $srcdir/testsuite; then
5598   TESTSUBDIR_TRUE=
5599   TESTSUBDIR_FALSE='#'
5600 else
5601   TESTSUBDIR_TRUE='#'
5602   TESTSUBDIR_FALSE=
5603 fi
5604
5605
5606 # Should the runtime set system properties by examining the
5607 # environment variable GCJ_PROPERTIES?
5608 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5609 if test "${enable_getenv_properties+set}" = set; then
5610   enableval="$enable_getenv_properties"
5611
5612 fi;
5613
5614 # Whether GCJ_PROPERTIES is used depends on the target.
5615 if test -z "$enable_getenv_properties"; then
5616    enable_getenv_properties=${enable_getenv_properties_default-yes}
5617 fi
5618 if test "$enable_getenv_properties" = no; then
5619
5620 cat >>confdefs.h <<\_ACEOF
5621 #define DISABLE_GETENV_PROPERTIES 1
5622 _ACEOF
5623
5624 fi
5625
5626 # Whether we should use arguments to main()
5627 if test -z "$enable_main_args"; then
5628    enable_main_args=${enable_main_args_default-yes}
5629 fi
5630 if test "$enable_main_args" = no; then
5631
5632 cat >>confdefs.h <<\_ACEOF
5633 #define DISABLE_MAIN_ARGS 1
5634 _ACEOF
5635
5636 fi
5637
5638
5639 # Should we use hashtable-based synchronization?
5640 # Currently works only for Linux X86/ia64
5641 # Typically faster and more space-efficient
5642 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5643 if test "${enable_hash_synchronization+set}" = set; then
5644   enableval="$enable_hash_synchronization"
5645
5646 fi;
5647
5648 if test -z "$enable_hash_synchronization"; then
5649    enable_hash_synchronization=$enable_hash_synchronization_default
5650 fi
5651
5652 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5653 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5654 if test "${enable_libgcj_multifile+set}" = set; then
5655   enableval="$enable_libgcj_multifile"
5656   case "${enableval}" in
5657   yes) enable_libgcj_multifile=yes ;;
5658   no)  enable_libgcj_multifile=no ;;
5659   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5660 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5661    { (exit 1); exit 1; }; } ;;
5662 esac
5663 else
5664   enable_libgcj_multifile=no
5665 fi;
5666
5667
5668 if test "$enable_libgcj_multifile" = yes; then
5669   ONESTEP_TRUE=
5670   ONESTEP_FALSE='#'
5671 else
5672   ONESTEP_TRUE='#'
5673   ONESTEP_FALSE=
5674 fi
5675
5676
5677 # What is the native OS API for MinGW?
5678
5679 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5680 if test "${with_win32_nlsapi+set}" = set; then
5681   withval="$with_win32_nlsapi"
5682   case "${withval}" in
5683   ansi) with_win32_nlsapi=ansi ;;
5684   unicows) with_win32_nlsapi=unicows ;;
5685   unicode) with_win32_nlsapi=unicode ;;
5686   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5687 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5688    { (exit 1); exit 1; }; } ;;
5689 esac
5690 else
5691   with_win32_nlsapi=ansi
5692 fi;
5693
5694 case "${with_win32_nlsapi}" in
5695   unicows | unicode)
5696
5697 cat >>confdefs.h <<\_ACEOF
5698 #define MINGW_LIBGCJ_UNICODE 1
5699 _ACEOF
5700
5701     ;;
5702 esac
5703
5704 # configure.host sets slow_pthread_self if the synchronization code should
5705 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5706 if test "${slow_pthread_self}" = "yes"; then
5707
5708 cat >>confdefs.h <<\_ACEOF
5709 #define SLOW_PTHREAD_SELF 1
5710 _ACEOF
5711
5712 fi
5713
5714
5715 # See if the user has requested runtime debugging.
5716 LIBGCJDEBUG="false"
5717
5718 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5719 if test "${enable_libgcj_debug+set}" = set; then
5720   enableval="$enable_libgcj_debug"
5721   if test "$enable_libgcj_debug" = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define DEBUG 1
5725 _ACEOF
5726
5727     LIBGCJDEBUG="true"
5728   fi
5729 fi;
5730
5731 # Check for gc debugging.  This option is handled both here and in the GC.
5732 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5733 if test "${enable_gc_debug+set}" = set; then
5734   enableval="$enable_gc_debug"
5735    if test "$enable_gc_debug" = "yes"; then
5736
5737 cat >>confdefs.h <<\_ACEOF
5738 #define LIBGCJ_GC_DEBUG 1
5739 _ACEOF
5740
5741   fi
5742 fi;
5743
5744 # See if the user has the interpreter included.
5745 # Check whether --enable-interpreter or --disable-interpreter was given.
5746 if test "${enable_interpreter+set}" = set; then
5747   enableval="$enable_interpreter"
5748   if test "$enable_interpreter" = yes; then
5749     # This can also be set in configure.host.
5750     libgcj_interpreter=yes
5751   elif test "$enable_interpreter" = no; then
5752     libgcj_interpreter=no
5753   fi
5754 fi;
5755
5756 if test "$libgcj_interpreter" = yes; then
5757
5758 cat >>confdefs.h <<\_ACEOF
5759 #define INTERPRETER 1
5760 _ACEOF
5761
5762 fi
5763 INTERPRETER="$libgcj_interpreter"
5764
5765
5766 echo "$as_me:$LINENO: checking for exception model to use" >&5
5767 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5768 ac_ext=cc
5769 ac_cpp='$CXXCPP $CPPFLAGS'
5770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5773
5774 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5775 if test "${enable_sjlj_exceptions+set}" = set; then
5776   enableval="$enable_sjlj_exceptions"
5777   :
5778 else
5779   cat > conftest.$ac_ext << EOF
5780 #line 5780 "configure"
5781 struct S { ~S(); };
5782 void bar();
5783 void foo()
5784 {
5785   S s;
5786   bar();
5787 }
5788 EOF
5789 old_CXXFLAGS="$CXXFLAGS"
5790 CXXFLAGS=-S
5791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5792   (eval $ac_compile) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; then
5796   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5797     enable_sjlj_exceptions=yes
5798   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5799     enable_sjlj_exceptions=no
5800   fi
5801 fi
5802 CXXFLAGS="$old_CXXFLAGS"
5803 rm -f conftest*
5804 fi;
5805 if test x$enable_sjlj_exceptions = xyes; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define SJLJ_EXCEPTIONS 1
5809 _ACEOF
5810
5811   ac_exception_model_name=sjlj
5812 elif test x$enable_sjlj_exceptions = xno; then
5813   ac_exception_model_name="call frame"
5814 else
5815   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5816 echo "$as_me: error: unable to detect exception model" >&2;}
5817    { (exit 1); exit 1; }; }
5818 fi
5819 ac_ext=c
5820 ac_cpp='$CPP $CPPFLAGS'
5821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824
5825 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5826 echo "${ECHO_T}$ac_exception_model_name" >&6
5827
5828 # If we are non using SJLJ exceptions, and this host does not have support
5829 # for unwinding from a signal handler, enable checked dereferences and divides.
5830 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5831   CHECKREFSPEC=-fcheck-references
5832   DIVIDESPEC=-fuse-divide-subroutine
5833   EXCEPTIONSPEC=
5834 fi
5835
5836 # See if the user wants to disable java.net.  This is the mildly
5837 # ugly way that we admit that target-side configuration sucks.
5838 # Check whether --enable-java-net or --disable-java-net was given.
5839 if test "${enable_java_net+set}" = set; then
5840   enableval="$enable_java_net"
5841
5842 fi;
5843
5844 # Whether java.net is built by default can depend on the target.
5845 if test -z "$enable_java_net"; then
5846    enable_java_net=${enable_java_net_default-yes}
5847 fi
5848 if test "$enable_java_net" = no; then
5849
5850 cat >>confdefs.h <<\_ACEOF
5851 #define DISABLE_JAVA_NET 1
5852 _ACEOF
5853
5854 fi
5855
5856 # See if the user wants to configure without libffi.  Some
5857 # architectures don't support it, and default values are set in
5858 # configure.host.
5859
5860 # Check whether --with-libffi or --without-libffi was given.
5861 if test "${with_libffi+set}" = set; then
5862   withval="$with_libffi"
5863   :
5864 else
5865   with_libffi=${with_libffi_default-yes}
5866 fi;
5867
5868 LIBFFI=
5869 LIBFFIINCS=
5870 if test "$with_libffi" != no; then
5871
5872 cat >>confdefs.h <<\_ACEOF
5873 #define USE_LIBFFI 1
5874 _ACEOF
5875
5876    LIBFFI=../libffi/libffi_convenience.la
5877    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5878 fi
5879
5880
5881
5882 # See if the user wants to disable JVMPI support.
5883 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5884 if test "${enable_jvmpi+set}" = set; then
5885   enableval="$enable_jvmpi"
5886
5887 fi;
5888
5889 if test "$enable_jvmpi" != no; then
5890
5891 cat >>confdefs.h <<\_ACEOF
5892 #define ENABLE_JVMPI 1
5893 _ACEOF
5894
5895 fi
5896
5897 # If the target is an eCos system, use the appropriate eCos
5898 # I/O routines.
5899 # FIXME: this should not be a local option but a global target
5900 # system; at present there is no eCos target.
5901 TARGET_ECOS=${PROCESS-"no"}
5902
5903 # Check whether --with-ecos or --without-ecos was given.
5904 if test "${with_ecos+set}" = set; then
5905   withval="$with_ecos"
5906   TARGET_ECOS="$with_ecos"
5907
5908 fi;
5909
5910 supply_backtrace=no
5911
5912 PLATFORM_INNER_NAT_HDRS=
5913 case "$TARGET_ECOS" in
5914    no) case "$host" in
5915       *mingw*)
5916             PLATFORM=Win32
5917             PLATFORMNET=Win32
5918             PLATFORMH=win32.h
5919
5920 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5921 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5922 LD_PROG=`$CC --print-prog-name=ld`
5923 LD_VERSION=`$LD_PROG --version`
5924 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5925 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5926 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5927   LD_OK="ok"
5928 else
5929   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5930     LD_OK="ok"
5931   fi
5932 fi
5933 if test "x$LD_OK" != x; then
5934   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5935 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5936 else
5937   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5938 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5939   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5940 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5944 _ACEOF
5945
5946 fi
5947       ;;
5948       *)
5949             PLATFORM=Posix
5950             PLATFORMNET=Posix
5951             PLATFORMH=posix.h
5952             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5953       ;;
5954       esac
5955       ;;
5956    *)
5957       PLATFORM=Ecos
5958       PLATFORMNET=NoNet
5959
5960 cat >>confdefs.h <<\_ACEOF
5961 #define ECOS 1
5962 _ACEOF
5963
5964       PLATFORMH=posix.h
5965       ;;
5966 esac
5967
5968           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5969
5970
5971 ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5977 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5978 # On Suns, sometimes $CPP names a directory.
5979 if test -n "$CPP" && test -d "$CPP"; then
5980   CPP=
5981 fi
5982 if test -z "$CPP"; then
5983   if test "${ac_cv_prog_CPP+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986       # Double quotes because CPP needs to be expanded
5987     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5988     do
5989       ac_preproc_ok=false
5990 for ac_c_preproc_warn_flag in '' yes
5991 do
5992   # Use a header file that comes with gcc, so configuring glibc
5993   # with a fresh cross-compiler works.
5994   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5995   # <limits.h> exists even on freestanding compilers.
5996   # On the NeXT, cc -E runs the code through the compiler's parser,
5997   # not just through cpp. "Syntax error" is here to catch this case.
5998   cat >conftest.$ac_ext <<_ACEOF
5999 /* confdefs.h.  */
6000 _ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h.  */
6004 #ifdef __STDC__
6005 # include <limits.h>
6006 #else
6007 # include <assert.h>
6008 #endif
6009                      Syntax error
6010 _ACEOF
6011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013   ac_status=$?
6014   grep -v '^ *+' conftest.er1 >conftest.err
6015   rm -f conftest.er1
6016   cat conftest.err >&5
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); } >/dev/null; then
6019   if test -s conftest.err; then
6020     ac_cpp_err=$ac_c_preproc_warn_flag
6021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022   else
6023     ac_cpp_err=
6024   fi
6025 else
6026   ac_cpp_err=yes
6027 fi
6028 if test -z "$ac_cpp_err"; then
6029   :
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034   # Broken: fails on valid input.
6035 continue
6036 fi
6037 rm -f conftest.err conftest.$ac_ext
6038
6039   # OK, works on sane cases.  Now check whether non-existent headers
6040   # can be detected and how.
6041   cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 #include <ac_nonexistent.h>
6048 _ACEOF
6049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } >/dev/null; then
6057   if test -s conftest.err; then
6058     ac_cpp_err=$ac_c_preproc_warn_flag
6059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6060   else
6061     ac_cpp_err=
6062   fi
6063 else
6064   ac_cpp_err=yes
6065 fi
6066 if test -z "$ac_cpp_err"; then
6067   # Broken: success on invalid input.
6068 continue
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073   # Passes both tests.
6074 ac_preproc_ok=:
6075 break
6076 fi
6077 rm -f conftest.err conftest.$ac_ext
6078
6079 done
6080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6081 rm -f conftest.err conftest.$ac_ext
6082 if $ac_preproc_ok; then
6083   break
6084 fi
6085
6086     done
6087     ac_cv_prog_CPP=$CPP
6088
6089 fi
6090   CPP=$ac_cv_prog_CPP
6091 else
6092   ac_cv_prog_CPP=$CPP
6093 fi
6094 echo "$as_me:$LINENO: result: $CPP" >&5
6095 echo "${ECHO_T}$CPP" >&6
6096 ac_preproc_ok=false
6097 for ac_c_preproc_warn_flag in '' yes
6098 do
6099   # Use a header file that comes with gcc, so configuring glibc
6100   # with a fresh cross-compiler works.
6101   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102   # <limits.h> exists even on freestanding compilers.
6103   # On the NeXT, cc -E runs the code through the compiler's parser,
6104   # not just through cpp. "Syntax error" is here to catch this case.
6105   cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111 #ifdef __STDC__
6112 # include <limits.h>
6113 #else
6114 # include <assert.h>
6115 #endif
6116                      Syntax error
6117 _ACEOF
6118 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6119   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120   ac_status=$?
6121   grep -v '^ *+' conftest.er1 >conftest.err
6122   rm -f conftest.er1
6123   cat conftest.err >&5
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); } >/dev/null; then
6126   if test -s conftest.err; then
6127     ac_cpp_err=$ac_c_preproc_warn_flag
6128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6129   else
6130     ac_cpp_err=
6131   fi
6132 else
6133   ac_cpp_err=yes
6134 fi
6135 if test -z "$ac_cpp_err"; then
6136   :
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141   # Broken: fails on valid input.
6142 continue
6143 fi
6144 rm -f conftest.err conftest.$ac_ext
6145
6146   # OK, works on sane cases.  Now check whether non-existent headers
6147   # can be detected and how.
6148   cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154 #include <ac_nonexistent.h>
6155 _ACEOF
6156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6158   ac_status=$?
6159   grep -v '^ *+' conftest.er1 >conftest.err
6160   rm -f conftest.er1
6161   cat conftest.err >&5
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); } >/dev/null; then
6164   if test -s conftest.err; then
6165     ac_cpp_err=$ac_c_preproc_warn_flag
6166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6167   else
6168     ac_cpp_err=
6169   fi
6170 else
6171   ac_cpp_err=yes
6172 fi
6173 if test -z "$ac_cpp_err"; then
6174   # Broken: success on invalid input.
6175 continue
6176 else
6177   echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180   # Passes both tests.
6181 ac_preproc_ok=:
6182 break
6183 fi
6184 rm -f conftest.err conftest.$ac_ext
6185
6186 done
6187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6188 rm -f conftest.err conftest.$ac_ext
6189 if $ac_preproc_ok; then
6190   :
6191 else
6192   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6193 See \`config.log' for more details." >&5
6194 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6195 See \`config.log' for more details." >&2;}
6196    { (exit 1); exit 1; }; }
6197 fi
6198
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206 echo "$as_me:$LINENO: checking for egrep" >&5
6207 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6208 if test "${ac_cv_prog_egrep+set}" = set; then
6209   echo $ECHO_N "(cached) $ECHO_C" >&6
6210 else
6211   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6212     then ac_cv_prog_egrep='grep -E'
6213     else ac_cv_prog_egrep='egrep'
6214     fi
6215 fi
6216 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6217 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6218  EGREP=$ac_cv_prog_egrep
6219
6220
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #include <stdint.h>
6228
6229 _ACEOF
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231   $EGREP "uint32_t" >/dev/null 2>&1; then
6232
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_INT32_DEFINED 1
6235 _ACEOF
6236
6237 fi
6238 rm -f conftest*
6239
6240 cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 #include <inttypes.h>
6247
6248 _ACEOF
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250   $EGREP "uint32_t" >/dev/null 2>&1; then
6251
6252 cat >>confdefs.h <<\_ACEOF
6253 #define HAVE_INT32_DEFINED 1
6254 _ACEOF
6255
6256 fi
6257 rm -f conftest*
6258
6259 cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 #include <sys/types.h>
6266
6267 _ACEOF
6268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6269   $EGREP "u_int32_t" >/dev/null 2>&1; then
6270
6271 cat >>confdefs.h <<\_ACEOF
6272 #define HAVE_BSD_INT32_DEFINED 1
6273 _ACEOF
6274
6275 fi
6276 rm -f conftest*
6277
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284 #include <sys/config.h>
6285
6286 _ACEOF
6287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6288   $EGREP "u_int32_t" >/dev/null 2>&1; then
6289
6290 cat >>confdefs.h <<\_ACEOF
6291 #define HAVE_BSD_INT32_DEFINED 1
6292 _ACEOF
6293
6294 fi
6295 rm -f conftest*
6296
6297
6298
6299
6300 if test "$PLATFORM" = Win32; then
6301   USING_WIN32_PLATFORM_TRUE=
6302   USING_WIN32_PLATFORM_FALSE='#'
6303 else
6304   USING_WIN32_PLATFORM_TRUE='#'
6305   USING_WIN32_PLATFORM_FALSE=
6306 fi
6307
6308
6309
6310 if test "$PLATFORM" = Posix; then
6311   USING_POSIX_PLATFORM_TRUE=
6312   USING_POSIX_PLATFORM_FALSE='#'
6313 else
6314   USING_POSIX_PLATFORM_TRUE='#'
6315   USING_POSIX_PLATFORM_FALSE=
6316 fi
6317
6318
6319
6320 if test "$PLATFORM" = Ecos; then
6321   USING_ECOS_PLATFORM_TRUE=
6322   USING_ECOS_PLATFORM_FALSE='#'
6323 else
6324   USING_ECOS_PLATFORM_TRUE='#'
6325   USING_ECOS_PLATFORM_FALSE=
6326 fi
6327
6328
6329 # These may not be defined in a non-ANS conformant embedded system.
6330 # FIXME: Should these case a runtime exception in that case?
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h.  */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h.  */
6337 #include <time.h>
6338
6339 _ACEOF
6340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6341   $EGREP "mktime" >/dev/null 2>&1; then
6342
6343 cat >>confdefs.h <<\_ACEOF
6344 #define HAVE_MKTIME 1
6345 _ACEOF
6346
6347 fi
6348 rm -f conftest*
6349
6350 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h.  */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h.  */
6356 #include <time.h>
6357
6358 _ACEOF
6359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6360   $EGREP "localtime" >/dev/null 2>&1; then
6361
6362 cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_LOCALTIME 1
6364 _ACEOF
6365
6366 fi
6367 rm -f conftest*
6368
6369
6370 # Create the subdirectory for natFile.cc, or the attempt
6371 # to create the link will fail.
6372 test -d java || mkdir java
6373 test -d java/io || mkdir java/io
6374 test -d gnu || mkdir gnu
6375           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6376
6377
6378 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6379 test -d java/lang || mkdir java/lang
6380           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6381
6382           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6383
6384
6385 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6386 test -d java/net || mkdir java/net
6387           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6388
6389           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6390
6391
6392 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6393 test -d gnu/java || mkdir gnu/java
6394 test -d gnu/java/net || mkdir gnu/java/net
6395           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6396
6397           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6398
6399
6400 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6401 test -d gnu/java/nio || mkdir gnu/java/nio
6402           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6403
6404           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6405
6406 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6407           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6408
6409
6410 case "${host}" in
6411     *mingw*)
6412       SYSTEMSPEC="-lgdi32 -lws2_32"
6413       if test "${with_win32_nlsapi}" = "unicows"; then
6414         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6415       fi
6416     ;;
6417     *)
6418       SYSTEMSPEC=
6419     ;;
6420 esac
6421
6422
6423 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6424
6425
6426
6427 # Check whether --with-system-zlib or --without-system-zlib was given.
6428 if test "${with_system_zlib+set}" = set; then
6429   withval="$with_system_zlib"
6430
6431 fi;
6432 ZLIBSPEC=
6433
6434 ZLIBTESTSPEC=
6435
6436
6437 echo "$as_me:$LINENO: checking for X" >&5
6438 echo $ECHO_N "checking for X... $ECHO_C" >&6
6439
6440
6441 # Check whether --with-x or --without-x was given.
6442 if test "${with_x+set}" = set; then
6443   withval="$with_x"
6444
6445 fi;
6446 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6447 if test "x$with_x" = xno; then
6448   # The user explicitly disabled X.
6449   have_x=disabled
6450 else
6451   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6452     # Both variables are already set.
6453     have_x=yes
6454   else
6455     if test "${ac_cv_have_x+set}" = set; then
6456   echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458   # One or both of the vars are not set, and there is no cached value.
6459 ac_x_includes=no ac_x_libraries=no
6460 rm -fr conftest.dir
6461 if mkdir conftest.dir; then
6462   cd conftest.dir
6463   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6464   cat >Imakefile <<'_ACEOF'
6465 acfindx:
6466         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6467 _ACEOF
6468   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6469     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6470     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6471     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6472     for ac_extension in a so sl; do
6473       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6474          test -f $ac_im_libdir/libX11.$ac_extension; then
6475         ac_im_usrlibdir=$ac_im_libdir; break
6476       fi
6477     done
6478     # Screen out bogus values from the imake configuration.  They are
6479     # bogus both because they are the default anyway, and because
6480     # using them would break gcc on systems where it needs fixed includes.
6481     case $ac_im_incroot in
6482         /usr/include) ;;
6483         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6484     esac
6485     case $ac_im_usrlibdir in
6486         /usr/lib | /lib) ;;
6487         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6488     esac
6489   fi
6490   cd ..
6491   rm -fr conftest.dir
6492 fi
6493
6494 # Standard set of common directories for X headers.
6495 # Check X11 before X11Rn because it is often a symlink to the current release.
6496 ac_x_header_dirs='
6497 /usr/X11/include
6498 /usr/X11R6/include
6499 /usr/X11R5/include
6500 /usr/X11R4/include
6501
6502 /usr/include/X11
6503 /usr/include/X11R6
6504 /usr/include/X11R5
6505 /usr/include/X11R4
6506
6507 /usr/local/X11/include
6508 /usr/local/X11R6/include
6509 /usr/local/X11R5/include
6510 /usr/local/X11R4/include
6511
6512 /usr/local/include/X11
6513 /usr/local/include/X11R6
6514 /usr/local/include/X11R5
6515 /usr/local/include/X11R4
6516
6517 /usr/X386/include
6518 /usr/x386/include
6519 /usr/XFree86/include/X11
6520
6521 /usr/include
6522 /usr/local/include
6523 /usr/unsupported/include
6524 /usr/athena/include
6525 /usr/local/x11r5/include
6526 /usr/lpp/Xamples/include
6527
6528 /usr/openwin/include
6529 /usr/openwin/share/include'
6530
6531 if test "$ac_x_includes" = no; then
6532   # Guess where to find include files, by looking for Intrinsic.h.
6533   # First, try using that file with no special directory specified.
6534   cat >conftest.$ac_ext <<_ACEOF
6535 /* confdefs.h.  */
6536 _ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h.  */
6540 #include <X11/Intrinsic.h>
6541 _ACEOF
6542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } >/dev/null; then
6550   if test -s conftest.err; then
6551     ac_cpp_err=$ac_c_preproc_warn_flag
6552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6553   else
6554     ac_cpp_err=
6555   fi
6556 else
6557   ac_cpp_err=yes
6558 fi
6559 if test -z "$ac_cpp_err"; then
6560   # We can compile using X headers with no special include directory.
6561 ac_x_includes=
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566   for ac_dir in $ac_x_header_dirs; do
6567   if test -r "$ac_dir/X11/Intrinsic.h"; then
6568     ac_x_includes=$ac_dir
6569     break
6570   fi
6571 done
6572 fi
6573 rm -f conftest.err conftest.$ac_ext
6574 fi # $ac_x_includes = no
6575
6576 if test "$ac_x_libraries" = no; then
6577   # Check for the libraries.
6578   # See if we find them without any special options.
6579   # Don't add to $LIBS permanently.
6580   ac_save_LIBS=$LIBS
6581   LIBS="-lXt $LIBS"
6582   if test x$gcc_no_link = xyes; then
6583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6585    { (exit 1); exit 1; }; }
6586 fi
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 #include <X11/Intrinsic.h>
6594 int
6595 main ()
6596 {
6597 XtMalloc (0)
6598   ;
6599   return 0;
6600 }
6601 _ACEOF
6602 rm -f conftest.$ac_objext conftest$ac_exeext
6603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6604   (eval $ac_link) 2>conftest.er1
6605   ac_status=$?
6606   grep -v '^ *+' conftest.er1 >conftest.err
6607   rm -f conftest.er1
6608   cat conftest.err >&5
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); } &&
6611          { ac_try='test -z "$ac_c_werror_flag"
6612                          || test ! -s conftest.err'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; } &&
6618          { ac_try='test -s conftest$ac_exeext'
6619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620   (eval $ac_try) 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   LIBS=$ac_save_LIBS
6625 # We can link X programs with no special library path.
6626 ac_x_libraries=
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 LIBS=$ac_save_LIBS
6632 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6633 do
6634   # Don't even attempt the hair of trying to link an X program!
6635   for ac_extension in a so sl; do
6636     if test -r $ac_dir/libXt.$ac_extension; then
6637       ac_x_libraries=$ac_dir
6638       break 2
6639     fi
6640   done
6641 done
6642 fi
6643 rm -f conftest.err conftest.$ac_objext \
6644       conftest$ac_exeext conftest.$ac_ext
6645 fi # $ac_x_libraries = no
6646
6647 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6648   # Didn't find X anywhere.  Cache the known absence of X.
6649   ac_cv_have_x="have_x=no"
6650 else
6651   # Record where we found X for the cache.
6652   ac_cv_have_x="have_x=yes \
6653                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6654 fi
6655 fi
6656
6657   fi
6658   eval "$ac_cv_have_x"
6659 fi # $with_x != no
6660
6661 if test "$have_x" != yes; then
6662   echo "$as_me:$LINENO: result: $have_x" >&5
6663 echo "${ECHO_T}$have_x" >&6
6664   no_x=yes
6665 else
6666   # If each of the values was on the command line, it overrides each guess.
6667   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6668   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6669   # Update the cache value to reflect the command line values.
6670   ac_cv_have_x="have_x=yes \
6671                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6672   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6673 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6674 fi
6675
6676 if test "$no_x" = yes; then
6677   # Not all programs may use this symbol, but it does not hurt to define it.
6678
6679 cat >>confdefs.h <<\_ACEOF
6680 #define X_DISPLAY_MISSING 1
6681 _ACEOF
6682
6683   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6684 else
6685   if test -n "$x_includes"; then
6686     X_CFLAGS="$X_CFLAGS -I$x_includes"
6687   fi
6688
6689   # It would also be nice to do this for all -L options, not just this one.
6690   if test -n "$x_libraries"; then
6691     X_LIBS="$X_LIBS -L$x_libraries"
6692     # For Solaris; some versions of Sun CC require a space after -R and
6693     # others require no space.  Words are not sufficient . . . .
6694     case `(uname -sr) 2>/dev/null` in
6695     "SunOS 5"*)
6696       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6697 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6698       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6699       if test x$gcc_no_link = xyes; then
6700   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6702    { (exit 1); exit 1; }; }
6703 fi
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710
6711 int
6712 main ()
6713 {
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext conftest$ac_exeext
6720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6721   (eval $ac_link) 2>conftest.er1
6722   ac_status=$?
6723   grep -v '^ *+' conftest.er1 >conftest.err
6724   rm -f conftest.er1
6725   cat conftest.err >&5
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); } &&
6728          { ac_try='test -z "$ac_c_werror_flag"
6729                          || test ! -s conftest.err'
6730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731   (eval $ac_try) 2>&5
6732   ac_status=$?
6733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734   (exit $ac_status); }; } &&
6735          { ac_try='test -s conftest$ac_exeext'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   ac_R_nospace=yes
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746 ac_R_nospace=no
6747 fi
6748 rm -f conftest.err conftest.$ac_objext \
6749       conftest$ac_exeext conftest.$ac_ext
6750       if test $ac_R_nospace = yes; then
6751         echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6
6753         X_LIBS="$X_LIBS -R$x_libraries"
6754       else
6755         LIBS="$ac_xsave_LIBS -R $x_libraries"
6756         if test x$gcc_no_link = xyes; then
6757   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6759    { (exit 1); exit 1; }; }
6760 fi
6761 cat >conftest.$ac_ext <<_ACEOF
6762 /* confdefs.h.  */
6763 _ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h.  */
6767
6768 int
6769 main ()
6770 {
6771
6772   ;
6773   return 0;
6774 }
6775 _ACEOF
6776 rm -f conftest.$ac_objext conftest$ac_exeext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6778   (eval $ac_link) 2>conftest.er1
6779   ac_status=$?
6780   grep -v '^ *+' conftest.er1 >conftest.err
6781   rm -f conftest.er1
6782   cat conftest.err >&5
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); } &&
6785          { ac_try='test -z "$ac_c_werror_flag"
6786                          || test ! -s conftest.err'
6787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6788   (eval $ac_try) 2>&5
6789   ac_status=$?
6790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791   (exit $ac_status); }; } &&
6792          { ac_try='test -s conftest$ac_exeext'
6793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6794   (eval $ac_try) 2>&5
6795   ac_status=$?
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); }; }; then
6798   ac_R_space=yes
6799 else
6800   echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6802
6803 ac_R_space=no
6804 fi
6805 rm -f conftest.err conftest.$ac_objext \
6806       conftest$ac_exeext conftest.$ac_ext
6807         if test $ac_R_space = yes; then
6808           echo "$as_me:$LINENO: result: yes" >&5
6809 echo "${ECHO_T}yes" >&6
6810           X_LIBS="$X_LIBS -R $x_libraries"
6811         else
6812           echo "$as_me:$LINENO: result: neither works" >&5
6813 echo "${ECHO_T}neither works" >&6
6814         fi
6815       fi
6816       LIBS=$ac_xsave_LIBS
6817     esac
6818   fi
6819
6820   # Check for system-dependent libraries X programs must link with.
6821   # Do this before checking for the system-independent R6 libraries
6822   # (-lICE), since we may need -lsocket or whatever for X linking.
6823
6824   if test "$ISC" = yes; then
6825     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6826   else
6827     # Martyn Johnson says this is needed for Ultrix, if the X
6828     # libraries were built with DECnet support.  And Karl Berry says
6829     # the Alpha needs dnet_stub (dnet does not exist).
6830     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6831     if test x$gcc_no_link = xyes; then
6832   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6834    { (exit 1); exit 1; }; }
6835 fi
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842
6843 /* Override any gcc2 internal prototype to avoid an error.  */
6844 #ifdef __cplusplus
6845 extern "C"
6846 #endif
6847 /* We use char because int might match the return type of a gcc2
6848    builtin and then its argument prototype would still apply.  */
6849 char XOpenDisplay ();
6850 int
6851 main ()
6852 {
6853 XOpenDisplay ();
6854   ;
6855   return 0;
6856 }
6857 _ACEOF
6858 rm -f conftest.$ac_objext conftest$ac_exeext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6860   (eval $ac_link) 2>conftest.er1
6861   ac_status=$?
6862   grep -v '^ *+' conftest.er1 >conftest.err
6863   rm -f conftest.er1
6864   cat conftest.err >&5
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } &&
6867          { ac_try='test -z "$ac_c_werror_flag"
6868                          || test ! -s conftest.err'
6869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870   (eval $ac_try) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; } &&
6874          { ac_try='test -s conftest$ac_exeext'
6875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876   (eval $ac_try) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); }; }; then
6880   :
6881 else
6882   echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6886 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6887 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   ac_check_lib_save_LIBS=$LIBS
6891 LIBS="-ldnet  $LIBS"
6892 if test x$gcc_no_link = xyes; then
6893   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6895    { (exit 1); exit 1; }; }
6896 fi
6897 cat >conftest.$ac_ext <<_ACEOF
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903
6904 /* Override any gcc2 internal prototype to avoid an error.  */
6905 #ifdef __cplusplus
6906 extern "C"
6907 #endif
6908 /* We use char because int might match the return type of a gcc2
6909    builtin and then its argument prototype would still apply.  */
6910 char dnet_ntoa ();
6911 int
6912 main ()
6913 {
6914 dnet_ntoa ();
6915   ;
6916   return 0;
6917 }
6918 _ACEOF
6919 rm -f conftest.$ac_objext conftest$ac_exeext
6920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6921   (eval $ac_link) 2>conftest.er1
6922   ac_status=$?
6923   grep -v '^ *+' conftest.er1 >conftest.err
6924   rm -f conftest.er1
6925   cat conftest.err >&5
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); } &&
6928          { ac_try='test -z "$ac_c_werror_flag"
6929                          || test ! -s conftest.err'
6930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931   (eval $ac_try) 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; } &&
6935          { ac_try='test -s conftest$ac_exeext'
6936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6937   (eval $ac_try) 2>&5
6938   ac_status=$?
6939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940   (exit $ac_status); }; }; then
6941   ac_cv_lib_dnet_dnet_ntoa=yes
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 ac_cv_lib_dnet_dnet_ntoa=no
6947 fi
6948 rm -f conftest.err conftest.$ac_objext \
6949       conftest$ac_exeext conftest.$ac_ext
6950 LIBS=$ac_check_lib_save_LIBS
6951 fi
6952 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6953 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6954 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6955   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6956 fi
6957
6958     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6959       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6960 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6961 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6962   echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964   ac_check_lib_save_LIBS=$LIBS
6965 LIBS="-ldnet_stub  $LIBS"
6966 if test x$gcc_no_link = xyes; then
6967   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6969    { (exit 1); exit 1; }; }
6970 fi
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h.  */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h.  */
6977
6978 /* Override any gcc2 internal prototype to avoid an error.  */
6979 #ifdef __cplusplus
6980 extern "C"
6981 #endif
6982 /* We use char because int might match the return type of a gcc2
6983    builtin and then its argument prototype would still apply.  */
6984 char dnet_ntoa ();
6985 int
6986 main ()
6987 {
6988 dnet_ntoa ();
6989   ;
6990   return 0;
6991 }
6992 _ACEOF
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6995   (eval $ac_link) 2>conftest.er1
6996   ac_status=$?
6997   grep -v '^ *+' conftest.er1 >conftest.err
6998   rm -f conftest.er1
6999   cat conftest.err >&5
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } &&
7002          { ac_try='test -z "$ac_c_werror_flag"
7003                          || test ! -s conftest.err'
7004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005   (eval $ac_try) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); }; } &&
7009          { ac_try='test -s conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020 ac_cv_lib_dnet_stub_dnet_ntoa=no
7021 fi
7022 rm -f conftest.err conftest.$ac_objext \
7023       conftest$ac_exeext conftest.$ac_ext
7024 LIBS=$ac_check_lib_save_LIBS
7025 fi
7026 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7027 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7028 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7029   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7030 fi
7031
7032     fi
7033 fi
7034 rm -f conftest.err conftest.$ac_objext \
7035       conftest$ac_exeext conftest.$ac_ext
7036     LIBS="$ac_xsave_LIBS"
7037
7038     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7039     # to get the SysV transport functions.
7040     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7041     # needs -lnsl.
7042     # The nsl library prevents programs from opening the X display
7043     # on Irix 5.2, according to T.E. Dickey.
7044     # The functions gethostbyname, getservbyname, and inet_addr are
7045     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7046     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7047 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7048 if test "${ac_cv_func_gethostbyname+set}" = set; then
7049   echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051   if test x$gcc_no_link = xyes; then
7052   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7054    { (exit 1); exit 1; }; }
7055 fi
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7064 #define gethostbyname innocuous_gethostbyname
7065
7066 /* System header to define __stub macros and hopefully few prototypes,
7067     which can conflict with char gethostbyname (); below.
7068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069     <limits.h> exists even on freestanding compilers.  */
7070
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076
7077 #undef gethostbyname
7078
7079 /* Override any gcc2 internal prototype to avoid an error.  */
7080 #ifdef __cplusplus
7081 extern "C"
7082 {
7083 #endif
7084 /* We use char because int might match the return type of a gcc2
7085    builtin and then its argument prototype would still apply.  */
7086 char gethostbyname ();
7087 /* The GNU C library defines this for functions which it implements
7088     to always fail with ENOSYS.  Some functions are actually named
7089     something starting with __ and the normal name is an alias.  */
7090 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7091 choke me
7092 #else
7093 char (*f) () = gethostbyname;
7094 #endif
7095 #ifdef __cplusplus
7096 }
7097 #endif
7098
7099 int
7100 main ()
7101 {
7102 return f != gethostbyname;
7103   ;
7104   return 0;
7105 }
7106 _ACEOF
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109   (eval $ac_link) 2>conftest.er1
7110   ac_status=$?
7111   grep -v '^ *+' conftest.er1 >conftest.err
7112   rm -f conftest.er1
7113   cat conftest.err >&5
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); } &&
7116          { ac_try='test -z "$ac_c_werror_flag"
7117                          || test ! -s conftest.err'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; } &&
7123          { ac_try='test -s conftest$ac_exeext'
7124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125   (eval $ac_try) 2>&5
7126   ac_status=$?
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); }; }; then
7129   ac_cv_func_gethostbyname=yes
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ac_cv_func_gethostbyname=no
7135 fi
7136 rm -f conftest.err conftest.$ac_objext \
7137       conftest$ac_exeext conftest.$ac_ext
7138 fi
7139 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7140 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7141
7142     if test $ac_cv_func_gethostbyname = no; then
7143       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7144 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7145 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   ac_check_lib_save_LIBS=$LIBS
7149 LIBS="-lnsl  $LIBS"
7150 if test x$gcc_no_link = xyes; then
7151   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7153    { (exit 1); exit 1; }; }
7154 fi
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h.  */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h.  */
7161
7162 /* Override any gcc2 internal prototype to avoid an error.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167    builtin and then its argument prototype would still apply.  */
7168 char gethostbyname ();
7169 int
7170 main ()
7171 {
7172 gethostbyname ();
7173   ;
7174   return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext conftest$ac_exeext
7178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179   (eval $ac_link) 2>conftest.er1
7180   ac_status=$?
7181   grep -v '^ *+' conftest.er1 >conftest.err
7182   rm -f conftest.er1
7183   cat conftest.err >&5
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); } &&
7186          { ac_try='test -z "$ac_c_werror_flag"
7187                          || test ! -s conftest.err'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; } &&
7193          { ac_try='test -s conftest$ac_exeext'
7194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195   (eval $ac_try) 2>&5
7196   ac_status=$?
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); }; }; then
7199   ac_cv_lib_nsl_gethostbyname=yes
7200 else
7201   echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7203
7204 ac_cv_lib_nsl_gethostbyname=no
7205 fi
7206 rm -f conftest.err conftest.$ac_objext \
7207       conftest$ac_exeext conftest.$ac_ext
7208 LIBS=$ac_check_lib_save_LIBS
7209 fi
7210 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7211 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7212 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7213   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7214 fi
7215
7216       if test $ac_cv_lib_nsl_gethostbyname = no; then
7217         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7218 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7219 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   ac_check_lib_save_LIBS=$LIBS
7223 LIBS="-lbsd  $LIBS"
7224 if test x$gcc_no_link = xyes; then
7225   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7227    { (exit 1); exit 1; }; }
7228 fi
7229 cat >conftest.$ac_ext <<_ACEOF
7230 /* confdefs.h.  */
7231 _ACEOF
7232 cat confdefs.h >>conftest.$ac_ext
7233 cat >>conftest.$ac_ext <<_ACEOF
7234 /* end confdefs.h.  */
7235
7236 /* Override any gcc2 internal prototype to avoid an error.  */
7237 #ifdef __cplusplus
7238 extern "C"
7239 #endif
7240 /* We use char because int might match the return type of a gcc2
7241    builtin and then its argument prototype would still apply.  */
7242 char gethostbyname ();
7243 int
7244 main ()
7245 {
7246 gethostbyname ();
7247   ;
7248   return 0;
7249 }
7250 _ACEOF
7251 rm -f conftest.$ac_objext conftest$ac_exeext
7252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7253   (eval $ac_link) 2>conftest.er1
7254   ac_status=$?
7255   grep -v '^ *+' conftest.er1 >conftest.err
7256   rm -f conftest.er1
7257   cat conftest.err >&5
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -z "$ac_c_werror_flag"
7261                          || test ! -s conftest.err'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; } &&
7267          { ac_try='test -s conftest$ac_exeext'
7268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); }; }; then
7273   ac_cv_lib_bsd_gethostbyname=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278 ac_cv_lib_bsd_gethostbyname=no
7279 fi
7280 rm -f conftest.err conftest.$ac_objext \
7281       conftest$ac_exeext conftest.$ac_ext
7282 LIBS=$ac_check_lib_save_LIBS
7283 fi
7284 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7285 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7286 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7287   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7288 fi
7289
7290       fi
7291     fi
7292
7293     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7294     # socket/setsockopt and other routines are undefined under SCO ODT
7295     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7296     # on later versions), says Simon Leinen: it contains gethostby*
7297     # variants that don't use the name server (or something).  -lsocket
7298     # must be given before -lnsl if both are needed.  We assume that
7299     # if connect needs -lnsl, so does gethostbyname.
7300     echo "$as_me:$LINENO: checking for connect" >&5
7301 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7302 if test "${ac_cv_func_connect+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   if test x$gcc_no_link = xyes; then
7306   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7308    { (exit 1); exit 1; }; }
7309 fi
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h.  */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h.  */
7316 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7318 #define connect innocuous_connect
7319
7320 /* System header to define __stub macros and hopefully few prototypes,
7321     which can conflict with char connect (); below.
7322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7323     <limits.h> exists even on freestanding compilers.  */
7324
7325 #ifdef __STDC__
7326 # include <limits.h>
7327 #else
7328 # include <assert.h>
7329 #endif
7330
7331 #undef connect
7332
7333 /* Override any gcc2 internal prototype to avoid an error.  */
7334 #ifdef __cplusplus
7335 extern "C"
7336 {
7337 #endif
7338 /* We use char because int might match the return type of a gcc2
7339    builtin and then its argument prototype would still apply.  */
7340 char connect ();
7341 /* The GNU C library defines this for functions which it implements
7342     to always fail with ENOSYS.  Some functions are actually named
7343     something starting with __ and the normal name is an alias.  */
7344 #if defined (__stub_connect) || defined (__stub___connect)
7345 choke me
7346 #else
7347 char (*f) () = connect;
7348 #endif
7349 #ifdef __cplusplus
7350 }
7351 #endif
7352
7353 int
7354 main ()
7355 {
7356 return f != connect;
7357   ;
7358   return 0;
7359 }
7360 _ACEOF
7361 rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363   (eval $ac_link) 2>conftest.er1
7364   ac_status=$?
7365   grep -v '^ *+' conftest.er1 >conftest.err
7366   rm -f conftest.er1
7367   cat conftest.err >&5
7368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369   (exit $ac_status); } &&
7370          { ac_try='test -z "$ac_c_werror_flag"
7371                          || test ! -s conftest.err'
7372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373   (eval $ac_try) 2>&5
7374   ac_status=$?
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); }; } &&
7377          { ac_try='test -s conftest$ac_exeext'
7378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379   (eval $ac_try) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); }; }; then
7383   ac_cv_func_connect=yes
7384 else
7385   echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 ac_cv_func_connect=no
7389 fi
7390 rm -f conftest.err conftest.$ac_objext \
7391       conftest$ac_exeext conftest.$ac_ext
7392 fi
7393 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7394 echo "${ECHO_T}$ac_cv_func_connect" >&6
7395
7396     if test $ac_cv_func_connect = no; then
7397       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7398 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7399 if test "${ac_cv_lib_socket_connect+set}" = set; then
7400   echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402   ac_check_lib_save_LIBS=$LIBS
7403 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7404 if test x$gcc_no_link = xyes; then
7405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7407    { (exit 1); exit 1; }; }
7408 fi
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415
7416 /* Override any gcc2 internal prototype to avoid an error.  */
7417 #ifdef __cplusplus
7418 extern "C"
7419 #endif
7420 /* We use char because int might match the return type of a gcc2
7421    builtin and then its argument prototype would still apply.  */
7422 char connect ();
7423 int
7424 main ()
7425 {
7426 connect ();
7427   ;
7428   return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest.$ac_objext conftest$ac_exeext
7432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7433   (eval $ac_link) 2>conftest.er1
7434   ac_status=$?
7435   grep -v '^ *+' conftest.er1 >conftest.err
7436   rm -f conftest.er1
7437   cat conftest.err >&5
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } &&
7440          { ac_try='test -z "$ac_c_werror_flag"
7441                          || test ! -s conftest.err'
7442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; } &&
7447          { ac_try='test -s conftest$ac_exeext'
7448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449   (eval $ac_try) 2>&5
7450   ac_status=$?
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); }; }; then
7453   ac_cv_lib_socket_connect=yes
7454 else
7455   echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7457
7458 ac_cv_lib_socket_connect=no
7459 fi
7460 rm -f conftest.err conftest.$ac_objext \
7461       conftest$ac_exeext conftest.$ac_ext
7462 LIBS=$ac_check_lib_save_LIBS
7463 fi
7464 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7465 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7466 if test $ac_cv_lib_socket_connect = yes; then
7467   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7468 fi
7469
7470     fi
7471
7472     # Guillermo Gomez says -lposix is necessary on A/UX.
7473     echo "$as_me:$LINENO: checking for remove" >&5
7474 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7475 if test "${ac_cv_func_remove+set}" = set; then
7476   echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478   if test x$gcc_no_link = xyes; then
7479   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7481    { (exit 1); exit 1; }; }
7482 fi
7483 cat >conftest.$ac_ext <<_ACEOF
7484 /* confdefs.h.  */
7485 _ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h.  */
7489 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7491 #define remove innocuous_remove
7492
7493 /* System header to define __stub macros and hopefully few prototypes,
7494     which can conflict with char remove (); below.
7495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7496     <limits.h> exists even on freestanding compilers.  */
7497
7498 #ifdef __STDC__
7499 # include <limits.h>
7500 #else
7501 # include <assert.h>
7502 #endif
7503
7504 #undef remove
7505
7506 /* Override any gcc2 internal prototype to avoid an error.  */
7507 #ifdef __cplusplus
7508 extern "C"
7509 {
7510 #endif
7511 /* We use char because int might match the return type of a gcc2
7512    builtin and then its argument prototype would still apply.  */
7513 char remove ();
7514 /* The GNU C library defines this for functions which it implements
7515     to always fail with ENOSYS.  Some functions are actually named
7516     something starting with __ and the normal name is an alias.  */
7517 #if defined (__stub_remove) || defined (__stub___remove)
7518 choke me
7519 #else
7520 char (*f) () = remove;
7521 #endif
7522 #ifdef __cplusplus
7523 }
7524 #endif
7525
7526 int
7527 main ()
7528 {
7529 return f != remove;
7530   ;
7531   return 0;
7532 }
7533 _ACEOF
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7536   (eval $ac_link) 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } &&
7543          { ac_try='test -z "$ac_c_werror_flag"
7544                          || test ! -s conftest.err'
7545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546   (eval $ac_try) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); }; } &&
7550          { ac_try='test -s conftest$ac_exeext'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; }; then
7556   ac_cv_func_remove=yes
7557 else
7558   echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ac_cv_func_remove=no
7562 fi
7563 rm -f conftest.err conftest.$ac_objext \
7564       conftest$ac_exeext conftest.$ac_ext
7565 fi
7566 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7567 echo "${ECHO_T}$ac_cv_func_remove" >&6
7568
7569     if test $ac_cv_func_remove = no; then
7570       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7572 if test "${ac_cv_lib_posix_remove+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   ac_check_lib_save_LIBS=$LIBS
7576 LIBS="-lposix  $LIBS"
7577 if test x$gcc_no_link = xyes; then
7578   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7580    { (exit 1); exit 1; }; }
7581 fi
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h.  */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h.  */
7588
7589 /* Override any gcc2 internal prototype to avoid an error.  */
7590 #ifdef __cplusplus
7591 extern "C"
7592 #endif
7593 /* We use char because int might match the return type of a gcc2
7594    builtin and then its argument prototype would still apply.  */
7595 char remove ();
7596 int
7597 main ()
7598 {
7599 remove ();
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext conftest$ac_exeext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606   (eval $ac_link) 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -z "$ac_c_werror_flag"
7614                          || test ! -s conftest.err'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; } &&
7620          { ac_try='test -s conftest$ac_exeext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   ac_cv_lib_posix_remove=yes
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_cv_lib_posix_remove=no
7632 fi
7633 rm -f conftest.err conftest.$ac_objext \
7634       conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7636 fi
7637 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7638 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7639 if test $ac_cv_lib_posix_remove = yes; then
7640   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7641 fi
7642
7643     fi
7644
7645     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7646     echo "$as_me:$LINENO: checking for shmat" >&5
7647 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7648 if test "${ac_cv_func_shmat+set}" = set; then
7649   echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651   if test x$gcc_no_link = xyes; then
7652   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7654    { (exit 1); exit 1; }; }
7655 fi
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7664 #define shmat innocuous_shmat
7665
7666 /* System header to define __stub macros and hopefully few prototypes,
7667     which can conflict with char shmat (); below.
7668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669     <limits.h> exists even on freestanding compilers.  */
7670
7671 #ifdef __STDC__
7672 # include <limits.h>
7673 #else
7674 # include <assert.h>
7675 #endif
7676
7677 #undef shmat
7678
7679 /* Override any gcc2 internal prototype to avoid an error.  */
7680 #ifdef __cplusplus
7681 extern "C"
7682 {
7683 #endif
7684 /* We use char because int might match the return type of a gcc2
7685    builtin and then its argument prototype would still apply.  */
7686 char shmat ();
7687 /* The GNU C library defines this for functions which it implements
7688     to always fail with ENOSYS.  Some functions are actually named
7689     something starting with __ and the normal name is an alias.  */
7690 #if defined (__stub_shmat) || defined (__stub___shmat)
7691 choke me
7692 #else
7693 char (*f) () = shmat;
7694 #endif
7695 #ifdef __cplusplus
7696 }
7697 #endif
7698
7699 int
7700 main ()
7701 {
7702 return f != shmat;
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709   (eval $ac_link) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest$ac_exeext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   ac_cv_func_shmat=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 ac_cv_func_shmat=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext \
7737       conftest$ac_exeext conftest.$ac_ext
7738 fi
7739 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7740 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7741
7742     if test $ac_cv_func_shmat = no; then
7743       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7744 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7745 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   ac_check_lib_save_LIBS=$LIBS
7749 LIBS="-lipc  $LIBS"
7750 if test x$gcc_no_link = xyes; then
7751   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7753    { (exit 1); exit 1; }; }
7754 fi
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 /* Override any gcc2 internal prototype to avoid an error.  */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767    builtin and then its argument prototype would still apply.  */
7768 char shmat ();
7769 int
7770 main ()
7771 {
7772 shmat ();
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779   (eval $ac_link) 2>conftest.er1
7780   ac_status=$?
7781   grep -v '^ *+' conftest.er1 >conftest.err
7782   rm -f conftest.er1
7783   cat conftest.err >&5
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); } &&
7786          { ac_try='test -z "$ac_c_werror_flag"
7787                          || test ! -s conftest.err'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; } &&
7793          { ac_try='test -s conftest$ac_exeext'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; }; then
7799   ac_cv_lib_ipc_shmat=yes
7800 else
7801   echo "$as_me: failed program was:" >&5
7802 sed 's/^/| /' conftest.$ac_ext >&5
7803
7804 ac_cv_lib_ipc_shmat=no
7805 fi
7806 rm -f conftest.err conftest.$ac_objext \
7807       conftest$ac_exeext conftest.$ac_ext
7808 LIBS=$ac_check_lib_save_LIBS
7809 fi
7810 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7811 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7812 if test $ac_cv_lib_ipc_shmat = yes; then
7813   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7814 fi
7815
7816     fi
7817   fi
7818
7819   # Check for libraries that X11R6 Xt/Xaw programs need.
7820   ac_save_LDFLAGS=$LDFLAGS
7821   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7822   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7823   # check for ICE first), but we must link in the order -lSM -lICE or
7824   # we get undefined symbols.  So assume we have SM if we have ICE.
7825   # These have to be linked with before -lX11, unlike the other
7826   # libraries we check for below, so use a different variable.
7827   # John Interrante, Karl Berry
7828   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7829 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7830 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   ac_check_lib_save_LIBS=$LIBS
7834 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7835 if test x$gcc_no_link = xyes; then
7836   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7838    { (exit 1); exit 1; }; }
7839 fi
7840 cat >conftest.$ac_ext <<_ACEOF
7841 /* confdefs.h.  */
7842 _ACEOF
7843 cat confdefs.h >>conftest.$ac_ext
7844 cat >>conftest.$ac_ext <<_ACEOF
7845 /* end confdefs.h.  */
7846
7847 /* Override any gcc2 internal prototype to avoid an error.  */
7848 #ifdef __cplusplus
7849 extern "C"
7850 #endif
7851 /* We use char because int might match the return type of a gcc2
7852    builtin and then its argument prototype would still apply.  */
7853 char IceConnectionNumber ();
7854 int
7855 main ()
7856 {
7857 IceConnectionNumber ();
7858   ;
7859   return 0;
7860 }
7861 _ACEOF
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864   (eval $ac_link) 2>conftest.er1
7865   ac_status=$?
7866   grep -v '^ *+' conftest.er1 >conftest.err
7867   rm -f conftest.er1
7868   cat conftest.err >&5
7869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870   (exit $ac_status); } &&
7871          { ac_try='test -z "$ac_c_werror_flag"
7872                          || test ! -s conftest.err'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; } &&
7878          { ac_try='test -s conftest$ac_exeext'
7879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880   (eval $ac_try) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; }; then
7884   ac_cv_lib_ICE_IceConnectionNumber=yes
7885 else
7886   echo "$as_me: failed program was:" >&5
7887 sed 's/^/| /' conftest.$ac_ext >&5
7888
7889 ac_cv_lib_ICE_IceConnectionNumber=no
7890 fi
7891 rm -f conftest.err conftest.$ac_objext \
7892       conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS
7894 fi
7895 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7896 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7897 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7898   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7899 fi
7900
7901   LDFLAGS=$ac_save_LDFLAGS
7902
7903 fi
7904
7905
7906 # Determine which AWT peer libraries to build
7907 # Check whether --enable-java-awt or --disable-java-awt was given.
7908 if test "${enable_java_awt+set}" = set; then
7909   enableval="$enable_java_awt"
7910
7911 fi;
7912
7913 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7914 use_xlib_awt=""
7915 use_gtk_awt=""
7916 # The default toolkit to use is the first one specified.
7917 TOOLKIT=
7918
7919
7920 for peer in $peerlibs ; do
7921   case $peer in
7922     xlib)
7923       if test "$no_x" = yes; then
7924         echo "*** xlib peers requested but no X library available" 1>&2
7925         exit 1
7926       else
7927         use_xlib_awt="yes"
7928         if test -z "$TOOLKIT"; then
7929            TOOLKIT=gnu.awt.xlib.XToolkit
7930         fi
7931       fi
7932       ;;
7933     gtk)
7934       if test "$no_x" = yes; then
7935          echo "*** xlib peers requested but no X library available" 1>&2
7936          exit 1
7937       else
7938          use_gtk_awt=yes
7939          if test -z "$TOOLKIT"; then
7940             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7941          fi
7942          test -d jniinclude || mkdir jniinclude
7943       fi
7944       ;;
7945     no)
7946       use_xlib_awt=
7947       use_gtk_awt=
7948       break
7949       ;;
7950     *)
7951       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7952       exit 1
7953   esac
7954 done
7955
7956
7957
7958 if test "$use_xlib_awt" = yes; then
7959   XLIB_AWT_TRUE=
7960   XLIB_AWT_FALSE='#'
7961 else
7962   XLIB_AWT_TRUE='#'
7963   XLIB_AWT_FALSE=
7964 fi
7965
7966
7967
7968 if test "$use_gtk_awt" = yes; then
7969   GTK_AWT_TRUE=
7970   GTK_AWT_FALSE='#'
7971 else
7972   GTK_AWT_TRUE='#'
7973   GTK_AWT_FALSE=
7974 fi
7975
7976
7977 # determine whether to enable the cairo GTK Graphics2D backend
7978 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7979 if test "${enable_gtk_cairo+set}" = set; then
7980   enableval="$enable_gtk_cairo"
7981
7982 fi;
7983
7984
7985 if test "x${enable_gtk_cairo}" = xyes; then
7986   GTK_CAIRO_TRUE=
7987   GTK_CAIRO_FALSE='#'
7988 else
7989   GTK_CAIRO_TRUE='#'
7990   GTK_CAIRO_FALSE=
7991 fi
7992
7993 if test "x${enable_gtk_cairo}" = xyes
7994 then
7995
7996   succeeded=no
7997
7998   if test -z "$PKG_CONFIG"; then
7999     # Extract the first word of "pkg-config", so it can be a program name with args.
8000 set dummy pkg-config; ac_word=$2
8001 echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   case $PKG_CONFIG in
8007   [\\/]* | ?:[\\/]*)
8008   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8009   ;;
8010   *)
8011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8013 do
8014   IFS=$as_save_IFS
8015   test -z "$as_dir" && as_dir=.
8016   for ac_exec_ext in '' $ac_executable_extensions; do
8017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8020     break 2
8021   fi
8022 done
8023 done
8024
8025   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8026   ;;
8027 esac
8028 fi
8029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8030
8031 if test -n "$PKG_CONFIG"; then
8032   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8033 echo "${ECHO_T}$PKG_CONFIG" >&6
8034 else
8035   echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6
8037 fi
8038
8039   fi
8040
8041   if test "$PKG_CONFIG" = "no" ; then
8042      echo "*** The pkg-config script could not be found. Make sure it is"
8043      echo "*** in your path, or set the PKG_CONFIG environment variable"
8044      echo "*** to the full path to pkg-config."
8045      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8046   else
8047      PKG_CONFIG_MIN_VERSION=0.9.0
8048      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8049         echo "$as_me:$LINENO: checking for cairo" >&5
8050 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8051
8052         if $PKG_CONFIG --exists "cairo" ; then
8053             echo "$as_me:$LINENO: result: yes" >&5
8054 echo "${ECHO_T}yes" >&6
8055             succeeded=yes
8056
8057             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8058 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8059             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8060             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8061 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8062
8063             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8064 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8065             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8066             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8067 echo "${ECHO_T}$CAIRO_LIBS" >&6
8068         else
8069             CAIRO_CFLAGS=""
8070             CAIRO_LIBS=""
8071             ## If we have a custom action on failure, don't print errors, but
8072             ## do set a variable so people can do so.
8073             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8074             echo $CAIRO_PKG_ERRORS
8075         fi
8076
8077
8078
8079      else
8080         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8081         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8082      fi
8083   fi
8084
8085   if test $succeeded = yes; then
8086      :
8087   else
8088      { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8089 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8090    { (exit 1); exit 1; }; }
8091   fi
8092
8093
8094   succeeded=no
8095
8096   if test -z "$PKG_CONFIG"; then
8097     # Extract the first word of "pkg-config", so it can be a program name with args.
8098 set dummy pkg-config; ac_word=$2
8099 echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8101 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   case $PKG_CONFIG in
8105   [\\/]* | ?:[\\/]*)
8106   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8107   ;;
8108   *)
8109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114   for ac_exec_ext in '' $ac_executable_extensions; do
8115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121 done
8122
8123   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8124   ;;
8125 esac
8126 fi
8127 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8128
8129 if test -n "$PKG_CONFIG"; then
8130   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8131 echo "${ECHO_T}$PKG_CONFIG" >&6
8132 else
8133   echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8135 fi
8136
8137   fi
8138
8139   if test "$PKG_CONFIG" = "no" ; then
8140      echo "*** The pkg-config script could not be found. Make sure it is"
8141      echo "*** in your path, or set the PKG_CONFIG environment variable"
8142      echo "*** to the full path to pkg-config."
8143      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8144   else
8145      PKG_CONFIG_MIN_VERSION=0.9.0
8146      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8147         echo "$as_me:$LINENO: checking for pangoft2" >&5
8148 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8149
8150         if $PKG_CONFIG --exists "pangoft2" ; then
8151             echo "$as_me:$LINENO: result: yes" >&5
8152 echo "${ECHO_T}yes" >&6
8153             succeeded=yes
8154
8155             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8156 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8157             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8158             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8159 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8160
8161             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8162 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8163             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8164             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8165 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8166         else
8167             PANGOFT2_CFLAGS=""
8168             PANGOFT2_LIBS=""
8169             ## If we have a custom action on failure, don't print errors, but
8170             ## do set a variable so people can do so.
8171             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8172             echo $PANGOFT2_PKG_ERRORS
8173         fi
8174
8175
8176
8177      else
8178         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8179         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8180      fi
8181   fi
8182
8183   if test $succeeded = yes; then
8184      :
8185   else
8186      { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8187 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8188    { (exit 1); exit 1; }; }
8189   fi
8190
8191 fi
8192
8193
8194
8195
8196
8197 # FIXME: this should be _libs on some hosts.
8198 libsubdir=.libs
8199
8200 # Allow the GC to be disabled.  Can be useful when debugging.
8201 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8202 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8203 # Check whether --enable-java-gc or --disable-java-gc was given.
8204 if test "${enable_java_gc+set}" = set; then
8205   enableval="$enable_java_gc"
8206   GC=$enableval
8207 else
8208   GC=boehm
8209 fi;
8210 GCLIBS=
8211 GCINCS=
8212 GCDEPS=
8213 GCSPEC=
8214 JC1GCSPEC=
8215 GCTESTSPEC=
8216 case "$GC" in
8217  boehm)
8218     echo "$as_me:$LINENO: result: boehm" >&5
8219 echo "${ECHO_T}boehm" >&6
8220     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8221     JC1GCSPEC='-fuse-boehm-gc'
8222     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8223     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8224     GCOBJS=boehm.lo
8225     GCHDR=boehm-gc.h
8226     # The POSIX thread support needs to know this.
8227
8228 cat >>confdefs.h <<\_ACEOF
8229 #define HAVE_BOEHM_GC 1
8230 _ACEOF
8231
8232     ;;
8233  no)
8234     echo "$as_me:$LINENO: result: none" >&5
8235 echo "${ECHO_T}none" >&6
8236     GCHDR=no-gc.h
8237     ;;
8238  *)
8239     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8240 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8241    { (exit 1); exit 1; }; }
8242     ;;
8243 esac
8244
8245
8246
8247
8248
8249
8250           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8251
8252
8253
8254 if test "$GC" = boehm; then
8255   USING_BOEHMGC_TRUE=
8256   USING_BOEHMGC_FALSE='#'
8257 else
8258   USING_BOEHMGC_TRUE='#'
8259   USING_BOEHMGC_FALSE=
8260 fi
8261
8262
8263
8264 if test "$GC" = no; then
8265   USING_NOGC_TRUE=
8266   USING_NOGC_FALSE='#'
8267 else
8268   USING_NOGC_TRUE='#'
8269   USING_NOGC_FALSE=
8270 fi
8271
8272
8273
8274 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8275 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8276 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8277 echo "$as_me:$LINENO: result: $THREADS" >&5
8278 echo "${ECHO_T}$THREADS" >&6
8279
8280 case "$THREADS" in
8281  no | none | single)
8282     THREADS=none
8283     ;;
8284  posix | pthreads)
8285     THREADS=posix
8286     case "$host" in
8287      *-*-linux*)
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define LINUX_THREADS 1
8291 _ACEOF
8292
8293         ;;
8294     esac
8295     ;;
8296  win32)
8297     ;;
8298  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8299     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8300 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8301    { (exit 1); exit 1; }; }
8302     ;;
8303  *)
8304     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8305 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8306    { (exit 1); exit 1; }; }
8307     ;;
8308 esac
8309
8310 THREADCXXFLAGS=
8311 THREADLDFLAGS=
8312 THREADLIBS=
8313 THREADINCS=
8314 THREADDEPS=
8315 THREADH=
8316 THREADSPEC=
8317 case "$THREADS" in
8318  posix)
8319     case "$host" in
8320      *-*-cygwin*)
8321         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8322         ;;
8323      *-*-freebsd[1234]*)
8324         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8325         # merely adds pthread_* functions) but it does have a -pthread switch
8326         # which is required at link-time to select -lc_r *instead* of -lc.
8327         THREADLDFLAGS=-pthread
8328         # Don't set THREADSPEC here as might be expected since -pthread is
8329         # not processed when found within a spec file, it must come from
8330         # the command line.  For now, the user must provide the -pthread
8331         # switch to link code compiled with gcj.  In future, consider adding
8332         # support for weak references to pthread_* functions ala gthr.h API.
8333         THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
8334         ;;
8335      *-*-freebsd*)
8336         # FreeBSD 5 implements a model much closer to other modern UNIX
8337         # which support threads.  However, it still does not support
8338         # -lpthread.
8339         THREADLDFLAGS=-pthread
8340         THREADSPEC=-lc_r
8341         ;;
8342      alpha*-dec-osf*)
8343         THREADCXXFLAGS=-pthread
8344         # boehm-gc needs some functions from librt, so link that too.
8345         THREADLIBS='-lpthread -lrt'
8346         THREADSPEC='-lpthread -lrt'
8347         ;;
8348      *)
8349         THREADLIBS=-lpthread
8350         THREADSPEC=-lpthread
8351         ;;
8352     esac
8353     THREADH=posix-threads.h
8354     # MIT pthreads doesn't seem to have the mutexattr functions.
8355     # But for now we don't check for it.  We just assume you aren't
8356     # using MIT pthreads.
8357
8358 cat >>confdefs.h <<\_ACEOF
8359 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8360 _ACEOF
8361
8362
8363     # If we're using the Boehm GC, then we happen to know that it
8364     # defines _REENTRANT, so we don't bother.  Eww.
8365     if test "$GC" != boehm; then
8366
8367 cat >>confdefs.h <<\_ACEOF
8368 #define _REENTRANT 1
8369 _ACEOF
8370
8371     fi
8372
8373 cat >>confdefs.h <<\_ACEOF
8374 #define _POSIX_PTHREAD_SEMANTICS 1
8375 _ACEOF
8376
8377     ;;
8378
8379  win32)
8380     THREADH=win32-threads.h
8381     ;;
8382
8383  none)
8384     THREADH=no-threads.h
8385     ;;
8386 esac
8387           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397 if test "$THREADS" = posix; then
8398   USING_POSIX_THREADS_TRUE=
8399   USING_POSIX_THREADS_FALSE='#'
8400 else
8401   USING_POSIX_THREADS_TRUE='#'
8402   USING_POSIX_THREADS_FALSE=
8403 fi
8404
8405
8406
8407 if test "$THREADS" = win32; then
8408   USING_WIN32_THREADS_TRUE=
8409   USING_WIN32_THREADS_FALSE='#'
8410 else
8411   USING_WIN32_THREADS_TRUE='#'
8412   USING_WIN32_THREADS_FALSE=
8413 fi
8414
8415
8416
8417 if test "$THREADS" = none; then
8418   USING_NO_THREADS_TRUE=
8419   USING_NO_THREADS_FALSE='#'
8420 else
8421   USING_NO_THREADS_TRUE='#'
8422   USING_NO_THREADS_FALSE=
8423 fi
8424
8425
8426 if test -d sysdep; then true; else mkdir sysdep; fi
8427           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8428
8429
8430 HASH_SYNC_SPEC=
8431 # Hash synchronization is only useful with posix threads right now.
8432 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8433    HASH_SYNC_SPEC=-fhash-synchronization
8434
8435 cat >>confdefs.h <<\_ACEOF
8436 #define JV_HASH_SYNCHRONIZATION 1
8437 _ACEOF
8438
8439 fi
8440
8441
8442
8443
8444
8445 if test "$GCC" = yes; then
8446   USING_GCC_TRUE=
8447   USING_GCC_FALSE='#'
8448 else
8449   USING_GCC_TRUE='#'
8450   USING_GCC_FALSE=
8451 fi
8452
8453
8454 # We're in the tree with gcc, and need to include some of its headers.
8455 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8456
8457 # Figure out where generated headers like libgcj-config.h get installed.
8458 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8459 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8460 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8461 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8462
8463
8464
8465 if test "x${with_newlib}" = "xyes"; then
8466    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8467    # may not work correctly, because the compiler may not be able to
8468    # link executables.
8469
8470    # We assume newlib.  This lets us hard-code the functions we know
8471    # we'll have.
8472
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_MEMMOVE 1
8475 _ACEOF
8476
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_MEMCPY 1
8480 _ACEOF
8481
8482
8483 cat >>confdefs.h <<\_ACEOF
8484 #define HAVE_STRERROR 1
8485 _ACEOF
8486
8487
8488 cat >>confdefs.h <<\_ACEOF
8489 #define HAVE_TIME 1
8490 _ACEOF
8491
8492
8493 cat >>confdefs.h <<\_ACEOF
8494 #define HAVE_GMTIME_R 1
8495 _ACEOF
8496
8497
8498 cat >>confdefs.h <<\_ACEOF
8499 #define HAVE_LOCALTIME_R 1
8500 _ACEOF
8501
8502
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_USLEEP_DECL 1
8505 _ACEOF
8506
8507    # This is only for POSIX threads.
8508
8509 cat >>confdefs.h <<\_ACEOF
8510 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8511 _ACEOF
8512
8513    # We also assume we are using gcc, which provides alloca.
8514    cat >>confdefs.h <<\_ACEOF
8515 #define HAVE_ALLOCA 1
8516 _ACEOF
8517
8518
8519    # Assume we do not have getuid and friends.
8520
8521 cat >>confdefs.h <<\_ACEOF
8522 #define NO_GETUID 1
8523 _ACEOF
8524
8525    PLATFORMNET=NoNet
8526 else
8527
8528
8529
8530
8531
8532
8533
8534
8535 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8536 do
8537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8538 echo "$as_me:$LINENO: checking for $ac_func" >&5
8539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8540 if eval "test \"\${$as_ac_var+set}\" = set"; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   if test x$gcc_no_link = xyes; then
8544   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8546    { (exit 1); exit 1; }; }
8547 fi
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h.  */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h.  */
8554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8556 #define $ac_func innocuous_$ac_func
8557
8558 /* System header to define __stub macros and hopefully few prototypes,
8559     which can conflict with char $ac_func (); below.
8560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561     <limits.h> exists even on freestanding compilers.  */
8562
8563 #ifdef __STDC__
8564 # include <limits.h>
8565 #else
8566 # include <assert.h>
8567 #endif
8568
8569 #undef $ac_func
8570
8571 /* Override any gcc2 internal prototype to avoid an error.  */
8572 #ifdef __cplusplus
8573 extern "C"
8574 {
8575 #endif
8576 /* We use char because int might match the return type of a gcc2
8577    builtin and then its argument prototype would still apply.  */
8578 char $ac_func ();
8579 /* The GNU C library defines this for functions which it implements
8580     to always fail with ENOSYS.  Some functions are actually named
8581     something starting with __ and the normal name is an alias.  */
8582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8583 choke me
8584 #else
8585 char (*f) () = $ac_func;
8586 #endif
8587 #ifdef __cplusplus
8588 }
8589 #endif
8590
8591 int
8592 main ()
8593 {
8594 return f != $ac_func;
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 rm -f conftest.$ac_objext conftest$ac_exeext
8600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8601   (eval $ac_link) 2>conftest.er1
8602   ac_status=$?
8603   grep -v '^ *+' conftest.er1 >conftest.err
8604   rm -f conftest.er1
8605   cat conftest.err >&5
8606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607   (exit $ac_status); } &&
8608          { ac_try='test -z "$ac_c_werror_flag"
8609                          || test ! -s conftest.err'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; } &&
8615          { ac_try='test -s conftest$ac_exeext'
8616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617   (eval $ac_try) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   eval "$as_ac_var=yes"
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626 eval "$as_ac_var=no"
8627 fi
8628 rm -f conftest.err conftest.$ac_objext \
8629       conftest$ac_exeext conftest.$ac_ext
8630 fi
8631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8633 if test `eval echo '${'$as_ac_var'}'` = yes; then
8634   cat >>confdefs.h <<_ACEOF
8635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8636 _ACEOF
8637
8638 fi
8639 done
8640
8641
8642
8643
8644
8645
8646 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8647 do
8648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8649 echo "$as_me:$LINENO: checking for $ac_func" >&5
8650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8651 if eval "test \"\${$as_ac_var+set}\" = set"; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   if test x$gcc_no_link = xyes; then
8655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8657    { (exit 1); exit 1; }; }
8658 fi
8659 cat >conftest.$ac_ext <<_ACEOF
8660 /* confdefs.h.  */
8661 _ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h.  */
8665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8667 #define $ac_func innocuous_$ac_func
8668
8669 /* System header to define __stub macros and hopefully few prototypes,
8670     which can conflict with char $ac_func (); below.
8671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8672     <limits.h> exists even on freestanding compilers.  */
8673
8674 #ifdef __STDC__
8675 # include <limits.h>
8676 #else
8677 # include <assert.h>
8678 #endif
8679
8680 #undef $ac_func
8681
8682 /* Override any gcc2 internal prototype to avoid an error.  */
8683 #ifdef __cplusplus
8684 extern "C"
8685 {
8686 #endif
8687 /* We use char because int might match the return type of a gcc2
8688    builtin and then its argument prototype would still apply.  */
8689 char $ac_func ();
8690 /* The GNU C library defines this for functions which it implements
8691     to always fail with ENOSYS.  Some functions are actually named
8692     something starting with __ and the normal name is an alias.  */
8693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8694 choke me
8695 #else
8696 char (*f) () = $ac_func;
8697 #endif
8698 #ifdef __cplusplus
8699 }
8700 #endif
8701
8702 int
8703 main ()
8704 {
8705 return f != $ac_func;
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712   (eval $ac_link) 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -z "$ac_c_werror_flag"
8720                          || test ! -s conftest.err'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   eval "$as_ac_var=yes"
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 eval "$as_ac_var=no"
8738 fi
8739 rm -f conftest.err conftest.$ac_objext \
8740       conftest$ac_exeext conftest.$ac_ext
8741 fi
8742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8744 if test `eval echo '${'$as_ac_var'}'` = yes; then
8745   cat >>confdefs.h <<_ACEOF
8746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8747 _ACEOF
8748
8749 fi
8750 done
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8762 do
8763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8764 echo "$as_me:$LINENO: checking for $ac_func" >&5
8765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8766 if eval "test \"\${$as_ac_var+set}\" = set"; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   if test x$gcc_no_link = xyes; then
8770   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8772    { (exit 1); exit 1; }; }
8773 fi
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8782 #define $ac_func innocuous_$ac_func
8783
8784 /* System header to define __stub macros and hopefully few prototypes,
8785     which can conflict with char $ac_func (); below.
8786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8787     <limits.h> exists even on freestanding compilers.  */
8788
8789 #ifdef __STDC__
8790 # include <limits.h>
8791 #else
8792 # include <assert.h>
8793 #endif
8794
8795 #undef $ac_func
8796
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char $ac_func ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8809 choke me
8810 #else
8811 char (*f) () = $ac_func;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != $ac_func;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>conftest.er1
8828   ac_status=$?
8829   grep -v '^ *+' conftest.er1 >conftest.err
8830   rm -f conftest.er1
8831   cat conftest.err >&5
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } &&
8834          { ac_try='test -z "$ac_c_werror_flag"
8835                          || test ! -s conftest.err'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; } &&
8841          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8847   eval "$as_ac_var=yes"
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852 eval "$as_ac_var=no"
8853 fi
8854 rm -f conftest.err conftest.$ac_objext \
8855       conftest$ac_exeext conftest.$ac_ext
8856 fi
8857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8859 if test `eval echo '${'$as_ac_var'}'` = yes; then
8860   cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8862 _ACEOF
8863
8864 fi
8865 done
8866
8867
8868
8869 for ac_func in nl_langinfo setlocale
8870 do
8871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8872 echo "$as_me:$LINENO: checking for $ac_func" >&5
8873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8874 if eval "test \"\${$as_ac_var+set}\" = set"; then
8875   echo $ECHO_N "(cached) $ECHO_C" >&6
8876 else
8877   if test x$gcc_no_link = xyes; then
8878   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8880    { (exit 1); exit 1; }; }
8881 fi
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8890 #define $ac_func innocuous_$ac_func
8891
8892 /* System header to define __stub macros and hopefully few prototypes,
8893     which can conflict with char $ac_func (); below.
8894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8895     <limits.h> exists even on freestanding compilers.  */
8896
8897 #ifdef __STDC__
8898 # include <limits.h>
8899 #else
8900 # include <assert.h>
8901 #endif
8902
8903 #undef $ac_func
8904
8905 /* Override any gcc2 internal prototype to avoid an error.  */
8906 #ifdef __cplusplus
8907 extern "C"
8908 {
8909 #endif
8910 /* We use char because int might match the return type of a gcc2
8911    builtin and then its argument prototype would still apply.  */
8912 char $ac_func ();
8913 /* The GNU C library defines this for functions which it implements
8914     to always fail with ENOSYS.  Some functions are actually named
8915     something starting with __ and the normal name is an alias.  */
8916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8917 choke me
8918 #else
8919 char (*f) () = $ac_func;
8920 #endif
8921 #ifdef __cplusplus
8922 }
8923 #endif
8924
8925 int
8926 main ()
8927 {
8928 return f != $ac_func;
8929   ;
8930   return 0;
8931 }
8932 _ACEOF
8933 rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935   (eval $ac_link) 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } &&
8942          { ac_try='test -z "$ac_c_werror_flag"
8943                          || test ! -s conftest.err'
8944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8945   (eval $ac_try) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); }; } &&
8949          { ac_try='test -s conftest$ac_exeext'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; }; then
8955   eval "$as_ac_var=yes"
8956 else
8957   echo "$as_me: failed program was:" >&5
8958 sed 's/^/| /' conftest.$ac_ext >&5
8959
8960 eval "$as_ac_var=no"
8961 fi
8962 rm -f conftest.err conftest.$ac_objext \
8963       conftest$ac_exeext conftest.$ac_ext
8964 fi
8965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8967 if test `eval echo '${'$as_ac_var'}'` = yes; then
8968   cat >>confdefs.h <<_ACEOF
8969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8970 _ACEOF
8971
8972 fi
8973 done
8974
8975
8976
8977 for ac_func in inet_aton inet_addr
8978 do
8979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8980 echo "$as_me:$LINENO: checking for $ac_func" >&5
8981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8982 if eval "test \"\${$as_ac_var+set}\" = set"; then
8983   echo $ECHO_N "(cached) $ECHO_C" >&6
8984 else
8985   if test x$gcc_no_link = xyes; then
8986   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8988    { (exit 1); exit 1; }; }
8989 fi
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8998 #define $ac_func innocuous_$ac_func
8999
9000 /* System header to define __stub macros and hopefully few prototypes,
9001     which can conflict with char $ac_func (); below.
9002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9003     <limits.h> exists even on freestanding compilers.  */
9004
9005 #ifdef __STDC__
9006 # include <limits.h>
9007 #else
9008 # include <assert.h>
9009 #endif
9010
9011 #undef $ac_func
9012
9013 /* Override any gcc2 internal prototype to avoid an error.  */
9014 #ifdef __cplusplus
9015 extern "C"
9016 {
9017 #endif
9018 /* We use char because int might match the return type of a gcc2
9019    builtin and then its argument prototype would still apply.  */
9020 char $ac_func ();
9021 /* The GNU C library defines this for functions which it implements
9022     to always fail with ENOSYS.  Some functions are actually named
9023     something starting with __ and the normal name is an alias.  */
9024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9025 choke me
9026 #else
9027 char (*f) () = $ac_func;
9028 #endif
9029 #ifdef __cplusplus
9030 }
9031 #endif
9032
9033 int
9034 main ()
9035 {
9036 return f != $ac_func;
9037   ;
9038   return 0;
9039 }
9040 _ACEOF
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9043   (eval $ac_link) 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } &&
9050          { ac_try='test -z "$ac_c_werror_flag"
9051                          || test ! -s conftest.err'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; } &&
9057          { ac_try='test -s conftest$ac_exeext'
9058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059   (eval $ac_try) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; }; then
9063   eval "$as_ac_var=yes"
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 eval "$as_ac_var=no"
9069 fi
9070 rm -f conftest.err conftest.$ac_objext \
9071       conftest$ac_exeext conftest.$ac_ext
9072 fi
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9075 if test `eval echo '${'$as_ac_var'}'` = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9078 _ACEOF
9079  break
9080 fi
9081 done
9082
9083
9084
9085
9086 for ac_func in inet_pton uname inet_ntoa
9087 do
9088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9089 echo "$as_me:$LINENO: checking for $ac_func" >&5
9090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9091 if eval "test \"\${$as_ac_var+set}\" = set"; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094   if test x$gcc_no_link = xyes; then
9095   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9097    { (exit 1); exit 1; }; }
9098 fi
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9107 #define $ac_func innocuous_$ac_func
9108
9109 /* System header to define __stub macros and hopefully few prototypes,
9110     which can conflict with char $ac_func (); below.
9111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9112     <limits.h> exists even on freestanding compilers.  */
9113
9114 #ifdef __STDC__
9115 # include <limits.h>
9116 #else
9117 # include <assert.h>
9118 #endif
9119
9120 #undef $ac_func
9121
9122 /* Override any gcc2 internal prototype to avoid an error.  */
9123 #ifdef __cplusplus
9124 extern "C"
9125 {
9126 #endif
9127 /* We use char because int might match the return type of a gcc2
9128    builtin and then its argument prototype would still apply.  */
9129 char $ac_func ();
9130 /* The GNU C library defines this for functions which it implements
9131     to always fail with ENOSYS.  Some functions are actually named
9132     something starting with __ and the normal name is an alias.  */
9133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9134 choke me
9135 #else
9136 char (*f) () = $ac_func;
9137 #endif
9138 #ifdef __cplusplus
9139 }
9140 #endif
9141
9142 int
9143 main ()
9144 {
9145 return f != $ac_func;
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext conftest$ac_exeext
9151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152   (eval $ac_link) 2>conftest.er1
9153   ac_status=$?
9154   grep -v '^ *+' conftest.er1 >conftest.err
9155   rm -f conftest.er1
9156   cat conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -z "$ac_c_werror_flag"
9160                          || test ! -s conftest.err'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; } &&
9166          { ac_try='test -s conftest$ac_exeext'
9167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168   (eval $ac_try) 2>&5
9169   ac_status=$?
9170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171   (exit $ac_status); }; }; then
9172   eval "$as_ac_var=yes"
9173 else
9174   echo "$as_me: failed program was:" >&5
9175 sed 's/^/| /' conftest.$ac_ext >&5
9176
9177 eval "$as_ac_var=no"
9178 fi
9179 rm -f conftest.err conftest.$ac_objext \
9180       conftest$ac_exeext conftest.$ac_ext
9181 fi
9182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9184 if test `eval echo '${'$as_ac_var'}'` = yes; then
9185   cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9187 _ACEOF
9188
9189 fi
9190 done
9191
9192
9193
9194
9195
9196
9197 for ac_func in fork execvp pipe sigaction ftruncate
9198 do
9199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9200 echo "$as_me:$LINENO: checking for $ac_func" >&5
9201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9202 if eval "test \"\${$as_ac_var+set}\" = set"; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   if test x$gcc_no_link = xyes; then
9206   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9208    { (exit 1); exit 1; }; }
9209 fi
9210 cat >conftest.$ac_ext <<_ACEOF
9211 /* confdefs.h.  */
9212 _ACEOF
9213 cat confdefs.h >>conftest.$ac_ext
9214 cat >>conftest.$ac_ext <<_ACEOF
9215 /* end confdefs.h.  */
9216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9218 #define $ac_func innocuous_$ac_func
9219
9220 /* System header to define __stub macros and hopefully few prototypes,
9221     which can conflict with char $ac_func (); below.
9222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9223     <limits.h> exists even on freestanding compilers.  */
9224
9225 #ifdef __STDC__
9226 # include <limits.h>
9227 #else
9228 # include <assert.h>
9229 #endif
9230
9231 #undef $ac_func
9232
9233 /* Override any gcc2 internal prototype to avoid an error.  */
9234 #ifdef __cplusplus
9235 extern "C"
9236 {
9237 #endif
9238 /* We use char because int might match the return type of a gcc2
9239    builtin and then its argument prototype would still apply.  */
9240 char $ac_func ();
9241 /* The GNU C library defines this for functions which it implements
9242     to always fail with ENOSYS.  Some functions are actually named
9243     something starting with __ and the normal name is an alias.  */
9244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9245 choke me
9246 #else
9247 char (*f) () = $ac_func;
9248 #endif
9249 #ifdef __cplusplus
9250 }
9251 #endif
9252
9253 int
9254 main ()
9255 {
9256 return f != $ac_func;
9257   ;
9258   return 0;
9259 }
9260 _ACEOF
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9263   (eval $ac_link) 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } &&
9270          { ac_try='test -z "$ac_c_werror_flag"
9271                          || test ! -s conftest.err'
9272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273   (eval $ac_try) 2>&5
9274   ac_status=$?
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); }; } &&
9277          { ac_try='test -s conftest$ac_exeext'
9278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9279   (eval $ac_try) 2>&5
9280   ac_status=$?
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); }; }; then
9283   eval "$as_ac_var=yes"
9284 else
9285   echo "$as_me: failed program was:" >&5
9286 sed 's/^/| /' conftest.$ac_ext >&5
9287
9288 eval "$as_ac_var=no"
9289 fi
9290 rm -f conftest.err conftest.$ac_objext \
9291       conftest$ac_exeext conftest.$ac_ext
9292 fi
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9295 if test `eval echo '${'$as_ac_var'}'` = yes; then
9296   cat >>confdefs.h <<_ACEOF
9297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9298 _ACEOF
9299
9300 fi
9301 done
9302
9303    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9304 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9305 if test "${ac_cv_header_stdc+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   cat >conftest.$ac_ext <<_ACEOF
9309 /* confdefs.h.  */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h.  */
9314 #include <stdlib.h>
9315 #include <stdarg.h>
9316 #include <string.h>
9317 #include <float.h>
9318
9319 int
9320 main ()
9321 {
9322
9323   ;
9324   return 0;
9325 }
9326 _ACEOF
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329   (eval $ac_compile) 2>conftest.er1
9330   ac_status=$?
9331   grep -v '^ *+' conftest.er1 >conftest.err
9332   rm -f conftest.er1
9333   cat conftest.err >&5
9334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335   (exit $ac_status); } &&
9336          { ac_try='test -z "$ac_c_werror_flag"
9337                          || test ! -s conftest.err'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; } &&
9343          { ac_try='test -s conftest.$ac_objext'
9344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9345   (eval $ac_try) 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; }; then
9349   ac_cv_header_stdc=yes
9350 else
9351   echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ac_cv_header_stdc=no
9355 fi
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9357
9358 if test $ac_cv_header_stdc = yes; then
9359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9360   cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h.  */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h.  */
9366 #include <string.h>
9367
9368 _ACEOF
9369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9370   $EGREP "memchr" >/dev/null 2>&1; then
9371   :
9372 else
9373   ac_cv_header_stdc=no
9374 fi
9375 rm -f conftest*
9376
9377 fi
9378
9379 if test $ac_cv_header_stdc = yes; then
9380   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9381   cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h.  */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h.  */
9387 #include <stdlib.h>
9388
9389 _ACEOF
9390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9391   $EGREP "free" >/dev/null 2>&1; then
9392   :
9393 else
9394   ac_cv_header_stdc=no
9395 fi
9396 rm -f conftest*
9397
9398 fi
9399
9400 if test $ac_cv_header_stdc = yes; then
9401   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9402   if test "$cross_compiling" = yes; then
9403   :
9404 else
9405   cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411 #include <ctype.h>
9412 #if ((' ' & 0x0FF) == 0x020)
9413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9415 #else
9416 # define ISLOWER(c) \
9417                    (('a' <= (c) && (c) <= 'i') \
9418                      || ('j' <= (c) && (c) <= 'r') \
9419                      || ('s' <= (c) && (c) <= 'z'))
9420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9421 #endif
9422
9423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9424 int
9425 main ()
9426 {
9427   int i;
9428   for (i = 0; i < 256; i++)
9429     if (XOR (islower (i), ISLOWER (i))
9430         || toupper (i) != TOUPPER (i))
9431       exit(2);
9432   exit (0);
9433 }
9434 _ACEOF
9435 rm -f conftest$ac_exeext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9437   (eval $ac_link) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   :
9447 else
9448   echo "$as_me: program exited with status $ac_status" >&5
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 ( exit $ac_status )
9453 ac_cv_header_stdc=no
9454 fi
9455 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9456 fi
9457 fi
9458 fi
9459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9461 if test $ac_cv_header_stdc = yes; then
9462
9463 cat >>confdefs.h <<\_ACEOF
9464 #define STDC_HEADERS 1
9465 _ACEOF
9466
9467 fi
9468
9469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9480                   inttypes.h stdint.h unistd.h
9481 do
9482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9483 echo "$as_me:$LINENO: checking for $ac_header" >&5
9484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 $ac_includes_default
9495
9496 #include <$ac_header>
9497 _ACEOF
9498 rm -f conftest.$ac_objext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500   (eval $ac_compile) 2>conftest.er1
9501   ac_status=$?
9502   grep -v '^ *+' conftest.er1 >conftest.err
9503   rm -f conftest.er1
9504   cat conftest.err >&5
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); } &&
9507          { ac_try='test -z "$ac_c_werror_flag"
9508                          || test ! -s conftest.err'
9509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510   (eval $ac_try) 2>&5
9511   ac_status=$?
9512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513   (exit $ac_status); }; } &&
9514          { ac_try='test -s conftest.$ac_objext'
9515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516   (eval $ac_try) 2>&5
9517   ac_status=$?
9518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519   (exit $ac_status); }; }; then
9520   eval "$as_ac_Header=yes"
9521 else
9522   echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525 eval "$as_ac_Header=no"
9526 fi
9527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9528 fi
9529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9532   cat >>confdefs.h <<_ACEOF
9533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9534 _ACEOF
9535
9536 fi
9537
9538 done
9539
9540
9541
9542
9543
9544 for ac_header in execinfo.h unistd.h dlfcn.h
9545 do
9546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9548   echo "$as_me:$LINENO: checking for $ac_header" >&5
9549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 fi
9553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9555 else
9556   # Is the header compilable?
9557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9559 cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 $ac_includes_default
9566 #include <$ac_header>
9567 _ACEOF
9568 rm -f conftest.$ac_objext
9569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9570   (eval $ac_compile) 2>conftest.er1
9571   ac_status=$?
9572   grep -v '^ *+' conftest.er1 >conftest.err
9573   rm -f conftest.er1
9574   cat conftest.err >&5
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); } &&
9577          { ac_try='test -z "$ac_c_werror_flag"
9578                          || test ! -s conftest.err'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; } &&
9584          { ac_try='test -s conftest.$ac_objext'
9585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586   (eval $ac_try) 2>&5
9587   ac_status=$?
9588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589   (exit $ac_status); }; }; then
9590   ac_header_compiler=yes
9591 else
9592   echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9594
9595 ac_header_compiler=no
9596 fi
9597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9598 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9599 echo "${ECHO_T}$ac_header_compiler" >&6
9600
9601 # Is the header present?
9602 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 #include <$ac_header>
9611 _ACEOF
9612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } >/dev/null; then
9620   if test -s conftest.err; then
9621     ac_cpp_err=$ac_c_preproc_warn_flag
9622     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9623   else
9624     ac_cpp_err=
9625   fi
9626 else
9627   ac_cpp_err=yes
9628 fi
9629 if test -z "$ac_cpp_err"; then
9630   ac_header_preproc=yes
9631 else
9632   echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635   ac_header_preproc=no
9636 fi
9637 rm -f conftest.err conftest.$ac_ext
9638 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9639 echo "${ECHO_T}$ac_header_preproc" >&6
9640
9641 # So?  What about this header?
9642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9643   yes:no: )
9644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9648     ac_header_preproc=yes
9649     ;;
9650   no:yes:* )
9651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9663     (
9664       cat <<\_ASBOX
9665 ## ---------------------------------- ##
9666 ## Report this to the libjava lists.  ##
9667 ## ---------------------------------- ##
9668 _ASBOX
9669     ) |
9670       sed "s/^/$as_me: WARNING:     /" >&2
9671     ;;
9672 esac
9673 echo "$as_me:$LINENO: checking for $ac_header" >&5
9674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9676   echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678   eval "$as_ac_Header=\$ac_header_preproc"
9679 fi
9680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9682
9683 fi
9684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9685   cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9687 _ACEOF
9688
9689 fi
9690
9691 done
9692
9693    echo "$as_me:$LINENO: checking for backtrace" >&5
9694 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9695 if test "${ac_cv_func_backtrace+set}" = set; then
9696   echo $ECHO_N "(cached) $ECHO_C" >&6
9697 else
9698   if test x$gcc_no_link = xyes; then
9699   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9700 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9701    { (exit 1); exit 1; }; }
9702 fi
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9711 #define backtrace innocuous_backtrace
9712
9713 /* System header to define __stub macros and hopefully few prototypes,
9714     which can conflict with char backtrace (); below.
9715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9716     <limits.h> exists even on freestanding compilers.  */
9717
9718 #ifdef __STDC__
9719 # include <limits.h>
9720 #else
9721 # include <assert.h>
9722 #endif
9723
9724 #undef backtrace
9725
9726 /* Override any gcc2 internal prototype to avoid an error.  */
9727 #ifdef __cplusplus
9728 extern "C"
9729 {
9730 #endif
9731 /* We use char because int might match the return type of a gcc2
9732    builtin and then its argument prototype would still apply.  */
9733 char backtrace ();
9734 /* The GNU C library defines this for functions which it implements
9735     to always fail with ENOSYS.  Some functions are actually named
9736     something starting with __ and the normal name is an alias.  */
9737 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9738 choke me
9739 #else
9740 char (*f) () = backtrace;
9741 #endif
9742 #ifdef __cplusplus
9743 }
9744 #endif
9745
9746 int
9747 main ()
9748 {
9749 return f != backtrace;
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756   (eval $ac_link) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   ac_cv_func_backtrace=yes
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ac_cv_func_backtrace=no
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784       conftest$ac_exeext conftest.$ac_ext
9785 fi
9786 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9787 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9788 if test $ac_cv_func_backtrace = yes; then
9789
9790      case "$host" in
9791        ia64-*-linux*)
9792          # Has broken backtrace()
9793          ;;
9794        mips*-*-linux*)
9795          # Has broken backtrace(), but we supply our own.
9796          if test -d sysdep; then true; else mkdir -p sysdep; fi
9797          supply_backtrace=yes
9798
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_BACKTRACE 1
9801 _ACEOF
9802
9803          ;;
9804        *)
9805
9806 cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_BACKTRACE 1
9808 _ACEOF
9809
9810          ;;
9811      esac
9812
9813 else
9814
9815      case "$host" in
9816        *mingw*)
9817          # Has backtrace() defined in libgcj itself
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define HAVE_BACKTRACE 1
9821 _ACEOF
9822
9823          ;;
9824      esac
9825
9826 fi
9827
9828
9829    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9830 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9831 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9832   echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834   ac_check_lib_save_LIBS=$LIBS
9835 LIBS="-ldl  $LIBS"
9836 if test x$gcc_no_link = xyes; then
9837   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9839    { (exit 1); exit 1; }; }
9840 fi
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847
9848 /* Override any gcc2 internal prototype to avoid an error.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 /* We use char because int might match the return type of a gcc2
9853    builtin and then its argument prototype would still apply.  */
9854 char dladdr ();
9855 int
9856 main ()
9857 {
9858 dladdr ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865   (eval $ac_link) 2>conftest.er1
9866   ac_status=$?
9867   grep -v '^ *+' conftest.er1 >conftest.err
9868   rm -f conftest.er1
9869   cat conftest.err >&5
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); } &&
9872          { ac_try='test -z "$ac_c_werror_flag"
9873                          || test ! -s conftest.err'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_lib_dl_dladdr=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_cv_lib_dl_dladdr=no
9891 fi
9892 rm -f conftest.err conftest.$ac_objext \
9893       conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_lib_save_LIBS
9895 fi
9896 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9897 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9898 if test $ac_cv_lib_dl_dladdr = yes; then
9899
9900      if test "x${disable_dladdr}" = "xyes"; then
9901        #Broken dladdr().
9902        true
9903      else
9904
9905 cat >>confdefs.h <<\_ACEOF
9906 #define HAVE_DLADDR 1
9907 _ACEOF
9908
9909      fi
9910
9911 fi
9912
9913    if test x"$build" = x"$host"; then
9914      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9915 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9916 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9917   echo $ECHO_N "(cached) $ECHO_C" >&6
9918 else
9919   test "$cross_compiling" = yes &&
9920   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9921 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9922    { (exit 1); exit 1; }; }
9923 if test -r "/proc/self/exe"; then
9924   ac_cv_file__proc_self_exe=yes
9925 else
9926   ac_cv_file__proc_self_exe=no
9927 fi
9928 fi
9929 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9930 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9931 if test $ac_cv_file__proc_self_exe = yes; then
9932
9933 cat >>confdefs.h <<_ACEOF
9934 #define HAVE__PROC_SELF_EXE 1
9935 _ACEOF
9936
9937
9938
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_PROC_SELF_EXE 1
9941 _ACEOF
9942
9943 fi
9944
9945    else
9946      case $host in
9947      *-linux*)
9948
9949 cat >>confdefs.h <<\_ACEOF
9950 #define HAVE_PROC_SELF_EXE 1
9951 _ACEOF
9952
9953        ;;
9954      esac
9955    fi
9956
9957
9958
9959   am_cv_lib_iconv_ldpath=
9960
9961 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9962 if test "${with_libiconv_prefix+set}" = set; then
9963   withval="$with_libiconv_prefix"
9964
9965     for dir in `echo "$withval" | tr : ' '`; do
9966       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9967       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9968     done
9969
9970 fi;
9971
9972   echo "$as_me:$LINENO: checking for iconv" >&5
9973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9974 if test "${am_cv_func_iconv+set}" = set; then
9975   echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977
9978     am_cv_func_iconv="no, consider installing GNU libiconv"
9979     am_cv_lib_iconv=no
9980     if test x$gcc_no_link = xyes; then
9981   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9983    { (exit 1); exit 1; }; }
9984 fi
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h.  */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h.  */
9991 #include <stdlib.h>
9992 #include <iconv.h>
9993 int
9994 main ()
9995 {
9996 iconv_t cd = iconv_open("","");
9997        iconv(cd,NULL,NULL,NULL,NULL);
9998        iconv_close(cd);
9999   ;
10000   return 0;
10001 }
10002 _ACEOF
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005   (eval $ac_link) 2>conftest.er1
10006   ac_status=$?
10007   grep -v '^ *+' conftest.er1 >conftest.err
10008   rm -f conftest.er1
10009   cat conftest.err >&5
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); } &&
10012          { ac_try='test -z "$ac_c_werror_flag"
10013                          || test ! -s conftest.err'
10014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015   (eval $ac_try) 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); }; } &&
10019          { ac_try='test -s conftest$ac_exeext'
10020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021   (eval $ac_try) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); }; }; then
10025   am_cv_func_iconv=yes
10026 else
10027   echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 fi
10031 rm -f conftest.err conftest.$ac_objext \
10032       conftest$ac_exeext conftest.$ac_ext
10033     if test "$am_cv_func_iconv" != yes; then
10034       am_save_LIBS="$LIBS"
10035       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
10036       if test x$gcc_no_link = xyes; then
10037   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10039    { (exit 1); exit 1; }; }
10040 fi
10041 cat >conftest.$ac_ext <<_ACEOF
10042 /* confdefs.h.  */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h.  */
10047 #include <stdlib.h>
10048 #include <iconv.h>
10049 int
10050 main ()
10051 {
10052 iconv_t cd = iconv_open("","");
10053          iconv(cd,NULL,NULL,NULL,NULL);
10054          iconv_close(cd);
10055   ;
10056   return 0;
10057 }
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061   (eval $ac_link) 2>conftest.er1
10062   ac_status=$?
10063   grep -v '^ *+' conftest.er1 >conftest.err
10064   rm -f conftest.er1
10065   cat conftest.err >&5
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); } &&
10068          { ac_try='test -z "$ac_c_werror_flag"
10069                          || test ! -s conftest.err'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; } &&
10075          { ac_try='test -s conftest$ac_exeext'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; }; then
10081   am_cv_lib_iconv=yes
10082         am_cv_func_iconv=yes
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087 fi
10088 rm -f conftest.err conftest.$ac_objext \
10089       conftest$ac_exeext conftest.$ac_ext
10090       LIBS="$am_save_LIBS"
10091     fi
10092
10093 fi
10094 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10095 echo "${ECHO_T}$am_cv_func_iconv" >&6
10096   if test "$am_cv_func_iconv" = yes; then
10097
10098 cat >>confdefs.h <<\_ACEOF
10099 #define HAVE_ICONV 1
10100 _ACEOF
10101
10102     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10103 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10104     if test "${am_cv_proto_iconv+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107
10108       cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114
10115 #include <stdlib.h>
10116 #include <iconv.h>
10117 extern
10118 #ifdef __cplusplus
10119 "C"
10120 #endif
10121 #if defined(__STDC__) || defined(__cplusplus)
10122 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10123 #else
10124 size_t iconv();
10125 #endif
10126
10127 int
10128 main ()
10129 {
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   am_cv_proto_iconv_arg1=""
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 am_cv_proto_iconv_arg1="const"
10163 fi
10164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10165       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);"
10166 fi
10167
10168     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10169     echo "$as_me:$LINENO: result: ${ac_t:-
10170          }$am_cv_proto_iconv" >&5
10171 echo "${ECHO_T}${ac_t:-
10172          }$am_cv_proto_iconv" >&6
10173
10174 cat >>confdefs.h <<_ACEOF
10175 #define ICONV_CONST $am_cv_proto_iconv_arg1
10176 _ACEOF
10177
10178   fi
10179   LIBICONV=
10180   if test "$am_cv_lib_iconv" = yes; then
10181     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
10182   fi
10183
10184
10185
10186 for ac_header in locale.h
10187 do
10188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10190   echo "$as_me:$LINENO: checking for $ac_header" >&5
10191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10193   echo $ECHO_N "(cached) $ECHO_C" >&6
10194 fi
10195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10197 else
10198   # Is the header compilable?
10199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207 $ac_includes_default
10208 #include <$ac_header>
10209 _ACEOF
10210 rm -f conftest.$ac_objext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212   (eval $ac_compile) 2>conftest.er1
10213   ac_status=$?
10214   grep -v '^ *+' conftest.er1 >conftest.err
10215   rm -f conftest.er1
10216   cat conftest.err >&5
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } &&
10219          { ac_try='test -z "$ac_c_werror_flag"
10220                          || test ! -s conftest.err'
10221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222   (eval $ac_try) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; } &&
10226          { ac_try='test -s conftest.$ac_objext'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; }; then
10232   ac_header_compiler=yes
10233 else
10234   echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ac_header_compiler=no
10238 fi
10239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10240 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10241 echo "${ECHO_T}$ac_header_compiler" >&6
10242
10243 # Is the header present?
10244 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 #include <$ac_header>
10253 _ACEOF
10254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } >/dev/null; then
10262   if test -s conftest.err; then
10263     ac_cpp_err=$ac_c_preproc_warn_flag
10264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10265   else
10266     ac_cpp_err=
10267   fi
10268 else
10269   ac_cpp_err=yes
10270 fi
10271 if test -z "$ac_cpp_err"; then
10272   ac_header_preproc=yes
10273 else
10274   echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277   ac_header_preproc=no
10278 fi
10279 rm -f conftest.err conftest.$ac_ext
10280 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10281 echo "${ECHO_T}$ac_header_preproc" >&6
10282
10283 # So?  What about this header?
10284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10285   yes:no: )
10286     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10290     ac_header_preproc=yes
10291     ;;
10292   no:yes:* )
10293     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10295     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10296 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10297     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10299     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10300 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10303     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10305     (
10306       cat <<\_ASBOX
10307 ## ---------------------------------- ##
10308 ## Report this to the libjava lists.  ##
10309 ## ---------------------------------- ##
10310 _ASBOX
10311     ) |
10312       sed "s/^/$as_me: WARNING:     /" >&2
10313     ;;
10314 esac
10315 echo "$as_me:$LINENO: checking for $ac_header" >&5
10316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   eval "$as_ac_Header=\$ac_header_preproc"
10321 fi
10322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324
10325 fi
10326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327   cat >>confdefs.h <<_ACEOF
10328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329 _ACEOF
10330
10331 fi
10332
10333 done
10334
10335   if test $ac_cv_header_locale_h = yes; then
10336     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10337 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10338 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10339   echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341   if test x$gcc_no_link = xyes; then
10342   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10344    { (exit 1); exit 1; }; }
10345 fi
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h.  */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h.  */
10352 #include <locale.h>
10353 int
10354 main ()
10355 {
10356 return LC_MESSAGES
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext conftest$ac_exeext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363   (eval $ac_link) 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } &&
10370          { ac_try='test -z "$ac_c_werror_flag"
10371                          || test ! -s conftest.err'
10372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373   (eval $ac_try) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; } &&
10377          { ac_try='test -s conftest$ac_exeext'
10378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379   (eval $ac_try) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; }; then
10383   am_cv_val_LC_MESSAGES=yes
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 am_cv_val_LC_MESSAGES=no
10389 fi
10390 rm -f conftest.err conftest.$ac_objext \
10391       conftest$ac_exeext conftest.$ac_ext
10392 fi
10393 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10394 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10395     if test $am_cv_val_LC_MESSAGES = yes; then
10396
10397 cat >>confdefs.h <<\_ACEOF
10398 #define HAVE_LC_MESSAGES 1
10399 _ACEOF
10400
10401     fi
10402   fi
10403    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10404 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10405 if test "${ac_cv_struct_tm+set}" = set; then
10406   echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408   cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h.  */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h.  */
10414 #include <sys/types.h>
10415 #include <time.h>
10416
10417 int
10418 main ()
10419 {
10420 struct tm *tp; tp->tm_sec;
10421   ;
10422   return 0;
10423 }
10424 _ACEOF
10425 rm -f conftest.$ac_objext
10426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427   (eval $ac_compile) 2>conftest.er1
10428   ac_status=$?
10429   grep -v '^ *+' conftest.er1 >conftest.err
10430   rm -f conftest.er1
10431   cat conftest.err >&5
10432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433   (exit $ac_status); } &&
10434          { ac_try='test -z "$ac_c_werror_flag"
10435                          || test ! -s conftest.err'
10436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437   (eval $ac_try) 2>&5
10438   ac_status=$?
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); }; } &&
10441          { ac_try='test -s conftest.$ac_objext'
10442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443   (eval $ac_try) 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; }; then
10447   ac_cv_struct_tm=time.h
10448 else
10449   echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10451
10452 ac_cv_struct_tm=sys/time.h
10453 fi
10454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10455 fi
10456 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10457 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10458 if test $ac_cv_struct_tm = sys/time.h; then
10459
10460 cat >>confdefs.h <<\_ACEOF
10461 #define TM_IN_SYS_TIME 1
10462 _ACEOF
10463
10464 fi
10465
10466 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10467 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10468 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10469   echo $ECHO_N "(cached) $ECHO_C" >&6
10470 else
10471   cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477 #include <sys/types.h>
10478 #include <$ac_cv_struct_tm>
10479
10480
10481 int
10482 main ()
10483 {
10484 static struct tm ac_aggr;
10485 if (ac_aggr.tm_zone)
10486 return 0;
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493   (eval $ac_compile) 2>conftest.er1
10494   ac_status=$?
10495   grep -v '^ *+' conftest.er1 >conftest.err
10496   rm -f conftest.er1
10497   cat conftest.err >&5
10498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499   (exit $ac_status); } &&
10500          { ac_try='test -z "$ac_c_werror_flag"
10501                          || test ! -s conftest.err'
10502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503   (eval $ac_try) 2>&5
10504   ac_status=$?
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); }; } &&
10507          { ac_try='test -s conftest.$ac_objext'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513   ac_cv_member_struct_tm_tm_zone=yes
10514 else
10515   echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10517
10518 cat >conftest.$ac_ext <<_ACEOF
10519 /* confdefs.h.  */
10520 _ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h.  */
10524 #include <sys/types.h>
10525 #include <$ac_cv_struct_tm>
10526
10527
10528 int
10529 main ()
10530 {
10531 static struct tm ac_aggr;
10532 if (sizeof ac_aggr.tm_zone)
10533 return 0;
10534   ;
10535   return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext
10539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10540   (eval $ac_compile) 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -z "$ac_c_werror_flag"
10548                          || test ! -s conftest.err'
10549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550   (eval $ac_try) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); }; } &&
10554          { ac_try='test -s conftest.$ac_objext'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   ac_cv_member_struct_tm_tm_zone=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 ac_cv_member_struct_tm_tm_zone=no
10566 fi
10567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10568 fi
10569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10570 fi
10571 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10572 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10573 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10574
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_STRUCT_TM_TM_ZONE 1
10577 _ACEOF
10578
10579
10580 fi
10581
10582 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10583
10584 cat >>confdefs.h <<\_ACEOF
10585 #define HAVE_TM_ZONE 1
10586 _ACEOF
10587
10588 else
10589   echo "$as_me:$LINENO: checking for tzname" >&5
10590 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10591 if test "${ac_cv_var_tzname+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   if test x$gcc_no_link = xyes; then
10595   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10597    { (exit 1); exit 1; }; }
10598 fi
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h.  */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h.  */
10605 #include <time.h>
10606 #ifndef tzname /* For SGI.  */
10607 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10608 #endif
10609
10610 int
10611 main ()
10612 {
10613 atoi(*tzname);
10614   ;
10615   return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620   (eval $ac_link) 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } &&
10627          { ac_try='test -z "$ac_c_werror_flag"
10628                          || test ! -s conftest.err'
10629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630   (eval $ac_try) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; } &&
10634          { ac_try='test -s conftest$ac_exeext'
10635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636   (eval $ac_try) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; }; then
10640   ac_cv_var_tzname=yes
10641 else
10642   echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_cv_var_tzname=no
10646 fi
10647 rm -f conftest.err conftest.$ac_objext \
10648       conftest$ac_exeext conftest.$ac_ext
10649 fi
10650 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10651 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10652   if test $ac_cv_var_tzname = yes; then
10653
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_TZNAME 1
10656 _ACEOF
10657
10658   fi
10659 fi
10660
10661
10662
10663
10664 for ac_func in gethostbyname_r
10665 do
10666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10667 echo "$as_me:$LINENO: checking for $ac_func" >&5
10668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10669 if eval "test \"\${$as_ac_var+set}\" = set"; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 else
10672   if test x$gcc_no_link = xyes; then
10673   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10675    { (exit 1); exit 1; }; }
10676 fi
10677 cat >conftest.$ac_ext <<_ACEOF
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10685 #define $ac_func innocuous_$ac_func
10686
10687 /* System header to define __stub macros and hopefully few prototypes,
10688     which can conflict with char $ac_func (); below.
10689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10690     <limits.h> exists even on freestanding compilers.  */
10691
10692 #ifdef __STDC__
10693 # include <limits.h>
10694 #else
10695 # include <assert.h>
10696 #endif
10697
10698 #undef $ac_func
10699
10700 /* Override any gcc2 internal prototype to avoid an error.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 {
10704 #endif
10705 /* We use char because int might match the return type of a gcc2
10706    builtin and then its argument prototype would still apply.  */
10707 char $ac_func ();
10708 /* The GNU C library defines this for functions which it implements
10709     to always fail with ENOSYS.  Some functions are actually named
10710     something starting with __ and the normal name is an alias.  */
10711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10712 choke me
10713 #else
10714 char (*f) () = $ac_func;
10715 #endif
10716 #ifdef __cplusplus
10717 }
10718 #endif
10719
10720 int
10721 main ()
10722 {
10723 return f != $ac_func;
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10730   (eval $ac_link) 2>conftest.er1
10731   ac_status=$?
10732   grep -v '^ *+' conftest.er1 >conftest.err
10733   rm -f conftest.er1
10734   cat conftest.err >&5
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -z "$ac_c_werror_flag"
10738                          || test ! -s conftest.err'
10739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10740   (eval $ac_try) 2>&5
10741   ac_status=$?
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); }; } &&
10744          { ac_try='test -s conftest$ac_exeext'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; }; then
10750   eval "$as_ac_var=yes"
10751 else
10752   echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 eval "$as_ac_var=no"
10756 fi
10757 rm -f conftest.err conftest.$ac_objext \
10758       conftest$ac_exeext conftest.$ac_ext
10759 fi
10760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10761 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10762 if test `eval echo '${'$as_ac_var'}'` = yes; then
10763   cat >>confdefs.h <<_ACEOF
10764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10765 _ACEOF
10766
10767
10768 cat >>confdefs.h <<\_ACEOF
10769 #define HAVE_GETHOSTBYNAME_R 1
10770 _ACEOF
10771
10772      # There are two different kinds of gethostbyname_r.
10773      # We look for the one that returns `int'.
10774      # Hopefully this check is robust enough.
10775      cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h.  */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h.  */
10781 #include <netdb.h>
10782
10783 _ACEOF
10784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10785   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10786
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define GETHOSTBYNAME_R_RETURNS_INT 1
10790 _ACEOF
10791
10792 fi
10793 rm -f conftest*
10794
10795
10796      case " $GCINCS " in
10797      *" -D_REENTRANT "*) ;;
10798      *)
10799                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10800 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10801 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804    ac_ext=cc
10805 ac_cpp='$CXXCPP $CPPFLAGS'
10806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10809
10810           cat >conftest.$ac_ext <<_ACEOF
10811 /* confdefs.h.  */
10812 _ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h.  */
10816 #include <netdb.h>
10817 int
10818 main ()
10819 {
10820 gethostbyname_r("", 0, 0);
10821   ;
10822   return 0;
10823 }
10824 _ACEOF
10825 rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827   (eval $ac_compile) 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -z "$ac_cxx_werror_flag"
10835                          || test ! -s conftest.err'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; } &&
10841          { ac_try='test -s conftest.$ac_objext'
10842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843   (eval $ac_try) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; }; then
10847   libjava_cv_gethostbyname_r_needs_reentrant=no
10848 else
10849   echo "$as_me: failed program was:" >&5
10850 sed 's/^/| /' conftest.$ac_ext >&5
10851
10852                 CPPFLAGS_SAVE="$CPPFLAGS"
10853                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10854                 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860 #include <netdb.h>
10861 int
10862 main ()
10863 {
10864 gethostbyname_r("", 0, 0);
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 rm -f conftest.$ac_objext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871   (eval $ac_compile) 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } &&
10878          { ac_try='test -z "$ac_cxx_werror_flag"
10879                          || test ! -s conftest.err'
10880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881   (eval $ac_try) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); }; } &&
10885          { ac_try='test -s conftest.$ac_objext'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   libjava_cv_gethostbyname_r_needs_reentrant=yes
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 libjava_cv_gethostbyname_r_needs_reentrant=fail
10897 fi
10898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10899                 CPPFLAGS="$CPPFLAGS_SAVE"
10900
10901 fi
10902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10903           ac_ext=c
10904 ac_cpp='$CPP $CPPFLAGS'
10905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10908
10909
10910 fi
10911 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10912 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10913         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10914
10915 cat >>confdefs.h <<\_ACEOF
10916 #define _REENTRANT 1
10917 _ACEOF
10918
10919         fi
10920      ;;
10921      esac
10922
10923      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10924 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10925 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10926   echo $ECHO_N "(cached) $ECHO_C" >&6
10927 else
10928         cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934
10935 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10936 # define _REENTRANT 1
10937 #endif
10938 #include <netdb.h>
10939 int
10940 main ()
10941 {
10942 struct hostent_data data;
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 rm -f conftest.$ac_objext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949   (eval $ac_compile) 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } &&
10956          { ac_try='test -z "$ac_c_werror_flag"
10957                          || test ! -s conftest.err'
10958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959   (eval $ac_try) 2>&5
10960   ac_status=$?
10961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962   (exit $ac_status); }; } &&
10963          { ac_try='test -s conftest.$ac_objext'
10964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965   (eval $ac_try) 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   libjava_cv_struct_hostent_data=yes
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974 libjava_cv_struct_hostent_data=no
10975 fi
10976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10977 fi
10978 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10979 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10980      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10981
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_STRUCT_HOSTENT_DATA 1
10984 _ACEOF
10985
10986      fi
10987
10988 fi
10989 done
10990
10991
10992    # FIXME: libjava source code expects to find a prototype for
10993    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10994    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10995    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10996    # linkage check is enough, yet C++ code requires proper prototypes.)
10997    cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 #include <netdb.h>
11004
11005 _ACEOF
11006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11007   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11008
11009
11010 for ac_func in gethostbyaddr_r
11011 do
11012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11013 echo "$as_me:$LINENO: checking for $ac_func" >&5
11014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11015 if eval "test \"\${$as_ac_var+set}\" = set"; then
11016   echo $ECHO_N "(cached) $ECHO_C" >&6
11017 else
11018   if test x$gcc_no_link = xyes; then
11019   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11020 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11021    { (exit 1); exit 1; }; }
11022 fi
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11030    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11031 #define $ac_func innocuous_$ac_func
11032
11033 /* System header to define __stub macros and hopefully few prototypes,
11034     which can conflict with char $ac_func (); below.
11035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036     <limits.h> exists even on freestanding compilers.  */
11037
11038 #ifdef __STDC__
11039 # include <limits.h>
11040 #else
11041 # include <assert.h>
11042 #endif
11043
11044 #undef $ac_func
11045
11046 /* Override any gcc2 internal prototype to avoid an error.  */
11047 #ifdef __cplusplus
11048 extern "C"
11049 {
11050 #endif
11051 /* We use char because int might match the return type of a gcc2
11052    builtin and then its argument prototype would still apply.  */
11053 char $ac_func ();
11054 /* The GNU C library defines this for functions which it implements
11055     to always fail with ENOSYS.  Some functions are actually named
11056     something starting with __ and the normal name is an alias.  */
11057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11058 choke me
11059 #else
11060 char (*f) () = $ac_func;
11061 #endif
11062 #ifdef __cplusplus
11063 }
11064 #endif
11065
11066 int
11067 main ()
11068 {
11069 return f != $ac_func;
11070   ;
11071   return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076   (eval $ac_link) 2>conftest.er1
11077   ac_status=$?
11078   grep -v '^ *+' conftest.er1 >conftest.err
11079   rm -f conftest.er1
11080   cat conftest.err >&5
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } &&
11083          { ac_try='test -z "$ac_c_werror_flag"
11084                          || test ! -s conftest.err'
11085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086   (eval $ac_try) 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; } &&
11090          { ac_try='test -s conftest$ac_exeext'
11091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092   (eval $ac_try) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; }; then
11096   eval "$as_ac_var=yes"
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101 eval "$as_ac_var=no"
11102 fi
11103 rm -f conftest.err conftest.$ac_objext \
11104       conftest$ac_exeext conftest.$ac_ext
11105 fi
11106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11108 if test `eval echo '${'$as_ac_var'}'` = yes; then
11109   cat >>confdefs.h <<_ACEOF
11110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11111 _ACEOF
11112
11113
11114 cat >>confdefs.h <<\_ACEOF
11115 #define HAVE_GETHOSTBYADDR_R 1
11116 _ACEOF
11117
11118      # There are two different kinds of gethostbyaddr_r.
11119      # We look for the one that returns `int'.
11120      # Hopefully this check is robust enough.
11121      cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h.  */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h.  */
11127 #include <netdb.h>
11128
11129 _ACEOF
11130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11131   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11132
11133
11134 cat >>confdefs.h <<\_ACEOF
11135 #define GETHOSTBYADDR_R_RETURNS_INT 1
11136 _ACEOF
11137
11138 fi
11139 rm -f conftest*
11140
11141 fi
11142 done
11143
11144 fi
11145 rm -f conftest*
11146
11147
11148
11149 for ac_func in gethostname
11150 do
11151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11152 echo "$as_me:$LINENO: checking for $ac_func" >&5
11153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11154 if eval "test \"\${$as_ac_var+set}\" = set"; then
11155   echo $ECHO_N "(cached) $ECHO_C" >&6
11156 else
11157   if test x$gcc_no_link = xyes; then
11158   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11159 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11160    { (exit 1); exit 1; }; }
11161 fi
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11170 #define $ac_func innocuous_$ac_func
11171
11172 /* System header to define __stub macros and hopefully few prototypes,
11173     which can conflict with char $ac_func (); below.
11174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175     <limits.h> exists even on freestanding compilers.  */
11176
11177 #ifdef __STDC__
11178 # include <limits.h>
11179 #else
11180 # include <assert.h>
11181 #endif
11182
11183 #undef $ac_func
11184
11185 /* Override any gcc2 internal prototype to avoid an error.  */
11186 #ifdef __cplusplus
11187 extern "C"
11188 {
11189 #endif
11190 /* We use char because int might match the return type of a gcc2
11191    builtin and then its argument prototype would still apply.  */
11192 char $ac_func ();
11193 /* The GNU C library defines this for functions which it implements
11194     to always fail with ENOSYS.  Some functions are actually named
11195     something starting with __ and the normal name is an alias.  */
11196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11197 choke me
11198 #else
11199 char (*f) () = $ac_func;
11200 #endif
11201 #ifdef __cplusplus
11202 }
11203 #endif
11204
11205 int
11206 main ()
11207 {
11208 return f != $ac_func;
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215   (eval $ac_link) 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } &&
11222          { ac_try='test -z "$ac_c_werror_flag"
11223                          || test ! -s conftest.err'
11224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225   (eval $ac_try) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; } &&
11229          { ac_try='test -s conftest$ac_exeext'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   eval "$as_ac_var=yes"
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 eval "$as_ac_var=no"
11241 fi
11242 rm -f conftest.err conftest.$ac_objext \
11243       conftest$ac_exeext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11247 if test `eval echo '${'$as_ac_var'}'` = yes; then
11248   cat >>confdefs.h <<_ACEOF
11249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 _ACEOF
11251
11252
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_GETHOSTNAME 1
11255 _ACEOF
11256
11257      cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h.  */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h.  */
11263 #include <unistd.h>
11264
11265 _ACEOF
11266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11267   $EGREP "gethostname" >/dev/null 2>&1; then
11268
11269
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GETHOSTNAME_DECL 1
11272 _ACEOF
11273
11274 fi
11275 rm -f conftest*
11276
11277 fi
11278 done
11279
11280
11281
11282 for ac_func in usleep
11283 do
11284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11285 echo "$as_me:$LINENO: checking for $ac_func" >&5
11286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11287 if eval "test \"\${$as_ac_var+set}\" = set"; then
11288   echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290   if test x$gcc_no_link = xyes; then
11291   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11293    { (exit 1); exit 1; }; }
11294 fi
11295 cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11303 #define $ac_func innocuous_$ac_func
11304
11305 /* System header to define __stub macros and hopefully few prototypes,
11306     which can conflict with char $ac_func (); below.
11307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11308     <limits.h> exists even on freestanding compilers.  */
11309
11310 #ifdef __STDC__
11311 # include <limits.h>
11312 #else
11313 # include <assert.h>
11314 #endif
11315
11316 #undef $ac_func
11317
11318 /* Override any gcc2 internal prototype to avoid an error.  */
11319 #ifdef __cplusplus
11320 extern "C"
11321 {
11322 #endif
11323 /* We use char because int might match the return type of a gcc2
11324    builtin and then its argument prototype would still apply.  */
11325 char $ac_func ();
11326 /* The GNU C library defines this for functions which it implements
11327     to always fail with ENOSYS.  Some functions are actually named
11328     something starting with __ and the normal name is an alias.  */
11329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330 choke me
11331 #else
11332 char (*f) () = $ac_func;
11333 #endif
11334 #ifdef __cplusplus
11335 }
11336 #endif
11337
11338 int
11339 main ()
11340 {
11341 return f != $ac_func;
11342   ;
11343   return 0;
11344 }
11345 _ACEOF
11346 rm -f conftest.$ac_objext conftest$ac_exeext
11347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11348   (eval $ac_link) 2>conftest.er1
11349   ac_status=$?
11350   grep -v '^ *+' conftest.er1 >conftest.err
11351   rm -f conftest.er1
11352   cat conftest.err >&5
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); } &&
11355          { ac_try='test -z "$ac_c_werror_flag"
11356                          || test ! -s conftest.err'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; } &&
11362          { ac_try='test -s conftest$ac_exeext'
11363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364   (eval $ac_try) 2>&5
11365   ac_status=$?
11366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); }; }; then
11368   eval "$as_ac_var=yes"
11369 else
11370   echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 eval "$as_ac_var=no"
11374 fi
11375 rm -f conftest.err conftest.$ac_objext \
11376       conftest$ac_exeext conftest.$ac_ext
11377 fi
11378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11380 if test `eval echo '${'$as_ac_var'}'` = yes; then
11381   cat >>confdefs.h <<_ACEOF
11382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11383 _ACEOF
11384
11385      cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391 #include <unistd.h>
11392
11393 _ACEOF
11394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395   $EGREP "usleep" >/dev/null 2>&1; then
11396
11397
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_USLEEP_DECL 1
11400 _ACEOF
11401
11402 fi
11403 rm -f conftest*
11404
11405 fi
11406 done
11407
11408
11409    # Look for these functions in the thread library, but only bother
11410    # if using POSIX threads.
11411    if test "$THREADS" = posix; then
11412       save_LIBS="$LIBS"
11413       LIBS="$LIBS $THREADLIBS"
11414       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11415       # E.g., Solaris.
11416
11417
11418 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11419 do
11420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11421 echo "$as_me:$LINENO: checking for $ac_func" >&5
11422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11423 if eval "test \"\${$as_ac_var+set}\" = set"; then
11424   echo $ECHO_N "(cached) $ECHO_C" >&6
11425 else
11426   if test x$gcc_no_link = xyes; then
11427   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11429    { (exit 1); exit 1; }; }
11430 fi
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11439 #define $ac_func innocuous_$ac_func
11440
11441 /* System header to define __stub macros and hopefully few prototypes,
11442     which can conflict with char $ac_func (); below.
11443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11444     <limits.h> exists even on freestanding compilers.  */
11445
11446 #ifdef __STDC__
11447 # include <limits.h>
11448 #else
11449 # include <assert.h>
11450 #endif
11451
11452 #undef $ac_func
11453
11454 /* Override any gcc2 internal prototype to avoid an error.  */
11455 #ifdef __cplusplus
11456 extern "C"
11457 {
11458 #endif
11459 /* We use char because int might match the return type of a gcc2
11460    builtin and then its argument prototype would still apply.  */
11461 char $ac_func ();
11462 /* The GNU C library defines this for functions which it implements
11463     to always fail with ENOSYS.  Some functions are actually named
11464     something starting with __ and the normal name is an alias.  */
11465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11466 choke me
11467 #else
11468 char (*f) () = $ac_func;
11469 #endif
11470 #ifdef __cplusplus
11471 }
11472 #endif
11473
11474 int
11475 main ()
11476 {
11477 return f != $ac_func;
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484   (eval $ac_link) 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -z "$ac_c_werror_flag"
11492                          || test ! -s conftest.err'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; } &&
11498          { ac_try='test -s conftest$ac_exeext'
11499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500   (eval $ac_try) 2>&5
11501   ac_status=$?
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); }; }; then
11504   eval "$as_ac_var=yes"
11505 else
11506   echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 eval "$as_ac_var=no"
11510 fi
11511 rm -f conftest.err conftest.$ac_objext \
11512       conftest$ac_exeext conftest.$ac_ext
11513 fi
11514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11516 if test `eval echo '${'$as_ac_var'}'` = yes; then
11517   cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519 _ACEOF
11520
11521 fi
11522 done
11523
11524
11525       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11526       # Solaris 7 the name librt is preferred.
11527
11528 for ac_func in sched_yield
11529 do
11530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11531 echo "$as_me:$LINENO: checking for $ac_func" >&5
11532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11533 if eval "test \"\${$as_ac_var+set}\" = set"; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   if test x$gcc_no_link = xyes; then
11537   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11539    { (exit 1); exit 1; }; }
11540 fi
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11549 #define $ac_func innocuous_$ac_func
11550
11551 /* System header to define __stub macros and hopefully few prototypes,
11552     which can conflict with char $ac_func (); below.
11553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554     <limits.h> exists even on freestanding compilers.  */
11555
11556 #ifdef __STDC__
11557 # include <limits.h>
11558 #else
11559 # include <assert.h>
11560 #endif
11561
11562 #undef $ac_func
11563
11564 /* Override any gcc2 internal prototype to avoid an error.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 {
11568 #endif
11569 /* We use char because int might match the return type of a gcc2
11570    builtin and then its argument prototype would still apply.  */
11571 char $ac_func ();
11572 /* The GNU C library defines this for functions which it implements
11573     to always fail with ENOSYS.  Some functions are actually named
11574     something starting with __ and the normal name is an alias.  */
11575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11576 choke me
11577 #else
11578 char (*f) () = $ac_func;
11579 #endif
11580 #ifdef __cplusplus
11581 }
11582 #endif
11583
11584 int
11585 main ()
11586 {
11587 return f != $ac_func;
11588   ;
11589   return 0;
11590 }
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594   (eval $ac_link) 2>conftest.er1
11595   ac_status=$?
11596   grep -v '^ *+' conftest.er1 >conftest.err
11597   rm -f conftest.er1
11598   cat conftest.err >&5
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); } &&
11601          { ac_try='test -z "$ac_c_werror_flag"
11602                          || test ! -s conftest.err'
11603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604   (eval $ac_try) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; } &&
11608          { ac_try='test -s conftest$ac_exeext'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; }; then
11614   eval "$as_ac_var=yes"
11615 else
11616   echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11618
11619 eval "$as_ac_var=no"
11620 fi
11621 rm -f conftest.err conftest.$ac_objext \
11622       conftest$ac_exeext conftest.$ac_ext
11623 fi
11624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11626 if test `eval echo '${'$as_ac_var'}'` = yes; then
11627   cat >>confdefs.h <<_ACEOF
11628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11629 _ACEOF
11630
11631 else
11632
11633         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11634 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11635 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   ac_check_lib_save_LIBS=$LIBS
11639 LIBS="-lrt  $LIBS"
11640 if test x$gcc_no_link = xyes; then
11641   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11643    { (exit 1); exit 1; }; }
11644 fi
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651
11652 /* Override any gcc2 internal prototype to avoid an error.  */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 /* We use char because int might match the return type of a gcc2
11657    builtin and then its argument prototype would still apply.  */
11658 char sched_yield ();
11659 int
11660 main ()
11661 {
11662 sched_yield ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext conftest$ac_exeext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11669   (eval $ac_link) 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_c_werror_flag"
11677                          || test ! -s conftest.err'
11678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679   (eval $ac_try) 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; } &&
11683          { ac_try='test -s conftest$ac_exeext'
11684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685   (eval $ac_try) 2>&5
11686   ac_status=$?
11687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688   (exit $ac_status); }; }; then
11689   ac_cv_lib_rt_sched_yield=yes
11690 else
11691   echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11693
11694 ac_cv_lib_rt_sched_yield=no
11695 fi
11696 rm -f conftest.err conftest.$ac_objext \
11697       conftest$ac_exeext conftest.$ac_ext
11698 LIBS=$ac_check_lib_save_LIBS
11699 fi
11700 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11701 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11702 if test $ac_cv_lib_rt_sched_yield = yes; then
11703
11704           cat >>confdefs.h <<\_ACEOF
11705 #define HAVE_SCHED_YIELD 1
11706 _ACEOF
11707
11708           THREADLIBS="$THREADLIBS -lrt"
11709           THREADSPEC="$THREADSPEC -lrt"
11710 else
11711
11712           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11713 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11714 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11715   echo $ECHO_N "(cached) $ECHO_C" >&6
11716 else
11717   ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-lposix4  $LIBS"
11719 if test x$gcc_no_link = xyes; then
11720   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11722    { (exit 1); exit 1; }; }
11723 fi
11724 cat >conftest.$ac_ext <<_ACEOF
11725 /* confdefs.h.  */
11726 _ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h.  */
11730
11731 /* Override any gcc2 internal prototype to avoid an error.  */
11732 #ifdef __cplusplus
11733 extern "C"
11734 #endif
11735 /* We use char because int might match the return type of a gcc2
11736    builtin and then its argument prototype would still apply.  */
11737 char sched_yield ();
11738 int
11739 main ()
11740 {
11741 sched_yield ();
11742   ;
11743   return 0;
11744 }
11745 _ACEOF
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748   (eval $ac_link) 2>conftest.er1
11749   ac_status=$?
11750   grep -v '^ *+' conftest.er1 >conftest.err
11751   rm -f conftest.er1
11752   cat conftest.err >&5
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); } &&
11755          { ac_try='test -z "$ac_c_werror_flag"
11756                          || test ! -s conftest.err'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; } &&
11762          { ac_try='test -s conftest$ac_exeext'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; }; then
11768   ac_cv_lib_posix4_sched_yield=yes
11769 else
11770   echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 ac_cv_lib_posix4_sched_yield=no
11774 fi
11775 rm -f conftest.err conftest.$ac_objext \
11776       conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11778 fi
11779 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11780 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11781 if test $ac_cv_lib_posix4_sched_yield = yes; then
11782
11783             cat >>confdefs.h <<\_ACEOF
11784 #define HAVE_SCHED_YIELD 1
11785 _ACEOF
11786
11787             THREADLIBS="$THREADLIBS -lposix4"
11788             THREADSPEC="$THREADSPEC -lposix4"
11789 fi
11790
11791 fi
11792
11793 fi
11794 done
11795
11796       LIBS="$save_LIBS"
11797
11798       # We can save a little space at runtime if the mutex has m_count
11799       # or __m_count.  This is a nice hack for Linux.
11800       cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #include <pthread.h>
11807 int
11808 main ()
11809 {
11810
11811           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11812
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819   (eval $ac_compile) 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } &&
11826          { ac_try='test -z "$ac_c_werror_flag"
11827                          || test ! -s conftest.err'
11828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829   (eval $ac_try) 2>&5
11830   ac_status=$?
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); }; } &&
11833          { ac_try='test -s conftest.$ac_objext'
11834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835   (eval $ac_try) 2>&5
11836   ac_status=$?
11837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838   (exit $ac_status); }; }; then
11839
11840 cat >>confdefs.h <<\_ACEOF
11841 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11842 _ACEOF
11843
11844 else
11845   echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11847
11848
11849         cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 #include <pthread.h>
11856 int
11857 main ()
11858 {
11859
11860             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11861
11862   ;
11863   return 0;
11864 }
11865 _ACEOF
11866 rm -f conftest.$ac_objext
11867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11868   (eval $ac_compile) 2>conftest.er1
11869   ac_status=$?
11870   grep -v '^ *+' conftest.er1 >conftest.err
11871   rm -f conftest.er1
11872   cat conftest.err >&5
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } &&
11875          { ac_try='test -z "$ac_c_werror_flag"
11876                          || test ! -s conftest.err'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest.$ac_objext'
11883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884   (eval $ac_try) 2>&5
11885   ac_status=$?
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); }; }; then
11888
11889 cat >>confdefs.h <<\_ACEOF
11890 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11891 _ACEOF
11892
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 fi
11898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11901    fi
11902
11903    # We require a way to get the time.
11904    time_found=no
11905
11906
11907
11908 for ac_func in gettimeofday time ftime
11909 do
11910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11911 echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11913 if eval "test \"\${$as_ac_var+set}\" = set"; then
11914   echo $ECHO_N "(cached) $ECHO_C" >&6
11915 else
11916   if test x$gcc_no_link = xyes; then
11917   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11919    { (exit 1); exit 1; }; }
11920 fi
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h.  */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h.  */
11927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11929 #define $ac_func innocuous_$ac_func
11930
11931 /* System header to define __stub macros and hopefully few prototypes,
11932     which can conflict with char $ac_func (); below.
11933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934     <limits.h> exists even on freestanding compilers.  */
11935
11936 #ifdef __STDC__
11937 # include <limits.h>
11938 #else
11939 # include <assert.h>
11940 #endif
11941
11942 #undef $ac_func
11943
11944 /* Override any gcc2 internal prototype to avoid an error.  */
11945 #ifdef __cplusplus
11946 extern "C"
11947 {
11948 #endif
11949 /* We use char because int might match the return type of a gcc2
11950    builtin and then its argument prototype would still apply.  */
11951 char $ac_func ();
11952 /* The GNU C library defines this for functions which it implements
11953     to always fail with ENOSYS.  Some functions are actually named
11954     something starting with __ and the normal name is an alias.  */
11955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11956 choke me
11957 #else
11958 char (*f) () = $ac_func;
11959 #endif
11960 #ifdef __cplusplus
11961 }
11962 #endif
11963
11964 int
11965 main ()
11966 {
11967 return f != $ac_func;
11968   ;
11969   return 0;
11970 }
11971 _ACEOF
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974   (eval $ac_link) 2>conftest.er1
11975   ac_status=$?
11976   grep -v '^ *+' conftest.er1 >conftest.err
11977   rm -f conftest.er1
11978   cat conftest.err >&5
11979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980   (exit $ac_status); } &&
11981          { ac_try='test -z "$ac_c_werror_flag"
11982                          || test ! -s conftest.err'
11983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984   (eval $ac_try) 2>&5
11985   ac_status=$?
11986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); }; } &&
11988          { ac_try='test -s conftest$ac_exeext'
11989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990   (eval $ac_try) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; }; then
11994   eval "$as_ac_var=yes"
11995 else
11996   echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999 eval "$as_ac_var=no"
12000 fi
12001 rm -f conftest.err conftest.$ac_objext \
12002       conftest$ac_exeext conftest.$ac_ext
12003 fi
12004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12006 if test `eval echo '${'$as_ac_var'}'` = yes; then
12007   cat >>confdefs.h <<_ACEOF
12008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12009 _ACEOF
12010  time_found=yes
12011 fi
12012 done
12013
12014    if test "$time_found" = no; then
12015       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12016 echo "$as_me: error: no function found to get the time" >&2;}
12017    { (exit 1); exit 1; }; }
12018    fi
12019
12020
12021 for ac_func in memmove
12022 do
12023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12024 echo "$as_me:$LINENO: checking for $ac_func" >&5
12025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12026 if eval "test \"\${$as_ac_var+set}\" = set"; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   if test x$gcc_no_link = xyes; then
12030   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12032    { (exit 1); exit 1; }; }
12033 fi
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12042 #define $ac_func innocuous_$ac_func
12043
12044 /* System header to define __stub macros and hopefully few prototypes,
12045     which can conflict with char $ac_func (); below.
12046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12047     <limits.h> exists even on freestanding compilers.  */
12048
12049 #ifdef __STDC__
12050 # include <limits.h>
12051 #else
12052 # include <assert.h>
12053 #endif
12054
12055 #undef $ac_func
12056
12057 /* Override any gcc2 internal prototype to avoid an error.  */
12058 #ifdef __cplusplus
12059 extern "C"
12060 {
12061 #endif
12062 /* We use char because int might match the return type of a gcc2
12063    builtin and then its argument prototype would still apply.  */
12064 char $ac_func ();
12065 /* The GNU C library defines this for functions which it implements
12066     to always fail with ENOSYS.  Some functions are actually named
12067     something starting with __ and the normal name is an alias.  */
12068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12069 choke me
12070 #else
12071 char (*f) () = $ac_func;
12072 #endif
12073 #ifdef __cplusplus
12074 }
12075 #endif
12076
12077 int
12078 main ()
12079 {
12080 return f != $ac_func;
12081   ;
12082   return 0;
12083 }
12084 _ACEOF
12085 rm -f conftest.$ac_objext conftest$ac_exeext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087   (eval $ac_link) 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -z "$ac_c_werror_flag"
12095                          || test ! -s conftest.err'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest$ac_exeext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   eval "$as_ac_var=yes"
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 eval "$as_ac_var=no"
12113 fi
12114 rm -f conftest.err conftest.$ac_objext \
12115       conftest$ac_exeext conftest.$ac_ext
12116 fi
12117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120   cat >>confdefs.h <<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12122 _ACEOF
12123
12124 fi
12125 done
12126
12127
12128    # We require memcpy.
12129    memcpy_found=no
12130
12131 for ac_func in memcpy
12132 do
12133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12134 echo "$as_me:$LINENO: checking for $ac_func" >&5
12135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12136 if eval "test \"\${$as_ac_var+set}\" = set"; then
12137   echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139   if test x$gcc_no_link = xyes; then
12140   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12142    { (exit 1); exit 1; }; }
12143 fi
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h.  */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h.  */
12150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12151    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12152 #define $ac_func innocuous_$ac_func
12153
12154 /* System header to define __stub macros and hopefully few prototypes,
12155     which can conflict with char $ac_func (); below.
12156     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157     <limits.h> exists even on freestanding compilers.  */
12158
12159 #ifdef __STDC__
12160 # include <limits.h>
12161 #else
12162 # include <assert.h>
12163 #endif
12164
12165 #undef $ac_func
12166
12167 /* Override any gcc2 internal prototype to avoid an error.  */
12168 #ifdef __cplusplus
12169 extern "C"
12170 {
12171 #endif
12172 /* We use char because int might match the return type of a gcc2
12173    builtin and then its argument prototype would still apply.  */
12174 char $ac_func ();
12175 /* The GNU C library defines this for functions which it implements
12176     to always fail with ENOSYS.  Some functions are actually named
12177     something starting with __ and the normal name is an alias.  */
12178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12179 choke me
12180 #else
12181 char (*f) () = $ac_func;
12182 #endif
12183 #ifdef __cplusplus
12184 }
12185 #endif
12186
12187 int
12188 main ()
12189 {
12190 return f != $ac_func;
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12197   (eval $ac_link) 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag"
12205                          || test ! -s conftest.err'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; } &&
12211          { ac_try='test -s conftest$ac_exeext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217   eval "$as_ac_var=yes"
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 eval "$as_ac_var=no"
12223 fi
12224 rm -f conftest.err conftest.$ac_objext \
12225       conftest$ac_exeext conftest.$ac_ext
12226 fi
12227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12229 if test `eval echo '${'$as_ac_var'}'` = yes; then
12230   cat >>confdefs.h <<_ACEOF
12231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12232 _ACEOF
12233  memcpy_found=yes
12234 fi
12235 done
12236
12237    if test "$memcpy_found" = no; then
12238       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12239 echo "$as_me: error: memcpy is required" >&2;}
12240    { (exit 1); exit 1; }; }
12241    fi
12242
12243    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12244 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12245 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12246   echo $ECHO_N "(cached) $ECHO_C" >&6
12247 else
12248   ac_check_lib_save_LIBS=$LIBS
12249 LIBS="-ldl  $LIBS"
12250 if test x$gcc_no_link = xyes; then
12251   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12253    { (exit 1); exit 1; }; }
12254 fi
12255 cat >conftest.$ac_ext <<_ACEOF
12256 /* confdefs.h.  */
12257 _ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h.  */
12261
12262 /* Override any gcc2 internal prototype to avoid an error.  */
12263 #ifdef __cplusplus
12264 extern "C"
12265 #endif
12266 /* We use char because int might match the return type of a gcc2
12267    builtin and then its argument prototype would still apply.  */
12268 char dlopen ();
12269 int
12270 main ()
12271 {
12272 dlopen ();
12273   ;
12274   return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279   (eval $ac_link) 2>conftest.er1
12280   ac_status=$?
12281   grep -v '^ *+' conftest.er1 >conftest.err
12282   rm -f conftest.er1
12283   cat conftest.err >&5
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -z "$ac_c_werror_flag"
12287                          || test ! -s conftest.err'
12288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289   (eval $ac_try) 2>&5
12290   ac_status=$?
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); }; } &&
12293          { ac_try='test -s conftest$ac_exeext'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   ac_cv_lib_dl_dlopen=yes
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_lib_dl_dlopen=no
12305 fi
12306 rm -f conftest.err conftest.$ac_objext \
12307       conftest$ac_exeext conftest.$ac_ext
12308 LIBS=$ac_check_lib_save_LIBS
12309 fi
12310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12312 if test $ac_cv_lib_dl_dlopen = yes; then
12313
12314
12315 cat >>confdefs.h <<\_ACEOF
12316 #define HAVE_DLOPEN 1
12317 _ACEOF
12318
12319 fi
12320
12321
12322    # Some library-finding code we stole from Tcl.
12323    #--------------------------------------------------------------------
12324    #    Check for the existence of the -lsocket and -lnsl libraries.
12325    #    The order here is important, so that they end up in the right
12326    #    order in the command line generated by make.  Here are some
12327    #    special considerations:
12328    #    1. Use "connect" and "accept" to check for -lsocket, and
12329    #       "gethostbyname" to check for -lnsl.
12330    #    2. Use each function name only once:  can't redo a check because
12331    #       autoconf caches the results of the last check and won't redo it.
12332    #    3. Use -lnsl and -lsocket only if they supply procedures that
12333    #       aren't already present in the normal libraries.  This is because
12334    #       IRIX 5.2 has libraries, but they aren't needed and they're
12335    #       bogus:  they goof up name resolution if used.
12336    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12337    #       To get around this problem, check for both libraries together
12338    #       if -lsocket doesn't work by itself.
12339    #--------------------------------------------------------------------
12340
12341    echo "$as_me:$LINENO: checking for socket libraries" >&5
12342 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12343 if test "${gcj_cv_lib_sockets+set}" = set; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 else
12346   gcj_cv_lib_sockets=
12347      gcj_checkBoth=0
12348      unset ac_cv_func_connect
12349      echo "$as_me:$LINENO: checking for connect" >&5
12350 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12351 if test "${ac_cv_func_connect+set}" = set; then
12352   echo $ECHO_N "(cached) $ECHO_C" >&6
12353 else
12354   if test x$gcc_no_link = xyes; then
12355   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12357    { (exit 1); exit 1; }; }
12358 fi
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12367 #define connect innocuous_connect
12368
12369 /* System header to define __stub macros and hopefully few prototypes,
12370     which can conflict with char connect (); below.
12371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372     <limits.h> exists even on freestanding compilers.  */
12373
12374 #ifdef __STDC__
12375 # include <limits.h>
12376 #else
12377 # include <assert.h>
12378 #endif
12379
12380 #undef connect
12381
12382 /* Override any gcc2 internal prototype to avoid an error.  */
12383 #ifdef __cplusplus
12384 extern "C"
12385 {
12386 #endif
12387 /* We use char because int might match the return type of a gcc2
12388    builtin and then its argument prototype would still apply.  */
12389 char connect ();
12390 /* The GNU C library defines this for functions which it implements
12391     to always fail with ENOSYS.  Some functions are actually named
12392     something starting with __ and the normal name is an alias.  */
12393 #if defined (__stub_connect) || defined (__stub___connect)
12394 choke me
12395 #else
12396 char (*f) () = connect;
12397 #endif
12398 #ifdef __cplusplus
12399 }
12400 #endif
12401
12402 int
12403 main ()
12404 {
12405 return f != connect;
12406   ;
12407   return 0;
12408 }
12409 _ACEOF
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12412   (eval $ac_link) 2>conftest.er1
12413   ac_status=$?
12414   grep -v '^ *+' conftest.er1 >conftest.err
12415   rm -f conftest.er1
12416   cat conftest.err >&5
12417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418   (exit $ac_status); } &&
12419          { ac_try='test -z "$ac_c_werror_flag"
12420                          || test ! -s conftest.err'
12421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422   (eval $ac_try) 2>&5
12423   ac_status=$?
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); }; } &&
12426          { ac_try='test -s conftest$ac_exeext'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; }; then
12432   ac_cv_func_connect=yes
12433 else
12434   echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 ac_cv_func_connect=no
12438 fi
12439 rm -f conftest.err conftest.$ac_objext \
12440       conftest$ac_exeext conftest.$ac_ext
12441 fi
12442 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12443 echo "${ECHO_T}$ac_cv_func_connect" >&6
12444 if test $ac_cv_func_connect = yes; then
12445   gcj_checkSocket=0
12446 else
12447   gcj_checkSocket=1
12448 fi
12449
12450      if test "$gcj_checkSocket" = 1; then
12451          unset ac_cv_func_connect
12452          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12453 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12454 if test "${ac_cv_lib_socket_main+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   ac_check_lib_save_LIBS=$LIBS
12458 LIBS="-lsocket  $LIBS"
12459 if test x$gcc_no_link = xyes; then
12460   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12462    { (exit 1); exit 1; }; }
12463 fi
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470
12471
12472 int
12473 main ()
12474 {
12475 main ();
12476   ;
12477   return 0;
12478 }
12479 _ACEOF
12480 rm -f conftest.$ac_objext conftest$ac_exeext
12481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482   (eval $ac_link) 2>conftest.er1
12483   ac_status=$?
12484   grep -v '^ *+' conftest.er1 >conftest.err
12485   rm -f conftest.er1
12486   cat conftest.err >&5
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); } &&
12489          { ac_try='test -z "$ac_c_werror_flag"
12490                          || test ! -s conftest.err'
12491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492   (eval $ac_try) 2>&5
12493   ac_status=$?
12494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495   (exit $ac_status); }; } &&
12496          { ac_try='test -s conftest$ac_exeext'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; }; then
12502   ac_cv_lib_socket_main=yes
12503 else
12504   echo "$as_me: failed program was:" >&5
12505 sed 's/^/| /' conftest.$ac_ext >&5
12506
12507 ac_cv_lib_socket_main=no
12508 fi
12509 rm -f conftest.err conftest.$ac_objext \
12510       conftest$ac_exeext conftest.$ac_ext
12511 LIBS=$ac_check_lib_save_LIBS
12512 fi
12513 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12514 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12515 if test $ac_cv_lib_socket_main = yes; then
12516   gcj_cv_lib_sockets="-lsocket"
12517 else
12518   gcj_checkBoth=1
12519 fi
12520
12521      fi
12522      if test "$gcj_checkBoth" = 1; then
12523          gcj_oldLibs=$LIBS
12524          LIBS="$LIBS -lsocket -lnsl"
12525          unset ac_cv_func_accept
12526          echo "$as_me:$LINENO: checking for accept" >&5
12527 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12528 if test "${ac_cv_func_accept+set}" = set; then
12529   echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531   if test x$gcc_no_link = xyes; then
12532   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12534    { (exit 1); exit 1; }; }
12535 fi
12536 cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12544 #define accept innocuous_accept
12545
12546 /* System header to define __stub macros and hopefully few prototypes,
12547     which can conflict with char accept (); below.
12548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12549     <limits.h> exists even on freestanding compilers.  */
12550
12551 #ifdef __STDC__
12552 # include <limits.h>
12553 #else
12554 # include <assert.h>
12555 #endif
12556
12557 #undef accept
12558
12559 /* Override any gcc2 internal prototype to avoid an error.  */
12560 #ifdef __cplusplus
12561 extern "C"
12562 {
12563 #endif
12564 /* We use char because int might match the return type of a gcc2
12565    builtin and then its argument prototype would still apply.  */
12566 char accept ();
12567 /* The GNU C library defines this for functions which it implements
12568     to always fail with ENOSYS.  Some functions are actually named
12569     something starting with __ and the normal name is an alias.  */
12570 #if defined (__stub_accept) || defined (__stub___accept)
12571 choke me
12572 #else
12573 char (*f) () = accept;
12574 #endif
12575 #ifdef __cplusplus
12576 }
12577 #endif
12578
12579 int
12580 main ()
12581 {
12582 return f != accept;
12583   ;
12584   return 0;
12585 }
12586 _ACEOF
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589   (eval $ac_link) 2>conftest.er1
12590   ac_status=$?
12591   grep -v '^ *+' conftest.er1 >conftest.err
12592   rm -f conftest.er1
12593   cat conftest.err >&5
12594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595   (exit $ac_status); } &&
12596          { ac_try='test -z "$ac_c_werror_flag"
12597                          || test ! -s conftest.err'
12598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599   (eval $ac_try) 2>&5
12600   ac_status=$?
12601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602   (exit $ac_status); }; } &&
12603          { ac_try='test -s conftest$ac_exeext'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; }; then
12609   ac_cv_func_accept=yes
12610 else
12611   echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12613
12614 ac_cv_func_accept=no
12615 fi
12616 rm -f conftest.err conftest.$ac_objext \
12617       conftest$ac_exeext conftest.$ac_ext
12618 fi
12619 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12620 echo "${ECHO_T}$ac_cv_func_accept" >&6
12621 if test $ac_cv_func_accept = yes; then
12622   gcj_checkNsl=0
12623                         gcj_cv_lib_sockets="-lsocket -lnsl"
12624 fi
12625
12626          unset ac_cv_func_accept
12627          LIBS=$gcj_oldLibs
12628      fi
12629      unset ac_cv_func_gethostbyname
12630      gcj_oldLibs=$LIBS
12631      LIBS="$LIBS $gcj_cv_lib_sockets"
12632      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12633 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12634 if test "${ac_cv_func_gethostbyname+set}" = set; then
12635   echo $ECHO_N "(cached) $ECHO_C" >&6
12636 else
12637   if test x$gcc_no_link = xyes; then
12638   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12640    { (exit 1); exit 1; }; }
12641 fi
12642 cat >conftest.$ac_ext <<_ACEOF
12643 /* confdefs.h.  */
12644 _ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h.  */
12648 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12650 #define gethostbyname innocuous_gethostbyname
12651
12652 /* System header to define __stub macros and hopefully few prototypes,
12653     which can conflict with char gethostbyname (); below.
12654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12655     <limits.h> exists even on freestanding compilers.  */
12656
12657 #ifdef __STDC__
12658 # include <limits.h>
12659 #else
12660 # include <assert.h>
12661 #endif
12662
12663 #undef gethostbyname
12664
12665 /* Override any gcc2 internal prototype to avoid an error.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 {
12669 #endif
12670 /* We use char because int might match the return type of a gcc2
12671    builtin and then its argument prototype would still apply.  */
12672 char gethostbyname ();
12673 /* The GNU C library defines this for functions which it implements
12674     to always fail with ENOSYS.  Some functions are actually named
12675     something starting with __ and the normal name is an alias.  */
12676 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12677 choke me
12678 #else
12679 char (*f) () = gethostbyname;
12680 #endif
12681 #ifdef __cplusplus
12682 }
12683 #endif
12684
12685 int
12686 main ()
12687 {
12688 return f != gethostbyname;
12689   ;
12690   return 0;
12691 }
12692 _ACEOF
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695   (eval $ac_link) 2>conftest.er1
12696   ac_status=$?
12697   grep -v '^ *+' conftest.er1 >conftest.err
12698   rm -f conftest.er1
12699   cat conftest.err >&5
12700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701   (exit $ac_status); } &&
12702          { ac_try='test -z "$ac_c_werror_flag"
12703                          || test ! -s conftest.err'
12704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705   (eval $ac_try) 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; } &&
12709          { ac_try='test -s conftest$ac_exeext'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; }; then
12715   ac_cv_func_gethostbyname=yes
12716 else
12717   echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_cv_func_gethostbyname=no
12721 fi
12722 rm -f conftest.err conftest.$ac_objext \
12723       conftest$ac_exeext conftest.$ac_ext
12724 fi
12725 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12726 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12727 if test $ac_cv_func_gethostbyname = yes; then
12728   :
12729 else
12730   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12731 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12732 if test "${ac_cv_lib_nsl_main+set}" = set; then
12733   echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735   ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-lnsl  $LIBS"
12737 if test x$gcc_no_link = xyes; then
12738   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12740    { (exit 1); exit 1; }; }
12741 fi
12742 cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h.  */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h.  */
12748
12749
12750 int
12751 main ()
12752 {
12753 main ();
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760   (eval $ac_link) 2>conftest.er1
12761   ac_status=$?
12762   grep -v '^ *+' conftest.er1 >conftest.err
12763   rm -f conftest.er1
12764   cat conftest.err >&5
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); } &&
12767          { ac_try='test -z "$ac_c_werror_flag"
12768                          || test ! -s conftest.err'
12769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12770   (eval $ac_try) 2>&5
12771   ac_status=$?
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); }; } &&
12774          { ac_try='test -s conftest$ac_exeext'
12775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776   (eval $ac_try) 2>&5
12777   ac_status=$?
12778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779   (exit $ac_status); }; }; then
12780   ac_cv_lib_nsl_main=yes
12781 else
12782   echo "$as_me: failed program was:" >&5
12783 sed 's/^/| /' conftest.$ac_ext >&5
12784
12785 ac_cv_lib_nsl_main=no
12786 fi
12787 rm -f conftest.err conftest.$ac_objext \
12788       conftest$ac_exeext conftest.$ac_ext
12789 LIBS=$ac_check_lib_save_LIBS
12790 fi
12791 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12792 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12793 if test $ac_cv_lib_nsl_main = yes; then
12794   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12795 fi
12796
12797 fi
12798
12799      unset ac_cv_func_gethostbyname
12800      LIBS=$gcj_oldLIBS
12801
12802 fi
12803 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12804 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12805    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12806
12807    if test "$with_system_zlib" = yes; then
12808       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12809 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12810 if test "${ac_cv_lib_z_deflate+set}" = set; then
12811   echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813   ac_check_lib_save_LIBS=$LIBS
12814 LIBS="-lz  $LIBS"
12815 if test x$gcc_no_link = xyes; then
12816   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12818    { (exit 1); exit 1; }; }
12819 fi
12820 cat >conftest.$ac_ext <<_ACEOF
12821 /* confdefs.h.  */
12822 _ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h.  */
12826
12827 /* Override any gcc2 internal prototype to avoid an error.  */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 /* We use char because int might match the return type of a gcc2
12832    builtin and then its argument prototype would still apply.  */
12833 char deflate ();
12834 int
12835 main ()
12836 {
12837 deflate ();
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 rm -f conftest.$ac_objext conftest$ac_exeext
12843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844   (eval $ac_link) 2>conftest.er1
12845   ac_status=$?
12846   grep -v '^ *+' conftest.er1 >conftest.err
12847   rm -f conftest.er1
12848   cat conftest.err >&5
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); } &&
12851          { ac_try='test -z "$ac_c_werror_flag"
12852                          || test ! -s conftest.err'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; } &&
12858          { ac_try='test -s conftest$ac_exeext'
12859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860   (eval $ac_try) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; }; then
12864   ac_cv_lib_z_deflate=yes
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 ac_cv_lib_z_deflate=no
12870 fi
12871 rm -f conftest.err conftest.$ac_objext \
12872       conftest$ac_exeext conftest.$ac_ext
12873 LIBS=$ac_check_lib_save_LIBS
12874 fi
12875 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12876 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12877 if test $ac_cv_lib_z_deflate = yes; then
12878   ZLIBSPEC=-lz
12879 else
12880   ZLIBSPEC=
12881 fi
12882
12883    fi
12884
12885    # Test for Gtk stuff, if asked for.
12886    if test "$use_gtk_awt" = yes; then
12887
12888   succeeded=no
12889
12890   if test -z "$PKG_CONFIG"; then
12891     # Extract the first word of "pkg-config", so it can be a program name with args.
12892 set dummy pkg-config; ac_word=$2
12893 echo "$as_me:$LINENO: checking for $ac_word" >&5
12894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12896   echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898   case $PKG_CONFIG in
12899   [\\/]* | ?:[\\/]*)
12900   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12901   ;;
12902   *)
12903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12905 do
12906   IFS=$as_save_IFS
12907   test -z "$as_dir" && as_dir=.
12908   for ac_exec_ext in '' $ac_executable_extensions; do
12909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12912     break 2
12913   fi
12914 done
12915 done
12916
12917   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12918   ;;
12919 esac
12920 fi
12921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12922
12923 if test -n "$PKG_CONFIG"; then
12924   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12925 echo "${ECHO_T}$PKG_CONFIG" >&6
12926 else
12927   echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6
12929 fi
12930
12931   fi
12932
12933   if test "$PKG_CONFIG" = "no" ; then
12934      echo "*** The pkg-config script could not be found. Make sure it is"
12935      echo "*** in your path, or set the PKG_CONFIG environment variable"
12936      echo "*** to the full path to pkg-config."
12937      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12938   else
12939      PKG_CONFIG_MIN_VERSION=0.9.0
12940      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12941         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12942 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12943
12944         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12945             echo "$as_me:$LINENO: result: yes" >&5
12946 echo "${ECHO_T}yes" >&6
12947             succeeded=yes
12948
12949             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12950 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12951             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12952             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12953 echo "${ECHO_T}$GTK_CFLAGS" >&6
12954
12955             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12956 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12957             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12958             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12959 echo "${ECHO_T}$GTK_LIBS" >&6
12960         else
12961             GTK_CFLAGS=""
12962             GTK_LIBS=""
12963             ## If we have a custom action on failure, don't print errors, but
12964             ## do set a variable so people can do so.
12965             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12966             echo $GTK_PKG_ERRORS
12967         fi
12968
12969
12970
12971      else
12972         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12973         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12974      fi
12975   fi
12976
12977   if test $succeeded = yes; then
12978      :
12979   else
12980      { { 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
12981 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;}
12982    { (exit 1); exit 1; }; }
12983   fi
12984
12985
12986
12987
12988
12989   succeeded=no
12990
12991   if test -z "$PKG_CONFIG"; then
12992     # Extract the first word of "pkg-config", so it can be a program name with args.
12993 set dummy pkg-config; ac_word=$2
12994 echo "$as_me:$LINENO: checking for $ac_word" >&5
12995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12996 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999   case $PKG_CONFIG in
13000   [\\/]* | ?:[\\/]*)
13001   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13002   ;;
13003   *)
13004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005 for as_dir in $PATH
13006 do
13007   IFS=$as_save_IFS
13008   test -z "$as_dir" && as_dir=.
13009   for ac_exec_ext in '' $ac_executable_extensions; do
13010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13011     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13013     break 2
13014   fi
13015 done
13016 done
13017
13018   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13019   ;;
13020 esac
13021 fi
13022 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13023
13024 if test -n "$PKG_CONFIG"; then
13025   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13026 echo "${ECHO_T}$PKG_CONFIG" >&6
13027 else
13028   echo "$as_me:$LINENO: result: no" >&5
13029 echo "${ECHO_T}no" >&6
13030 fi
13031
13032   fi
13033
13034   if test "$PKG_CONFIG" = "no" ; then
13035      echo "*** The pkg-config script could not be found. Make sure it is"
13036      echo "*** in your path, or set the PKG_CONFIG environment variable"
13037      echo "*** to the full path to pkg-config."
13038      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13039   else
13040      PKG_CONFIG_MIN_VERSION=0.9.0
13041      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13042         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13043 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13044
13045         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13046             echo "$as_me:$LINENO: result: yes" >&5
13047 echo "${ECHO_T}yes" >&6
13048             succeeded=yes
13049
13050             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13051 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13052             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13053             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13054 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13055
13056             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13057 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13058             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13059             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13060 echo "${ECHO_T}$GLIB_LIBS" >&6
13061         else
13062             GLIB_CFLAGS=""
13063             GLIB_LIBS=""
13064             ## If we have a custom action on failure, don't print errors, but
13065             ## do set a variable so people can do so.
13066             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13067             echo $GLIB_PKG_ERRORS
13068         fi
13069
13070
13071
13072      else
13073         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13074         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13075      fi
13076   fi
13077
13078   if test $succeeded = yes; then
13079      :
13080   else
13081      { { 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
13082 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;}
13083    { (exit 1); exit 1; }; }
13084   fi
13085
13086
13087
13088
13089
13090   succeeded=no
13091
13092   if test -z "$PKG_CONFIG"; then
13093     # Extract the first word of "pkg-config", so it can be a program name with args.
13094 set dummy pkg-config; ac_word=$2
13095 echo "$as_me:$LINENO: checking for $ac_word" >&5
13096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13097 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 else
13100   case $PKG_CONFIG in
13101   [\\/]* | ?:[\\/]*)
13102   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13103   ;;
13104   *)
13105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13107 do
13108   IFS=$as_save_IFS
13109   test -z "$as_dir" && as_dir=.
13110   for ac_exec_ext in '' $ac_executable_extensions; do
13111   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13112     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13114     break 2
13115   fi
13116 done
13117 done
13118
13119   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13120   ;;
13121 esac
13122 fi
13123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13124
13125 if test -n "$PKG_CONFIG"; then
13126   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13127 echo "${ECHO_T}$PKG_CONFIG" >&6
13128 else
13129   echo "$as_me:$LINENO: result: no" >&5
13130 echo "${ECHO_T}no" >&6
13131 fi
13132
13133   fi
13134
13135   if test "$PKG_CONFIG" = "no" ; then
13136      echo "*** The pkg-config script could not be found. Make sure it is"
13137      echo "*** in your path, or set the PKG_CONFIG environment variable"
13138      echo "*** to the full path to pkg-config."
13139      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13140   else
13141      PKG_CONFIG_MIN_VERSION=0.9.0
13142      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13143         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13144 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13145
13146         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13147             echo "$as_me:$LINENO: result: yes" >&5
13148 echo "${ECHO_T}yes" >&6
13149             succeeded=yes
13150
13151             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13152 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13153             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13154             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13155 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13156
13157             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13158 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13159             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13160             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13161 echo "${ECHO_T}$LIBART_LIBS" >&6
13162         else
13163             LIBART_CFLAGS=""
13164             LIBART_LIBS=""
13165             ## If we have a custom action on failure, don't print errors, but
13166             ## do set a variable so people can do so.
13167             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13168             echo $LIBART_PKG_ERRORS
13169         fi
13170
13171
13172
13173      else
13174         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13175         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13176      fi
13177   fi
13178
13179   if test $succeeded = yes; then
13180      :
13181   else
13182      { { 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
13183 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;}
13184    { (exit 1); exit 1; }; }
13185   fi
13186
13187
13188
13189    fi
13190
13191    # On Solaris, and maybe other architectures, the Boehm collector
13192    # requires -ldl.
13193    if test "$GC" = boehm; then
13194       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13195 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13196 if test "${ac_cv_lib_dl_main+set}" = set; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 else
13199   ac_check_lib_save_LIBS=$LIBS
13200 LIBS="-ldl  $LIBS"
13201 if test x$gcc_no_link = xyes; then
13202   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13203 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13204    { (exit 1); exit 1; }; }
13205 fi
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212
13213
13214 int
13215 main ()
13216 {
13217 main ();
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13224   (eval $ac_link) 2>conftest.er1
13225   ac_status=$?
13226   grep -v '^ *+' conftest.er1 >conftest.err
13227   rm -f conftest.er1
13228   cat conftest.err >&5
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); } &&
13231          { ac_try='test -z "$ac_c_werror_flag"
13232                          || test ! -s conftest.err'
13233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13234   (eval $ac_try) 2>&5
13235   ac_status=$?
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); }; } &&
13238          { ac_try='test -s conftest$ac_exeext'
13239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13240   (eval $ac_try) 2>&5
13241   ac_status=$?
13242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243   (exit $ac_status); }; }; then
13244   ac_cv_lib_dl_main=yes
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 ac_cv_lib_dl_main=no
13250 fi
13251 rm -f conftest.err conftest.$ac_objext \
13252       conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13254 fi
13255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13256 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13257 if test $ac_cv_lib_dl_main = yes; then
13258   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13259 fi
13260
13261    fi
13262 fi
13263
13264
13265 if test "$supply_backtrace" = yes; then
13266   SUPPLY_BACKTRACE_TRUE=
13267   SUPPLY_BACKTRACE_FALSE='#'
13268 else
13269   SUPPLY_BACKTRACE_TRUE='#'
13270   SUPPLY_BACKTRACE_FALSE=
13271 fi
13272
13273
13274 if test -z "${with_multisubdir}"; then
13275    builddotdot=.
13276 else
13277    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13278 fi
13279
13280 NATIVE=yes
13281
13282 # Which gcj do we use?
13283 which_gcj=default
13284 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13285 if test -n "${with_cross_host}"; then
13286   # We are being configured with a cross compiler. We can't
13287   # use ac_exeext, because that is for the target platform.
13288   NATIVE=no
13289   cross_host_exeext=
13290   case "${with_cross_host}" in
13291      *mingw* | *cygwin*)
13292          cross_host_exeext=.exe
13293      ;;
13294   esac
13295   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13296      if test x"$build_noncanonical" = x"$with_cross_host"; then
13297         # Ordinary cross (host!=target and host=build)
13298         which_gcj=built
13299      else
13300         # Canadian cross (host!=target and host!=build)
13301         which_gcj=cross
13302      fi
13303   else
13304      which_gcj=cross
13305   fi
13306 else
13307   # We are being configured with a native or crossed-native compiler
13308   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13309      if test x"$build" = x"$host"; then
13310         # True native build (host=target and host=build)
13311         which_gcj=built
13312      else
13313         # Crossed-native build (host=target and host!=build)
13314         which_gcj=cross
13315      fi
13316   else
13317      which_gcj=path
13318   fi
13319 fi
13320 case "${which_gcj}" in
13321    built)
13322       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13323       GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13324       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13325    ;;
13326    cross)
13327       if test "x${with_newlib}" = "xyes"; then
13328          # FIXME (comment): Why is this needed?
13329          GCC_UNWIND_INCLUDE=
13330          GCJ="${target_noncanonical}-gcj"
13331       else
13332          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13333       fi
13334       ZIP=jar
13335       GCJH='$(target_noncanonical)-gcjh'
13336    ;;
13337    path)
13338       GCJ="gcj -B`${PWDCMD-pwd}`/"
13339       ## In this case, gcj is found outside the build tree.  However, zip is
13340       ## found in the build tree.
13341       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13342       GCJH=gcjh
13343    ;;
13344 esac
13345
13346
13347
13348
13349 # Create it, so that compile/link tests don't fail
13350 test -f libgcj.spec || touch libgcj.spec
13351
13352 # We must search the source tree for java.lang, since we still don't
13353 # have libgcj.jar nor java/lang/*.class
13354 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13355 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13356
13357 # Since some classes depend on this one, we need its source available
13358 # before we can do any GCJ compilation test :-(
13359 if test ! -f gnu/classpath/Configuration.java; then
13360   test -d gnu || mkdir gnu
13361   test -d gnu/classpath || mkdir gnu/classpath
13362   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13363       -e 's,@TOOLKIT@,$TOOLKIT,' \
13364         < $srcdir/gnu/classpath/Configuration.java.in \
13365         > gnu/classpath/Configuration.java
13366   # We do not want to redirect the output of the grep below to /dev/null,
13367   # but we add /dev/null to the input list so that grep will print the
13368   # filename of Configuration.java in case it finds any matches.
13369   if grep @ gnu/classpath/Configuration.java /dev/null; then
13370     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13371 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13372    { (exit 1); exit 1; }; }
13373   fi
13374 fi
13375
13376 if test -n "$ac_tool_prefix"; then
13377   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13378 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13379 echo "$as_me:$LINENO: checking for $ac_word" >&5
13380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13381 if test "${ac_cv_prog_GCJ+set}" = set; then
13382   echo $ECHO_N "(cached) $ECHO_C" >&6
13383 else
13384   if test -n "$GCJ"; then
13385   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13386 else
13387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13389 do
13390   IFS=$as_save_IFS
13391   test -z "$as_dir" && as_dir=.
13392   for ac_exec_ext in '' $ac_executable_extensions; do
13393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13396     break 2
13397   fi
13398 done
13399 done
13400
13401 fi
13402 fi
13403 GCJ=$ac_cv_prog_GCJ
13404 if test -n "$GCJ"; then
13405   echo "$as_me:$LINENO: result: $GCJ" >&5
13406 echo "${ECHO_T}$GCJ" >&6
13407 else
13408   echo "$as_me:$LINENO: result: no" >&5
13409 echo "${ECHO_T}no" >&6
13410 fi
13411
13412 fi
13413 if test -z "$ac_cv_prog_GCJ"; then
13414   ac_ct_GCJ=$GCJ
13415   # Extract the first word of "gcj", so it can be a program name with args.
13416 set dummy gcj; ac_word=$2
13417 echo "$as_me:$LINENO: checking for $ac_word" >&5
13418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13419 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13420   echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422   if test -n "$ac_ct_GCJ"; then
13423   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13424 else
13425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13426 for as_dir in $PATH
13427 do
13428   IFS=$as_save_IFS
13429   test -z "$as_dir" && as_dir=.
13430   for ac_exec_ext in '' $ac_executable_extensions; do
13431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13432     ac_cv_prog_ac_ct_GCJ="gcj"
13433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13434     break 2
13435   fi
13436 done
13437 done
13438
13439   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13440 fi
13441 fi
13442 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13443 if test -n "$ac_ct_GCJ"; then
13444   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13445 echo "${ECHO_T}$ac_ct_GCJ" >&6
13446 else
13447   echo "$as_me:$LINENO: result: no" >&5
13448 echo "${ECHO_T}no" >&6
13449 fi
13450
13451   GCJ=$ac_ct_GCJ
13452 else
13453   GCJ="$ac_cv_prog_GCJ"
13454 fi
13455
13456   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13457
13458
13459
13460
13461 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13462
13463 echo "$as_me:$LINENO: checking size of void *" >&5
13464 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13465 if test "${ac_cv_sizeof_void_p+set}" = set; then
13466   echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13469   cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h.  */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h.  */
13475 #include "confdefs.h"
13476 #include <sys/types.h>
13477
13478
13479 int
13480 main ()
13481 {
13482 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489   (eval $ac_compile) 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag"
13497                          || test ! -s conftest.err'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; } &&
13503          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13509   ac_cv_sizeof_void_p=$ac_size
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 fi
13515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13516   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13517 done
13518
13519 fi
13520
13521 if test x$ac_cv_sizeof_void_p = x ; then
13522   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13523 echo "$as_me: error: cannot determine a size for void *" >&2;}
13524    { (exit 1); exit 1; }; }
13525 fi
13526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13527 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13528
13529 cat >>confdefs.h <<_ACEOF
13530 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13531 _ACEOF
13532
13533
13534
13535 ZLIBS=
13536 SYS_ZLIBS=
13537 ZINCS=
13538
13539 if test -z "$ZLIBSPEC"; then
13540    # Use zlib from the GCC tree.
13541    ZINCS='-I$(top_srcdir)/../zlib'
13542    ZLIBS=../zlib/libzgcj_convenience.la
13543 else
13544    # System's zlib.
13545    SYS_ZLIBS="$ZLIBSPEC"
13546 fi
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557 if test "$NATIVE" = yes; then
13558   NATIVE_TRUE=
13559   NATIVE_FALSE='#'
13560 else
13561   NATIVE_TRUE='#'
13562   NATIVE_FALSE=
13563 fi
13564
13565
13566
13567 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13568   NEEDS_DATA_START_TRUE=
13569   NEEDS_DATA_START_FALSE='#'
13570 else
13571   NEEDS_DATA_START_TRUE='#'
13572   NEEDS_DATA_START_FALSE=
13573 fi
13574
13575
13576
13577 # Process the option "--enable-version-specific-runtime-libs"
13578 # Calculate toolexeclibdir
13579 case ${version_specific_libs} in
13580   yes)
13581     # Need the gcc compiler version to know where to install libraries
13582     # and header files if --enable-version-specific-runtime-libs option
13583     # is selected.
13584     includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13585     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13586     toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13587     toolexeclibdir=$toolexecmainlibdir
13588     ;;
13589   no)
13590     if test -n "$with_cross_host" &&
13591        test x"$with_cross_host" != x"no"; then
13592       # Install a library built with a cross compiler in tooldir, not libdir.
13593       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13594       toolexecmainlibdir='$(toolexecdir)/lib'
13595     else
13596       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13597       toolexecmainlibdir='$(libdir)'
13598     fi
13599     multi_os_directory=`$CC -print-multi-os-directory`
13600     case $multi_os_directory in
13601       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13602       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13603     esac
13604     ;;
13605 esac
13606
13607
13608
13609
13610 # Determine gcj version number.
13611 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13612 GCJVERSION=$gcjversion
13613
13614
13615 cat >>confdefs.h <<_ACEOF
13616 #define GCJVERSION "$GCJVERSION"
13617 _ACEOF
13618
13619
13620 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13621 # On that system, sys/ioctl.h will not include sys/filio.h unless
13622 # BSD_COMP is defined; just including sys/filio.h is simpler.
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
13643 do
13644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13646   echo "$as_me:$LINENO: checking for $ac_header" >&5
13647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13649   echo $ECHO_N "(cached) $ECHO_C" >&6
13650 fi
13651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13653 else
13654   # Is the header compilable?
13655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13657 cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663 $ac_includes_default
13664 #include <$ac_header>
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668   (eval $ac_compile) 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -z "$ac_c_werror_flag"
13676                          || test ! -s conftest.err'
13677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678   (eval $ac_try) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; } &&
13682          { ac_try='test -s conftest.$ac_objext'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688   ac_header_compiler=yes
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_header_compiler=no
13694 fi
13695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13697 echo "${ECHO_T}$ac_header_compiler" >&6
13698
13699 # Is the header present?
13700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13702 cat >conftest.$ac_ext <<_ACEOF
13703 /* confdefs.h.  */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h.  */
13708 #include <$ac_header>
13709 _ACEOF
13710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13712   ac_status=$?
13713   grep -v '^ *+' conftest.er1 >conftest.err
13714   rm -f conftest.er1
13715   cat conftest.err >&5
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } >/dev/null; then
13718   if test -s conftest.err; then
13719     ac_cpp_err=$ac_c_preproc_warn_flag
13720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13721   else
13722     ac_cpp_err=
13723   fi
13724 else
13725   ac_cpp_err=yes
13726 fi
13727 if test -z "$ac_cpp_err"; then
13728   ac_header_preproc=yes
13729 else
13730   echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13732
13733   ac_header_preproc=no
13734 fi
13735 rm -f conftest.err conftest.$ac_ext
13736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13737 echo "${ECHO_T}$ac_header_preproc" >&6
13738
13739 # So?  What about this header?
13740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13741   yes:no: )
13742     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13746     ac_header_preproc=yes
13747     ;;
13748   no:yes:* )
13749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13751     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13752 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13753     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13755     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13756 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13759     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13761     (
13762       cat <<\_ASBOX
13763 ## ---------------------------------- ##
13764 ## Report this to the libjava lists.  ##
13765 ## ---------------------------------- ##
13766 _ASBOX
13767     ) |
13768       sed "s/^/$as_me: WARNING:     /" >&2
13769     ;;
13770 esac
13771 echo "$as_me:$LINENO: checking for $ac_header" >&5
13772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13774   echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776   eval "$as_ac_Header=\$ac_header_preproc"
13777 fi
13778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13780
13781 fi
13782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13783   cat >>confdefs.h <<_ACEOF
13784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13785 _ACEOF
13786
13787 fi
13788
13789 done
13790
13791 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13792 # for now.  If you change this, you also must update natFile.cc.
13793
13794 for ac_header in dirent.h
13795 do
13796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13798   echo "$as_me:$LINENO: checking for $ac_header" >&5
13799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13801   echo $ECHO_N "(cached) $ECHO_C" >&6
13802 fi
13803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13805 else
13806   # Is the header compilable?
13807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h.  */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h.  */
13815 $ac_includes_default
13816 #include <$ac_header>
13817 _ACEOF
13818 rm -f conftest.$ac_objext
13819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13820   (eval $ac_compile) 2>conftest.er1
13821   ac_status=$?
13822   grep -v '^ *+' conftest.er1 >conftest.err
13823   rm -f conftest.er1
13824   cat conftest.err >&5
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); } &&
13827          { ac_try='test -z "$ac_c_werror_flag"
13828                          || test ! -s conftest.err'
13829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830   (eval $ac_try) 2>&5
13831   ac_status=$?
13832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833   (exit $ac_status); }; } &&
13834          { ac_try='test -s conftest.$ac_objext'
13835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836   (eval $ac_try) 2>&5
13837   ac_status=$?
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); }; }; then
13840   ac_header_compiler=yes
13841 else
13842   echo "$as_me: failed program was:" >&5
13843 sed 's/^/| /' conftest.$ac_ext >&5
13844
13845 ac_header_compiler=no
13846 fi
13847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13849 echo "${ECHO_T}$ac_header_compiler" >&6
13850
13851 # Is the header present?
13852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13854 cat >conftest.$ac_ext <<_ACEOF
13855 /* confdefs.h.  */
13856 _ACEOF
13857 cat confdefs.h >>conftest.$ac_ext
13858 cat >>conftest.$ac_ext <<_ACEOF
13859 /* end confdefs.h.  */
13860 #include <$ac_header>
13861 _ACEOF
13862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13864   ac_status=$?
13865   grep -v '^ *+' conftest.er1 >conftest.err
13866   rm -f conftest.er1
13867   cat conftest.err >&5
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); } >/dev/null; then
13870   if test -s conftest.err; then
13871     ac_cpp_err=$ac_c_preproc_warn_flag
13872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13873   else
13874     ac_cpp_err=
13875   fi
13876 else
13877   ac_cpp_err=yes
13878 fi
13879 if test -z "$ac_cpp_err"; then
13880   ac_header_preproc=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885   ac_header_preproc=no
13886 fi
13887 rm -f conftest.err conftest.$ac_ext
13888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889 echo "${ECHO_T}$ac_header_preproc" >&6
13890
13891 # So?  What about this header?
13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13893   yes:no: )
13894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13898     ac_header_preproc=yes
13899     ;;
13900   no:yes:* )
13901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13913     (
13914       cat <<\_ASBOX
13915 ## ---------------------------------- ##
13916 ## Report this to the libjava lists.  ##
13917 ## ---------------------------------- ##
13918 _ASBOX
13919     ) |
13920       sed "s/^/$as_me: WARNING:     /" >&2
13921     ;;
13922 esac
13923 echo "$as_me:$LINENO: checking for $ac_header" >&5
13924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   eval "$as_ac_Header=\$ac_header_preproc"
13929 fi
13930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13932
13933 fi
13934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13935   cat >>confdefs.h <<_ACEOF
13936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13937 _ACEOF
13938
13939 fi
13940
13941 done
13942
13943
13944 for ac_header in inttypes.h
13945 do
13946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13948   echo "$as_me:$LINENO: checking for $ac_header" >&5
13949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 fi
13953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13955 else
13956   # Is the header compilable?
13957 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h.  */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h.  */
13965 $ac_includes_default
13966 #include <$ac_header>
13967 _ACEOF
13968 rm -f conftest.$ac_objext
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970   (eval $ac_compile) 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } &&
13977          { ac_try='test -z "$ac_c_werror_flag"
13978                          || test ! -s conftest.err'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; } &&
13984          { ac_try='test -s conftest.$ac_objext'
13985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986   (eval $ac_try) 2>&5
13987   ac_status=$?
13988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989   (exit $ac_status); }; }; then
13990   ac_header_compiler=yes
13991 else
13992   echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995 ac_header_compiler=no
13996 fi
13997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13998 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13999 echo "${ECHO_T}$ac_header_compiler" >&6
14000
14001 # Is the header present?
14002 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010 #include <$ac_header>
14011 _ACEOF
14012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } >/dev/null; then
14020   if test -s conftest.err; then
14021     ac_cpp_err=$ac_c_preproc_warn_flag
14022     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14023   else
14024     ac_cpp_err=
14025   fi
14026 else
14027   ac_cpp_err=yes
14028 fi
14029 if test -z "$ac_cpp_err"; then
14030   ac_header_preproc=yes
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035   ac_header_preproc=no
14036 fi
14037 rm -f conftest.err conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14039 echo "${ECHO_T}$ac_header_preproc" >&6
14040
14041 # So?  What about this header?
14042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14043   yes:no: )
14044     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14045 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14047 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14048     ac_header_preproc=yes
14049     ;;
14050   no:yes:* )
14051     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14053     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14054 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14055     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14056 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14057     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14058 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14059     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14060 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14061     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14062 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14063     (
14064       cat <<\_ASBOX
14065 ## ---------------------------------- ##
14066 ## Report this to the libjava lists.  ##
14067 ## ---------------------------------- ##
14068 _ASBOX
14069     ) |
14070       sed "s/^/$as_me: WARNING:     /" >&2
14071     ;;
14072 esac
14073 echo "$as_me:$LINENO: checking for $ac_header" >&5
14074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14076   echo $ECHO_N "(cached) $ECHO_C" >&6
14077 else
14078   eval "$as_ac_Header=\$ac_header_preproc"
14079 fi
14080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14082
14083 fi
14084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14085   cat >>confdefs.h <<_ACEOF
14086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14087 _ACEOF
14088
14089
14090 cat >>confdefs.h <<\_ACEOF
14091 #define HAVE_INTTYPES_H 1
14092 _ACEOF
14093
14094
14095 cat >>confdefs.h <<\_ACEOF
14096 #define JV_HAVE_INTTYPES_H 1
14097 _ACEOF
14098
14099
14100 fi
14101
14102 done
14103
14104 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14105 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14106 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h.  */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h.  */
14115 #include <sys/types.h>
14116 #include <sys/wait.h>
14117 #ifndef WEXITSTATUS
14118 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14119 #endif
14120 #ifndef WIFEXITED
14121 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14122 #endif
14123
14124 int
14125 main ()
14126 {
14127   int s;
14128   wait (&s);
14129   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136   (eval $ac_compile) 2>conftest.er1
14137   ac_status=$?
14138   grep -v '^ *+' conftest.er1 >conftest.err
14139   rm -f conftest.er1
14140   cat conftest.err >&5
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); } &&
14143          { ac_try='test -z "$ac_c_werror_flag"
14144                          || test ! -s conftest.err'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; } &&
14150          { ac_try='test -s conftest.$ac_objext'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; }; then
14156   ac_cv_header_sys_wait_h=yes
14157 else
14158   echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_header_sys_wait_h=no
14162 fi
14163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14164 fi
14165 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14166 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14167 if test $ac_cv_header_sys_wait_h = yes; then
14168
14169 cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_SYS_WAIT_H 1
14171 _ACEOF
14172
14173 fi
14174
14175
14176 echo "$as_me:$LINENO: checking for ssize_t" >&5
14177 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14178 if test "${ac_cv_type_ssize_t+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181   cat >conftest.$ac_ext <<_ACEOF
14182 /* confdefs.h.  */
14183 _ACEOF
14184 cat confdefs.h >>conftest.$ac_ext
14185 cat >>conftest.$ac_ext <<_ACEOF
14186 /* end confdefs.h.  */
14187 $ac_includes_default
14188 int
14189 main ()
14190 {
14191 if ((ssize_t *) 0)
14192   return 0;
14193 if (sizeof (ssize_t))
14194   return 0;
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 rm -f conftest.$ac_objext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201   (eval $ac_compile) 2>conftest.er1
14202   ac_status=$?
14203   grep -v '^ *+' conftest.er1 >conftest.err
14204   rm -f conftest.er1
14205   cat conftest.err >&5
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -z "$ac_c_werror_flag"
14209                          || test ! -s conftest.err'
14210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211   (eval $ac_try) 2>&5
14212   ac_status=$?
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); }; } &&
14215          { ac_try='test -s conftest.$ac_objext'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; }; then
14221   ac_cv_type_ssize_t=yes
14222 else
14223   echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14225
14226 ac_cv_type_ssize_t=no
14227 fi
14228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14229 fi
14230 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14231 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14232 if test $ac_cv_type_ssize_t = yes; then
14233   :
14234 else
14235
14236 cat >>confdefs.h <<_ACEOF
14237 #define ssize_t int
14238 _ACEOF
14239
14240 fi
14241
14242
14243 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14244 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251 #include <sys/types.h>
14252 #if STDC_HEADERS
14253 #include <stdlib.h>
14254 #include <stddef.h>
14255 #endif
14256 #if HAVE_NETINET_IN_H
14257 #include <netinet/in.h>
14258 #endif
14259 int
14260 main ()
14261 {
14262 in_addr_t foo;
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269   (eval $ac_compile) 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_c_werror_flag"
14277                          || test ! -s conftest.err'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289
14290 cat >>confdefs.h <<\_ACEOF
14291 #define HAVE_IN_ADDR_T 1
14292 _ACEOF
14293
14294    echo "$as_me:$LINENO: result: yes" >&5
14295 echo "${ECHO_T}yes" >&6
14296 else
14297   echo "$as_me: failed program was:" >&5
14298 sed 's/^/| /' conftest.$ac_ext >&5
14299
14300 echo "$as_me:$LINENO: result: no" >&5
14301 echo "${ECHO_T}no" >&6
14302 fi
14303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14304
14305 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14306 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14307 cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313 #include <netinet/in.h>
14314 int
14315 main ()
14316 {
14317 struct ip_mreq mreq;
14318   ;
14319   return 0;
14320 }
14321 _ACEOF
14322 rm -f conftest.$ac_objext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324   (eval $ac_compile) 2>conftest.er1
14325   ac_status=$?
14326   grep -v '^ *+' conftest.er1 >conftest.err
14327   rm -f conftest.er1
14328   cat conftest.err >&5
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); } &&
14331          { ac_try='test -z "$ac_c_werror_flag"
14332                          || test ! -s conftest.err'
14333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334   (eval $ac_try) 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; } &&
14338          { ac_try='test -s conftest.$ac_objext'
14339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340   (eval $ac_try) 2>&5
14341   ac_status=$?
14342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343   (exit $ac_status); }; }; then
14344
14345 cat >>confdefs.h <<\_ACEOF
14346 #define HAVE_STRUCT_IP_MREQ 1
14347 _ACEOF
14348
14349    echo "$as_me:$LINENO: result: yes" >&5
14350 echo "${ECHO_T}yes" >&6
14351 else
14352   echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.$ac_ext >&5
14354
14355 echo "$as_me:$LINENO: result: no" >&5
14356 echo "${ECHO_T}no" >&6
14357 fi
14358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14359
14360 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14361 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14362 cat >conftest.$ac_ext <<_ACEOF
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368 #include <netinet/in.h>
14369 int
14370 main ()
14371 {
14372 struct ipv6_mreq mreq6;
14373   ;
14374   return 0;
14375 }
14376 _ACEOF
14377 rm -f conftest.$ac_objext
14378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14379   (eval $ac_compile) 2>conftest.er1
14380   ac_status=$?
14381   grep -v '^ *+' conftest.er1 >conftest.err
14382   rm -f conftest.er1
14383   cat conftest.err >&5
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); } &&
14386          { ac_try='test -z "$ac_c_werror_flag"
14387                          || test ! -s conftest.err'
14388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389   (eval $ac_try) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); }; } &&
14393          { ac_try='test -s conftest.$ac_objext'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; }; then
14399
14400 cat >>confdefs.h <<\_ACEOF
14401 #define HAVE_STRUCT_IPV6_MREQ 1
14402 _ACEOF
14403
14404    echo "$as_me:$LINENO: result: yes" >&5
14405 echo "${ECHO_T}yes" >&6
14406 else
14407   echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410 echo "$as_me:$LINENO: result: no" >&5
14411 echo "${ECHO_T}no" >&6
14412 fi
14413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14414
14415 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14416 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h.  */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h.  */
14423 #include <netinet/in.h>
14424 int
14425 main ()
14426 {
14427 struct sockaddr_in6 addr6;
14428   ;
14429   return 0;
14430 }
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14434   (eval $ac_compile) 2>conftest.er1
14435   ac_status=$?
14436   grep -v '^ *+' conftest.er1 >conftest.err
14437   rm -f conftest.er1
14438   cat conftest.err >&5
14439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440   (exit $ac_status); } &&
14441          { ac_try='test -z "$ac_c_werror_flag"
14442                          || test ! -s conftest.err'
14443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444   (eval $ac_try) 2>&5
14445   ac_status=$?
14446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447   (exit $ac_status); }; } &&
14448          { ac_try='test -s conftest.$ac_objext'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454
14455 cat >>confdefs.h <<\_ACEOF
14456 #define HAVE_INET6 1
14457 _ACEOF
14458
14459    echo "$as_me:$LINENO: result: yes" >&5
14460 echo "${ECHO_T}yes" >&6
14461 else
14462   echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 echo "$as_me:$LINENO: result: no" >&5
14466 echo "${ECHO_T}no" >&6
14467 fi
14468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14469
14470 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14471 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478 #define _POSIX_PII_SOCKET
14479 #include <sys/types.h>
14480 #include <sys/socket.h>
14481 int
14482 main ()
14483 {
14484 socklen_t x = 5;
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491   (eval $ac_compile) 2>conftest.er1
14492   ac_status=$?
14493   grep -v '^ *+' conftest.er1 >conftest.err
14494   rm -f conftest.er1
14495   cat conftest.err >&5
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); } &&
14498          { ac_try='test -z "$ac_c_werror_flag"
14499                          || test ! -s conftest.err'
14500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501   (eval $ac_try) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; } &&
14505          { ac_try='test -s conftest.$ac_objext'
14506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507   (eval $ac_try) 2>&5
14508   ac_status=$?
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); }; }; then
14511
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE_SOCKLEN_T 1
14514 _ACEOF
14515
14516    echo "$as_me:$LINENO: result: yes" >&5
14517 echo "${ECHO_T}yes" >&6
14518 else
14519   echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14521
14522 echo "$as_me:$LINENO: result: no" >&5
14523 echo "${ECHO_T}no" >&6
14524 fi
14525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14526
14527 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14528 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 #include <time.h>
14536 int
14537 main ()
14538 {
14539 struct tm tim; tim.tm_gmtoff = 0;
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest.$ac_objext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546   (eval $ac_compile) 2>conftest.er1
14547   ac_status=$?
14548   grep -v '^ *+' conftest.er1 >conftest.err
14549   rm -f conftest.er1
14550   cat conftest.err >&5
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -z "$ac_c_werror_flag"
14554                          || test ! -s conftest.err'
14555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556   (eval $ac_try) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; } &&
14560          { ac_try='test -s conftest.$ac_objext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566
14567 cat >>confdefs.h <<\_ACEOF
14568 #define STRUCT_TM_HAS_GMTOFF 1
14569 _ACEOF
14570
14571    echo "$as_me:$LINENO: result: yes" >&5
14572 echo "${ECHO_T}yes" >&6
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 echo "$as_me:$LINENO: result: no" >&5
14578 echo "${ECHO_T}no" >&6
14579    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14580 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14581                cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h.  */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h.  */
14587 #include <time.h>
14588 int
14589 main ()
14590 {
14591 void i(){long z2 = 2*timezone;}
14592   ;
14593   return 0;
14594 }
14595 _ACEOF
14596 rm -f conftest.$ac_objext
14597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14598   (eval $ac_compile) 2>conftest.er1
14599   ac_status=$?
14600   grep -v '^ *+' conftest.er1 >conftest.err
14601   rm -f conftest.er1
14602   cat conftest.err >&5
14603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604   (exit $ac_status); } &&
14605          { ac_try='test -z "$ac_c_werror_flag"
14606                          || test ! -s conftest.err'
14607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608   (eval $ac_try) 2>&5
14609   ac_status=$?
14610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611   (exit $ac_status); }; } &&
14612          { ac_try='test -s conftest.$ac_objext'
14613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614   (eval $ac_try) 2>&5
14615   ac_status=$?
14616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617   (exit $ac_status); }; }; then
14618
14619 cat >>confdefs.h <<\_ACEOF
14620 #define HAVE_TIMEZONE 1
14621 _ACEOF
14622
14623       echo "$as_me:$LINENO: result: yes" >&5
14624 echo "${ECHO_T}yes" >&6
14625 else
14626   echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.$ac_ext >&5
14628
14629 echo "$as_me:$LINENO: result: no" >&5
14630 echo "${ECHO_T}no" >&6
14631        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14632 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14633               cat >conftest.$ac_ext <<_ACEOF
14634 /* confdefs.h.  */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h.  */
14639 #include <time.h>
14640 int
14641 main ()
14642 {
14643 long z2 = _timezone;
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 rm -f conftest.$ac_objext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14650   (eval $ac_compile) 2>conftest.er1
14651   ac_status=$?
14652   grep -v '^ *+' conftest.er1 >conftest.err
14653   rm -f conftest.er1
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -z "$ac_c_werror_flag"
14658                          || test ! -s conftest.err'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; } &&
14664          { ac_try='test -s conftest.$ac_objext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670
14671 cat >>confdefs.h <<\_ACEOF
14672 #define HAVE_UNDERSCORE_TIMEZONE 1
14673 _ACEOF
14674
14675           echo "$as_me:$LINENO: result: yes" >&5
14676 echo "${ECHO_T}yes" >&6
14677 else
14678   echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681 echo "$as_me:$LINENO: result: no" >&5
14682 echo "${ECHO_T}no" >&6
14683 fi
14684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14685 fi
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14687 fi
14688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689
14690 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14691 # for constant arguments.  Useless!
14692 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14693 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14694 if test "${ac_cv_working_alloca_h+set}" = set; then
14695   echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14697   if test x$gcc_no_link = xyes; then
14698   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14699 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14700    { (exit 1); exit 1; }; }
14701 fi
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 #include <alloca.h>
14709 int
14710 main ()
14711 {
14712 char *p = (char *) alloca (2 * sizeof (int));
14713   ;
14714   return 0;
14715 }
14716 _ACEOF
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14719   (eval $ac_link) 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } &&
14726          { ac_try='test -z "$ac_c_werror_flag"
14727                          || test ! -s conftest.err'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; } &&
14733          { ac_try='test -s conftest$ac_exeext'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   ac_cv_working_alloca_h=yes
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_cv_working_alloca_h=no
14745 fi
14746 rm -f conftest.err conftest.$ac_objext \
14747       conftest$ac_exeext conftest.$ac_ext
14748 fi
14749 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14750 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14751 if test $ac_cv_working_alloca_h = yes; then
14752
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_ALLOCA_H 1
14755 _ACEOF
14756
14757 fi
14758
14759 echo "$as_me:$LINENO: checking for alloca" >&5
14760 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14761 if test "${ac_cv_func_alloca_works+set}" = set; then
14762   echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764   if test x$gcc_no_link = xyes; then
14765   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14767    { (exit 1); exit 1; }; }
14768 fi
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h.  */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h.  */
14775 #ifdef __GNUC__
14776 # define alloca __builtin_alloca
14777 #else
14778 # ifdef _MSC_VER
14779 #  include <malloc.h>
14780 #  define alloca _alloca
14781 # else
14782 #  if HAVE_ALLOCA_H
14783 #   include <alloca.h>
14784 #  else
14785 #   ifdef _AIX
14786  #pragma alloca
14787 #   else
14788 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14789 char *alloca ();
14790 #    endif
14791 #   endif
14792 #  endif
14793 # endif
14794 #endif
14795
14796 int
14797 main ()
14798 {
14799 char *p = (char *) alloca (1);
14800   ;
14801   return 0;
14802 }
14803 _ACEOF
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14806   (eval $ac_link) 2>conftest.er1
14807   ac_status=$?
14808   grep -v '^ *+' conftest.er1 >conftest.err
14809   rm -f conftest.er1
14810   cat conftest.err >&5
14811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812   (exit $ac_status); } &&
14813          { ac_try='test -z "$ac_c_werror_flag"
14814                          || test ! -s conftest.err'
14815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816   (eval $ac_try) 2>&5
14817   ac_status=$?
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); }; } &&
14820          { ac_try='test -s conftest$ac_exeext'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; }; then
14826   ac_cv_func_alloca_works=yes
14827 else
14828   echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14830
14831 ac_cv_func_alloca_works=no
14832 fi
14833 rm -f conftest.err conftest.$ac_objext \
14834       conftest$ac_exeext conftest.$ac_ext
14835 fi
14836 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14837 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14838
14839 if test $ac_cv_func_alloca_works = yes; then
14840
14841 cat >>confdefs.h <<\_ACEOF
14842 #define HAVE_ALLOCA 1
14843 _ACEOF
14844
14845 else
14846   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14847 # that cause trouble.  Some versions do not even contain alloca or
14848 # contain a buggy version.  If you still want to use their alloca,
14849 # use ar to extract alloca.o from them instead of compiling alloca.c.
14850
14851 ALLOCA=alloca.$ac_objext
14852
14853 cat >>confdefs.h <<\_ACEOF
14854 #define C_ALLOCA 1
14855 _ACEOF
14856
14857
14858 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14859 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14860 if test "${ac_cv_os_cray+set}" = set; then
14861   echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863   cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869 #if defined(CRAY) && ! defined(CRAY2)
14870 webecray
14871 #else
14872 wenotbecray
14873 #endif
14874
14875 _ACEOF
14876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14877   $EGREP "webecray" >/dev/null 2>&1; then
14878   ac_cv_os_cray=yes
14879 else
14880   ac_cv_os_cray=no
14881 fi
14882 rm -f conftest*
14883
14884 fi
14885 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14886 echo "${ECHO_T}$ac_cv_os_cray" >&6
14887 if test $ac_cv_os_cray = yes; then
14888   for ac_func in _getb67 GETB67 getb67; do
14889     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14890 echo "$as_me:$LINENO: checking for $ac_func" >&5
14891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14892 if eval "test \"\${$as_ac_var+set}\" = set"; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   if test x$gcc_no_link = xyes; then
14896   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14898    { (exit 1); exit 1; }; }
14899 fi
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14908 #define $ac_func innocuous_$ac_func
14909
14910 /* System header to define __stub macros and hopefully few prototypes,
14911     which can conflict with char $ac_func (); below.
14912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14913     <limits.h> exists even on freestanding compilers.  */
14914
14915 #ifdef __STDC__
14916 # include <limits.h>
14917 #else
14918 # include <assert.h>
14919 #endif
14920
14921 #undef $ac_func
14922
14923 /* Override any gcc2 internal prototype to avoid an error.  */
14924 #ifdef __cplusplus
14925 extern "C"
14926 {
14927 #endif
14928 /* We use char because int might match the return type of a gcc2
14929    builtin and then its argument prototype would still apply.  */
14930 char $ac_func ();
14931 /* The GNU C library defines this for functions which it implements
14932     to always fail with ENOSYS.  Some functions are actually named
14933     something starting with __ and the normal name is an alias.  */
14934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14935 choke me
14936 #else
14937 char (*f) () = $ac_func;
14938 #endif
14939 #ifdef __cplusplus
14940 }
14941 #endif
14942
14943 int
14944 main ()
14945 {
14946 return f != $ac_func;
14947   ;
14948   return 0;
14949 }
14950 _ACEOF
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953   (eval $ac_link) 2>conftest.er1
14954   ac_status=$?
14955   grep -v '^ *+' conftest.er1 >conftest.err
14956   rm -f conftest.er1
14957   cat conftest.err >&5
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); } &&
14960          { ac_try='test -z "$ac_c_werror_flag"
14961                          || test ! -s conftest.err'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; } &&
14967          { ac_try='test -s conftest$ac_exeext'
14968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969   (eval $ac_try) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; }; then
14973   eval "$as_ac_var=yes"
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978 eval "$as_ac_var=no"
14979 fi
14980 rm -f conftest.err conftest.$ac_objext \
14981       conftest$ac_exeext conftest.$ac_ext
14982 fi
14983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14985 if test `eval echo '${'$as_ac_var'}'` = yes; then
14986
14987 cat >>confdefs.h <<_ACEOF
14988 #define CRAY_STACKSEG_END $ac_func
14989 _ACEOF
14990
14991     break
14992 fi
14993
14994   done
14995 fi
14996
14997 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14998 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14999 if test "${ac_cv_c_stack_direction+set}" = set; then
15000   echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002   if test "$cross_compiling" = yes; then
15003   ac_cv_c_stack_direction=0
15004 else
15005   cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011 int
15012 find_stack_direction ()
15013 {
15014   static char *addr = 0;
15015   auto char dummy;
15016   if (addr == 0)
15017     {
15018       addr = &dummy;
15019       return find_stack_direction ();
15020     }
15021   else
15022     return (&dummy > addr) ? 1 : -1;
15023 }
15024
15025 int
15026 main ()
15027 {
15028   exit (find_stack_direction () < 0);
15029 }
15030 _ACEOF
15031 rm -f conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033   (eval $ac_link) 2>&5
15034   ac_status=$?
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038   (eval $ac_try) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; }; then
15042   ac_cv_c_stack_direction=1
15043 else
15044   echo "$as_me: program exited with status $ac_status" >&5
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048 ( exit $ac_status )
15049 ac_cv_c_stack_direction=-1
15050 fi
15051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 fi
15054 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15055 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15056
15057 cat >>confdefs.h <<_ACEOF
15058 #define STACK_DIRECTION $ac_cv_c_stack_direction
15059 _ACEOF
15060
15061
15062 fi
15063
15064 if test x$gcc_no_link = xyes; then
15065   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15066     ac_cv_func_mmap_fixed_mapped=no
15067   fi
15068 fi
15069 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15070
15071
15072 for ac_header in stdlib.h unistd.h
15073 do
15074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15076   echo "$as_me:$LINENO: checking for $ac_header" >&5
15077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15079   echo $ECHO_N "(cached) $ECHO_C" >&6
15080 fi
15081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15083 else
15084   # Is the header compilable?
15085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15087 cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093 $ac_includes_default
15094 #include <$ac_header>
15095 _ACEOF
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098   (eval $ac_compile) 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } &&
15105          { ac_try='test -z "$ac_c_werror_flag"
15106                          || test ! -s conftest.err'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; } &&
15112          { ac_try='test -s conftest.$ac_objext'
15113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114   (eval $ac_try) 2>&5
15115   ac_status=$?
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); }; }; then
15118   ac_header_compiler=yes
15119 else
15120   echo "$as_me: failed program was:" >&5
15121 sed 's/^/| /' conftest.$ac_ext >&5
15122
15123 ac_header_compiler=no
15124 fi
15125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15127 echo "${ECHO_T}$ac_header_compiler" >&6
15128
15129 # Is the header present?
15130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h.  */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h.  */
15138 #include <$ac_header>
15139 _ACEOF
15140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } >/dev/null; then
15148   if test -s conftest.err; then
15149     ac_cpp_err=$ac_c_preproc_warn_flag
15150     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15151   else
15152     ac_cpp_err=
15153   fi
15154 else
15155   ac_cpp_err=yes
15156 fi
15157 if test -z "$ac_cpp_err"; then
15158   ac_header_preproc=yes
15159 else
15160   echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163   ac_header_preproc=no
15164 fi
15165 rm -f conftest.err conftest.$ac_ext
15166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15167 echo "${ECHO_T}$ac_header_preproc" >&6
15168
15169 # So?  What about this header?
15170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15171   yes:no: )
15172     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15176     ac_header_preproc=yes
15177     ;;
15178   no:yes:* )
15179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15181     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15182 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15183     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15185     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15186 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15189     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15191     (
15192       cat <<\_ASBOX
15193 ## ---------------------------------- ##
15194 ## Report this to the libjava lists.  ##
15195 ## ---------------------------------- ##
15196 _ASBOX
15197     ) |
15198       sed "s/^/$as_me: WARNING:     /" >&2
15199     ;;
15200 esac
15201 echo "$as_me:$LINENO: checking for $ac_header" >&5
15202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   eval "$as_ac_Header=\$ac_header_preproc"
15207 fi
15208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15210
15211 fi
15212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15213   cat >>confdefs.h <<_ACEOF
15214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215 _ACEOF
15216
15217 fi
15218
15219 done
15220
15221
15222 for ac_func in getpagesize
15223 do
15224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15225 echo "$as_me:$LINENO: checking for $ac_func" >&5
15226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15227 if eval "test \"\${$as_ac_var+set}\" = set"; then
15228   echo $ECHO_N "(cached) $ECHO_C" >&6
15229 else
15230   if test x$gcc_no_link = xyes; then
15231   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15233    { (exit 1); exit 1; }; }
15234 fi
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15243 #define $ac_func innocuous_$ac_func
15244
15245 /* System header to define __stub macros and hopefully few prototypes,
15246     which can conflict with char $ac_func (); below.
15247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15248     <limits.h> exists even on freestanding compilers.  */
15249
15250 #ifdef __STDC__
15251 # include <limits.h>
15252 #else
15253 # include <assert.h>
15254 #endif
15255
15256 #undef $ac_func
15257
15258 /* Override any gcc2 internal prototype to avoid an error.  */
15259 #ifdef __cplusplus
15260 extern "C"
15261 {
15262 #endif
15263 /* We use char because int might match the return type of a gcc2
15264    builtin and then its argument prototype would still apply.  */
15265 char $ac_func ();
15266 /* The GNU C library defines this for functions which it implements
15267     to always fail with ENOSYS.  Some functions are actually named
15268     something starting with __ and the normal name is an alias.  */
15269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15270 choke me
15271 #else
15272 char (*f) () = $ac_func;
15273 #endif
15274 #ifdef __cplusplus
15275 }
15276 #endif
15277
15278 int
15279 main ()
15280 {
15281 return f != $ac_func;
15282   ;
15283   return 0;
15284 }
15285 _ACEOF
15286 rm -f conftest.$ac_objext conftest$ac_exeext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15288   (eval $ac_link) 2>conftest.er1
15289   ac_status=$?
15290   grep -v '^ *+' conftest.er1 >conftest.err
15291   rm -f conftest.er1
15292   cat conftest.err >&5
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); } &&
15295          { ac_try='test -z "$ac_c_werror_flag"
15296                          || test ! -s conftest.err'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; } &&
15302          { ac_try='test -s conftest$ac_exeext'
15303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15304   (eval $ac_try) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); }; }; then
15308   eval "$as_ac_var=yes"
15309 else
15310   echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313 eval "$as_ac_var=no"
15314 fi
15315 rm -f conftest.err conftest.$ac_objext \
15316       conftest$ac_exeext conftest.$ac_ext
15317 fi
15318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15320 if test `eval echo '${'$as_ac_var'}'` = yes; then
15321   cat >>confdefs.h <<_ACEOF
15322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15323 _ACEOF
15324
15325 fi
15326 done
15327
15328 echo "$as_me:$LINENO: checking for working mmap" >&5
15329 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15330 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   if test "$cross_compiling" = yes; then
15334   ac_cv_func_mmap_fixed_mapped=no
15335 else
15336   cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342 $ac_includes_default
15343 /* malloc might have been renamed as rpl_malloc. */
15344 #undef malloc
15345
15346 /* Thanks to Mike Haertel and Jim Avera for this test.
15347    Here is a matrix of mmap possibilities:
15348         mmap private not fixed
15349         mmap private fixed at somewhere currently unmapped
15350         mmap private fixed at somewhere already mapped
15351         mmap shared not fixed
15352         mmap shared fixed at somewhere currently unmapped
15353         mmap shared fixed at somewhere already mapped
15354    For private mappings, we should verify that changes cannot be read()
15355    back from the file, nor mmap's back from the file at a different
15356    address.  (There have been systems where private was not correctly
15357    implemented like the infamous i386 svr4.0, and systems where the
15358    VM page cache was not coherent with the file system buffer cache
15359    like early versions of FreeBSD and possibly contemporary NetBSD.)
15360    For shared mappings, we should conversely verify that changes get
15361    propagated back to all the places they're supposed to be.
15362
15363    Grep wants private fixed already mapped.
15364    The main things grep needs to know about mmap are:
15365    * does it exist and is it safe to write into the mmap'd area
15366    * how to use it (BSD variants)  */
15367
15368 #include <fcntl.h>
15369 #include <sys/mman.h>
15370
15371 #if !STDC_HEADERS && !HAVE_STDLIB_H
15372 char *malloc ();
15373 #endif
15374
15375 /* This mess was copied from the GNU getpagesize.h.  */
15376 #if !HAVE_GETPAGESIZE
15377 /* Assume that all systems that can run configure have sys/param.h.  */
15378 # if !HAVE_SYS_PARAM_H
15379 #  define HAVE_SYS_PARAM_H 1
15380 # endif
15381
15382 # ifdef _SC_PAGESIZE
15383 #  define getpagesize() sysconf(_SC_PAGESIZE)
15384 # else /* no _SC_PAGESIZE */
15385 #  if HAVE_SYS_PARAM_H
15386 #   include <sys/param.h>
15387 #   ifdef EXEC_PAGESIZE
15388 #    define getpagesize() EXEC_PAGESIZE
15389 #   else /* no EXEC_PAGESIZE */
15390 #    ifdef NBPG
15391 #     define getpagesize() NBPG * CLSIZE
15392 #     ifndef CLSIZE
15393 #      define CLSIZE 1
15394 #     endif /* no CLSIZE */
15395 #    else /* no NBPG */
15396 #     ifdef NBPC
15397 #      define getpagesize() NBPC
15398 #     else /* no NBPC */
15399 #      ifdef PAGESIZE
15400 #       define getpagesize() PAGESIZE
15401 #      endif /* PAGESIZE */
15402 #     endif /* no NBPC */
15403 #    endif /* no NBPG */
15404 #   endif /* no EXEC_PAGESIZE */
15405 #  else /* no HAVE_SYS_PARAM_H */
15406 #   define getpagesize() 8192   /* punt totally */
15407 #  endif /* no HAVE_SYS_PARAM_H */
15408 # endif /* no _SC_PAGESIZE */
15409
15410 #endif /* no HAVE_GETPAGESIZE */
15411
15412 int
15413 main ()
15414 {
15415   char *data, *data2, *data3;
15416   int i, pagesize;
15417   int fd;
15418
15419   pagesize = getpagesize ();
15420
15421   /* First, make a file with some known garbage in it. */
15422   data = (char *) malloc (pagesize);
15423   if (!data)
15424     exit (1);
15425   for (i = 0; i < pagesize; ++i)
15426     *(data + i) = rand ();
15427   umask (0);
15428   fd = creat ("conftest.mmap", 0600);
15429   if (fd < 0)
15430     exit (1);
15431   if (write (fd, data, pagesize) != pagesize)
15432     exit (1);
15433   close (fd);
15434
15435   /* Next, try to mmap the file at a fixed address which already has
15436      something else allocated at it.  If we can, also make sure that
15437      we see the same garbage.  */
15438   fd = open ("conftest.mmap", O_RDWR);
15439   if (fd < 0)
15440     exit (1);
15441   data2 = (char *) malloc (2 * pagesize);
15442   if (!data2)
15443     exit (1);
15444   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15445   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15446                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15447     exit (1);
15448   for (i = 0; i < pagesize; ++i)
15449     if (*(data + i) != *(data2 + i))
15450       exit (1);
15451
15452   /* Finally, make sure that changes to the mapped area do not
15453      percolate back to the file as seen by read().  (This is a bug on
15454      some variants of i386 svr4.0.)  */
15455   for (i = 0; i < pagesize; ++i)
15456     *(data2 + i) = *(data2 + i) + 1;
15457   data3 = (char *) malloc (pagesize);
15458   if (!data3)
15459     exit (1);
15460   if (read (fd, data3, pagesize) != pagesize)
15461     exit (1);
15462   for (i = 0; i < pagesize; ++i)
15463     if (*(data + i) != *(data3 + i))
15464       exit (1);
15465   close (fd);
15466   exit (0);
15467 }
15468 _ACEOF
15469 rm -f conftest$ac_exeext
15470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15471   (eval $ac_link) 2>&5
15472   ac_status=$?
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476   (eval $ac_try) 2>&5
15477   ac_status=$?
15478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479   (exit $ac_status); }; }; then
15480   ac_cv_func_mmap_fixed_mapped=yes
15481 else
15482   echo "$as_me: program exited with status $ac_status" >&5
15483 echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 ( exit $ac_status )
15487 ac_cv_func_mmap_fixed_mapped=no
15488 fi
15489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15490 fi
15491 fi
15492 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15493 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15494 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15495
15496 cat >>confdefs.h <<\_ACEOF
15497 #define HAVE_MMAP 1
15498 _ACEOF
15499
15500 fi
15501 rm -f conftest.mmap
15502
15503 fi
15504
15505 for ac_prog in perl
15506 do
15507   # Extract the first word of "$ac_prog", so it can be a program name with args.
15508 set dummy $ac_prog; ac_word=$2
15509 echo "$as_me:$LINENO: checking for $ac_word" >&5
15510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15511 if test "${ac_cv_prog_PERL+set}" = set; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514   if test -n "$PERL"; then
15515   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15516 else
15517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518 for as_dir in $PATH
15519 do
15520   IFS=$as_save_IFS
15521   test -z "$as_dir" && as_dir=.
15522   for ac_exec_ext in '' $ac_executable_extensions; do
15523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15524     ac_cv_prog_PERL="$ac_prog"
15525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15526     break 2
15527   fi
15528 done
15529 done
15530
15531 fi
15532 fi
15533 PERL=$ac_cv_prog_PERL
15534 if test -n "$PERL"; then
15535   echo "$as_me:$LINENO: result: $PERL" >&5
15536 echo "${ECHO_T}$PERL" >&6
15537 else
15538   echo "$as_me:$LINENO: result: no" >&5
15539 echo "${ECHO_T}no" >&6
15540 fi
15541
15542   test -n "$PERL" && break
15543 done
15544 test -n "$PERL" || PERL="false"
15545
15546
15547 SYSDEP_SOURCES=
15548 SIGNAL_HANDLER_AUX=
15549
15550 case "${host}" in
15551  i?86-*-linux*)
15552     SIGNAL_HANDLER=include/i386-signal.h
15553     ;;
15554  sparc*-sun-solaris*)
15555     SIGNAL_HANDLER=include/sparc-signal.h
15556     ;;
15557 # ia64-*)
15558 #    SYSDEP_SOURCES=sysdep/ia64.c
15559 #    test -d sysdep || mkdir sysdep
15560 #    ;;
15561  hppa*-*-linux*)
15562     SIGNAL_HANDLER=include/pa-signal.h
15563     ;;
15564  ia64-*-linux*)
15565     SIGNAL_HANDLER=include/dwarf2-signal.h
15566     ;;
15567  powerpc*-*-linux*)
15568     SIGNAL_HANDLER=include/powerpc-signal.h
15569     ;;
15570  alpha*-*-linux*)
15571     SIGNAL_HANDLER=include/dwarf2-signal.h
15572     ;;
15573  s390*-*-linux*)
15574     SIGNAL_HANDLER=include/s390-signal.h
15575     ;;
15576  x86_64*-*-linux*)
15577     SIGNAL_HANDLER=include/x86_64-signal.h
15578     SIGNAL_HANDLER_AUX=include/i386-signal.h
15579     ;;
15580  sparc*-*-linux*)
15581     SIGNAL_HANDLER=include/dwarf2-signal.h
15582     ;;
15583  sh-*-linux* | sh[34]*-*-linux*)
15584     SIGNAL_HANDLER=include/dwarf2-signal.h
15585     ;;
15586  *mingw*)
15587     SIGNAL_HANDLER=include/win32-signal.h
15588     ;;
15589  mips*-*-linux*)
15590     SIGNAL_HANDLER=include/mips-signal.h
15591     ;;
15592  *-*-darwin*)
15593     SIGNAL_HANDLER=include/darwin-signal.h
15594     ;;
15595  *)
15596     SIGNAL_HANDLER=include/default-signal.h
15597     ;;
15598 esac
15599
15600 # If we're using sjlj exceptions, forget what we just learned.
15601 if test "$enable_sjlj_exceptions" = yes; then
15602    SIGNAL_HANDLER=include/default-signal.h
15603    SIGNAL_HANDLER_AUX=
15604 fi
15605
15606 # Define here any compiler flags that you need in order to make backtrace() work.
15607 BACKTRACESPEC=
15608 case "${host}" in
15609  x86_64*-*-linux*|i?86-*)
15610     BACKTRACESPEC=-fno-omit-frame-pointer
15611     ;;
15612 esac
15613
15614
15615
15616
15617 if test -z "$SIGNAL_HANDLER_AUX"; then
15618   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15619 fi
15620
15621                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15622
15623
15624 if test "${multilib}" = "yes"; then
15625   multilib_arg="--enable-multilib"
15626 else
15627   multilib_arg=
15628 fi
15629
15630
15631
15632 here=`${PWDCMD-pwd}`
15633
15634
15635 # We get this from the environment.
15636
15637
15638                                                                                 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
15639
15640
15641           ac_config_commands="$ac_config_commands default"
15642
15643
15644 cat >confcache <<\_ACEOF
15645 # This file is a shell script that caches the results of configure
15646 # tests run on this system so they can be shared between configure
15647 # scripts and configure runs, see configure's option --config-cache.
15648 # It is not useful on other systems.  If it contains results you don't
15649 # want to keep, you may remove or edit it.
15650 #
15651 # config.status only pays attention to the cache file if you give it
15652 # the --recheck option to rerun configure.
15653 #
15654 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15655 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15656 # following values.
15657
15658 _ACEOF
15659
15660 # The following way of writing the cache mishandles newlines in values,
15661 # but we know of no workaround that is simple, portable, and efficient.
15662 # So, don't put newlines in cache variables' values.
15663 # Ultrix sh set writes to stderr and can't be redirected directly,
15664 # and sets the high bit in the cache file unless we assign to the vars.
15665 {
15666   (set) 2>&1 |
15667     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15668     *ac_space=\ *)
15669       # `set' does not quote correctly, so add quotes (double-quote
15670       # substitution turns \\\\ into \\, and sed turns \\ into \).
15671       sed -n \
15672         "s/'/'\\\\''/g;
15673           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15674       ;;
15675     *)
15676       # `set' quotes correctly as required by POSIX, so do not add quotes.
15677       sed -n \
15678         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15679       ;;
15680     esac;
15681 } |
15682   sed '
15683      t clear
15684      : clear
15685      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15686      t end
15687      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15688      : end' >>confcache
15689 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15690   if test -w $cache_file; then
15691     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15692     cat confcache >$cache_file
15693   else
15694     echo "not updating unwritable cache $cache_file"
15695   fi
15696 fi
15697 rm -f confcache
15698
15699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15700 # Let make expand exec_prefix.
15701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15702
15703 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15704 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15705 # trailing colons and then remove the whole line if VPATH becomes empty
15706 # (actually we leave an empty line to preserve line numbers).
15707 if test "x$srcdir" = x.; then
15708   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15709 s/:*\$(srcdir):*/:/;
15710 s/:*\${srcdir}:*/:/;
15711 s/:*@srcdir@:*/:/;
15712 s/^\([^=]*=[     ]*\):*/\1/;
15713 s/:*$//;
15714 s/^[^=]*=[       ]*$//;
15715 }'
15716 fi
15717
15718 DEFS=-DHAVE_CONFIG_H
15719
15720 ac_libobjs=
15721 ac_ltlibobjs=
15722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15723   # 1. Remove the extension, and $U if already installed.
15724   ac_i=`echo "$ac_i" |
15725          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15726   # 2. Add them.
15727   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15728   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15729 done
15730 LIBOBJS=$ac_libobjs
15731
15732 LTLIBOBJS=$ac_ltlibobjs
15733
15734
15735 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15736   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15737 Usually this means the macro was only invoked conditionally." >&5
15738 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15739 Usually this means the macro was only invoked conditionally." >&2;}
15740    { (exit 1); exit 1; }; }
15741 fi
15742 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15743   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15744 Usually this means the macro was only invoked conditionally." >&5
15745 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15746 Usually this means the macro was only invoked conditionally." >&2;}
15747    { (exit 1); exit 1; }; }
15748 fi
15749 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15750   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15751 Usually this means the macro was only invoked conditionally." >&5
15752 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15753 Usually this means the macro was only invoked conditionally." >&2;}
15754    { (exit 1); exit 1; }; }
15755 fi
15756 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15757   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15758 Usually this means the macro was only invoked conditionally." >&5
15759 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15760 Usually this means the macro was only invoked conditionally." >&2;}
15761    { (exit 1); exit 1; }; }
15762 fi
15763 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15764   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15765 Usually this means the macro was only invoked conditionally." >&5
15766 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15767 Usually this means the macro was only invoked conditionally." >&2;}
15768    { (exit 1); exit 1; }; }
15769 fi
15770 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15771   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15772 Usually this means the macro was only invoked conditionally." >&5
15773 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15774 Usually this means the macro was only invoked conditionally." >&2;}
15775    { (exit 1); exit 1; }; }
15776 fi
15777 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15778   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15779 Usually this means the macro was only invoked conditionally." >&5
15780 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15781 Usually this means the macro was only invoked conditionally." >&2;}
15782    { (exit 1); exit 1; }; }
15783 fi
15784 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15785   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15786 Usually this means the macro was only invoked conditionally." >&5
15787 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15788 Usually this means the macro was only invoked conditionally." >&2;}
15789    { (exit 1); exit 1; }; }
15790 fi
15791 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15792   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15793 Usually this means the macro was only invoked conditionally." >&5
15794 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15795 Usually this means the macro was only invoked conditionally." >&2;}
15796    { (exit 1); exit 1; }; }
15797 fi
15798 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15799   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15800 Usually this means the macro was only invoked conditionally." >&5
15801 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15802 Usually this means the macro was only invoked conditionally." >&2;}
15803    { (exit 1); exit 1; }; }
15804 fi
15805 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15806   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15807 Usually this means the macro was only invoked conditionally." >&5
15808 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15809 Usually this means the macro was only invoked conditionally." >&2;}
15810    { (exit 1); exit 1; }; }
15811 fi
15812 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15813   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15814 Usually this means the macro was only invoked conditionally." >&5
15815 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15816 Usually this means the macro was only invoked conditionally." >&2;}
15817    { (exit 1); exit 1; }; }
15818 fi
15819 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15820   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15821 Usually this means the macro was only invoked conditionally." >&5
15822 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15823 Usually this means the macro was only invoked conditionally." >&2;}
15824    { (exit 1); exit 1; }; }
15825 fi
15826 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15827   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15828 Usually this means the macro was only invoked conditionally." >&5
15829 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15830 Usually this means the macro was only invoked conditionally." >&2;}
15831    { (exit 1); exit 1; }; }
15832 fi
15833 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15834   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15835 Usually this means the macro was only invoked conditionally." >&5
15836 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15837 Usually this means the macro was only invoked conditionally." >&2;}
15838    { (exit 1); exit 1; }; }
15839 fi
15840 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15841   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15842 Usually this means the macro was only invoked conditionally." >&5
15843 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15844 Usually this means the macro was only invoked conditionally." >&2;}
15845    { (exit 1); exit 1; }; }
15846 fi
15847 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15848   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15849 Usually this means the macro was only invoked conditionally." >&5
15850 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15851 Usually this means the macro was only invoked conditionally." >&2;}
15852    { (exit 1); exit 1; }; }
15853 fi
15854 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15855   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15856 Usually this means the macro was only invoked conditionally." >&5
15857 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15858 Usually this means the macro was only invoked conditionally." >&2;}
15859    { (exit 1); exit 1; }; }
15860 fi
15861 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15862   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15863 Usually this means the macro was only invoked conditionally." >&5
15864 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15865 Usually this means the macro was only invoked conditionally." >&2;}
15866    { (exit 1); exit 1; }; }
15867 fi
15868 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15869   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15870 Usually this means the macro was only invoked conditionally." >&5
15871 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15872 Usually this means the macro was only invoked conditionally." >&2;}
15873    { (exit 1); exit 1; }; }
15874 fi
15875 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15876   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15877 Usually this means the macro was only invoked conditionally." >&5
15878 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15879 Usually this means the macro was only invoked conditionally." >&2;}
15880    { (exit 1); exit 1; }; }
15881 fi
15882 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15883   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15884 Usually this means the macro was only invoked conditionally." >&5
15885 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15886 Usually this means the macro was only invoked conditionally." >&2;}
15887    { (exit 1); exit 1; }; }
15888 fi
15889
15890 : ${CONFIG_STATUS=./config.status}
15891 ac_clean_files_save=$ac_clean_files
15892 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15893 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15894 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15895 cat >$CONFIG_STATUS <<_ACEOF
15896 #! $SHELL
15897 # Generated by $as_me.
15898 # Run this file to recreate the current configuration.
15899 # Compiler output produced by configure, useful for debugging
15900 # configure, is in config.log if it exists.
15901
15902 debug=false
15903 ac_cs_recheck=false
15904 ac_cs_silent=false
15905 SHELL=\${CONFIG_SHELL-$SHELL}
15906 _ACEOF
15907
15908 cat >>$CONFIG_STATUS <<\_ACEOF
15909 ## --------------------- ##
15910 ## M4sh Initialization.  ##
15911 ## --------------------- ##
15912
15913 # Be Bourne compatible
15914 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15915   emulate sh
15916   NULLCMD=:
15917   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15918   # is contrary to our usage.  Disable this feature.
15919   alias -g '${1+"$@"}'='"$@"'
15920 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15921   set -o posix
15922 fi
15923 DUALCASE=1; export DUALCASE # for MKS sh
15924
15925 # Support unset when possible.
15926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15927   as_unset=unset
15928 else
15929   as_unset=false
15930 fi
15931
15932
15933 # Work around bugs in pre-3.0 UWIN ksh.
15934 $as_unset ENV MAIL MAILPATH
15935 PS1='$ '
15936 PS2='> '
15937 PS4='+ '
15938
15939 # NLS nuisances.
15940 for as_var in \
15941   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15942   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15943   LC_TELEPHONE LC_TIME
15944 do
15945   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15946     eval $as_var=C; export $as_var
15947   else
15948     $as_unset $as_var
15949   fi
15950 done
15951
15952 # Required to use basename.
15953 if expr a : '\(a\)' >/dev/null 2>&1; then
15954   as_expr=expr
15955 else
15956   as_expr=false
15957 fi
15958
15959 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15960   as_basename=basename
15961 else
15962   as_basename=false
15963 fi
15964
15965
15966 # Name of the executable.
15967 as_me=`$as_basename "$0" ||
15968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15969          X"$0" : 'X\(//\)$' \| \
15970          X"$0" : 'X\(/\)$' \| \
15971          .     : '\(.\)' 2>/dev/null ||
15972 echo X/"$0" |
15973     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15974           /^X\/\(\/\/\)$/{ s//\1/; q; }
15975           /^X\/\(\/\).*/{ s//\1/; q; }
15976           s/.*/./; q'`
15977
15978
15979 # PATH needs CR, and LINENO needs CR and PATH.
15980 # Avoid depending upon Character Ranges.
15981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15984 as_cr_digits='0123456789'
15985 as_cr_alnum=$as_cr_Letters$as_cr_digits
15986
15987 # The user is always right.
15988 if test "${PATH_SEPARATOR+set}" != set; then
15989   echo "#! /bin/sh" >conf$$.sh
15990   echo  "exit 0"   >>conf$$.sh
15991   chmod +x conf$$.sh
15992   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15993     PATH_SEPARATOR=';'
15994   else
15995     PATH_SEPARATOR=:
15996   fi
15997   rm -f conf$$.sh
15998 fi
15999
16000
16001   as_lineno_1=$LINENO
16002   as_lineno_2=$LINENO
16003   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16004   test "x$as_lineno_1" != "x$as_lineno_2" &&
16005   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16006   # Find who we are.  Look in the path if we contain no path at all
16007   # relative or not.
16008   case $0 in
16009     *[\\/]* ) as_myself=$0 ;;
16010     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH
16012 do
16013   IFS=$as_save_IFS
16014   test -z "$as_dir" && as_dir=.
16015   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16016 done
16017
16018        ;;
16019   esac
16020   # We did not find ourselves, most probably we were run as `sh COMMAND'
16021   # in which case we are not to be found in the path.
16022   if test "x$as_myself" = x; then
16023     as_myself=$0
16024   fi
16025   if test ! -f "$as_myself"; then
16026     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16027 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16028    { (exit 1); exit 1; }; }
16029   fi
16030   case $CONFIG_SHELL in
16031   '')
16032     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16033 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16034 do
16035   IFS=$as_save_IFS
16036   test -z "$as_dir" && as_dir=.
16037   for as_base in sh bash ksh sh5; do
16038          case $as_dir in
16039          /*)
16040            if ("$as_dir/$as_base" -c '
16041   as_lineno_1=$LINENO
16042   as_lineno_2=$LINENO
16043   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16044   test "x$as_lineno_1" != "x$as_lineno_2" &&
16045   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16046              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16047              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16048              CONFIG_SHELL=$as_dir/$as_base
16049              export CONFIG_SHELL
16050              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16051            fi;;
16052          esac
16053        done
16054 done
16055 ;;
16056   esac
16057
16058   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16059   # uniformly replaced by the line number.  The first 'sed' inserts a
16060   # line-number line before each line; the second 'sed' does the real
16061   # work.  The second script uses 'N' to pair each line-number line
16062   # with the numbered line, and appends trailing '-' during
16063   # substitution so that $LINENO is not a special case at line end.
16064   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16065   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16066   sed '=' <$as_myself |
16067     sed '
16068       N
16069       s,$,-,
16070       : loop
16071       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16072       t loop
16073       s,-$,,
16074       s,^['$as_cr_digits']*\n,,
16075     ' >$as_me.lineno &&
16076   chmod +x $as_me.lineno ||
16077     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16078 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16079    { (exit 1); exit 1; }; }
16080
16081   # Don't try to exec as it changes $[0], causing all sort of problems
16082   # (the dirname of $[0] is not the place where we might find the
16083   # original and so on.  Autoconf is especially sensible to this).
16084   . ./$as_me.lineno
16085   # Exit status is that of the last command.
16086   exit
16087 }
16088
16089
16090 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16091   *c*,-n*) ECHO_N= ECHO_C='
16092 ' ECHO_T='      ' ;;
16093   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16094   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16095 esac
16096
16097 if expr a : '\(a\)' >/dev/null 2>&1; then
16098   as_expr=expr
16099 else
16100   as_expr=false
16101 fi
16102
16103 rm -f conf$$ conf$$.exe conf$$.file
16104 echo >conf$$.file
16105 if ln -s conf$$.file conf$$ 2>/dev/null; then
16106   # We could just check for DJGPP; but this test a) works b) is more generic
16107   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16108   if test -f conf$$.exe; then
16109     # Don't use ln at all; we don't have any links
16110     as_ln_s='cp -p'
16111   else
16112     as_ln_s='ln -s'
16113   fi
16114 elif ln conf$$.file conf$$ 2>/dev/null; then
16115   as_ln_s=ln
16116 else
16117   as_ln_s='cp -p'
16118 fi
16119 rm -f conf$$ conf$$.exe conf$$.file
16120
16121 if mkdir -p . 2>/dev/null; then
16122   as_mkdir_p=:
16123 else
16124   test -d ./-p && rmdir ./-p
16125   as_mkdir_p=false
16126 fi
16127
16128 as_executable_p="test -f"
16129
16130 # Sed expression to map a string onto a valid CPP name.
16131 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16132
16133 # Sed expression to map a string onto a valid variable name.
16134 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16135
16136
16137 # IFS
16138 # We need space, tab and new line, in precisely that order.
16139 as_nl='
16140 '
16141 IFS="   $as_nl"
16142
16143 # CDPATH.
16144 $as_unset CDPATH
16145
16146 exec 6>&1
16147
16148 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16149 # report actual input values of CONFIG_FILES etc. instead of their
16150 # values after options handling.  Logging --version etc. is OK.
16151 exec 5>>config.log
16152 {
16153   echo
16154   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16155 ## Running $as_me. ##
16156 _ASBOX
16157 } >&5
16158 cat >&5 <<_CSEOF
16159
16160 This file was extended by libjava $as_me version-unused, which was
16161 generated by GNU Autoconf 2.59.  Invocation command line was
16162
16163   CONFIG_FILES    = $CONFIG_FILES
16164   CONFIG_HEADERS  = $CONFIG_HEADERS
16165   CONFIG_LINKS    = $CONFIG_LINKS
16166   CONFIG_COMMANDS = $CONFIG_COMMANDS
16167   $ $0 $@
16168
16169 _CSEOF
16170 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16171 echo >&5
16172 _ACEOF
16173
16174 # Files that config.status was made for.
16175 if test -n "$ac_config_files"; then
16176   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16177 fi
16178
16179 if test -n "$ac_config_headers"; then
16180   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16181 fi
16182
16183 if test -n "$ac_config_links"; then
16184   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16185 fi
16186
16187 if test -n "$ac_config_commands"; then
16188   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16189 fi
16190
16191 cat >>$CONFIG_STATUS <<\_ACEOF
16192
16193 ac_cs_usage="\
16194 \`$as_me' instantiates files from templates according to the
16195 current configuration.
16196
16197 Usage: $0 [OPTIONS] [FILE]...
16198
16199   -h, --help       print this help, then exit
16200   -V, --version    print version number, then exit
16201   -q, --quiet      do not print progress messages
16202   -d, --debug      don't remove temporary files
16203       --recheck    update $as_me by reconfiguring in the same conditions
16204   --file=FILE[:TEMPLATE]
16205                    instantiate the configuration file FILE
16206   --header=FILE[:TEMPLATE]
16207                    instantiate the configuration header FILE
16208
16209 Configuration files:
16210 $config_files
16211
16212 Configuration headers:
16213 $config_headers
16214
16215 Configuration links:
16216 $config_links
16217
16218 Configuration commands:
16219 $config_commands
16220
16221 Report bugs to <bug-autoconf@gnu.org>."
16222 _ACEOF
16223
16224 cat >>$CONFIG_STATUS <<_ACEOF
16225 ac_cs_version="\\
16226 libjava config.status version-unused
16227 configured by $0, generated by GNU Autoconf 2.59,
16228   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16229
16230 Copyright (C) 2003 Free Software Foundation, Inc.
16231 This config.status script is free software; the Free Software Foundation
16232 gives unlimited permission to copy, distribute and modify it."
16233 srcdir=$srcdir
16234 INSTALL="$INSTALL"
16235 _ACEOF
16236
16237 cat >>$CONFIG_STATUS <<\_ACEOF
16238 # If no file are specified by the user, then we need to provide default
16239 # value.  By we need to know if files were specified by the user.
16240 ac_need_defaults=:
16241 while test $# != 0
16242 do
16243   case $1 in
16244   --*=*)
16245     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16246     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16247     ac_shift=:
16248     ;;
16249   -*)
16250     ac_option=$1
16251     ac_optarg=$2
16252     ac_shift=shift
16253     ;;
16254   *) # This is not an option, so the user has probably given explicit
16255      # arguments.
16256      ac_option=$1
16257      ac_need_defaults=false;;
16258   esac
16259
16260   case $ac_option in
16261   # Handling of the options.
16262 _ACEOF
16263 cat >>$CONFIG_STATUS <<\_ACEOF
16264   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16265     ac_cs_recheck=: ;;
16266   --version | --vers* | -V )
16267     echo "$ac_cs_version"; exit 0 ;;
16268   --he | --h)
16269     # Conflict between --help and --header
16270     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16271 Try \`$0 --help' for more information." >&5
16272 echo "$as_me: error: ambiguous option: $1
16273 Try \`$0 --help' for more information." >&2;}
16274    { (exit 1); exit 1; }; };;
16275   --help | --hel | -h )
16276     echo "$ac_cs_usage"; exit 0 ;;
16277   --debug | --d* | -d )
16278     debug=: ;;
16279   --file | --fil | --fi | --f )
16280     $ac_shift
16281     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16282     ac_need_defaults=false;;
16283   --header | --heade | --head | --hea )
16284     $ac_shift
16285     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16286     ac_need_defaults=false;;
16287   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16288   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16289     ac_cs_silent=: ;;
16290
16291   # This is an error.
16292   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16293 Try \`$0 --help' for more information." >&5
16294 echo "$as_me: error: unrecognized option: $1
16295 Try \`$0 --help' for more information." >&2;}
16296    { (exit 1); exit 1; }; } ;;
16297
16298   *) ac_config_targets="$ac_config_targets $1" ;;
16299
16300   esac
16301   shift
16302 done
16303
16304 ac_configure_extra_args=
16305
16306 if $ac_cs_silent; then
16307   exec 6>/dev/null
16308   ac_configure_extra_args="$ac_configure_extra_args --silent"
16309 fi
16310
16311 _ACEOF
16312 cat >>$CONFIG_STATUS <<_ACEOF
16313 if \$ac_cs_recheck; then
16314   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16315   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16316 fi
16317
16318 _ACEOF
16319
16320 cat >>$CONFIG_STATUS <<_ACEOF
16321 #
16322 # INIT-COMMANDS section.
16323 #
16324
16325 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16326 srcdir=${srcdir}
16327 host=${host}
16328 target=${target}
16329 with_multisubdir=${with_multisubdir}
16330 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16331 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16332 libgcj_basedir=${libgcj_basedir}
16333 CC="${CC}"
16334 CXX="${CXX}"
16335 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16336
16337
16338 _ACEOF
16339
16340
16341
16342 cat >>$CONFIG_STATUS <<\_ACEOF
16343 for ac_config_target in $ac_config_targets
16344 do
16345   case "$ac_config_target" in
16346   # Handling of arguments.
16347   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16348   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16349   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16350   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16351   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16352   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16353   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16354   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16355   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16356   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16357   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16358   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16359   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16360   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16361   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16362   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16363   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16364   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16365   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16366   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16367   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16368   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16369   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16370   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16371   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16372   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16373   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16374   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16375   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16376 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16377    { (exit 1); exit 1; }; };;
16378   esac
16379 done
16380
16381 # If the user did not use the arguments to specify the items to instantiate,
16382 # then the envvar interface is used.  Set only those that are not.
16383 # We use the long form for the default assignment because of an extremely
16384 # bizarre bug on SunOS 4.1.3.
16385 if $ac_need_defaults; then
16386   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16387   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16388   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16389   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16390 fi
16391
16392 # Have a temporary directory for convenience.  Make it in the build tree
16393 # simply because there is no reason to put it here, and in addition,
16394 # creating and moving files from /tmp can sometimes cause problems.
16395 # Create a temporary directory, and hook for its removal unless debugging.
16396 $debug ||
16397 {
16398   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16399   trap '{ (exit 1); exit 1; }' 1 2 13 15
16400 }
16401
16402 # Create a (secure) tmp directory for tmp files.
16403
16404 {
16405   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16406   test -n "$tmp" && test -d "$tmp"
16407 }  ||
16408 {
16409   tmp=./confstat$$-$RANDOM
16410   (umask 077 && mkdir $tmp)
16411 } ||
16412 {
16413    echo "$me: cannot create a temporary directory in ." >&2
16414    { (exit 1); exit 1; }
16415 }
16416
16417 _ACEOF
16418
16419 cat >>$CONFIG_STATUS <<_ACEOF
16420
16421 #
16422 # CONFIG_FILES section.
16423 #
16424
16425 # No need to generate the scripts if there are no CONFIG_FILES.
16426 # This happens for instance when ./config.status config.h
16427 if test -n "\$CONFIG_FILES"; then
16428   # Protect against being on the right side of a sed subst in config.status.
16429   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16430    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16431 s,@SHELL@,$SHELL,;t t
16432 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16433 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16434 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16435 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16436 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16437 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16438 s,@exec_prefix@,$exec_prefix,;t t
16439 s,@prefix@,$prefix,;t t
16440 s,@program_transform_name@,$program_transform_name,;t t
16441 s,@bindir@,$bindir,;t t
16442 s,@sbindir@,$sbindir,;t t
16443 s,@libexecdir@,$libexecdir,;t t
16444 s,@datadir@,$datadir,;t t
16445 s,@sysconfdir@,$sysconfdir,;t t
16446 s,@sharedstatedir@,$sharedstatedir,;t t
16447 s,@localstatedir@,$localstatedir,;t t
16448 s,@libdir@,$libdir,;t t
16449 s,@includedir@,$includedir,;t t
16450 s,@oldincludedir@,$oldincludedir,;t t
16451 s,@infodir@,$infodir,;t t
16452 s,@mandir@,$mandir,;t t
16453 s,@build_alias@,$build_alias,;t t
16454 s,@host_alias@,$host_alias,;t t
16455 s,@target_alias@,$target_alias,;t t
16456 s,@DEFS@,$DEFS,;t t
16457 s,@ECHO_C@,$ECHO_C,;t t
16458 s,@ECHO_N@,$ECHO_N,;t t
16459 s,@ECHO_T@,$ECHO_T,;t t
16460 s,@LIBS@,$LIBS,;t t
16461 s,@libgcj_basedir@,$libgcj_basedir,;t t
16462 s,@build@,$build,;t t
16463 s,@build_cpu@,$build_cpu,;t t
16464 s,@build_vendor@,$build_vendor,;t t
16465 s,@build_os@,$build_os,;t t
16466 s,@host@,$host,;t t
16467 s,@host_cpu@,$host_cpu,;t t
16468 s,@host_vendor@,$host_vendor,;t t
16469 s,@host_os@,$host_os,;t t
16470 s,@target@,$target,;t t
16471 s,@target_cpu@,$target_cpu,;t t
16472 s,@target_vendor@,$target_vendor,;t t
16473 s,@target_os@,$target_os,;t t
16474 s,@target_noncanonical@,$target_noncanonical,;t t
16475 s,@LN_S@,$LN_S,;t t
16476 s,@mkinstalldirs@,$mkinstalldirs,;t t
16477 s,@CC@,$CC,;t t
16478 s,@ac_ct_CC@,$ac_ct_CC,;t t
16479 s,@EXEEXT@,$EXEEXT,;t t
16480 s,@OBJEXT@,$OBJEXT,;t t
16481 s,@CXX@,$CXX,;t t
16482 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16483 s,@CFLAGS@,$CFLAGS,;t t
16484 s,@CXXFLAGS@,$CXXFLAGS,;t t
16485 s,@LDFLAGS@,$LDFLAGS,;t t
16486 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16487 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16488 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16489 s,@CYGPATH_W@,$CYGPATH_W,;t t
16490 s,@PACKAGE@,$PACKAGE,;t t
16491 s,@VERSION@,$VERSION,;t t
16492 s,@ACLOCAL@,$ACLOCAL,;t t
16493 s,@AUTOCONF@,$AUTOCONF,;t t
16494 s,@AUTOMAKE@,$AUTOMAKE,;t t
16495 s,@AUTOHEADER@,$AUTOHEADER,;t t
16496 s,@MAKEINFO@,$MAKEINFO,;t t
16497 s,@install_sh@,$install_sh,;t t
16498 s,@STRIP@,$STRIP,;t t
16499 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16500 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16501 s,@mkdir_p@,$mkdir_p,;t t
16502 s,@AWK@,$AWK,;t t
16503 s,@SET_MAKE@,$SET_MAKE,;t t
16504 s,@am__leading_dot@,$am__leading_dot,;t t
16505 s,@AMTAR@,$AMTAR,;t t
16506 s,@am__tar@,$am__tar,;t t
16507 s,@am__untar@,$am__untar,;t t
16508 s,@DEPDIR@,$DEPDIR,;t t
16509 s,@am__include@,$am__include,;t t
16510 s,@am__quote@,$am__quote,;t t
16511 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16512 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16513 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16514 s,@CCDEPMODE@,$CCDEPMODE,;t t
16515 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16516 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16517 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16518 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16519 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16520 s,@AS@,$AS,;t t
16521 s,@ac_ct_AS@,$ac_ct_AS,;t t
16522 s,@AR@,$AR,;t t
16523 s,@ac_ct_AR@,$ac_ct_AR,;t t
16524 s,@RANLIB@,$RANLIB,;t t
16525 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16526 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16527 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16528 s,@MAINT@,$MAINT,;t t
16529 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16530 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16531 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16532 s,@INCLTDL@,$INCLTDL,;t t
16533 s,@LIBLTDL@,$LIBLTDL,;t t
16534 s,@DIRLTDL@,$DIRLTDL,;t t
16535 s,@LIBTOOL@,$LIBTOOL,;t t
16536 s,@CXXCPP@,$CXXCPP,;t t
16537 s,@CPPFLAGS@,$CPPFLAGS,;t t
16538 s,@GCJ@,$GCJ,;t t
16539 s,@GCJFLAGS@,$GCJFLAGS,;t t
16540 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16541 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16542 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16543 s,@subdirs@,$subdirs,;t t
16544 s,@COMPPATH@,$COMPPATH,;t t
16545 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16546 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16547 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16548 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16549 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16550 s,@INTERPRETER@,$INTERPRETER,;t t
16551 s,@LIBFFI@,$LIBFFI,;t t
16552 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16553 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16554 s,@CPP@,$CPP,;t t
16555 s,@EGREP@,$EGREP,;t t
16556 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16557 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16558 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16559 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16560 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16561 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16562 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16563 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16564 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16565 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16566 s,@X_CFLAGS@,$X_CFLAGS,;t t
16567 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16568 s,@X_LIBS@,$X_LIBS,;t t
16569 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16570 s,@TOOLKIT@,$TOOLKIT,;t t
16571 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16572 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16573 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16574 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16575 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16576 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16577 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16578 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16579 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16580 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16581 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16582 s,@GCLIBS@,$GCLIBS,;t t
16583 s,@GCINCS@,$GCINCS,;t t
16584 s,@GCDEPS@,$GCDEPS,;t t
16585 s,@GCSPEC@,$GCSPEC,;t t
16586 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16587 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16588 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16589 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16590 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16591 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16592 s,@THREADLIBS@,$THREADLIBS,;t t
16593 s,@THREADINCS@,$THREADINCS,;t t
16594 s,@THREADDEPS@,$THREADDEPS,;t t
16595 s,@THREADSPEC@,$THREADSPEC,;t t
16596 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16597 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16598 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16599 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16600 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16601 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16602 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16603 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16604 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16605 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16606 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16607 s,@tool_include_dir@,$tool_include_dir,;t t
16608 s,@gcc_version@,$gcc_version,;t t
16609 s,@LIBICONV@,$LIBICONV,;t t
16610 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16611 s,@GTK_LIBS@,$GTK_LIBS,;t t
16612 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16613 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16614 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16615 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16616 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16617 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16618 s,@GCJH@,$GCJH,;t t
16619 s,@ZIP@,$ZIP,;t t
16620 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16621 s,@ZLIBS@,$ZLIBS,;t t
16622 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16623 s,@ZINCS@,$ZINCS,;t t
16624 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16625 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16626 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16627 s,@IEEESPEC@,$IEEESPEC,;t t
16628 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16629 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16630 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16631 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16632 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16633 s,@toolexecdir@,$toolexecdir,;t t
16634 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16635 s,@toolexeclibdir@,$toolexeclibdir,;t t
16636 s,@GCJVERSION@,$GCJVERSION,;t t
16637 s,@ALLOCA@,$ALLOCA,;t t
16638 s,@PERL@,$PERL,;t t
16639 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16640 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16641 s,@here@,$here,;t t
16642 s,@LIBOBJS@,$LIBOBJS,;t t
16643 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16644 CEOF
16645
16646 _ACEOF
16647
16648   cat >>$CONFIG_STATUS <<\_ACEOF
16649   # Split the substitutions into bite-sized pieces for seds with
16650   # small command number limits, like on Digital OSF/1 and HP-UX.
16651   ac_max_sed_lines=48
16652   ac_sed_frag=1 # Number of current file.
16653   ac_beg=1 # First line for current file.
16654   ac_end=$ac_max_sed_lines # Line after last line for current file.
16655   ac_more_lines=:
16656   ac_sed_cmds=
16657   while $ac_more_lines; do
16658     if test $ac_beg -gt 1; then
16659       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16660     else
16661       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16662     fi
16663     if test ! -s $tmp/subs.frag; then
16664       ac_more_lines=false
16665     else
16666       # The purpose of the label and of the branching condition is to
16667       # speed up the sed processing (if there are no `@' at all, there
16668       # is no need to browse any of the substitutions).
16669       # These are the two extra sed commands mentioned above.
16670       (echo ':t
16671   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16672       if test -z "$ac_sed_cmds"; then
16673         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16674       else
16675         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16676       fi
16677       ac_sed_frag=`expr $ac_sed_frag + 1`
16678       ac_beg=$ac_end
16679       ac_end=`expr $ac_end + $ac_max_sed_lines`
16680     fi
16681   done
16682   if test -z "$ac_sed_cmds"; then
16683     ac_sed_cmds=cat
16684   fi
16685 fi # test -n "$CONFIG_FILES"
16686
16687 _ACEOF
16688 cat >>$CONFIG_STATUS <<\_ACEOF
16689 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16690   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16691   case $ac_file in
16692   - | *:- | *:-:* ) # input from stdin
16693         cat >$tmp/stdin
16694         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16695         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16696   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16697         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16698   * )   ac_file_in=$ac_file.in ;;
16699   esac
16700
16701   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16702   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16703 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16704          X"$ac_file" : 'X\(//\)[^/]' \| \
16705          X"$ac_file" : 'X\(//\)$' \| \
16706          X"$ac_file" : 'X\(/\)' \| \
16707          .     : '\(.\)' 2>/dev/null ||
16708 echo X"$ac_file" |
16709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16710           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16711           /^X\(\/\/\)$/{ s//\1/; q; }
16712           /^X\(\/\).*/{ s//\1/; q; }
16713           s/.*/./; q'`
16714   { if $as_mkdir_p; then
16715     mkdir -p "$ac_dir"
16716   else
16717     as_dir="$ac_dir"
16718     as_dirs=
16719     while test ! -d "$as_dir"; do
16720       as_dirs="$as_dir $as_dirs"
16721       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16723          X"$as_dir" : 'X\(//\)[^/]' \| \
16724          X"$as_dir" : 'X\(//\)$' \| \
16725          X"$as_dir" : 'X\(/\)' \| \
16726          .     : '\(.\)' 2>/dev/null ||
16727 echo X"$as_dir" |
16728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16729           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16730           /^X\(\/\/\)$/{ s//\1/; q; }
16731           /^X\(\/\).*/{ s//\1/; q; }
16732           s/.*/./; q'`
16733     done
16734     test ! -n "$as_dirs" || mkdir $as_dirs
16735   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16736 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16737    { (exit 1); exit 1; }; }; }
16738
16739   ac_builddir=.
16740
16741 if test "$ac_dir" != .; then
16742   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16743   # A "../" for each directory in $ac_dir_suffix.
16744   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16745 else
16746   ac_dir_suffix= ac_top_builddir=
16747 fi
16748
16749 case $srcdir in
16750   .)  # No --srcdir option.  We are building in place.
16751     ac_srcdir=.
16752     if test -z "$ac_top_builddir"; then
16753        ac_top_srcdir=.
16754     else
16755        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16756     fi ;;
16757   [\\/]* | ?:[\\/]* )  # Absolute path.
16758     ac_srcdir=$srcdir$ac_dir_suffix;
16759     ac_top_srcdir=$srcdir ;;
16760   *) # Relative path.
16761     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16762     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16763 esac
16764
16765 # Do not use `cd foo && pwd` to compute absolute paths, because
16766 # the directories may not exist.
16767 case `pwd` in
16768 .) ac_abs_builddir="$ac_dir";;
16769 *)
16770   case "$ac_dir" in
16771   .) ac_abs_builddir=`pwd`;;
16772   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16773   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16774   esac;;
16775 esac
16776 case $ac_abs_builddir in
16777 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16778 *)
16779   case ${ac_top_builddir}. in
16780   .) ac_abs_top_builddir=$ac_abs_builddir;;
16781   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16782   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16783   esac;;
16784 esac
16785 case $ac_abs_builddir in
16786 .) ac_abs_srcdir=$ac_srcdir;;
16787 *)
16788   case $ac_srcdir in
16789   .) ac_abs_srcdir=$ac_abs_builddir;;
16790   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16791   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16792   esac;;
16793 esac
16794 case $ac_abs_builddir in
16795 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16796 *)
16797   case $ac_top_srcdir in
16798   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16799   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16800   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16801   esac;;
16802 esac
16803
16804
16805   case $INSTALL in
16806   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16807   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16808   esac
16809
16810   if test x"$ac_file" != x-; then
16811     { echo "$as_me:$LINENO: creating $ac_file" >&5
16812 echo "$as_me: creating $ac_file" >&6;}
16813     rm -f "$ac_file"
16814   fi
16815   # Let's still pretend it is `configure' which instantiates (i.e., don't
16816   # use $as_me), people would be surprised to read:
16817   #    /* config.h.  Generated by config.status.  */
16818   if test x"$ac_file" = x-; then
16819     configure_input=
16820   else
16821     configure_input="$ac_file.  "
16822   fi
16823   configure_input=$configure_input"Generated from `echo $ac_file_in |
16824                                      sed 's,.*/,,'` by configure."
16825
16826   # First look for the input files in the build tree, otherwise in the
16827   # src tree.
16828   ac_file_inputs=`IFS=:
16829     for f in $ac_file_in; do
16830       case $f in
16831       -) echo $tmp/stdin ;;
16832       [\\/$]*)
16833          # Absolute (can't be DOS-style, as IFS=:)
16834          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16835 echo "$as_me: error: cannot find input file: $f" >&2;}
16836    { (exit 1); exit 1; }; }
16837          echo "$f";;
16838       *) # Relative
16839          if test -f "$f"; then
16840            # Build tree
16841            echo "$f"
16842          elif test -f "$srcdir/$f"; then
16843            # Source tree
16844            echo "$srcdir/$f"
16845          else
16846            # /dev/null tree
16847            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16848 echo "$as_me: error: cannot find input file: $f" >&2;}
16849    { (exit 1); exit 1; }; }
16850          fi;;
16851       esac
16852     done` || { (exit 1); exit 1; }
16853 _ACEOF
16854 cat >>$CONFIG_STATUS <<_ACEOF
16855   sed "$ac_vpsub
16856 $extrasub
16857 _ACEOF
16858 cat >>$CONFIG_STATUS <<\_ACEOF
16859 :t
16860 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16861 s,@configure_input@,$configure_input,;t t
16862 s,@srcdir@,$ac_srcdir,;t t
16863 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16864 s,@top_srcdir@,$ac_top_srcdir,;t t
16865 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16866 s,@builddir@,$ac_builddir,;t t
16867 s,@abs_builddir@,$ac_abs_builddir,;t t
16868 s,@top_builddir@,$ac_top_builddir,;t t
16869 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16870 s,@INSTALL@,$ac_INSTALL,;t t
16871 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16872   rm -f $tmp/stdin
16873   if test x"$ac_file" != x-; then
16874     mv $tmp/out $ac_file
16875   else
16876     cat $tmp/out
16877     rm -f $tmp/out
16878   fi
16879
16880 done
16881 _ACEOF
16882 cat >>$CONFIG_STATUS <<\_ACEOF
16883
16884 #
16885 # CONFIG_HEADER section.
16886 #
16887
16888 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16889 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16890 #
16891 # ac_d sets the value in "#define NAME VALUE" lines.
16892 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
16893 ac_dB='[         ].*$,\1#\2'
16894 ac_dC=' '
16895 ac_dD=',;t'
16896 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16897 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16898 ac_uB='$,\1#\2define\3'
16899 ac_uC=' '
16900 ac_uD=',;t'
16901
16902 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16903   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16904   case $ac_file in
16905   - | *:- | *:-:* ) # input from stdin
16906         cat >$tmp/stdin
16907         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16908         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16909   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16910         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16911   * )   ac_file_in=$ac_file.in ;;
16912   esac
16913
16914   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16915 echo "$as_me: creating $ac_file" >&6;}
16916
16917   # First look for the input files in the build tree, otherwise in the
16918   # src tree.
16919   ac_file_inputs=`IFS=:
16920     for f in $ac_file_in; do
16921       case $f in
16922       -) echo $tmp/stdin ;;
16923       [\\/$]*)
16924          # Absolute (can't be DOS-style, as IFS=:)
16925          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16926 echo "$as_me: error: cannot find input file: $f" >&2;}
16927    { (exit 1); exit 1; }; }
16928          # Do quote $f, to prevent DOS paths from being IFS'd.
16929          echo "$f";;
16930       *) # Relative
16931          if test -f "$f"; then
16932            # Build tree
16933            echo "$f"
16934          elif test -f "$srcdir/$f"; then
16935            # Source tree
16936            echo "$srcdir/$f"
16937          else
16938            # /dev/null tree
16939            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16940 echo "$as_me: error: cannot find input file: $f" >&2;}
16941    { (exit 1); exit 1; }; }
16942          fi;;
16943       esac
16944     done` || { (exit 1); exit 1; }
16945   # Remove the trailing spaces.
16946   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
16947
16948 _ACEOF
16949
16950 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16951 # `conftest.undefs', that substitutes the proper values into
16952 # config.h.in to produce config.h.  The first handles `#define'
16953 # templates, and the second `#undef' templates.
16954 # And first: Protect against being on the right side of a sed subst in
16955 # config.status.  Protect against being in an unquoted here document
16956 # in config.status.
16957 rm -f conftest.defines conftest.undefs
16958 # Using a here document instead of a string reduces the quoting nightmare.
16959 # Putting comments in sed scripts is not portable.
16960 #
16961 # `end' is used to avoid that the second main sed command (meant for
16962 # 0-ary CPP macros) applies to n-ary macro definitions.
16963 # See the Autoconf documentation for `clear'.
16964 cat >confdef2sed.sed <<\_ACEOF
16965 s/[\\&,]/\\&/g
16966 s,[\\$`],\\&,g
16967 t clear
16968 : clear
16969 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16970 t end
16971 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16972 : end
16973 _ACEOF
16974 # If some macros were called several times there might be several times
16975 # the same #defines, which is useless.  Nevertheless, we may not want to
16976 # sort them, since we want the *last* AC-DEFINE to be honored.
16977 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16978 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16979 rm -f confdef2sed.sed
16980
16981 # This sed command replaces #undef with comments.  This is necessary, for
16982 # example, in the case of _POSIX_SOURCE, which is predefined and required
16983 # on some systems where configure will not decide to define it.
16984 cat >>conftest.undefs <<\_ACEOF
16985 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16986 _ACEOF
16987
16988 # Break up conftest.defines because some shells have a limit on the size
16989 # of here documents, and old seds have small limits too (100 cmds).
16990 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16991 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16992 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16993 echo '  :' >>$CONFIG_STATUS
16994 rm -f conftest.tail
16995 while grep . conftest.defines >/dev/null
16996 do
16997   # Write a limited-size here document to $tmp/defines.sed.
16998   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16999   # Speed up: don't consider the non `#define' lines.
17000   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17001   # Work around the forget-to-reset-the-flag bug.
17002   echo 't clr' >>$CONFIG_STATUS
17003   echo ': clr' >>$CONFIG_STATUS
17004   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17005   echo 'CEOF
17006   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17007   rm -f $tmp/in
17008   mv $tmp/out $tmp/in
17009 ' >>$CONFIG_STATUS
17010   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17011   rm -f conftest.defines
17012   mv conftest.tail conftest.defines
17013 done
17014 rm -f conftest.defines
17015 echo '  fi # grep' >>$CONFIG_STATUS
17016 echo >>$CONFIG_STATUS
17017
17018 # Break up conftest.undefs because some shells have a limit on the size
17019 # of here documents, and old seds have small limits too (100 cmds).
17020 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17021 rm -f conftest.tail
17022 while grep . conftest.undefs >/dev/null
17023 do
17024   # Write a limited-size here document to $tmp/undefs.sed.
17025   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17026   # Speed up: don't consider the non `#undef'
17027   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17028   # Work around the forget-to-reset-the-flag bug.
17029   echo 't clr' >>$CONFIG_STATUS
17030   echo ': clr' >>$CONFIG_STATUS
17031   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17032   echo 'CEOF
17033   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17034   rm -f $tmp/in
17035   mv $tmp/out $tmp/in
17036 ' >>$CONFIG_STATUS
17037   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17038   rm -f conftest.undefs
17039   mv conftest.tail conftest.undefs
17040 done
17041 rm -f conftest.undefs
17042
17043 cat >>$CONFIG_STATUS <<\_ACEOF
17044   # Let's still pretend it is `configure' which instantiates (i.e., don't
17045   # use $as_me), people would be surprised to read:
17046   #    /* config.h.  Generated by config.status.  */
17047   if test x"$ac_file" = x-; then
17048     echo "/* Generated by configure.  */" >$tmp/config.h
17049   else
17050     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17051   fi
17052   cat $tmp/in >>$tmp/config.h
17053   rm -f $tmp/in
17054   if test x"$ac_file" != x-; then
17055     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17056       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17057 echo "$as_me: $ac_file is unchanged" >&6;}
17058     else
17059       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17060 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17061          X"$ac_file" : 'X\(//\)[^/]' \| \
17062          X"$ac_file" : 'X\(//\)$' \| \
17063          X"$ac_file" : 'X\(/\)' \| \
17064          .     : '\(.\)' 2>/dev/null ||
17065 echo X"$ac_file" |
17066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17068           /^X\(\/\/\)$/{ s//\1/; q; }
17069           /^X\(\/\).*/{ s//\1/; q; }
17070           s/.*/./; q'`
17071       { if $as_mkdir_p; then
17072     mkdir -p "$ac_dir"
17073   else
17074     as_dir="$ac_dir"
17075     as_dirs=
17076     while test ! -d "$as_dir"; do
17077       as_dirs="$as_dir $as_dirs"
17078       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17080          X"$as_dir" : 'X\(//\)[^/]' \| \
17081          X"$as_dir" : 'X\(//\)$' \| \
17082          X"$as_dir" : 'X\(/\)' \| \
17083          .     : '\(.\)' 2>/dev/null ||
17084 echo X"$as_dir" |
17085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17087           /^X\(\/\/\)$/{ s//\1/; q; }
17088           /^X\(\/\).*/{ s//\1/; q; }
17089           s/.*/./; q'`
17090     done
17091     test ! -n "$as_dirs" || mkdir $as_dirs
17092   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17093 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17094    { (exit 1); exit 1; }; }; }
17095
17096       rm -f $ac_file
17097       mv $tmp/config.h $ac_file
17098     fi
17099   else
17100     cat $tmp/config.h
17101     rm -f $tmp/config.h
17102   fi
17103 # Compute $ac_file's index in $config_headers.
17104 _am_stamp_count=1
17105 for _am_header in $config_headers :; do
17106   case $_am_header in
17107     $ac_file | $ac_file:* )
17108       break ;;
17109     * )
17110       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17111   esac
17112 done
17113 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17114 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17115          X$ac_file : 'X\(//\)[^/]' \| \
17116          X$ac_file : 'X\(//\)$' \| \
17117          X$ac_file : 'X\(/\)' \| \
17118          .     : '\(.\)' 2>/dev/null ||
17119 echo X$ac_file |
17120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17122           /^X\(\/\/\)$/{ s//\1/; q; }
17123           /^X\(\/\).*/{ s//\1/; q; }
17124           s/.*/./; q'`/stamp-h$_am_stamp_count
17125 done
17126 _ACEOF
17127 cat >>$CONFIG_STATUS <<\_ACEOF
17128
17129 #
17130 # CONFIG_LINKS section.
17131 #
17132
17133 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17134   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17135   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17136
17137   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17138 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17139
17140   if test ! -r $srcdir/$ac_source; then
17141     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17142 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17143    { (exit 1); exit 1; }; }
17144   fi
17145   rm -f $ac_dest
17146
17147   # Make relative symlinks.
17148   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17149 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17150          X"$ac_dest" : 'X\(//\)[^/]' \| \
17151          X"$ac_dest" : 'X\(//\)$' \| \
17152          X"$ac_dest" : 'X\(/\)' \| \
17153          .     : '\(.\)' 2>/dev/null ||
17154 echo X"$ac_dest" |
17155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17156           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17157           /^X\(\/\/\)$/{ s//\1/; q; }
17158           /^X\(\/\).*/{ s//\1/; q; }
17159           s/.*/./; q'`
17160   { if $as_mkdir_p; then
17161     mkdir -p "$ac_dest_dir"
17162   else
17163     as_dir="$ac_dest_dir"
17164     as_dirs=
17165     while test ! -d "$as_dir"; do
17166       as_dirs="$as_dir $as_dirs"
17167       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17169          X"$as_dir" : 'X\(//\)[^/]' \| \
17170          X"$as_dir" : 'X\(//\)$' \| \
17171          X"$as_dir" : 'X\(/\)' \| \
17172          .     : '\(.\)' 2>/dev/null ||
17173 echo X"$as_dir" |
17174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17175           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17176           /^X\(\/\/\)$/{ s//\1/; q; }
17177           /^X\(\/\).*/{ s//\1/; q; }
17178           s/.*/./; q'`
17179     done
17180     test ! -n "$as_dirs" || mkdir $as_dirs
17181   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17182 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17183    { (exit 1); exit 1; }; }; }
17184
17185   ac_builddir=.
17186
17187 if test "$ac_dest_dir" != .; then
17188   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17189   # A "../" for each directory in $ac_dir_suffix.
17190   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17191 else
17192   ac_dir_suffix= ac_top_builddir=
17193 fi
17194
17195 case $srcdir in
17196   .)  # No --srcdir option.  We are building in place.
17197     ac_srcdir=.
17198     if test -z "$ac_top_builddir"; then
17199        ac_top_srcdir=.
17200     else
17201        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17202     fi ;;
17203   [\\/]* | ?:[\\/]* )  # Absolute path.
17204     ac_srcdir=$srcdir$ac_dir_suffix;
17205     ac_top_srcdir=$srcdir ;;
17206   *) # Relative path.
17207     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17208     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17209 esac
17210
17211 # Do not use `cd foo && pwd` to compute absolute paths, because
17212 # the directories may not exist.
17213 case `pwd` in
17214 .) ac_abs_builddir="$ac_dest_dir";;
17215 *)
17216   case "$ac_dest_dir" in
17217   .) ac_abs_builddir=`pwd`;;
17218   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17219   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17220   esac;;
17221 esac
17222 case $ac_abs_builddir in
17223 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17224 *)
17225   case ${ac_top_builddir}. in
17226   .) ac_abs_top_builddir=$ac_abs_builddir;;
17227   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17228   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17229   esac;;
17230 esac
17231 case $ac_abs_builddir in
17232 .) ac_abs_srcdir=$ac_srcdir;;
17233 *)
17234   case $ac_srcdir in
17235   .) ac_abs_srcdir=$ac_abs_builddir;;
17236   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17237   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17238   esac;;
17239 esac
17240 case $ac_abs_builddir in
17241 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17242 *)
17243   case $ac_top_srcdir in
17244   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17245   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17246   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17247   esac;;
17248 esac
17249
17250
17251   case $srcdir in
17252   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17253       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17254   esac
17255
17256   # Try a symlink, then a hard link, then a copy.
17257   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17258     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17259     cp -p $srcdir/$ac_source $ac_dest ||
17260     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17261 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17262    { (exit 1); exit 1; }; }
17263 done
17264 _ACEOF
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17266
17267 #
17268 # CONFIG_COMMANDS section.
17269 #
17270 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17271   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17272   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17273   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17274 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17275          X"$ac_dest" : 'X\(//\)[^/]' \| \
17276          X"$ac_dest" : 'X\(//\)$' \| \
17277          X"$ac_dest" : 'X\(/\)' \| \
17278          .     : '\(.\)' 2>/dev/null ||
17279 echo X"$ac_dest" |
17280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17281           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17282           /^X\(\/\/\)$/{ s//\1/; q; }
17283           /^X\(\/\).*/{ s//\1/; q; }
17284           s/.*/./; q'`
17285   { if $as_mkdir_p; then
17286     mkdir -p "$ac_dir"
17287   else
17288     as_dir="$ac_dir"
17289     as_dirs=
17290     while test ! -d "$as_dir"; do
17291       as_dirs="$as_dir $as_dirs"
17292       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17294          X"$as_dir" : 'X\(//\)[^/]' \| \
17295          X"$as_dir" : 'X\(//\)$' \| \
17296          X"$as_dir" : 'X\(/\)' \| \
17297          .     : '\(.\)' 2>/dev/null ||
17298 echo X"$as_dir" |
17299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17300           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17301           /^X\(\/\/\)$/{ s//\1/; q; }
17302           /^X\(\/\).*/{ s//\1/; q; }
17303           s/.*/./; q'`
17304     done
17305     test ! -n "$as_dirs" || mkdir $as_dirs
17306   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17307 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17308    { (exit 1); exit 1; }; }; }
17309
17310   ac_builddir=.
17311
17312 if test "$ac_dir" != .; then
17313   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17314   # A "../" for each directory in $ac_dir_suffix.
17315   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17316 else
17317   ac_dir_suffix= ac_top_builddir=
17318 fi
17319
17320 case $srcdir in
17321   .)  # No --srcdir option.  We are building in place.
17322     ac_srcdir=.
17323     if test -z "$ac_top_builddir"; then
17324        ac_top_srcdir=.
17325     else
17326        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17327     fi ;;
17328   [\\/]* | ?:[\\/]* )  # Absolute path.
17329     ac_srcdir=$srcdir$ac_dir_suffix;
17330     ac_top_srcdir=$srcdir ;;
17331   *) # Relative path.
17332     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17333     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17334 esac
17335
17336 # Do not use `cd foo && pwd` to compute absolute paths, because
17337 # the directories may not exist.
17338 case `pwd` in
17339 .) ac_abs_builddir="$ac_dir";;
17340 *)
17341   case "$ac_dir" in
17342   .) ac_abs_builddir=`pwd`;;
17343   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17344   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17345   esac;;
17346 esac
17347 case $ac_abs_builddir in
17348 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17349 *)
17350   case ${ac_top_builddir}. in
17351   .) ac_abs_top_builddir=$ac_abs_builddir;;
17352   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17353   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17354   esac;;
17355 esac
17356 case $ac_abs_builddir in
17357 .) ac_abs_srcdir=$ac_srcdir;;
17358 *)
17359   case $ac_srcdir in
17360   .) ac_abs_srcdir=$ac_abs_builddir;;
17361   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17362   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17363   esac;;
17364 esac
17365 case $ac_abs_builddir in
17366 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17367 *)
17368   case $ac_top_srcdir in
17369   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17370   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17371   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17372   esac;;
17373 esac
17374
17375
17376   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17377 echo "$as_me: executing $ac_dest commands" >&6;}
17378   case $ac_dest in
17379     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17380   # Strip MF so we end up with the name of the file.
17381   mf=`echo "$mf" | sed -e 's/:.*$//'`
17382   # Check whether this is an Automake generated Makefile or not.
17383   # We used to match only the files named `Makefile.in', but
17384   # some people rename them; so instead we look at the file content.
17385   # Grep'ing the first line is not enough: some people post-process
17386   # each Makefile.in and add a new line on top of each file to say so.
17387   # So let's grep whole file.
17388   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17389     dirpart=`(dirname "$mf") 2>/dev/null ||
17390 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17391          X"$mf" : 'X\(//\)[^/]' \| \
17392          X"$mf" : 'X\(//\)$' \| \
17393          X"$mf" : 'X\(/\)' \| \
17394          .     : '\(.\)' 2>/dev/null ||
17395 echo X"$mf" |
17396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17398           /^X\(\/\/\)$/{ s//\1/; q; }
17399           /^X\(\/\).*/{ s//\1/; q; }
17400           s/.*/./; q'`
17401   else
17402     continue
17403   fi
17404   # Extract the definition of DEPDIR, am__include, and am__quote
17405   # from the Makefile without running `make'.
17406   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17407   test -z "$DEPDIR" && continue
17408   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17409   test -z "am__include" && continue
17410   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17411   # When using ansi2knr, U may be empty or an underscore; expand it
17412   U=`sed -n 's/^U = //p' < "$mf"`
17413   # Find all dependency output files, they are included files with
17414   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17415   # simplest approach to changing $(DEPDIR) to its actual value in the
17416   # expansion.
17417   for file in `sed -n "
17418     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17419        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17420     # Make sure the directory exists.
17421     test -f "$dirpart/$file" && continue
17422     fdir=`(dirname "$file") 2>/dev/null ||
17423 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17424          X"$file" : 'X\(//\)[^/]' \| \
17425          X"$file" : 'X\(//\)$' \| \
17426          X"$file" : 'X\(/\)' \| \
17427          .     : '\(.\)' 2>/dev/null ||
17428 echo X"$file" |
17429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17431           /^X\(\/\/\)$/{ s//\1/; q; }
17432           /^X\(\/\).*/{ s//\1/; q; }
17433           s/.*/./; q'`
17434     { if $as_mkdir_p; then
17435     mkdir -p $dirpart/$fdir
17436   else
17437     as_dir=$dirpart/$fdir
17438     as_dirs=
17439     while test ! -d "$as_dir"; do
17440       as_dirs="$as_dir $as_dirs"
17441       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17442 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17443          X"$as_dir" : 'X\(//\)[^/]' \| \
17444          X"$as_dir" : 'X\(//\)$' \| \
17445          X"$as_dir" : 'X\(/\)' \| \
17446          .     : '\(.\)' 2>/dev/null ||
17447 echo X"$as_dir" |
17448     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17449           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17450           /^X\(\/\/\)$/{ s//\1/; q; }
17451           /^X\(\/\).*/{ s//\1/; q; }
17452           s/.*/./; q'`
17453     done
17454     test ! -n "$as_dirs" || mkdir $as_dirs
17455   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17456 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17457    { (exit 1); exit 1; }; }; }
17458
17459     # echo "creating $dirpart/$file"
17460     echo '# dummy' > "$dirpart/$file"
17461   done
17462 done
17463  ;;
17464     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17465 case " $CONFIG_FILES " in
17466  *" Makefile "*)
17467    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17468    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17469    ;;
17470 esac
17471  ;;
17472   esac
17473 done
17474 _ACEOF
17475
17476 cat >>$CONFIG_STATUS <<\_ACEOF
17477
17478 { (exit 0); exit 0; }
17479 _ACEOF
17480 chmod +x $CONFIG_STATUS
17481 ac_clean_files=$ac_clean_files_save
17482
17483
17484 # configure is writing to config.log, and then calls config.status.
17485 # config.status does its own redirection, appending to config.log.
17486 # Unfortunately, on DOS this fails, as config.log is still kept open
17487 # by configure, so config.status won't be able to write to it; its
17488 # output is simply discarded.  So we exec the FD to /dev/null,
17489 # effectively closing config.log, so it can be properly (re)opened and
17490 # appended to by config.status.  When coming back to configure, we
17491 # need to make the FD available again.
17492 if test "$no_create" != yes; then
17493   ac_cs_success=:
17494   ac_config_status_args=
17495   test "$silent" = yes &&
17496     ac_config_status_args="$ac_config_status_args --quiet"
17497   exec 5>/dev/null
17498   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17499   exec 5>>config.log
17500   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17501   # would make configure fail if this is the last instruction.
17502   $ac_cs_success || { (exit 1); exit 1; }
17503 fi
17504
17505 #
17506 # CONFIG_SUBDIRS section.
17507 #
17508 if test "$no_recursion" != yes; then
17509
17510   # Remove --cache-file and --srcdir arguments so they do not pile up.
17511   ac_sub_configure_args=
17512   ac_prev=
17513   for ac_arg in $ac_configure_args; do
17514     if test -n "$ac_prev"; then
17515       ac_prev=
17516       continue
17517     fi
17518     case $ac_arg in
17519     -cache-file | --cache-file | --cache-fil | --cache-fi \
17520     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17521       ac_prev=cache_file ;;
17522     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17523     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17524     | --c=*)
17525       ;;
17526     --config-cache | -C)
17527       ;;
17528     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17529       ac_prev=srcdir ;;
17530     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17531       ;;
17532     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17533       ac_prev=prefix ;;
17534     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17535       ;;
17536     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17537     esac
17538   done
17539
17540   # Always prepend --prefix to ensure using the same prefix
17541   # in subdir configurations.
17542   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17543
17544   ac_popdir=`pwd`
17545   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17546
17547     # Do not complain, so a configure script can configure whichever
17548     # parts of a large source tree are present.
17549     test -d $srcdir/$ac_dir || continue
17550
17551     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17552 echo "$as_me: configuring in $ac_dir" >&6;}
17553     { if $as_mkdir_p; then
17554     mkdir -p "$ac_dir"
17555   else
17556     as_dir="$ac_dir"
17557     as_dirs=
17558     while test ! -d "$as_dir"; do
17559       as_dirs="$as_dir $as_dirs"
17560       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17562          X"$as_dir" : 'X\(//\)[^/]' \| \
17563          X"$as_dir" : 'X\(//\)$' \| \
17564          X"$as_dir" : 'X\(/\)' \| \
17565          .     : '\(.\)' 2>/dev/null ||
17566 echo X"$as_dir" |
17567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17568           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17569           /^X\(\/\/\)$/{ s//\1/; q; }
17570           /^X\(\/\).*/{ s//\1/; q; }
17571           s/.*/./; q'`
17572     done
17573     test ! -n "$as_dirs" || mkdir $as_dirs
17574   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17576    { (exit 1); exit 1; }; }; }
17577
17578     ac_builddir=.
17579
17580 if test "$ac_dir" != .; then
17581   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17582   # A "../" for each directory in $ac_dir_suffix.
17583   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17584 else
17585   ac_dir_suffix= ac_top_builddir=
17586 fi
17587
17588 case $srcdir in
17589   .)  # No --srcdir option.  We are building in place.
17590     ac_srcdir=.
17591     if test -z "$ac_top_builddir"; then
17592        ac_top_srcdir=.
17593     else
17594        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17595     fi ;;
17596   [\\/]* | ?:[\\/]* )  # Absolute path.
17597     ac_srcdir=$srcdir$ac_dir_suffix;
17598     ac_top_srcdir=$srcdir ;;
17599   *) # Relative path.
17600     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17601     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17602 esac
17603
17604 # Do not use `cd foo && pwd` to compute absolute paths, because
17605 # the directories may not exist.
17606 case `pwd` in
17607 .) ac_abs_builddir="$ac_dir";;
17608 *)
17609   case "$ac_dir" in
17610   .) ac_abs_builddir=`pwd`;;
17611   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17612   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17613   esac;;
17614 esac
17615 case $ac_abs_builddir in
17616 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17617 *)
17618   case ${ac_top_builddir}. in
17619   .) ac_abs_top_builddir=$ac_abs_builddir;;
17620   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17621   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17622   esac;;
17623 esac
17624 case $ac_abs_builddir in
17625 .) ac_abs_srcdir=$ac_srcdir;;
17626 *)
17627   case $ac_srcdir in
17628   .) ac_abs_srcdir=$ac_abs_builddir;;
17629   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17630   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17631   esac;;
17632 esac
17633 case $ac_abs_builddir in
17634 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17635 *)
17636   case $ac_top_srcdir in
17637   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17638   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17639   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17640   esac;;
17641 esac
17642
17643
17644     cd $ac_dir
17645
17646     # Check for guested configure; otherwise get Cygnus style configure.
17647     if test -f $ac_srcdir/configure.gnu; then
17648       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17649     elif test -f $ac_srcdir/configure; then
17650       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17651     elif test -f $ac_srcdir/configure.in; then
17652       ac_sub_configure=$ac_configure
17653     else
17654       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17655 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17656       ac_sub_configure=
17657     fi
17658
17659     # The recursion is here.
17660     if test -n "$ac_sub_configure"; then
17661       # Make the cache file name correct relative to the subdirectory.
17662       case $cache_file in
17663       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17664       *) # Relative path.
17665         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17666       esac
17667
17668       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17669 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17670       # The eval makes quoting arguments work.
17671       eval $ac_sub_configure $ac_sub_configure_args \
17672            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17673         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17674 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17675    { (exit 1); exit 1; }; }
17676     fi
17677
17678     cd $ac_popdir
17679   done
17680 fi
17681