OSDN Git Service

2005-02-22 Thomas Fitzsimmons <fitzsim@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all 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 LIBGCJ_LD_SYMBOLIC 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 USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_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 gcc_version_trigger gcc_version_full gcc_version tool_include_dir LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR 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 gxx_include_dir libstdcxx_incdir 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   --disable-rpath         do not hardcode runtime library paths
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886   --with-target-subdir=SUBDIR
887                           configure in a subdirectory
888   --with-cross-host=HOST  configure with a cross compiler from HOST
889   --with-newlib           configure with newlib
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-pic              try to use only PIC/non-PIC objects default=use both
892   --with-win32-nlsapi=ansi or unicows or unicode
893                           native MinGW libgcj Win32 OS API (default is ansi)
894   --without-libffi        don't use libffi
895   --with-ecos             enable runtime eCos target support
896   --with-system-zlib      use installed libz
897   --with-x                use the X Window System
898   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
899   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
900
901 Some influential environment variables:
902   CC          C compiler command
903   CFLAGS      C compiler flags
904   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
905               nonstandard directory <lib dir>
906   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
907               headers in a nonstandard directory <include dir>
908   CXX         C++ compiler command
909   CXXFLAGS    C++ compiler flags
910   CXXCPP      C++ preprocessor
911   CPP         C preprocessor
912
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
915
916 _ACEOF
917 fi
918
919 if test "$ac_init_help" = "recursive"; then
920   # If there are subdirs, report their specific --help.
921   ac_popdir=`pwd`
922   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923     test -d $ac_dir || continue
924     ac_builddir=.
925
926 if test "$ac_dir" != .; then
927   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928   # A "../" for each directory in $ac_dir_suffix.
929   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 else
931   ac_dir_suffix= ac_top_builddir=
932 fi
933
934 case $srcdir in
935   .)  # No --srcdir option.  We are building in place.
936     ac_srcdir=.
937     if test -z "$ac_top_builddir"; then
938        ac_top_srcdir=.
939     else
940        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941     fi ;;
942   [\\/]* | ?:[\\/]* )  # Absolute path.
943     ac_srcdir=$srcdir$ac_dir_suffix;
944     ac_top_srcdir=$srcdir ;;
945   *) # Relative path.
946     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947     ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
949
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
952 case `pwd` in
953 .) ac_abs_builddir="$ac_dir";;
954 *)
955   case "$ac_dir" in
956   .) ac_abs_builddir=`pwd`;;
957   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958   *) ac_abs_builddir=`pwd`/"$ac_dir";;
959   esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 *)
964   case ${ac_top_builddir}. in
965   .) ac_abs_top_builddir=$ac_abs_builddir;;
966   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968   esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
972 *)
973   case $ac_srcdir in
974   .) ac_abs_srcdir=$ac_abs_builddir;;
975   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977   esac;;
978 esac
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 *)
982   case $ac_top_srcdir in
983   .) ac_abs_top_srcdir=$ac_abs_builddir;;
984   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986   esac;;
987 esac
988
989     cd $ac_dir
990     # Check for guested configure; otherwise get Cygnus style configure.
991     if test -f $ac_srcdir/configure.gnu; then
992       echo
993       $SHELL $ac_srcdir/configure.gnu  --help=recursive
994     elif test -f $ac_srcdir/configure; then
995       echo
996       $SHELL $ac_srcdir/configure  --help=recursive
997     elif test -f $ac_srcdir/configure.ac ||
998            test -f $ac_srcdir/configure.in; then
999       echo
1000       $ac_configure --help
1001     else
1002       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003     fi
1004     cd $ac_popdir
1005   done
1006 fi
1007
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010   cat <<\_ACEOF
1011 libjava configure version-unused
1012 generated by GNU Autoconf 2.59
1013
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1017 _ACEOF
1018   exit 0
1019 fi
1020 exec 5>config.log
1021 cat >&5 <<_ACEOF
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1024
1025 It was created by libjava $as_me version-unused, which was
1026 generated by GNU Autoconf 2.59.  Invocation command line was
1027
1028   $ $0 $@
1029
1030 _ACEOF
1031 {
1032 cat <<_ASUNAME
1033 ## --------- ##
1034 ## Platform. ##
1035 ## --------- ##
1036
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1045
1046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1053
1054 _ASUNAME
1055
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 for as_dir in $PATH
1058 do
1059   IFS=$as_save_IFS
1060   test -z "$as_dir" && as_dir=.
1061   echo "PATH: $as_dir"
1062 done
1063
1064 } >&5
1065
1066 cat >&5 <<_ACEOF
1067
1068
1069 ## ----------- ##
1070 ## Core tests. ##
1071 ## ----------- ##
1072
1073 _ACEOF
1074
1075
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_configure_args=
1082 ac_configure_args0=
1083 ac_configure_args1=
1084 ac_sep=
1085 ac_must_keep_next=false
1086 for ac_pass in 1 2
1087 do
1088   for ac_arg
1089   do
1090     case $ac_arg in
1091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093     | -silent | --silent | --silen | --sile | --sil)
1094       continue ;;
1095     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097     esac
1098     case $ac_pass in
1099     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100     2)
1101       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102       if test $ac_must_keep_next = true; then
1103         ac_must_keep_next=false # Got value, back to normal.
1104       else
1105         case $ac_arg in
1106           *=* | --config-cache | -C | -disable-* | --disable-* \
1107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109           | -with-* | --with-* | -without-* | --without-* | --x)
1110             case "$ac_configure_args0 " in
1111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112             esac
1113             ;;
1114           -* ) ac_must_keep_next=true ;;
1115         esac
1116       fi
1117       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118       # Get rid of the leading space.
1119       ac_sep=" "
1120       ;;
1121     esac
1122   done
1123 done
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log.  We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133   # Save into config.log some information that might help in debugging.
1134   {
1135     echo
1136
1137     cat <<\_ASBOX
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1141 _ASBOX
1142     echo
1143     # The following way of writing the cache mishandles newlines in values,
1144 {
1145   (set) 2>&1 |
1146     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147     *ac_space=\ *)
1148       sed -n \
1149         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151       ;;
1152     *)
1153       sed -n \
1154         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155       ;;
1156     esac;
1157 }
1158     echo
1159
1160     cat <<\_ASBOX
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1164 _ASBOX
1165     echo
1166     for ac_var in $ac_subst_vars
1167     do
1168       eval ac_val=$`echo $ac_var`
1169       echo "$ac_var='"'"'$ac_val'"'"'"
1170     done | sort
1171     echo
1172
1173     if test -n "$ac_subst_files"; then
1174       cat <<\_ASBOX
1175 ## ------------- ##
1176 ## Output files. ##
1177 ## ------------- ##
1178 _ASBOX
1179       echo
1180       for ac_var in $ac_subst_files
1181       do
1182         eval ac_val=$`echo $ac_var`
1183         echo "$ac_var='"'"'$ac_val'"'"'"
1184       done | sort
1185       echo
1186     fi
1187
1188     if test -s confdefs.h; then
1189       cat <<\_ASBOX
1190 ## ----------- ##
1191 ## confdefs.h. ##
1192 ## ----------- ##
1193 _ASBOX
1194       echo
1195       sed "/^$/d" confdefs.h | sort
1196       echo
1197     fi
1198     test "$ac_signal" != 0 &&
1199       echo "$as_me: caught signal $ac_signal"
1200     echo "$as_me: exit $exit_status"
1201   } >&5
1202   rm -f core *.core &&
1203   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204     exit $exit_status
1205      ' 0
1206 for ac_signal in 1 2 13 15; do
1207   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 done
1209 ac_signal=0
1210
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214 echo >confdefs.h
1215
1216 # Predefined preprocessor variables.
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 _ACEOF
1231
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 _ACEOF
1236
1237
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 _ACEOF
1241
1242
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246   if test "x$prefix" != xNONE; then
1247     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248   else
1249     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250   fi
1251 fi
1252 for ac_site_file in $CONFIG_SITE; do
1253   if test -r "$ac_site_file"; then
1254     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256     sed 's/^/| /' "$ac_site_file" >&5
1257     . "$ac_site_file"
1258   fi
1259 done
1260
1261 if test -r "$cache_file"; then
1262   # Some versions of bash will fail to source /dev/null (special
1263   # files actually), so we avoid doing that.
1264   if test -f "$cache_file"; then
1265     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1267     case $cache_file in
1268       [\\/]* | ?:[\\/]* ) . $cache_file;;
1269       *)                      . ./$cache_file;;
1270     esac
1271   fi
1272 else
1273   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1275   >$cache_file
1276 fi
1277
1278 # Check that the precious variables saved in the cache have kept the same
1279 # value.
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284   eval ac_new_set=\$ac_env_${ac_var}_set
1285   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286   eval ac_new_val="\$ac_env_${ac_var}_value"
1287   case $ac_old_set,$ac_new_set in
1288     set,)
1289       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291       ac_cache_corrupted=: ;;
1292     ,set)
1293       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295       ac_cache_corrupted=: ;;
1296     ,);;
1297     *)
1298       if test "x$ac_old_val" != "x$ac_new_val"; then
1299         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1302 echo "$as_me:   former value:  $ac_old_val" >&2;}
1303         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1304 echo "$as_me:   current value: $ac_new_val" >&2;}
1305         ac_cache_corrupted=:
1306       fi;;
1307   esac
1308   # Pass precious variables to config.status.
1309   if test "$ac_new_set" = set; then
1310     case $ac_new_val in
1311     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313     *) ac_arg=$ac_var=$ac_new_val ;;
1314     esac
1315     case " $ac_configure_args " in
1316       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1317       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1318     esac
1319   fi
1320 done
1321 if $ac_cache_corrupted; then
1322   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326    { (exit 1); exit 1; }; }
1327 fi
1328
1329 ac_ext=c
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364 # We use these options to decide which functions to include.
1365
1366 # Check whether --with-target-subdir or --without-target-subdir was given.
1367 if test "${with_target_subdir+set}" = set; then
1368   withval="$with_target_subdir"
1369
1370 fi;
1371
1372 # We may get other options which we don't document:
1373 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1374
1375 # When building with srcdir == objdir, links to the source files will
1376 # be created in directories within the target_subdir.  We have to
1377 # adjust toplevel_srcdir accordingly, so that configure finds
1378 # install-sh and other auxiliary files that live in the top-level
1379 # source directory.
1380 if test "${srcdir}" = "."; then
1381   if test -z "${with_target_subdir}"; then
1382     toprel=".."
1383   else
1384     if test "${with_target_subdir}" != "."; then
1385       toprel="${with_multisrctop}../.."
1386     else
1387       toprel="${with_multisrctop}.."
1388     fi
1389   fi
1390 else
1391   toprel=".."
1392 fi
1393
1394 libgcj_basedir=$srcdir/$toprel/./libjava
1395
1396
1397 ac_aux_dir=
1398 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1399   if test -f $ac_dir/install-sh; then
1400     ac_aux_dir=$ac_dir
1401     ac_install_sh="$ac_aux_dir/install-sh -c"
1402     break
1403   elif test -f $ac_dir/install.sh; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/install.sh -c"
1406     break
1407   elif test -f $ac_dir/shtool; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/shtool install -c"
1410     break
1411   fi
1412 done
1413 if test -z "$ac_aux_dir"; then
1414   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1415 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1416    { (exit 1); exit 1; }; }
1417 fi
1418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1420 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1421
1422 # Make sure we can run config.sub.
1423 $ac_config_sub sun4 >/dev/null 2>&1 ||
1424   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1425 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1426    { (exit 1); exit 1; }; }
1427
1428 echo "$as_me:$LINENO: checking build system type" >&5
1429 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1430 if test "${ac_cv_build+set}" = set; then
1431   echo $ECHO_N "(cached) $ECHO_C" >&6
1432 else
1433   ac_cv_build_alias=$build_alias
1434 test -z "$ac_cv_build_alias" &&
1435   ac_cv_build_alias=`$ac_config_guess`
1436 test -z "$ac_cv_build_alias" &&
1437   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1439    { (exit 1); exit 1; }; }
1440 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1441   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1443    { (exit 1); exit 1; }; }
1444
1445 fi
1446 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1447 echo "${ECHO_T}$ac_cv_build" >&6
1448 build=$ac_cv_build
1449 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453
1454 echo "$as_me:$LINENO: checking host system type" >&5
1455 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1456 if test "${ac_cv_host+set}" = set; then
1457   echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459   ac_cv_host_alias=$host_alias
1460 test -z "$ac_cv_host_alias" &&
1461   ac_cv_host_alias=$ac_cv_build_alias
1462 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1463   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1465    { (exit 1); exit 1; }; }
1466
1467 fi
1468 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1469 echo "${ECHO_T}$ac_cv_host" >&6
1470 host=$ac_cv_host
1471 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
1475
1476 echo "$as_me:$LINENO: checking target system type" >&5
1477 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1478 if test "${ac_cv_target+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   ac_cv_target_alias=$target_alias
1482 test "x$ac_cv_target_alias" = "x" &&
1483   ac_cv_target_alias=$ac_cv_host_alias
1484 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1485   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1486 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1487    { (exit 1); exit 1; }; }
1488
1489 fi
1490 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1491 echo "${ECHO_T}$ac_cv_target" >&6
1492 target=$ac_cv_target
1493 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1496
1497
1498 # The aliases save the names the user supplied, while $host etc.
1499 # will get canonicalized.
1500 test -n "$target_alias" &&
1501   test "$program_prefix$program_suffix$program_transform_name" = \
1502     NONENONEs,x,x, &&
1503   program_prefix=${target_alias}-
1504  case ${build_alias} in
1505   "") build_noncanonical=${build} ;;
1506   *) build_noncanonical=${build_alias} ;;
1507 esac
1508
1509  case ${host_alias} in
1510   "") host_noncanonical=${build_noncanonical} ;;
1511   *) host_noncanonical=${host_alias} ;;
1512 esac
1513
1514  case ${target_alias} in
1515   "") target_noncanonical=${host_noncanonical} ;;
1516   *) target_noncanonical=${target_alias} ;;
1517 esac
1518
1519
1520
1521
1522 # This works around the fact that libtool configuration may change LD
1523 # for this particular configuration, but some shells, instead of
1524 # keeping the changes in LD private, export them just because LD is
1525 # exported.
1526 ORIGINAL_LD_FOR_MULTILIBS=$LD
1527
1528 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1529 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1530 LN_S=$as_ln_s
1531 if test "$LN_S" = "ln -s"; then
1532   echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1534 else
1535   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1536 echo "${ECHO_T}no, using $LN_S" >&6
1537 fi
1538
1539
1540 # This works around an automake problem.
1541 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1542
1543
1544
1545 # Check whether --with-cross-host or --without-cross-host was given.
1546 if test "${with_cross_host+set}" = set; then
1547   withval="$with_cross_host"
1548
1549 fi;
1550
1551
1552 # Check whether --with-newlib or --without-newlib was given.
1553 if test "${with_newlib+set}" = set; then
1554   withval="$with_newlib"
1555
1556 fi;
1557
1558 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1559 if test "${enable_version_specific_runtime_libs+set}" = set; then
1560   enableval="$enable_version_specific_runtime_libs"
1561   case "$enableval" in
1562       yes) version_specific_libs=yes ;;
1563       no)  version_specific_libs=no ;;
1564       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1565 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1566    { (exit 1); exit 1; }; };;
1567      esac
1568 else
1569   version_specific_libs=no
1570
1571 fi;
1572
1573 # Default to --enable-multilib
1574 # Check whether --enable-multilib or --disable-multilib was given.
1575 if test "${enable_multilib+set}" = set; then
1576   enableval="$enable_multilib"
1577   case "${enableval}" in
1578   yes) multilib=yes ;;
1579   no)  multilib=no ;;
1580   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1581 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1582    { (exit 1); exit 1; }; } ;;
1583  esac
1584 else
1585   multilib=yes
1586 fi;
1587 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1588
1589
1590 # (1) We use an abnormal CXX (without library references), so we
1591 # must cache it under a different name.
1592 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1593 # the non-multilib-adjusted value will be used in multilibs.
1594 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1595 # (4) As another side effect, automake doesn't automatically include them
1596 # in Makefile.in.
1597 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1598 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1599 # used in later tests.  This may not be necessary in libjava; I don't know.
1600
1601
1602
1603 save_CXXFLAGS="$CXXFLAGS"
1604 CXXFLAGS="$CXXFLAGS -fno-builtin"
1605 ac_ext=c
1606 ac_cpp='$CPP $CPPFLAGS'
1607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1610 if test -n "$ac_tool_prefix"; then
1611   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1613 echo "$as_me:$LINENO: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_CC+set}" = set; then
1616   echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618   if test -n "$CC"; then
1619   ac_cv_prog_CC="$CC" # Let the user override the test.
1620 else
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1623 do
1624   IFS=$as_save_IFS
1625   test -z "$as_dir" && as_dir=.
1626   for ac_exec_ext in '' $ac_executable_extensions; do
1627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1630     break 2
1631   fi
1632 done
1633 done
1634
1635 fi
1636 fi
1637 CC=$ac_cv_prog_CC
1638 if test -n "$CC"; then
1639   echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1641 else
1642   echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1644 fi
1645
1646 fi
1647 if test -z "$ac_cv_prog_CC"; then
1648   ac_ct_CC=$CC
1649   # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   if test -n "$ac_ct_CC"; then
1657   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1658 else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662   IFS=$as_save_IFS
1663   test -z "$as_dir" && as_dir=.
1664   for ac_exec_ext in '' $ac_executable_extensions; do
1665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666     ac_cv_prog_ac_ct_CC="gcc"
1667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668     break 2
1669   fi
1670 done
1671 done
1672
1673 fi
1674 fi
1675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1679 else
1680   echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1682 fi
1683
1684   CC=$ac_ct_CC
1685 else
1686   CC="$ac_cv_prog_CC"
1687 fi
1688
1689 if test -z "$CC"; then
1690   if test -n "$ac_tool_prefix"; then
1691   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}cc; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="${ac_tool_prefix}cc"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726 fi
1727 if test -z "$ac_cv_prog_CC"; then
1728   ac_ct_CC=$CC
1729   # Extract the first word of "cc", so it can be a program name with args.
1730 set dummy cc; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734   echo $ECHO_N "(cached) $ECHO_C" >&6
1735 else
1736   if test -n "$ac_ct_CC"; then
1737   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738 else
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740 for as_dir in $PATH
1741 do
1742   IFS=$as_save_IFS
1743   test -z "$as_dir" && as_dir=.
1744   for ac_exec_ext in '' $ac_executable_extensions; do
1745   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746     ac_cv_prog_ac_ct_CC="cc"
1747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748     break 2
1749   fi
1750 done
1751 done
1752
1753 fi
1754 fi
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1763
1764   CC=$ac_ct_CC
1765 else
1766   CC="$ac_cv_prog_CC"
1767 fi
1768
1769 fi
1770 if test -z "$CC"; then
1771   # Extract the first word of "cc", so it can be a program name with args.
1772 set dummy cc; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_CC+set}" = set; then
1776   echo $ECHO_N "(cached) $ECHO_C" >&6
1777 else
1778   if test -n "$CC"; then
1779   ac_cv_prog_CC="$CC" # Let the user override the test.
1780 else
1781   ac_prog_rejected=no
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1783 for as_dir in $PATH
1784 do
1785   IFS=$as_save_IFS
1786   test -z "$as_dir" && as_dir=.
1787   for ac_exec_ext in '' $ac_executable_extensions; do
1788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1790        ac_prog_rejected=yes
1791        continue
1792      fi
1793     ac_cv_prog_CC="cc"
1794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795     break 2
1796   fi
1797 done
1798 done
1799
1800 if test $ac_prog_rejected = yes; then
1801   # We found a bogon in the path, so make sure we never use it.
1802   set dummy $ac_cv_prog_CC
1803   shift
1804   if test $# != 0; then
1805     # We chose a different compiler from the bogus one.
1806     # However, it has the same basename, so the bogon will be chosen
1807     # first if we set CC to just the basename; use the full file name.
1808     shift
1809     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1810   fi
1811 fi
1812 fi
1813 fi
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816   echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823 fi
1824 if test -z "$CC"; then
1825   if test -n "$ac_tool_prefix"; then
1826   for ac_prog in cl
1827   do
1828     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   if test -n "$CC"; then
1836   ac_cv_prog_CC="$CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841   IFS=$as_save_IFS
1842   test -z "$as_dir" && as_dir=.
1843   for ac_exec_ext in '' $ac_executable_extensions; do
1844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848   fi
1849 done
1850 done
1851
1852 fi
1853 fi
1854 CC=$ac_cv_prog_CC
1855 if test -n "$CC"; then
1856   echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1858 else
1859   echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1861 fi
1862
1863     test -n "$CC" && break
1864   done
1865 fi
1866 if test -z "$CC"; then
1867   ac_ct_CC=$CC
1868   for ac_prog in cl
1869 do
1870   # Extract the first word of "$ac_prog", so it can be a program name with args.
1871 set dummy $ac_prog; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   if test -n "$ac_ct_CC"; then
1878   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883   IFS=$as_save_IFS
1884   test -z "$as_dir" && as_dir=.
1885   for ac_exec_ext in '' $ac_executable_extensions; do
1886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887     ac_cv_prog_ac_ct_CC="$ac_prog"
1888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889     break 2
1890   fi
1891 done
1892 done
1893
1894 fi
1895 fi
1896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1900 else
1901   echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905   test -n "$ac_ct_CC" && break
1906 done
1907
1908   CC=$ac_ct_CC
1909 fi
1910
1911 fi
1912
1913
1914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: no acceptable C compiler found in \$PATH
1917 See \`config.log' for more details." >&2;}
1918    { (exit 1); exit 1; }; }
1919
1920 # Provide some information about the compiler.
1921 echo "$as_me:$LINENO:" \
1922      "checking for C compiler version" >&5
1923 ac_compiler=`set X $ac_compile; echo $2`
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1925   (eval $ac_compiler --version </dev/null >&5) 2>&5
1926   ac_status=$?
1927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928   (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1930   (eval $ac_compiler -v </dev/null >&5) 2>&5
1931   ac_status=$?
1932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933   (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1935   (eval $ac_compiler -V </dev/null >&5) 2>&5
1936   ac_status=$?
1937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938   (exit $ac_status); }
1939
1940 cat >conftest.$ac_ext <<_ACEOF
1941 /* confdefs.h.  */
1942 _ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h.  */
1946
1947 int
1948 main ()
1949 {
1950
1951   ;
1952   return 0;
1953 }
1954 _ACEOF
1955 # FIXME: Cleanup?
1956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1957   (eval $ac_link) 2>&5
1958   ac_status=$?
1959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960   (exit $ac_status); }; then
1961   gcc_no_link=no
1962 else
1963   gcc_no_link=yes
1964 fi
1965
1966 if test x$gcc_no_link = xyes; then
1967   # Setting cross_compile will disable run tests; it will
1968   # also disable AC_CHECK_FILE but that's generally
1969   # correct if we can't link.
1970   cross_compiling=yes
1971   EXEEXT=
1972 else
1973   cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h.  */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h.  */
1979
1980 int
1981 main ()
1982 {
1983
1984   ;
1985   return 0;
1986 }
1987 _ACEOF
1988 ac_clean_files_save=$ac_clean_files
1989 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1990 # Try to create an executable without -o first, disregard a.out.
1991 # It will help us diagnose broken compilers, and finding out an intuition
1992 # of exeext.
1993 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1994 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1995 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997   (eval $ac_link_default) 2>&5
1998   ac_status=$?
1999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000   (exit $ac_status); }; then
2001   # Find the output, starting from the most likely.  This scheme is
2002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2003 # resort.
2004
2005 # Be careful to initialize this variable, since it used to be cached.
2006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2007 ac_cv_exeext=
2008 # b.out is created by i960 compilers.
2009 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2010 do
2011   test -f "$ac_file" || continue
2012   case $ac_file in
2013     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2014         ;;
2015     conftest.$ac_ext )
2016         # This is the source file.
2017         ;;
2018     [ab].out )
2019         # We found the default executable, but exeext='' is most
2020         # certainly right.
2021         break;;
2022     *.* )
2023         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2024         # FIXME: I believe we export ac_cv_exeext for Libtool,
2025         # but it would be cool to find out if it's true.  Does anybody
2026         # maintain Libtool? --akim.
2027         export ac_cv_exeext
2028         break;;
2029     * )
2030         break;;
2031   esac
2032 done
2033 else
2034   echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: C compiler cannot create executables
2040 See \`config.log' for more details." >&2;}
2041    { (exit 77); exit 77; }; }
2042 fi
2043
2044 ac_exeext=$ac_cv_exeext
2045 echo "$as_me:$LINENO: result: $ac_file" >&5
2046 echo "${ECHO_T}$ac_file" >&6
2047
2048 # Check the compiler produces executables we can run.  If not, either
2049 # the compiler is broken, or we cross compile.
2050 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2051 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2052 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2053 # If not cross compiling, check that we can run a simple program.
2054 if test "$cross_compiling" != yes; then
2055   if { ac_try='./$ac_file'
2056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; }; then
2061     cross_compiling=no
2062   else
2063     if test "$cross_compiling" = maybe; then
2064         cross_compiling=yes
2065     else
2066         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'.
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: cannot run C compiled programs.
2070 If you meant to cross compile, use \`--host'.
2071 See \`config.log' for more details." >&2;}
2072    { (exit 1); exit 1; }; }
2073     fi
2074   fi
2075 fi
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2078
2079 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run.  If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2087
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091   (eval $ac_link) 2>&5
2092   ac_status=$?
2093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094   (exit $ac_status); }; then
2095   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2098 # `rm'.
2099 for ac_file in conftest.exe conftest conftest.*; do
2100   test -f "$ac_file" || continue
2101   case $ac_file in
2102     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2103     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2104           export ac_cv_exeext
2105           break;;
2106     * ) break;;
2107   esac
2108 done
2109 else
2110   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2113 See \`config.log' for more details." >&2;}
2114    { (exit 1); exit 1; }; }
2115 fi
2116
2117 rm -f conftest$ac_cv_exeext
2118 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2119 echo "${ECHO_T}$ac_cv_exeext" >&6
2120
2121 rm -f conftest.$ac_ext
2122 EXEEXT=$ac_cv_exeext
2123 ac_exeext=$EXEEXT
2124 fi
2125 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127 if test "${ac_cv_objext+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136
2137 int
2138 main ()
2139 {
2140
2141   ;
2142   return 0;
2143 }
2144 _ACEOF
2145 rm -f conftest.o conftest.obj
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147   (eval $ac_compile) 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }; then
2151   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2152   case $ac_file in
2153     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2155        break;;
2156   esac
2157 done
2158 else
2159   echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165 See \`config.log' for more details." >&2;}
2166    { (exit 1); exit 1; }; }
2167 fi
2168
2169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2170 fi
2171 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172 echo "${ECHO_T}$ac_cv_objext" >&6
2173 OBJEXT=$ac_cv_objext
2174 ac_objext=$OBJEXT
2175 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   cat >conftest.$ac_ext <<_ACEOF
2181 /* confdefs.h.  */
2182 _ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h.  */
2186
2187 int
2188 main ()
2189 {
2190 #ifndef __GNUC__
2191        choke me
2192 #endif
2193
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200   (eval $ac_compile) 2>conftest.er1
2201   ac_status=$?
2202   grep -v '^ *+' conftest.er1 >conftest.err
2203   rm -f conftest.er1
2204   cat conftest.err >&5
2205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206   (exit $ac_status); } &&
2207          { ac_try='test -z "$ac_c_werror_flag"
2208                          || test ! -s conftest.err'
2209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210   (eval $ac_try) 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; } &&
2214          { ac_try='test -s conftest.$ac_objext'
2215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2216   (eval $ac_try) 2>&5
2217   ac_status=$?
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); }; }; then
2220   ac_compiler_gnu=yes
2221 else
2222   echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2224
2225 ac_compiler_gnu=no
2226 fi
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2229
2230 fi
2231 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2232 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2233 GCC=`test $ac_compiler_gnu = yes && echo yes`
2234 ac_test_CFLAGS=${CFLAGS+set}
2235 ac_save_CFLAGS=$CFLAGS
2236 CFLAGS="-g"
2237 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239 if test "${ac_cv_prog_cc_g+set}" = set; then
2240   echo $ECHO_N "(cached) $ECHO_C" >&6
2241 else
2242   cat >conftest.$ac_ext <<_ACEOF
2243 /* confdefs.h.  */
2244 _ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h.  */
2248
2249 int
2250 main ()
2251 {
2252
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259   (eval $ac_compile) 2>conftest.er1
2260   ac_status=$?
2261   grep -v '^ *+' conftest.er1 >conftest.err
2262   rm -f conftest.er1
2263   cat conftest.err >&5
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); } &&
2266          { ac_try='test -z "$ac_c_werror_flag"
2267                          || test ! -s conftest.err'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; } &&
2273          { ac_try='test -s conftest.$ac_objext'
2274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275   (eval $ac_try) 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279   ac_cv_prog_cc_g=yes
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 ac_cv_prog_cc_g=no
2285 fi
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2287 fi
2288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2290 if test "$ac_test_CFLAGS" = set; then
2291   CFLAGS=$ac_save_CFLAGS
2292 elif test $ac_cv_prog_cc_g = yes; then
2293   if test "$GCC" = yes; then
2294     CFLAGS="-g -O2"
2295   else
2296     CFLAGS="-g"
2297   fi
2298 else
2299   if test "$GCC" = yes; then
2300     CFLAGS="-O2"
2301   else
2302     CFLAGS=
2303   fi
2304 fi
2305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2308   echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310   ac_cv_prog_cc_stdc=no
2311 ac_save_CC=$CC
2312 cat >conftest.$ac_ext <<_ACEOF
2313 /* confdefs.h.  */
2314 _ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h.  */
2318 #include <stdarg.h>
2319 #include <stdio.h>
2320 #include <sys/types.h>
2321 #include <sys/stat.h>
2322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2323 struct buf { int x; };
2324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2325 static char *e (p, i)
2326      char **p;
2327      int i;
2328 {
2329   return p[i];
2330 }
2331 static char *f (char * (*g) (char **, int), char **p, ...)
2332 {
2333   char *s;
2334   va_list v;
2335   va_start (v,p);
2336   s = g (p, va_arg (v,int));
2337   va_end (v);
2338   return s;
2339 }
2340
2341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2342    function prototypes and stuff, but not '\xHH' hex character constants.
2343    These don't provoke an error unfortunately, instead are silently treated
2344    as 'x'.  The following induces an error, until -std1 is added to get
2345    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2346    array size at least.  It's necessary to write '\x00'==0 to get something
2347    that's true only with -std1.  */
2348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2349
2350 int test (int i, double x);
2351 struct s1 {int (*f) (int a);};
2352 struct s2 {int (*f) (double a);};
2353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2354 int argc;
2355 char **argv;
2356 int
2357 main ()
2358 {
2359 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 # Don't try gcc -ansi; that turns off useful extensions and
2365 # breaks some systems' header files.
2366 # AIX                   -qlanglvl=ansi
2367 # Ultrix and OSF/1      -std1
2368 # HP-UX 10.20 and later -Ae
2369 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2370 # SVR4                  -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2372 do
2373   CC="$ac_save_CC $ac_arg"
2374   rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376   (eval $ac_compile) 2>conftest.er1
2377   ac_status=$?
2378   grep -v '^ *+' conftest.er1 >conftest.err
2379   rm -f conftest.er1
2380   cat conftest.err >&5
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); } &&
2383          { ac_try='test -z "$ac_c_werror_flag"
2384                          || test ! -s conftest.err'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392   (eval $ac_try) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; }; then
2396   ac_cv_prog_cc_stdc=$ac_arg
2397 break
2398 else
2399   echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 fi
2403 rm -f conftest.err conftest.$ac_objext
2404 done
2405 rm -f conftest.$ac_ext conftest.$ac_objext
2406 CC=$ac_save_CC
2407
2408 fi
2409
2410 case "x$ac_cv_prog_cc_stdc" in
2411   x|xno)
2412     echo "$as_me:$LINENO: result: none needed" >&5
2413 echo "${ECHO_T}none needed" >&6 ;;
2414   *)
2415     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2417     CC="$CC $ac_cv_prog_cc_stdc" ;;
2418 esac
2419
2420 # Some people use a C++ compiler to compile C.  Since we use `exit',
2421 # in C++ we need to declare it.  In case someone uses the same compiler
2422 # for both compiling C and C++ we need to have the C++ compiler decide
2423 # the declaration of exit, since it's the most demanding environment.
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #ifndef __cplusplus
2426   choke me
2427 #endif
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431   (eval $ac_compile) 2>conftest.er1
2432   ac_status=$?
2433   grep -v '^ *+' conftest.er1 >conftest.err
2434   rm -f conftest.er1
2435   cat conftest.err >&5
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -z "$ac_c_werror_flag"
2439                          || test ! -s conftest.err'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; } &&
2445          { ac_try='test -s conftest.$ac_objext'
2446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447   (eval $ac_try) 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; }; then
2451   for ac_declaration in \
2452    '' \
2453    'extern "C" void std::exit (int) throw (); using std::exit;' \
2454    'extern "C" void std::exit (int); using std::exit;' \
2455    'extern "C" void exit (int) throw ();' \
2456    'extern "C" void exit (int);' \
2457    'void exit (int);'
2458 do
2459   cat >conftest.$ac_ext <<_ACEOF
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465 $ac_declaration
2466 #include <stdlib.h>
2467 int
2468 main ()
2469 {
2470 exit (42);
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477   (eval $ac_compile) 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -z "$ac_c_werror_flag"
2485                          || test ! -s conftest.err'
2486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487   (eval $ac_try) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; } &&
2491          { ac_try='test -s conftest.$ac_objext'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   :
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 continue
2503 fi
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505   cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511 $ac_declaration
2512 int
2513 main ()
2514 {
2515 exit (42);
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag"
2530                          || test ! -s conftest.err'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   break
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 fi
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549 done
2550 rm -f conftest*
2551 if test -n "$ac_declaration"; then
2552   echo '#ifdef __cplusplus' >>confdefs.h
2553   echo $ac_declaration      >>confdefs.h
2554   echo '#endif'             >>confdefs.h
2555 fi
2556
2557 else
2558   echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561 fi
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569 ac_ext=cc
2570 ac_cpp='$CXXCPP $CPPFLAGS'
2571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2576   do
2577     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$CXX"; then
2585   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   for ac_exec_ext in '' $ac_executable_extensions; do
2593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600
2601 fi
2602 fi
2603 CXX=$glibcxx_cv_prog_CXX
2604 if test -n "$CXX"; then
2605   echo "$as_me:$LINENO: result: $CXX" >&5
2606 echo "${ECHO_T}$CXX" >&6
2607 else
2608   echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2610 fi
2611
2612     test -n "$CXX" && break
2613   done
2614 fi
2615 if test -z "$CXX"; then
2616   ac_ct_CXX=$CXX
2617   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2618 do
2619   # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624   echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626   if test -n "$ac_ct_CXX"; then
2627   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634   for ac_exec_ext in '' $ac_executable_extensions; do
2635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636     ac_cv_prog_ac_ct_CXX="$ac_prog"
2637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638     break 2
2639   fi
2640 done
2641 done
2642
2643 fi
2644 fi
2645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646 if test -n "$ac_ct_CXX"; then
2647   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 echo "${ECHO_T}$ac_ct_CXX" >&6
2649 else
2650   echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2652 fi
2653
2654   test -n "$ac_ct_CXX" && break
2655 done
2656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2657
2658   CXX=$ac_ct_CXX
2659 fi
2660
2661
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO:" \
2664      "checking for C++ compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667   (eval $ac_compiler --version </dev/null >&5) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672   (eval $ac_compiler -v </dev/null >&5) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677   (eval $ac_compiler -V </dev/null >&5) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }
2681
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h.  */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h.  */
2693
2694 int
2695 main ()
2696 {
2697 #ifndef __GNUC__
2698        choke me
2699 #endif
2700
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707   (eval $ac_compile) 2>conftest.er1
2708   ac_status=$?
2709   grep -v '^ *+' conftest.er1 >conftest.err
2710   rm -f conftest.er1
2711   cat conftest.err >&5
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); } &&
2714          { ac_try='test -z "$ac_cxx_werror_flag"
2715                          || test ! -s conftest.err'
2716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717   (eval $ac_try) 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723   (eval $ac_try) 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; }; then
2727   ac_compiler_gnu=yes
2728 else
2729   echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 ac_compiler_gnu=no
2733 fi
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2736
2737 fi
2738 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2740 GXX=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CXXFLAGS=${CXXFLAGS+set}
2742 ac_save_CXXFLAGS=$CXXFLAGS
2743 CXXFLAGS="-g"
2744 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2746 if test "${ac_cv_prog_cxx_g+set}" = set; then
2747   echo $ECHO_N "(cached) $ECHO_C" >&6
2748 else
2749   cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755
2756 int
2757 main ()
2758 {
2759
2760   ;
2761   return 0;
2762 }
2763 _ACEOF
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766   (eval $ac_compile) 2>conftest.er1
2767   ac_status=$?
2768   grep -v '^ *+' conftest.er1 >conftest.err
2769   rm -f conftest.er1
2770   cat conftest.err >&5
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); } &&
2773          { ac_try='test -z "$ac_cxx_werror_flag"
2774                          || test ! -s conftest.err'
2775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776   (eval $ac_try) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); }; } &&
2780          { ac_try='test -s conftest.$ac_objext'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; }; then
2786   ac_cv_prog_cxx_g=yes
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 ac_cv_prog_cxx_g=no
2792 fi
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 fi
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2797 if test "$ac_test_CXXFLAGS" = set; then
2798   CXXFLAGS=$ac_save_CXXFLAGS
2799 elif test $ac_cv_prog_cxx_g = yes; then
2800   if test "$GXX" = yes; then
2801     CXXFLAGS="-g -O2"
2802   else
2803     CXXFLAGS="-g"
2804   fi
2805 else
2806   if test "$GXX" = yes; then
2807     CXXFLAGS="-O2"
2808   else
2809     CXXFLAGS=
2810   fi
2811 fi
2812 for ac_declaration in \
2813    '' \
2814    'extern "C" void std::exit (int) throw (); using std::exit;' \
2815    'extern "C" void std::exit (int); using std::exit;' \
2816    'extern "C" void exit (int) throw ();' \
2817    'extern "C" void exit (int);' \
2818    'void exit (int);'
2819 do
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 $ac_declaration
2827 #include <stdlib.h>
2828 int
2829 main ()
2830 {
2831 exit (42);
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -z "$ac_cxx_werror_flag"
2846                          || test ! -s conftest.err'
2847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; } &&
2852          { ac_try='test -s conftest.$ac_objext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   :
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 continue
2864 fi
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866   cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h.  */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h.  */
2872 $ac_declaration
2873 int
2874 main ()
2875 {
2876 exit (42);
2877   ;
2878   return 0;
2879 }
2880 _ACEOF
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883   (eval $ac_compile) 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } &&
2890          { ac_try='test -z "$ac_cxx_werror_flag"
2891                          || test ! -s conftest.err'
2892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893   (eval $ac_try) 2>&5
2894   ac_status=$?
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); }; } &&
2897          { ac_try='test -s conftest.$ac_objext'
2898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899   (eval $ac_try) 2>&5
2900   ac_status=$?
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); }; }; then
2903   break
2904 else
2905   echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2907
2908 fi
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2910 done
2911 rm -f conftest*
2912 if test -n "$ac_declaration"; then
2913   echo '#ifdef __cplusplus' >>confdefs.h
2914   echo $ac_declaration      >>confdefs.h
2915   echo '#endif'             >>confdefs.h
2916 fi
2917
2918 ac_ext=c
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923
2924 CXXFLAGS="$save_CXXFLAGS"
2925
2926
2927
2928
2929
2930 am__api_version="1.9"
2931 # Find a good install program.  We prefer a C program (faster),
2932 # so one script is as good as another.  But avoid the broken or
2933 # incompatible versions:
2934 # SysV /etc/install, /usr/sbin/install
2935 # SunOS /usr/etc/install
2936 # IRIX /sbin/install
2937 # AIX /bin/install
2938 # AmigaOS /C/install, which installs bootblocks on floppy discs
2939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2942 # OS/2's system install, which has a completely different semantic
2943 # ./install, which can be erroneously created by make from ./install.sh.
2944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2946 if test -z "$INSTALL"; then
2947 if test "${ac_cv_path_install+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955   # Account for people who put trailing slashes in PATH elements.
2956 case $as_dir/ in
2957   ./ | .// | /cC/* | \
2958   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2960   /usr/ucb/* ) ;;
2961   *)
2962     # OSF1 and SCO ODT 3.0 have their own names for install.
2963     # Don't use installbsd from OSF since it installs stuff as root
2964     # by default.
2965     for ac_prog in ginstall scoinst install; do
2966       for ac_exec_ext in '' $ac_executable_extensions; do
2967         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2968           if test $ac_prog = install &&
2969             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970             # AIX install.  It has an incompatible calling convention.
2971             :
2972           elif test $ac_prog = install &&
2973             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974             # program-specific install script used by HP pwplus--don't use.
2975             :
2976           else
2977             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2978             break 3
2979           fi
2980         fi
2981       done
2982     done
2983     ;;
2984 esac
2985 done
2986
2987
2988 fi
2989   if test "${ac_cv_path_install+set}" = set; then
2990     INSTALL=$ac_cv_path_install
2991   else
2992     # As a last resort, use the slow shell script.  We don't cache a
2993     # path for INSTALL within a source directory, because that will
2994     # break other packages using the cache if that directory is
2995     # removed, or if the path is relative.
2996     INSTALL=$ac_install_sh
2997   fi
2998 fi
2999 echo "$as_me:$LINENO: result: $INSTALL" >&5
3000 echo "${ECHO_T}$INSTALL" >&6
3001
3002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3003 # It thinks the first close brace ends the variable substitution.
3004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3005
3006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3007
3008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3009
3010 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3011 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3012 # Just in case
3013 sleep 1
3014 echo timestamp > conftest.file
3015 # Do `set' in a subshell so we don't clobber the current shell's
3016 # arguments.  Must try -L first in case configure is actually a
3017 # symlink; some systems play weird games with the mod time of symlinks
3018 # (eg FreeBSD returns the mod time of the symlink's containing
3019 # directory).
3020 if (
3021    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3022    if test "$*" = "X"; then
3023       # -L didn't work.
3024       set X `ls -t $srcdir/configure conftest.file`
3025    fi
3026    rm -f conftest.file
3027    if test "$*" != "X $srcdir/configure conftest.file" \
3028       && test "$*" != "X conftest.file $srcdir/configure"; then
3029
3030       # If neither matched, then we have a broken ls.  This can happen
3031       # if, for instance, CONFIG_SHELL is bash and it inherits a
3032       # broken ls alias from the environment.  This has actually
3033       # happened.  Such a system could not be considered "sane".
3034       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3035 alias in your environment" >&5
3036 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3037 alias in your environment" >&2;}
3038    { (exit 1); exit 1; }; }
3039    fi
3040
3041    test "$2" = conftest.file
3042    )
3043 then
3044    # Ok.
3045    :
3046 else
3047    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3048 Check your system clock" >&5
3049 echo "$as_me: error: newly created file is older than distributed files!
3050 Check your system clock" >&2;}
3051    { (exit 1); exit 1; }; }
3052 fi
3053 echo "$as_me:$LINENO: result: yes" >&5
3054 echo "${ECHO_T}yes" >&6
3055 test "$program_prefix" != NONE &&
3056   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3057 # Use a double $ so make ignores it.
3058 test "$program_suffix" != NONE &&
3059   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3060 # Double any \ or $.  echo might interpret backslashes.
3061 # By default was `s,x,x', remove it if useless.
3062 cat <<\_ACEOF >conftest.sed
3063 s/[\\$]/&&/g;s/;s,x,x,$//
3064 _ACEOF
3065 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3066 rm conftest.sed
3067
3068 # expand $ac_aux_dir to an absolute path
3069 am_aux_dir=`cd $ac_aux_dir && pwd`
3070
3071 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3072 # Use eval to expand $SHELL
3073 if eval "$MISSING --run true"; then
3074   am_missing_run="$MISSING --run "
3075 else
3076   am_missing_run=
3077   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3078 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3079 fi
3080
3081 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3082   # We used to keeping the `.' as first argument, in order to
3083   # allow $(mkdir_p) to be used without argument.  As in
3084   #   $(mkdir_p) $(somedir)
3085   # where $(somedir) is conditionally defined.  However this is wrong
3086   # for two reasons:
3087   #  1. if the package is installed by a user who cannot write `.'
3088   #     make install will fail,
3089   #  2. the above comment should most certainly read
3090   #     $(mkdir_p) $(DESTDIR)$(somedir)
3091   #     so it does not work when $(somedir) is undefined and
3092   #     $(DESTDIR) is not.
3093   #  To support the latter case, we have to write
3094   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3095   #  so the `.' trick is pointless.
3096   mkdir_p='mkdir -p --'
3097 else
3098   # On NextStep and OpenStep, the `mkdir' command does not
3099   # recognize any option.  It will interpret all options as
3100   # directories to create, and then abort because `.' already
3101   # exists.
3102   for d in ./-p ./--version;
3103   do
3104     test -d $d && rmdir $d
3105   done
3106   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3107   if test -f "$ac_aux_dir/mkinstalldirs"; then
3108     mkdir_p='$(mkinstalldirs)'
3109   else
3110     mkdir_p='$(install_sh) -d'
3111   fi
3112 fi
3113
3114 for ac_prog in gawk mawk nawk awk
3115 do
3116   # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_AWK+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   if test -n "$AWK"; then
3124   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129   IFS=$as_save_IFS
3130   test -z "$as_dir" && as_dir=.
3131   for ac_exec_ext in '' $ac_executable_extensions; do
3132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133     ac_cv_prog_AWK="$ac_prog"
3134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3135     break 2
3136   fi
3137 done
3138 done
3139
3140 fi
3141 fi
3142 AWK=$ac_cv_prog_AWK
3143 if test -n "$AWK"; then
3144   echo "$as_me:$LINENO: result: $AWK" >&5
3145 echo "${ECHO_T}$AWK" >&6
3146 else
3147   echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149 fi
3150
3151   test -n "$AWK" && break
3152 done
3153
3154 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3155 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3156 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3157 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3158   echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160   cat >conftest.make <<\_ACEOF
3161 all:
3162         @echo 'ac_maketemp="$(MAKE)"'
3163 _ACEOF
3164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3165 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3166 if test -n "$ac_maketemp"; then
3167   eval ac_cv_prog_make_${ac_make}_set=yes
3168 else
3169   eval ac_cv_prog_make_${ac_make}_set=no
3170 fi
3171 rm -f conftest.make
3172 fi
3173 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3174   echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6
3176   SET_MAKE=
3177 else
3178   echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180   SET_MAKE="MAKE=${MAKE-make}"
3181 fi
3182
3183 rm -rf .tst 2>/dev/null
3184 mkdir .tst 2>/dev/null
3185 if test -d .tst; then
3186   am__leading_dot=.
3187 else
3188   am__leading_dot=_
3189 fi
3190 rmdir .tst 2>/dev/null
3191
3192 DEPDIR="${am__leading_dot}deps"
3193
3194           ac_config_commands="$ac_config_commands depfiles"
3195
3196
3197 am_make=${MAKE-make}
3198 cat > confinc << 'END'
3199 am__doit:
3200         @echo done
3201 .PHONY: am__doit
3202 END
3203 # If we don't find an include directive, just comment out the code.
3204 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3205 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3206 am__include="#"
3207 am__quote=
3208 _am_result=none
3209 # First try GNU make style include.
3210 echo "include confinc" > confmf
3211 # We grep out `Entering directory' and `Leaving directory'
3212 # messages which can occur if `w' ends up in MAKEFLAGS.
3213 # In particular we don't look at `^make:' because GNU make might
3214 # be invoked under some other name (usually "gmake"), in which
3215 # case it prints its new name instead of `make'.
3216 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3217    am__include=include
3218    am__quote=
3219    _am_result=GNU
3220 fi
3221 # Now try BSD make style include.
3222 if test "$am__include" = "#"; then
3223    echo '.include "confinc"' > confmf
3224    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3225       am__include=.include
3226       am__quote="\""
3227       _am_result=BSD
3228    fi
3229 fi
3230
3231
3232 echo "$as_me:$LINENO: result: $_am_result" >&5
3233 echo "${ECHO_T}$_am_result" >&6
3234 rm -f confinc confmf
3235
3236 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3237 if test "${enable_dependency_tracking+set}" = set; then
3238   enableval="$enable_dependency_tracking"
3239
3240 fi;
3241 if test "x$enable_dependency_tracking" != xno; then
3242   am_depcomp="$ac_aux_dir/depcomp"
3243   AMDEPBACKSLASH='\'
3244 fi
3245
3246
3247 if test "x$enable_dependency_tracking" != xno; then
3248   AMDEP_TRUE=
3249   AMDEP_FALSE='#'
3250 else
3251   AMDEP_TRUE='#'
3252   AMDEP_FALSE=
3253 fi
3254
3255
3256
3257 # test to see if srcdir already configured
3258 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3259    test -f $srcdir/config.status; then
3260   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3262    { (exit 1); exit 1; }; }
3263 fi
3264
3265 # test whether we have cygpath
3266 if test -z "$CYGPATH_W"; then
3267   if (cygpath --version) >/dev/null 2>/dev/null; then
3268     CYGPATH_W='cygpath -w'
3269   else
3270     CYGPATH_W=echo
3271   fi
3272 fi
3273
3274
3275 # Define the identity of the package.
3276  PACKAGE='libjava'
3277  VERSION='version-unused'
3278
3279
3280 cat >>confdefs.h <<_ACEOF
3281 #define PACKAGE "$PACKAGE"
3282 _ACEOF
3283
3284
3285 cat >>confdefs.h <<_ACEOF
3286 #define VERSION "$VERSION"
3287 _ACEOF
3288
3289 # Some tools Automake needs.
3290
3291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3292
3293
3294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3295
3296
3297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3298
3299
3300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3301
3302
3303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3304
3305 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3306
3307 # Installed binaries are usually stripped using `strip' when the user
3308 # run `make install-strip'.  However `strip' might not be the right
3309 # tool to use in cross-compilation environments, therefore Automake
3310 # will honor the `STRIP' environment variable to overrule this program.
3311 if test "$cross_compiling" != no; then
3312   if test -n "$ac_tool_prefix"; then
3313   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}strip; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_STRIP+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   if test -n "$STRIP"; then
3321   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328   for ac_exec_ext in '' $ac_executable_extensions; do
3329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335 done
3336
3337 fi
3338 fi
3339 STRIP=$ac_cv_prog_STRIP
3340 if test -n "$STRIP"; then
3341   echo "$as_me:$LINENO: result: $STRIP" >&5
3342 echo "${ECHO_T}$STRIP" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 fi
3349 if test -z "$ac_cv_prog_STRIP"; then
3350   ac_ct_STRIP=$STRIP
3351   # Extract the first word of "strip", so it can be a program name with args.
3352 set dummy strip; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   if test -n "$ac_ct_STRIP"; then
3359   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366   for ac_exec_ext in '' $ac_executable_extensions; do
3367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_ac_ct_STRIP="strip"
3369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373 done
3374
3375   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3376 fi
3377 fi
3378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3379 if test -n "$ac_ct_STRIP"; then
3380   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3381 echo "${ECHO_T}$ac_ct_STRIP" >&6
3382 else
3383   echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3385 fi
3386
3387   STRIP=$ac_ct_STRIP
3388 else
3389   STRIP="$ac_cv_prog_STRIP"
3390 fi
3391
3392 fi
3393 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3394
3395 # We need awk for the "check" target.  The system "awk" is bad on
3396 # some platforms.
3397 # Always define AMTAR for backward compatibility.
3398
3399 AMTAR=${AMTAR-"${am_missing_run}tar"}
3400
3401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3402
3403
3404
3405
3406 depcc="$CC"   am_compiler_list=
3407
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411   echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414   # We make a subdir and do the tests there.  Otherwise we can end up
3415   # making bogus files that we don't know about and never remove.  For
3416   # instance it was reported that on HP-UX the gcc test will end up
3417   # making a dummy file named `D' -- because `-MD' means `put the output
3418   # in D'.
3419   mkdir conftest.dir
3420   # Copy depcomp to subdir because otherwise we won't find it if we're
3421   # using a relative directory.
3422   cp "$am_depcomp" conftest.dir
3423   cd conftest.dir
3424   # We will build objects and dependencies in a subdirectory because
3425   # it helps to detect inapplicable dependency modes.  For instance
3426   # both Tru64's cc and ICC support -MD to output dependencies as a
3427   # side effect of compilation, but ICC will put the dependencies in
3428   # the current directory while Tru64 will put them in the object
3429   # directory.
3430   mkdir sub
3431
3432   am_cv_CC_dependencies_compiler_type=none
3433   if test "$am_compiler_list" = ""; then
3434      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3435   fi
3436   for depmode in $am_compiler_list; do
3437     # Setup a source with many dependencies, because some compilers
3438     # like to wrap large dependency lists on column 80 (with \), and
3439     # we should not choose a depcomp mode which is confused by this.
3440     #
3441     # We need to recreate these files for each test, as the compiler may
3442     # overwrite some of them when testing with obscure command lines.
3443     # This happens at least with the AIX C compiler.
3444     : > sub/conftest.c
3445     for i in 1 2 3 4 5 6; do
3446       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448       # Solaris 8's {/usr,}/bin/sh.
3449       touch sub/conftst$i.h
3450     done
3451     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3452
3453     case $depmode in
3454     nosideeffect)
3455       # after this tag, mechanisms are not by side-effect, so they'll
3456       # only be used when explicitly requested
3457       if test "x$enable_dependency_tracking" = xyes; then
3458         continue
3459       else
3460         break
3461       fi
3462       ;;
3463     none) break ;;
3464     esac
3465     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466     # mode.  It turns out that the SunPro C++ compiler does not properly
3467     # handle `-M -o', and we need to detect this.
3468     if depmode=$depmode \
3469        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472          >/dev/null 2>conftest.err &&
3473        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476       # icc doesn't choke on unknown options, it will just issue warnings
3477       # or remarks (even with -Werror).  So we grep stderr for any message
3478       # that says an option was ignored or not supported.
3479       # When given -MP, icc 7.0 and 7.1 complain thusly:
3480       #   icc: Command line warning: ignoring option '-M'; no argument required
3481       # The diagnosis changed in icc 8.0:
3482       #   icc: Command line remark: option '-MP' not supported
3483       if (grep 'ignoring option' conftest.err ||
3484           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485         am_cv_CC_dependencies_compiler_type=$depmode
3486         break
3487       fi
3488     fi
3489   done
3490
3491   cd ..
3492   rm -rf conftest.dir
3493 else
3494   am_cv_CC_dependencies_compiler_type=none
3495 fi
3496
3497 fi
3498 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3501
3502
3503
3504 if
3505   test "x$enable_dependency_tracking" != xno \
3506   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3507   am__fastdepCC_TRUE=
3508   am__fastdepCC_FALSE='#'
3509 else
3510   am__fastdepCC_TRUE='#'
3511   am__fastdepCC_FALSE=
3512 fi
3513
3514
3515 depcc="$CXX"  am_compiler_list=
3516
3517 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3518 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3519 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523   # We make a subdir and do the tests there.  Otherwise we can end up
3524   # making bogus files that we don't know about and never remove.  For
3525   # instance it was reported that on HP-UX the gcc test will end up
3526   # making a dummy file named `D' -- because `-MD' means `put the output
3527   # in D'.
3528   mkdir conftest.dir
3529   # Copy depcomp to subdir because otherwise we won't find it if we're
3530   # using a relative directory.
3531   cp "$am_depcomp" conftest.dir
3532   cd conftest.dir
3533   # We will build objects and dependencies in a subdirectory because
3534   # it helps to detect inapplicable dependency modes.  For instance
3535   # both Tru64's cc and ICC support -MD to output dependencies as a
3536   # side effect of compilation, but ICC will put the dependencies in
3537   # the current directory while Tru64 will put them in the object
3538   # directory.
3539   mkdir sub
3540
3541   am_cv_CXX_dependencies_compiler_type=none
3542   if test "$am_compiler_list" = ""; then
3543      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3544   fi
3545   for depmode in $am_compiler_list; do
3546     # Setup a source with many dependencies, because some compilers
3547     # like to wrap large dependency lists on column 80 (with \), and
3548     # we should not choose a depcomp mode which is confused by this.
3549     #
3550     # We need to recreate these files for each test, as the compiler may
3551     # overwrite some of them when testing with obscure command lines.
3552     # This happens at least with the AIX C compiler.
3553     : > sub/conftest.c
3554     for i in 1 2 3 4 5 6; do
3555       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3556       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3557       # Solaris 8's {/usr,}/bin/sh.
3558       touch sub/conftst$i.h
3559     done
3560     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3561
3562     case $depmode in
3563     nosideeffect)
3564       # after this tag, mechanisms are not by side-effect, so they'll
3565       # only be used when explicitly requested
3566       if test "x$enable_dependency_tracking" = xyes; then
3567         continue
3568       else
3569         break
3570       fi
3571       ;;
3572     none) break ;;
3573     esac
3574     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575     # mode.  It turns out that the SunPro C++ compiler does not properly
3576     # handle `-M -o', and we need to detect this.
3577     if depmode=$depmode \
3578        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3579        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3580        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3581          >/dev/null 2>conftest.err &&
3582        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585       # icc doesn't choke on unknown options, it will just issue warnings
3586       # or remarks (even with -Werror).  So we grep stderr for any message
3587       # that says an option was ignored or not supported.
3588       # When given -MP, icc 7.0 and 7.1 complain thusly:
3589       #   icc: Command line warning: ignoring option '-M'; no argument required
3590       # The diagnosis changed in icc 8.0:
3591       #   icc: Command line remark: option '-MP' not supported
3592       if (grep 'ignoring option' conftest.err ||
3593           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3594         am_cv_CXX_dependencies_compiler_type=$depmode
3595         break
3596       fi
3597     fi
3598   done
3599
3600   cd ..
3601   rm -rf conftest.dir
3602 else
3603   am_cv_CXX_dependencies_compiler_type=none
3604 fi
3605
3606 fi
3607 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3608 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3609 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3610
3611
3612
3613 if
3614   test "x$enable_dependency_tracking" != xno \
3615   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3616   am__fastdepCXX_TRUE=
3617   am__fastdepCXX_FALSE='#'
3618 else
3619   am__fastdepCXX_TRUE='#'
3620   am__fastdepCXX_FALSE=
3621 fi
3622
3623
3624
3625
3626 if test -n "$ac_tool_prefix"; then
3627   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}as; ac_word=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_prog_AS+set}" = set; then
3632   echo $ECHO_N "(cached) $ECHO_C" >&6
3633 else
3634   if test -n "$AS"; then
3635   ac_cv_prog_AS="$AS" # Let the user override the test.
3636 else
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 for as_dir in $PATH
3639 do
3640   IFS=$as_save_IFS
3641   test -z "$as_dir" && as_dir=.
3642   for ac_exec_ext in '' $ac_executable_extensions; do
3643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644     ac_cv_prog_AS="${ac_tool_prefix}as"
3645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3646     break 2
3647   fi
3648 done
3649 done
3650
3651 fi
3652 fi
3653 AS=$ac_cv_prog_AS
3654 if test -n "$AS"; then
3655   echo "$as_me:$LINENO: result: $AS" >&5
3656 echo "${ECHO_T}$AS" >&6
3657 else
3658   echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3660 fi
3661
3662 fi
3663 if test -z "$ac_cv_prog_AS"; then
3664   ac_ct_AS=$AS
3665   # Extract the first word of "as", so it can be a program name with args.
3666 set dummy as; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   if test -n "$ac_ct_AS"; then
3673   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_exec_ext in '' $ac_executable_extensions; do
3681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682     ac_cv_prog_ac_ct_AS="as"
3683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687 done
3688
3689 fi
3690 fi
3691 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3692 if test -n "$ac_ct_AS"; then
3693   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3694 echo "${ECHO_T}$ac_ct_AS" >&6
3695 else
3696   echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3698 fi
3699
3700   AS=$ac_ct_AS
3701 else
3702   AS="$ac_cv_prog_AS"
3703 fi
3704
3705 if test -n "$ac_tool_prefix"; then
3706   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3707 set dummy ${ac_tool_prefix}ar; ac_word=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_prog_AR+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   if test -n "$AR"; then
3714   ac_cv_prog_AR="$AR" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723     ac_cv_prog_AR="${ac_tool_prefix}ar"
3724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728 done
3729
3730 fi
3731 fi
3732 AR=$ac_cv_prog_AR
3733 if test -n "$AR"; then
3734   echo "$as_me:$LINENO: result: $AR" >&5
3735 echo "${ECHO_T}$AR" >&6
3736 else
3737   echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3739 fi
3740
3741 fi
3742 if test -z "$ac_cv_prog_AR"; then
3743   ac_ct_AR=$AR
3744   # Extract the first word of "ar", so it can be a program name with args.
3745 set dummy ar; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   if test -n "$ac_ct_AR"; then
3752   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3756 do
3757   IFS=$as_save_IFS
3758   test -z "$as_dir" && as_dir=.
3759   for ac_exec_ext in '' $ac_executable_extensions; do
3760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761     ac_cv_prog_ac_ct_AR="ar"
3762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763     break 2
3764   fi
3765 done
3766 done
3767
3768 fi
3769 fi
3770 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3771 if test -n "$ac_ct_AR"; then
3772   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3773 echo "${ECHO_T}$ac_ct_AR" >&6
3774 else
3775   echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3777 fi
3778
3779   AR=$ac_ct_AR
3780 else
3781   AR="$ac_cv_prog_AR"
3782 fi
3783
3784 if test -n "$ac_tool_prefix"; then
3785   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_RANLIB+set}" = set; then
3790   echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792   if test -n "$RANLIB"; then
3793   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809 fi
3810 fi
3811 RANLIB=$ac_cv_prog_RANLIB
3812 if test -n "$RANLIB"; then
3813   echo "$as_me:$LINENO: result: $RANLIB" >&5
3814 echo "${ECHO_T}$RANLIB" >&6
3815 else
3816   echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820 fi
3821 if test -z "$ac_cv_prog_RANLIB"; then
3822   ac_ct_RANLIB=$RANLIB
3823   # Extract the first word of "ranlib", so it can be a program name with args.
3824 set dummy ranlib; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   if test -n "$ac_ct_RANLIB"; then
3831   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3832 else
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838   for ac_exec_ext in '' $ac_executable_extensions; do
3839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840     ac_cv_prog_ac_ct_RANLIB="ranlib"
3841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3842     break 2
3843   fi
3844 done
3845 done
3846
3847   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3848 fi
3849 fi
3850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851 if test -n "$ac_ct_RANLIB"; then
3852   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3854 else
3855   echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 fi
3858
3859   RANLIB=$ac_ct_RANLIB
3860 else
3861   RANLIB="$ac_cv_prog_RANLIB"
3862 fi
3863
3864
3865 # Find a good install program.  We prefer a C program (faster),
3866 # so one script is as good as another.  But avoid the broken or
3867 # incompatible versions:
3868 # SysV /etc/install, /usr/sbin/install
3869 # SunOS /usr/etc/install
3870 # IRIX /sbin/install
3871 # AIX /bin/install
3872 # AmigaOS /C/install, which installs bootblocks on floppy discs
3873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3876 # OS/2's system install, which has a completely different semantic
3877 # ./install, which can be erroneously created by make from ./install.sh.
3878 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3880 if test -z "$INSTALL"; then
3881 if test "${ac_cv_path_install+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3886 do
3887   IFS=$as_save_IFS
3888   test -z "$as_dir" && as_dir=.
3889   # Account for people who put trailing slashes in PATH elements.
3890 case $as_dir/ in
3891   ./ | .// | /cC/* | \
3892   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3893   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3894   /usr/ucb/* ) ;;
3895   *)
3896     # OSF1 and SCO ODT 3.0 have their own names for install.
3897     # Don't use installbsd from OSF since it installs stuff as root
3898     # by default.
3899     for ac_prog in ginstall scoinst install; do
3900       for ac_exec_ext in '' $ac_executable_extensions; do
3901         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3902           if test $ac_prog = install &&
3903             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3904             # AIX install.  It has an incompatible calling convention.
3905             :
3906           elif test $ac_prog = install &&
3907             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3908             # program-specific install script used by HP pwplus--don't use.
3909             :
3910           else
3911             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3912             break 3
3913           fi
3914         fi
3915       done
3916     done
3917     ;;
3918 esac
3919 done
3920
3921
3922 fi
3923   if test "${ac_cv_path_install+set}" = set; then
3924     INSTALL=$ac_cv_path_install
3925   else
3926     # As a last resort, use the slow shell script.  We don't cache a
3927     # path for INSTALL within a source directory, because that will
3928     # break other packages using the cache if that directory is
3929     # removed, or if the path is relative.
3930     INSTALL=$ac_install_sh
3931   fi
3932 fi
3933 echo "$as_me:$LINENO: result: $INSTALL" >&5
3934 echo "${ECHO_T}$INSTALL" >&6
3935
3936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3937 # It thinks the first close brace ends the variable substitution.
3938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3939
3940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3941
3942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3943
3944
3945 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3946 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3947     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3948 if test "${enable_maintainer_mode+set}" = set; then
3949   enableval="$enable_maintainer_mode"
3950   USE_MAINTAINER_MODE=$enableval
3951 else
3952   USE_MAINTAINER_MODE=no
3953 fi;
3954   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3955 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3956
3957
3958 if test $USE_MAINTAINER_MODE = yes; then
3959   MAINTAINER_MODE_TRUE=
3960   MAINTAINER_MODE_FALSE='#'
3961 else
3962   MAINTAINER_MODE_TRUE='#'
3963   MAINTAINER_MODE_FALSE=
3964 fi
3965
3966   MAINT=$MAINTAINER_MODE_TRUE
3967
3968
3969
3970
3971
3972 # configure.host sets the following important variables
3973 #       libgcj_cflags    - host specific C compiler flags
3974 #       libgcj_cxxflags  - host specific C++ compiler flags
3975 #       libgcj_javaflags - host specific Java compiler flags
3976
3977 libgcj_cflags=
3978 libgcj_cxxflags=
3979 libgcj_javaflags=
3980
3981 . ${srcdir}/configure.host
3982
3983 LIBGCJ_CFLAGS="${libgcj_cflags}"
3984 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3985 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3986 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
3987
3988
3989
3990
3991
3992                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3993
3994
3995 # Only use libltdl for non-newlib builds.
3996 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3997      case $enable_ltdl_convenience in
3998   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3999 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4000    { (exit 1); exit 1; }; } ;;
4001   "") enable_ltdl_convenience=yes
4002       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4003   esac
4004   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4005   INCLTDL='-I${top_srcdir}/''libltdl'
4006
4007
4008    DIRLTDL=libltdl
4009
4010 cat >>confdefs.h <<\_ACEOF
4011 #define USE_LTDL 1
4012 _ACEOF
4013
4014    # Sigh.  Libtool's macro doesn't do the right thing.
4015    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4016    # FIXME: this is a hack.
4017    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4018    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4019 fi
4020
4021
4022
4023 # Check whether --enable-shared or --disable-shared was given.
4024 if test "${enable_shared+set}" = set; then
4025   enableval="$enable_shared"
4026   p=${PACKAGE-default}
4027 case $enableval in
4028 yes) enable_shared=yes ;;
4029 no) enable_shared=no ;;
4030 *)
4031   enable_shared=no
4032   # Look at the argument we got.  We use all the common list separators.
4033   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4034   for pkg in $enableval; do
4035     if test "X$pkg" = "X$p"; then
4036       enable_shared=yes
4037     fi
4038   done
4039   IFS="$ac_save_ifs"
4040   ;;
4041 esac
4042 else
4043   enable_shared=yes
4044 fi;
4045 # Check whether --enable-static or --disable-static was given.
4046 if test "${enable_static+set}" = set; then
4047   enableval="$enable_static"
4048   p=${PACKAGE-default}
4049 case $enableval in
4050 yes) enable_static=yes ;;
4051 no) enable_static=no ;;
4052 *)
4053   enable_static=no
4054   # Look at the argument we got.  We use all the common list separators.
4055   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4056   for pkg in $enableval; do
4057     if test "X$pkg" = "X$p"; then
4058       enable_static=yes
4059     fi
4060   done
4061   IFS="$ac_save_ifs"
4062   ;;
4063 esac
4064 else
4065   enable_static=yes
4066 fi;
4067 # Check whether --enable-fast-install or --disable-fast-install was given.
4068 if test "${enable_fast_install+set}" = set; then
4069   enableval="$enable_fast_install"
4070   p=${PACKAGE-default}
4071 case $enableval in
4072 yes) enable_fast_install=yes ;;
4073 no) enable_fast_install=no ;;
4074 *)
4075   enable_fast_install=no
4076   # Look at the argument we got.  We use all the common list separators.
4077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4078   for pkg in $enableval; do
4079     if test "X$pkg" = "X$p"; then
4080       enable_fast_install=yes
4081     fi
4082   done
4083   IFS="$ac_save_ifs"
4084   ;;
4085 esac
4086 else
4087   enable_fast_install=yes
4088 fi;
4089
4090 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4091 if test "${with_gnu_ld+set}" = set; then
4092   withval="$with_gnu_ld"
4093   test "$withval" = no || with_gnu_ld=yes
4094 else
4095   with_gnu_ld=no
4096 fi;
4097 ac_prog=ld
4098 if test "$GCC" = yes; then
4099   # Check if gcc -print-prog-name=ld gives a path.
4100   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4101 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4102   case $host in
4103   *-*-mingw*)
4104     # gcc leaves a trailing carriage return which upsets mingw
4105     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4106   *)
4107     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4108   esac
4109   case $ac_prog in
4110     # Accept absolute paths.
4111     [\\/]* | [A-Za-z]:[\\/]*)
4112       re_direlt='/[^/][^/]*/\.\./'
4113       # Canonicalize the path of ld
4114       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4115       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4116         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4117       done
4118       test -z "$LD" && LD="$ac_prog"
4119       ;;
4120   "")
4121     # If it fails, then pretend we aren't using GCC.
4122     ac_prog=ld
4123     ;;
4124   *)
4125     # If it is relative, then search for the first ld in PATH.
4126     with_gnu_ld=unknown
4127     ;;
4128   esac
4129 elif test "$with_gnu_ld" = yes; then
4130   echo "$as_me:$LINENO: checking for GNU ld" >&5
4131 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4132 else
4133   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4134 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4135 fi
4136 if test "${lt_cv_path_LD+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   if test -z "$LD"; then
4140   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4141   for ac_dir in $PATH; do
4142     test -z "$ac_dir" && ac_dir=.
4143     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4144       lt_cv_path_LD="$ac_dir/$ac_prog"
4145       # Check to see if the program is GNU ld.  I'd rather use --version,
4146       # but apparently some GNU ld's only accept -v.
4147       # Break only if it was the GNU/non-GNU ld that we prefer.
4148       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4149         test "$with_gnu_ld" != no && break
4150       else
4151         test "$with_gnu_ld" != yes && break
4152       fi
4153     fi
4154   done
4155   IFS="$ac_save_ifs"
4156 else
4157   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4158 fi
4159 fi
4160
4161 LD="$lt_cv_path_LD"
4162 if test -n "$LD"; then
4163   echo "$as_me:$LINENO: result: $LD" >&5
4164 echo "${ECHO_T}$LD" >&6
4165 else
4166   echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6
4168 fi
4169 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4170 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4171    { (exit 1); exit 1; }; }
4172 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4173 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4174 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4175   echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4178 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4179   lt_cv_prog_gnu_ld=yes
4180 else
4181   lt_cv_prog_gnu_ld=no
4182 fi
4183 fi
4184 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4185 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4186 with_gnu_ld=$lt_cv_prog_gnu_ld
4187
4188
4189 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4190 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4191 if test "${lt_cv_ld_reload_flag+set}" = set; then
4192   echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194   lt_cv_ld_reload_flag='-r'
4195 fi
4196 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4197 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4198 reload_flag=$lt_cv_ld_reload_flag
4199 test -n "$reload_flag" && reload_flag=" $reload_flag"
4200
4201 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4202 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4203 if test "${lt_cv_path_NM+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   if test -n "$NM"; then
4207   # Let the user override the test.
4208   lt_cv_path_NM="$NM"
4209 else
4210   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4211   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4212     test -z "$ac_dir" && ac_dir=.
4213     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4214     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4215       # Check to see if the nm accepts a BSD-compat flag.
4216       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4217       #   nm: unknown option "B" ignored
4218       # Tru64's nm complains that /dev/null is an invalid object file
4219       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4220         lt_cv_path_NM="$tmp_nm -B"
4221         break
4222       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4223         lt_cv_path_NM="$tmp_nm -p"
4224         break
4225       else
4226         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4227         continue # so that we can try to find one that supports BSD flags
4228       fi
4229     fi
4230   done
4231   IFS="$ac_save_ifs"
4232   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4233 fi
4234 fi
4235
4236 NM="$lt_cv_path_NM"
4237 echo "$as_me:$LINENO: result: $NM" >&5
4238 echo "${ECHO_T}$NM" >&6
4239
4240 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4241 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4242 if test "${lt_cv_deplibs_check_method+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   lt_cv_file_magic_cmd='$MAGIC_CMD'
4246 lt_cv_file_magic_test_file=
4247 lt_cv_deplibs_check_method='unknown'
4248 # Need to set the preceding variable on all platforms that support
4249 # interlibrary dependencies.
4250 # 'none' -- dependencies not supported.
4251 # `unknown' -- same as none, but documents that we really don't know.
4252 # 'pass_all' -- all dependencies passed with no checks.
4253 # 'test_compile' -- check by making test program.
4254 # 'file_magic [regex]' -- check by looking for files in library path
4255 # which responds to the $file_magic_cmd with a given egrep regex.
4256 # If you have `file' or equivalent on your system and you're not sure
4257 # whether `pass_all' will *always* work, you probably want this one.
4258
4259 case $host_os in
4260 aix*)
4261   lt_cv_deplibs_check_method=pass_all
4262   ;;
4263
4264 beos*)
4265   lt_cv_deplibs_check_method=pass_all
4266   ;;
4267
4268 bsdi4*)
4269   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4270   lt_cv_file_magic_cmd='/usr/bin/file -L'
4271   lt_cv_file_magic_test_file=/shlib/libc.so
4272   ;;
4273
4274 cygwin* | mingw* |pw32*)
4275   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4276   lt_cv_file_magic_cmd='$OBJDUMP -f'
4277   ;;
4278
4279 darwin* | rhapsody*)
4280   # this will be overwritten by pass_all, but leave it in just in case
4281   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4282   lt_cv_file_magic_cmd='/usr/bin/file -L'
4283   case "$host_os" in
4284   rhapsody* | darwin1.012)
4285     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4286     ;;
4287   *) # Darwin 1.3 on
4288     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4289     ;;
4290   esac
4291   lt_cv_deplibs_check_method=pass_all
4292   ;;
4293
4294 freebsd* | kfreebsd*-gnu)
4295   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4296     case $host_cpu in
4297     i*86 )
4298       # Not sure whether the presence of OpenBSD here was a mistake.
4299       # Let's accept both of them until this is cleared up.
4300       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4301       lt_cv_file_magic_cmd=/usr/bin/file
4302       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4303       ;;
4304     esac
4305   else
4306     lt_cv_deplibs_check_method=pass_all
4307   fi
4308   ;;
4309
4310 gnu*)
4311   lt_cv_deplibs_check_method=pass_all
4312   ;;
4313
4314 hpux10.20*|hpux11*)
4315   case $host_cpu in
4316   hppa*)
4317     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4318     lt_cv_file_magic_cmd=/usr/bin/file
4319     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4320     ;;
4321   ia64*)
4322     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4323     lt_cv_file_magic_cmd=/usr/bin/file
4324     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4325     ;;
4326   esac
4327   ;;
4328
4329 irix5* | irix6*)
4330   case $host_os in
4331   irix5*)
4332     # this will be overridden with pass_all, but let us keep it just in case
4333     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4334     ;;
4335   *)
4336     case $LD in
4337     *-32|*"-32 ") libmagic=32-bit;;
4338     *-n32|*"-n32 ") libmagic=N32;;
4339     *-64|*"-64 ") libmagic=64-bit;;
4340     *) libmagic=never-match;;
4341     esac
4342     # this will be overridden with pass_all, but let us keep it just in case
4343     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4344     ;;
4345   esac
4346   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4347   lt_cv_deplibs_check_method=pass_all
4348   ;;
4349
4350 # This must be Linux ELF.
4351 linux-gnu*)
4352   lt_cv_deplibs_check_method=pass_all
4353   ;;
4354
4355 netbsd* | knetbsd*-gnu)
4356   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4357     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4358   else
4359     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4360   fi
4361   ;;
4362
4363 newsos6)
4364   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4365   lt_cv_file_magic_cmd=/usr/bin/file
4366   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4367   ;;
4368
4369 osf3* | osf4* | osf5*)
4370   # this will be overridden with pass_all, but let us keep it just in case
4371   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4372   lt_cv_file_magic_test_file=/shlib/libc.so
4373   lt_cv_deplibs_check_method=pass_all
4374   ;;
4375
4376 sco3.2v5*)
4377   lt_cv_deplibs_check_method=pass_all
4378   ;;
4379
4380 solaris*)
4381   lt_cv_deplibs_check_method=pass_all
4382   lt_cv_file_magic_test_file=/lib/libc.so
4383   ;;
4384
4385 sysv5uw[78]* | sysv4*uw2*)
4386   lt_cv_deplibs_check_method=pass_all
4387   ;;
4388
4389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4390   case $host_vendor in
4391   ncr)
4392     lt_cv_deplibs_check_method=pass_all
4393     ;;
4394   motorola)
4395     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]'
4396     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4397     ;;
4398   esac
4399   ;;
4400 esac
4401
4402 fi
4403 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4404 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4405 file_magic_cmd=$lt_cv_file_magic_cmd
4406 deplibs_check_method=$lt_cv_deplibs_check_method
4407
4408
4409
4410
4411 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4412
4413 # Only perform the check for file, if the check method requires it
4414 case $deplibs_check_method in
4415 file_magic*)
4416   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4417     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4418 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4419 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   case $MAGIC_CMD in
4423   /*)
4424   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4425   ;;
4426   ?:/*)
4427   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4428   ;;
4429   *)
4430   ac_save_MAGIC_CMD="$MAGIC_CMD"
4431   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4432   ac_dummy="/usr/bin:$PATH"
4433   for ac_dir in $ac_dummy; do
4434     test -z "$ac_dir" && ac_dir=.
4435     if test -f $ac_dir/${ac_tool_prefix}file; then
4436       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4437       if test -n "$file_magic_test_file"; then
4438         case $deplibs_check_method in
4439         "file_magic "*)
4440           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4441           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4442           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4443             egrep "$file_magic_regex" > /dev/null; then
4444             :
4445           else
4446             cat <<EOF 1>&2
4447
4448 *** Warning: the command libtool uses to detect shared libraries,
4449 *** $file_magic_cmd, produces output that libtool cannot recognize.
4450 *** The result is that libtool may fail to recognize shared libraries
4451 *** as such.  This will affect the creation of libtool libraries that
4452 *** depend on shared libraries, but programs linked with such libtool
4453 *** libraries will work regardless of this problem.  Nevertheless, you
4454 *** may want to report the problem to your system manager and/or to
4455 *** bug-libtool@gnu.org
4456
4457 EOF
4458           fi ;;
4459         esac
4460       fi
4461       break
4462     fi
4463   done
4464   IFS="$ac_save_ifs"
4465   MAGIC_CMD="$ac_save_MAGIC_CMD"
4466   ;;
4467 esac
4468 fi
4469
4470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4471 if test -n "$MAGIC_CMD"; then
4472   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4473 echo "${ECHO_T}$MAGIC_CMD" >&6
4474 else
4475   echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4477 fi
4478
4479 if test -z "$lt_cv_path_MAGIC_CMD"; then
4480   if test -n "$ac_tool_prefix"; then
4481     echo "$as_me:$LINENO: checking for file" >&5
4482 echo $ECHO_N "checking for file... $ECHO_C" >&6
4483 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4484   echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486   case $MAGIC_CMD in
4487   /*)
4488   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4489   ;;
4490   ?:/*)
4491   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4492   ;;
4493   *)
4494   ac_save_MAGIC_CMD="$MAGIC_CMD"
4495   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4496   ac_dummy="/usr/bin:$PATH"
4497   for ac_dir in $ac_dummy; do
4498     test -z "$ac_dir" && ac_dir=.
4499     if test -f $ac_dir/file; then
4500       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4501       if test -n "$file_magic_test_file"; then
4502         case $deplibs_check_method in
4503         "file_magic "*)
4504           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4505           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4506           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4507             egrep "$file_magic_regex" > /dev/null; then
4508             :
4509           else
4510             cat <<EOF 1>&2
4511
4512 *** Warning: the command libtool uses to detect shared libraries,
4513 *** $file_magic_cmd, produces output that libtool cannot recognize.
4514 *** The result is that libtool may fail to recognize shared libraries
4515 *** as such.  This will affect the creation of libtool libraries that
4516 *** depend on shared libraries, but programs linked with such libtool
4517 *** libraries will work regardless of this problem.  Nevertheless, you
4518 *** may want to report the problem to your system manager and/or to
4519 *** bug-libtool@gnu.org
4520
4521 EOF
4522           fi ;;
4523         esac
4524       fi
4525       break
4526     fi
4527   done
4528   IFS="$ac_save_ifs"
4529   MAGIC_CMD="$ac_save_MAGIC_CMD"
4530   ;;
4531 esac
4532 fi
4533
4534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4535 if test -n "$MAGIC_CMD"; then
4536   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4537 echo "${ECHO_T}$MAGIC_CMD" >&6
4538 else
4539   echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4541 fi
4542
4543   else
4544     MAGIC_CMD=:
4545   fi
4546 fi
4547
4548   fi
4549   ;;
4550 esac
4551
4552 if test -n "$ac_tool_prefix"; then
4553   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_prog_RANLIB+set}" = set; then
4558   echo $ECHO_N "(cached) $ECHO_C" >&6
4559 else
4560   if test -n "$RANLIB"; then
4561   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576
4577 fi
4578 fi
4579 RANLIB=$ac_cv_prog_RANLIB
4580 if test -n "$RANLIB"; then
4581   echo "$as_me:$LINENO: result: $RANLIB" >&5
4582 echo "${ECHO_T}$RANLIB" >&6
4583 else
4584   echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4586 fi
4587
4588 fi
4589 if test -z "$ac_cv_prog_RANLIB"; then
4590   ac_ct_RANLIB=$RANLIB
4591   # Extract the first word of "ranlib", so it can be a program name with args.
4592 set dummy ranlib; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4596   echo $ECHO_N "(cached) $ECHO_C" >&6
4597 else
4598   if test -n "$ac_ct_RANLIB"; then
4599   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4600 else
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606   for ac_exec_ext in '' $ac_executable_extensions; do
4607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608     ac_cv_prog_ac_ct_RANLIB="ranlib"
4609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613 done
4614
4615   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4616 fi
4617 fi
4618 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4619 if test -n "$ac_ct_RANLIB"; then
4620   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4621 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4622 else
4623   echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625 fi
4626
4627   RANLIB=$ac_ct_RANLIB
4628 else
4629   RANLIB="$ac_cv_prog_RANLIB"
4630 fi
4631
4632 if test -n "$ac_tool_prefix"; then
4633   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4634 set dummy ${ac_tool_prefix}strip; ac_word=$2
4635 echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637 if test "${ac_cv_prog_STRIP+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   if test -n "$STRIP"; then
4641   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646   IFS=$as_save_IFS
4647   test -z "$as_dir" && as_dir=.
4648   for ac_exec_ext in '' $ac_executable_extensions; do
4649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652     break 2
4653   fi
4654 done
4655 done
4656
4657 fi
4658 fi
4659 STRIP=$ac_cv_prog_STRIP
4660 if test -n "$STRIP"; then
4661   echo "$as_me:$LINENO: result: $STRIP" >&5
4662 echo "${ECHO_T}$STRIP" >&6
4663 else
4664   echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6
4666 fi
4667
4668 fi
4669 if test -z "$ac_cv_prog_STRIP"; then
4670   ac_ct_STRIP=$STRIP
4671   # Extract the first word of "strip", so it can be a program name with args.
4672 set dummy strip; ac_word=$2
4673 echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   if test -n "$ac_ct_STRIP"; then
4679   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686   for ac_exec_ext in '' $ac_executable_extensions; do
4687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688     ac_cv_prog_ac_ct_STRIP="strip"
4689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690     break 2
4691   fi
4692 done
4693 done
4694
4695   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4696 fi
4697 fi
4698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4699 if test -n "$ac_ct_STRIP"; then
4700   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4701 echo "${ECHO_T}$ac_ct_STRIP" >&6
4702 else
4703   echo "$as_me:$LINENO: result: no" >&5
4704 echo "${ECHO_T}no" >&6
4705 fi
4706
4707   STRIP=$ac_ct_STRIP
4708 else
4709   STRIP="$ac_cv_prog_STRIP"
4710 fi
4711
4712
4713 # Check for any special flags to pass to ltconfig.
4714 libtool_flags="--cache-file=$cache_file"
4715 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4716 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4717 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4718 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4719 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4720
4721
4722 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4723 if test "${enable_libtool_lock+set}" = set; then
4724   enableval="$enable_libtool_lock"
4725
4726 fi;
4727 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4728 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4729
4730
4731 # Check whether --with-pic or --without-pic was given.
4732 if test "${with_pic+set}" = set; then
4733   withval="$with_pic"
4734   pic_mode="$withval"
4735 else
4736   pic_mode=default
4737 fi;
4738 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4739 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4740
4741 # Some flags need to be propagated to the compiler or linker for good
4742 # libtool support.
4743 case $host in
4744 *-*-irix6*)
4745   # Find out which ABI we are using.
4746   echo '#line 4746 "configure"' > conftest.$ac_ext
4747   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748   (eval $ac_compile) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; then
4752    if test "$lt_cv_prog_gnu_ld" = yes; then
4753     case `/usr/bin/file conftest.$ac_objext` in
4754     *32-bit*)
4755       LD="${LD-ld} -melf32bsmip"
4756       ;;
4757     *N32*)
4758       LD="${LD-ld} -melf32bmipn32"
4759       ;;
4760     *64-bit*)
4761       LD="${LD-ld} -melf64bmip"
4762       ;;
4763     esac
4764    else
4765     case `/usr/bin/file conftest.$ac_objext` in
4766     *32-bit*)
4767       LD="${LD-ld} -32"
4768       ;;
4769     *N32*)
4770       LD="${LD-ld} -n32"
4771       ;;
4772     *64-bit*)
4773       LD="${LD-ld} -64"
4774       ;;
4775     esac
4776    fi
4777   fi
4778   rm -rf conftest*
4779   ;;
4780
4781 ia64-*-hpux*)
4782   # Find out which ABI we are using.
4783   echo 'int i;' > conftest.$ac_ext
4784   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785   (eval $ac_compile) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; then
4789     case "`/usr/bin/file conftest.o`" in
4790     *ELF-32*)
4791       HPUX_IA64_MODE="32"
4792       ;;
4793     *ELF-64*)
4794       HPUX_IA64_MODE="64"
4795       ;;
4796     esac
4797   fi
4798   rm -rf conftest*
4799   ;;
4800
4801 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4802   # Find out which ABI we are using.
4803   echo 'int i;' > conftest.$ac_ext
4804   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805   (eval $ac_compile) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; then
4809     case "`/usr/bin/file conftest.o`" in
4810     *32-bit*)
4811       case $host in
4812         x86_64-*linux*)
4813           LD="${LD-ld} -m elf_i386"
4814           ;;
4815         ppc64-*linux*|powerpc64-*linux*)
4816           LD="${LD-ld} -m elf32ppclinux"
4817           ;;
4818         s390x-*linux*)
4819           LD="${LD-ld} -m elf_s390"
4820           ;;
4821         sparc64-*linux*)
4822           LD="${LD-ld} -m elf32_sparc"
4823           ;;
4824       esac
4825       ;;
4826     *64-bit*)
4827       case $host in
4828         x86_64-*linux*)
4829           LD="${LD-ld} -m elf_x86_64"
4830           ;;
4831         ppc*-*linux*|powerpc*-*linux*)
4832           LD="${LD-ld} -m elf64ppc"
4833           ;;
4834         s390*-*linux*)
4835           LD="${LD-ld} -m elf64_s390"
4836           ;;
4837         sparc*-*linux*)
4838           LD="${LD-ld} -m elf64_sparc"
4839           ;;
4840       esac
4841       ;;
4842     esac
4843   fi
4844   rm -rf conftest*
4845   ;;
4846
4847 *-*-sco3.2v5*)
4848   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4849   SAVE_CFLAGS="$CFLAGS"
4850   CFLAGS="$CFLAGS -belf"
4851   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4852 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4853 if test "${lt_cv_cc_needs_belf+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856
4857
4858      ac_ext=c
4859 ac_cpp='$CPP $CPPFLAGS'
4860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4863
4864      if test x$gcc_no_link = xyes; then
4865   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4867    { (exit 1); exit 1; }; }
4868 fi
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h.  */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h.  */
4875
4876 int
4877 main ()
4878 {
4879
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886   (eval $ac_link) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } &&
4893          { ac_try='test -z "$ac_c_werror_flag"
4894                          || test ! -s conftest.err'
4895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896   (eval $ac_try) 2>&5
4897   ac_status=$?
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); }; } &&
4900          { ac_try='test -s conftest$ac_exeext'
4901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902   (eval $ac_try) 2>&5
4903   ac_status=$?
4904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905   (exit $ac_status); }; }; then
4906   lt_cv_cc_needs_belf=yes
4907 else
4908   echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4910
4911 lt_cv_cc_needs_belf=no
4912 fi
4913 rm -f conftest.err conftest.$ac_objext \
4914       conftest$ac_exeext conftest.$ac_ext
4915      ac_ext=c
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
4921 fi
4922 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4923 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4924   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4925     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4926     CFLAGS="$SAVE_CFLAGS"
4927   fi
4928   ;;
4929
4930
4931 esac
4932
4933
4934 # Save cache, so that ltconfig can load it
4935 cat >confcache <<\_ACEOF
4936 # This file is a shell script that caches the results of configure
4937 # tests run on this system so they can be shared between configure
4938 # scripts and configure runs, see configure's option --config-cache.
4939 # It is not useful on other systems.  If it contains results you don't
4940 # want to keep, you may remove or edit it.
4941 #
4942 # config.status only pays attention to the cache file if you give it
4943 # the --recheck option to rerun configure.
4944 #
4945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4947 # following values.
4948
4949 _ACEOF
4950
4951 # The following way of writing the cache mishandles newlines in values,
4952 # but we know of no workaround that is simple, portable, and efficient.
4953 # So, don't put newlines in cache variables' values.
4954 # Ultrix sh set writes to stderr and can't be redirected directly,
4955 # and sets the high bit in the cache file unless we assign to the vars.
4956 {
4957   (set) 2>&1 |
4958     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4959     *ac_space=\ *)
4960       # `set' does not quote correctly, so add quotes (double-quote
4961       # substitution turns \\\\ into \\, and sed turns \\ into \).
4962       sed -n \
4963         "s/'/'\\\\''/g;
4964           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4965       ;;
4966     *)
4967       # `set' quotes correctly as required by POSIX, so do not add quotes.
4968       sed -n \
4969         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4970       ;;
4971     esac;
4972 } |
4973   sed '
4974      t clear
4975      : clear
4976      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4977      t end
4978      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4979      : end' >>confcache
4980 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4981   if test -w $cache_file; then
4982     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4983     cat confcache >$cache_file
4984   else
4985     echo "not updating unwritable cache $cache_file"
4986   fi
4987 fi
4988 rm -f confcache
4989
4990 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4991 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4992 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4993 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4994 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4995 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4996 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4997 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4998 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4999 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5000 echo "$as_me: error: libtool configure failed" >&2;}
5001    { (exit 1); exit 1; }; }
5002
5003 # Reload cache, that may have been modified by ltconfig
5004 if test -r "$cache_file"; then
5005   # Some versions of bash will fail to source /dev/null (special
5006   # files actually), so we avoid doing that.
5007   if test -f "$cache_file"; then
5008     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5009 echo "$as_me: loading cache $cache_file" >&6;}
5010     case $cache_file in
5011       [\\/]* | ?:[\\/]* ) . $cache_file;;
5012       *)                      . ./$cache_file;;
5013     esac
5014   fi
5015 else
5016   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5017 echo "$as_me: creating cache $cache_file" >&6;}
5018   >$cache_file
5019 fi
5020
5021
5022 # This can be used to rebuild libtool when needed
5023 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5024
5025 # Always use our own libtool.
5026 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5027
5028 # Redirect the config.log output again, so that the ltconfig log is not
5029 # clobbered by the next message.
5030 exec 5>>./config.log
5031
5032 ac_ext=cc
5033 ac_cpp='$CXXCPP $CPPFLAGS'
5034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5037 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5038 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5039 if test -z "$CXXCPP"; then
5040   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043       # Double quotes because CXXCPP needs to be expanded
5044     for CXXCPP in "$CXX -E" "/lib/cpp"
5045     do
5046       ac_preproc_ok=false
5047 for ac_cxx_preproc_warn_flag in '' yes
5048 do
5049   # Use a header file that comes with gcc, so configuring glibc
5050   # with a fresh cross-compiler works.
5051   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052   # <limits.h> exists even on freestanding compilers.
5053   # On the NeXT, cc -E runs the code through the compiler's parser,
5054   # not just through cpp. "Syntax error" is here to catch this case.
5055   cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 #ifdef __STDC__
5062 # include <limits.h>
5063 #else
5064 # include <assert.h>
5065 #endif
5066                      Syntax error
5067 _ACEOF
5068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5070   ac_status=$?
5071   grep -v '^ *+' conftest.er1 >conftest.err
5072   rm -f conftest.er1
5073   cat conftest.err >&5
5074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075   (exit $ac_status); } >/dev/null; then
5076   if test -s conftest.err; then
5077     ac_cpp_err=$ac_cxx_preproc_warn_flag
5078     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5079   else
5080     ac_cpp_err=
5081   fi
5082 else
5083   ac_cpp_err=yes
5084 fi
5085 if test -z "$ac_cpp_err"; then
5086   :
5087 else
5088   echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091   # Broken: fails on valid input.
5092 continue
5093 fi
5094 rm -f conftest.err conftest.$ac_ext
5095
5096   # OK, works on sane cases.  Now check whether non-existent headers
5097   # can be detected and how.
5098   cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104 #include <ac_nonexistent.h>
5105 _ACEOF
5106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5108   ac_status=$?
5109   grep -v '^ *+' conftest.er1 >conftest.err
5110   rm -f conftest.er1
5111   cat conftest.err >&5
5112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113   (exit $ac_status); } >/dev/null; then
5114   if test -s conftest.err; then
5115     ac_cpp_err=$ac_cxx_preproc_warn_flag
5116     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5117   else
5118     ac_cpp_err=
5119   fi
5120 else
5121   ac_cpp_err=yes
5122 fi
5123 if test -z "$ac_cpp_err"; then
5124   # Broken: success on invalid input.
5125 continue
5126 else
5127   echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130   # Passes both tests.
5131 ac_preproc_ok=:
5132 break
5133 fi
5134 rm -f conftest.err conftest.$ac_ext
5135
5136 done
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then
5140   break
5141 fi
5142
5143     done
5144     ac_cv_prog_CXXCPP=$CXXCPP
5145
5146 fi
5147   CXXCPP=$ac_cv_prog_CXXCPP
5148 else
5149   ac_cv_prog_CXXCPP=$CXXCPP
5150 fi
5151 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5152 echo "${ECHO_T}$CXXCPP" >&6
5153 ac_preproc_ok=false
5154 for ac_cxx_preproc_warn_flag in '' yes
5155 do
5156   # Use a header file that comes with gcc, so configuring glibc
5157   # with a fresh cross-compiler works.
5158   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159   # <limits.h> exists even on freestanding compilers.
5160   # On the NeXT, cc -E runs the code through the compiler's parser,
5161   # not just through cpp. "Syntax error" is here to catch this case.
5162   cat >conftest.$ac_ext <<_ACEOF
5163 /* confdefs.h.  */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h.  */
5168 #ifdef __STDC__
5169 # include <limits.h>
5170 #else
5171 # include <assert.h>
5172 #endif
5173                      Syntax error
5174 _ACEOF
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } >/dev/null; then
5183   if test -s conftest.err; then
5184     ac_cpp_err=$ac_cxx_preproc_warn_flag
5185     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5186   else
5187     ac_cpp_err=
5188   fi
5189 else
5190   ac_cpp_err=yes
5191 fi
5192 if test -z "$ac_cpp_err"; then
5193   :
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198   # Broken: fails on valid input.
5199 continue
5200 fi
5201 rm -f conftest.err conftest.$ac_ext
5202
5203   # OK, works on sane cases.  Now check whether non-existent headers
5204   # can be detected and how.
5205   cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 #include <ac_nonexistent.h>
5212 _ACEOF
5213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5215   ac_status=$?
5216   grep -v '^ *+' conftest.er1 >conftest.err
5217   rm -f conftest.er1
5218   cat conftest.err >&5
5219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220   (exit $ac_status); } >/dev/null; then
5221   if test -s conftest.err; then
5222     ac_cpp_err=$ac_cxx_preproc_warn_flag
5223     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5224   else
5225     ac_cpp_err=
5226   fi
5227 else
5228   ac_cpp_err=yes
5229 fi
5230 if test -z "$ac_cpp_err"; then
5231   # Broken: success on invalid input.
5232 continue
5233 else
5234   echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237   # Passes both tests.
5238 ac_preproc_ok=:
5239 break
5240 fi
5241 rm -f conftest.err conftest.$ac_ext
5242
5243 done
5244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245 rm -f conftest.err conftest.$ac_ext
5246 if $ac_preproc_ok; then
5247   :
5248 else
5249   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5250 See \`config.log' for more details." >&5
5251 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5252 See \`config.log' for more details." >&2;}
5253    { (exit 1); exit 1; }; }
5254 fi
5255
5256 ac_ext=c
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5261
5262
5263
5264 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5265 lt_save_CC="$CC"
5266 lt_save_CFLAGS="$CFLAGS"
5267 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5268 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5269 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5270 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5271 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5272 deplibs_check_method="$deplibs_check_method" \
5273 file_magic_cmd="$file_magic_cmd" \
5274 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5275 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5276 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5277 echo "$as_me: error: libtool tag configuration failed" >&2;}
5278    { (exit 1); exit 1; }; }
5279 CC="$lt_save_CC"
5280 CFLAGS="$lt_save_CFLAGS"
5281
5282 # Redirect the config.log output again, so that the ltconfig log is not
5283 # clobbered by the next message.
5284 exec 5>>./config.log
5285
5286
5287
5288
5289
5290
5291
5292 for ac_prog in gcj
5293 do
5294   # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298 if test "${ac_cv_prog_GCJ+set}" = set; then
5299   echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301   if test -n "$GCJ"; then
5302   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309   for ac_exec_ext in '' $ac_executable_extensions; do
5310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311     ac_cv_prog_GCJ="$ac_prog"
5312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316 done
5317
5318 fi
5319 fi
5320 GCJ=$ac_cv_prog_GCJ
5321 if test -n "$GCJ"; then
5322   echo "$as_me:$LINENO: result: $GCJ" >&5
5323 echo "${ECHO_T}$GCJ" >&6
5324 else
5325   echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5327 fi
5328
5329   test -n "$GCJ" && break
5330 done
5331 test -n "$GCJ" || GCJ="gcj"
5332
5333 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5334 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5335    { (exit 1); exit 1; }; }
5336 if test "x${GCJFLAGS-unset}" = xunset; then
5337    GCJFLAGS="-g -O2"
5338 fi
5339
5340
5341 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5342
5343 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5344 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5345 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5349   # We make a subdir and do the tests there.  Otherwise we can end up
5350   # making bogus files that we don't know about and never remove.  For
5351   # instance it was reported that on HP-UX the gcc test will end up
5352   # making a dummy file named `D' -- because `-MD' means `put the output
5353   # in D'.
5354   mkdir conftest.dir
5355   # Copy depcomp to subdir because otherwise we won't find it if we're
5356   # using a relative directory.
5357   cp "$am_depcomp" conftest.dir
5358   cd conftest.dir
5359   # We will build objects and dependencies in a subdirectory because
5360   # it helps to detect inapplicable dependency modes.  For instance
5361   # both Tru64's cc and ICC support -MD to output dependencies as a
5362   # side effect of compilation, but ICC will put the dependencies in
5363   # the current directory while Tru64 will put them in the object
5364   # directory.
5365   mkdir sub
5366
5367   am_cv_GCJ_dependencies_compiler_type=none
5368   if test "$am_compiler_list" = ""; then
5369      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5370   fi
5371   for depmode in $am_compiler_list; do
5372     # Setup a source with many dependencies, because some compilers
5373     # like to wrap large dependency lists on column 80 (with \), and
5374     # we should not choose a depcomp mode which is confused by this.
5375     #
5376     # We need to recreate these files for each test, as the compiler may
5377     # overwrite some of them when testing with obscure command lines.
5378     # This happens at least with the AIX C compiler.
5379     : > sub/conftest.c
5380     for i in 1 2 3 4 5 6; do
5381       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5382       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5383       # Solaris 8's {/usr,}/bin/sh.
5384       touch sub/conftst$i.h
5385     done
5386     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5387
5388     case $depmode in
5389     nosideeffect)
5390       # after this tag, mechanisms are not by side-effect, so they'll
5391       # only be used when explicitly requested
5392       if test "x$enable_dependency_tracking" = xyes; then
5393         continue
5394       else
5395         break
5396       fi
5397       ;;
5398     none) break ;;
5399     esac
5400     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5401     # mode.  It turns out that the SunPro C++ compiler does not properly
5402     # handle `-M -o', and we need to detect this.
5403     if depmode=$depmode \
5404        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5405        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5406        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5407          >/dev/null 2>conftest.err &&
5408        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5409        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5410        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5411       # icc doesn't choke on unknown options, it will just issue warnings
5412       # or remarks (even with -Werror).  So we grep stderr for any message
5413       # that says an option was ignored or not supported.
5414       # When given -MP, icc 7.0 and 7.1 complain thusly:
5415       #   icc: Command line warning: ignoring option '-M'; no argument required
5416       # The diagnosis changed in icc 8.0:
5417       #   icc: Command line remark: option '-MP' not supported
5418       if (grep 'ignoring option' conftest.err ||
5419           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5420         am_cv_GCJ_dependencies_compiler_type=$depmode
5421         break
5422       fi
5423     fi
5424   done
5425
5426   cd ..
5427   rm -rf conftest.dir
5428 else
5429   am_cv_GCJ_dependencies_compiler_type=none
5430 fi
5431
5432 fi
5433 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5434 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5435 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5436
5437
5438
5439 if
5440   test "x$enable_dependency_tracking" != xno \
5441   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5442   am__fastdepGCJ_TRUE=
5443   am__fastdepGCJ_FALSE='#'
5444 else
5445   am__fastdepGCJ_TRUE='#'
5446   am__fastdepGCJ_FALSE=
5447 fi
5448
5449
5450
5451
5452 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5453 lt_save_CC="$CC"
5454 lt_save_CFLAGS="$CFLAGS"
5455 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5456 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5457 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5458 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5459 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5460 deplibs_check_method="$deplibs_check_method" \
5461 file_magic_cmd="$file_magic_cmd" \
5462 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5463 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5464 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5465 echo "$as_me: error: libtool tag configuration failed" >&2;}
5466    { (exit 1); exit 1; }; }
5467 CC="$lt_save_CC"
5468 CFLAGS="$lt_save_CFLAGS"
5469
5470 # Redirect the config.log output again, so that the ltconfig log is not
5471 # clobbered by the next message.
5472 exec 5>>./config.log
5473
5474
5475
5476 if test "x$CC" != xcc; then
5477   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5478 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5479 else
5480   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5481 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5482 fi
5483 set dummy $CC; ac_cc=`echo $2 |
5484                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5485 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5486   echo $ECHO_N "(cached) $ECHO_C" >&6
5487 else
5488   cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h.  */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h.  */
5494
5495 int
5496 main ()
5497 {
5498
5499   ;
5500   return 0;
5501 }
5502 _ACEOF
5503 # Make sure it works both with $CC and with simple cc.
5504 # We do the test twice because some compilers refuse to overwrite an
5505 # existing .o file with -o, though they will create one.
5506 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5507 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508   (eval $ac_try) 2>&5
5509   ac_status=$?
5510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511   (exit $ac_status); } &&
5512    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513   (eval $ac_try) 2>&5
5514   ac_status=$?
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); };
5517 then
5518   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5519   if test "x$CC" != xcc; then
5520     # Test first that cc exists at all.
5521     if { ac_try='cc -c conftest.$ac_ext >&5'
5522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523   (eval $ac_try) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }; }; then
5527       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5528       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529   (eval $ac_try) 2>&5
5530   ac_status=$?
5531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532   (exit $ac_status); } &&
5533          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534   (eval $ac_try) 2>&5
5535   ac_status=$?
5536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537   (exit $ac_status); };
5538       then
5539         # cc works too.
5540         :
5541       else
5542         # cc exists but doesn't like -o.
5543         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5544       fi
5545     fi
5546   fi
5547 else
5548   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5549 fi
5550 rm -f conftest*
5551
5552 fi
5553 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5554   echo "$as_me:$LINENO: result: yes" >&5
5555 echo "${ECHO_T}yes" >&6
5556 else
5557   echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5559
5560 cat >>confdefs.h <<\_ACEOF
5561 #define NO_MINUS_C_MINUS_O 1
5562 _ACEOF
5563
5564 fi
5565
5566 # FIXME: we rely on the cache variable name because
5567 # there is no other way.
5568 set dummy $CC
5569 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5570 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5571    # Losing compiler, so override with the script.
5572    # FIXME: It is wrong to rewrite CC.
5573    # But if we don't then we get into trouble of one sort or another.
5574    # A longer-term fix would be to have automake use am__CC in this case,
5575    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5576    CC="$am_aux_dir/compile $CC"
5577 fi
5578
5579
5580
5581 subdirs="$subdirs libltdl"
5582
5583
5584 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5585    COMPPATH=.
5586 else
5587    COMPPATH=..
5588 fi
5589
5590
5591 # The -no-testsuite modules omit the test subdir.
5592
5593
5594 if test -d $srcdir/testsuite; then
5595   TESTSUBDIR_TRUE=
5596   TESTSUBDIR_FALSE='#'
5597 else
5598   TESTSUBDIR_TRUE='#'
5599   TESTSUBDIR_FALSE=
5600 fi
5601
5602
5603 # Should the runtime set system properties by examining the
5604 # environment variable GCJ_PROPERTIES?
5605 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5606 if test "${enable_getenv_properties+set}" = set; then
5607   enableval="$enable_getenv_properties"
5608
5609 fi;
5610
5611 # Whether GCJ_PROPERTIES is used depends on the target.
5612 if test -z "$enable_getenv_properties"; then
5613    enable_getenv_properties=${enable_getenv_properties_default-yes}
5614 fi
5615 if test "$enable_getenv_properties" = no; then
5616
5617 cat >>confdefs.h <<\_ACEOF
5618 #define DISABLE_GETENV_PROPERTIES 1
5619 _ACEOF
5620
5621 fi
5622
5623 # Whether we should use arguments to main()
5624 if test -z "$enable_main_args"; then
5625    enable_main_args=${enable_main_args_default-yes}
5626 fi
5627 if test "$enable_main_args" = no; then
5628
5629 cat >>confdefs.h <<\_ACEOF
5630 #define DISABLE_MAIN_ARGS 1
5631 _ACEOF
5632
5633 fi
5634
5635
5636 # Should we use hashtable-based synchronization?
5637 # Currently works only for Linux X86/ia64
5638 # Typically faster and more space-efficient
5639 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5640 if test "${enable_hash_synchronization+set}" = set; then
5641   enableval="$enable_hash_synchronization"
5642
5643 fi;
5644
5645 if test -z "$enable_hash_synchronization"; then
5646    enable_hash_synchronization=$enable_hash_synchronization_default
5647 fi
5648
5649 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5650 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5651 if test "${enable_libgcj_multifile+set}" = set; then
5652   enableval="$enable_libgcj_multifile"
5653   case "${enableval}" in
5654   yes) enable_libgcj_multifile=yes ;;
5655   no)  enable_libgcj_multifile=no ;;
5656   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5657 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5658    { (exit 1); exit 1; }; } ;;
5659 esac
5660 else
5661   enable_libgcj_multifile=no
5662 fi;
5663
5664
5665 if test "$enable_libgcj_multifile" = yes; then
5666   ONESTEP_TRUE=
5667   ONESTEP_FALSE='#'
5668 else
5669   ONESTEP_TRUE='#'
5670   ONESTEP_FALSE=
5671 fi
5672
5673
5674 # What is the native OS API for MinGW?
5675
5676 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5677 if test "${with_win32_nlsapi+set}" = set; then
5678   withval="$with_win32_nlsapi"
5679   case "${withval}" in
5680   ansi) with_win32_nlsapi=ansi ;;
5681   unicows) with_win32_nlsapi=unicows ;;
5682   unicode) with_win32_nlsapi=unicode ;;
5683   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5684 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5685    { (exit 1); exit 1; }; } ;;
5686 esac
5687 else
5688   with_win32_nlsapi=ansi
5689 fi;
5690
5691 case "${with_win32_nlsapi}" in
5692   unicows | unicode)
5693
5694 cat >>confdefs.h <<\_ACEOF
5695 #define MINGW_LIBGCJ_UNICODE 1
5696 _ACEOF
5697
5698     ;;
5699 esac
5700
5701 # configure.host sets slow_pthread_self if the synchronization code should
5702 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5703 if test "${slow_pthread_self}" = "yes"; then
5704
5705 cat >>confdefs.h <<\_ACEOF
5706 #define SLOW_PTHREAD_SELF 1
5707 _ACEOF
5708
5709 fi
5710
5711
5712 # See if the user has requested runtime debugging.
5713 LIBGCJDEBUG="false"
5714
5715 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5716 if test "${enable_libgcj_debug+set}" = set; then
5717   enableval="$enable_libgcj_debug"
5718   if test "$enable_libgcj_debug" = yes; then
5719
5720 cat >>confdefs.h <<\_ACEOF
5721 #define DEBUG 1
5722 _ACEOF
5723
5724     LIBGCJDEBUG="true"
5725   fi
5726 fi;
5727
5728 # Check for gc debugging.  This option is handled both here and in the GC.
5729 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5730 if test "${enable_gc_debug+set}" = set; then
5731   enableval="$enable_gc_debug"
5732    if test "$enable_gc_debug" = "yes"; then
5733
5734 cat >>confdefs.h <<\_ACEOF
5735 #define LIBGCJ_GC_DEBUG 1
5736 _ACEOF
5737
5738   fi
5739 fi;
5740
5741 # See if the user has the interpreter included.
5742 # Check whether --enable-interpreter or --disable-interpreter was given.
5743 if test "${enable_interpreter+set}" = set; then
5744   enableval="$enable_interpreter"
5745   if test "$enable_interpreter" = yes; then
5746     # This can also be set in configure.host.
5747     libgcj_interpreter=yes
5748   elif test "$enable_interpreter" = no; then
5749     libgcj_interpreter=no
5750   fi
5751 fi;
5752
5753 if test "$libgcj_interpreter" = yes; then
5754
5755 cat >>confdefs.h <<\_ACEOF
5756 #define INTERPRETER 1
5757 _ACEOF
5758
5759 fi
5760 INTERPRETER="$libgcj_interpreter"
5761
5762
5763 echo "$as_me:$LINENO: checking for exception model to use" >&5
5764 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5765 ac_ext=cc
5766 ac_cpp='$CXXCPP $CPPFLAGS'
5767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5770
5771 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5772 if test "${enable_sjlj_exceptions+set}" = set; then
5773   enableval="$enable_sjlj_exceptions"
5774   :
5775 else
5776   cat > conftest.$ac_ext << EOF
5777 #line 5777 "configure"
5778 struct S { ~S(); };
5779 void bar();
5780 void foo()
5781 {
5782   S s;
5783   bar();
5784 }
5785 EOF
5786 old_CXXFLAGS="$CXXFLAGS"
5787 CXXFLAGS=-S
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789   (eval $ac_compile) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; then
5793   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5794     enable_sjlj_exceptions=yes
5795   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5796     enable_sjlj_exceptions=no
5797   fi
5798 fi
5799 CXXFLAGS="$old_CXXFLAGS"
5800 rm -f conftest*
5801 fi;
5802 if test x$enable_sjlj_exceptions = xyes; then
5803
5804 cat >>confdefs.h <<\_ACEOF
5805 #define SJLJ_EXCEPTIONS 1
5806 _ACEOF
5807
5808   ac_exception_model_name=sjlj
5809 elif test x$enable_sjlj_exceptions = xno; then
5810   ac_exception_model_name="call frame"
5811 else
5812   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5813 echo "$as_me: error: unable to detect exception model" >&2;}
5814    { (exit 1); exit 1; }; }
5815 fi
5816 ac_ext=c
5817 ac_cpp='$CPP $CPPFLAGS'
5818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5821
5822 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5823 echo "${ECHO_T}$ac_exception_model_name" >&6
5824
5825 # If we are non using SJLJ exceptions, and this host does not have support
5826 # for unwinding from a signal handler, enable checked dereferences and divides.
5827 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5828   CHECKREFSPEC=-fcheck-references
5829   DIVIDESPEC=-fuse-divide-subroutine
5830   EXCEPTIONSPEC=
5831 fi
5832
5833 # See if the user wants to disable java.net.  This is the mildly
5834 # ugly way that we admit that target-side configuration sucks.
5835 # Check whether --enable-java-net or --disable-java-net was given.
5836 if test "${enable_java_net+set}" = set; then
5837   enableval="$enable_java_net"
5838
5839 fi;
5840
5841 # Whether java.net is built by default can depend on the target.
5842 if test -z "$enable_java_net"; then
5843    enable_java_net=${enable_java_net_default-yes}
5844 fi
5845 if test "$enable_java_net" = no; then
5846
5847 cat >>confdefs.h <<\_ACEOF
5848 #define DISABLE_JAVA_NET 1
5849 _ACEOF
5850
5851 fi
5852
5853 # See if the user wants to configure without libffi.  Some
5854 # architectures don't support it, and default values are set in
5855 # configure.host.
5856
5857 # Check whether --with-libffi or --without-libffi was given.
5858 if test "${with_libffi+set}" = set; then
5859   withval="$with_libffi"
5860   :
5861 else
5862   with_libffi=${with_libffi_default-yes}
5863 fi;
5864
5865 LIBFFI=
5866 LIBFFIINCS=
5867 if test "$with_libffi" != no; then
5868
5869 cat >>confdefs.h <<\_ACEOF
5870 #define USE_LIBFFI 1
5871 _ACEOF
5872
5873    LIBFFI=../libffi/libffi_convenience.la
5874    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5875 fi
5876
5877
5878
5879 # See if the user wants to disable JVMPI support.
5880 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5881 if test "${enable_jvmpi+set}" = set; then
5882   enableval="$enable_jvmpi"
5883
5884 fi;
5885
5886 if test "$enable_jvmpi" != no; then
5887
5888 cat >>confdefs.h <<\_ACEOF
5889 #define ENABLE_JVMPI 1
5890 _ACEOF
5891
5892 fi
5893
5894 # If the target is an eCos system, use the appropriate eCos
5895 # I/O routines.
5896 # FIXME: this should not be a local option but a global target
5897 # system; at present there is no eCos target.
5898 TARGET_ECOS=${PROCESS-"no"}
5899
5900 # Check whether --with-ecos or --without-ecos was given.
5901 if test "${with_ecos+set}" = set; then
5902   withval="$with_ecos"
5903   TARGET_ECOS="$with_ecos"
5904
5905 fi;
5906
5907 supply_backtrace=no
5908
5909 PLATFORM_INNER_NAT_HDRS=
5910 case "$TARGET_ECOS" in
5911    no) case "$host" in
5912       *mingw*)
5913             PLATFORM=Win32
5914             PLATFORMNET=Win32
5915             PLATFORMH=win32.h
5916
5917 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5918 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5919 LD_PROG=`$CC --print-prog-name=ld`
5920 LD_VERSION=`$LD_PROG --version`
5921 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5922 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5923 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5924   LD_OK="ok"
5925 else
5926   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5927     LD_OK="ok"
5928   fi
5929 fi
5930 if test "x$LD_OK" != x; then
5931   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5932 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5933 else
5934   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5935 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5936   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5937 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5938
5939 cat >>confdefs.h <<\_ACEOF
5940 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5941 _ACEOF
5942
5943 fi
5944       ;;
5945       *)
5946             PLATFORM=Posix
5947             PLATFORMNET=Posix
5948             PLATFORMH=posix.h
5949             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5950       ;;
5951       esac
5952       ;;
5953    *)
5954       PLATFORM=Ecos
5955       PLATFORMNET=NoNet
5956
5957 cat >>confdefs.h <<\_ACEOF
5958 #define ECOS 1
5959 _ACEOF
5960
5961       PLATFORMH=posix.h
5962       ;;
5963 esac
5964
5965           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5966
5967
5968 ac_ext=c
5969 ac_cpp='$CPP $CPPFLAGS'
5970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5974 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5975 # On Suns, sometimes $CPP names a directory.
5976 if test -n "$CPP" && test -d "$CPP"; then
5977   CPP=
5978 fi
5979 if test -z "$CPP"; then
5980   if test "${ac_cv_prog_CPP+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983       # Double quotes because CPP needs to be expanded
5984     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5985     do
5986       ac_preproc_ok=false
5987 for ac_c_preproc_warn_flag in '' yes
5988 do
5989   # Use a header file that comes with gcc, so configuring glibc
5990   # with a fresh cross-compiler works.
5991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992   # <limits.h> exists even on freestanding compilers.
5993   # On the NeXT, cc -E runs the code through the compiler's parser,
5994   # not just through cpp. "Syntax error" is here to catch this case.
5995   cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 #ifdef __STDC__
6002 # include <limits.h>
6003 #else
6004 # include <assert.h>
6005 #endif
6006                      Syntax error
6007 _ACEOF
6008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6009   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } >/dev/null; then
6016   if test -s conftest.err; then
6017     ac_cpp_err=$ac_c_preproc_warn_flag
6018     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6019   else
6020     ac_cpp_err=
6021   fi
6022 else
6023   ac_cpp_err=yes
6024 fi
6025 if test -z "$ac_cpp_err"; then
6026   :
6027 else
6028   echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6030
6031   # Broken: fails on valid input.
6032 continue
6033 fi
6034 rm -f conftest.err conftest.$ac_ext
6035
6036   # OK, works on sane cases.  Now check whether non-existent headers
6037   # can be detected and how.
6038   cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 #include <ac_nonexistent.h>
6045 _ACEOF
6046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } >/dev/null; then
6054   if test -s conftest.err; then
6055     ac_cpp_err=$ac_c_preproc_warn_flag
6056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6057   else
6058     ac_cpp_err=
6059   fi
6060 else
6061   ac_cpp_err=yes
6062 fi
6063 if test -z "$ac_cpp_err"; then
6064   # Broken: success on invalid input.
6065 continue
6066 else
6067   echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6069
6070   # Passes both tests.
6071 ac_preproc_ok=:
6072 break
6073 fi
6074 rm -f conftest.err conftest.$ac_ext
6075
6076 done
6077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6078 rm -f conftest.err conftest.$ac_ext
6079 if $ac_preproc_ok; then
6080   break
6081 fi
6082
6083     done
6084     ac_cv_prog_CPP=$CPP
6085
6086 fi
6087   CPP=$ac_cv_prog_CPP
6088 else
6089   ac_cv_prog_CPP=$CPP
6090 fi
6091 echo "$as_me:$LINENO: result: $CPP" >&5
6092 echo "${ECHO_T}$CPP" >&6
6093 ac_preproc_ok=false
6094 for ac_c_preproc_warn_flag in '' yes
6095 do
6096   # Use a header file that comes with gcc, so configuring glibc
6097   # with a fresh cross-compiler works.
6098   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6099   # <limits.h> exists even on freestanding compilers.
6100   # On the NeXT, cc -E runs the code through the compiler's parser,
6101   # not just through cpp. "Syntax error" is here to catch this case.
6102   cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h.  */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h.  */
6108 #ifdef __STDC__
6109 # include <limits.h>
6110 #else
6111 # include <assert.h>
6112 #endif
6113                      Syntax error
6114 _ACEOF
6115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6116   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6117   ac_status=$?
6118   grep -v '^ *+' conftest.er1 >conftest.err
6119   rm -f conftest.er1
6120   cat conftest.err >&5
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); } >/dev/null; then
6123   if test -s conftest.err; then
6124     ac_cpp_err=$ac_c_preproc_warn_flag
6125     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6126   else
6127     ac_cpp_err=
6128   fi
6129 else
6130   ac_cpp_err=yes
6131 fi
6132 if test -z "$ac_cpp_err"; then
6133   :
6134 else
6135   echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138   # Broken: fails on valid input.
6139 continue
6140 fi
6141 rm -f conftest.err conftest.$ac_ext
6142
6143   # OK, works on sane cases.  Now check whether non-existent headers
6144   # can be detected and how.
6145   cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #include <ac_nonexistent.h>
6152 _ACEOF
6153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155   ac_status=$?
6156   grep -v '^ *+' conftest.er1 >conftest.err
6157   rm -f conftest.er1
6158   cat conftest.err >&5
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } >/dev/null; then
6161   if test -s conftest.err; then
6162     ac_cpp_err=$ac_c_preproc_warn_flag
6163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164   else
6165     ac_cpp_err=
6166   fi
6167 else
6168   ac_cpp_err=yes
6169 fi
6170 if test -z "$ac_cpp_err"; then
6171   # Broken: success on invalid input.
6172 continue
6173 else
6174   echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6176
6177   # Passes both tests.
6178 ac_preproc_ok=:
6179 break
6180 fi
6181 rm -f conftest.err conftest.$ac_ext
6182
6183 done
6184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6185 rm -f conftest.err conftest.$ac_ext
6186 if $ac_preproc_ok; then
6187   :
6188 else
6189   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6190 See \`config.log' for more details." >&5
6191 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6192 See \`config.log' for more details." >&2;}
6193    { (exit 1); exit 1; }; }
6194 fi
6195
6196 ac_ext=c
6197 ac_cpp='$CPP $CPPFLAGS'
6198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
6202
6203 echo "$as_me:$LINENO: checking for egrep" >&5
6204 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6205 if test "${ac_cv_prog_egrep+set}" = set; then
6206   echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6209     then ac_cv_prog_egrep='grep -E'
6210     else ac_cv_prog_egrep='egrep'
6211     fi
6212 fi
6213 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6214 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6215  EGREP=$ac_cv_prog_egrep
6216
6217
6218 cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 #include <stdint.h>
6225
6226 _ACEOF
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228   $EGREP "uint32_t" >/dev/null 2>&1; then
6229
6230 cat >>confdefs.h <<\_ACEOF
6231 #define HAVE_INT32_DEFINED 1
6232 _ACEOF
6233
6234 fi
6235 rm -f conftest*
6236
6237 cat >conftest.$ac_ext <<_ACEOF
6238 /* confdefs.h.  */
6239 _ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h.  */
6243 #include <inttypes.h>
6244
6245 _ACEOF
6246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6247   $EGREP "uint32_t" >/dev/null 2>&1; then
6248
6249 cat >>confdefs.h <<\_ACEOF
6250 #define HAVE_INT32_DEFINED 1
6251 _ACEOF
6252
6253 fi
6254 rm -f conftest*
6255
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 #include <sys/types.h>
6263
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266   $EGREP "u_int32_t" >/dev/null 2>&1; then
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_BSD_INT32_DEFINED 1
6270 _ACEOF
6271
6272 fi
6273 rm -f conftest*
6274
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h.  */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h.  */
6281 #include <sys/config.h>
6282
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285   $EGREP "u_int32_t" >/dev/null 2>&1; then
6286
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_BSD_INT32_DEFINED 1
6289 _ACEOF
6290
6291 fi
6292 rm -f conftest*
6293
6294
6295
6296
6297 if test "$PLATFORM" = Win32; then
6298   USING_WIN32_PLATFORM_TRUE=
6299   USING_WIN32_PLATFORM_FALSE='#'
6300 else
6301   USING_WIN32_PLATFORM_TRUE='#'
6302   USING_WIN32_PLATFORM_FALSE=
6303 fi
6304
6305
6306
6307 if test "$PLATFORM" = Posix; then
6308   USING_POSIX_PLATFORM_TRUE=
6309   USING_POSIX_PLATFORM_FALSE='#'
6310 else
6311   USING_POSIX_PLATFORM_TRUE='#'
6312   USING_POSIX_PLATFORM_FALSE=
6313 fi
6314
6315
6316
6317 if test "$PLATFORM" = Ecos; then
6318   USING_ECOS_PLATFORM_TRUE=
6319   USING_ECOS_PLATFORM_FALSE='#'
6320 else
6321   USING_ECOS_PLATFORM_TRUE='#'
6322   USING_ECOS_PLATFORM_FALSE=
6323 fi
6324
6325
6326 case "$host" in
6327   *-darwin*) DARWIN_CRT=true ;;
6328   *) DARWIN_CRT=false ;;
6329 esac
6330
6331
6332 if $DARWIN_CRT; then
6333   USING_DARWIN_CRT_TRUE=
6334   USING_DARWIN_CRT_FALSE='#'
6335 else
6336   USING_DARWIN_CRT_TRUE='#'
6337   USING_DARWIN_CRT_FALSE=
6338 fi
6339
6340
6341 # These may not be defined in a non-ANS conformant embedded system.
6342 # FIXME: Should these case a runtime exception in that case?
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h.  */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h.  */
6349 #include <time.h>
6350
6351 _ACEOF
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353   $EGREP "mktime" >/dev/null 2>&1; then
6354
6355 cat >>confdefs.h <<\_ACEOF
6356 #define HAVE_MKTIME 1
6357 _ACEOF
6358
6359 fi
6360 rm -f conftest*
6361
6362 cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368 #include <time.h>
6369
6370 _ACEOF
6371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6372   $EGREP "localtime" >/dev/null 2>&1; then
6373
6374 cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_LOCALTIME 1
6376 _ACEOF
6377
6378 fi
6379 rm -f conftest*
6380
6381
6382 # Create the subdirectory for natFile.cc, or the attempt
6383 # to create the link will fail.
6384 test -d java || mkdir java
6385 test -d java/io || mkdir java/io
6386 test -d gnu || mkdir gnu
6387           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6388
6389
6390 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6391 test -d java/lang || mkdir java/lang
6392           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6393
6394           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6395
6396
6397 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6398 test -d java/net || mkdir java/net
6399           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6400
6401           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6402
6403
6404 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6405 test -d gnu/java || mkdir gnu/java
6406 test -d gnu/java/net || mkdir gnu/java/net
6407           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6408
6409           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6410
6411
6412 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6413 test -d gnu/java/nio || mkdir gnu/java/nio
6414           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6415
6416           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6417
6418 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6419           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6420
6421
6422 case "${host}" in
6423     *mingw*)
6424       SYSTEMSPEC="-lgdi32 -lws2_32"
6425       if test "${with_win32_nlsapi}" = "unicows"; then
6426         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6427       fi
6428     ;;
6429     *)
6430       SYSTEMSPEC=
6431     ;;
6432 esac
6433
6434
6435 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6436
6437
6438
6439 # Check whether --with-system-zlib or --without-system-zlib was given.
6440 if test "${with_system_zlib+set}" = set; then
6441   withval="$with_system_zlib"
6442
6443 fi;
6444 ZLIBSPEC=
6445
6446 ZLIBTESTSPEC=
6447
6448
6449 echo "$as_me:$LINENO: checking for X" >&5
6450 echo $ECHO_N "checking for X... $ECHO_C" >&6
6451
6452
6453 # Check whether --with-x or --without-x was given.
6454 if test "${with_x+set}" = set; then
6455   withval="$with_x"
6456
6457 fi;
6458 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6459 if test "x$with_x" = xno; then
6460   # The user explicitly disabled X.
6461   have_x=disabled
6462 else
6463   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6464     # Both variables are already set.
6465     have_x=yes
6466   else
6467     if test "${ac_cv_have_x+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   # One or both of the vars are not set, and there is no cached value.
6471 ac_x_includes=no ac_x_libraries=no
6472 rm -fr conftest.dir
6473 if mkdir conftest.dir; then
6474   cd conftest.dir
6475   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6476   cat >Imakefile <<'_ACEOF'
6477 acfindx:
6478         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6479 _ACEOF
6480   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6481     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6482     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6483     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6484     for ac_extension in a so sl; do
6485       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6486          test -f $ac_im_libdir/libX11.$ac_extension; then
6487         ac_im_usrlibdir=$ac_im_libdir; break
6488       fi
6489     done
6490     # Screen out bogus values from the imake configuration.  They are
6491     # bogus both because they are the default anyway, and because
6492     # using them would break gcc on systems where it needs fixed includes.
6493     case $ac_im_incroot in
6494         /usr/include) ;;
6495         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6496     esac
6497     case $ac_im_usrlibdir in
6498         /usr/lib | /lib) ;;
6499         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6500     esac
6501   fi
6502   cd ..
6503   rm -fr conftest.dir
6504 fi
6505
6506 # Standard set of common directories for X headers.
6507 # Check X11 before X11Rn because it is often a symlink to the current release.
6508 ac_x_header_dirs='
6509 /usr/X11/include
6510 /usr/X11R6/include
6511 /usr/X11R5/include
6512 /usr/X11R4/include
6513
6514 /usr/include/X11
6515 /usr/include/X11R6
6516 /usr/include/X11R5
6517 /usr/include/X11R4
6518
6519 /usr/local/X11/include
6520 /usr/local/X11R6/include
6521 /usr/local/X11R5/include
6522 /usr/local/X11R4/include
6523
6524 /usr/local/include/X11
6525 /usr/local/include/X11R6
6526 /usr/local/include/X11R5
6527 /usr/local/include/X11R4
6528
6529 /usr/X386/include
6530 /usr/x386/include
6531 /usr/XFree86/include/X11
6532
6533 /usr/include
6534 /usr/local/include
6535 /usr/unsupported/include
6536 /usr/athena/include
6537 /usr/local/x11r5/include
6538 /usr/lpp/Xamples/include
6539
6540 /usr/openwin/include
6541 /usr/openwin/share/include'
6542
6543 if test "$ac_x_includes" = no; then
6544   # Guess where to find include files, by looking for Intrinsic.h.
6545   # First, try using that file with no special directory specified.
6546   cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 #include <X11/Intrinsic.h>
6553 _ACEOF
6554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6555   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6556   ac_status=$?
6557   grep -v '^ *+' conftest.er1 >conftest.err
6558   rm -f conftest.er1
6559   cat conftest.err >&5
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); } >/dev/null; then
6562   if test -s conftest.err; then
6563     ac_cpp_err=$ac_c_preproc_warn_flag
6564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6565   else
6566     ac_cpp_err=
6567   fi
6568 else
6569   ac_cpp_err=yes
6570 fi
6571 if test -z "$ac_cpp_err"; then
6572   # We can compile using X headers with no special include directory.
6573 ac_x_includes=
6574 else
6575   echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6577
6578   for ac_dir in $ac_x_header_dirs; do
6579   if test -r "$ac_dir/X11/Intrinsic.h"; then
6580     ac_x_includes=$ac_dir
6581     break
6582   fi
6583 done
6584 fi
6585 rm -f conftest.err conftest.$ac_ext
6586 fi # $ac_x_includes = no
6587
6588 if test "$ac_x_libraries" = no; then
6589   # Check for the libraries.
6590   # See if we find them without any special options.
6591   # Don't add to $LIBS permanently.
6592   ac_save_LIBS=$LIBS
6593   LIBS="-lXt $LIBS"
6594   if test x$gcc_no_link = xyes; then
6595   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6597    { (exit 1); exit 1; }; }
6598 fi
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h.  */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h.  */
6605 #include <X11/Intrinsic.h>
6606 int
6607 main ()
6608 {
6609 XtMalloc (0)
6610   ;
6611   return 0;
6612 }
6613 _ACEOF
6614 rm -f conftest.$ac_objext conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616   (eval $ac_link) 2>conftest.er1
6617   ac_status=$?
6618   grep -v '^ *+' conftest.er1 >conftest.err
6619   rm -f conftest.er1
6620   cat conftest.err >&5
6621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622   (exit $ac_status); } &&
6623          { ac_try='test -z "$ac_c_werror_flag"
6624                          || test ! -s conftest.err'
6625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626   (eval $ac_try) 2>&5
6627   ac_status=$?
6628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629   (exit $ac_status); }; } &&
6630          { ac_try='test -s conftest$ac_exeext'
6631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6632   (eval $ac_try) 2>&5
6633   ac_status=$?
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); }; }; then
6636   LIBS=$ac_save_LIBS
6637 # We can link X programs with no special library path.
6638 ac_x_libraries=
6639 else
6640   echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 LIBS=$ac_save_LIBS
6644 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6645 do
6646   # Don't even attempt the hair of trying to link an X program!
6647   for ac_extension in a so sl; do
6648     if test -r $ac_dir/libXt.$ac_extension; then
6649       ac_x_libraries=$ac_dir
6650       break 2
6651     fi
6652   done
6653 done
6654 fi
6655 rm -f conftest.err conftest.$ac_objext \
6656       conftest$ac_exeext conftest.$ac_ext
6657 fi # $ac_x_libraries = no
6658
6659 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6660   # Didn't find X anywhere.  Cache the known absence of X.
6661   ac_cv_have_x="have_x=no"
6662 else
6663   # Record where we found X for the cache.
6664   ac_cv_have_x="have_x=yes \
6665                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6666 fi
6667 fi
6668
6669   fi
6670   eval "$ac_cv_have_x"
6671 fi # $with_x != no
6672
6673 if test "$have_x" != yes; then
6674   echo "$as_me:$LINENO: result: $have_x" >&5
6675 echo "${ECHO_T}$have_x" >&6
6676   no_x=yes
6677 else
6678   # If each of the values was on the command line, it overrides each guess.
6679   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6680   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6681   # Update the cache value to reflect the command line values.
6682   ac_cv_have_x="have_x=yes \
6683                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6684   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6685 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6686 fi
6687
6688 if test "$no_x" = yes; then
6689   # Not all programs may use this symbol, but it does not hurt to define it.
6690
6691 cat >>confdefs.h <<\_ACEOF
6692 #define X_DISPLAY_MISSING 1
6693 _ACEOF
6694
6695   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6696 else
6697   if test -n "$x_includes"; then
6698     X_CFLAGS="$X_CFLAGS -I$x_includes"
6699   fi
6700
6701   # It would also be nice to do this for all -L options, not just this one.
6702   if test -n "$x_libraries"; then
6703     X_LIBS="$X_LIBS -L$x_libraries"
6704     # For Solaris; some versions of Sun CC require a space after -R and
6705     # others require no space.  Words are not sufficient . . . .
6706     case `(uname -sr) 2>/dev/null` in
6707     "SunOS 5"*)
6708       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6709 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6710       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6711       if test x$gcc_no_link = xyes; then
6712   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6714    { (exit 1); exit 1; }; }
6715 fi
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h.  */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h.  */
6722
6723 int
6724 main ()
6725 {
6726
6727   ;
6728   return 0;
6729 }
6730 _ACEOF
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733   (eval $ac_link) 2>conftest.er1
6734   ac_status=$?
6735   grep -v '^ *+' conftest.er1 >conftest.err
6736   rm -f conftest.er1
6737   cat conftest.err >&5
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); } &&
6740          { ac_try='test -z "$ac_c_werror_flag"
6741                          || test ! -s conftest.err'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; } &&
6747          { ac_try='test -s conftest$ac_exeext'
6748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749   (eval $ac_try) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); }; }; then
6753   ac_R_nospace=yes
6754 else
6755   echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758 ac_R_nospace=no
6759 fi
6760 rm -f conftest.err conftest.$ac_objext \
6761       conftest$ac_exeext conftest.$ac_ext
6762       if test $ac_R_nospace = yes; then
6763         echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6765         X_LIBS="$X_LIBS -R$x_libraries"
6766       else
6767         LIBS="$ac_xsave_LIBS -R $x_libraries"
6768         if test x$gcc_no_link = xyes; then
6769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6771    { (exit 1); exit 1; }; }
6772 fi
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h.  */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h.  */
6779
6780 int
6781 main ()
6782 {
6783
6784   ;
6785   return 0;
6786 }
6787 _ACEOF
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790   (eval $ac_link) 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_c_werror_flag"
6798                          || test ! -s conftest.err'
6799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800   (eval $ac_try) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }; } &&
6804          { ac_try='test -s conftest$ac_exeext'
6805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806   (eval $ac_try) 2>&5
6807   ac_status=$?
6808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); }; }; then
6810   ac_R_space=yes
6811 else
6812   echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6814
6815 ac_R_space=no
6816 fi
6817 rm -f conftest.err conftest.$ac_objext \
6818       conftest$ac_exeext conftest.$ac_ext
6819         if test $ac_R_space = yes; then
6820           echo "$as_me:$LINENO: result: yes" >&5
6821 echo "${ECHO_T}yes" >&6
6822           X_LIBS="$X_LIBS -R $x_libraries"
6823         else
6824           echo "$as_me:$LINENO: result: neither works" >&5
6825 echo "${ECHO_T}neither works" >&6
6826         fi
6827       fi
6828       LIBS=$ac_xsave_LIBS
6829     esac
6830   fi
6831
6832   # Check for system-dependent libraries X programs must link with.
6833   # Do this before checking for the system-independent R6 libraries
6834   # (-lICE), since we may need -lsocket or whatever for X linking.
6835
6836   if test "$ISC" = yes; then
6837     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6838   else
6839     # Martyn Johnson says this is needed for Ultrix, if the X
6840     # libraries were built with DECnet support.  And Karl Berry says
6841     # the Alpha needs dnet_stub (dnet does not exist).
6842     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6843     if test x$gcc_no_link = xyes; then
6844   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6846    { (exit 1); exit 1; }; }
6847 fi
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h.  */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h.  */
6854
6855 /* Override any gcc2 internal prototype to avoid an error.  */
6856 #ifdef __cplusplus
6857 extern "C"
6858 #endif
6859 /* We use char because int might match the return type of a gcc2
6860    builtin and then its argument prototype would still apply.  */
6861 char XOpenDisplay ();
6862 int
6863 main ()
6864 {
6865 XOpenDisplay ();
6866   ;
6867   return 0;
6868 }
6869 _ACEOF
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872   (eval $ac_link) 2>conftest.er1
6873   ac_status=$?
6874   grep -v '^ *+' conftest.er1 >conftest.err
6875   rm -f conftest.er1
6876   cat conftest.err >&5
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } &&
6879          { ac_try='test -z "$ac_c_werror_flag"
6880                          || test ! -s conftest.err'
6881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882   (eval $ac_try) 2>&5
6883   ac_status=$?
6884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885   (exit $ac_status); }; } &&
6886          { ac_try='test -s conftest$ac_exeext'
6887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888   (eval $ac_try) 2>&5
6889   ac_status=$?
6890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891   (exit $ac_status); }; }; then
6892   :
6893 else
6894   echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6896
6897 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6898 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6899 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   ac_check_lib_save_LIBS=$LIBS
6903 LIBS="-ldnet  $LIBS"
6904 if test x$gcc_no_link = xyes; then
6905   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6906 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6907    { (exit 1); exit 1; }; }
6908 fi
6909 cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h.  */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h.  */
6915
6916 /* Override any gcc2 internal prototype to avoid an error.  */
6917 #ifdef __cplusplus
6918 extern "C"
6919 #endif
6920 /* We use char because int might match the return type of a gcc2
6921    builtin and then its argument prototype would still apply.  */
6922 char dnet_ntoa ();
6923 int
6924 main ()
6925 {
6926 dnet_ntoa ();
6927   ;
6928   return 0;
6929 }
6930 _ACEOF
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933   (eval $ac_link) 2>conftest.er1
6934   ac_status=$?
6935   grep -v '^ *+' conftest.er1 >conftest.err
6936   rm -f conftest.er1
6937   cat conftest.err >&5
6938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939   (exit $ac_status); } &&
6940          { ac_try='test -z "$ac_c_werror_flag"
6941                          || test ! -s conftest.err'
6942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6943   (eval $ac_try) 2>&5
6944   ac_status=$?
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); }; } &&
6947          { ac_try='test -s conftest$ac_exeext'
6948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949   (eval $ac_try) 2>&5
6950   ac_status=$?
6951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952   (exit $ac_status); }; }; then
6953   ac_cv_lib_dnet_dnet_ntoa=yes
6954 else
6955   echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 ac_cv_lib_dnet_dnet_ntoa=no
6959 fi
6960 rm -f conftest.err conftest.$ac_objext \
6961       conftest$ac_exeext conftest.$ac_ext
6962 LIBS=$ac_check_lib_save_LIBS
6963 fi
6964 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6965 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6966 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6967   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6968 fi
6969
6970     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6971       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6972 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6973 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   ac_check_lib_save_LIBS=$LIBS
6977 LIBS="-ldnet_stub  $LIBS"
6978 if test x$gcc_no_link = xyes; then
6979   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6981    { (exit 1); exit 1; }; }
6982 fi
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989
6990 /* Override any gcc2 internal prototype to avoid an error.  */
6991 #ifdef __cplusplus
6992 extern "C"
6993 #endif
6994 /* We use char because int might match the return type of a gcc2
6995    builtin and then its argument prototype would still apply.  */
6996 char dnet_ntoa ();
6997 int
6998 main ()
6999 {
7000 dnet_ntoa ();
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007   (eval $ac_link) 2>conftest.er1
7008   ac_status=$?
7009   grep -v '^ *+' conftest.er1 >conftest.err
7010   rm -f conftest.er1
7011   cat conftest.err >&5
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -z "$ac_c_werror_flag"
7015                          || test ! -s conftest.err'
7016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017   (eval $ac_try) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; } &&
7021          { ac_try='test -s conftest$ac_exeext'
7022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ac_cv_lib_dnet_stub_dnet_ntoa=no
7033 fi
7034 rm -f conftest.err conftest.$ac_objext \
7035       conftest$ac_exeext conftest.$ac_ext
7036 LIBS=$ac_check_lib_save_LIBS
7037 fi
7038 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7039 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7040 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7041   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7042 fi
7043
7044     fi
7045 fi
7046 rm -f conftest.err conftest.$ac_objext \
7047       conftest$ac_exeext conftest.$ac_ext
7048     LIBS="$ac_xsave_LIBS"
7049
7050     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7051     # to get the SysV transport functions.
7052     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7053     # needs -lnsl.
7054     # The nsl library prevents programs from opening the X display
7055     # on Irix 5.2, according to T.E. Dickey.
7056     # The functions gethostbyname, getservbyname, and inet_addr are
7057     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7058     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7059 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7060 if test "${ac_cv_func_gethostbyname+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   if test x$gcc_no_link = xyes; then
7064   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7066    { (exit 1); exit 1; }; }
7067 fi
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h.  */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h.  */
7074 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7076 #define gethostbyname innocuous_gethostbyname
7077
7078 /* System header to define __stub macros and hopefully few prototypes,
7079     which can conflict with char gethostbyname (); below.
7080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081     <limits.h> exists even on freestanding compilers.  */
7082
7083 #ifdef __STDC__
7084 # include <limits.h>
7085 #else
7086 # include <assert.h>
7087 #endif
7088
7089 #undef gethostbyname
7090
7091 /* Override any gcc2 internal prototype to avoid an error.  */
7092 #ifdef __cplusplus
7093 extern "C"
7094 {
7095 #endif
7096 /* We use char because int might match the return type of a gcc2
7097    builtin and then its argument prototype would still apply.  */
7098 char gethostbyname ();
7099 /* The GNU C library defines this for functions which it implements
7100     to always fail with ENOSYS.  Some functions are actually named
7101     something starting with __ and the normal name is an alias.  */
7102 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7103 choke me
7104 #else
7105 char (*f) () = gethostbyname;
7106 #endif
7107 #ifdef __cplusplus
7108 }
7109 #endif
7110
7111 int
7112 main ()
7113 {
7114 return f != gethostbyname;
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -z "$ac_c_werror_flag"
7129                          || test ! -s conftest.err'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; } &&
7135          { ac_try='test -s conftest$ac_exeext'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; }; then
7141   ac_cv_func_gethostbyname=yes
7142 else
7143   echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 ac_cv_func_gethostbyname=no
7147 fi
7148 rm -f conftest.err conftest.$ac_objext \
7149       conftest$ac_exeext conftest.$ac_ext
7150 fi
7151 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7152 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7153
7154     if test $ac_cv_func_gethostbyname = no; then
7155       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7156 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7157 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7158   echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160   ac_check_lib_save_LIBS=$LIBS
7161 LIBS="-lnsl  $LIBS"
7162 if test x$gcc_no_link = xyes; then
7163   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7164 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7165    { (exit 1); exit 1; }; }
7166 fi
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h.  */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h.  */
7173
7174 /* Override any gcc2 internal prototype to avoid an error.  */
7175 #ifdef __cplusplus
7176 extern "C"
7177 #endif
7178 /* We use char because int might match the return type of a gcc2
7179    builtin and then its argument prototype would still apply.  */
7180 char gethostbyname ();
7181 int
7182 main ()
7183 {
7184 gethostbyname ();
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191   (eval $ac_link) 2>conftest.er1
7192   ac_status=$?
7193   grep -v '^ *+' conftest.er1 >conftest.err
7194   rm -f conftest.er1
7195   cat conftest.err >&5
7196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197   (exit $ac_status); } &&
7198          { ac_try='test -z "$ac_c_werror_flag"
7199                          || test ! -s conftest.err'
7200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201   (eval $ac_try) 2>&5
7202   ac_status=$?
7203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204   (exit $ac_status); }; } &&
7205          { ac_try='test -s conftest$ac_exeext'
7206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207   (eval $ac_try) 2>&5
7208   ac_status=$?
7209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210   (exit $ac_status); }; }; then
7211   ac_cv_lib_nsl_gethostbyname=yes
7212 else
7213   echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7215
7216 ac_cv_lib_nsl_gethostbyname=no
7217 fi
7218 rm -f conftest.err conftest.$ac_objext \
7219       conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7221 fi
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7223 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7224 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7225   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7226 fi
7227
7228       if test $ac_cv_lib_nsl_gethostbyname = no; then
7229         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7230 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7231 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   ac_check_lib_save_LIBS=$LIBS
7235 LIBS="-lbsd  $LIBS"
7236 if test x$gcc_no_link = xyes; then
7237   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7239    { (exit 1); exit 1; }; }
7240 fi
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247
7248 /* Override any gcc2 internal prototype to avoid an error.  */
7249 #ifdef __cplusplus
7250 extern "C"
7251 #endif
7252 /* We use char because int might match the return type of a gcc2
7253    builtin and then its argument prototype would still apply.  */
7254 char gethostbyname ();
7255 int
7256 main ()
7257 {
7258 gethostbyname ();
7259   ;
7260   return 0;
7261 }
7262 _ACEOF
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265   (eval $ac_link) 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } &&
7272          { ac_try='test -z "$ac_c_werror_flag"
7273                          || test ! -s conftest.err'
7274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; } &&
7279          { ac_try='test -s conftest$ac_exeext'
7280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); }; }; then
7285   ac_cv_lib_bsd_gethostbyname=yes
7286 else
7287   echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 ac_cv_lib_bsd_gethostbyname=no
7291 fi
7292 rm -f conftest.err conftest.$ac_objext \
7293       conftest$ac_exeext conftest.$ac_ext
7294 LIBS=$ac_check_lib_save_LIBS
7295 fi
7296 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7297 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7298 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7299   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7300 fi
7301
7302       fi
7303     fi
7304
7305     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7306     # socket/setsockopt and other routines are undefined under SCO ODT
7307     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7308     # on later versions), says Simon Leinen: it contains gethostby*
7309     # variants that don't use the name server (or something).  -lsocket
7310     # must be given before -lnsl if both are needed.  We assume that
7311     # if connect needs -lnsl, so does gethostbyname.
7312     echo "$as_me:$LINENO: checking for connect" >&5
7313 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7314 if test "${ac_cv_func_connect+set}" = set; then
7315   echo $ECHO_N "(cached) $ECHO_C" >&6
7316 else
7317   if test x$gcc_no_link = xyes; then
7318   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7320    { (exit 1); exit 1; }; }
7321 fi
7322 cat >conftest.$ac_ext <<_ACEOF
7323 /* confdefs.h.  */
7324 _ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h.  */
7328 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7330 #define connect innocuous_connect
7331
7332 /* System header to define __stub macros and hopefully few prototypes,
7333     which can conflict with char connect (); below.
7334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335     <limits.h> exists even on freestanding compilers.  */
7336
7337 #ifdef __STDC__
7338 # include <limits.h>
7339 #else
7340 # include <assert.h>
7341 #endif
7342
7343 #undef connect
7344
7345 /* Override any gcc2 internal prototype to avoid an error.  */
7346 #ifdef __cplusplus
7347 extern "C"
7348 {
7349 #endif
7350 /* We use char because int might match the return type of a gcc2
7351    builtin and then its argument prototype would still apply.  */
7352 char connect ();
7353 /* The GNU C library defines this for functions which it implements
7354     to always fail with ENOSYS.  Some functions are actually named
7355     something starting with __ and the normal name is an alias.  */
7356 #if defined (__stub_connect) || defined (__stub___connect)
7357 choke me
7358 #else
7359 char (*f) () = connect;
7360 #endif
7361 #ifdef __cplusplus
7362 }
7363 #endif
7364
7365 int
7366 main ()
7367 {
7368 return f != connect;
7369   ;
7370   return 0;
7371 }
7372 _ACEOF
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375   (eval $ac_link) 2>conftest.er1
7376   ac_status=$?
7377   grep -v '^ *+' conftest.er1 >conftest.err
7378   rm -f conftest.er1
7379   cat conftest.err >&5
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); } &&
7382          { ac_try='test -z "$ac_c_werror_flag"
7383                          || test ! -s conftest.err'
7384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385   (eval $ac_try) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; } &&
7389          { ac_try='test -s conftest$ac_exeext'
7390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391   (eval $ac_try) 2>&5
7392   ac_status=$?
7393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394   (exit $ac_status); }; }; then
7395   ac_cv_func_connect=yes
7396 else
7397   echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400 ac_cv_func_connect=no
7401 fi
7402 rm -f conftest.err conftest.$ac_objext \
7403       conftest$ac_exeext conftest.$ac_ext
7404 fi
7405 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7406 echo "${ECHO_T}$ac_cv_func_connect" >&6
7407
7408     if test $ac_cv_func_connect = no; then
7409       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7410 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7411 if test "${ac_cv_lib_socket_connect+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7416 if test x$gcc_no_link = xyes; then
7417   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7419    { (exit 1); exit 1; }; }
7420 fi
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h.  */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h.  */
7427
7428 /* Override any gcc2 internal prototype to avoid an error.  */
7429 #ifdef __cplusplus
7430 extern "C"
7431 #endif
7432 /* We use char because int might match the return type of a gcc2
7433    builtin and then its argument prototype would still apply.  */
7434 char connect ();
7435 int
7436 main ()
7437 {
7438 connect ();
7439   ;
7440   return 0;
7441 }
7442 _ACEOF
7443 rm -f conftest.$ac_objext conftest$ac_exeext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7445   (eval $ac_link) 2>conftest.er1
7446   ac_status=$?
7447   grep -v '^ *+' conftest.er1 >conftest.err
7448   rm -f conftest.er1
7449   cat conftest.err >&5
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } &&
7452          { ac_try='test -z "$ac_c_werror_flag"
7453                          || test ! -s conftest.err'
7454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7455   (eval $ac_try) 2>&5
7456   ac_status=$?
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); }; } &&
7459          { ac_try='test -s conftest$ac_exeext'
7460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7461   (eval $ac_try) 2>&5
7462   ac_status=$?
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); }; }; then
7465   ac_cv_lib_socket_connect=yes
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 ac_cv_lib_socket_connect=no
7471 fi
7472 rm -f conftest.err conftest.$ac_objext \
7473       conftest$ac_exeext conftest.$ac_ext
7474 LIBS=$ac_check_lib_save_LIBS
7475 fi
7476 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7477 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7478 if test $ac_cv_lib_socket_connect = yes; then
7479   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7480 fi
7481
7482     fi
7483
7484     # Guillermo Gomez says -lposix is necessary on A/UX.
7485     echo "$as_me:$LINENO: checking for remove" >&5
7486 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7487 if test "${ac_cv_func_remove+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   if test x$gcc_no_link = xyes; then
7491   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7493    { (exit 1); exit 1; }; }
7494 fi
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7503 #define remove innocuous_remove
7504
7505 /* System header to define __stub macros and hopefully few prototypes,
7506     which can conflict with char remove (); below.
7507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508     <limits.h> exists even on freestanding compilers.  */
7509
7510 #ifdef __STDC__
7511 # include <limits.h>
7512 #else
7513 # include <assert.h>
7514 #endif
7515
7516 #undef remove
7517
7518 /* Override any gcc2 internal prototype to avoid an error.  */
7519 #ifdef __cplusplus
7520 extern "C"
7521 {
7522 #endif
7523 /* We use char because int might match the return type of a gcc2
7524    builtin and then its argument prototype would still apply.  */
7525 char remove ();
7526 /* The GNU C library defines this for functions which it implements
7527     to always fail with ENOSYS.  Some functions are actually named
7528     something starting with __ and the normal name is an alias.  */
7529 #if defined (__stub_remove) || defined (__stub___remove)
7530 choke me
7531 #else
7532 char (*f) () = remove;
7533 #endif
7534 #ifdef __cplusplus
7535 }
7536 #endif
7537
7538 int
7539 main ()
7540 {
7541 return f != remove;
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7548   (eval $ac_link) 2>conftest.er1
7549   ac_status=$?
7550   grep -v '^ *+' conftest.er1 >conftest.err
7551   rm -f conftest.er1
7552   cat conftest.err >&5
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); } &&
7555          { ac_try='test -z "$ac_c_werror_flag"
7556                          || test ! -s conftest.err'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; } &&
7562          { ac_try='test -s conftest$ac_exeext'
7563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564   (eval $ac_try) 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); }; }; then
7568   ac_cv_func_remove=yes
7569 else
7570   echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 ac_cv_func_remove=no
7574 fi
7575 rm -f conftest.err conftest.$ac_objext \
7576       conftest$ac_exeext conftest.$ac_ext
7577 fi
7578 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7579 echo "${ECHO_T}$ac_cv_func_remove" >&6
7580
7581     if test $ac_cv_func_remove = no; then
7582       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7583 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7584 if test "${ac_cv_lib_posix_remove+set}" = set; then
7585   echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587   ac_check_lib_save_LIBS=$LIBS
7588 LIBS="-lposix  $LIBS"
7589 if test x$gcc_no_link = xyes; then
7590   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7592    { (exit 1); exit 1; }; }
7593 fi
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600
7601 /* Override any gcc2 internal prototype to avoid an error.  */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 /* We use char because int might match the return type of a gcc2
7606    builtin and then its argument prototype would still apply.  */
7607 char remove ();
7608 int
7609 main ()
7610 {
7611 remove ();
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>conftest.er1
7619   ac_status=$?
7620   grep -v '^ *+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } &&
7625          { ac_try='test -z "$ac_c_werror_flag"
7626                          || test ! -s conftest.err'
7627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628   (eval $ac_try) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); }; } &&
7632          { ac_try='test -s conftest$ac_exeext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   ac_cv_lib_posix_remove=yes
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643 ac_cv_lib_posix_remove=no
7644 fi
7645 rm -f conftest.err conftest.$ac_objext \
7646       conftest$ac_exeext conftest.$ac_ext
7647 LIBS=$ac_check_lib_save_LIBS
7648 fi
7649 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7650 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7651 if test $ac_cv_lib_posix_remove = yes; then
7652   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7653 fi
7654
7655     fi
7656
7657     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7658     echo "$as_me:$LINENO: checking for shmat" >&5
7659 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7660 if test "${ac_cv_func_shmat+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   if test x$gcc_no_link = xyes; then
7664   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7666    { (exit 1); exit 1; }; }
7667 fi
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7676 #define shmat innocuous_shmat
7677
7678 /* System header to define __stub macros and hopefully few prototypes,
7679     which can conflict with char shmat (); below.
7680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7681     <limits.h> exists even on freestanding compilers.  */
7682
7683 #ifdef __STDC__
7684 # include <limits.h>
7685 #else
7686 # include <assert.h>
7687 #endif
7688
7689 #undef shmat
7690
7691 /* Override any gcc2 internal prototype to avoid an error.  */
7692 #ifdef __cplusplus
7693 extern "C"
7694 {
7695 #endif
7696 /* We use char because int might match the return type of a gcc2
7697    builtin and then its argument prototype would still apply.  */
7698 char shmat ();
7699 /* The GNU C library defines this for functions which it implements
7700     to always fail with ENOSYS.  Some functions are actually named
7701     something starting with __ and the normal name is an alias.  */
7702 #if defined (__stub_shmat) || defined (__stub___shmat)
7703 choke me
7704 #else
7705 char (*f) () = shmat;
7706 #endif
7707 #ifdef __cplusplus
7708 }
7709 #endif
7710
7711 int
7712 main ()
7713 {
7714 return f != shmat;
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext conftest$ac_exeext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721   (eval $ac_link) 2>conftest.er1
7722   ac_status=$?
7723   grep -v '^ *+' conftest.er1 >conftest.err
7724   rm -f conftest.er1
7725   cat conftest.err >&5
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -z "$ac_c_werror_flag"
7729                          || test ! -s conftest.err'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; } &&
7735          { ac_try='test -s conftest$ac_exeext'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; }; then
7741   ac_cv_func_shmat=yes
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 ac_cv_func_shmat=no
7747 fi
7748 rm -f conftest.err conftest.$ac_objext \
7749       conftest$ac_exeext conftest.$ac_ext
7750 fi
7751 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7752 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7753
7754     if test $ac_cv_func_shmat = no; then
7755       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7756 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7757 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   ac_check_lib_save_LIBS=$LIBS
7761 LIBS="-lipc  $LIBS"
7762 if test x$gcc_no_link = xyes; then
7763   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7764 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7765    { (exit 1); exit 1; }; }
7766 fi
7767 cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773
7774 /* Override any gcc2 internal prototype to avoid an error.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 #endif
7778 /* We use char because int might match the return type of a gcc2
7779    builtin and then its argument prototype would still apply.  */
7780 char shmat ();
7781 int
7782 main ()
7783 {
7784 shmat ();
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791   (eval $ac_link) 2>conftest.er1
7792   ac_status=$?
7793   grep -v '^ *+' conftest.er1 >conftest.err
7794   rm -f conftest.er1
7795   cat conftest.err >&5
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -z "$ac_c_werror_flag"
7799                          || test ! -s conftest.err'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; } &&
7805          { ac_try='test -s conftest$ac_exeext'
7806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807   (eval $ac_try) 2>&5
7808   ac_status=$?
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); }; }; then
7811   ac_cv_lib_ipc_shmat=yes
7812 else
7813   echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 ac_cv_lib_ipc_shmat=no
7817 fi
7818 rm -f conftest.err conftest.$ac_objext \
7819       conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7821 fi
7822 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7823 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7824 if test $ac_cv_lib_ipc_shmat = yes; then
7825   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7826 fi
7827
7828     fi
7829   fi
7830
7831   # Check for libraries that X11R6 Xt/Xaw programs need.
7832   ac_save_LDFLAGS=$LDFLAGS
7833   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7834   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7835   # check for ICE first), but we must link in the order -lSM -lICE or
7836   # we get undefined symbols.  So assume we have SM if we have ICE.
7837   # These have to be linked with before -lX11, unlike the other
7838   # libraries we check for below, so use a different variable.
7839   # John Interrante, Karl Berry
7840   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7841 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7842 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   ac_check_lib_save_LIBS=$LIBS
7846 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7847 if test x$gcc_no_link = xyes; then
7848   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7849 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7850    { (exit 1); exit 1; }; }
7851 fi
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h.  */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h.  */
7858
7859 /* Override any gcc2 internal prototype to avoid an error.  */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 /* We use char because int might match the return type of a gcc2
7864    builtin and then its argument prototype would still apply.  */
7865 char IceConnectionNumber ();
7866 int
7867 main ()
7868 {
7869 IceConnectionNumber ();
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876   (eval $ac_link) 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag"
7884                          || test ! -s conftest.err'
7885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886   (eval $ac_try) 2>&5
7887   ac_status=$?
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); }; } &&
7890          { ac_try='test -s conftest$ac_exeext'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; }; then
7896   ac_cv_lib_ICE_IceConnectionNumber=yes
7897 else
7898   echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 ac_cv_lib_ICE_IceConnectionNumber=no
7902 fi
7903 rm -f conftest.err conftest.$ac_objext \
7904       conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7906 fi
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7908 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7909 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7910   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7911 fi
7912
7913   LDFLAGS=$ac_save_LDFLAGS
7914
7915 fi
7916
7917
7918 # Determine which AWT peer libraries to build
7919 # Check whether --enable-java-awt or --disable-java-awt was given.
7920 if test "${enable_java_awt+set}" = set; then
7921   enableval="$enable_java_awt"
7922
7923 fi;
7924
7925 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7926 use_xlib_awt=""
7927 use_gtk_awt=""
7928 # The default toolkit to use is the first one specified.
7929 TOOLKIT=
7930
7931
7932 for peer in $peerlibs ; do
7933   case $peer in
7934     xlib)
7935       if test "$no_x" = yes; then
7936         echo "*** xlib peers requested but no X library available" 1>&2
7937         exit 1
7938       else
7939         use_xlib_awt="yes"
7940         if test -z "$TOOLKIT"; then
7941            TOOLKIT=gnu.awt.xlib.XToolkit
7942         fi
7943       fi
7944       ;;
7945     gtk)
7946       if test "$no_x" = yes; then
7947          echo "*** xlib peers requested but no X library available" 1>&2
7948          exit 1
7949       else
7950          use_gtk_awt=yes
7951          if test -z "$TOOLKIT"; then
7952             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7953          fi
7954          test -d jniinclude || mkdir jniinclude
7955       fi
7956       ;;
7957     no)
7958       use_xlib_awt=
7959       use_gtk_awt=
7960       break
7961       ;;
7962     *)
7963       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7964       exit 1
7965   esac
7966 done
7967
7968
7969
7970 if test "$use_xlib_awt" = yes; then
7971   XLIB_AWT_TRUE=
7972   XLIB_AWT_FALSE='#'
7973 else
7974   XLIB_AWT_TRUE='#'
7975   XLIB_AWT_FALSE=
7976 fi
7977
7978
7979
7980 if test "$use_gtk_awt" = yes; then
7981   GTK_AWT_TRUE=
7982   GTK_AWT_FALSE='#'
7983 else
7984   GTK_AWT_TRUE='#'
7985   GTK_AWT_FALSE=
7986 fi
7987
7988
7989 # determine whether to enable the cairo GTK Graphics2D backend
7990 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7991 if test "${enable_gtk_cairo+set}" = set; then
7992   enableval="$enable_gtk_cairo"
7993
7994 fi;
7995
7996
7997 if test "x${enable_gtk_cairo}" = xyes; then
7998   GTK_CAIRO_TRUE=
7999   GTK_CAIRO_FALSE='#'
8000 else
8001   GTK_CAIRO_TRUE='#'
8002   GTK_CAIRO_FALSE=
8003 fi
8004
8005 if test "x${enable_gtk_cairo}" = xyes
8006 then
8007
8008   succeeded=no
8009
8010   if test -z "$PKG_CONFIG"; then
8011     # Extract the first word of "pkg-config", so it can be a program name with args.
8012 set dummy pkg-config; ac_word=$2
8013 echo "$as_me:$LINENO: checking for $ac_word" >&5
8014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8015 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   case $PKG_CONFIG in
8019   [\\/]* | ?:[\\/]*)
8020   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8021   ;;
8022   *)
8023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024 for as_dir in $PATH
8025 do
8026   IFS=$as_save_IFS
8027   test -z "$as_dir" && as_dir=.
8028   for ac_exec_ext in '' $ac_executable_extensions; do
8029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8032     break 2
8033   fi
8034 done
8035 done
8036
8037   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8038   ;;
8039 esac
8040 fi
8041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8042
8043 if test -n "$PKG_CONFIG"; then
8044   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8045 echo "${ECHO_T}$PKG_CONFIG" >&6
8046 else
8047   echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8049 fi
8050
8051   fi
8052
8053   if test "$PKG_CONFIG" = "no" ; then
8054      echo "*** The pkg-config script could not be found. Make sure it is"
8055      echo "*** in your path, or set the PKG_CONFIG environment variable"
8056      echo "*** to the full path to pkg-config."
8057      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8058   else
8059      PKG_CONFIG_MIN_VERSION=0.9.0
8060      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8061         echo "$as_me:$LINENO: checking for cairo" >&5
8062 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8063
8064         if $PKG_CONFIG --exists "cairo" ; then
8065             echo "$as_me:$LINENO: result: yes" >&5
8066 echo "${ECHO_T}yes" >&6
8067             succeeded=yes
8068
8069             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8070 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8071             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8072             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8073 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8074
8075             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8076 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8077             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8078             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8079 echo "${ECHO_T}$CAIRO_LIBS" >&6
8080         else
8081             CAIRO_CFLAGS=""
8082             CAIRO_LIBS=""
8083             ## If we have a custom action on failure, don't print errors, but
8084             ## do set a variable so people can do so.
8085             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8086             echo $CAIRO_PKG_ERRORS
8087         fi
8088
8089
8090
8091      else
8092         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8093         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8094      fi
8095   fi
8096
8097   if test $succeeded = yes; then
8098      :
8099   else
8100      { { 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
8101 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;}
8102    { (exit 1); exit 1; }; }
8103   fi
8104
8105
8106   succeeded=no
8107
8108   if test -z "$PKG_CONFIG"; then
8109     # Extract the first word of "pkg-config", so it can be a program name with args.
8110 set dummy pkg-config; ac_word=$2
8111 echo "$as_me:$LINENO: checking for $ac_word" >&5
8112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8113 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116   case $PKG_CONFIG in
8117   [\\/]* | ?:[\\/]*)
8118   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8119   ;;
8120   *)
8121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124   IFS=$as_save_IFS
8125   test -z "$as_dir" && as_dir=.
8126   for ac_exec_ext in '' $ac_executable_extensions; do
8127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8130     break 2
8131   fi
8132 done
8133 done
8134
8135   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8136   ;;
8137 esac
8138 fi
8139 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8140
8141 if test -n "$PKG_CONFIG"; then
8142   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8143 echo "${ECHO_T}$PKG_CONFIG" >&6
8144 else
8145   echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6
8147 fi
8148
8149   fi
8150
8151   if test "$PKG_CONFIG" = "no" ; then
8152      echo "*** The pkg-config script could not be found. Make sure it is"
8153      echo "*** in your path, or set the PKG_CONFIG environment variable"
8154      echo "*** to the full path to pkg-config."
8155      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8156   else
8157      PKG_CONFIG_MIN_VERSION=0.9.0
8158      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8159         echo "$as_me:$LINENO: checking for pangoft2" >&5
8160 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8161
8162         if $PKG_CONFIG --exists "pangoft2" ; then
8163             echo "$as_me:$LINENO: result: yes" >&5
8164 echo "${ECHO_T}yes" >&6
8165             succeeded=yes
8166
8167             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8168 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8169             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8170             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8171 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8172
8173             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8174 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8175             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8176             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8177 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8178         else
8179             PANGOFT2_CFLAGS=""
8180             PANGOFT2_LIBS=""
8181             ## If we have a custom action on failure, don't print errors, but
8182             ## do set a variable so people can do so.
8183             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8184             echo $PANGOFT2_PKG_ERRORS
8185         fi
8186
8187
8188
8189      else
8190         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8191         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8192      fi
8193   fi
8194
8195   if test $succeeded = yes; then
8196      :
8197   else
8198      { { 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
8199 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;}
8200    { (exit 1); exit 1; }; }
8201   fi
8202
8203 fi
8204
8205
8206
8207
8208
8209 # FIXME: this should be _libs on some hosts.
8210 libsubdir=.libs
8211
8212 # Allow the GC to be disabled.  Can be useful when debugging.
8213 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8214 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8215 # Check whether --enable-java-gc or --disable-java-gc was given.
8216 if test "${enable_java_gc+set}" = set; then
8217   enableval="$enable_java_gc"
8218   GC=$enableval
8219 else
8220   GC=boehm
8221 fi;
8222 GCLIBS=
8223 GCINCS=
8224 GCDEPS=
8225 GCSPEC=
8226 JC1GCSPEC=
8227 GCTESTSPEC=
8228 case "$GC" in
8229  boehm)
8230     echo "$as_me:$LINENO: result: boehm" >&5
8231 echo "${ECHO_T}boehm" >&6
8232     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8233     JC1GCSPEC='-fuse-boehm-gc'
8234     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8235     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8236     GCOBJS=boehm.lo
8237     GCHDR=boehm-gc.h
8238     # The POSIX thread support needs to know this.
8239
8240 cat >>confdefs.h <<\_ACEOF
8241 #define HAVE_BOEHM_GC 1
8242 _ACEOF
8243
8244     ;;
8245  no)
8246     echo "$as_me:$LINENO: result: none" >&5
8247 echo "${ECHO_T}none" >&6
8248     GCHDR=no-gc.h
8249     ;;
8250  *)
8251     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8252 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8253    { (exit 1); exit 1; }; }
8254     ;;
8255 esac
8256
8257
8258
8259
8260
8261
8262           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8263
8264
8265
8266 if test "$GC" = boehm; then
8267   USING_BOEHMGC_TRUE=
8268   USING_BOEHMGC_FALSE='#'
8269 else
8270   USING_BOEHMGC_TRUE='#'
8271   USING_BOEHMGC_FALSE=
8272 fi
8273
8274
8275
8276 if test "$GC" = no; then
8277   USING_NOGC_TRUE=
8278   USING_NOGC_FALSE='#'
8279 else
8280   USING_NOGC_TRUE='#'
8281   USING_NOGC_FALSE=
8282 fi
8283
8284
8285
8286 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8287 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8288 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8289 echo "$as_me:$LINENO: result: $THREADS" >&5
8290 echo "${ECHO_T}$THREADS" >&6
8291
8292 case "$THREADS" in
8293  no | none | single)
8294     THREADS=none
8295     ;;
8296  posix | posix95 | pthreads)
8297     THREADS=posix
8298     case "$host" in
8299      *-*-linux*)
8300
8301 cat >>confdefs.h <<\_ACEOF
8302 #define LINUX_THREADS 1
8303 _ACEOF
8304
8305         ;;
8306     esac
8307     ;;
8308  win32)
8309     ;;
8310  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8311     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8312 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8313    { (exit 1); exit 1; }; }
8314     ;;
8315  *)
8316     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8317 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8318    { (exit 1); exit 1; }; }
8319     ;;
8320 esac
8321
8322 THREADCXXFLAGS=
8323 THREADLDFLAGS=
8324 THREADLIBS=
8325 THREADINCS=
8326 THREADDEPS=
8327 THREADH=
8328 THREADSPEC=
8329 case "$THREADS" in
8330  posix)
8331     case "$host" in
8332      *-*-cygwin*)
8333         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8334         ;;
8335      *-*-freebsd[1234]*)
8336         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8337         # merely adds pthread_* functions) but it does have a -pthread switch
8338         # which is required at link-time to select -lc_r *instead* of -lc.
8339         THREADLDFLAGS=-pthread
8340         # Don't set THREADSPEC here as might be expected since -pthread is
8341         # not processed when found within a spec file, it must come from
8342         # the command line.  For now, the user must provide the -pthread
8343         # switch to link code compiled with gcj.  In future, consider adding
8344         # support for weak references to pthread_* functions ala gthr.h API.
8345         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8346         ;;
8347      *-*-freebsd*)
8348         # FreeBSD 5 implements a model much closer to other modern UNIX
8349         # which support threads.  However, it still does not support
8350         # -lpthread.
8351         THREADLDFLAGS=-pthread
8352         THREADSPEC=-lc_r
8353         ;;
8354      alpha*-dec-osf*)
8355         THREADCXXFLAGS=-pthread
8356         # boehm-gc needs some functions from librt, so link that too.
8357         THREADLIBS='-lpthread -lrt'
8358         THREADSPEC='-lpthread -lrt'
8359         ;;
8360      *)
8361         THREADLIBS=-lpthread
8362         THREADSPEC=-lpthread
8363         ;;
8364     esac
8365     THREADH=posix-threads.h
8366     # MIT pthreads doesn't seem to have the mutexattr functions.
8367     # But for now we don't check for it.  We just assume you aren't
8368     # using MIT pthreads.
8369
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8372 _ACEOF
8373
8374
8375     # If we're using the Boehm GC, then we happen to know that it
8376     # defines _REENTRANT, so we don't bother.  Eww.
8377     if test "$GC" != boehm; then
8378
8379 cat >>confdefs.h <<\_ACEOF
8380 #define _REENTRANT 1
8381 _ACEOF
8382
8383     fi
8384
8385 cat >>confdefs.h <<\_ACEOF
8386 #define _POSIX_PTHREAD_SEMANTICS 1
8387 _ACEOF
8388
8389     ;;
8390
8391  win32)
8392     THREADH=win32-threads.h
8393     ;;
8394
8395  none)
8396     THREADH=no-threads.h
8397     ;;
8398 esac
8399           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409 if test "$THREADS" = posix; then
8410   USING_POSIX_THREADS_TRUE=
8411   USING_POSIX_THREADS_FALSE='#'
8412 else
8413   USING_POSIX_THREADS_TRUE='#'
8414   USING_POSIX_THREADS_FALSE=
8415 fi
8416
8417
8418
8419 if test "$THREADS" = win32; then
8420   USING_WIN32_THREADS_TRUE=
8421   USING_WIN32_THREADS_FALSE='#'
8422 else
8423   USING_WIN32_THREADS_TRUE='#'
8424   USING_WIN32_THREADS_FALSE=
8425 fi
8426
8427
8428
8429 if test "$THREADS" = none; then
8430   USING_NO_THREADS_TRUE=
8431   USING_NO_THREADS_FALSE='#'
8432 else
8433   USING_NO_THREADS_TRUE='#'
8434   USING_NO_THREADS_FALSE=
8435 fi
8436
8437
8438 if test -d sysdep; then true; else mkdir sysdep; fi
8439           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8440
8441
8442 HASH_SYNC_SPEC=
8443 # Hash synchronization is only useful with posix threads right now.
8444 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8445    HASH_SYNC_SPEC=-fhash-synchronization
8446
8447 cat >>confdefs.h <<\_ACEOF
8448 #define JV_HASH_SYNCHRONIZATION 1
8449 _ACEOF
8450
8451 fi
8452
8453
8454
8455
8456
8457 if test "$GCC" = yes; then
8458   USING_GCC_TRUE=
8459   USING_GCC_FALSE='#'
8460 else
8461   USING_GCC_TRUE='#'
8462   USING_GCC_FALSE=
8463 fi
8464
8465
8466 # We're in the tree with gcc, and need to include some of its headers.
8467 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8468
8469
8470 if test "${with_gcc_version_trigger+set}" = set; then
8471   gcc_version_trigger=$with_gcc_version_trigger
8472 else
8473   gcc_version_trigger=$srcdir/../gcc/version.c
8474 fi
8475 if test -f "${gcc_version_trigger}"; then
8476   gcc_version_full=`grep version_string "${gcc_version_trigger}" | sed -e 's/.*"\([^"]*\)".*/\1/'`
8477 else
8478   gcc_version_full=`$CC -v 2>&1 | sed -n 's/^gcc version //p'`
8479 fi
8480 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8481
8482
8483
8484
8485
8486 # Figure out where generated headers like libgcj-config.h get installed.
8487 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8488
8489
8490 if test "x${with_newlib}" = "xyes"; then
8491    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8492    # may not work correctly, because the compiler may not be able to
8493    # link executables.
8494
8495    # We assume newlib.  This lets us hard-code the functions we know
8496    # we'll have.
8497
8498 cat >>confdefs.h <<\_ACEOF
8499 #define HAVE_MEMMOVE 1
8500 _ACEOF
8501
8502
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_MEMCPY 1
8505 _ACEOF
8506
8507
8508 cat >>confdefs.h <<\_ACEOF
8509 #define HAVE_STRERROR 1
8510 _ACEOF
8511
8512
8513 cat >>confdefs.h <<\_ACEOF
8514 #define HAVE_TIME 1
8515 _ACEOF
8516
8517
8518 cat >>confdefs.h <<\_ACEOF
8519 #define HAVE_GMTIME_R 1
8520 _ACEOF
8521
8522
8523 cat >>confdefs.h <<\_ACEOF
8524 #define HAVE_LOCALTIME_R 1
8525 _ACEOF
8526
8527
8528 cat >>confdefs.h <<\_ACEOF
8529 #define HAVE_USLEEP_DECL 1
8530 _ACEOF
8531
8532    # This is only for POSIX threads.
8533
8534 cat >>confdefs.h <<\_ACEOF
8535 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8536 _ACEOF
8537
8538    # We also assume we are using gcc, which provides alloca.
8539    cat >>confdefs.h <<\_ACEOF
8540 #define HAVE_ALLOCA 1
8541 _ACEOF
8542
8543
8544    # Assume we do not have getuid and friends.
8545
8546 cat >>confdefs.h <<\_ACEOF
8547 #define NO_GETUID 1
8548 _ACEOF
8549
8550    PLATFORMNET=NoNet
8551 else
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8585                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8586                    access stat mkdir rename rmdir unlink realpath utime chmod \
8587                    nl_langinfo setlocale \
8588                    inet_pton uname inet_ntoa \
8589                    fork execvp pipe sigaction ftruncate
8590 do
8591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8592 echo "$as_me:$LINENO: checking for $ac_func" >&5
8593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8594 if eval "test \"\${$as_ac_var+set}\" = set"; then
8595   echo $ECHO_N "(cached) $ECHO_C" >&6
8596 else
8597   if test x$gcc_no_link = xyes; then
8598   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8599 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8600    { (exit 1); exit 1; }; }
8601 fi
8602 cat >conftest.$ac_ext <<_ACEOF
8603 /* confdefs.h.  */
8604 _ACEOF
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h.  */
8608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8610 #define $ac_func innocuous_$ac_func
8611
8612 /* System header to define __stub macros and hopefully few prototypes,
8613     which can conflict with char $ac_func (); below.
8614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8615     <limits.h> exists even on freestanding compilers.  */
8616
8617 #ifdef __STDC__
8618 # include <limits.h>
8619 #else
8620 # include <assert.h>
8621 #endif
8622
8623 #undef $ac_func
8624
8625 /* Override any gcc2 internal prototype to avoid an error.  */
8626 #ifdef __cplusplus
8627 extern "C"
8628 {
8629 #endif
8630 /* We use char because int might match the return type of a gcc2
8631    builtin and then its argument prototype would still apply.  */
8632 char $ac_func ();
8633 /* The GNU C library defines this for functions which it implements
8634     to always fail with ENOSYS.  Some functions are actually named
8635     something starting with __ and the normal name is an alias.  */
8636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8637 choke me
8638 #else
8639 char (*f) () = $ac_func;
8640 #endif
8641 #ifdef __cplusplus
8642 }
8643 #endif
8644
8645 int
8646 main ()
8647 {
8648 return f != $ac_func;
8649   ;
8650   return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655   (eval $ac_link) 2>conftest.er1
8656   ac_status=$?
8657   grep -v '^ *+' conftest.er1 >conftest.err
8658   rm -f conftest.er1
8659   cat conftest.err >&5
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); } &&
8662          { ac_try='test -z "$ac_c_werror_flag"
8663                          || test ! -s conftest.err'
8664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665   (eval $ac_try) 2>&5
8666   ac_status=$?
8667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668   (exit $ac_status); }; } &&
8669          { ac_try='test -s conftest$ac_exeext'
8670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671   (eval $ac_try) 2>&5
8672   ac_status=$?
8673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674   (exit $ac_status); }; }; then
8675   eval "$as_ac_var=yes"
8676 else
8677   echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 eval "$as_ac_var=no"
8681 fi
8682 rm -f conftest.err conftest.$ac_objext \
8683       conftest$ac_exeext conftest.$ac_ext
8684 fi
8685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8687 if test `eval echo '${'$as_ac_var'}'` = yes; then
8688   cat >>confdefs.h <<_ACEOF
8689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8690 _ACEOF
8691
8692 fi
8693 done
8694
8695
8696
8697 for ac_func in inet_aton inet_addr
8698 do
8699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700 echo "$as_me:$LINENO: checking for $ac_func" >&5
8701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_var+set}\" = set"; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   if test x$gcc_no_link = xyes; then
8706   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8707 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8708    { (exit 1); exit 1; }; }
8709 fi
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8718 #define $ac_func innocuous_$ac_func
8719
8720 /* System header to define __stub macros and hopefully few prototypes,
8721     which can conflict with char $ac_func (); below.
8722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8723     <limits.h> exists even on freestanding compilers.  */
8724
8725 #ifdef __STDC__
8726 # include <limits.h>
8727 #else
8728 # include <assert.h>
8729 #endif
8730
8731 #undef $ac_func
8732
8733 /* Override any gcc2 internal prototype to avoid an error.  */
8734 #ifdef __cplusplus
8735 extern "C"
8736 {
8737 #endif
8738 /* We use char because int might match the return type of a gcc2
8739    builtin and then its argument prototype would still apply.  */
8740 char $ac_func ();
8741 /* The GNU C library defines this for functions which it implements
8742     to always fail with ENOSYS.  Some functions are actually named
8743     something starting with __ and the normal name is an alias.  */
8744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8745 choke me
8746 #else
8747 char (*f) () = $ac_func;
8748 #endif
8749 #ifdef __cplusplus
8750 }
8751 #endif
8752
8753 int
8754 main ()
8755 {
8756 return f != $ac_func;
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763   (eval $ac_link) 2>conftest.er1
8764   ac_status=$?
8765   grep -v '^ *+' conftest.er1 >conftest.err
8766   rm -f conftest.er1
8767   cat conftest.err >&5
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); } &&
8770          { ac_try='test -z "$ac_c_werror_flag"
8771                          || test ! -s conftest.err'
8772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773   (eval $ac_try) 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest$ac_exeext'
8778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779   (eval $ac_try) 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   eval "$as_ac_var=yes"
8784 else
8785   echo "$as_me: failed program was:" >&5
8786 sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 eval "$as_ac_var=no"
8789 fi
8790 rm -f conftest.err conftest.$ac_objext \
8791       conftest$ac_exeext conftest.$ac_ext
8792 fi
8793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8795 if test `eval echo '${'$as_ac_var'}'` = yes; then
8796   cat >>confdefs.h <<_ACEOF
8797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8798 _ACEOF
8799  break
8800 fi
8801 done
8802
8803    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8804 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8805 if test "${ac_cv_header_stdc+set}" = set; then
8806   echo $ECHO_N "(cached) $ECHO_C" >&6
8807 else
8808   cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814 #include <stdlib.h>
8815 #include <stdarg.h>
8816 #include <string.h>
8817 #include <float.h>
8818
8819 int
8820 main ()
8821 {
8822
8823   ;
8824   return 0;
8825 }
8826 _ACEOF
8827 rm -f conftest.$ac_objext
8828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8829   (eval $ac_compile) 2>conftest.er1
8830   ac_status=$?
8831   grep -v '^ *+' conftest.er1 >conftest.err
8832   rm -f conftest.er1
8833   cat conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -z "$ac_c_werror_flag"
8837                          || test ! -s conftest.err'
8838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839   (eval $ac_try) 2>&5
8840   ac_status=$?
8841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842   (exit $ac_status); }; } &&
8843          { ac_try='test -s conftest.$ac_objext'
8844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845   (eval $ac_try) 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   ac_cv_header_stdc=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854 ac_cv_header_stdc=no
8855 fi
8856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8857
8858 if test $ac_cv_header_stdc = yes; then
8859   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8860   cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866 #include <string.h>
8867
8868 _ACEOF
8869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8870   $EGREP "memchr" >/dev/null 2>&1; then
8871   :
8872 else
8873   ac_cv_header_stdc=no
8874 fi
8875 rm -f conftest*
8876
8877 fi
8878
8879 if test $ac_cv_header_stdc = yes; then
8880   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8881   cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 #include <stdlib.h>
8888
8889 _ACEOF
8890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891   $EGREP "free" >/dev/null 2>&1; then
8892   :
8893 else
8894   ac_cv_header_stdc=no
8895 fi
8896 rm -f conftest*
8897
8898 fi
8899
8900 if test $ac_cv_header_stdc = yes; then
8901   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8902   if test "$cross_compiling" = yes; then
8903   :
8904 else
8905   cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911 #include <ctype.h>
8912 #if ((' ' & 0x0FF) == 0x020)
8913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8915 #else
8916 # define ISLOWER(c) \
8917                    (('a' <= (c) && (c) <= 'i') \
8918                      || ('j' <= (c) && (c) <= 'r') \
8919                      || ('s' <= (c) && (c) <= 'z'))
8920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8921 #endif
8922
8923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8924 int
8925 main ()
8926 {
8927   int i;
8928   for (i = 0; i < 256; i++)
8929     if (XOR (islower (i), ISLOWER (i))
8930         || toupper (i) != TOUPPER (i))
8931       exit(2);
8932   exit (0);
8933 }
8934 _ACEOF
8935 rm -f conftest$ac_exeext
8936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8937   (eval $ac_link) 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942   (eval $ac_try) 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   :
8947 else
8948   echo "$as_me: program exited with status $ac_status" >&5
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952 ( exit $ac_status )
8953 ac_cv_header_stdc=no
8954 fi
8955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8956 fi
8957 fi
8958 fi
8959 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8961 if test $ac_cv_header_stdc = yes; then
8962
8963 cat >>confdefs.h <<\_ACEOF
8964 #define STDC_HEADERS 1
8965 _ACEOF
8966
8967 fi
8968
8969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8980                   inttypes.h stdint.h unistd.h
8981 do
8982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8983 echo "$as_me:$LINENO: checking for $ac_header" >&5
8984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988   cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h.  */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h.  */
8994 $ac_includes_default
8995
8996 #include <$ac_header>
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000   (eval $ac_compile) 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -z "$ac_c_werror_flag"
9008                          || test ! -s conftest.err'
9009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9010   (eval $ac_try) 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; } &&
9014          { ac_try='test -s conftest.$ac_objext'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; }; then
9020   eval "$as_ac_Header=yes"
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025 eval "$as_ac_Header=no"
9026 fi
9027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9032   cat >>confdefs.h <<_ACEOF
9033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9034 _ACEOF
9035
9036 fi
9037
9038 done
9039
9040
9041
9042
9043
9044 for ac_header in execinfo.h unistd.h dlfcn.h
9045 do
9046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9048   echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9051   echo $ECHO_N "(cached) $ECHO_C" >&6
9052 fi
9053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9055 else
9056   # Is the header compilable?
9057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9059 cat >conftest.$ac_ext <<_ACEOF
9060 /* confdefs.h.  */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h.  */
9065 $ac_includes_default
9066 #include <$ac_header>
9067 _ACEOF
9068 rm -f conftest.$ac_objext
9069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9070   (eval $ac_compile) 2>conftest.er1
9071   ac_status=$?
9072   grep -v '^ *+' conftest.er1 >conftest.err
9073   rm -f conftest.er1
9074   cat conftest.err >&5
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); } &&
9077          { ac_try='test -z "$ac_c_werror_flag"
9078                          || test ! -s conftest.err'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; } &&
9084          { ac_try='test -s conftest.$ac_objext'
9085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086   (eval $ac_try) 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); }; }; then
9090   ac_header_compiler=yes
9091 else
9092   echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095 ac_header_compiler=no
9096 fi
9097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9099 echo "${ECHO_T}$ac_header_compiler" >&6
9100
9101 # Is the header present?
9102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9104 cat >conftest.$ac_ext <<_ACEOF
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110 #include <$ac_header>
9111 _ACEOF
9112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9113   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9114   ac_status=$?
9115   grep -v '^ *+' conftest.er1 >conftest.err
9116   rm -f conftest.er1
9117   cat conftest.err >&5
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); } >/dev/null; then
9120   if test -s conftest.err; then
9121     ac_cpp_err=$ac_c_preproc_warn_flag
9122     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9123   else
9124     ac_cpp_err=
9125   fi
9126 else
9127   ac_cpp_err=yes
9128 fi
9129 if test -z "$ac_cpp_err"; then
9130   ac_header_preproc=yes
9131 else
9132   echo "$as_me: failed program was:" >&5
9133 sed 's/^/| /' conftest.$ac_ext >&5
9134
9135   ac_header_preproc=no
9136 fi
9137 rm -f conftest.err conftest.$ac_ext
9138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9139 echo "${ECHO_T}$ac_header_preproc" >&6
9140
9141 # So?  What about this header?
9142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9143   yes:no: )
9144     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9146     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9148     ac_header_preproc=yes
9149     ;;
9150   no:yes:* )
9151     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9154 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9158 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9161     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9163     (
9164       cat <<\_ASBOX
9165 ## ---------------------------------- ##
9166 ## Report this to the libjava lists.  ##
9167 ## ---------------------------------- ##
9168 _ASBOX
9169     ) |
9170       sed "s/^/$as_me: WARNING:     /" >&2
9171     ;;
9172 esac
9173 echo "$as_me:$LINENO: checking for $ac_header" >&5
9174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   eval "$as_ac_Header=\$ac_header_preproc"
9179 fi
9180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9182
9183 fi
9184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9185   cat >>confdefs.h <<_ACEOF
9186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9187 _ACEOF
9188
9189 fi
9190
9191 done
9192
9193    echo "$as_me:$LINENO: checking for backtrace" >&5
9194 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9195 if test "${ac_cv_func_backtrace+set}" = set; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198   if test x$gcc_no_link = xyes; then
9199   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9201    { (exit 1); exit 1; }; }
9202 fi
9203 cat >conftest.$ac_ext <<_ACEOF
9204 /* confdefs.h.  */
9205 _ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h.  */
9209 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9211 #define backtrace innocuous_backtrace
9212
9213 /* System header to define __stub macros and hopefully few prototypes,
9214     which can conflict with char backtrace (); below.
9215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9216     <limits.h> exists even on freestanding compilers.  */
9217
9218 #ifdef __STDC__
9219 # include <limits.h>
9220 #else
9221 # include <assert.h>
9222 #endif
9223
9224 #undef backtrace
9225
9226 /* Override any gcc2 internal prototype to avoid an error.  */
9227 #ifdef __cplusplus
9228 extern "C"
9229 {
9230 #endif
9231 /* We use char because int might match the return type of a gcc2
9232    builtin and then its argument prototype would still apply.  */
9233 char backtrace ();
9234 /* The GNU C library defines this for functions which it implements
9235     to always fail with ENOSYS.  Some functions are actually named
9236     something starting with __ and the normal name is an alias.  */
9237 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9238 choke me
9239 #else
9240 char (*f) () = backtrace;
9241 #endif
9242 #ifdef __cplusplus
9243 }
9244 #endif
9245
9246 int
9247 main ()
9248 {
9249 return f != backtrace;
9250   ;
9251   return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256   (eval $ac_link) 2>conftest.er1
9257   ac_status=$?
9258   grep -v '^ *+' conftest.er1 >conftest.err
9259   rm -f conftest.er1
9260   cat conftest.err >&5
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); } &&
9263          { ac_try='test -z "$ac_c_werror_flag"
9264                          || test ! -s conftest.err'
9265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266   (eval $ac_try) 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; } &&
9270          { ac_try='test -s conftest$ac_exeext'
9271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272   (eval $ac_try) 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); }; }; then
9276   ac_cv_func_backtrace=yes
9277 else
9278   echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 ac_cv_func_backtrace=no
9282 fi
9283 rm -f conftest.err conftest.$ac_objext \
9284       conftest$ac_exeext conftest.$ac_ext
9285 fi
9286 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9287 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9288 if test $ac_cv_func_backtrace = yes; then
9289
9290      case "$host" in
9291        ia64-*-linux*)
9292          # Has broken backtrace()
9293          ;;
9294        mips*-*-linux*)
9295          # Has broken backtrace(), but we supply our own.
9296          if test -d sysdep; then true; else mkdir -p sysdep; fi
9297          supply_backtrace=yes
9298
9299 cat >>confdefs.h <<\_ACEOF
9300 #define HAVE_BACKTRACE 1
9301 _ACEOF
9302
9303          ;;
9304        *)
9305
9306 cat >>confdefs.h <<\_ACEOF
9307 #define HAVE_BACKTRACE 1
9308 _ACEOF
9309
9310          ;;
9311      esac
9312
9313 else
9314
9315      case "$host" in
9316        *mingw*)
9317          # Has backtrace() defined in libgcj itself
9318
9319 cat >>confdefs.h <<\_ACEOF
9320 #define HAVE_BACKTRACE 1
9321 _ACEOF
9322
9323          ;;
9324      esac
9325
9326 fi
9327
9328
9329    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9330 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9331 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9332   echo $ECHO_N "(cached) $ECHO_C" >&6
9333 else
9334   ac_check_lib_save_LIBS=$LIBS
9335 LIBS="-ldl  $LIBS"
9336 if test x$gcc_no_link = xyes; then
9337   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9339    { (exit 1); exit 1; }; }
9340 fi
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347
9348 /* Override any gcc2 internal prototype to avoid an error.  */
9349 #ifdef __cplusplus
9350 extern "C"
9351 #endif
9352 /* We use char because int might match the return type of a gcc2
9353    builtin and then its argument prototype would still apply.  */
9354 char dladdr ();
9355 int
9356 main ()
9357 {
9358 dladdr ();
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365   (eval $ac_link) 2>conftest.er1
9366   ac_status=$?
9367   grep -v '^ *+' conftest.er1 >conftest.err
9368   rm -f conftest.er1
9369   cat conftest.err >&5
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -z "$ac_c_werror_flag"
9373                          || test ! -s conftest.err'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; } &&
9379          { ac_try='test -s conftest$ac_exeext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   ac_cv_lib_dl_dladdr=yes
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 ac_cv_lib_dl_dladdr=no
9391 fi
9392 rm -f conftest.err conftest.$ac_objext \
9393       conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9395 fi
9396 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9397 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9398 if test $ac_cv_lib_dl_dladdr = yes; then
9399
9400      if test "x${disable_dladdr}" = "xyes"; then
9401        #Broken dladdr().
9402        true
9403      else
9404
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_DLADDR 1
9407 _ACEOF
9408
9409      fi
9410
9411 fi
9412
9413    if test x"$build" = x"$host"; then
9414      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9415 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9416 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   test "$cross_compiling" = yes &&
9420   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9421 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9422    { (exit 1); exit 1; }; }
9423 if test -r "/proc/self/exe"; then
9424   ac_cv_file__proc_self_exe=yes
9425 else
9426   ac_cv_file__proc_self_exe=no
9427 fi
9428 fi
9429 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9430 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9431 if test $ac_cv_file__proc_self_exe = yes; then
9432
9433 cat >>confdefs.h <<_ACEOF
9434 #define HAVE__PROC_SELF_EXE 1
9435 _ACEOF
9436
9437
9438
9439 cat >>confdefs.h <<\_ACEOF
9440 #define HAVE_PROC_SELF_EXE 1
9441 _ACEOF
9442
9443 fi
9444
9445    else
9446      case $host in
9447      *-linux*)
9448
9449 cat >>confdefs.h <<\_ACEOF
9450 #define HAVE_PROC_SELF_EXE 1
9451 _ACEOF
9452
9453        ;;
9454      esac
9455    fi
9456
9457
9458       if test "X$prefix" = "XNONE"; then
9459     acl_final_prefix="$ac_default_prefix"
9460   else
9461     acl_final_prefix="$prefix"
9462   fi
9463   if test "X$exec_prefix" = "XNONE"; then
9464     acl_final_exec_prefix='${prefix}'
9465   else
9466     acl_final_exec_prefix="$exec_prefix"
9467   fi
9468   acl_save_prefix="$prefix"
9469   prefix="$acl_final_prefix"
9470   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9471   prefix="$acl_save_prefix"
9472
9473
9474 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9475 if test "${with_gnu_ld+set}" = set; then
9476   withval="$with_gnu_ld"
9477   test "$withval" = no || with_gnu_ld=yes
9478 else
9479   with_gnu_ld=no
9480 fi;
9481 # Prepare PATH_SEPARATOR.
9482 # The user is always right.
9483 if test "${PATH_SEPARATOR+set}" != set; then
9484   echo "#! /bin/sh" >conf$$.sh
9485   echo  "exit 0"   >>conf$$.sh
9486   chmod +x conf$$.sh
9487   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9488     PATH_SEPARATOR=';'
9489   else
9490     PATH_SEPARATOR=:
9491   fi
9492   rm -f conf$$.sh
9493 fi
9494 ac_prog=ld
9495 if test "$GCC" = yes; then
9496   # Check if gcc -print-prog-name=ld gives a path.
9497   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9498 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9499   case $host in
9500   *-*-mingw*)
9501     # gcc leaves a trailing carriage return which upsets mingw
9502     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9503   *)
9504     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9505   esac
9506   case $ac_prog in
9507     # Accept absolute paths.
9508     [\\/]* | [A-Za-z]:[\\/]*)
9509       re_direlt='/[^/][^/]*/\.\./'
9510       # Canonicalize the path of ld
9511       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9512       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9513         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9514       done
9515       test -z "$LD" && LD="$ac_prog"
9516       ;;
9517   "")
9518     # If it fails, then pretend we aren't using GCC.
9519     ac_prog=ld
9520     ;;
9521   *)
9522     # If it is relative, then search for the first ld in PATH.
9523     with_gnu_ld=unknown
9524     ;;
9525   esac
9526 elif test "$with_gnu_ld" = yes; then
9527   echo "$as_me:$LINENO: checking for GNU ld" >&5
9528 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9529 else
9530   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9531 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9532 fi
9533 if test "${acl_cv_path_LD+set}" = set; then
9534   echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536   if test -z "$LD"; then
9537   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9538   for ac_dir in $PATH; do
9539     test -z "$ac_dir" && ac_dir=.
9540     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9541       acl_cv_path_LD="$ac_dir/$ac_prog"
9542       # Check to see if the program is GNU ld.  I'd rather use --version,
9543       # but apparently some GNU ld's only accept -v.
9544       # Break only if it was the GNU/non-GNU ld that we prefer.
9545       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9546         test "$with_gnu_ld" != no && break
9547       else
9548         test "$with_gnu_ld" != yes && break
9549       fi
9550     fi
9551   done
9552   IFS="$ac_save_ifs"
9553 else
9554   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9555 fi
9556 fi
9557
9558 LD="$acl_cv_path_LD"
9559 if test -n "$LD"; then
9560   echo "$as_me:$LINENO: result: $LD" >&5
9561 echo "${ECHO_T}$LD" >&6
9562 else
9563   echo "$as_me:$LINENO: result: no" >&5
9564 echo "${ECHO_T}no" >&6
9565 fi
9566 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9567 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9568    { (exit 1); exit 1; }; }
9569 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9570 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9571 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9572   echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9575 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9576   acl_cv_prog_gnu_ld=yes
9577 else
9578   acl_cv_prog_gnu_ld=no
9579 fi
9580 fi
9581 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9582 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9583 with_gnu_ld=$acl_cv_prog_gnu_ld
9584
9585
9586
9587                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9588 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9589 if test "${acl_cv_rpath+set}" = set; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592
9593     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9594     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9595     . ./conftest.sh
9596     rm -f ./conftest.sh
9597     acl_cv_rpath=done
9598
9599 fi
9600 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9601 echo "${ECHO_T}$acl_cv_rpath" >&6
9602   wl="$acl_cv_wl"
9603   libext="$acl_cv_libext"
9604   shlibext="$acl_cv_shlibext"
9605   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9606   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9607   hardcode_direct="$acl_cv_hardcode_direct"
9608   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9609     # Check whether --enable-rpath or --disable-rpath was given.
9610 if test "${enable_rpath+set}" = set; then
9611   enableval="$enable_rpath"
9612   :
9613 else
9614   enable_rpath=yes
9615 fi;
9616
9617
9618
9619
9620
9621
9622
9623     use_additional=yes
9624
9625   acl_save_prefix="$prefix"
9626   prefix="$acl_final_prefix"
9627   acl_save_exec_prefix="$exec_prefix"
9628   exec_prefix="$acl_final_exec_prefix"
9629
9630     eval additional_includedir=\"$includedir\"
9631     eval additional_libdir=\"$libdir\"
9632
9633   exec_prefix="$acl_save_exec_prefix"
9634   prefix="$acl_save_prefix"
9635
9636
9637 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9638 if test "${with_libiconv_prefix+set}" = set; then
9639   withval="$with_libiconv_prefix"
9640
9641     if test "X$withval" = "Xno"; then
9642       use_additional=no
9643     else
9644       if test "X$withval" = "X"; then
9645
9646   acl_save_prefix="$prefix"
9647   prefix="$acl_final_prefix"
9648   acl_save_exec_prefix="$exec_prefix"
9649   exec_prefix="$acl_final_exec_prefix"
9650
9651           eval additional_includedir=\"$includedir\"
9652           eval additional_libdir=\"$libdir\"
9653
9654   exec_prefix="$acl_save_exec_prefix"
9655   prefix="$acl_save_prefix"
9656
9657       else
9658         additional_includedir="$withval/include"
9659         additional_libdir="$withval/lib"
9660       fi
9661     fi
9662
9663 fi;
9664       LIBICONV=
9665   LTLIBICONV=
9666   INCICONV=
9667   rpathdirs=
9668   ltrpathdirs=
9669   names_already_handled=
9670   names_next_round='iconv '
9671   while test -n "$names_next_round"; do
9672     names_this_round="$names_next_round"
9673     names_next_round=
9674     for name in $names_this_round; do
9675       already_handled=
9676       for n in $names_already_handled; do
9677         if test "$n" = "$name"; then
9678           already_handled=yes
9679           break
9680         fi
9681       done
9682       if test -z "$already_handled"; then
9683         names_already_handled="$names_already_handled $name"
9684                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9685         eval value=\"\$HAVE_LIB$uppername\"
9686         if test -n "$value"; then
9687           if test "$value" = yes; then
9688             eval value=\"\$LIB$uppername\"
9689             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9690             eval value=\"\$LTLIB$uppername\"
9691             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9692           else
9693                                     :
9694           fi
9695         else
9696                               found_dir=
9697           found_la=
9698           found_so=
9699           found_a=
9700           if test $use_additional = yes; then
9701             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9702               found_dir="$additional_libdir"
9703               found_so="$additional_libdir/lib$name.$shlibext"
9704               if test -f "$additional_libdir/lib$name.la"; then
9705                 found_la="$additional_libdir/lib$name.la"
9706               fi
9707             else
9708               if test -f "$additional_libdir/lib$name.$libext"; then
9709                 found_dir="$additional_libdir"
9710                 found_a="$additional_libdir/lib$name.$libext"
9711                 if test -f "$additional_libdir/lib$name.la"; then
9712                   found_la="$additional_libdir/lib$name.la"
9713                 fi
9714               fi
9715             fi
9716           fi
9717           if test "X$found_dir" = "X"; then
9718             for x in $LDFLAGS $LTLIBICONV; do
9719
9720   acl_save_prefix="$prefix"
9721   prefix="$acl_final_prefix"
9722   acl_save_exec_prefix="$exec_prefix"
9723   exec_prefix="$acl_final_exec_prefix"
9724   eval x=\"$x\"
9725   exec_prefix="$acl_save_exec_prefix"
9726   prefix="$acl_save_prefix"
9727
9728               case "$x" in
9729                 -L*)
9730                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9731                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9732                     found_dir="$dir"
9733                     found_so="$dir/lib$name.$shlibext"
9734                     if test -f "$dir/lib$name.la"; then
9735                       found_la="$dir/lib$name.la"
9736                     fi
9737                   else
9738                     if test -f "$dir/lib$name.$libext"; then
9739                       found_dir="$dir"
9740                       found_a="$dir/lib$name.$libext"
9741                       if test -f "$dir/lib$name.la"; then
9742                         found_la="$dir/lib$name.la"
9743                       fi
9744                     fi
9745                   fi
9746                   ;;
9747               esac
9748               if test "X$found_dir" != "X"; then
9749                 break
9750               fi
9751             done
9752           fi
9753           if test "X$found_dir" != "X"; then
9754                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9755             if test "X$found_so" != "X"; then
9756                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9757                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9758               else
9759                                                                                 haveit=
9760                 for x in $ltrpathdirs; do
9761                   if test "X$x" = "X$found_dir"; then
9762                     haveit=yes
9763                     break
9764                   fi
9765                 done
9766                 if test -z "$haveit"; then
9767                   ltrpathdirs="$ltrpathdirs $found_dir"
9768                 fi
9769                                 if test "$hardcode_direct" = yes; then
9770                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9771                 else
9772                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9773                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9774                                                             haveit=
9775                     for x in $rpathdirs; do
9776                       if test "X$x" = "X$found_dir"; then
9777                         haveit=yes
9778                         break
9779                       fi
9780                     done
9781                     if test -z "$haveit"; then
9782                       rpathdirs="$rpathdirs $found_dir"
9783                     fi
9784                   else
9785                                                                                 haveit=
9786                     for x in $LDFLAGS $LIBICONV; do
9787
9788   acl_save_prefix="$prefix"
9789   prefix="$acl_final_prefix"
9790   acl_save_exec_prefix="$exec_prefix"
9791   exec_prefix="$acl_final_exec_prefix"
9792   eval x=\"$x\"
9793   exec_prefix="$acl_save_exec_prefix"
9794   prefix="$acl_save_prefix"
9795
9796                       if test "X$x" = "X-L$found_dir"; then
9797                         haveit=yes
9798                         break
9799                       fi
9800                     done
9801                     if test -z "$haveit"; then
9802                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9803                     fi
9804                     if test "$hardcode_minus_L" != no; then
9805                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9806                     else
9807                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9808                     fi
9809                   fi
9810                 fi
9811               fi
9812             else
9813               if test "X$found_a" != "X"; then
9814                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9815               else
9816                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9817               fi
9818             fi
9819                         additional_includedir=
9820             case "$found_dir" in
9821               */lib | */lib/)
9822                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9823                 additional_includedir="$basedir/include"
9824                 ;;
9825             esac
9826             if test "X$additional_includedir" != "X"; then
9827                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9828                 haveit=
9829                 if test "X$additional_includedir" = "X/usr/local/include"; then
9830                   if test -n "$GCC"; then
9831                     case $host_os in
9832                       linux*) haveit=yes;;
9833                     esac
9834                   fi
9835                 fi
9836                 if test -z "$haveit"; then
9837                   for x in $CPPFLAGS $INCICONV; do
9838
9839   acl_save_prefix="$prefix"
9840   prefix="$acl_final_prefix"
9841   acl_save_exec_prefix="$exec_prefix"
9842   exec_prefix="$acl_final_exec_prefix"
9843   eval x=\"$x\"
9844   exec_prefix="$acl_save_exec_prefix"
9845   prefix="$acl_save_prefix"
9846
9847                     if test "X$x" = "X-I$additional_includedir"; then
9848                       haveit=yes
9849                       break
9850                     fi
9851                   done
9852                   if test -z "$haveit"; then
9853                     if test -d "$additional_includedir"; then
9854                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9855                     fi
9856                   fi
9857                 fi
9858               fi
9859             fi
9860                         if test -n "$found_la"; then
9861                                                         save_libdir="$libdir"
9862               case "$found_la" in
9863                 */* | *\\*) . "$found_la" ;;
9864                 *) . "./$found_la" ;;
9865               esac
9866               libdir="$save_libdir"
9867                             for dep in $dependency_libs; do
9868                 case "$dep" in
9869                   -L*)
9870                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9871                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9872                       haveit=
9873                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9874                         if test -n "$GCC"; then
9875                           case $host_os in
9876                             linux*) haveit=yes;;
9877                           esac
9878                         fi
9879                       fi
9880                       if test -z "$haveit"; then
9881                         haveit=
9882                         for x in $LDFLAGS $LIBICONV; do
9883
9884   acl_save_prefix="$prefix"
9885   prefix="$acl_final_prefix"
9886   acl_save_exec_prefix="$exec_prefix"
9887   exec_prefix="$acl_final_exec_prefix"
9888   eval x=\"$x\"
9889   exec_prefix="$acl_save_exec_prefix"
9890   prefix="$acl_save_prefix"
9891
9892                           if test "X$x" = "X-L$additional_libdir"; then
9893                             haveit=yes
9894                             break
9895                           fi
9896                         done
9897                         if test -z "$haveit"; then
9898                           if test -d "$additional_libdir"; then
9899                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9900                           fi
9901                         fi
9902                         haveit=
9903                         for x in $LDFLAGS $LTLIBICONV; do
9904
9905   acl_save_prefix="$prefix"
9906   prefix="$acl_final_prefix"
9907   acl_save_exec_prefix="$exec_prefix"
9908   exec_prefix="$acl_final_exec_prefix"
9909   eval x=\"$x\"
9910   exec_prefix="$acl_save_exec_prefix"
9911   prefix="$acl_save_prefix"
9912
9913                           if test "X$x" = "X-L$additional_libdir"; then
9914                             haveit=yes
9915                             break
9916                           fi
9917                         done
9918                         if test -z "$haveit"; then
9919                           if test -d "$additional_libdir"; then
9920                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9921                           fi
9922                         fi
9923                       fi
9924                     fi
9925                     ;;
9926                   -R*)
9927                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9928                     if test "$enable_rpath" != no; then
9929                                                                   haveit=
9930                       for x in $rpathdirs; do
9931                         if test "X$x" = "X$dir"; then
9932                           haveit=yes
9933                           break
9934                         fi
9935                       done
9936                       if test -z "$haveit"; then
9937                         rpathdirs="$rpathdirs $dir"
9938                       fi
9939                                                                   haveit=
9940                       for x in $ltrpathdirs; do
9941                         if test "X$x" = "X$dir"; then
9942                           haveit=yes
9943                           break
9944                         fi
9945                       done
9946                       if test -z "$haveit"; then
9947                         ltrpathdirs="$ltrpathdirs $dir"
9948                       fi
9949                     fi
9950                     ;;
9951                   -l*)
9952                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9953                     ;;
9954                   *.la)
9955                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9956                     ;;
9957                   *)
9958                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9959                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9960                     ;;
9961                 esac
9962               done
9963             fi
9964           else
9965                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9966             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9967           fi
9968         fi
9969       fi
9970     done
9971   done
9972   if test "X$rpathdirs" != "X"; then
9973     if test -n "$hardcode_libdir_separator"; then
9974                         alldirs=
9975       for found_dir in $rpathdirs; do
9976         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9977       done
9978             acl_save_libdir="$libdir"
9979       libdir="$alldirs"
9980       eval flag=\"$hardcode_libdir_flag_spec\"
9981       libdir="$acl_save_libdir"
9982       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9983     else
9984             for found_dir in $rpathdirs; do
9985         acl_save_libdir="$libdir"
9986         libdir="$found_dir"
9987         eval flag=\"$hardcode_libdir_flag_spec\"
9988         libdir="$acl_save_libdir"
9989         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9990       done
9991     fi
9992   fi
9993   if test "X$ltrpathdirs" != "X"; then
9994             for found_dir in $ltrpathdirs; do
9995       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9996     done
9997   fi
9998
9999
10000
10001
10002
10003
10004
10005           am_save_CPPFLAGS="$CPPFLAGS"
10006
10007   for element in $INCICONV; do
10008     haveit=
10009     for x in $CPPFLAGS; do
10010
10011   acl_save_prefix="$prefix"
10012   prefix="$acl_final_prefix"
10013   acl_save_exec_prefix="$exec_prefix"
10014   exec_prefix="$acl_final_exec_prefix"
10015   eval x=\"$x\"
10016   exec_prefix="$acl_save_exec_prefix"
10017   prefix="$acl_save_prefix"
10018
10019       if test "X$x" = "X$element"; then
10020         haveit=yes
10021         break
10022       fi
10023     done
10024     if test -z "$haveit"; then
10025       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10026     fi
10027   done
10028
10029
10030   echo "$as_me:$LINENO: checking for iconv" >&5
10031 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10032 if test "${am_cv_func_iconv+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035
10036     am_cv_func_iconv="no, consider installing GNU libiconv"
10037     am_cv_lib_iconv=no
10038     if test x$gcc_no_link = xyes; then
10039   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10040 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10041    { (exit 1); exit 1; }; }
10042 fi
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049 #include <stdlib.h>
10050 #include <iconv.h>
10051 int
10052 main ()
10053 {
10054 iconv_t cd = iconv_open("","");
10055        iconv(cd,NULL,NULL,NULL,NULL);
10056        iconv_close(cd);
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_c_werror_flag"
10071                          || test ! -s conftest.err'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   am_cv_func_iconv=yes
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 fi
10089 rm -f conftest.err conftest.$ac_objext \
10090       conftest$ac_exeext conftest.$ac_ext
10091     if test "$am_cv_func_iconv" != yes; then
10092       am_save_LIBS="$LIBS"
10093       LIBS="$LIBS $LIBICONV"
10094       if test x$gcc_no_link = xyes; then
10095   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10097    { (exit 1); exit 1; }; }
10098 fi
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h.  */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h.  */
10105 #include <stdlib.h>
10106 #include <iconv.h>
10107 int
10108 main ()
10109 {
10110 iconv_t cd = iconv_open("","");
10111          iconv(cd,NULL,NULL,NULL,NULL);
10112          iconv_close(cd);
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119   (eval $ac_link) 2>conftest.er1
10120   ac_status=$?
10121   grep -v '^ *+' conftest.er1 >conftest.err
10122   rm -f conftest.er1
10123   cat conftest.err >&5
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); } &&
10126          { ac_try='test -z "$ac_c_werror_flag"
10127                          || test ! -s conftest.err'
10128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129   (eval $ac_try) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); }; } &&
10133          { ac_try='test -s conftest$ac_exeext'
10134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135   (eval $ac_try) 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); }; }; then
10139   am_cv_lib_iconv=yes
10140         am_cv_func_iconv=yes
10141 else
10142   echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 fi
10146 rm -f conftest.err conftest.$ac_objext \
10147       conftest$ac_exeext conftest.$ac_ext
10148       LIBS="$am_save_LIBS"
10149     fi
10150
10151 fi
10152 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10153 echo "${ECHO_T}$am_cv_func_iconv" >&6
10154   if test "$am_cv_func_iconv" = yes; then
10155
10156 cat >>confdefs.h <<\_ACEOF
10157 #define HAVE_ICONV 1
10158 _ACEOF
10159
10160   fi
10161   if test "$am_cv_lib_iconv" = yes; then
10162     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10163 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10164     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10165 echo "${ECHO_T}$LIBICONV" >&6
10166   else
10167             CPPFLAGS="$am_save_CPPFLAGS"
10168     LIBICONV=
10169     LTLIBICONV=
10170   fi
10171
10172
10173
10174   if test "$am_cv_func_iconv" = yes; then
10175     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10176 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10177     if test "${am_cv_proto_iconv+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180
10181       cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187
10188 #include <stdlib.h>
10189 #include <iconv.h>
10190 extern
10191 #ifdef __cplusplus
10192 "C"
10193 #endif
10194 #if defined(__STDC__) || defined(__cplusplus)
10195 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10196 #else
10197 size_t iconv();
10198 #endif
10199
10200 int
10201 main ()
10202 {
10203
10204   ;
10205   return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest.$ac_objext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210   (eval $ac_compile) 2>conftest.er1
10211   ac_status=$?
10212   grep -v '^ *+' conftest.er1 >conftest.err
10213   rm -f conftest.er1
10214   cat conftest.err >&5
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); } &&
10217          { ac_try='test -z "$ac_c_werror_flag"
10218                          || test ! -s conftest.err'
10219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220   (eval $ac_try) 2>&5
10221   ac_status=$?
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); }; } &&
10224          { ac_try='test -s conftest.$ac_objext'
10225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226   (eval $ac_try) 2>&5
10227   ac_status=$?
10228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229   (exit $ac_status); }; }; then
10230   am_cv_proto_iconv_arg1=""
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 am_cv_proto_iconv_arg1="const"
10236 fi
10237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10238       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);"
10239 fi
10240
10241     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10242     echo "$as_me:$LINENO: result: ${ac_t:-
10243          }$am_cv_proto_iconv" >&5
10244 echo "${ECHO_T}${ac_t:-
10245          }$am_cv_proto_iconv" >&6
10246
10247 cat >>confdefs.h <<_ACEOF
10248 #define ICONV_CONST $am_cv_proto_iconv_arg1
10249 _ACEOF
10250
10251   fi
10252
10253
10254   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10255 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10256 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   if test x$gcc_no_link = xyes; then
10260   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10262    { (exit 1); exit 1; }; }
10263 fi
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h.  */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h.  */
10270 #include <locale.h>
10271 int
10272 main ()
10273 {
10274 return LC_MESSAGES
10275   ;
10276   return 0;
10277 }
10278 _ACEOF
10279 rm -f conftest.$ac_objext conftest$ac_exeext
10280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10281   (eval $ac_link) 2>conftest.er1
10282   ac_status=$?
10283   grep -v '^ *+' conftest.er1 >conftest.err
10284   rm -f conftest.er1
10285   cat conftest.err >&5
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); } &&
10288          { ac_try='test -z "$ac_c_werror_flag"
10289                          || test ! -s conftest.err'
10290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291   (eval $ac_try) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; } &&
10295          { ac_try='test -s conftest$ac_exeext'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; }; then
10301   am_cv_val_LC_MESSAGES=yes
10302 else
10303   echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10305
10306 am_cv_val_LC_MESSAGES=no
10307 fi
10308 rm -f conftest.err conftest.$ac_objext \
10309       conftest$ac_exeext conftest.$ac_ext
10310 fi
10311 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10312 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10313   if test $am_cv_val_LC_MESSAGES = yes; then
10314
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_LC_MESSAGES 1
10317 _ACEOF
10318
10319   fi
10320
10321    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10322 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10323 if test "${ac_cv_struct_tm+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h.  */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h.  */
10332 #include <sys/types.h>
10333 #include <time.h>
10334
10335 int
10336 main ()
10337 {
10338 struct tm *tp; tp->tm_sec;
10339   ;
10340   return 0;
10341 }
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10345   (eval $ac_compile) 2>conftest.er1
10346   ac_status=$?
10347   grep -v '^ *+' conftest.er1 >conftest.err
10348   rm -f conftest.er1
10349   cat conftest.err >&5
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); } &&
10352          { ac_try='test -z "$ac_c_werror_flag"
10353                          || test ! -s conftest.err'
10354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355   (eval $ac_try) 2>&5
10356   ac_status=$?
10357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358   (exit $ac_status); }; } &&
10359          { ac_try='test -s conftest.$ac_objext'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; }; then
10365   ac_cv_struct_tm=time.h
10366 else
10367   echo "$as_me: failed program was:" >&5
10368 sed 's/^/| /' conftest.$ac_ext >&5
10369
10370 ac_cv_struct_tm=sys/time.h
10371 fi
10372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10373 fi
10374 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10375 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10376 if test $ac_cv_struct_tm = sys/time.h; then
10377
10378 cat >>confdefs.h <<\_ACEOF
10379 #define TM_IN_SYS_TIME 1
10380 _ACEOF
10381
10382 fi
10383
10384 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10385 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10386 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389   cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <sys/types.h>
10396 #include <$ac_cv_struct_tm>
10397
10398
10399 int
10400 main ()
10401 {
10402 static struct tm ac_aggr;
10403 if (ac_aggr.tm_zone)
10404 return 0;
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 rm -f conftest.$ac_objext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411   (eval $ac_compile) 2>conftest.er1
10412   ac_status=$?
10413   grep -v '^ *+' conftest.er1 >conftest.err
10414   rm -f conftest.er1
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -z "$ac_c_werror_flag"
10419                          || test ! -s conftest.err'
10420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421   (eval $ac_try) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; } &&
10425          { ac_try='test -s conftest.$ac_objext'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; }; then
10431   ac_cv_member_struct_tm_tm_zone=yes
10432 else
10433   echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442 #include <sys/types.h>
10443 #include <$ac_cv_struct_tm>
10444
10445
10446 int
10447 main ()
10448 {
10449 static struct tm ac_aggr;
10450 if (sizeof ac_aggr.tm_zone)
10451 return 0;
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458   (eval $ac_compile) 2>conftest.er1
10459   ac_status=$?
10460   grep -v '^ *+' conftest.er1 >conftest.err
10461   rm -f conftest.er1
10462   cat conftest.err >&5
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); } &&
10465          { ac_try='test -z "$ac_c_werror_flag"
10466                          || test ! -s conftest.err'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; } &&
10472          { ac_try='test -s conftest.$ac_objext'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   ac_cv_member_struct_tm_tm_zone=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ac_cv_member_struct_tm_tm_zone=no
10484 fi
10485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10486 fi
10487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10488 fi
10489 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10490 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10491 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10492
10493 cat >>confdefs.h <<_ACEOF
10494 #define HAVE_STRUCT_TM_TM_ZONE 1
10495 _ACEOF
10496
10497
10498 fi
10499
10500 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10501
10502 cat >>confdefs.h <<\_ACEOF
10503 #define HAVE_TM_ZONE 1
10504 _ACEOF
10505
10506 else
10507   echo "$as_me:$LINENO: checking for tzname" >&5
10508 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10509 if test "${ac_cv_var_tzname+set}" = set; then
10510   echo $ECHO_N "(cached) $ECHO_C" >&6
10511 else
10512   if test x$gcc_no_link = xyes; then
10513   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10515    { (exit 1); exit 1; }; }
10516 fi
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523 #include <time.h>
10524 #ifndef tzname /* For SGI.  */
10525 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10526 #endif
10527
10528 int
10529 main ()
10530 {
10531 atoi(*tzname);
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538   (eval $ac_link) 2>conftest.er1
10539   ac_status=$?
10540   grep -v '^ *+' conftest.er1 >conftest.err
10541   rm -f conftest.er1
10542   cat conftest.err >&5
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); } &&
10545          { ac_try='test -z "$ac_c_werror_flag"
10546                          || test ! -s conftest.err'
10547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548   (eval $ac_try) 2>&5
10549   ac_status=$?
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); }; } &&
10552          { ac_try='test -s conftest$ac_exeext'
10553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554   (eval $ac_try) 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); }; }; then
10558   ac_cv_var_tzname=yes
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563 ac_cv_var_tzname=no
10564 fi
10565 rm -f conftest.err conftest.$ac_objext \
10566       conftest$ac_exeext conftest.$ac_ext
10567 fi
10568 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10569 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10570   if test $ac_cv_var_tzname = yes; then
10571
10572 cat >>confdefs.h <<\_ACEOF
10573 #define HAVE_TZNAME 1
10574 _ACEOF
10575
10576   fi
10577 fi
10578
10579
10580
10581
10582 for ac_func in gethostbyname_r
10583 do
10584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10585 echo "$as_me:$LINENO: checking for $ac_func" >&5
10586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10587 if eval "test \"\${$as_ac_var+set}\" = set"; then
10588   echo $ECHO_N "(cached) $ECHO_C" >&6
10589 else
10590   if test x$gcc_no_link = xyes; then
10591   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10593    { (exit 1); exit 1; }; }
10594 fi
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h.  */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h.  */
10601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10603 #define $ac_func innocuous_$ac_func
10604
10605 /* System header to define __stub macros and hopefully few prototypes,
10606     which can conflict with char $ac_func (); below.
10607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10608     <limits.h> exists even on freestanding compilers.  */
10609
10610 #ifdef __STDC__
10611 # include <limits.h>
10612 #else
10613 # include <assert.h>
10614 #endif
10615
10616 #undef $ac_func
10617
10618 /* Override any gcc2 internal prototype to avoid an error.  */
10619 #ifdef __cplusplus
10620 extern "C"
10621 {
10622 #endif
10623 /* We use char because int might match the return type of a gcc2
10624    builtin and then its argument prototype would still apply.  */
10625 char $ac_func ();
10626 /* The GNU C library defines this for functions which it implements
10627     to always fail with ENOSYS.  Some functions are actually named
10628     something starting with __ and the normal name is an alias.  */
10629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10630 choke me
10631 #else
10632 char (*f) () = $ac_func;
10633 #endif
10634 #ifdef __cplusplus
10635 }
10636 #endif
10637
10638 int
10639 main ()
10640 {
10641 return f != $ac_func;
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648   (eval $ac_link) 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } &&
10655          { ac_try='test -z "$ac_c_werror_flag"
10656                          || test ! -s conftest.err'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; } &&
10662          { ac_try='test -s conftest$ac_exeext'
10663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664   (eval $ac_try) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; }; then
10668   eval "$as_ac_var=yes"
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 eval "$as_ac_var=no"
10674 fi
10675 rm -f conftest.err conftest.$ac_objext \
10676       conftest$ac_exeext conftest.$ac_ext
10677 fi
10678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10679 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10680 if test `eval echo '${'$as_ac_var'}'` = yes; then
10681   cat >>confdefs.h <<_ACEOF
10682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10683 _ACEOF
10684
10685
10686 cat >>confdefs.h <<\_ACEOF
10687 #define HAVE_GETHOSTBYNAME_R 1
10688 _ACEOF
10689
10690      # There are two different kinds of gethostbyname_r.
10691      # We look for the one that returns `int'.
10692      # Hopefully this check is robust enough.
10693      cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699 #include <netdb.h>
10700
10701 _ACEOF
10702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10703   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10704
10705
10706 cat >>confdefs.h <<\_ACEOF
10707 #define GETHOSTBYNAME_R_RETURNS_INT 1
10708 _ACEOF
10709
10710 fi
10711 rm -f conftest*
10712
10713
10714      case " $GCINCS " in
10715      *" -D_REENTRANT "*) ;;
10716      *)
10717                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10718 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10719 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10720   echo $ECHO_N "(cached) $ECHO_C" >&6
10721 else
10722    ac_ext=cc
10723 ac_cpp='$CXXCPP $CPPFLAGS'
10724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10727
10728           cat >conftest.$ac_ext <<_ACEOF
10729 /* confdefs.h.  */
10730 _ACEOF
10731 cat confdefs.h >>conftest.$ac_ext
10732 cat >>conftest.$ac_ext <<_ACEOF
10733 /* end confdefs.h.  */
10734 #include <netdb.h>
10735 int
10736 main ()
10737 {
10738 gethostbyname_r("", 0, 0);
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10745   (eval $ac_compile) 2>conftest.er1
10746   ac_status=$?
10747   grep -v '^ *+' conftest.er1 >conftest.err
10748   rm -f conftest.er1
10749   cat conftest.err >&5
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); } &&
10752          { ac_try='test -z "$ac_cxx_werror_flag"
10753                          || test ! -s conftest.err'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; } &&
10759          { ac_try='test -s conftest.$ac_objext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   libjava_cv_gethostbyname_r_needs_reentrant=no
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770                 CPPFLAGS_SAVE="$CPPFLAGS"
10771                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10772                 cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778 #include <netdb.h>
10779 int
10780 main ()
10781 {
10782 gethostbyname_r("", 0, 0);
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789   (eval $ac_compile) 2>conftest.er1
10790   ac_status=$?
10791   grep -v '^ *+' conftest.er1 >conftest.err
10792   rm -f conftest.er1
10793   cat conftest.err >&5
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } &&
10796          { ac_try='test -z "$ac_cxx_werror_flag"
10797                          || test ! -s conftest.err'
10798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799   (eval $ac_try) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; } &&
10803          { ac_try='test -s conftest.$ac_objext'
10804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805   (eval $ac_try) 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; }; then
10809   libjava_cv_gethostbyname_r_needs_reentrant=yes
10810 else
10811   echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10813
10814 libjava_cv_gethostbyname_r_needs_reentrant=fail
10815 fi
10816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10817                 CPPFLAGS="$CPPFLAGS_SAVE"
10818
10819 fi
10820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10821           ac_ext=c
10822 ac_cpp='$CPP $CPPFLAGS'
10823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10826
10827
10828 fi
10829 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10830 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10831         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10832
10833 cat >>confdefs.h <<\_ACEOF
10834 #define _REENTRANT 1
10835 _ACEOF
10836
10837         fi
10838      ;;
10839      esac
10840
10841      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10842 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10843 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846         cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h.  */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h.  */
10852
10853 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10854 # define _REENTRANT 1
10855 #endif
10856 #include <netdb.h>
10857 int
10858 main ()
10859 {
10860 struct hostent_data data;
10861   ;
10862   return 0;
10863 }
10864 _ACEOF
10865 rm -f conftest.$ac_objext
10866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10867   (eval $ac_compile) 2>conftest.er1
10868   ac_status=$?
10869   grep -v '^ *+' conftest.er1 >conftest.err
10870   rm -f conftest.er1
10871   cat conftest.err >&5
10872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873   (exit $ac_status); } &&
10874          { ac_try='test -z "$ac_c_werror_flag"
10875                          || test ! -s conftest.err'
10876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877   (eval $ac_try) 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; } &&
10881          { ac_try='test -s conftest.$ac_objext'
10882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883   (eval $ac_try) 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   libjava_cv_struct_hostent_data=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892 libjava_cv_struct_hostent_data=no
10893 fi
10894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10895 fi
10896 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10897 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10898      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10899
10900 cat >>confdefs.h <<\_ACEOF
10901 #define HAVE_STRUCT_HOSTENT_DATA 1
10902 _ACEOF
10903
10904      fi
10905
10906 fi
10907 done
10908
10909
10910    # FIXME: libjava source code expects to find a prototype for
10911    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10912    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10913    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10914    # linkage check is enough, yet C++ code requires proper prototypes.)
10915    cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 #include <netdb.h>
10922
10923 _ACEOF
10924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10925   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10926
10927
10928 for ac_func in gethostbyaddr_r
10929 do
10930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10931 echo "$as_me:$LINENO: checking for $ac_func" >&5
10932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10933 if eval "test \"\${$as_ac_var+set}\" = set"; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   if test x$gcc_no_link = xyes; then
10937   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10939    { (exit 1); exit 1; }; }
10940 fi
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10949 #define $ac_func innocuous_$ac_func
10950
10951 /* System header to define __stub macros and hopefully few prototypes,
10952     which can conflict with char $ac_func (); below.
10953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954     <limits.h> exists even on freestanding compilers.  */
10955
10956 #ifdef __STDC__
10957 # include <limits.h>
10958 #else
10959 # include <assert.h>
10960 #endif
10961
10962 #undef $ac_func
10963
10964 /* Override any gcc2 internal prototype to avoid an error.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 {
10968 #endif
10969 /* We use char because int might match the return type of a gcc2
10970    builtin and then its argument prototype would still apply.  */
10971 char $ac_func ();
10972 /* The GNU C library defines this for functions which it implements
10973     to always fail with ENOSYS.  Some functions are actually named
10974     something starting with __ and the normal name is an alias.  */
10975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10976 choke me
10977 #else
10978 char (*f) () = $ac_func;
10979 #endif
10980 #ifdef __cplusplus
10981 }
10982 #endif
10983
10984 int
10985 main ()
10986 {
10987 return f != $ac_func;
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994   (eval $ac_link) 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } &&
11001          { ac_try='test -z "$ac_c_werror_flag"
11002                          || test ! -s conftest.err'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; } &&
11008          { ac_try='test -s conftest$ac_exeext'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; }; then
11014   eval "$as_ac_var=yes"
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 eval "$as_ac_var=no"
11020 fi
11021 rm -f conftest.err conftest.$ac_objext \
11022       conftest$ac_exeext conftest.$ac_ext
11023 fi
11024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11026 if test `eval echo '${'$as_ac_var'}'` = yes; then
11027   cat >>confdefs.h <<_ACEOF
11028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11029 _ACEOF
11030
11031
11032 cat >>confdefs.h <<\_ACEOF
11033 #define HAVE_GETHOSTBYADDR_R 1
11034 _ACEOF
11035
11036      # There are two different kinds of gethostbyaddr_r.
11037      # We look for the one that returns `int'.
11038      # Hopefully this check is robust enough.
11039      cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 #include <netdb.h>
11046
11047 _ACEOF
11048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11049   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11050
11051
11052 cat >>confdefs.h <<\_ACEOF
11053 #define GETHOSTBYADDR_R_RETURNS_INT 1
11054 _ACEOF
11055
11056 fi
11057 rm -f conftest*
11058
11059 fi
11060 done
11061
11062 fi
11063 rm -f conftest*
11064
11065
11066
11067 for ac_func in gethostname
11068 do
11069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11070 echo "$as_me:$LINENO: checking for $ac_func" >&5
11071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11072 if eval "test \"\${$as_ac_var+set}\" = set"; then
11073   echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075   if test x$gcc_no_link = xyes; then
11076   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11078    { (exit 1); exit 1; }; }
11079 fi
11080 cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h.  */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h.  */
11086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11088 #define $ac_func innocuous_$ac_func
11089
11090 /* System header to define __stub macros and hopefully few prototypes,
11091     which can conflict with char $ac_func (); below.
11092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11093     <limits.h> exists even on freestanding compilers.  */
11094
11095 #ifdef __STDC__
11096 # include <limits.h>
11097 #else
11098 # include <assert.h>
11099 #endif
11100
11101 #undef $ac_func
11102
11103 /* Override any gcc2 internal prototype to avoid an error.  */
11104 #ifdef __cplusplus
11105 extern "C"
11106 {
11107 #endif
11108 /* We use char because int might match the return type of a gcc2
11109    builtin and then its argument prototype would still apply.  */
11110 char $ac_func ();
11111 /* The GNU C library defines this for functions which it implements
11112     to always fail with ENOSYS.  Some functions are actually named
11113     something starting with __ and the normal name is an alias.  */
11114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11115 choke me
11116 #else
11117 char (*f) () = $ac_func;
11118 #endif
11119 #ifdef __cplusplus
11120 }
11121 #endif
11122
11123 int
11124 main ()
11125 {
11126 return f != $ac_func;
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext conftest$ac_exeext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133   (eval $ac_link) 2>conftest.er1
11134   ac_status=$?
11135   grep -v '^ *+' conftest.er1 >conftest.err
11136   rm -f conftest.er1
11137   cat conftest.err >&5
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); } &&
11140          { ac_try='test -z "$ac_c_werror_flag"
11141                          || test ! -s conftest.err'
11142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143   (eval $ac_try) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); }; } &&
11147          { ac_try='test -s conftest$ac_exeext'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   eval "$as_ac_var=yes"
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 eval "$as_ac_var=no"
11159 fi
11160 rm -f conftest.err conftest.$ac_objext \
11161       conftest$ac_exeext conftest.$ac_ext
11162 fi
11163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11165 if test `eval echo '${'$as_ac_var'}'` = yes; then
11166   cat >>confdefs.h <<_ACEOF
11167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11168 _ACEOF
11169
11170
11171 cat >>confdefs.h <<\_ACEOF
11172 #define HAVE_GETHOSTNAME 1
11173 _ACEOF
11174
11175      cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 #include <unistd.h>
11182
11183 _ACEOF
11184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11185   $EGREP "gethostname" >/dev/null 2>&1; then
11186
11187
11188 cat >>confdefs.h <<\_ACEOF
11189 #define HAVE_GETHOSTNAME_DECL 1
11190 _ACEOF
11191
11192 fi
11193 rm -f conftest*
11194
11195 fi
11196 done
11197
11198
11199
11200 for ac_func in usleep
11201 do
11202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11203 echo "$as_me:$LINENO: checking for $ac_func" >&5
11204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11205 if eval "test \"\${$as_ac_var+set}\" = set"; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   if test x$gcc_no_link = xyes; then
11209   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11211    { (exit 1); exit 1; }; }
11212 fi
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h.  */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h.  */
11219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11221 #define $ac_func innocuous_$ac_func
11222
11223 /* System header to define __stub macros and hopefully few prototypes,
11224     which can conflict with char $ac_func (); below.
11225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226     <limits.h> exists even on freestanding compilers.  */
11227
11228 #ifdef __STDC__
11229 # include <limits.h>
11230 #else
11231 # include <assert.h>
11232 #endif
11233
11234 #undef $ac_func
11235
11236 /* Override any gcc2 internal prototype to avoid an error.  */
11237 #ifdef __cplusplus
11238 extern "C"
11239 {
11240 #endif
11241 /* We use char because int might match the return type of a gcc2
11242    builtin and then its argument prototype would still apply.  */
11243 char $ac_func ();
11244 /* The GNU C library defines this for functions which it implements
11245     to always fail with ENOSYS.  Some functions are actually named
11246     something starting with __ and the normal name is an alias.  */
11247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11248 choke me
11249 #else
11250 char (*f) () = $ac_func;
11251 #endif
11252 #ifdef __cplusplus
11253 }
11254 #endif
11255
11256 int
11257 main ()
11258 {
11259 return f != $ac_func;
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext conftest$ac_exeext
11265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11266   (eval $ac_link) 2>conftest.er1
11267   ac_status=$?
11268   grep -v '^ *+' conftest.er1 >conftest.err
11269   rm -f conftest.er1
11270   cat conftest.err >&5
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -z "$ac_c_werror_flag"
11274                          || test ! -s conftest.err'
11275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276   (eval $ac_try) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; } &&
11280          { ac_try='test -s conftest$ac_exeext'
11281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282   (eval $ac_try) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   eval "$as_ac_var=yes"
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291 eval "$as_ac_var=no"
11292 fi
11293 rm -f conftest.err conftest.$ac_objext \
11294       conftest$ac_exeext conftest.$ac_ext
11295 fi
11296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299   cat >>confdefs.h <<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11301 _ACEOF
11302
11303      cat >conftest.$ac_ext <<_ACEOF
11304 /* confdefs.h.  */
11305 _ACEOF
11306 cat confdefs.h >>conftest.$ac_ext
11307 cat >>conftest.$ac_ext <<_ACEOF
11308 /* end confdefs.h.  */
11309 #include <unistd.h>
11310
11311 _ACEOF
11312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11313   $EGREP "usleep" >/dev/null 2>&1; then
11314
11315
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_USLEEP_DECL 1
11318 _ACEOF
11319
11320 fi
11321 rm -f conftest*
11322
11323 fi
11324 done
11325
11326
11327    # Look for these functions in the thread library, but only bother
11328    # if using POSIX threads.
11329    if test "$THREADS" = posix; then
11330       save_LIBS="$LIBS"
11331       LIBS="$LIBS $THREADLIBS"
11332       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11333       # E.g., Solaris.
11334
11335
11336 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11337 do
11338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11339 echo "$as_me:$LINENO: checking for $ac_func" >&5
11340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11341 if eval "test \"\${$as_ac_var+set}\" = set"; then
11342   echo $ECHO_N "(cached) $ECHO_C" >&6
11343 else
11344   if test x$gcc_no_link = xyes; then
11345   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11347    { (exit 1); exit 1; }; }
11348 fi
11349 cat >conftest.$ac_ext <<_ACEOF
11350 /* confdefs.h.  */
11351 _ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h.  */
11355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11356    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11357 #define $ac_func innocuous_$ac_func
11358
11359 /* System header to define __stub macros and hopefully few prototypes,
11360     which can conflict with char $ac_func (); below.
11361     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362     <limits.h> exists even on freestanding compilers.  */
11363
11364 #ifdef __STDC__
11365 # include <limits.h>
11366 #else
11367 # include <assert.h>
11368 #endif
11369
11370 #undef $ac_func
11371
11372 /* Override any gcc2 internal prototype to avoid an error.  */
11373 #ifdef __cplusplus
11374 extern "C"
11375 {
11376 #endif
11377 /* We use char because int might match the return type of a gcc2
11378    builtin and then its argument prototype would still apply.  */
11379 char $ac_func ();
11380 /* The GNU C library defines this for functions which it implements
11381     to always fail with ENOSYS.  Some functions are actually named
11382     something starting with __ and the normal name is an alias.  */
11383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11384 choke me
11385 #else
11386 char (*f) () = $ac_func;
11387 #endif
11388 #ifdef __cplusplus
11389 }
11390 #endif
11391
11392 int
11393 main ()
11394 {
11395 return f != $ac_func;
11396   ;
11397   return 0;
11398 }
11399 _ACEOF
11400 rm -f conftest.$ac_objext conftest$ac_exeext
11401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11402   (eval $ac_link) 2>conftest.er1
11403   ac_status=$?
11404   grep -v '^ *+' conftest.er1 >conftest.err
11405   rm -f conftest.er1
11406   cat conftest.err >&5
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); } &&
11409          { ac_try='test -z "$ac_c_werror_flag"
11410                          || test ! -s conftest.err'
11411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11412   (eval $ac_try) 2>&5
11413   ac_status=$?
11414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415   (exit $ac_status); }; } &&
11416          { ac_try='test -s conftest$ac_exeext'
11417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418   (eval $ac_try) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   eval "$as_ac_var=yes"
11423 else
11424   echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11426
11427 eval "$as_ac_var=no"
11428 fi
11429 rm -f conftest.err conftest.$ac_objext \
11430       conftest$ac_exeext conftest.$ac_ext
11431 fi
11432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11433 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11434 if test `eval echo '${'$as_ac_var'}'` = yes; then
11435   cat >>confdefs.h <<_ACEOF
11436 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11437 _ACEOF
11438
11439 fi
11440 done
11441
11442
11443       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11444       # Solaris 7 the name librt is preferred.
11445
11446 for ac_func in sched_yield
11447 do
11448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11449 echo "$as_me:$LINENO: checking for $ac_func" >&5
11450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11451 if eval "test \"\${$as_ac_var+set}\" = set"; then
11452   echo $ECHO_N "(cached) $ECHO_C" >&6
11453 else
11454   if test x$gcc_no_link = xyes; then
11455   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11457    { (exit 1); exit 1; }; }
11458 fi
11459 cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h.  */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h.  */
11465 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11466    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11467 #define $ac_func innocuous_$ac_func
11468
11469 /* System header to define __stub macros and hopefully few prototypes,
11470     which can conflict with char $ac_func (); below.
11471     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11472     <limits.h> exists even on freestanding compilers.  */
11473
11474 #ifdef __STDC__
11475 # include <limits.h>
11476 #else
11477 # include <assert.h>
11478 #endif
11479
11480 #undef $ac_func
11481
11482 /* Override any gcc2 internal prototype to avoid an error.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 {
11486 #endif
11487 /* We use char because int might match the return type of a gcc2
11488    builtin and then its argument prototype would still apply.  */
11489 char $ac_func ();
11490 /* The GNU C library defines this for functions which it implements
11491     to always fail with ENOSYS.  Some functions are actually named
11492     something starting with __ and the normal name is an alias.  */
11493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11494 choke me
11495 #else
11496 char (*f) () = $ac_func;
11497 #endif
11498 #ifdef __cplusplus
11499 }
11500 #endif
11501
11502 int
11503 main ()
11504 {
11505 return f != $ac_func;
11506   ;
11507   return 0;
11508 }
11509 _ACEOF
11510 rm -f conftest.$ac_objext conftest$ac_exeext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11512   (eval $ac_link) 2>conftest.er1
11513   ac_status=$?
11514   grep -v '^ *+' conftest.er1 >conftest.err
11515   rm -f conftest.er1
11516   cat conftest.err >&5
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } &&
11519          { ac_try='test -z "$ac_c_werror_flag"
11520                          || test ! -s conftest.err'
11521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522   (eval $ac_try) 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); }; } &&
11526          { ac_try='test -s conftest$ac_exeext'
11527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528   (eval $ac_try) 2>&5
11529   ac_status=$?
11530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); }; }; then
11532   eval "$as_ac_var=yes"
11533 else
11534   echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11536
11537 eval "$as_ac_var=no"
11538 fi
11539 rm -f conftest.err conftest.$ac_objext \
11540       conftest$ac_exeext conftest.$ac_ext
11541 fi
11542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11544 if test `eval echo '${'$as_ac_var'}'` = yes; then
11545   cat >>confdefs.h <<_ACEOF
11546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11547 _ACEOF
11548
11549 else
11550
11551         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11552 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11553 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11554   echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556   ac_check_lib_save_LIBS=$LIBS
11557 LIBS="-lrt  $LIBS"
11558 if test x$gcc_no_link = xyes; then
11559   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11561    { (exit 1); exit 1; }; }
11562 fi
11563 cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569
11570 /* Override any gcc2 internal prototype to avoid an error.  */
11571 #ifdef __cplusplus
11572 extern "C"
11573 #endif
11574 /* We use char because int might match the return type of a gcc2
11575    builtin and then its argument prototype would still apply.  */
11576 char sched_yield ();
11577 int
11578 main ()
11579 {
11580 sched_yield ();
11581   ;
11582   return 0;
11583 }
11584 _ACEOF
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587   (eval $ac_link) 2>conftest.er1
11588   ac_status=$?
11589   grep -v '^ *+' conftest.er1 >conftest.err
11590   rm -f conftest.er1
11591   cat conftest.err >&5
11592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); } &&
11594          { ac_try='test -z "$ac_c_werror_flag"
11595                          || test ! -s conftest.err'
11596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597   (eval $ac_try) 2>&5
11598   ac_status=$?
11599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600   (exit $ac_status); }; } &&
11601          { ac_try='test -s conftest$ac_exeext'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; }; then
11607   ac_cv_lib_rt_sched_yield=yes
11608 else
11609   echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11611
11612 ac_cv_lib_rt_sched_yield=no
11613 fi
11614 rm -f conftest.err conftest.$ac_objext \
11615       conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11617 fi
11618 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11619 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11620 if test $ac_cv_lib_rt_sched_yield = yes; then
11621
11622           cat >>confdefs.h <<\_ACEOF
11623 #define HAVE_SCHED_YIELD 1
11624 _ACEOF
11625
11626           THREADLIBS="$THREADLIBS -lrt"
11627           THREADSPEC="$THREADSPEC -lrt"
11628 else
11629
11630           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11631 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11632 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   ac_check_lib_save_LIBS=$LIBS
11636 LIBS="-lposix4  $LIBS"
11637 if test x$gcc_no_link = xyes; then
11638   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11639 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11640    { (exit 1); exit 1; }; }
11641 fi
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648
11649 /* Override any gcc2 internal prototype to avoid an error.  */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 /* We use char because int might match the return type of a gcc2
11654    builtin and then its argument prototype would still apply.  */
11655 char sched_yield ();
11656 int
11657 main ()
11658 {
11659 sched_yield ();
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 rm -f conftest.$ac_objext conftest$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666   (eval $ac_link) 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -z "$ac_c_werror_flag"
11674                          || test ! -s conftest.err'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; } &&
11680          { ac_try='test -s conftest$ac_exeext'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_cv_lib_posix4_sched_yield=yes
11687 else
11688   echo "$as_me: failed program was:" >&5
11689 sed 's/^/| /' conftest.$ac_ext >&5
11690
11691 ac_cv_lib_posix4_sched_yield=no
11692 fi
11693 rm -f conftest.err conftest.$ac_objext \
11694       conftest$ac_exeext conftest.$ac_ext
11695 LIBS=$ac_check_lib_save_LIBS
11696 fi
11697 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11698 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11699 if test $ac_cv_lib_posix4_sched_yield = yes; then
11700
11701             cat >>confdefs.h <<\_ACEOF
11702 #define HAVE_SCHED_YIELD 1
11703 _ACEOF
11704
11705             THREADLIBS="$THREADLIBS -lposix4"
11706             THREADSPEC="$THREADSPEC -lposix4"
11707 fi
11708
11709 fi
11710
11711 fi
11712 done
11713
11714       LIBS="$save_LIBS"
11715
11716       # We can save a little space at runtime if the mutex has m_count
11717       # or __m_count.  This is a nice hack for Linux.
11718       cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724 #include <pthread.h>
11725 int
11726 main ()
11727 {
11728
11729           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11730
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737   (eval $ac_compile) 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } &&
11744          { ac_try='test -z "$ac_c_werror_flag"
11745                          || test ! -s conftest.err'
11746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747   (eval $ac_try) 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; } &&
11751          { ac_try='test -s conftest.$ac_objext'
11752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753   (eval $ac_try) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; }; then
11757
11758 cat >>confdefs.h <<\_ACEOF
11759 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11760 _ACEOF
11761
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766
11767         cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773 #include <pthread.h>
11774 int
11775 main ()
11776 {
11777
11778             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11779
11780   ;
11781   return 0;
11782 }
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11786   (eval $ac_compile) 2>conftest.er1
11787   ac_status=$?
11788   grep -v '^ *+' conftest.er1 >conftest.err
11789   rm -f conftest.er1
11790   cat conftest.err >&5
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); } &&
11793          { ac_try='test -z "$ac_c_werror_flag"
11794                          || test ! -s conftest.err'
11795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796   (eval $ac_try) 2>&5
11797   ac_status=$?
11798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799   (exit $ac_status); }; } &&
11800          { ac_try='test -s conftest.$ac_objext'
11801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802   (eval $ac_try) 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; }; then
11806
11807 cat >>confdefs.h <<\_ACEOF
11808 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11809 _ACEOF
11810
11811 else
11812   echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815 fi
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817 fi
11818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819    fi
11820
11821    # We require a way to get the time.
11822    time_found=no
11823
11824
11825
11826 for ac_func in gettimeofday time ftime
11827 do
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11831 if eval "test \"\${$as_ac_var+set}\" = set"; then
11832   echo $ECHO_N "(cached) $ECHO_C" >&6
11833 else
11834   if test x$gcc_no_link = xyes; then
11835   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11837    { (exit 1); exit 1; }; }
11838 fi
11839 cat >conftest.$ac_ext <<_ACEOF
11840 /* confdefs.h.  */
11841 _ACEOF
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h.  */
11845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11847 #define $ac_func innocuous_$ac_func
11848
11849 /* System header to define __stub macros and hopefully few prototypes,
11850     which can conflict with char $ac_func (); below.
11851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852     <limits.h> exists even on freestanding compilers.  */
11853
11854 #ifdef __STDC__
11855 # include <limits.h>
11856 #else
11857 # include <assert.h>
11858 #endif
11859
11860 #undef $ac_func
11861
11862 /* Override any gcc2 internal prototype to avoid an error.  */
11863 #ifdef __cplusplus
11864 extern "C"
11865 {
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868    builtin and then its argument prototype would still apply.  */
11869 char $ac_func ();
11870 /* The GNU C library defines this for functions which it implements
11871     to always fail with ENOSYS.  Some functions are actually named
11872     something starting with __ and the normal name is an alias.  */
11873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11874 choke me
11875 #else
11876 char (*f) () = $ac_func;
11877 #endif
11878 #ifdef __cplusplus
11879 }
11880 #endif
11881
11882 int
11883 main ()
11884 {
11885 return f != $ac_func;
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11892   (eval $ac_link) 2>conftest.er1
11893   ac_status=$?
11894   grep -v '^ *+' conftest.er1 >conftest.err
11895   rm -f conftest.er1
11896   cat conftest.err >&5
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } &&
11899          { ac_try='test -z "$ac_c_werror_flag"
11900                          || test ! -s conftest.err'
11901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11902   (eval $ac_try) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; } &&
11906          { ac_try='test -s conftest$ac_exeext'
11907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908   (eval $ac_try) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); }; }; then
11912   eval "$as_ac_var=yes"
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 eval "$as_ac_var=no"
11918 fi
11919 rm -f conftest.err conftest.$ac_objext \
11920       conftest$ac_exeext conftest.$ac_ext
11921 fi
11922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11924 if test `eval echo '${'$as_ac_var'}'` = yes; then
11925   cat >>confdefs.h <<_ACEOF
11926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11927 _ACEOF
11928  time_found=yes
11929 fi
11930 done
11931
11932    if test "$time_found" = no; then
11933       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11934 echo "$as_me: error: no function found to get the time" >&2;}
11935    { (exit 1); exit 1; }; }
11936    fi
11937
11938
11939 for ac_func in memmove
11940 do
11941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11942 echo "$as_me:$LINENO: checking for $ac_func" >&5
11943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11944 if eval "test \"\${$as_ac_var+set}\" = set"; then
11945   echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947   if test x$gcc_no_link = xyes; then
11948   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11950    { (exit 1); exit 1; }; }
11951 fi
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11960 #define $ac_func innocuous_$ac_func
11961
11962 /* System header to define __stub macros and hopefully few prototypes,
11963     which can conflict with char $ac_func (); below.
11964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11965     <limits.h> exists even on freestanding compilers.  */
11966
11967 #ifdef __STDC__
11968 # include <limits.h>
11969 #else
11970 # include <assert.h>
11971 #endif
11972
11973 #undef $ac_func
11974
11975 /* Override any gcc2 internal prototype to avoid an error.  */
11976 #ifdef __cplusplus
11977 extern "C"
11978 {
11979 #endif
11980 /* We use char because int might match the return type of a gcc2
11981    builtin and then its argument prototype would still apply.  */
11982 char $ac_func ();
11983 /* The GNU C library defines this for functions which it implements
11984     to always fail with ENOSYS.  Some functions are actually named
11985     something starting with __ and the normal name is an alias.  */
11986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11987 choke me
11988 #else
11989 char (*f) () = $ac_func;
11990 #endif
11991 #ifdef __cplusplus
11992 }
11993 #endif
11994
11995 int
11996 main ()
11997 {
11998 return f != $ac_func;
11999   ;
12000   return 0;
12001 }
12002 _ACEOF
12003 rm -f conftest.$ac_objext conftest$ac_exeext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12005   (eval $ac_link) 2>conftest.er1
12006   ac_status=$?
12007   grep -v '^ *+' conftest.er1 >conftest.err
12008   rm -f conftest.er1
12009   cat conftest.err >&5
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -z "$ac_c_werror_flag"
12013                          || test ! -s conftest.err'
12014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015   (eval $ac_try) 2>&5
12016   ac_status=$?
12017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018   (exit $ac_status); }; } &&
12019          { ac_try='test -s conftest$ac_exeext'
12020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021   (eval $ac_try) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   eval "$as_ac_var=yes"
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030 eval "$as_ac_var=no"
12031 fi
12032 rm -f conftest.err conftest.$ac_objext \
12033       conftest$ac_exeext conftest.$ac_ext
12034 fi
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12037 if test `eval echo '${'$as_ac_var'}'` = yes; then
12038   cat >>confdefs.h <<_ACEOF
12039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12040 _ACEOF
12041
12042 fi
12043 done
12044
12045
12046    # We require memcpy.
12047    memcpy_found=no
12048
12049 for ac_func in memcpy
12050 do
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055   echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057   if test x$gcc_no_link = xyes; then
12058   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12059 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12060    { (exit 1); exit 1; }; }
12061 fi
12062 cat >conftest.$ac_ext <<_ACEOF
12063 /* confdefs.h.  */
12064 _ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h.  */
12068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12070 #define $ac_func innocuous_$ac_func
12071
12072 /* System header to define __stub macros and hopefully few prototypes,
12073     which can conflict with char $ac_func (); below.
12074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075     <limits.h> exists even on freestanding compilers.  */
12076
12077 #ifdef __STDC__
12078 # include <limits.h>
12079 #else
12080 # include <assert.h>
12081 #endif
12082
12083 #undef $ac_func
12084
12085 /* Override any gcc2 internal prototype to avoid an error.  */
12086 #ifdef __cplusplus
12087 extern "C"
12088 {
12089 #endif
12090 /* We use char because int might match the return type of a gcc2
12091    builtin and then its argument prototype would still apply.  */
12092 char $ac_func ();
12093 /* The GNU C library defines this for functions which it implements
12094     to always fail with ENOSYS.  Some functions are actually named
12095     something starting with __ and the normal name is an alias.  */
12096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12097 choke me
12098 #else
12099 char (*f) () = $ac_func;
12100 #endif
12101 #ifdef __cplusplus
12102 }
12103 #endif
12104
12105 int
12106 main ()
12107 {
12108 return f != $ac_func;
12109   ;
12110   return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext conftest$ac_exeext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12115   (eval $ac_link) 2>conftest.er1
12116   ac_status=$?
12117   grep -v '^ *+' conftest.er1 >conftest.err
12118   rm -f conftest.er1
12119   cat conftest.err >&5
12120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121   (exit $ac_status); } &&
12122          { ac_try='test -z "$ac_c_werror_flag"
12123                          || test ! -s conftest.err'
12124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125   (eval $ac_try) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); }; } &&
12129          { ac_try='test -s conftest$ac_exeext'
12130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131   (eval $ac_try) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; }; then
12135   eval "$as_ac_var=yes"
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 eval "$as_ac_var=no"
12141 fi
12142 rm -f conftest.err conftest.$ac_objext \
12143       conftest$ac_exeext conftest.$ac_ext
12144 fi
12145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12147 if test `eval echo '${'$as_ac_var'}'` = yes; then
12148   cat >>confdefs.h <<_ACEOF
12149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12150 _ACEOF
12151  memcpy_found=yes
12152 fi
12153 done
12154
12155    if test "$memcpy_found" = no; then
12156       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12157 echo "$as_me: error: memcpy is required" >&2;}
12158    { (exit 1); exit 1; }; }
12159    fi
12160
12161    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12162 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12163 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166   ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-ldl  $LIBS"
12168 if test x$gcc_no_link = xyes; then
12169   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12171    { (exit 1); exit 1; }; }
12172 fi
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179
12180 /* Override any gcc2 internal prototype to avoid an error.  */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 /* We use char because int might match the return type of a gcc2
12185    builtin and then its argument prototype would still apply.  */
12186 char dlopen ();
12187 int
12188 main ()
12189 {
12190 dlopen ();
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   ac_cv_lib_dl_dlopen=yes
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 ac_cv_lib_dl_dlopen=no
12223 fi
12224 rm -f conftest.err conftest.$ac_objext \
12225       conftest$ac_exeext conftest.$ac_ext
12226 LIBS=$ac_check_lib_save_LIBS
12227 fi
12228 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12229 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12230 if test $ac_cv_lib_dl_dlopen = yes; then
12231
12232
12233 cat >>confdefs.h <<\_ACEOF
12234 #define HAVE_DLOPEN 1
12235 _ACEOF
12236
12237 fi
12238
12239
12240    # Some library-finding code we stole from Tcl.
12241    #--------------------------------------------------------------------
12242    #    Check for the existence of the -lsocket and -lnsl libraries.
12243    #    The order here is important, so that they end up in the right
12244    #    order in the command line generated by make.  Here are some
12245    #    special considerations:
12246    #    1. Use "connect" and "accept" to check for -lsocket, and
12247    #       "gethostbyname" to check for -lnsl.
12248    #    2. Use each function name only once:  can't redo a check because
12249    #       autoconf caches the results of the last check and won't redo it.
12250    #    3. Use -lnsl and -lsocket only if they supply procedures that
12251    #       aren't already present in the normal libraries.  This is because
12252    #       IRIX 5.2 has libraries, but they aren't needed and they're
12253    #       bogus:  they goof up name resolution if used.
12254    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12255    #       To get around this problem, check for both libraries together
12256    #       if -lsocket doesn't work by itself.
12257    #--------------------------------------------------------------------
12258
12259    echo "$as_me:$LINENO: checking for socket libraries" >&5
12260 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12261 if test "${gcj_cv_lib_sockets+set}" = set; then
12262   echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264   gcj_cv_lib_sockets=
12265      gcj_checkBoth=0
12266      unset ac_cv_func_connect
12267      echo "$as_me:$LINENO: checking for connect" >&5
12268 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12269 if test "${ac_cv_func_connect+set}" = set; then
12270   echo $ECHO_N "(cached) $ECHO_C" >&6
12271 else
12272   if test x$gcc_no_link = xyes; then
12273   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12275    { (exit 1); exit 1; }; }
12276 fi
12277 cat >conftest.$ac_ext <<_ACEOF
12278 /* confdefs.h.  */
12279 _ACEOF
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h.  */
12283 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12285 #define connect innocuous_connect
12286
12287 /* System header to define __stub macros and hopefully few prototypes,
12288     which can conflict with char connect (); below.
12289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12290     <limits.h> exists even on freestanding compilers.  */
12291
12292 #ifdef __STDC__
12293 # include <limits.h>
12294 #else
12295 # include <assert.h>
12296 #endif
12297
12298 #undef connect
12299
12300 /* Override any gcc2 internal prototype to avoid an error.  */
12301 #ifdef __cplusplus
12302 extern "C"
12303 {
12304 #endif
12305 /* We use char because int might match the return type of a gcc2
12306    builtin and then its argument prototype would still apply.  */
12307 char connect ();
12308 /* The GNU C library defines this for functions which it implements
12309     to always fail with ENOSYS.  Some functions are actually named
12310     something starting with __ and the normal name is an alias.  */
12311 #if defined (__stub_connect) || defined (__stub___connect)
12312 choke me
12313 #else
12314 char (*f) () = connect;
12315 #endif
12316 #ifdef __cplusplus
12317 }
12318 #endif
12319
12320 int
12321 main ()
12322 {
12323 return f != connect;
12324   ;
12325   return 0;
12326 }
12327 _ACEOF
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330   (eval $ac_link) 2>conftest.er1
12331   ac_status=$?
12332   grep -v '^ *+' conftest.er1 >conftest.err
12333   rm -f conftest.er1
12334   cat conftest.err >&5
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); } &&
12337          { ac_try='test -z "$ac_c_werror_flag"
12338                          || test ! -s conftest.err'
12339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340   (eval $ac_try) 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; } &&
12344          { ac_try='test -s conftest$ac_exeext'
12345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346   (eval $ac_try) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }; }; then
12350   ac_cv_func_connect=yes
12351 else
12352   echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 ac_cv_func_connect=no
12356 fi
12357 rm -f conftest.err conftest.$ac_objext \
12358       conftest$ac_exeext conftest.$ac_ext
12359 fi
12360 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12361 echo "${ECHO_T}$ac_cv_func_connect" >&6
12362 if test $ac_cv_func_connect = yes; then
12363   gcj_checkSocket=0
12364 else
12365   gcj_checkSocket=1
12366 fi
12367
12368      if test "$gcj_checkSocket" = 1; then
12369          unset ac_cv_func_connect
12370          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12371 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12372 if test "${ac_cv_lib_socket_main+set}" = set; then
12373   echo $ECHO_N "(cached) $ECHO_C" >&6
12374 else
12375   ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-lsocket  $LIBS"
12377 if test x$gcc_no_link = xyes; then
12378   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12379 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12380    { (exit 1); exit 1; }; }
12381 fi
12382 cat >conftest.$ac_ext <<_ACEOF
12383 /* confdefs.h.  */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h.  */
12388
12389
12390 int
12391 main ()
12392 {
12393 main ();
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12400   (eval $ac_link) 2>conftest.er1
12401   ac_status=$?
12402   grep -v '^ *+' conftest.er1 >conftest.err
12403   rm -f conftest.er1
12404   cat conftest.err >&5
12405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406   (exit $ac_status); } &&
12407          { ac_try='test -z "$ac_c_werror_flag"
12408                          || test ! -s conftest.err'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; } &&
12414          { ac_try='test -s conftest$ac_exeext'
12415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416   (eval $ac_try) 2>&5
12417   ac_status=$?
12418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419   (exit $ac_status); }; }; then
12420   ac_cv_lib_socket_main=yes
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_cv_lib_socket_main=no
12426 fi
12427 rm -f conftest.err conftest.$ac_objext \
12428       conftest$ac_exeext conftest.$ac_ext
12429 LIBS=$ac_check_lib_save_LIBS
12430 fi
12431 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12432 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12433 if test $ac_cv_lib_socket_main = yes; then
12434   gcj_cv_lib_sockets="-lsocket"
12435 else
12436   gcj_checkBoth=1
12437 fi
12438
12439      fi
12440      if test "$gcj_checkBoth" = 1; then
12441          gcj_oldLibs=$LIBS
12442          LIBS="$LIBS -lsocket -lnsl"
12443          unset ac_cv_func_accept
12444          echo "$as_me:$LINENO: checking for accept" >&5
12445 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12446 if test "${ac_cv_func_accept+set}" = set; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   if test x$gcc_no_link = xyes; then
12450   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12452    { (exit 1); exit 1; }; }
12453 fi
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h.  */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h.  */
12460 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12462 #define accept innocuous_accept
12463
12464 /* System header to define __stub macros and hopefully few prototypes,
12465     which can conflict with char accept (); below.
12466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12467     <limits.h> exists even on freestanding compilers.  */
12468
12469 #ifdef __STDC__
12470 # include <limits.h>
12471 #else
12472 # include <assert.h>
12473 #endif
12474
12475 #undef accept
12476
12477 /* Override any gcc2 internal prototype to avoid an error.  */
12478 #ifdef __cplusplus
12479 extern "C"
12480 {
12481 #endif
12482 /* We use char because int might match the return type of a gcc2
12483    builtin and then its argument prototype would still apply.  */
12484 char accept ();
12485 /* The GNU C library defines this for functions which it implements
12486     to always fail with ENOSYS.  Some functions are actually named
12487     something starting with __ and the normal name is an alias.  */
12488 #if defined (__stub_accept) || defined (__stub___accept)
12489 choke me
12490 #else
12491 char (*f) () = accept;
12492 #endif
12493 #ifdef __cplusplus
12494 }
12495 #endif
12496
12497 int
12498 main ()
12499 {
12500 return f != accept;
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext conftest$ac_exeext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12507   (eval $ac_link) 2>conftest.er1
12508   ac_status=$?
12509   grep -v '^ *+' conftest.er1 >conftest.err
12510   rm -f conftest.er1
12511   cat conftest.err >&5
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); } &&
12514          { ac_try='test -z "$ac_c_werror_flag"
12515                          || test ! -s conftest.err'
12516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517   (eval $ac_try) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); }; } &&
12521          { ac_try='test -s conftest$ac_exeext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_func_accept=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 ac_cv_func_accept=no
12533 fi
12534 rm -f conftest.err conftest.$ac_objext \
12535       conftest$ac_exeext conftest.$ac_ext
12536 fi
12537 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12538 echo "${ECHO_T}$ac_cv_func_accept" >&6
12539 if test $ac_cv_func_accept = yes; then
12540   gcj_checkNsl=0
12541                         gcj_cv_lib_sockets="-lsocket -lnsl"
12542 fi
12543
12544          unset ac_cv_func_accept
12545          LIBS=$gcj_oldLibs
12546      fi
12547      unset ac_cv_func_gethostbyname
12548      gcj_oldLibs=$LIBS
12549      LIBS="$LIBS $gcj_cv_lib_sockets"
12550      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12551 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12552 if test "${ac_cv_func_gethostbyname+set}" = set; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   if test x$gcc_no_link = xyes; then
12556   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12558    { (exit 1); exit 1; }; }
12559 fi
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12568 #define gethostbyname innocuous_gethostbyname
12569
12570 /* System header to define __stub macros and hopefully few prototypes,
12571     which can conflict with char gethostbyname (); below.
12572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573     <limits.h> exists even on freestanding compilers.  */
12574
12575 #ifdef __STDC__
12576 # include <limits.h>
12577 #else
12578 # include <assert.h>
12579 #endif
12580
12581 #undef gethostbyname
12582
12583 /* Override any gcc2 internal prototype to avoid an error.  */
12584 #ifdef __cplusplus
12585 extern "C"
12586 {
12587 #endif
12588 /* We use char because int might match the return type of a gcc2
12589    builtin and then its argument prototype would still apply.  */
12590 char gethostbyname ();
12591 /* The GNU C library defines this for functions which it implements
12592     to always fail with ENOSYS.  Some functions are actually named
12593     something starting with __ and the normal name is an alias.  */
12594 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12595 choke me
12596 #else
12597 char (*f) () = gethostbyname;
12598 #endif
12599 #ifdef __cplusplus
12600 }
12601 #endif
12602
12603 int
12604 main ()
12605 {
12606 return f != gethostbyname;
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613   (eval $ac_link) 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -z "$ac_c_werror_flag"
12621                          || test ! -s conftest.err'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; } &&
12627          { ac_try='test -s conftest$ac_exeext'
12628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629   (eval $ac_try) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; }; then
12633   ac_cv_func_gethostbyname=yes
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 ac_cv_func_gethostbyname=no
12639 fi
12640 rm -f conftest.err conftest.$ac_objext \
12641       conftest$ac_exeext conftest.$ac_ext
12642 fi
12643 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12644 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12645 if test $ac_cv_func_gethostbyname = yes; then
12646   :
12647 else
12648   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12649 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12650 if test "${ac_cv_lib_nsl_main+set}" = set; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653   ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-lnsl  $LIBS"
12655 if test x$gcc_no_link = xyes; then
12656   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12658    { (exit 1); exit 1; }; }
12659 fi
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h.  */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h.  */
12666
12667
12668 int
12669 main ()
12670 {
12671 main ();
12672   ;
12673   return 0;
12674 }
12675 _ACEOF
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678   (eval $ac_link) 2>conftest.er1
12679   ac_status=$?
12680   grep -v '^ *+' conftest.er1 >conftest.err
12681   rm -f conftest.er1
12682   cat conftest.err >&5
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); } &&
12685          { ac_try='test -z "$ac_c_werror_flag"
12686                          || test ! -s conftest.err'
12687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688   (eval $ac_try) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; } &&
12692          { ac_try='test -s conftest$ac_exeext'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698   ac_cv_lib_nsl_main=yes
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703 ac_cv_lib_nsl_main=no
12704 fi
12705 rm -f conftest.err conftest.$ac_objext \
12706       conftest$ac_exeext conftest.$ac_ext
12707 LIBS=$ac_check_lib_save_LIBS
12708 fi
12709 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12710 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12711 if test $ac_cv_lib_nsl_main = yes; then
12712   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12713 fi
12714
12715 fi
12716
12717      unset ac_cv_func_gethostbyname
12718      LIBS=$gcj_oldLIBS
12719
12720 fi
12721 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12722 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12723    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12724
12725    if test "$with_system_zlib" = yes; then
12726       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12727 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12728 if test "${ac_cv_lib_z_deflate+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-lz  $LIBS"
12733 if test x$gcc_no_link = xyes; then
12734   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12735 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12736    { (exit 1); exit 1; }; }
12737 fi
12738 cat >conftest.$ac_ext <<_ACEOF
12739 /* confdefs.h.  */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h.  */
12744
12745 /* Override any gcc2 internal prototype to avoid an error.  */
12746 #ifdef __cplusplus
12747 extern "C"
12748 #endif
12749 /* We use char because int might match the return type of a gcc2
12750    builtin and then its argument prototype would still apply.  */
12751 char deflate ();
12752 int
12753 main ()
12754 {
12755 deflate ();
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12762   (eval $ac_link) 2>conftest.er1
12763   ac_status=$?
12764   grep -v '^ *+' conftest.er1 >conftest.err
12765   rm -f conftest.er1
12766   cat conftest.err >&5
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); } &&
12769          { ac_try='test -z "$ac_c_werror_flag"
12770                          || test ! -s conftest.err'
12771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772   (eval $ac_try) 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; } &&
12776          { ac_try='test -s conftest$ac_exeext'
12777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778   (eval $ac_try) 2>&5
12779   ac_status=$?
12780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781   (exit $ac_status); }; }; then
12782   ac_cv_lib_z_deflate=yes
12783 else
12784   echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12786
12787 ac_cv_lib_z_deflate=no
12788 fi
12789 rm -f conftest.err conftest.$ac_objext \
12790       conftest$ac_exeext conftest.$ac_ext
12791 LIBS=$ac_check_lib_save_LIBS
12792 fi
12793 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12794 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12795 if test $ac_cv_lib_z_deflate = yes; then
12796   ZLIBSPEC=-lz
12797 else
12798   ZLIBSPEC=
12799 fi
12800
12801    fi
12802
12803    # Test for Gtk stuff, if asked for.
12804    if test "$use_gtk_awt" = yes; then
12805
12806   succeeded=no
12807
12808   if test -z "$PKG_CONFIG"; then
12809     # Extract the first word of "pkg-config", so it can be a program name with args.
12810 set dummy pkg-config; ac_word=$2
12811 echo "$as_me:$LINENO: checking for $ac_word" >&5
12812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12814   echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816   case $PKG_CONFIG in
12817   [\\/]* | ?:[\\/]*)
12818   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12819   ;;
12820   *)
12821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824   IFS=$as_save_IFS
12825   test -z "$as_dir" && as_dir=.
12826   for ac_exec_ext in '' $ac_executable_extensions; do
12827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12830     break 2
12831   fi
12832 done
12833 done
12834
12835   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12836   ;;
12837 esac
12838 fi
12839 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12840
12841 if test -n "$PKG_CONFIG"; then
12842   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12843 echo "${ECHO_T}$PKG_CONFIG" >&6
12844 else
12845   echo "$as_me:$LINENO: result: no" >&5
12846 echo "${ECHO_T}no" >&6
12847 fi
12848
12849   fi
12850
12851   if test "$PKG_CONFIG" = "no" ; then
12852      echo "*** The pkg-config script could not be found. Make sure it is"
12853      echo "*** in your path, or set the PKG_CONFIG environment variable"
12854      echo "*** to the full path to pkg-config."
12855      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12856   else
12857      PKG_CONFIG_MIN_VERSION=0.9.0
12858      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12859         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12860 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12861
12862         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12863             echo "$as_me:$LINENO: result: yes" >&5
12864 echo "${ECHO_T}yes" >&6
12865             succeeded=yes
12866
12867             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12868 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12869             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12870             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12871 echo "${ECHO_T}$GTK_CFLAGS" >&6
12872
12873             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12874 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12875             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12876             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12877 echo "${ECHO_T}$GTK_LIBS" >&6
12878         else
12879             GTK_CFLAGS=""
12880             GTK_LIBS=""
12881             ## If we have a custom action on failure, don't print errors, but
12882             ## do set a variable so people can do so.
12883             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12884             echo $GTK_PKG_ERRORS
12885         fi
12886
12887
12888
12889      else
12890         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12891         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12892      fi
12893   fi
12894
12895   if test $succeeded = yes; then
12896      :
12897   else
12898      { { 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
12899 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;}
12900    { (exit 1); exit 1; }; }
12901   fi
12902
12903
12904
12905
12906
12907   succeeded=no
12908
12909   if test -z "$PKG_CONFIG"; then
12910     # Extract the first word of "pkg-config", so it can be a program name with args.
12911 set dummy pkg-config; ac_word=$2
12912 echo "$as_me:$LINENO: checking for $ac_word" >&5
12913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12914 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12915   echo $ECHO_N "(cached) $ECHO_C" >&6
12916 else
12917   case $PKG_CONFIG in
12918   [\\/]* | ?:[\\/]*)
12919   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12920   ;;
12921   *)
12922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12924 do
12925   IFS=$as_save_IFS
12926   test -z "$as_dir" && as_dir=.
12927   for ac_exec_ext in '' $ac_executable_extensions; do
12928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12929     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12931     break 2
12932   fi
12933 done
12934 done
12935
12936   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12937   ;;
12938 esac
12939 fi
12940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12941
12942 if test -n "$PKG_CONFIG"; then
12943   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12944 echo "${ECHO_T}$PKG_CONFIG" >&6
12945 else
12946   echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6
12948 fi
12949
12950   fi
12951
12952   if test "$PKG_CONFIG" = "no" ; then
12953      echo "*** The pkg-config script could not be found. Make sure it is"
12954      echo "*** in your path, or set the PKG_CONFIG environment variable"
12955      echo "*** to the full path to pkg-config."
12956      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12957   else
12958      PKG_CONFIG_MIN_VERSION=0.9.0
12959      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12960         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12961 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12962
12963         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12964             echo "$as_me:$LINENO: result: yes" >&5
12965 echo "${ECHO_T}yes" >&6
12966             succeeded=yes
12967
12968             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12969 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12970             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12971             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12972 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12973
12974             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12975 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12976             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12977             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12978 echo "${ECHO_T}$GLIB_LIBS" >&6
12979         else
12980             GLIB_CFLAGS=""
12981             GLIB_LIBS=""
12982             ## If we have a custom action on failure, don't print errors, but
12983             ## do set a variable so people can do so.
12984             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12985             echo $GLIB_PKG_ERRORS
12986         fi
12987
12988
12989
12990      else
12991         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12992         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12993      fi
12994   fi
12995
12996   if test $succeeded = yes; then
12997      :
12998   else
12999      { { 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
13000 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;}
13001    { (exit 1); exit 1; }; }
13002   fi
13003
13004
13005
13006
13007
13008   succeeded=no
13009
13010   if test -z "$PKG_CONFIG"; then
13011     # Extract the first word of "pkg-config", so it can be a program name with args.
13012 set dummy pkg-config; ac_word=$2
13013 echo "$as_me:$LINENO: checking for $ac_word" >&5
13014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13015 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13016   echo $ECHO_N "(cached) $ECHO_C" >&6
13017 else
13018   case $PKG_CONFIG in
13019   [\\/]* | ?:[\\/]*)
13020   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13021   ;;
13022   *)
13023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026   IFS=$as_save_IFS
13027   test -z "$as_dir" && as_dir=.
13028   for ac_exec_ext in '' $ac_executable_extensions; do
13029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13030     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13032     break 2
13033   fi
13034 done
13035 done
13036
13037   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13038   ;;
13039 esac
13040 fi
13041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13042
13043 if test -n "$PKG_CONFIG"; then
13044   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13045 echo "${ECHO_T}$PKG_CONFIG" >&6
13046 else
13047   echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6
13049 fi
13050
13051   fi
13052
13053   if test "$PKG_CONFIG" = "no" ; then
13054      echo "*** The pkg-config script could not be found. Make sure it is"
13055      echo "*** in your path, or set the PKG_CONFIG environment variable"
13056      echo "*** to the full path to pkg-config."
13057      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13058   else
13059      PKG_CONFIG_MIN_VERSION=0.9.0
13060      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13061         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13062 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13063
13064         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13065             echo "$as_me:$LINENO: result: yes" >&5
13066 echo "${ECHO_T}yes" >&6
13067             succeeded=yes
13068
13069             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13070 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13071             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13072             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13073 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13074
13075             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13076 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13077             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13078             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13079 echo "${ECHO_T}$LIBART_LIBS" >&6
13080         else
13081             LIBART_CFLAGS=""
13082             LIBART_LIBS=""
13083             ## If we have a custom action on failure, don't print errors, but
13084             ## do set a variable so people can do so.
13085             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13086             echo $LIBART_PKG_ERRORS
13087         fi
13088
13089
13090
13091      else
13092         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13093         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13094      fi
13095   fi
13096
13097   if test $succeeded = yes; then
13098      :
13099   else
13100      { { 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
13101 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;}
13102    { (exit 1); exit 1; }; }
13103   fi
13104
13105
13106
13107
13108       # We require the XTest Extension to support java.awt.Robot.
13109       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13110 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13111 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lXtst ${X_LIBS} $LIBS"
13116 if test x$gcc_no_link = xyes; then
13117   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13118 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13119    { (exit 1); exit 1; }; }
13120 fi
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h.  */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h.  */
13127
13128 /* Override any gcc2 internal prototype to avoid an error.  */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 /* We use char because int might match the return type of a gcc2
13133    builtin and then its argument prototype would still apply.  */
13134 char XTestQueryExtension ();
13135 int
13136 main ()
13137 {
13138 XTestQueryExtension ();
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext conftest$ac_exeext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13145   (eval $ac_link) 2>conftest.er1
13146   ac_status=$?
13147   grep -v '^ *+' conftest.er1 >conftest.err
13148   rm -f conftest.er1
13149   cat conftest.err >&5
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); } &&
13152          { ac_try='test -z "$ac_c_werror_flag"
13153                          || test ! -s conftest.err'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; } &&
13159          { ac_try='test -s conftest$ac_exeext'
13160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161   (eval $ac_try) 2>&5
13162   ac_status=$?
13163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164   (exit $ac_status); }; }; then
13165   ac_cv_lib_Xtst_XTestQueryExtension=yes
13166 else
13167   echo "$as_me: failed program was:" >&5
13168 sed 's/^/| /' conftest.$ac_ext >&5
13169
13170 ac_cv_lib_Xtst_XTestQueryExtension=no
13171 fi
13172 rm -f conftest.err conftest.$ac_objext \
13173       conftest$ac_exeext conftest.$ac_ext
13174 LIBS=$ac_check_lib_save_LIBS
13175 fi
13176 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13177 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13178 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13179   true
13180 else
13181   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13182 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13183    { (exit 1); exit 1; }; }
13184 fi
13185
13186    fi
13187
13188    # On Solaris, and maybe other architectures, the Boehm collector
13189    # requires -ldl.
13190    if test "$GC" = boehm; then
13191       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13192 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13193 if test "${ac_cv_lib_dl_main+set}" = set; then
13194   echo $ECHO_N "(cached) $ECHO_C" >&6
13195 else
13196   ac_check_lib_save_LIBS=$LIBS
13197 LIBS="-ldl  $LIBS"
13198 if test x$gcc_no_link = xyes; then
13199   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13201    { (exit 1); exit 1; }; }
13202 fi
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209
13210
13211 int
13212 main ()
13213 {
13214 main ();
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13221   (eval $ac_link) 2>conftest.er1
13222   ac_status=$?
13223   grep -v '^ *+' conftest.er1 >conftest.err
13224   rm -f conftest.er1
13225   cat conftest.err >&5
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); } &&
13228          { ac_try='test -z "$ac_c_werror_flag"
13229                          || test ! -s conftest.err'
13230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231   (eval $ac_try) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; } &&
13235          { ac_try='test -s conftest$ac_exeext'
13236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13237   (eval $ac_try) 2>&5
13238   ac_status=$?
13239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240   (exit $ac_status); }; }; then
13241   ac_cv_lib_dl_main=yes
13242 else
13243   echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13245
13246 ac_cv_lib_dl_main=no
13247 fi
13248 rm -f conftest.err conftest.$ac_objext \
13249       conftest$ac_exeext conftest.$ac_ext
13250 LIBS=$ac_check_lib_save_LIBS
13251 fi
13252 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13253 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13254 if test $ac_cv_lib_dl_main = yes; then
13255   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13256 fi
13257
13258    fi
13259 fi
13260
13261
13262 if test "$supply_backtrace" = yes; then
13263   SUPPLY_BACKTRACE_TRUE=
13264   SUPPLY_BACKTRACE_FALSE='#'
13265 else
13266   SUPPLY_BACKTRACE_TRUE='#'
13267   SUPPLY_BACKTRACE_FALSE=
13268 fi
13269
13270
13271 if test -z "${with_multisubdir}"; then
13272    builddotdot=.
13273 else
13274    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13275 fi
13276
13277 NATIVE=yes
13278
13279 # Which gcj do we use?
13280 which_gcj=default
13281 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13282 if test -n "${with_cross_host}"; then
13283   # We are being configured with a cross compiler. We can't
13284   # use ac_exeext, because that is for the target platform.
13285   NATIVE=no
13286   cross_host_exeext=
13287   case "${with_cross_host}" in
13288      *mingw* | *cygwin*)
13289          cross_host_exeext=.exe
13290      ;;
13291   esac
13292   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13293      if test x"$build_noncanonical" = x"$with_cross_host"; then
13294         # Ordinary cross (host!=target and host=build)
13295         which_gcj=built
13296      else
13297         # Canadian cross (host!=target and host!=build)
13298         which_gcj=cross
13299      fi
13300   else
13301      which_gcj=cross
13302   fi
13303 else
13304   # We are being configured with a native or crossed-native compiler
13305   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13306      if test x"$build" = x"$host"; then
13307         # True native build (host=target and host=build)
13308         which_gcj=built
13309      else
13310         # Crossed-native build (host=target and host!=build)
13311         which_gcj=cross
13312      fi
13313   else
13314      which_gcj=path
13315   fi
13316 fi
13317 case "${which_gcj}" in
13318    built)
13319       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13320       GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13321       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13322    ;;
13323    cross)
13324       if test "x${with_newlib}" = "xyes"; then
13325          # FIXME (comment): Why is this needed?
13326          GCC_UNWIND_INCLUDE=
13327          GCJ="${target_noncanonical}-gcj"
13328       else
13329          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13330       fi
13331       ZIP=jar
13332       GCJH='$(target_noncanonical)-gcjh'
13333    ;;
13334    path)
13335       GCJ="gcj -B`${PWDCMD-pwd}`/"
13336       ## In this case, gcj is found outside the build tree.  However, zip is
13337       ## found in the build tree.
13338       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13339       GCJH=gcjh
13340    ;;
13341 esac
13342
13343
13344
13345
13346 # Create it, so that compile/link tests don't fail
13347 test -f libgcj.spec || touch libgcj.spec
13348
13349 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13350 case $build in
13351     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13352     *)         CLASSPATH_SEPARATOR=':' ;;
13353 esac
13354
13355
13356 # We must search the source tree for java.lang, since we still don't
13357 # have libgcj.jar nor java/lang/*.class
13358 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13359 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13360
13361 # Since some classes depend on this one, we need its source available
13362 # before we can do any GCJ compilation test :-(
13363 if test ! -f gnu/classpath/Configuration.java; then
13364   test -d gnu || mkdir gnu
13365   test -d gnu/classpath || mkdir gnu/classpath
13366   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13367       -e 's,@TOOLKIT@,$TOOLKIT,' \
13368         < $srcdir/gnu/classpath/Configuration.java.in \
13369         > gnu/classpath/Configuration.java
13370   # We do not want to redirect the output of the grep below to /dev/null,
13371   # but we add /dev/null to the input list so that grep will print the
13372   # filename of Configuration.java in case it finds any matches.
13373   if grep @ gnu/classpath/Configuration.java /dev/null; then
13374     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13375 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13376    { (exit 1); exit 1; }; }
13377   fi
13378 fi
13379
13380 if test -n "$ac_tool_prefix"; then
13381   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13382 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13383 echo "$as_me:$LINENO: checking for $ac_word" >&5
13384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13385 if test "${ac_cv_prog_GCJ+set}" = set; then
13386   echo $ECHO_N "(cached) $ECHO_C" >&6
13387 else
13388   if test -n "$GCJ"; then
13389   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13390 else
13391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392 for as_dir in $PATH
13393 do
13394   IFS=$as_save_IFS
13395   test -z "$as_dir" && as_dir=.
13396   for ac_exec_ext in '' $ac_executable_extensions; do
13397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13398     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13400     break 2
13401   fi
13402 done
13403 done
13404
13405 fi
13406 fi
13407 GCJ=$ac_cv_prog_GCJ
13408 if test -n "$GCJ"; then
13409   echo "$as_me:$LINENO: result: $GCJ" >&5
13410 echo "${ECHO_T}$GCJ" >&6
13411 else
13412   echo "$as_me:$LINENO: result: no" >&5
13413 echo "${ECHO_T}no" >&6
13414 fi
13415
13416 fi
13417 if test -z "$ac_cv_prog_GCJ"; then
13418   ac_ct_GCJ=$GCJ
13419   # Extract the first word of "gcj", so it can be a program name with args.
13420 set dummy gcj; ac_word=$2
13421 echo "$as_me:$LINENO: checking for $ac_word" >&5
13422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13423 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13424   echo $ECHO_N "(cached) $ECHO_C" >&6
13425 else
13426   if test -n "$ac_ct_GCJ"; then
13427   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13428 else
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13431 do
13432   IFS=$as_save_IFS
13433   test -z "$as_dir" && as_dir=.
13434   for ac_exec_ext in '' $ac_executable_extensions; do
13435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436     ac_cv_prog_ac_ct_GCJ="gcj"
13437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13438     break 2
13439   fi
13440 done
13441 done
13442
13443   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13444 fi
13445 fi
13446 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13447 if test -n "$ac_ct_GCJ"; then
13448   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13449 echo "${ECHO_T}$ac_ct_GCJ" >&6
13450 else
13451   echo "$as_me:$LINENO: result: no" >&5
13452 echo "${ECHO_T}no" >&6
13453 fi
13454
13455   GCJ=$ac_ct_GCJ
13456 else
13457   GCJ="$ac_cv_prog_GCJ"
13458 fi
13459
13460   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13461
13462
13463
13464
13465 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13466
13467 echo "$as_me:$LINENO: checking size of void *" >&5
13468 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13469 if test "${ac_cv_sizeof_void_p+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13473   cat >conftest.$ac_ext <<_ACEOF
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479 #include "confdefs.h"
13480 #include <sys/types.h>
13481
13482
13483 int
13484 main ()
13485 {
13486 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13487   ;
13488   return 0;
13489 }
13490 _ACEOF
13491 rm -f conftest.$ac_objext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493   (eval $ac_compile) 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } &&
13500          { ac_try='test -z "$ac_c_werror_flag"
13501                          || test ! -s conftest.err'
13502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503   (eval $ac_try) 2>&5
13504   ac_status=$?
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); }; } &&
13507          { ac_try='test -s conftest.$ac_objext'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; }; then
13513   ac_cv_sizeof_void_p=$ac_size
13514 else
13515   echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518 fi
13519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13520   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13521 done
13522
13523 fi
13524
13525 if test x$ac_cv_sizeof_void_p = x ; then
13526   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13527 echo "$as_me: error: cannot determine a size for void *" >&2;}
13528    { (exit 1); exit 1; }; }
13529 fi
13530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13531 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13532
13533 cat >>confdefs.h <<_ACEOF
13534 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13535 _ACEOF
13536
13537
13538
13539 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13540 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13541 if test "${ac_cv_c_bigendian+set}" = set; then
13542   echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544   ac_cv_c_bigendian=unknown
13545 # See if sys/param.h defines the BYTE_ORDER macro.
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552 #include <sys/types.h>
13553 #include <sys/param.h>
13554 int
13555 main ()
13556 {
13557
13558 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13559  bogus endian macros
13560 #endif
13561   ;
13562   return 0;
13563 }
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567   (eval $ac_compile) 2>conftest.er1
13568   ac_status=$?
13569   grep -v '^ *+' conftest.er1 >conftest.err
13570   rm -f conftest.er1
13571   cat conftest.err >&5
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } &&
13574          { ac_try='test -z "$ac_c_werror_flag"
13575                          || test ! -s conftest.err'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; } &&
13581          { ac_try='test -s conftest.$ac_objext'
13582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583   (eval $ac_try) 2>&5
13584   ac_status=$?
13585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586   (exit $ac_status); }; }; then
13587   # It does; now see whether it defined to BIG_ENDIAN or not.
13588 cat >conftest.$ac_ext <<_ACEOF
13589 /* confdefs.h.  */
13590 _ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h.  */
13594 #include <sys/types.h>
13595 #include <sys/param.h>
13596 int
13597 main ()
13598 {
13599
13600 #if BYTE_ORDER != BIG_ENDIAN
13601  not big endian
13602 #endif
13603   ;
13604   return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609   (eval $ac_compile) 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } &&
13616          { ac_try='test -z "$ac_c_werror_flag"
13617                          || test ! -s conftest.err'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; } &&
13623          { ac_try='test -s conftest.$ac_objext'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; }; then
13629   ac_cv_c_bigendian=yes
13630 else
13631   echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13633
13634 ac_cv_c_bigendian=no
13635 fi
13636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 fi
13642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13643 if test $ac_cv_c_bigendian = unknown; then
13644 if test "$cross_compiling" = yes; then
13645    echo $ac_n "cross-compiling... " 2>&6
13646 else
13647   cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 main () {
13654   /* Are we little or big endian?  From Harbison&Steele.  */
13655   union
13656   {
13657     long l;
13658     char c[sizeof (long)];
13659   } u;
13660   u.l = 1;
13661   exit (u.c[sizeof (long) - 1] == 1);
13662 }
13663 _ACEOF
13664 rm -f conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>&5
13667   ac_status=$?
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   ac_cv_c_bigendian=no
13676 else
13677   echo "$as_me: program exited with status $ac_status" >&5
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13680
13681 ( exit $ac_status )
13682 ac_cv_c_bigendian=yes
13683 fi
13684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13685 fi
13686 fi
13687 fi
13688 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13689 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13690 if test $ac_cv_c_bigendian = unknown; then
13691 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13692 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13693
13694 cat >conftest.c <<EOF
13695 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13696 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13697 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13698 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13699 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13700 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13701 int main() { _ascii (); _ebcdic (); return 0; }
13702 EOF
13703  if test -f conftest.c ; then
13704      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13705         if test `grep -l BIGenDianSyS conftest.o` ; then
13706            echo $ac_n ' big endian probe OK, ' 1>&6
13707            ac_cv_c_bigendian=yes
13708         fi
13709         if test `grep -l LiTTleEnDian conftest.o` ; then
13710            echo $ac_n ' little endian probe OK, ' 1>&6
13711            if test $ac_cv_c_bigendian = yes ; then
13712             ac_cv_c_bigendian=unknown;
13713            else
13714             ac_cv_c_bigendian=no
13715            fi
13716         fi
13717         echo $ac_n 'guessing bigendian ...  ' >&6
13718      fi
13719   fi
13720 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13721 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13722 fi
13723 if test $ac_cv_c_bigendian = yes; then
13724
13725 cat >>confdefs.h <<\_ACEOF
13726 #define WORDS_BIGENDIAN 1
13727 _ACEOF
13728
13729
13730 cat >>confdefs.h <<\_ACEOF
13731 #define HOST_WORDS_BIG_ENDIAN 1
13732 _ACEOF
13733
13734   BYTEORDER=4321
13735 else
13736   BYTEORDER=1234
13737 fi
13738
13739 cat >>confdefs.h <<_ACEOF
13740 #define BYTEORDER $BYTEORDER
13741 _ACEOF
13742
13743 if test $ac_cv_c_bigendian = unknown; then
13744   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13745 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13746    { (exit 1); exit 1; }; }
13747 fi
13748
13749
13750 ZLIBS=
13751 SYS_ZLIBS=
13752 ZINCS=
13753
13754 if test -z "$ZLIBSPEC"; then
13755    # Use zlib from the GCC tree.
13756    ZINCS='-I$(top_srcdir)/../zlib'
13757    ZLIBS=../zlib/libzgcj_convenience.la
13758 else
13759    # System's zlib.
13760    SYS_ZLIBS="$ZLIBSPEC"
13761 fi
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772 if test "$NATIVE" = yes; then
13773   NATIVE_TRUE=
13774   NATIVE_FALSE='#'
13775 else
13776   NATIVE_TRUE='#'
13777   NATIVE_FALSE=
13778 fi
13779
13780
13781
13782 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13783   NEEDS_DATA_START_TRUE=
13784   NEEDS_DATA_START_FALSE='#'
13785 else
13786   NEEDS_DATA_START_TRUE='#'
13787   NEEDS_DATA_START_FALSE=
13788 fi
13789
13790
13791
13792 # Process the option "--enable-version-specific-runtime-libs"
13793 # Calculate toolexeclibdir
13794 case ${version_specific_libs} in
13795   yes)
13796     # Need the gcc compiler version to know where to install libraries
13797     # and header files if --enable-version-specific-runtime-libs option
13798     # is selected.
13799     includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
13800     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13801     toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
13802     toolexeclibdir=$toolexecmainlibdir
13803     ;;
13804   no)
13805     if test -n "$with_cross_host" &&
13806        test x"$with_cross_host" != x"no"; then
13807       # Install a library built with a cross compiler in tooldir, not libdir.
13808       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13809       toolexecmainlibdir='$(toolexecdir)/lib'
13810     else
13811       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13812       toolexecmainlibdir='$(libdir)'
13813     fi
13814     multi_os_directory=`$CC -print-multi-os-directory`
13815     case $multi_os_directory in
13816       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13817       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13818     esac
13819     ;;
13820 esac
13821
13822
13823
13824
13825 # Determine gcj version number.
13826 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13827 GCJVERSION=$gcjversion
13828
13829
13830 cat >>confdefs.h <<_ACEOF
13831 #define GCJVERSION "$GCJVERSION"
13832 _ACEOF
13833
13834
13835
13836 case "${with_gxx_include_dir}" in
13837   yes)
13838     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13839 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13840    { (exit 1); exit 1; }; }
13841     ;;
13842   no | "")
13843     case "${enable_version_specific_runtime_libs}" in
13844       yes) gxx_include_dir='${libsubdir}/include/c++' ;;
13845       *)
13846         libstdcxx_incdir=c++/${gcc_version}
13847         gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;;
13848     esac ;;
13849   *) gxx_include_dir=${with_gxx_include_dir} ;;
13850 esac
13851
13852
13853
13854
13855 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13856 # On that system, sys/ioctl.h will not include sys/filio.h unless
13857 # BSD_COMP is defined; just including sys/filio.h is simpler.
13858 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13859 # for now.  If you change this, you also must update natFile.cc.
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13881                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13882                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13883                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
13884                   dirent.h
13885 do
13886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13888   echo "$as_me:$LINENO: checking for $ac_header" >&5
13889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13891   echo $ECHO_N "(cached) $ECHO_C" >&6
13892 fi
13893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13895 else
13896   # Is the header compilable?
13897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905 $ac_includes_default
13906 #include <$ac_header>
13907 _ACEOF
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910   (eval $ac_compile) 2>conftest.er1
13911   ac_status=$?
13912   grep -v '^ *+' conftest.er1 >conftest.err
13913   rm -f conftest.er1
13914   cat conftest.err >&5
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); } &&
13917          { ac_try='test -z "$ac_c_werror_flag"
13918                          || test ! -s conftest.err'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; } &&
13924          { ac_try='test -s conftest.$ac_objext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_header_compiler=yes
13931 else
13932   echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 ac_header_compiler=no
13936 fi
13937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13939 echo "${ECHO_T}$ac_header_compiler" >&6
13940
13941 # Is the header present?
13942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13944 cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950 #include <$ac_header>
13951 _ACEOF
13952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13953   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13954   ac_status=$?
13955   grep -v '^ *+' conftest.er1 >conftest.err
13956   rm -f conftest.er1
13957   cat conftest.err >&5
13958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959   (exit $ac_status); } >/dev/null; then
13960   if test -s conftest.err; then
13961     ac_cpp_err=$ac_c_preproc_warn_flag
13962     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13963   else
13964     ac_cpp_err=
13965   fi
13966 else
13967   ac_cpp_err=yes
13968 fi
13969 if test -z "$ac_cpp_err"; then
13970   ac_header_preproc=yes
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975   ac_header_preproc=no
13976 fi
13977 rm -f conftest.err conftest.$ac_ext
13978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13979 echo "${ECHO_T}$ac_header_preproc" >&6
13980
13981 # So?  What about this header?
13982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13983   yes:no: )
13984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13988     ac_header_preproc=yes
13989     ;;
13990   no:yes:* )
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14003     (
14004       cat <<\_ASBOX
14005 ## ---------------------------------- ##
14006 ## Report this to the libjava lists.  ##
14007 ## ---------------------------------- ##
14008 _ASBOX
14009     ) |
14010       sed "s/^/$as_me: WARNING:     /" >&2
14011     ;;
14012 esac
14013 echo "$as_me:$LINENO: checking for $ac_header" >&5
14014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   eval "$as_ac_Header=\$ac_header_preproc"
14019 fi
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022
14023 fi
14024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14025   cat >>confdefs.h <<_ACEOF
14026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14027 _ACEOF
14028
14029 fi
14030
14031 done
14032
14033
14034 for ac_header in inttypes.h
14035 do
14036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14038   echo "$as_me:$LINENO: checking for $ac_header" >&5
14039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 fi
14043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14045 else
14046   # Is the header compilable?
14047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14049 cat >conftest.$ac_ext <<_ACEOF
14050 /* confdefs.h.  */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h.  */
14055 $ac_includes_default
14056 #include <$ac_header>
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060   (eval $ac_compile) 2>conftest.er1
14061   ac_status=$?
14062   grep -v '^ *+' conftest.er1 >conftest.err
14063   rm -f conftest.er1
14064   cat conftest.err >&5
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -z "$ac_c_werror_flag"
14068                          || test ! -s conftest.err'
14069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070   (eval $ac_try) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); }; } &&
14074          { ac_try='test -s conftest.$ac_objext'
14075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076   (eval $ac_try) 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; }; then
14080   ac_header_compiler=yes
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 ac_header_compiler=no
14086 fi
14087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14089 echo "${ECHO_T}$ac_header_compiler" >&6
14090
14091 # Is the header present?
14092 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14094 cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h.  */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h.  */
14100 #include <$ac_header>
14101 _ACEOF
14102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14103   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14104   ac_status=$?
14105   grep -v '^ *+' conftest.er1 >conftest.err
14106   rm -f conftest.er1
14107   cat conftest.err >&5
14108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109   (exit $ac_status); } >/dev/null; then
14110   if test -s conftest.err; then
14111     ac_cpp_err=$ac_c_preproc_warn_flag
14112     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14113   else
14114     ac_cpp_err=
14115   fi
14116 else
14117   ac_cpp_err=yes
14118 fi
14119 if test -z "$ac_cpp_err"; then
14120   ac_header_preproc=yes
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125   ac_header_preproc=no
14126 fi
14127 rm -f conftest.err conftest.$ac_ext
14128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14129 echo "${ECHO_T}$ac_header_preproc" >&6
14130
14131 # So?  What about this header?
14132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14133   yes:no: )
14134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14138     ac_header_preproc=yes
14139     ;;
14140   no:yes:* )
14141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14143     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14144 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14145     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14147     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14148 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14151     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14153     (
14154       cat <<\_ASBOX
14155 ## ---------------------------------- ##
14156 ## Report this to the libjava lists.  ##
14157 ## ---------------------------------- ##
14158 _ASBOX
14159     ) |
14160       sed "s/^/$as_me: WARNING:     /" >&2
14161     ;;
14162 esac
14163 echo "$as_me:$LINENO: checking for $ac_header" >&5
14164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   eval "$as_ac_Header=\$ac_header_preproc"
14169 fi
14170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14172
14173 fi
14174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14175   cat >>confdefs.h <<_ACEOF
14176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14177 _ACEOF
14178
14179
14180 cat >>confdefs.h <<\_ACEOF
14181 #define HAVE_INTTYPES_H 1
14182 _ACEOF
14183
14184
14185 cat >>confdefs.h <<\_ACEOF
14186 #define JV_HAVE_INTTYPES_H 1
14187 _ACEOF
14188
14189
14190 fi
14191
14192 done
14193
14194 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14195 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14196 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14197   echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199   cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h.  */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h.  */
14205 #include <sys/types.h>
14206 #include <sys/wait.h>
14207 #ifndef WEXITSTATUS
14208 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14209 #endif
14210 #ifndef WIFEXITED
14211 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14212 #endif
14213
14214 int
14215 main ()
14216 {
14217   int s;
14218   wait (&s);
14219   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226   (eval $ac_compile) 2>conftest.er1
14227   ac_status=$?
14228   grep -v '^ *+' conftest.er1 >conftest.err
14229   rm -f conftest.er1
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } &&
14233          { ac_try='test -z "$ac_c_werror_flag"
14234                          || test ! -s conftest.err'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; } &&
14240          { ac_try='test -s conftest.$ac_objext'
14241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242   (eval $ac_try) 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; }; then
14246   ac_cv_header_sys_wait_h=yes
14247 else
14248   echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 ac_cv_header_sys_wait_h=no
14252 fi
14253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14254 fi
14255 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14256 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14257 if test $ac_cv_header_sys_wait_h = yes; then
14258
14259 cat >>confdefs.h <<\_ACEOF
14260 #define HAVE_SYS_WAIT_H 1
14261 _ACEOF
14262
14263 fi
14264
14265
14266 echo "$as_me:$LINENO: checking for ssize_t" >&5
14267 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14268 if test "${ac_cv_type_ssize_t+set}" = set; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271   cat >conftest.$ac_ext <<_ACEOF
14272 /* confdefs.h.  */
14273 _ACEOF
14274 cat confdefs.h >>conftest.$ac_ext
14275 cat >>conftest.$ac_ext <<_ACEOF
14276 /* end confdefs.h.  */
14277 $ac_includes_default
14278 int
14279 main ()
14280 {
14281 if ((ssize_t *) 0)
14282   return 0;
14283 if (sizeof (ssize_t))
14284   return 0;
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext
14290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291   (eval $ac_compile) 2>conftest.er1
14292   ac_status=$?
14293   grep -v '^ *+' conftest.er1 >conftest.err
14294   rm -f conftest.er1
14295   cat conftest.err >&5
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } &&
14298          { ac_try='test -z "$ac_c_werror_flag"
14299                          || test ! -s conftest.err'
14300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301   (eval $ac_try) 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; } &&
14305          { ac_try='test -s conftest.$ac_objext'
14306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14307   (eval $ac_try) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); }; }; then
14311   ac_cv_type_ssize_t=yes
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 ac_cv_type_ssize_t=no
14317 fi
14318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14319 fi
14320 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14321 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14322 if test $ac_cv_type_ssize_t = yes; then
14323   :
14324 else
14325
14326 cat >>confdefs.h <<_ACEOF
14327 #define ssize_t int
14328 _ACEOF
14329
14330 fi
14331
14332
14333 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14334 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14335 cat >conftest.$ac_ext <<_ACEOF
14336 /* confdefs.h.  */
14337 _ACEOF
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h.  */
14341 #include <sys/types.h>
14342 #if STDC_HEADERS
14343 #include <stdlib.h>
14344 #include <stddef.h>
14345 #endif
14346 #if HAVE_NETINET_IN_H
14347 #include <netinet/in.h>
14348 #endif
14349 int
14350 main ()
14351 {
14352 in_addr_t foo;
14353   ;
14354   return 0;
14355 }
14356 _ACEOF
14357 rm -f conftest.$ac_objext
14358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14359   (eval $ac_compile) 2>conftest.er1
14360   ac_status=$?
14361   grep -v '^ *+' conftest.er1 >conftest.err
14362   rm -f conftest.er1
14363   cat conftest.err >&5
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); } &&
14366          { ac_try='test -z "$ac_c_werror_flag"
14367                          || test ! -s conftest.err'
14368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14369   (eval $ac_try) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); }; } &&
14373          { ac_try='test -s conftest.$ac_objext'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379
14380 cat >>confdefs.h <<\_ACEOF
14381 #define HAVE_IN_ADDR_T 1
14382 _ACEOF
14383
14384    echo "$as_me:$LINENO: result: yes" >&5
14385 echo "${ECHO_T}yes" >&6
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390 echo "$as_me:$LINENO: result: no" >&5
14391 echo "${ECHO_T}no" >&6
14392 fi
14393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14394
14395 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14396 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403 #include <netinet/in.h>
14404 int
14405 main ()
14406 {
14407 struct ip_mreq mreq;
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414   (eval $ac_compile) 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } &&
14421          { ac_try='test -z "$ac_c_werror_flag"
14422                          || test ! -s conftest.err'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; } &&
14428          { ac_try='test -s conftest.$ac_objext'
14429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430   (eval $ac_try) 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_STRUCT_IP_MREQ 1
14437 _ACEOF
14438
14439    echo "$as_me:$LINENO: result: yes" >&5
14440 echo "${ECHO_T}yes" >&6
14441 else
14442   echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14444
14445 echo "$as_me:$LINENO: result: no" >&5
14446 echo "${ECHO_T}no" >&6
14447 fi
14448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14449
14450 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14451 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14452 cat >conftest.$ac_ext <<_ACEOF
14453 /* confdefs.h.  */
14454 _ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h.  */
14458 #include <netinet/in.h>
14459 int
14460 main ()
14461 {
14462 struct ipv6_mreq mreq6;
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } &&
14476          { ac_try='test -z "$ac_c_werror_flag"
14477                          || test ! -s conftest.err'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; } &&
14483          { ac_try='test -s conftest.$ac_objext'
14484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14485   (eval $ac_try) 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; }; then
14489
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_STRUCT_IPV6_MREQ 1
14492 _ACEOF
14493
14494    echo "$as_me:$LINENO: result: yes" >&5
14495 echo "${ECHO_T}yes" >&6
14496 else
14497   echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500 echo "$as_me:$LINENO: result: no" >&5
14501 echo "${ECHO_T}no" >&6
14502 fi
14503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14504
14505 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14506 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14507 cat >conftest.$ac_ext <<_ACEOF
14508 /* confdefs.h.  */
14509 _ACEOF
14510 cat confdefs.h >>conftest.$ac_ext
14511 cat >>conftest.$ac_ext <<_ACEOF
14512 /* end confdefs.h.  */
14513 #include <netinet/in.h>
14514 int
14515 main ()
14516 {
14517 struct sockaddr_in6 addr6;
14518   ;
14519   return 0;
14520 }
14521 _ACEOF
14522 rm -f conftest.$ac_objext
14523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14524   (eval $ac_compile) 2>conftest.er1
14525   ac_status=$?
14526   grep -v '^ *+' conftest.er1 >conftest.err
14527   rm -f conftest.er1
14528   cat conftest.err >&5
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); } &&
14531          { ac_try='test -z "$ac_c_werror_flag"
14532                          || test ! -s conftest.err'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; } &&
14538          { ac_try='test -s conftest.$ac_objext'
14539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14540   (eval $ac_try) 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544
14545 cat >>confdefs.h <<\_ACEOF
14546 #define HAVE_INET6 1
14547 _ACEOF
14548
14549    echo "$as_me:$LINENO: result: yes" >&5
14550 echo "${ECHO_T}yes" >&6
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555 echo "$as_me:$LINENO: result: no" >&5
14556 echo "${ECHO_T}no" >&6
14557 fi
14558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14559
14560 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14561 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 #define _POSIX_PII_SOCKET
14569 #include <sys/types.h>
14570 #include <sys/socket.h>
14571 int
14572 main ()
14573 {
14574 socklen_t x = 5;
14575   ;
14576   return 0;
14577 }
14578 _ACEOF
14579 rm -f conftest.$ac_objext
14580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14581   (eval $ac_compile) 2>conftest.er1
14582   ac_status=$?
14583   grep -v '^ *+' conftest.er1 >conftest.err
14584   rm -f conftest.er1
14585   cat conftest.err >&5
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); } &&
14588          { ac_try='test -z "$ac_c_werror_flag"
14589                          || test ! -s conftest.err'
14590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14591   (eval $ac_try) 2>&5
14592   ac_status=$?
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); }; } &&
14595          { ac_try='test -s conftest.$ac_objext'
14596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597   (eval $ac_try) 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); }; }; then
14601
14602 cat >>confdefs.h <<\_ACEOF
14603 #define HAVE_SOCKLEN_T 1
14604 _ACEOF
14605
14606    echo "$as_me:$LINENO: result: yes" >&5
14607 echo "${ECHO_T}yes" >&6
14608 else
14609   echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 echo "$as_me:$LINENO: result: no" >&5
14613 echo "${ECHO_T}no" >&6
14614 fi
14615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14616
14617 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14618 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14619 cat >conftest.$ac_ext <<_ACEOF
14620 /* confdefs.h.  */
14621 _ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h.  */
14625 #include <time.h>
14626 int
14627 main ()
14628 {
14629 struct tm tim; tim.tm_gmtoff = 0;
14630   ;
14631   return 0;
14632 }
14633 _ACEOF
14634 rm -f conftest.$ac_objext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636   (eval $ac_compile) 2>conftest.er1
14637   ac_status=$?
14638   grep -v '^ *+' conftest.er1 >conftest.err
14639   rm -f conftest.er1
14640   cat conftest.err >&5
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } &&
14643          { ac_try='test -z "$ac_c_werror_flag"
14644                          || test ! -s conftest.err'
14645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14646   (eval $ac_try) 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; } &&
14650          { ac_try='test -s conftest.$ac_objext'
14651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652   (eval $ac_try) 2>&5
14653   ac_status=$?
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); }; }; then
14656
14657 cat >>confdefs.h <<\_ACEOF
14658 #define STRUCT_TM_HAS_GMTOFF 1
14659 _ACEOF
14660
14661    echo "$as_me:$LINENO: result: yes" >&5
14662 echo "${ECHO_T}yes" >&6
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 echo "$as_me:$LINENO: result: no" >&5
14668 echo "${ECHO_T}no" >&6
14669    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14670 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14671                cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h.  */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h.  */
14677 #include <time.h>
14678 int
14679 main ()
14680 {
14681 void i(){long z2 = 2*timezone;}
14682   ;
14683   return 0;
14684 }
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14688   (eval $ac_compile) 2>conftest.er1
14689   ac_status=$?
14690   grep -v '^ *+' conftest.er1 >conftest.err
14691   rm -f conftest.er1
14692   cat conftest.err >&5
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } &&
14695          { ac_try='test -z "$ac_c_werror_flag"
14696                          || test ! -s conftest.err'
14697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698   (eval $ac_try) 2>&5
14699   ac_status=$?
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); }; } &&
14702          { ac_try='test -s conftest.$ac_objext'
14703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704   (eval $ac_try) 2>&5
14705   ac_status=$?
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); }; }; then
14708
14709 cat >>confdefs.h <<\_ACEOF
14710 #define HAVE_TIMEZONE 1
14711 _ACEOF
14712
14713       echo "$as_me:$LINENO: result: yes" >&5
14714 echo "${ECHO_T}yes" >&6
14715 else
14716   echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719 echo "$as_me:$LINENO: result: no" >&5
14720 echo "${ECHO_T}no" >&6
14721        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14722 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14723               cat >conftest.$ac_ext <<_ACEOF
14724 /* confdefs.h.  */
14725 _ACEOF
14726 cat confdefs.h >>conftest.$ac_ext
14727 cat >>conftest.$ac_ext <<_ACEOF
14728 /* end confdefs.h.  */
14729 #include <time.h>
14730 int
14731 main ()
14732 {
14733 long z2 = _timezone;
14734   ;
14735   return 0;
14736 }
14737 _ACEOF
14738 rm -f conftest.$ac_objext
14739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14740   (eval $ac_compile) 2>conftest.er1
14741   ac_status=$?
14742   grep -v '^ *+' conftest.er1 >conftest.err
14743   rm -f conftest.er1
14744   cat conftest.err >&5
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); } &&
14747          { ac_try='test -z "$ac_c_werror_flag"
14748                          || test ! -s conftest.err'
14749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750   (eval $ac_try) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); }; } &&
14754          { ac_try='test -s conftest.$ac_objext'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }; then
14760
14761 cat >>confdefs.h <<\_ACEOF
14762 #define HAVE_UNDERSCORE_TIMEZONE 1
14763 _ACEOF
14764
14765           echo "$as_me:$LINENO: result: yes" >&5
14766 echo "${ECHO_T}yes" >&6
14767 else
14768   echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14770
14771 echo "$as_me:$LINENO: result: no" >&5
14772 echo "${ECHO_T}no" >&6
14773 fi
14774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14775 fi
14776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 fi
14778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14779
14780 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14781 # for constant arguments.  Useless!
14782 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14783 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14784 if test "${ac_cv_working_alloca_h+set}" = set; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787   if test x$gcc_no_link = xyes; then
14788   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14790    { (exit 1); exit 1; }; }
14791 fi
14792 cat >conftest.$ac_ext <<_ACEOF
14793 /* confdefs.h.  */
14794 _ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h.  */
14798 #include <alloca.h>
14799 int
14800 main ()
14801 {
14802 char *p = (char *) alloca (2 * sizeof (int));
14803   ;
14804   return 0;
14805 }
14806 _ACEOF
14807 rm -f conftest.$ac_objext conftest$ac_exeext
14808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14809   (eval $ac_link) 2>conftest.er1
14810   ac_status=$?
14811   grep -v '^ *+' conftest.er1 >conftest.err
14812   rm -f conftest.er1
14813   cat conftest.err >&5
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } &&
14816          { ac_try='test -z "$ac_c_werror_flag"
14817                          || test ! -s conftest.err'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; } &&
14823          { ac_try='test -s conftest$ac_exeext'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; }; then
14829   ac_cv_working_alloca_h=yes
14830 else
14831   echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 ac_cv_working_alloca_h=no
14835 fi
14836 rm -f conftest.err conftest.$ac_objext \
14837       conftest$ac_exeext conftest.$ac_ext
14838 fi
14839 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14840 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14841 if test $ac_cv_working_alloca_h = yes; then
14842
14843 cat >>confdefs.h <<\_ACEOF
14844 #define HAVE_ALLOCA_H 1
14845 _ACEOF
14846
14847 fi
14848
14849 echo "$as_me:$LINENO: checking for alloca" >&5
14850 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14851 if test "${ac_cv_func_alloca_works+set}" = set; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   if test x$gcc_no_link = xyes; then
14855   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14857    { (exit 1); exit 1; }; }
14858 fi
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h.  */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h.  */
14865 #ifdef __GNUC__
14866 # define alloca __builtin_alloca
14867 #else
14868 # ifdef _MSC_VER
14869 #  include <malloc.h>
14870 #  define alloca _alloca
14871 # else
14872 #  if HAVE_ALLOCA_H
14873 #   include <alloca.h>
14874 #  else
14875 #   ifdef _AIX
14876  #pragma alloca
14877 #   else
14878 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14879 char *alloca ();
14880 #    endif
14881 #   endif
14882 #  endif
14883 # endif
14884 #endif
14885
14886 int
14887 main ()
14888 {
14889 char *p = (char *) alloca (1);
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14896   (eval $ac_link) 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -z "$ac_c_werror_flag"
14904                          || test ! -s conftest.err'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; } &&
14910          { ac_try='test -s conftest$ac_exeext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_cv_func_alloca_works=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_cv_func_alloca_works=no
14922 fi
14923 rm -f conftest.err conftest.$ac_objext \
14924       conftest$ac_exeext conftest.$ac_ext
14925 fi
14926 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14927 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14928
14929 if test $ac_cv_func_alloca_works = yes; then
14930
14931 cat >>confdefs.h <<\_ACEOF
14932 #define HAVE_ALLOCA 1
14933 _ACEOF
14934
14935 else
14936   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14937 # that cause trouble.  Some versions do not even contain alloca or
14938 # contain a buggy version.  If you still want to use their alloca,
14939 # use ar to extract alloca.o from them instead of compiling alloca.c.
14940
14941 ALLOCA=alloca.$ac_objext
14942
14943 cat >>confdefs.h <<\_ACEOF
14944 #define C_ALLOCA 1
14945 _ACEOF
14946
14947
14948 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14949 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14950 if test "${ac_cv_os_cray+set}" = set; then
14951   echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953   cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959 #if defined(CRAY) && ! defined(CRAY2)
14960 webecray
14961 #else
14962 wenotbecray
14963 #endif
14964
14965 _ACEOF
14966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14967   $EGREP "webecray" >/dev/null 2>&1; then
14968   ac_cv_os_cray=yes
14969 else
14970   ac_cv_os_cray=no
14971 fi
14972 rm -f conftest*
14973
14974 fi
14975 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14976 echo "${ECHO_T}$ac_cv_os_cray" >&6
14977 if test $ac_cv_os_cray = yes; then
14978   for ac_func in _getb67 GETB67 getb67; do
14979     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14980 echo "$as_me:$LINENO: checking for $ac_func" >&5
14981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14982 if eval "test \"\${$as_ac_var+set}\" = set"; then
14983   echo $ECHO_N "(cached) $ECHO_C" >&6
14984 else
14985   if test x$gcc_no_link = xyes; then
14986   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14988    { (exit 1); exit 1; }; }
14989 fi
14990 cat >conftest.$ac_ext <<_ACEOF
14991 /* confdefs.h.  */
14992 _ACEOF
14993 cat confdefs.h >>conftest.$ac_ext
14994 cat >>conftest.$ac_ext <<_ACEOF
14995 /* end confdefs.h.  */
14996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14997    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14998 #define $ac_func innocuous_$ac_func
14999
15000 /* System header to define __stub macros and hopefully few prototypes,
15001     which can conflict with char $ac_func (); below.
15002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15003     <limits.h> exists even on freestanding compilers.  */
15004
15005 #ifdef __STDC__
15006 # include <limits.h>
15007 #else
15008 # include <assert.h>
15009 #endif
15010
15011 #undef $ac_func
15012
15013 /* Override any gcc2 internal prototype to avoid an error.  */
15014 #ifdef __cplusplus
15015 extern "C"
15016 {
15017 #endif
15018 /* We use char because int might match the return type of a gcc2
15019    builtin and then its argument prototype would still apply.  */
15020 char $ac_func ();
15021 /* The GNU C library defines this for functions which it implements
15022     to always fail with ENOSYS.  Some functions are actually named
15023     something starting with __ and the normal name is an alias.  */
15024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15025 choke me
15026 #else
15027 char (*f) () = $ac_func;
15028 #endif
15029 #ifdef __cplusplus
15030 }
15031 #endif
15032
15033 int
15034 main ()
15035 {
15036 return f != $ac_func;
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext conftest$ac_exeext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15043   (eval $ac_link) 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -z "$ac_c_werror_flag"
15051                          || test ! -s conftest.err'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; } &&
15057          { ac_try='test -s conftest$ac_exeext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   eval "$as_ac_var=yes"
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 eval "$as_ac_var=no"
15069 fi
15070 rm -f conftest.err conftest.$ac_objext \
15071       conftest$ac_exeext conftest.$ac_ext
15072 fi
15073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15075 if test `eval echo '${'$as_ac_var'}'` = yes; then
15076
15077 cat >>confdefs.h <<_ACEOF
15078 #define CRAY_STACKSEG_END $ac_func
15079 _ACEOF
15080
15081     break
15082 fi
15083
15084   done
15085 fi
15086
15087 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15088 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15089 if test "${ac_cv_c_stack_direction+set}" = set; then
15090   echo $ECHO_N "(cached) $ECHO_C" >&6
15091 else
15092   if test "$cross_compiling" = yes; then
15093   ac_cv_c_stack_direction=0
15094 else
15095   cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h.  */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h.  */
15101 int
15102 find_stack_direction ()
15103 {
15104   static char *addr = 0;
15105   auto char dummy;
15106   if (addr == 0)
15107     {
15108       addr = &dummy;
15109       return find_stack_direction ();
15110     }
15111   else
15112     return (&dummy > addr) ? 1 : -1;
15113 }
15114
15115 int
15116 main ()
15117 {
15118   exit (find_stack_direction () < 0);
15119 }
15120 _ACEOF
15121 rm -f conftest$ac_exeext
15122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15123   (eval $ac_link) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15128   (eval $ac_try) 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); }; }; then
15132   ac_cv_c_stack_direction=1
15133 else
15134   echo "$as_me: program exited with status $ac_status" >&5
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15137
15138 ( exit $ac_status )
15139 ac_cv_c_stack_direction=-1
15140 fi
15141 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15142 fi
15143 fi
15144 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15145 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15146
15147 cat >>confdefs.h <<_ACEOF
15148 #define STACK_DIRECTION $ac_cv_c_stack_direction
15149 _ACEOF
15150
15151
15152 fi
15153
15154 if test x$gcc_no_link = xyes; then
15155   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15156     ac_cv_func_mmap_fixed_mapped=no
15157   fi
15158 fi
15159 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15160
15161
15162 for ac_header in stdlib.h unistd.h
15163 do
15164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15166   echo "$as_me:$LINENO: checking for $ac_header" >&5
15167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15169   echo $ECHO_N "(cached) $ECHO_C" >&6
15170 fi
15171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15172 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15173 else
15174   # Is the header compilable?
15175 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15176 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15177 cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 $ac_includes_default
15184 #include <$ac_header>
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15188   (eval $ac_compile) 2>conftest.er1
15189   ac_status=$?
15190   grep -v '^ *+' conftest.er1 >conftest.err
15191   rm -f conftest.er1
15192   cat conftest.err >&5
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); } &&
15195          { ac_try='test -z "$ac_c_werror_flag"
15196                          || test ! -s conftest.err'
15197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15198   (eval $ac_try) 2>&5
15199   ac_status=$?
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); }; } &&
15202          { ac_try='test -s conftest.$ac_objext'
15203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204   (eval $ac_try) 2>&5
15205   ac_status=$?
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); }; }; then
15208   ac_header_compiler=yes
15209 else
15210   echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 ac_header_compiler=no
15214 fi
15215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15217 echo "${ECHO_T}$ac_header_compiler" >&6
15218
15219 # Is the header present?
15220 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15221 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15222 cat >conftest.$ac_ext <<_ACEOF
15223 /* confdefs.h.  */
15224 _ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h.  */
15228 #include <$ac_header>
15229 _ACEOF
15230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15232   ac_status=$?
15233   grep -v '^ *+' conftest.er1 >conftest.err
15234   rm -f conftest.er1
15235   cat conftest.err >&5
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } >/dev/null; then
15238   if test -s conftest.err; then
15239     ac_cpp_err=$ac_c_preproc_warn_flag
15240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15241   else
15242     ac_cpp_err=
15243   fi
15244 else
15245   ac_cpp_err=yes
15246 fi
15247 if test -z "$ac_cpp_err"; then
15248   ac_header_preproc=yes
15249 else
15250   echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253   ac_header_preproc=no
15254 fi
15255 rm -f conftest.err conftest.$ac_ext
15256 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15257 echo "${ECHO_T}$ac_header_preproc" >&6
15258
15259 # So?  What about this header?
15260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15261   yes:no: )
15262     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15263 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15266     ac_header_preproc=yes
15267     ;;
15268   no:yes:* )
15269     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15270 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15271     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15272 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15273     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15274 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15275     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15276 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15279     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15280 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15281     (
15282       cat <<\_ASBOX
15283 ## ---------------------------------- ##
15284 ## Report this to the libjava lists.  ##
15285 ## ---------------------------------- ##
15286 _ASBOX
15287     ) |
15288       sed "s/^/$as_me: WARNING:     /" >&2
15289     ;;
15290 esac
15291 echo "$as_me:$LINENO: checking for $ac_header" >&5
15292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   eval "$as_ac_Header=\$ac_header_preproc"
15297 fi
15298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15300
15301 fi
15302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15303   cat >>confdefs.h <<_ACEOF
15304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15305 _ACEOF
15306
15307 fi
15308
15309 done
15310
15311
15312 for ac_func in getpagesize
15313 do
15314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15315 echo "$as_me:$LINENO: checking for $ac_func" >&5
15316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15317 if eval "test \"\${$as_ac_var+set}\" = set"; then
15318   echo $ECHO_N "(cached) $ECHO_C" >&6
15319 else
15320   if test x$gcc_no_link = xyes; then
15321   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15323    { (exit 1); exit 1; }; }
15324 fi
15325 cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h.  */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h.  */
15331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15333 #define $ac_func innocuous_$ac_func
15334
15335 /* System header to define __stub macros and hopefully few prototypes,
15336     which can conflict with char $ac_func (); below.
15337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15338     <limits.h> exists even on freestanding compilers.  */
15339
15340 #ifdef __STDC__
15341 # include <limits.h>
15342 #else
15343 # include <assert.h>
15344 #endif
15345
15346 #undef $ac_func
15347
15348 /* Override any gcc2 internal prototype to avoid an error.  */
15349 #ifdef __cplusplus
15350 extern "C"
15351 {
15352 #endif
15353 /* We use char because int might match the return type of a gcc2
15354    builtin and then its argument prototype would still apply.  */
15355 char $ac_func ();
15356 /* The GNU C library defines this for functions which it implements
15357     to always fail with ENOSYS.  Some functions are actually named
15358     something starting with __ and the normal name is an alias.  */
15359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15360 choke me
15361 #else
15362 char (*f) () = $ac_func;
15363 #endif
15364 #ifdef __cplusplus
15365 }
15366 #endif
15367
15368 int
15369 main ()
15370 {
15371 return f != $ac_func;
15372   ;
15373   return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378   (eval $ac_link) 2>conftest.er1
15379   ac_status=$?
15380   grep -v '^ *+' conftest.er1 >conftest.err
15381   rm -f conftest.er1
15382   cat conftest.err >&5
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); } &&
15385          { ac_try='test -z "$ac_c_werror_flag"
15386                          || test ! -s conftest.err'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; } &&
15392          { ac_try='test -s conftest$ac_exeext'
15393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394   (eval $ac_try) 2>&5
15395   ac_status=$?
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); }; }; then
15398   eval "$as_ac_var=yes"
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 eval "$as_ac_var=no"
15404 fi
15405 rm -f conftest.err conftest.$ac_objext \
15406       conftest$ac_exeext conftest.$ac_ext
15407 fi
15408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15410 if test `eval echo '${'$as_ac_var'}'` = yes; then
15411   cat >>confdefs.h <<_ACEOF
15412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15413 _ACEOF
15414
15415 fi
15416 done
15417
15418 echo "$as_me:$LINENO: checking for working mmap" >&5
15419 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15420 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   if test "$cross_compiling" = yes; then
15424   ac_cv_func_mmap_fixed_mapped=no
15425 else
15426   cat >conftest.$ac_ext <<_ACEOF
15427 /* confdefs.h.  */
15428 _ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h.  */
15432 $ac_includes_default
15433 /* malloc might have been renamed as rpl_malloc. */
15434 #undef malloc
15435
15436 /* Thanks to Mike Haertel and Jim Avera for this test.
15437    Here is a matrix of mmap possibilities:
15438         mmap private not fixed
15439         mmap private fixed at somewhere currently unmapped
15440         mmap private fixed at somewhere already mapped
15441         mmap shared not fixed
15442         mmap shared fixed at somewhere currently unmapped
15443         mmap shared fixed at somewhere already mapped
15444    For private mappings, we should verify that changes cannot be read()
15445    back from the file, nor mmap's back from the file at a different
15446    address.  (There have been systems where private was not correctly
15447    implemented like the infamous i386 svr4.0, and systems where the
15448    VM page cache was not coherent with the file system buffer cache
15449    like early versions of FreeBSD and possibly contemporary NetBSD.)
15450    For shared mappings, we should conversely verify that changes get
15451    propagated back to all the places they're supposed to be.
15452
15453    Grep wants private fixed already mapped.
15454    The main things grep needs to know about mmap are:
15455    * does it exist and is it safe to write into the mmap'd area
15456    * how to use it (BSD variants)  */
15457
15458 #include <fcntl.h>
15459 #include <sys/mman.h>
15460
15461 #if !STDC_HEADERS && !HAVE_STDLIB_H
15462 char *malloc ();
15463 #endif
15464
15465 /* This mess was copied from the GNU getpagesize.h.  */
15466 #if !HAVE_GETPAGESIZE
15467 /* Assume that all systems that can run configure have sys/param.h.  */
15468 # if !HAVE_SYS_PARAM_H
15469 #  define HAVE_SYS_PARAM_H 1
15470 # endif
15471
15472 # ifdef _SC_PAGESIZE
15473 #  define getpagesize() sysconf(_SC_PAGESIZE)
15474 # else /* no _SC_PAGESIZE */
15475 #  if HAVE_SYS_PARAM_H
15476 #   include <sys/param.h>
15477 #   ifdef EXEC_PAGESIZE
15478 #    define getpagesize() EXEC_PAGESIZE
15479 #   else /* no EXEC_PAGESIZE */
15480 #    ifdef NBPG
15481 #     define getpagesize() NBPG * CLSIZE
15482 #     ifndef CLSIZE
15483 #      define CLSIZE 1
15484 #     endif /* no CLSIZE */
15485 #    else /* no NBPG */
15486 #     ifdef NBPC
15487 #      define getpagesize() NBPC
15488 #     else /* no NBPC */
15489 #      ifdef PAGESIZE
15490 #       define getpagesize() PAGESIZE
15491 #      endif /* PAGESIZE */
15492 #     endif /* no NBPC */
15493 #    endif /* no NBPG */
15494 #   endif /* no EXEC_PAGESIZE */
15495 #  else /* no HAVE_SYS_PARAM_H */
15496 #   define getpagesize() 8192   /* punt totally */
15497 #  endif /* no HAVE_SYS_PARAM_H */
15498 # endif /* no _SC_PAGESIZE */
15499
15500 #endif /* no HAVE_GETPAGESIZE */
15501
15502 int
15503 main ()
15504 {
15505   char *data, *data2, *data3;
15506   int i, pagesize;
15507   int fd;
15508
15509   pagesize = getpagesize ();
15510
15511   /* First, make a file with some known garbage in it. */
15512   data = (char *) malloc (pagesize);
15513   if (!data)
15514     exit (1);
15515   for (i = 0; i < pagesize; ++i)
15516     *(data + i) = rand ();
15517   umask (0);
15518   fd = creat ("conftest.mmap", 0600);
15519   if (fd < 0)
15520     exit (1);
15521   if (write (fd, data, pagesize) != pagesize)
15522     exit (1);
15523   close (fd);
15524
15525   /* Next, try to mmap the file at a fixed address which already has
15526      something else allocated at it.  If we can, also make sure that
15527      we see the same garbage.  */
15528   fd = open ("conftest.mmap", O_RDWR);
15529   if (fd < 0)
15530     exit (1);
15531   data2 = (char *) malloc (2 * pagesize);
15532   if (!data2)
15533     exit (1);
15534   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15535   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15536                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15537     exit (1);
15538   for (i = 0; i < pagesize; ++i)
15539     if (*(data + i) != *(data2 + i))
15540       exit (1);
15541
15542   /* Finally, make sure that changes to the mapped area do not
15543      percolate back to the file as seen by read().  (This is a bug on
15544      some variants of i386 svr4.0.)  */
15545   for (i = 0; i < pagesize; ++i)
15546     *(data2 + i) = *(data2 + i) + 1;
15547   data3 = (char *) malloc (pagesize);
15548   if (!data3)
15549     exit (1);
15550   if (read (fd, data3, pagesize) != pagesize)
15551     exit (1);
15552   for (i = 0; i < pagesize; ++i)
15553     if (*(data + i) != *(data3 + i))
15554       exit (1);
15555   close (fd);
15556   exit (0);
15557 }
15558 _ACEOF
15559 rm -f conftest$ac_exeext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15561   (eval $ac_link) 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566   (eval $ac_try) 2>&5
15567   ac_status=$?
15568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569   (exit $ac_status); }; }; then
15570   ac_cv_func_mmap_fixed_mapped=yes
15571 else
15572   echo "$as_me: program exited with status $ac_status" >&5
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576 ( exit $ac_status )
15577 ac_cv_func_mmap_fixed_mapped=no
15578 fi
15579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15580 fi
15581 fi
15582 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15583 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15584 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15585
15586 cat >>confdefs.h <<\_ACEOF
15587 #define HAVE_MMAP 1
15588 _ACEOF
15589
15590 fi
15591 rm -f conftest.mmap
15592
15593 fi
15594
15595 for ac_prog in perl
15596 do
15597   # Extract the first word of "$ac_prog", so it can be a program name with args.
15598 set dummy $ac_prog; ac_word=$2
15599 echo "$as_me:$LINENO: checking for $ac_word" >&5
15600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15601 if test "${ac_cv_prog_PERL+set}" = set; then
15602   echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604   if test -n "$PERL"; then
15605   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15606 else
15607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15608 for as_dir in $PATH
15609 do
15610   IFS=$as_save_IFS
15611   test -z "$as_dir" && as_dir=.
15612   for ac_exec_ext in '' $ac_executable_extensions; do
15613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15614     ac_cv_prog_PERL="$ac_prog"
15615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15616     break 2
15617   fi
15618 done
15619 done
15620
15621 fi
15622 fi
15623 PERL=$ac_cv_prog_PERL
15624 if test -n "$PERL"; then
15625   echo "$as_me:$LINENO: result: $PERL" >&5
15626 echo "${ECHO_T}$PERL" >&6
15627 else
15628   echo "$as_me:$LINENO: result: no" >&5
15629 echo "${ECHO_T}no" >&6
15630 fi
15631
15632   test -n "$PERL" && break
15633 done
15634 test -n "$PERL" || PERL="false"
15635
15636
15637 SYSDEP_SOURCES=
15638 SIGNAL_HANDLER_AUX=
15639
15640 case "${host}" in
15641  i?86-*-linux*)
15642     SIGNAL_HANDLER=include/i386-signal.h
15643     ;;
15644  sparc*-sun-solaris*)
15645     SIGNAL_HANDLER=include/sparc-signal.h
15646     ;;
15647 # ia64-*)
15648 #    SYSDEP_SOURCES=sysdep/ia64.c
15649 #    test -d sysdep || mkdir sysdep
15650 #    ;;
15651  hppa*-*-linux*)
15652     SIGNAL_HANDLER=include/pa-signal.h
15653     ;;
15654  ia64-*-linux*)
15655     SIGNAL_HANDLER=include/dwarf2-signal.h
15656     ;;
15657  powerpc*-*-linux*)
15658     SIGNAL_HANDLER=include/powerpc-signal.h
15659     ;;
15660  alpha*-*-linux*)
15661     SIGNAL_HANDLER=include/dwarf2-signal.h
15662     ;;
15663  s390*-*-linux*)
15664     SIGNAL_HANDLER=include/s390-signal.h
15665     ;;
15666  x86_64*-*-linux*)
15667     SIGNAL_HANDLER=include/x86_64-signal.h
15668     SIGNAL_HANDLER_AUX=include/i386-signal.h
15669     ;;
15670  sparc*-*-linux*)
15671     SIGNAL_HANDLER=include/dwarf2-signal.h
15672     ;;
15673  sh*-*-linux*)
15674     SIGNAL_HANDLER=include/sh-signal.h
15675     ;;
15676  *mingw*)
15677     SIGNAL_HANDLER=include/win32-signal.h
15678     ;;
15679  mips*-*-linux*)
15680     SIGNAL_HANDLER=include/mips-signal.h
15681     ;;
15682  *-*-darwin*)
15683     SIGNAL_HANDLER=include/darwin-signal.h
15684     ;;
15685  *)
15686     SIGNAL_HANDLER=include/default-signal.h
15687     ;;
15688 esac
15689
15690 # If we're using sjlj exceptions, forget what we just learned.
15691 if test "$enable_sjlj_exceptions" = yes; then
15692    SIGNAL_HANDLER=include/default-signal.h
15693    SIGNAL_HANDLER_AUX=
15694 fi
15695
15696 # Define here any compiler flags that you need in order to make backtrace() work.
15697 BACKTRACESPEC=
15698 case "${host}" in
15699  x86_64*-*-linux*|i?86-*)
15700     BACKTRACESPEC=-fno-omit-frame-pointer
15701     ;;
15702 esac
15703
15704
15705
15706
15707 if test -z "$SIGNAL_HANDLER_AUX"; then
15708   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15709 fi
15710
15711                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15712
15713
15714 if test "${multilib}" = "yes"; then
15715   multilib_arg="--enable-multilib"
15716 else
15717   multilib_arg=
15718 fi
15719
15720
15721
15722 here=`${PWDCMD-pwd}`
15723
15724
15725 # We get this from the environment.
15726
15727
15728                                                                                                               ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15729
15730
15731           ac_config_commands="$ac_config_commands default"
15732
15733
15734 cat >confcache <<\_ACEOF
15735 # This file is a shell script that caches the results of configure
15736 # tests run on this system so they can be shared between configure
15737 # scripts and configure runs, see configure's option --config-cache.
15738 # It is not useful on other systems.  If it contains results you don't
15739 # want to keep, you may remove or edit it.
15740 #
15741 # config.status only pays attention to the cache file if you give it
15742 # the --recheck option to rerun configure.
15743 #
15744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15746 # following values.
15747
15748 _ACEOF
15749
15750 # The following way of writing the cache mishandles newlines in values,
15751 # but we know of no workaround that is simple, portable, and efficient.
15752 # So, don't put newlines in cache variables' values.
15753 # Ultrix sh set writes to stderr and can't be redirected directly,
15754 # and sets the high bit in the cache file unless we assign to the vars.
15755 {
15756   (set) 2>&1 |
15757     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15758     *ac_space=\ *)
15759       # `set' does not quote correctly, so add quotes (double-quote
15760       # substitution turns \\\\ into \\, and sed turns \\ into \).
15761       sed -n \
15762         "s/'/'\\\\''/g;
15763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15764       ;;
15765     *)
15766       # `set' quotes correctly as required by POSIX, so do not add quotes.
15767       sed -n \
15768         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15769       ;;
15770     esac;
15771 } |
15772   sed '
15773      t clear
15774      : clear
15775      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15776      t end
15777      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15778      : end' >>confcache
15779 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15780   if test -w $cache_file; then
15781     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15782     cat confcache >$cache_file
15783   else
15784     echo "not updating unwritable cache $cache_file"
15785   fi
15786 fi
15787 rm -f confcache
15788
15789 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15790 # Let make expand exec_prefix.
15791 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15792
15793 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15794 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15795 # trailing colons and then remove the whole line if VPATH becomes empty
15796 # (actually we leave an empty line to preserve line numbers).
15797 if test "x$srcdir" = x.; then
15798   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15799 s/:*\$(srcdir):*/:/;
15800 s/:*\${srcdir}:*/:/;
15801 s/:*@srcdir@:*/:/;
15802 s/^\([^=]*=[     ]*\):*/\1/;
15803 s/:*$//;
15804 s/^[^=]*=[       ]*$//;
15805 }'
15806 fi
15807
15808 DEFS=-DHAVE_CONFIG_H
15809
15810 ac_libobjs=
15811 ac_ltlibobjs=
15812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15813   # 1. Remove the extension, and $U if already installed.
15814   ac_i=`echo "$ac_i" |
15815          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15816   # 2. Add them.
15817   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15818   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15819 done
15820 LIBOBJS=$ac_libobjs
15821
15822 LTLIBOBJS=$ac_ltlibobjs
15823
15824
15825 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15826   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15827 Usually this means the macro was only invoked conditionally." >&5
15828 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15829 Usually this means the macro was only invoked conditionally." >&2;}
15830    { (exit 1); exit 1; }; }
15831 fi
15832 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15833   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15834 Usually this means the macro was only invoked conditionally." >&5
15835 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15836 Usually this means the macro was only invoked conditionally." >&2;}
15837    { (exit 1); exit 1; }; }
15838 fi
15839 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15840   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15841 Usually this means the macro was only invoked conditionally." >&5
15842 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15843 Usually this means the macro was only invoked conditionally." >&2;}
15844    { (exit 1); exit 1; }; }
15845 fi
15846 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15847   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15848 Usually this means the macro was only invoked conditionally." >&5
15849 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15850 Usually this means the macro was only invoked conditionally." >&2;}
15851    { (exit 1); exit 1; }; }
15852 fi
15853 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15854   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15855 Usually this means the macro was only invoked conditionally." >&5
15856 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15857 Usually this means the macro was only invoked conditionally." >&2;}
15858    { (exit 1); exit 1; }; }
15859 fi
15860 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15861   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15862 Usually this means the macro was only invoked conditionally." >&5
15863 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15864 Usually this means the macro was only invoked conditionally." >&2;}
15865    { (exit 1); exit 1; }; }
15866 fi
15867 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15868   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15869 Usually this means the macro was only invoked conditionally." >&5
15870 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15871 Usually this means the macro was only invoked conditionally." >&2;}
15872    { (exit 1); exit 1; }; }
15873 fi
15874 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15875   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15876 Usually this means the macro was only invoked conditionally." >&5
15877 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15878 Usually this means the macro was only invoked conditionally." >&2;}
15879    { (exit 1); exit 1; }; }
15880 fi
15881 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15882   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15883 Usually this means the macro was only invoked conditionally." >&5
15884 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15885 Usually this means the macro was only invoked conditionally." >&2;}
15886    { (exit 1); exit 1; }; }
15887 fi
15888 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15889   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15890 Usually this means the macro was only invoked conditionally." >&5
15891 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15892 Usually this means the macro was only invoked conditionally." >&2;}
15893    { (exit 1); exit 1; }; }
15894 fi
15895 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15896   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15897 Usually this means the macro was only invoked conditionally." >&5
15898 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15899 Usually this means the macro was only invoked conditionally." >&2;}
15900    { (exit 1); exit 1; }; }
15901 fi
15902 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15903   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15904 Usually this means the macro was only invoked conditionally." >&5
15905 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15906 Usually this means the macro was only invoked conditionally." >&2;}
15907    { (exit 1); exit 1; }; }
15908 fi
15909 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15910   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15911 Usually this means the macro was only invoked conditionally." >&5
15912 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15913 Usually this means the macro was only invoked conditionally." >&2;}
15914    { (exit 1); exit 1; }; }
15915 fi
15916 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15917   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15918 Usually this means the macro was only invoked conditionally." >&5
15919 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15920 Usually this means the macro was only invoked conditionally." >&2;}
15921    { (exit 1); exit 1; }; }
15922 fi
15923 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15924   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15925 Usually this means the macro was only invoked conditionally." >&5
15926 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15927 Usually this means the macro was only invoked conditionally." >&2;}
15928    { (exit 1); exit 1; }; }
15929 fi
15930 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15931   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15932 Usually this means the macro was only invoked conditionally." >&5
15933 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15934 Usually this means the macro was only invoked conditionally." >&2;}
15935    { (exit 1); exit 1; }; }
15936 fi
15937 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15938   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15939 Usually this means the macro was only invoked conditionally." >&5
15940 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15941 Usually this means the macro was only invoked conditionally." >&2;}
15942    { (exit 1); exit 1; }; }
15943 fi
15944 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15945   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15946 Usually this means the macro was only invoked conditionally." >&5
15947 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15948 Usually this means the macro was only invoked conditionally." >&2;}
15949    { (exit 1); exit 1; }; }
15950 fi
15951 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15952   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15953 Usually this means the macro was only invoked conditionally." >&5
15954 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15955 Usually this means the macro was only invoked conditionally." >&2;}
15956    { (exit 1); exit 1; }; }
15957 fi
15958 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15959   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15960 Usually this means the macro was only invoked conditionally." >&5
15961 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15962 Usually this means the macro was only invoked conditionally." >&2;}
15963    { (exit 1); exit 1; }; }
15964 fi
15965 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15966   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15967 Usually this means the macro was only invoked conditionally." >&5
15968 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15969 Usually this means the macro was only invoked conditionally." >&2;}
15970    { (exit 1); exit 1; }; }
15971 fi
15972 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15973   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15974 Usually this means the macro was only invoked conditionally." >&5
15975 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15976 Usually this means the macro was only invoked conditionally." >&2;}
15977    { (exit 1); exit 1; }; }
15978 fi
15979 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15980   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15981 Usually this means the macro was only invoked conditionally." >&5
15982 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
15983 Usually this means the macro was only invoked conditionally." >&2;}
15984    { (exit 1); exit 1; }; }
15985 fi
15986
15987 : ${CONFIG_STATUS=./config.status}
15988 ac_clean_files_save=$ac_clean_files
15989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15992 cat >$CONFIG_STATUS <<_ACEOF
15993 #! $SHELL
15994 # Generated by $as_me.
15995 # Run this file to recreate the current configuration.
15996 # Compiler output produced by configure, useful for debugging
15997 # configure, is in config.log if it exists.
15998
15999 debug=false
16000 ac_cs_recheck=false
16001 ac_cs_silent=false
16002 SHELL=\${CONFIG_SHELL-$SHELL}
16003 _ACEOF
16004
16005 cat >>$CONFIG_STATUS <<\_ACEOF
16006 ## --------------------- ##
16007 ## M4sh Initialization.  ##
16008 ## --------------------- ##
16009
16010 # Be Bourne compatible
16011 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16012   emulate sh
16013   NULLCMD=:
16014   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16015   # is contrary to our usage.  Disable this feature.
16016   alias -g '${1+"$@"}'='"$@"'
16017 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16018   set -o posix
16019 fi
16020 DUALCASE=1; export DUALCASE # for MKS sh
16021
16022 # Support unset when possible.
16023 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16024   as_unset=unset
16025 else
16026   as_unset=false
16027 fi
16028
16029
16030 # Work around bugs in pre-3.0 UWIN ksh.
16031 $as_unset ENV MAIL MAILPATH
16032 PS1='$ '
16033 PS2='> '
16034 PS4='+ '
16035
16036 # NLS nuisances.
16037 for as_var in \
16038   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16039   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16040   LC_TELEPHONE LC_TIME
16041 do
16042   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16043     eval $as_var=C; export $as_var
16044   else
16045     $as_unset $as_var
16046   fi
16047 done
16048
16049 # Required to use basename.
16050 if expr a : '\(a\)' >/dev/null 2>&1; then
16051   as_expr=expr
16052 else
16053   as_expr=false
16054 fi
16055
16056 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16057   as_basename=basename
16058 else
16059   as_basename=false
16060 fi
16061
16062
16063 # Name of the executable.
16064 as_me=`$as_basename "$0" ||
16065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16066          X"$0" : 'X\(//\)$' \| \
16067          X"$0" : 'X\(/\)$' \| \
16068          .     : '\(.\)' 2>/dev/null ||
16069 echo X/"$0" |
16070     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16071           /^X\/\(\/\/\)$/{ s//\1/; q; }
16072           /^X\/\(\/\).*/{ s//\1/; q; }
16073           s/.*/./; q'`
16074
16075
16076 # PATH needs CR, and LINENO needs CR and PATH.
16077 # Avoid depending upon Character Ranges.
16078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16081 as_cr_digits='0123456789'
16082 as_cr_alnum=$as_cr_Letters$as_cr_digits
16083
16084 # The user is always right.
16085 if test "${PATH_SEPARATOR+set}" != set; then
16086   echo "#! /bin/sh" >conf$$.sh
16087   echo  "exit 0"   >>conf$$.sh
16088   chmod +x conf$$.sh
16089   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16090     PATH_SEPARATOR=';'
16091   else
16092     PATH_SEPARATOR=:
16093   fi
16094   rm -f conf$$.sh
16095 fi
16096
16097
16098   as_lineno_1=$LINENO
16099   as_lineno_2=$LINENO
16100   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16101   test "x$as_lineno_1" != "x$as_lineno_2" &&
16102   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16103   # Find who we are.  Look in the path if we contain no path at all
16104   # relative or not.
16105   case $0 in
16106     *[\\/]* ) as_myself=$0 ;;
16107     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16108 for as_dir in $PATH
16109 do
16110   IFS=$as_save_IFS
16111   test -z "$as_dir" && as_dir=.
16112   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16113 done
16114
16115        ;;
16116   esac
16117   # We did not find ourselves, most probably we were run as `sh COMMAND'
16118   # in which case we are not to be found in the path.
16119   if test "x$as_myself" = x; then
16120     as_myself=$0
16121   fi
16122   if test ! -f "$as_myself"; then
16123     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16124 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16125    { (exit 1); exit 1; }; }
16126   fi
16127   case $CONFIG_SHELL in
16128   '')
16129     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16131 do
16132   IFS=$as_save_IFS
16133   test -z "$as_dir" && as_dir=.
16134   for as_base in sh bash ksh sh5; do
16135          case $as_dir in
16136          /*)
16137            if ("$as_dir/$as_base" -c '
16138   as_lineno_1=$LINENO
16139   as_lineno_2=$LINENO
16140   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16141   test "x$as_lineno_1" != "x$as_lineno_2" &&
16142   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16143              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16144              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16145              CONFIG_SHELL=$as_dir/$as_base
16146              export CONFIG_SHELL
16147              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16148            fi;;
16149          esac
16150        done
16151 done
16152 ;;
16153   esac
16154
16155   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16156   # uniformly replaced by the line number.  The first 'sed' inserts a
16157   # line-number line before each line; the second 'sed' does the real
16158   # work.  The second script uses 'N' to pair each line-number line
16159   # with the numbered line, and appends trailing '-' during
16160   # substitution so that $LINENO is not a special case at line end.
16161   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16162   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16163   sed '=' <$as_myself |
16164     sed '
16165       N
16166       s,$,-,
16167       : loop
16168       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16169       t loop
16170       s,-$,,
16171       s,^['$as_cr_digits']*\n,,
16172     ' >$as_me.lineno &&
16173   chmod +x $as_me.lineno ||
16174     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16175 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16176    { (exit 1); exit 1; }; }
16177
16178   # Don't try to exec as it changes $[0], causing all sort of problems
16179   # (the dirname of $[0] is not the place where we might find the
16180   # original and so on.  Autoconf is especially sensible to this).
16181   . ./$as_me.lineno
16182   # Exit status is that of the last command.
16183   exit
16184 }
16185
16186
16187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16188   *c*,-n*) ECHO_N= ECHO_C='
16189 ' ECHO_T='      ' ;;
16190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16192 esac
16193
16194 if expr a : '\(a\)' >/dev/null 2>&1; then
16195   as_expr=expr
16196 else
16197   as_expr=false
16198 fi
16199
16200 rm -f conf$$ conf$$.exe conf$$.file
16201 echo >conf$$.file
16202 if ln -s conf$$.file conf$$ 2>/dev/null; then
16203   # We could just check for DJGPP; but this test a) works b) is more generic
16204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16205   if test -f conf$$.exe; then
16206     # Don't use ln at all; we don't have any links
16207     as_ln_s='cp -p'
16208   else
16209     as_ln_s='ln -s'
16210   fi
16211 elif ln conf$$.file conf$$ 2>/dev/null; then
16212   as_ln_s=ln
16213 else
16214   as_ln_s='cp -p'
16215 fi
16216 rm -f conf$$ conf$$.exe conf$$.file
16217
16218 if mkdir -p . 2>/dev/null; then
16219   as_mkdir_p=:
16220 else
16221   test -d ./-p && rmdir ./-p
16222   as_mkdir_p=false
16223 fi
16224
16225 as_executable_p="test -f"
16226
16227 # Sed expression to map a string onto a valid CPP name.
16228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16229
16230 # Sed expression to map a string onto a valid variable name.
16231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16232
16233
16234 # IFS
16235 # We need space, tab and new line, in precisely that order.
16236 as_nl='
16237 '
16238 IFS="   $as_nl"
16239
16240 # CDPATH.
16241 $as_unset CDPATH
16242
16243 exec 6>&1
16244
16245 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16246 # report actual input values of CONFIG_FILES etc. instead of their
16247 # values after options handling.  Logging --version etc. is OK.
16248 exec 5>>config.log
16249 {
16250   echo
16251   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16252 ## Running $as_me. ##
16253 _ASBOX
16254 } >&5
16255 cat >&5 <<_CSEOF
16256
16257 This file was extended by libjava $as_me version-unused, which was
16258 generated by GNU Autoconf 2.59.  Invocation command line was
16259
16260   CONFIG_FILES    = $CONFIG_FILES
16261   CONFIG_HEADERS  = $CONFIG_HEADERS
16262   CONFIG_LINKS    = $CONFIG_LINKS
16263   CONFIG_COMMANDS = $CONFIG_COMMANDS
16264   $ $0 $@
16265
16266 _CSEOF
16267 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16268 echo >&5
16269 _ACEOF
16270
16271 # Files that config.status was made for.
16272 if test -n "$ac_config_files"; then
16273   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16274 fi
16275
16276 if test -n "$ac_config_headers"; then
16277   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16278 fi
16279
16280 if test -n "$ac_config_links"; then
16281   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16282 fi
16283
16284 if test -n "$ac_config_commands"; then
16285   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16286 fi
16287
16288 cat >>$CONFIG_STATUS <<\_ACEOF
16289
16290 ac_cs_usage="\
16291 \`$as_me' instantiates files from templates according to the
16292 current configuration.
16293
16294 Usage: $0 [OPTIONS] [FILE]...
16295
16296   -h, --help       print this help, then exit
16297   -V, --version    print version number, then exit
16298   -q, --quiet      do not print progress messages
16299   -d, --debug      don't remove temporary files
16300       --recheck    update $as_me by reconfiguring in the same conditions
16301   --file=FILE[:TEMPLATE]
16302                    instantiate the configuration file FILE
16303   --header=FILE[:TEMPLATE]
16304                    instantiate the configuration header FILE
16305
16306 Configuration files:
16307 $config_files
16308
16309 Configuration headers:
16310 $config_headers
16311
16312 Configuration links:
16313 $config_links
16314
16315 Configuration commands:
16316 $config_commands
16317
16318 Report bugs to <bug-autoconf@gnu.org>."
16319 _ACEOF
16320
16321 cat >>$CONFIG_STATUS <<_ACEOF
16322 ac_cs_version="\\
16323 libjava config.status version-unused
16324 configured by $0, generated by GNU Autoconf 2.59,
16325   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16326
16327 Copyright (C) 2003 Free Software Foundation, Inc.
16328 This config.status script is free software; the Free Software Foundation
16329 gives unlimited permission to copy, distribute and modify it."
16330 srcdir=$srcdir
16331 INSTALL="$INSTALL"
16332 _ACEOF
16333
16334 cat >>$CONFIG_STATUS <<\_ACEOF
16335 # If no file are specified by the user, then we need to provide default
16336 # value.  By we need to know if files were specified by the user.
16337 ac_need_defaults=:
16338 while test $# != 0
16339 do
16340   case $1 in
16341   --*=*)
16342     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16343     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16344     ac_shift=:
16345     ;;
16346   -*)
16347     ac_option=$1
16348     ac_optarg=$2
16349     ac_shift=shift
16350     ;;
16351   *) # This is not an option, so the user has probably given explicit
16352      # arguments.
16353      ac_option=$1
16354      ac_need_defaults=false;;
16355   esac
16356
16357   case $ac_option in
16358   # Handling of the options.
16359 _ACEOF
16360 cat >>$CONFIG_STATUS <<\_ACEOF
16361   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16362     ac_cs_recheck=: ;;
16363   --version | --vers* | -V )
16364     echo "$ac_cs_version"; exit 0 ;;
16365   --he | --h)
16366     # Conflict between --help and --header
16367     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16368 Try \`$0 --help' for more information." >&5
16369 echo "$as_me: error: ambiguous option: $1
16370 Try \`$0 --help' for more information." >&2;}
16371    { (exit 1); exit 1; }; };;
16372   --help | --hel | -h )
16373     echo "$ac_cs_usage"; exit 0 ;;
16374   --debug | --d* | -d )
16375     debug=: ;;
16376   --file | --fil | --fi | --f )
16377     $ac_shift
16378     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16379     ac_need_defaults=false;;
16380   --header | --heade | --head | --hea )
16381     $ac_shift
16382     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16383     ac_need_defaults=false;;
16384   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16385   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16386     ac_cs_silent=: ;;
16387
16388   # This is an error.
16389   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16390 Try \`$0 --help' for more information." >&5
16391 echo "$as_me: error: unrecognized option: $1
16392 Try \`$0 --help' for more information." >&2;}
16393    { (exit 1); exit 1; }; } ;;
16394
16395   *) ac_config_targets="$ac_config_targets $1" ;;
16396
16397   esac
16398   shift
16399 done
16400
16401 ac_configure_extra_args=
16402
16403 if $ac_cs_silent; then
16404   exec 6>/dev/null
16405   ac_configure_extra_args="$ac_configure_extra_args --silent"
16406 fi
16407
16408 _ACEOF
16409 cat >>$CONFIG_STATUS <<_ACEOF
16410 if \$ac_cs_recheck; then
16411   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16412   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16413 fi
16414
16415 _ACEOF
16416
16417 cat >>$CONFIG_STATUS <<_ACEOF
16418 #
16419 # INIT-COMMANDS section.
16420 #
16421
16422 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16423 srcdir=${srcdir}
16424 host=${host}
16425 target=${target}
16426 with_multisubdir=${with_multisubdir}
16427 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16428 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16429 libgcj_basedir=${libgcj_basedir}
16430 CC="${CC}"
16431 CXX="${CXX}"
16432 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16433
16434
16435 _ACEOF
16436
16437
16438
16439 cat >>$CONFIG_STATUS <<\_ACEOF
16440 for ac_config_target in $ac_config_targets
16441 do
16442   case "$ac_config_target" in
16443   # Handling of arguments.
16444   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16445   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16446   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16447   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16448   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16449   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16450   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16451   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16452   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16453   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16454   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16455   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16456   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16457   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16458   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16459   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16460   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16461   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16462   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16463   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16464   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16465   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16466   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16467   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16468   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16469   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16470   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16471   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16472   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16473   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16474   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16475   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16476 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16477    { (exit 1); exit 1; }; };;
16478   esac
16479 done
16480
16481 # If the user did not use the arguments to specify the items to instantiate,
16482 # then the envvar interface is used.  Set only those that are not.
16483 # We use the long form for the default assignment because of an extremely
16484 # bizarre bug on SunOS 4.1.3.
16485 if $ac_need_defaults; then
16486   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16487   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16488   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16489   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16490 fi
16491
16492 # Have a temporary directory for convenience.  Make it in the build tree
16493 # simply because there is no reason to put it here, and in addition,
16494 # creating and moving files from /tmp can sometimes cause problems.
16495 # Create a temporary directory, and hook for its removal unless debugging.
16496 $debug ||
16497 {
16498   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16499   trap '{ (exit 1); exit 1; }' 1 2 13 15
16500 }
16501
16502 # Create a (secure) tmp directory for tmp files.
16503
16504 {
16505   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16506   test -n "$tmp" && test -d "$tmp"
16507 }  ||
16508 {
16509   tmp=./confstat$$-$RANDOM
16510   (umask 077 && mkdir $tmp)
16511 } ||
16512 {
16513    echo "$me: cannot create a temporary directory in ." >&2
16514    { (exit 1); exit 1; }
16515 }
16516
16517 _ACEOF
16518
16519 cat >>$CONFIG_STATUS <<_ACEOF
16520
16521 #
16522 # CONFIG_FILES section.
16523 #
16524
16525 # No need to generate the scripts if there are no CONFIG_FILES.
16526 # This happens for instance when ./config.status config.h
16527 if test -n "\$CONFIG_FILES"; then
16528   # Protect against being on the right side of a sed subst in config.status.
16529   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16530    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16531 s,@SHELL@,$SHELL,;t t
16532 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16533 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16534 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16535 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16536 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16537 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16538 s,@exec_prefix@,$exec_prefix,;t t
16539 s,@prefix@,$prefix,;t t
16540 s,@program_transform_name@,$program_transform_name,;t t
16541 s,@bindir@,$bindir,;t t
16542 s,@sbindir@,$sbindir,;t t
16543 s,@libexecdir@,$libexecdir,;t t
16544 s,@datadir@,$datadir,;t t
16545 s,@sysconfdir@,$sysconfdir,;t t
16546 s,@sharedstatedir@,$sharedstatedir,;t t
16547 s,@localstatedir@,$localstatedir,;t t
16548 s,@libdir@,$libdir,;t t
16549 s,@includedir@,$includedir,;t t
16550 s,@oldincludedir@,$oldincludedir,;t t
16551 s,@infodir@,$infodir,;t t
16552 s,@mandir@,$mandir,;t t
16553 s,@build_alias@,$build_alias,;t t
16554 s,@host_alias@,$host_alias,;t t
16555 s,@target_alias@,$target_alias,;t t
16556 s,@DEFS@,$DEFS,;t t
16557 s,@ECHO_C@,$ECHO_C,;t t
16558 s,@ECHO_N@,$ECHO_N,;t t
16559 s,@ECHO_T@,$ECHO_T,;t t
16560 s,@LIBS@,$LIBS,;t t
16561 s,@libgcj_basedir@,$libgcj_basedir,;t t
16562 s,@build@,$build,;t t
16563 s,@build_cpu@,$build_cpu,;t t
16564 s,@build_vendor@,$build_vendor,;t t
16565 s,@build_os@,$build_os,;t t
16566 s,@host@,$host,;t t
16567 s,@host_cpu@,$host_cpu,;t t
16568 s,@host_vendor@,$host_vendor,;t t
16569 s,@host_os@,$host_os,;t t
16570 s,@target@,$target,;t t
16571 s,@target_cpu@,$target_cpu,;t t
16572 s,@target_vendor@,$target_vendor,;t t
16573 s,@target_os@,$target_os,;t t
16574 s,@target_noncanonical@,$target_noncanonical,;t t
16575 s,@LN_S@,$LN_S,;t t
16576 s,@mkinstalldirs@,$mkinstalldirs,;t t
16577 s,@CC@,$CC,;t t
16578 s,@ac_ct_CC@,$ac_ct_CC,;t t
16579 s,@EXEEXT@,$EXEEXT,;t t
16580 s,@OBJEXT@,$OBJEXT,;t t
16581 s,@CXX@,$CXX,;t t
16582 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16583 s,@CFLAGS@,$CFLAGS,;t t
16584 s,@CXXFLAGS@,$CXXFLAGS,;t t
16585 s,@LDFLAGS@,$LDFLAGS,;t t
16586 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16587 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16588 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16589 s,@CYGPATH_W@,$CYGPATH_W,;t t
16590 s,@PACKAGE@,$PACKAGE,;t t
16591 s,@VERSION@,$VERSION,;t t
16592 s,@ACLOCAL@,$ACLOCAL,;t t
16593 s,@AUTOCONF@,$AUTOCONF,;t t
16594 s,@AUTOMAKE@,$AUTOMAKE,;t t
16595 s,@AUTOHEADER@,$AUTOHEADER,;t t
16596 s,@MAKEINFO@,$MAKEINFO,;t t
16597 s,@install_sh@,$install_sh,;t t
16598 s,@STRIP@,$STRIP,;t t
16599 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16600 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16601 s,@mkdir_p@,$mkdir_p,;t t
16602 s,@AWK@,$AWK,;t t
16603 s,@SET_MAKE@,$SET_MAKE,;t t
16604 s,@am__leading_dot@,$am__leading_dot,;t t
16605 s,@AMTAR@,$AMTAR,;t t
16606 s,@am__tar@,$am__tar,;t t
16607 s,@am__untar@,$am__untar,;t t
16608 s,@DEPDIR@,$DEPDIR,;t t
16609 s,@am__include@,$am__include,;t t
16610 s,@am__quote@,$am__quote,;t t
16611 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16612 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16613 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16614 s,@CCDEPMODE@,$CCDEPMODE,;t t
16615 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16616 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16617 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16618 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16619 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16620 s,@AS@,$AS,;t t
16621 s,@ac_ct_AS@,$ac_ct_AS,;t t
16622 s,@AR@,$AR,;t t
16623 s,@ac_ct_AR@,$ac_ct_AR,;t t
16624 s,@RANLIB@,$RANLIB,;t t
16625 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16626 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16627 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16628 s,@MAINT@,$MAINT,;t t
16629 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16630 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16631 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16632 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16633 s,@INCLTDL@,$INCLTDL,;t t
16634 s,@LIBLTDL@,$LIBLTDL,;t t
16635 s,@DIRLTDL@,$DIRLTDL,;t t
16636 s,@LIBTOOL@,$LIBTOOL,;t t
16637 s,@CXXCPP@,$CXXCPP,;t t
16638 s,@CPPFLAGS@,$CPPFLAGS,;t t
16639 s,@GCJ@,$GCJ,;t t
16640 s,@GCJFLAGS@,$GCJFLAGS,;t t
16641 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16642 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16643 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16644 s,@subdirs@,$subdirs,;t t
16645 s,@COMPPATH@,$COMPPATH,;t t
16646 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16647 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16648 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16649 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16650 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16651 s,@INTERPRETER@,$INTERPRETER,;t t
16652 s,@LIBFFI@,$LIBFFI,;t t
16653 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16654 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16655 s,@CPP@,$CPP,;t t
16656 s,@EGREP@,$EGREP,;t t
16657 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16658 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16659 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16660 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16661 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16662 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16663 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16664 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16665 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16666 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16667 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16668 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16669 s,@X_CFLAGS@,$X_CFLAGS,;t t
16670 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16671 s,@X_LIBS@,$X_LIBS,;t t
16672 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16673 s,@TOOLKIT@,$TOOLKIT,;t t
16674 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16675 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16676 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16677 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16678 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16679 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16680 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16681 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16682 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16683 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16684 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16685 s,@GCLIBS@,$GCLIBS,;t t
16686 s,@GCINCS@,$GCINCS,;t t
16687 s,@GCDEPS@,$GCDEPS,;t t
16688 s,@GCSPEC@,$GCSPEC,;t t
16689 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16690 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16691 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16692 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16693 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16694 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16695 s,@THREADLIBS@,$THREADLIBS,;t t
16696 s,@THREADINCS@,$THREADINCS,;t t
16697 s,@THREADDEPS@,$THREADDEPS,;t t
16698 s,@THREADSPEC@,$THREADSPEC,;t t
16699 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16700 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16701 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16702 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16703 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16704 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16705 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16706 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16707 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16708 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16709 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16710 s,@gcc_version_trigger@,$gcc_version_trigger,;t t
16711 s,@gcc_version_full@,$gcc_version_full,;t t
16712 s,@gcc_version@,$gcc_version,;t t
16713 s,@tool_include_dir@,$tool_include_dir,;t t
16714 s,@LIBICONV@,$LIBICONV,;t t
16715 s,@LTLIBICONV@,$LTLIBICONV,;t t
16716 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16717 s,@GTK_LIBS@,$GTK_LIBS,;t t
16718 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16719 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16720 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16721 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16722 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16723 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16724 s,@GCJH@,$GCJH,;t t
16725 s,@ZIP@,$ZIP,;t t
16726 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16727 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16728 s,@ZLIBS@,$ZLIBS,;t t
16729 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16730 s,@ZINCS@,$ZINCS,;t t
16731 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16732 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16733 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16734 s,@IEEESPEC@,$IEEESPEC,;t t
16735 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16736 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16737 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16738 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16739 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16740 s,@toolexecdir@,$toolexecdir,;t t
16741 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16742 s,@toolexeclibdir@,$toolexeclibdir,;t t
16743 s,@GCJVERSION@,$GCJVERSION,;t t
16744 s,@gxx_include_dir@,$gxx_include_dir,;t t
16745 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16746 s,@ALLOCA@,$ALLOCA,;t t
16747 s,@PERL@,$PERL,;t t
16748 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16749 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16750 s,@here@,$here,;t t
16751 s,@LIBOBJS@,$LIBOBJS,;t t
16752 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16753 CEOF
16754
16755 _ACEOF
16756
16757   cat >>$CONFIG_STATUS <<\_ACEOF
16758   # Split the substitutions into bite-sized pieces for seds with
16759   # small command number limits, like on Digital OSF/1 and HP-UX.
16760   ac_max_sed_lines=48
16761   ac_sed_frag=1 # Number of current file.
16762   ac_beg=1 # First line for current file.
16763   ac_end=$ac_max_sed_lines # Line after last line for current file.
16764   ac_more_lines=:
16765   ac_sed_cmds=
16766   while $ac_more_lines; do
16767     if test $ac_beg -gt 1; then
16768       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16769     else
16770       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16771     fi
16772     if test ! -s $tmp/subs.frag; then
16773       ac_more_lines=false
16774     else
16775       # The purpose of the label and of the branching condition is to
16776       # speed up the sed processing (if there are no `@' at all, there
16777       # is no need to browse any of the substitutions).
16778       # These are the two extra sed commands mentioned above.
16779       (echo ':t
16780   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16781       if test -z "$ac_sed_cmds"; then
16782         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16783       else
16784         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16785       fi
16786       ac_sed_frag=`expr $ac_sed_frag + 1`
16787       ac_beg=$ac_end
16788       ac_end=`expr $ac_end + $ac_max_sed_lines`
16789     fi
16790   done
16791   if test -z "$ac_sed_cmds"; then
16792     ac_sed_cmds=cat
16793   fi
16794 fi # test -n "$CONFIG_FILES"
16795
16796 _ACEOF
16797 cat >>$CONFIG_STATUS <<\_ACEOF
16798 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16799   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16800   case $ac_file in
16801   - | *:- | *:-:* ) # input from stdin
16802         cat >$tmp/stdin
16803         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16804         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16805   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16806         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16807   * )   ac_file_in=$ac_file.in ;;
16808   esac
16809
16810   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16811   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16813          X"$ac_file" : 'X\(//\)[^/]' \| \
16814          X"$ac_file" : 'X\(//\)$' \| \
16815          X"$ac_file" : 'X\(/\)' \| \
16816          .     : '\(.\)' 2>/dev/null ||
16817 echo X"$ac_file" |
16818     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16819           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16820           /^X\(\/\/\)$/{ s//\1/; q; }
16821           /^X\(\/\).*/{ s//\1/; q; }
16822           s/.*/./; q'`
16823   { if $as_mkdir_p; then
16824     mkdir -p "$ac_dir"
16825   else
16826     as_dir="$ac_dir"
16827     as_dirs=
16828     while test ! -d "$as_dir"; do
16829       as_dirs="$as_dir $as_dirs"
16830       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16832          X"$as_dir" : 'X\(//\)[^/]' \| \
16833          X"$as_dir" : 'X\(//\)$' \| \
16834          X"$as_dir" : 'X\(/\)' \| \
16835          .     : '\(.\)' 2>/dev/null ||
16836 echo X"$as_dir" |
16837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16838           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16839           /^X\(\/\/\)$/{ s//\1/; q; }
16840           /^X\(\/\).*/{ s//\1/; q; }
16841           s/.*/./; q'`
16842     done
16843     test ! -n "$as_dirs" || mkdir $as_dirs
16844   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16845 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16846    { (exit 1); exit 1; }; }; }
16847
16848   ac_builddir=.
16849
16850 if test "$ac_dir" != .; then
16851   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16852   # A "../" for each directory in $ac_dir_suffix.
16853   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16854 else
16855   ac_dir_suffix= ac_top_builddir=
16856 fi
16857
16858 case $srcdir in
16859   .)  # No --srcdir option.  We are building in place.
16860     ac_srcdir=.
16861     if test -z "$ac_top_builddir"; then
16862        ac_top_srcdir=.
16863     else
16864        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16865     fi ;;
16866   [\\/]* | ?:[\\/]* )  # Absolute path.
16867     ac_srcdir=$srcdir$ac_dir_suffix;
16868     ac_top_srcdir=$srcdir ;;
16869   *) # Relative path.
16870     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16871     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16872 esac
16873
16874 # Do not use `cd foo && pwd` to compute absolute paths, because
16875 # the directories may not exist.
16876 case `pwd` in
16877 .) ac_abs_builddir="$ac_dir";;
16878 *)
16879   case "$ac_dir" in
16880   .) ac_abs_builddir=`pwd`;;
16881   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16882   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16883   esac;;
16884 esac
16885 case $ac_abs_builddir in
16886 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16887 *)
16888   case ${ac_top_builddir}. in
16889   .) ac_abs_top_builddir=$ac_abs_builddir;;
16890   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16891   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16892   esac;;
16893 esac
16894 case $ac_abs_builddir in
16895 .) ac_abs_srcdir=$ac_srcdir;;
16896 *)
16897   case $ac_srcdir in
16898   .) ac_abs_srcdir=$ac_abs_builddir;;
16899   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16900   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16901   esac;;
16902 esac
16903 case $ac_abs_builddir in
16904 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16905 *)
16906   case $ac_top_srcdir in
16907   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16908   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16909   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16910   esac;;
16911 esac
16912
16913
16914   case $INSTALL in
16915   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16916   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16917   esac
16918
16919   if test x"$ac_file" != x-; then
16920     { echo "$as_me:$LINENO: creating $ac_file" >&5
16921 echo "$as_me: creating $ac_file" >&6;}
16922     rm -f "$ac_file"
16923   fi
16924   # Let's still pretend it is `configure' which instantiates (i.e., don't
16925   # use $as_me), people would be surprised to read:
16926   #    /* config.h.  Generated by config.status.  */
16927   if test x"$ac_file" = x-; then
16928     configure_input=
16929   else
16930     configure_input="$ac_file.  "
16931   fi
16932   configure_input=$configure_input"Generated from `echo $ac_file_in |
16933                                      sed 's,.*/,,'` by configure."
16934
16935   # First look for the input files in the build tree, otherwise in the
16936   # src tree.
16937   ac_file_inputs=`IFS=:
16938     for f in $ac_file_in; do
16939       case $f in
16940       -) echo $tmp/stdin ;;
16941       [\\/$]*)
16942          # Absolute (can't be DOS-style, as IFS=:)
16943          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16944 echo "$as_me: error: cannot find input file: $f" >&2;}
16945    { (exit 1); exit 1; }; }
16946          echo "$f";;
16947       *) # Relative
16948          if test -f "$f"; then
16949            # Build tree
16950            echo "$f"
16951          elif test -f "$srcdir/$f"; then
16952            # Source tree
16953            echo "$srcdir/$f"
16954          else
16955            # /dev/null tree
16956            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16957 echo "$as_me: error: cannot find input file: $f" >&2;}
16958    { (exit 1); exit 1; }; }
16959          fi;;
16960       esac
16961     done` || { (exit 1); exit 1; }
16962 _ACEOF
16963 cat >>$CONFIG_STATUS <<_ACEOF
16964   sed "$ac_vpsub
16965 $extrasub
16966 _ACEOF
16967 cat >>$CONFIG_STATUS <<\_ACEOF
16968 :t
16969 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16970 s,@configure_input@,$configure_input,;t t
16971 s,@srcdir@,$ac_srcdir,;t t
16972 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16973 s,@top_srcdir@,$ac_top_srcdir,;t t
16974 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16975 s,@builddir@,$ac_builddir,;t t
16976 s,@abs_builddir@,$ac_abs_builddir,;t t
16977 s,@top_builddir@,$ac_top_builddir,;t t
16978 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16979 s,@INSTALL@,$ac_INSTALL,;t t
16980 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16981   rm -f $tmp/stdin
16982   if test x"$ac_file" != x-; then
16983     mv $tmp/out $ac_file
16984   else
16985     cat $tmp/out
16986     rm -f $tmp/out
16987   fi
16988
16989 done
16990 _ACEOF
16991 cat >>$CONFIG_STATUS <<\_ACEOF
16992
16993 #
16994 # CONFIG_HEADER section.
16995 #
16996
16997 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16998 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16999 #
17000 # ac_d sets the value in "#define NAME VALUE" lines.
17001 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17002 ac_dB='[         ].*$,\1#\2'
17003 ac_dC=' '
17004 ac_dD=',;t'
17005 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17006 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17007 ac_uB='$,\1#\2define\3'
17008 ac_uC=' '
17009 ac_uD=',;t'
17010
17011 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17012   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17013   case $ac_file in
17014   - | *:- | *:-:* ) # input from stdin
17015         cat >$tmp/stdin
17016         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17017         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17018   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17019         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17020   * )   ac_file_in=$ac_file.in ;;
17021   esac
17022
17023   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17024 echo "$as_me: creating $ac_file" >&6;}
17025
17026   # First look for the input files in the build tree, otherwise in the
17027   # src tree.
17028   ac_file_inputs=`IFS=:
17029     for f in $ac_file_in; do
17030       case $f in
17031       -) echo $tmp/stdin ;;
17032       [\\/$]*)
17033          # Absolute (can't be DOS-style, as IFS=:)
17034          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17035 echo "$as_me: error: cannot find input file: $f" >&2;}
17036    { (exit 1); exit 1; }; }
17037          # Do quote $f, to prevent DOS paths from being IFS'd.
17038          echo "$f";;
17039       *) # Relative
17040          if test -f "$f"; then
17041            # Build tree
17042            echo "$f"
17043          elif test -f "$srcdir/$f"; then
17044            # Source tree
17045            echo "$srcdir/$f"
17046          else
17047            # /dev/null tree
17048            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17049 echo "$as_me: error: cannot find input file: $f" >&2;}
17050    { (exit 1); exit 1; }; }
17051          fi;;
17052       esac
17053     done` || { (exit 1); exit 1; }
17054   # Remove the trailing spaces.
17055   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17056
17057 _ACEOF
17058
17059 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17060 # `conftest.undefs', that substitutes the proper values into
17061 # config.h.in to produce config.h.  The first handles `#define'
17062 # templates, and the second `#undef' templates.
17063 # And first: Protect against being on the right side of a sed subst in
17064 # config.status.  Protect against being in an unquoted here document
17065 # in config.status.
17066 rm -f conftest.defines conftest.undefs
17067 # Using a here document instead of a string reduces the quoting nightmare.
17068 # Putting comments in sed scripts is not portable.
17069 #
17070 # `end' is used to avoid that the second main sed command (meant for
17071 # 0-ary CPP macros) applies to n-ary macro definitions.
17072 # See the Autoconf documentation for `clear'.
17073 cat >confdef2sed.sed <<\_ACEOF
17074 s/[\\&,]/\\&/g
17075 s,[\\$`],\\&,g
17076 t clear
17077 : clear
17078 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17079 t end
17080 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17081 : end
17082 _ACEOF
17083 # If some macros were called several times there might be several times
17084 # the same #defines, which is useless.  Nevertheless, we may not want to
17085 # sort them, since we want the *last* AC-DEFINE to be honored.
17086 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17087 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17088 rm -f confdef2sed.sed
17089
17090 # This sed command replaces #undef with comments.  This is necessary, for
17091 # example, in the case of _POSIX_SOURCE, which is predefined and required
17092 # on some systems where configure will not decide to define it.
17093 cat >>conftest.undefs <<\_ACEOF
17094 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17095 _ACEOF
17096
17097 # Break up conftest.defines because some shells have a limit on the size
17098 # of here documents, and old seds have small limits too (100 cmds).
17099 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17100 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17101 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17102 echo '  :' >>$CONFIG_STATUS
17103 rm -f conftest.tail
17104 while grep . conftest.defines >/dev/null
17105 do
17106   # Write a limited-size here document to $tmp/defines.sed.
17107   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17108   # Speed up: don't consider the non `#define' lines.
17109   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17110   # Work around the forget-to-reset-the-flag bug.
17111   echo 't clr' >>$CONFIG_STATUS
17112   echo ': clr' >>$CONFIG_STATUS
17113   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17114   echo 'CEOF
17115   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17116   rm -f $tmp/in
17117   mv $tmp/out $tmp/in
17118 ' >>$CONFIG_STATUS
17119   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17120   rm -f conftest.defines
17121   mv conftest.tail conftest.defines
17122 done
17123 rm -f conftest.defines
17124 echo '  fi # grep' >>$CONFIG_STATUS
17125 echo >>$CONFIG_STATUS
17126
17127 # Break up conftest.undefs because some shells have a limit on the size
17128 # of here documents, and old seds have small limits too (100 cmds).
17129 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17130 rm -f conftest.tail
17131 while grep . conftest.undefs >/dev/null
17132 do
17133   # Write a limited-size here document to $tmp/undefs.sed.
17134   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17135   # Speed up: don't consider the non `#undef'
17136   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17137   # Work around the forget-to-reset-the-flag bug.
17138   echo 't clr' >>$CONFIG_STATUS
17139   echo ': clr' >>$CONFIG_STATUS
17140   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17141   echo 'CEOF
17142   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17143   rm -f $tmp/in
17144   mv $tmp/out $tmp/in
17145 ' >>$CONFIG_STATUS
17146   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17147   rm -f conftest.undefs
17148   mv conftest.tail conftest.undefs
17149 done
17150 rm -f conftest.undefs
17151
17152 cat >>$CONFIG_STATUS <<\_ACEOF
17153   # Let's still pretend it is `configure' which instantiates (i.e., don't
17154   # use $as_me), people would be surprised to read:
17155   #    /* config.h.  Generated by config.status.  */
17156   if test x"$ac_file" = x-; then
17157     echo "/* Generated by configure.  */" >$tmp/config.h
17158   else
17159     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17160   fi
17161   cat $tmp/in >>$tmp/config.h
17162   rm -f $tmp/in
17163   if test x"$ac_file" != x-; then
17164     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17165       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17166 echo "$as_me: $ac_file is unchanged" >&6;}
17167     else
17168       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17170          X"$ac_file" : 'X\(//\)[^/]' \| \
17171          X"$ac_file" : 'X\(//\)$' \| \
17172          X"$ac_file" : 'X\(/\)' \| \
17173          .     : '\(.\)' 2>/dev/null ||
17174 echo X"$ac_file" |
17175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17176           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17177           /^X\(\/\/\)$/{ s//\1/; q; }
17178           /^X\(\/\).*/{ s//\1/; q; }
17179           s/.*/./; q'`
17180       { if $as_mkdir_p; then
17181     mkdir -p "$ac_dir"
17182   else
17183     as_dir="$ac_dir"
17184     as_dirs=
17185     while test ! -d "$as_dir"; do
17186       as_dirs="$as_dir $as_dirs"
17187       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17189          X"$as_dir" : 'X\(//\)[^/]' \| \
17190          X"$as_dir" : 'X\(//\)$' \| \
17191          X"$as_dir" : 'X\(/\)' \| \
17192          .     : '\(.\)' 2>/dev/null ||
17193 echo X"$as_dir" |
17194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17195           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17196           /^X\(\/\/\)$/{ s//\1/; q; }
17197           /^X\(\/\).*/{ s//\1/; q; }
17198           s/.*/./; q'`
17199     done
17200     test ! -n "$as_dirs" || mkdir $as_dirs
17201   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17202 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17203    { (exit 1); exit 1; }; }; }
17204
17205       rm -f $ac_file
17206       mv $tmp/config.h $ac_file
17207     fi
17208   else
17209     cat $tmp/config.h
17210     rm -f $tmp/config.h
17211   fi
17212 # Compute $ac_file's index in $config_headers.
17213 _am_stamp_count=1
17214 for _am_header in $config_headers :; do
17215   case $_am_header in
17216     $ac_file | $ac_file:* )
17217       break ;;
17218     * )
17219       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17220   esac
17221 done
17222 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17223 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17224          X$ac_file : 'X\(//\)[^/]' \| \
17225          X$ac_file : 'X\(//\)$' \| \
17226          X$ac_file : 'X\(/\)' \| \
17227          .     : '\(.\)' 2>/dev/null ||
17228 echo X$ac_file |
17229     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17230           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17231           /^X\(\/\/\)$/{ s//\1/; q; }
17232           /^X\(\/\).*/{ s//\1/; q; }
17233           s/.*/./; q'`/stamp-h$_am_stamp_count
17234 done
17235 _ACEOF
17236 cat >>$CONFIG_STATUS <<\_ACEOF
17237
17238 #
17239 # CONFIG_LINKS section.
17240 #
17241
17242 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17243   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17244   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17245
17246   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17247 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17248
17249   if test ! -r $srcdir/$ac_source; then
17250     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17251 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17252    { (exit 1); exit 1; }; }
17253   fi
17254   rm -f $ac_dest
17255
17256   # Make relative symlinks.
17257   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17258 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17259          X"$ac_dest" : 'X\(//\)[^/]' \| \
17260          X"$ac_dest" : 'X\(//\)$' \| \
17261          X"$ac_dest" : 'X\(/\)' \| \
17262          .     : '\(.\)' 2>/dev/null ||
17263 echo X"$ac_dest" |
17264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17265           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17266           /^X\(\/\/\)$/{ s//\1/; q; }
17267           /^X\(\/\).*/{ s//\1/; q; }
17268           s/.*/./; q'`
17269   { if $as_mkdir_p; then
17270     mkdir -p "$ac_dest_dir"
17271   else
17272     as_dir="$ac_dest_dir"
17273     as_dirs=
17274     while test ! -d "$as_dir"; do
17275       as_dirs="$as_dir $as_dirs"
17276       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17278          X"$as_dir" : 'X\(//\)[^/]' \| \
17279          X"$as_dir" : 'X\(//\)$' \| \
17280          X"$as_dir" : 'X\(/\)' \| \
17281          .     : '\(.\)' 2>/dev/null ||
17282 echo X"$as_dir" |
17283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17284           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17285           /^X\(\/\/\)$/{ s//\1/; q; }
17286           /^X\(\/\).*/{ s//\1/; q; }
17287           s/.*/./; q'`
17288     done
17289     test ! -n "$as_dirs" || mkdir $as_dirs
17290   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17291 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17292    { (exit 1); exit 1; }; }; }
17293
17294   ac_builddir=.
17295
17296 if test "$ac_dest_dir" != .; then
17297   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17298   # A "../" for each directory in $ac_dir_suffix.
17299   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17300 else
17301   ac_dir_suffix= ac_top_builddir=
17302 fi
17303
17304 case $srcdir in
17305   .)  # No --srcdir option.  We are building in place.
17306     ac_srcdir=.
17307     if test -z "$ac_top_builddir"; then
17308        ac_top_srcdir=.
17309     else
17310        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17311     fi ;;
17312   [\\/]* | ?:[\\/]* )  # Absolute path.
17313     ac_srcdir=$srcdir$ac_dir_suffix;
17314     ac_top_srcdir=$srcdir ;;
17315   *) # Relative path.
17316     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17317     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17318 esac
17319
17320 # Do not use `cd foo && pwd` to compute absolute paths, because
17321 # the directories may not exist.
17322 case `pwd` in
17323 .) ac_abs_builddir="$ac_dest_dir";;
17324 *)
17325   case "$ac_dest_dir" in
17326   .) ac_abs_builddir=`pwd`;;
17327   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17328   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17329   esac;;
17330 esac
17331 case $ac_abs_builddir in
17332 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17333 *)
17334   case ${ac_top_builddir}. in
17335   .) ac_abs_top_builddir=$ac_abs_builddir;;
17336   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17337   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17338   esac;;
17339 esac
17340 case $ac_abs_builddir in
17341 .) ac_abs_srcdir=$ac_srcdir;;
17342 *)
17343   case $ac_srcdir in
17344   .) ac_abs_srcdir=$ac_abs_builddir;;
17345   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17346   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17347   esac;;
17348 esac
17349 case $ac_abs_builddir in
17350 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17351 *)
17352   case $ac_top_srcdir in
17353   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17354   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17355   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17356   esac;;
17357 esac
17358
17359
17360   case $srcdir in
17361   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17362       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17363   esac
17364
17365   # Try a symlink, then a hard link, then a copy.
17366   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17367     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17368     cp -p $srcdir/$ac_source $ac_dest ||
17369     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17370 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17371    { (exit 1); exit 1; }; }
17372 done
17373 _ACEOF
17374 cat >>$CONFIG_STATUS <<\_ACEOF
17375
17376 #
17377 # CONFIG_COMMANDS section.
17378 #
17379 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17380   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17381   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17382   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17383 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17384          X"$ac_dest" : 'X\(//\)[^/]' \| \
17385          X"$ac_dest" : 'X\(//\)$' \| \
17386          X"$ac_dest" : 'X\(/\)' \| \
17387          .     : '\(.\)' 2>/dev/null ||
17388 echo X"$ac_dest" |
17389     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17390           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17391           /^X\(\/\/\)$/{ s//\1/; q; }
17392           /^X\(\/\).*/{ s//\1/; q; }
17393           s/.*/./; q'`
17394   { if $as_mkdir_p; then
17395     mkdir -p "$ac_dir"
17396   else
17397     as_dir="$ac_dir"
17398     as_dirs=
17399     while test ! -d "$as_dir"; do
17400       as_dirs="$as_dir $as_dirs"
17401       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17402 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17403          X"$as_dir" : 'X\(//\)[^/]' \| \
17404          X"$as_dir" : 'X\(//\)$' \| \
17405          X"$as_dir" : 'X\(/\)' \| \
17406          .     : '\(.\)' 2>/dev/null ||
17407 echo X"$as_dir" |
17408     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17409           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17410           /^X\(\/\/\)$/{ s//\1/; q; }
17411           /^X\(\/\).*/{ s//\1/; q; }
17412           s/.*/./; q'`
17413     done
17414     test ! -n "$as_dirs" || mkdir $as_dirs
17415   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17416 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17417    { (exit 1); exit 1; }; }; }
17418
17419   ac_builddir=.
17420
17421 if test "$ac_dir" != .; then
17422   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17423   # A "../" for each directory in $ac_dir_suffix.
17424   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17425 else
17426   ac_dir_suffix= ac_top_builddir=
17427 fi
17428
17429 case $srcdir in
17430   .)  # No --srcdir option.  We are building in place.
17431     ac_srcdir=.
17432     if test -z "$ac_top_builddir"; then
17433        ac_top_srcdir=.
17434     else
17435        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17436     fi ;;
17437   [\\/]* | ?:[\\/]* )  # Absolute path.
17438     ac_srcdir=$srcdir$ac_dir_suffix;
17439     ac_top_srcdir=$srcdir ;;
17440   *) # Relative path.
17441     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17442     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17443 esac
17444
17445 # Do not use `cd foo && pwd` to compute absolute paths, because
17446 # the directories may not exist.
17447 case `pwd` in
17448 .) ac_abs_builddir="$ac_dir";;
17449 *)
17450   case "$ac_dir" in
17451   .) ac_abs_builddir=`pwd`;;
17452   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17453   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17454   esac;;
17455 esac
17456 case $ac_abs_builddir in
17457 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17458 *)
17459   case ${ac_top_builddir}. in
17460   .) ac_abs_top_builddir=$ac_abs_builddir;;
17461   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17462   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17463   esac;;
17464 esac
17465 case $ac_abs_builddir in
17466 .) ac_abs_srcdir=$ac_srcdir;;
17467 *)
17468   case $ac_srcdir in
17469   .) ac_abs_srcdir=$ac_abs_builddir;;
17470   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17471   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17472   esac;;
17473 esac
17474 case $ac_abs_builddir in
17475 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17476 *)
17477   case $ac_top_srcdir in
17478   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17479   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17480   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17481   esac;;
17482 esac
17483
17484
17485   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17486 echo "$as_me: executing $ac_dest commands" >&6;}
17487   case $ac_dest in
17488     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17489   # Strip MF so we end up with the name of the file.
17490   mf=`echo "$mf" | sed -e 's/:.*$//'`
17491   # Check whether this is an Automake generated Makefile or not.
17492   # We used to match only the files named `Makefile.in', but
17493   # some people rename them; so instead we look at the file content.
17494   # Grep'ing the first line is not enough: some people post-process
17495   # each Makefile.in and add a new line on top of each file to say so.
17496   # So let's grep whole file.
17497   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17498     dirpart=`(dirname "$mf") 2>/dev/null ||
17499 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17500          X"$mf" : 'X\(//\)[^/]' \| \
17501          X"$mf" : 'X\(//\)$' \| \
17502          X"$mf" : 'X\(/\)' \| \
17503          .     : '\(.\)' 2>/dev/null ||
17504 echo X"$mf" |
17505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17506           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17507           /^X\(\/\/\)$/{ s//\1/; q; }
17508           /^X\(\/\).*/{ s//\1/; q; }
17509           s/.*/./; q'`
17510   else
17511     continue
17512   fi
17513   # Extract the definition of DEPDIR, am__include, and am__quote
17514   # from the Makefile without running `make'.
17515   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17516   test -z "$DEPDIR" && continue
17517   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17518   test -z "am__include" && continue
17519   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17520   # When using ansi2knr, U may be empty or an underscore; expand it
17521   U=`sed -n 's/^U = //p' < "$mf"`
17522   # Find all dependency output files, they are included files with
17523   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17524   # simplest approach to changing $(DEPDIR) to its actual value in the
17525   # expansion.
17526   for file in `sed -n "
17527     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17528        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17529     # Make sure the directory exists.
17530     test -f "$dirpart/$file" && continue
17531     fdir=`(dirname "$file") 2>/dev/null ||
17532 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17533          X"$file" : 'X\(//\)[^/]' \| \
17534          X"$file" : 'X\(//\)$' \| \
17535          X"$file" : 'X\(/\)' \| \
17536          .     : '\(.\)' 2>/dev/null ||
17537 echo X"$file" |
17538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17539           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17540           /^X\(\/\/\)$/{ s//\1/; q; }
17541           /^X\(\/\).*/{ s//\1/; q; }
17542           s/.*/./; q'`
17543     { if $as_mkdir_p; then
17544     mkdir -p $dirpart/$fdir
17545   else
17546     as_dir=$dirpart/$fdir
17547     as_dirs=
17548     while test ! -d "$as_dir"; do
17549       as_dirs="$as_dir $as_dirs"
17550       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17552          X"$as_dir" : 'X\(//\)[^/]' \| \
17553          X"$as_dir" : 'X\(//\)$' \| \
17554          X"$as_dir" : 'X\(/\)' \| \
17555          .     : '\(.\)' 2>/dev/null ||
17556 echo X"$as_dir" |
17557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17559           /^X\(\/\/\)$/{ s//\1/; q; }
17560           /^X\(\/\).*/{ s//\1/; q; }
17561           s/.*/./; q'`
17562     done
17563     test ! -n "$as_dirs" || mkdir $as_dirs
17564   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17565 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17566    { (exit 1); exit 1; }; }; }
17567
17568     # echo "creating $dirpart/$file"
17569     echo '# dummy' > "$dirpart/$file"
17570   done
17571 done
17572  ;;
17573     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17574 case " $CONFIG_FILES " in
17575  *" Makefile "*)
17576    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17577    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17578    ;;
17579 esac
17580  ;;
17581   esac
17582 done
17583 _ACEOF
17584
17585 cat >>$CONFIG_STATUS <<\_ACEOF
17586
17587 { (exit 0); exit 0; }
17588 _ACEOF
17589 chmod +x $CONFIG_STATUS
17590 ac_clean_files=$ac_clean_files_save
17591
17592
17593 # configure is writing to config.log, and then calls config.status.
17594 # config.status does its own redirection, appending to config.log.
17595 # Unfortunately, on DOS this fails, as config.log is still kept open
17596 # by configure, so config.status won't be able to write to it; its
17597 # output is simply discarded.  So we exec the FD to /dev/null,
17598 # effectively closing config.log, so it can be properly (re)opened and
17599 # appended to by config.status.  When coming back to configure, we
17600 # need to make the FD available again.
17601 if test "$no_create" != yes; then
17602   ac_cs_success=:
17603   ac_config_status_args=
17604   test "$silent" = yes &&
17605     ac_config_status_args="$ac_config_status_args --quiet"
17606   exec 5>/dev/null
17607   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17608   exec 5>>config.log
17609   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17610   # would make configure fail if this is the last instruction.
17611   $ac_cs_success || { (exit 1); exit 1; }
17612 fi
17613
17614 #
17615 # CONFIG_SUBDIRS section.
17616 #
17617 if test "$no_recursion" != yes; then
17618
17619   # Remove --cache-file and --srcdir arguments so they do not pile up.
17620   ac_sub_configure_args=
17621   ac_prev=
17622   for ac_arg in $ac_configure_args; do
17623     if test -n "$ac_prev"; then
17624       ac_prev=
17625       continue
17626     fi
17627     case $ac_arg in
17628     -cache-file | --cache-file | --cache-fil | --cache-fi \
17629     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17630       ac_prev=cache_file ;;
17631     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17632     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17633     | --c=*)
17634       ;;
17635     --config-cache | -C)
17636       ;;
17637     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17638       ac_prev=srcdir ;;
17639     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17640       ;;
17641     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17642       ac_prev=prefix ;;
17643     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17644       ;;
17645     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17646     esac
17647   done
17648
17649   # Always prepend --prefix to ensure using the same prefix
17650   # in subdir configurations.
17651   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17652
17653   ac_popdir=`pwd`
17654   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17655
17656     # Do not complain, so a configure script can configure whichever
17657     # parts of a large source tree are present.
17658     test -d $srcdir/$ac_dir || continue
17659
17660     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17661 echo "$as_me: configuring in $ac_dir" >&6;}
17662     { if $as_mkdir_p; then
17663     mkdir -p "$ac_dir"
17664   else
17665     as_dir="$ac_dir"
17666     as_dirs=
17667     while test ! -d "$as_dir"; do
17668       as_dirs="$as_dir $as_dirs"
17669       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17670 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17671          X"$as_dir" : 'X\(//\)[^/]' \| \
17672          X"$as_dir" : 'X\(//\)$' \| \
17673          X"$as_dir" : 'X\(/\)' \| \
17674          .     : '\(.\)' 2>/dev/null ||
17675 echo X"$as_dir" |
17676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17678           /^X\(\/\/\)$/{ s//\1/; q; }
17679           /^X\(\/\).*/{ s//\1/; q; }
17680           s/.*/./; q'`
17681     done
17682     test ! -n "$as_dirs" || mkdir $as_dirs
17683   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17684 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17685    { (exit 1); exit 1; }; }; }
17686
17687     ac_builddir=.
17688
17689 if test "$ac_dir" != .; then
17690   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17691   # A "../" for each directory in $ac_dir_suffix.
17692   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17693 else
17694   ac_dir_suffix= ac_top_builddir=
17695 fi
17696
17697 case $srcdir in
17698   .)  # No --srcdir option.  We are building in place.
17699     ac_srcdir=.
17700     if test -z "$ac_top_builddir"; then
17701        ac_top_srcdir=.
17702     else
17703        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17704     fi ;;
17705   [\\/]* | ?:[\\/]* )  # Absolute path.
17706     ac_srcdir=$srcdir$ac_dir_suffix;
17707     ac_top_srcdir=$srcdir ;;
17708   *) # Relative path.
17709     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17710     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17711 esac
17712
17713 # Do not use `cd foo && pwd` to compute absolute paths, because
17714 # the directories may not exist.
17715 case `pwd` in
17716 .) ac_abs_builddir="$ac_dir";;
17717 *)
17718   case "$ac_dir" in
17719   .) ac_abs_builddir=`pwd`;;
17720   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17721   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17722   esac;;
17723 esac
17724 case $ac_abs_builddir in
17725 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17726 *)
17727   case ${ac_top_builddir}. in
17728   .) ac_abs_top_builddir=$ac_abs_builddir;;
17729   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17730   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17731   esac;;
17732 esac
17733 case $ac_abs_builddir in
17734 .) ac_abs_srcdir=$ac_srcdir;;
17735 *)
17736   case $ac_srcdir in
17737   .) ac_abs_srcdir=$ac_abs_builddir;;
17738   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17739   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17740   esac;;
17741 esac
17742 case $ac_abs_builddir in
17743 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17744 *)
17745   case $ac_top_srcdir in
17746   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17747   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17748   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17749   esac;;
17750 esac
17751
17752
17753     cd $ac_dir
17754
17755     # Check for guested configure; otherwise get Cygnus style configure.
17756     if test -f $ac_srcdir/configure.gnu; then
17757       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17758     elif test -f $ac_srcdir/configure; then
17759       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17760     elif test -f $ac_srcdir/configure.in; then
17761       ac_sub_configure=$ac_configure
17762     else
17763       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17764 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17765       ac_sub_configure=
17766     fi
17767
17768     # The recursion is here.
17769     if test -n "$ac_sub_configure"; then
17770       # Make the cache file name correct relative to the subdirectory.
17771       case $cache_file in
17772       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17773       *) # Relative path.
17774         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17775       esac
17776
17777       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17778 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17779       # The eval makes quoting arguments work.
17780       eval $ac_sub_configure $ac_sub_configure_args \
17781            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17782         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17783 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17784    { (exit 1); exit 1; }; }
17785     fi
17786
17787     cd $ac_popdir
17788   done
17789 fi
17790