OSDN Git Service

PR libgcj/28491:
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME 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_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --enable-plugin         build gcjwebplugin web browser plugin
857   --disable-dependency-tracking  speeds up one-time build
858   --enable-dependency-tracking   do not reject slow dependency extractors
859   --enable-maintainer-mode  enable make rules and dependencies not useful
860                           (and sometimes confusing) to the casual installer
861   --enable-libgcj-debug   enable runtime debugging code
862   --enable-java-awt       list of AWT peer implementations to be built
863   --enable-shared=PKGS  build shared libraries default=yes
864   --enable-static=PKGS  build static libraries default=yes
865   --enable-fast-install=PKGS  optimize for fast installation default=yes
866   --disable-libtool-lock  avoid locking (might break parallel builds)
867   --disable-getenv-properties
868                           don't set system properties from GCJ_PROPERTIES
869   --enable-hash-synchronization
870                           use global hash table for monitor locks
871   --enable-gc-debug       include full support for pointer backtracing etc.
872   --enable-interpreter    enable interpreter
873   --enable-sjlj-exceptions
874                           force use of builtin_setjmp for exceptions
875   --disable-java-net      disable java.net
876   --disable-jvmpi         disable JVMPI support
877   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
878   --disable-rpath         do not hardcode runtime library paths
879   _g_switchUse thread-local storage
880                           [default=yes]
881
882 Optional Packages:
883   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
884   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
885   --with-build-libsubdir=DIR  Directory where to find libraries for build system
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-java-home=DIRECTORY
893                           value of java.home system property
894   --with-win32-nlsapi=ansi or unicows or unicode
895                           native MinGW libgcj Win32 OS API (default is ansi)
896   --without-libffi        don't use libffi
897   --with-ecos             enable runtime eCos target support
898   --with-system-zlib      use installed libz
899   --with-x                use the X Window System
900   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
901   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
902
903 Some influential environment variables:
904   CC          C compiler command
905   CFLAGS      C compiler flags
906   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
907               nonstandard directory <lib dir>
908   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
909               headers in a nonstandard directory <include dir>
910   CXX         C++ compiler command
911   CXXFLAGS    C++ compiler flags
912   CXXCPP      C++ preprocessor
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957   case "$ac_dir" in
958   .) ac_abs_builddir=`pwd`;;
959   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960   *) ac_abs_builddir=`pwd`/"$ac_dir";;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966   case ${ac_top_builddir}. in
967   .) ac_abs_top_builddir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975   case $ac_srcdir in
976   .) ac_abs_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979   esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984   case $ac_top_srcdir in
985   .) ac_abs_top_srcdir=$ac_abs_builddir;;
986   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988   esac;;
989 esac
990
991     cd $ac_dir
992     # Check for guested configure; otherwise get Cygnus style configure.
993     if test -f $ac_srcdir/configure.gnu; then
994       echo
995       $SHELL $ac_srcdir/configure.gnu  --help=recursive
996     elif test -f $ac_srcdir/configure; then
997       echo
998       $SHELL $ac_srcdir/configure  --help=recursive
999     elif test -f $ac_srcdir/configure.ac ||
1000            test -f $ac_srcdir/configure.in; then
1001       echo
1002       $ac_configure --help
1003     else
1004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005     fi
1006     cd $ac_popdir
1007   done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012   cat <<\_ACEOF
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1015
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1365
1366 ac_aux_dir=
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368   if test -f $ac_dir/install-sh; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/install-sh -c"
1371     break
1372   elif test -f $ac_dir/install.sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install.sh -c"
1375     break
1376   elif test -f $ac_dir/shtool; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/shtool install -c"
1379     break
1380   fi
1381 done
1382 if test -z "$ac_aux_dir"; then
1383   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404   ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408    { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1417 build=$ac_cv_build
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423  case ${build_alias} in
1424   "") build_noncanonical=${build} ;;
1425   *) build_noncanonical=${build_alias} ;;
1426 esac
1427
1428  case ${host_alias} in
1429   "") host_noncanonical=${build_noncanonical} ;;
1430   *) host_noncanonical=${host_alias} ;;
1431 esac
1432
1433  case ${target_alias} in
1434   "") target_noncanonical=${host_noncanonical} ;;
1435   *) target_noncanonical=${target_alias} ;;
1436 esac
1437
1438
1439 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1440 # have matching libraries, they should use host libraries: Makefile.tpl
1441 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1442 # However, they still use the build modules, because the corresponding
1443 # host modules (e.g. bison) are only built for the host when bootstrap
1444 # finishes. So:
1445 # - build_subdir is where we find build modules, and never changes.
1446 # - build_libsubdir is where we find build libraries, and can be overridden.
1447
1448 # Prefix 'build-' so this never conflicts with target_subdir.
1449 build_subdir="build-${build_noncanonical}"
1450
1451 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1452 if test "${with_build_libsubdir+set}" = set; then
1453   withval="$with_build_libsubdir"
1454   build_libsubdir="$withval"
1455 else
1456   build_libsubdir="$build_subdir"
1457 fi;
1458 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1459 if ( test $srcdir = . && test -d gcc ) \
1460    || test -d $srcdir/../host-${host_noncanonical}; then
1461   host_subdir="host-${host_noncanonical}"
1462 else
1463   host_subdir=.
1464 fi
1465 # No prefix.
1466 target_subdir=${target_noncanonical}
1467
1468
1469 # We use these options to decide which functions to include.
1470
1471 # Check whether --with-target-subdir or --without-target-subdir was given.
1472 if test "${with_target_subdir+set}" = set; then
1473   withval="$with_target_subdir"
1474
1475 fi;
1476
1477 # We may get other options which we don't document:
1478 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1479
1480 # When building with srcdir == objdir, links to the source files will
1481 # be created in directories within the target_subdir.  We have to
1482 # adjust toplevel_srcdir accordingly, so that configure finds
1483 # install-sh and other auxiliary files that live in the top-level
1484 # source directory.
1485 if test "${srcdir}" = "."; then
1486   if test -z "${with_target_subdir}"; then
1487     toprel=".."
1488   else
1489     if test "${with_target_subdir}" != "."; then
1490       toprel="${with_multisrctop}../.."
1491     else
1492       toprel="${with_multisrctop}.."
1493     fi
1494   fi
1495 else
1496   toprel=".."
1497 fi
1498
1499 libgcj_basedir=$srcdir/$toprel/./libjava
1500
1501
1502 echo "$as_me:$LINENO: checking host system type" >&5
1503 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1504 if test "${ac_cv_host+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   ac_cv_host_alias=$host_alias
1508 test -z "$ac_cv_host_alias" &&
1509   ac_cv_host_alias=$ac_cv_build_alias
1510 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1511   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1512 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1513    { (exit 1); exit 1; }; }
1514
1515 fi
1516 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1517 echo "${ECHO_T}$ac_cv_host" >&6
1518 host=$ac_cv_host
1519 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1520 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1521 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1522
1523
1524 echo "$as_me:$LINENO: checking target system type" >&5
1525 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1526 if test "${ac_cv_target+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   ac_cv_target_alias=$target_alias
1530 test "x$ac_cv_target_alias" = "x" &&
1531   ac_cv_target_alias=$ac_cv_host_alias
1532 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1533   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1535    { (exit 1); exit 1; }; }
1536
1537 fi
1538 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1539 echo "${ECHO_T}$ac_cv_target" >&6
1540 target=$ac_cv_target
1541 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1544
1545
1546 # The aliases save the names the user supplied, while $host etc.
1547 # will get canonicalized.
1548 test -n "$target_alias" &&
1549   test "$program_prefix$program_suffix$program_transform_name" = \
1550     NONENONEs,x,x, &&
1551   program_prefix=${target_alias}-
1552  case ${build_alias} in
1553   "") build_noncanonical=${build} ;;
1554   *) build_noncanonical=${build_alias} ;;
1555 esac
1556
1557  case ${target_alias} in
1558   "") target_noncanonical=${host_noncanonical} ;;
1559   *) target_noncanonical=${target_alias} ;;
1560 esac
1561
1562
1563
1564
1565 # This works around the fact that libtool configuration may change LD
1566 # for this particular configuration, but some shells, instead of
1567 # keeping the changes in LD private, export them just because LD is
1568 # exported.
1569 ORIGINAL_LD_FOR_MULTILIBS=$LD
1570
1571 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1572 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1573 LN_S=$as_ln_s
1574 if test "$LN_S" = "ln -s"; then
1575   echo "$as_me:$LINENO: result: yes" >&5
1576 echo "${ECHO_T}yes" >&6
1577 else
1578   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1579 echo "${ECHO_T}no, using $LN_S" >&6
1580 fi
1581
1582
1583 # This works around an automake problem.
1584 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1585
1586
1587
1588 # Check whether --with-cross-host or --without-cross-host was given.
1589 if test "${with_cross_host+set}" = set; then
1590   withval="$with_cross_host"
1591
1592 fi;
1593
1594
1595 # Check whether --with-newlib or --without-newlib was given.
1596 if test "${with_newlib+set}" = set; then
1597   withval="$with_newlib"
1598
1599 fi;
1600
1601 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1602 if test "${enable_version_specific_runtime_libs+set}" = set; then
1603   enableval="$enable_version_specific_runtime_libs"
1604   case "$enableval" in
1605       yes) version_specific_libs=yes ;;
1606       no)  version_specific_libs=no ;;
1607       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1608 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1609    { (exit 1); exit 1; }; };;
1610      esac
1611 else
1612   version_specific_libs=no
1613
1614 fi;
1615
1616 # Default to --enable-multilib
1617 # Check whether --enable-multilib or --disable-multilib was given.
1618 if test "${enable_multilib+set}" = set; then
1619   enableval="$enable_multilib"
1620   case "${enableval}" in
1621   yes) multilib=yes ;;
1622   no)  multilib=no ;;
1623   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1624 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1625    { (exit 1); exit 1; }; } ;;
1626  esac
1627 else
1628   multilib=yes
1629 fi;
1630 # Check whether --enable-plugin or --disable-plugin was given.
1631 if test "${enable_plugin+set}" = set; then
1632   enableval="$enable_plugin"
1633   case "$enableval" in
1634       yes) plugin_enabled=yes ;;
1635       no)  plugin_enabled=no ;;
1636       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1637 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1638    { (exit 1); exit 1; }; };;
1639      esac
1640 else
1641   plugin_enabled=no
1642
1643 fi;
1644
1645 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1646
1647
1648 # (1) We use an abnormal CXX (without library references), so we
1649 # must cache it under a different name.
1650 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1651 # the non-multilib-adjusted value will be used in multilibs.
1652 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1653 # (4) As another side effect, automake doesn't automatically include them
1654 # in Makefile.in.
1655 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1656 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1657 # used in later tests.  This may not be necessary in libjava; I don't know.
1658
1659
1660
1661 save_CXXFLAGS="$CXXFLAGS"
1662 CXXFLAGS="$CXXFLAGS -fno-builtin"
1663 ac_ext=c
1664 ac_cpp='$CPP $CPPFLAGS'
1665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1668 if test -n "$ac_tool_prefix"; then
1669   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1671 echo "$as_me:$LINENO: checking for $ac_word" >&5
1672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673 if test "${ac_cv_prog_CC+set}" = set; then
1674   echo $ECHO_N "(cached) $ECHO_C" >&6
1675 else
1676   if test -n "$CC"; then
1677   ac_cv_prog_CC="$CC" # Let the user override the test.
1678 else
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682   IFS=$as_save_IFS
1683   test -z "$as_dir" && as_dir=.
1684   for ac_exec_ext in '' $ac_executable_extensions; do
1685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688     break 2
1689   fi
1690 done
1691 done
1692
1693 fi
1694 fi
1695 CC=$ac_cv_prog_CC
1696 if test -n "$CC"; then
1697   echo "$as_me:$LINENO: result: $CC" >&5
1698 echo "${ECHO_T}$CC" >&6
1699 else
1700   echo "$as_me:$LINENO: result: no" >&5
1701 echo "${ECHO_T}no" >&6
1702 fi
1703
1704 fi
1705 if test -z "$ac_cv_prog_CC"; then
1706   ac_ct_CC=$CC
1707   # Extract the first word of "gcc", so it can be a program name with args.
1708 set dummy gcc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$ac_ct_CC"; then
1715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1716 else
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724     ac_cv_prog_ac_ct_CC="gcc"
1725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1726     break 2
1727   fi
1728 done
1729 done
1730
1731 fi
1732 fi
1733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1734 if test -n "$ac_ct_CC"; then
1735   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1736 echo "${ECHO_T}$ac_ct_CC" >&6
1737 else
1738   echo "$as_me:$LINENO: result: no" >&5
1739 echo "${ECHO_T}no" >&6
1740 fi
1741
1742   CC=$ac_ct_CC
1743 else
1744   CC="$ac_cv_prog_CC"
1745 fi
1746
1747 if test -z "$CC"; then
1748   if test -n "$ac_tool_prefix"; then
1749   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1750 set dummy ${ac_tool_prefix}cc; ac_word=$2
1751 echo "$as_me:$LINENO: checking for $ac_word" >&5
1752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753 if test "${ac_cv_prog_CC+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   if test -n "$CC"; then
1757   ac_cv_prog_CC="$CC" # Let the user override the test.
1758 else
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   for ac_exec_ext in '' $ac_executable_extensions; do
1765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766     ac_cv_prog_CC="${ac_tool_prefix}cc"
1767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768     break 2
1769   fi
1770 done
1771 done
1772
1773 fi
1774 fi
1775 CC=$ac_cv_prog_CC
1776 if test -n "$CC"; then
1777   echo "$as_me:$LINENO: result: $CC" >&5
1778 echo "${ECHO_T}$CC" >&6
1779 else
1780   echo "$as_me:$LINENO: result: no" >&5
1781 echo "${ECHO_T}no" >&6
1782 fi
1783
1784 fi
1785 if test -z "$ac_cv_prog_CC"; then
1786   ac_ct_CC=$CC
1787   # Extract the first word of "cc", so it can be a program name with args.
1788 set dummy cc; ac_word=$2
1789 echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   if test -n "$ac_ct_CC"; then
1795   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 else
1797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 for as_dir in $PATH
1799 do
1800   IFS=$as_save_IFS
1801   test -z "$as_dir" && as_dir=.
1802   for ac_exec_ext in '' $ac_executable_extensions; do
1803   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1804     ac_cv_prog_ac_ct_CC="cc"
1805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806     break 2
1807   fi
1808 done
1809 done
1810
1811 fi
1812 fi
1813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1814 if test -n "$ac_ct_CC"; then
1815   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1816 echo "${ECHO_T}$ac_ct_CC" >&6
1817 else
1818   echo "$as_me:$LINENO: result: no" >&5
1819 echo "${ECHO_T}no" >&6
1820 fi
1821
1822   CC=$ac_ct_CC
1823 else
1824   CC="$ac_cv_prog_CC"
1825 fi
1826
1827 fi
1828 if test -z "$CC"; then
1829   # Extract the first word of "cc", so it can be a program name with args.
1830 set dummy cc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_CC+set}" = set; then
1834   echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836   if test -n "$CC"; then
1837   ac_cv_prog_CC="$CC" # Let the user override the test.
1838 else
1839   ac_prog_rejected=no
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1848        ac_prog_rejected=yes
1849        continue
1850      fi
1851     ac_cv_prog_CC="cc"
1852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853     break 2
1854   fi
1855 done
1856 done
1857
1858 if test $ac_prog_rejected = yes; then
1859   # We found a bogon in the path, so make sure we never use it.
1860   set dummy $ac_cv_prog_CC
1861   shift
1862   if test $# != 0; then
1863     # We chose a different compiler from the bogus one.
1864     # However, it has the same basename, so the bogon will be chosen
1865     # first if we set CC to just the basename; use the full file name.
1866     shift
1867     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1868   fi
1869 fi
1870 fi
1871 fi
1872 CC=$ac_cv_prog_CC
1873 if test -n "$CC"; then
1874   echo "$as_me:$LINENO: result: $CC" >&5
1875 echo "${ECHO_T}$CC" >&6
1876 else
1877   echo "$as_me:$LINENO: result: no" >&5
1878 echo "${ECHO_T}no" >&6
1879 fi
1880
1881 fi
1882 if test -z "$CC"; then
1883   if test -n "$ac_tool_prefix"; then
1884   for ac_prog in cl
1885   do
1886     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891   echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893   if test -n "$CC"; then
1894   ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899   IFS=$as_save_IFS
1900   test -z "$as_dir" && as_dir=.
1901   for ac_exec_ext in '' $ac_executable_extensions; do
1902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905     break 2
1906   fi
1907 done
1908 done
1909
1910 fi
1911 fi
1912 CC=$ac_cv_prog_CC
1913 if test -n "$CC"; then
1914   echo "$as_me:$LINENO: result: $CC" >&5
1915 echo "${ECHO_T}$CC" >&6
1916 else
1917   echo "$as_me:$LINENO: result: no" >&5
1918 echo "${ECHO_T}no" >&6
1919 fi
1920
1921     test -n "$CC" && break
1922   done
1923 fi
1924 if test -z "$CC"; then
1925   ac_ct_CC=$CC
1926   for ac_prog in cl
1927 do
1928   # Extract the first word of "$ac_prog", so it can be a program name with args.
1929 set dummy $ac_prog; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$ac_ct_CC"; then
1936   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943   for ac_exec_ext in '' $ac_executable_extensions; do
1944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945     ac_cv_prog_ac_ct_CC="$ac_prog"
1946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947     break 2
1948   fi
1949 done
1950 done
1951
1952 fi
1953 fi
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6
1958 else
1959   echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963   test -n "$ac_ct_CC" && break
1964 done
1965
1966   CC=$ac_ct_CC
1967 fi
1968
1969 fi
1970
1971
1972 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: no acceptable C compiler found in \$PATH
1975 See \`config.log' for more details." >&2;}
1976    { (exit 1); exit 1; }; }
1977
1978 # Provide some information about the compiler.
1979 echo "$as_me:$LINENO:" \
1980      "checking for C compiler version" >&5
1981 ac_compiler=`set X $ac_compile; echo $2`
1982 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1983   (eval $ac_compiler --version </dev/null >&5) 2>&5
1984   ac_status=$?
1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986   (exit $ac_status); }
1987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1988   (eval $ac_compiler -v </dev/null >&5) 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }
1992 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1993   (eval $ac_compiler -V </dev/null >&5) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }
1997
1998 cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h.  */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h.  */
2004
2005 int
2006 main ()
2007 {
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 # FIXME: Cleanup?
2014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2015   (eval $ac_link) 2>&5
2016   ac_status=$?
2017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018   (exit $ac_status); }; then
2019   gcc_no_link=no
2020 else
2021   gcc_no_link=yes
2022 fi
2023
2024 if test x$gcc_no_link = xyes; then
2025   # Setting cross_compile will disable run tests; it will
2026   # also disable AC_CHECK_FILE but that's generally
2027   # correct if we can't link.
2028   cross_compiling=yes
2029   EXEEXT=
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h.  */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h.  */
2037
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 ac_clean_files_save=$ac_clean_files
2047 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2048 # Try to create an executable without -o first, disregard a.out.
2049 # It will help us diagnose broken compilers, and finding out an intuition
2050 # of exeext.
2051 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2052 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2053 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2054 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2055   (eval $ac_link_default) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; then
2059   # Find the output, starting from the most likely.  This scheme is
2060 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2061 # resort.
2062
2063 # Be careful to initialize this variable, since it used to be cached.
2064 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2065 ac_cv_exeext=
2066 # b.out is created by i960 compilers.
2067 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2068 do
2069   test -f "$ac_file" || continue
2070   case $ac_file in
2071     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2072         ;;
2073     conftest.$ac_ext )
2074         # This is the source file.
2075         ;;
2076     [ab].out )
2077         # We found the default executable, but exeext='' is most
2078         # certainly right.
2079         break;;
2080     *.* )
2081         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2082         # FIXME: I believe we export ac_cv_exeext for Libtool,
2083         # but it would be cool to find out if it's true.  Does anybody
2084         # maintain Libtool? --akim.
2085         export ac_cv_exeext
2086         break;;
2087     * )
2088         break;;
2089   esac
2090 done
2091 else
2092   echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2094
2095 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: C compiler cannot create executables
2098 See \`config.log' for more details." >&2;}
2099    { (exit 77); exit 77; }; }
2100 fi
2101
2102 ac_exeext=$ac_cv_exeext
2103 echo "$as_me:$LINENO: result: $ac_file" >&5
2104 echo "${ECHO_T}$ac_file" >&6
2105
2106 # Check the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2109 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2110 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2111 # If not cross compiling, check that we can run a simple program.
2112 if test "$cross_compiling" != yes; then
2113   if { ac_try='./$ac_file'
2114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2115   (eval $ac_try) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; }; then
2119     cross_compiling=no
2120   else
2121     if test "$cross_compiling" = maybe; then
2122         cross_compiling=yes
2123     else
2124         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'.
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: cannot run C compiled programs.
2128 If you meant to cross compile, use \`--host'.
2129 See \`config.log' for more details." >&2;}
2130    { (exit 1); exit 1; }; }
2131     fi
2132   fi
2133 fi
2134 echo "$as_me:$LINENO: result: yes" >&5
2135 echo "${ECHO_T}yes" >&6
2136
2137 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2138 ac_clean_files=$ac_clean_files_save
2139 # Check the compiler produces executables we can run.  If not, either
2140 # the compiler is broken, or we cross compile.
2141 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2142 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2143 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2144 echo "${ECHO_T}$cross_compiling" >&6
2145
2146 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2147 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2149   (eval $ac_link) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; then
2153   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2154 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2155 # work properly (i.e., refer to `conftest.exe'), while it won't with
2156 # `rm'.
2157 for ac_file in conftest.exe conftest conftest.*; do
2158   test -f "$ac_file" || continue
2159   case $ac_file in
2160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2161     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2162           export ac_cv_exeext
2163           break;;
2164     * ) break;;
2165   esac
2166 done
2167 else
2168   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2169 See \`config.log' for more details." >&5
2170 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2171 See \`config.log' for more details." >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175 rm -f conftest$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2178
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2181 ac_exeext=$EXEEXT
2182 fi
2183 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2184 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2185 if test "${ac_cv_objext+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h.  */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h.  */
2194
2195 int
2196 main ()
2197 {
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 rm -f conftest.o conftest.obj
2204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2205   (eval $ac_compile) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }; then
2209   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2210   case $ac_file in
2211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2212     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2213        break;;
2214   esac
2215 done
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2223 See \`config.log' for more details." >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226
2227 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2228 fi
2229 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2230 echo "${ECHO_T}$ac_cv_objext" >&6
2231 OBJEXT=$ac_cv_objext
2232 ac_objext=$OBJEXT
2233 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h.  */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h.  */
2244
2245 int
2246 main ()
2247 {
2248 #ifndef __GNUC__
2249        choke me
2250 #endif
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258   (eval $ac_compile) 2>conftest.er1
2259   ac_status=$?
2260   grep -v '^ *+' conftest.er1 >conftest.err
2261   rm -f conftest.er1
2262   cat conftest.err >&5
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } &&
2265          { ac_try='test -z "$ac_c_werror_flag"
2266                          || test ! -s conftest.err'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; } &&
2272          { ac_try='test -s conftest.$ac_objext'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; }; then
2278   ac_compiler_gnu=yes
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 ac_compiler_gnu=no
2284 fi
2285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2286 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2287
2288 fi
2289 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2290 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2291 GCC=`test $ac_compiler_gnu = yes && echo yes`
2292 ac_test_CFLAGS=${CFLAGS+set}
2293 ac_save_CFLAGS=$CFLAGS
2294 CFLAGS="-g"
2295 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2296 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_g+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   cat >conftest.$ac_ext <<_ACEOF
2301 /* confdefs.h.  */
2302 _ACEOF
2303 cat confdefs.h >>conftest.$ac_ext
2304 cat >>conftest.$ac_ext <<_ACEOF
2305 /* end confdefs.h.  */
2306
2307 int
2308 main ()
2309 {
2310
2311   ;
2312   return 0;
2313 }
2314 _ACEOF
2315 rm -f conftest.$ac_objext
2316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2317   (eval $ac_compile) 2>conftest.er1
2318   ac_status=$?
2319   grep -v '^ *+' conftest.er1 >conftest.err
2320   rm -f conftest.er1
2321   cat conftest.err >&5
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); } &&
2324          { ac_try='test -z "$ac_c_werror_flag"
2325                          || test ! -s conftest.err'
2326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327   (eval $ac_try) 2>&5
2328   ac_status=$?
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; } &&
2331          { ac_try='test -s conftest.$ac_objext'
2332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333   (eval $ac_try) 2>&5
2334   ac_status=$?
2335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336   (exit $ac_status); }; }; then
2337   ac_cv_prog_cc_g=yes
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 ac_cv_prog_cc_g=no
2343 fi
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 fi
2346 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2347 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2348 if test "$ac_test_CFLAGS" = set; then
2349   CFLAGS=$ac_save_CFLAGS
2350 elif test $ac_cv_prog_cc_g = yes; then
2351   if test "$GCC" = yes; then
2352     CFLAGS="-g -O2"
2353   else
2354     CFLAGS="-g"
2355   fi
2356 else
2357   if test "$GCC" = yes; then
2358     CFLAGS="-O2"
2359   else
2360     CFLAGS=
2361   fi
2362 fi
2363 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2364 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2365 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2366   echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368   ac_cv_prog_cc_stdc=no
2369 ac_save_CC=$CC
2370 cat >conftest.$ac_ext <<_ACEOF
2371 /* confdefs.h.  */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h.  */
2376 #include <stdarg.h>
2377 #include <stdio.h>
2378 #include <sys/types.h>
2379 #include <sys/stat.h>
2380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2381 struct buf { int x; };
2382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2383 static char *e (p, i)
2384      char **p;
2385      int i;
2386 {
2387   return p[i];
2388 }
2389 static char *f (char * (*g) (char **, int), char **p, ...)
2390 {
2391   char *s;
2392   va_list v;
2393   va_start (v,p);
2394   s = g (p, va_arg (v,int));
2395   va_end (v);
2396   return s;
2397 }
2398
2399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2400    function prototypes and stuff, but not '\xHH' hex character constants.
2401    These don't provoke an error unfortunately, instead are silently treated
2402    as 'x'.  The following induces an error, until -std1 is added to get
2403    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2404    array size at least.  It's necessary to write '\x00'==0 to get something
2405    that's true only with -std1.  */
2406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2407
2408 int test (int i, double x);
2409 struct s1 {int (*f) (int a);};
2410 struct s2 {int (*f) (double a);};
2411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2412 int argc;
2413 char **argv;
2414 int
2415 main ()
2416 {
2417 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 # Don't try gcc -ansi; that turns off useful extensions and
2423 # breaks some systems' header files.
2424 # AIX                   -qlanglvl=ansi
2425 # Ultrix and OSF/1      -std1
2426 # HP-UX 10.20 and later -Ae
2427 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2428 # SVR4                  -Xc -D__EXTENSIONS__
2429 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2430 do
2431   CC="$ac_save_CC $ac_arg"
2432   rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag"
2442                          || test ! -s conftest.err'
2443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444   (eval $ac_try) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; } &&
2448          { ac_try='test -s conftest.$ac_objext'
2449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2450   (eval $ac_try) 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; }; then
2454   ac_cv_prog_cc_stdc=$ac_arg
2455 break
2456 else
2457   echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2459
2460 fi
2461 rm -f conftest.err conftest.$ac_objext
2462 done
2463 rm -f conftest.$ac_ext conftest.$ac_objext
2464 CC=$ac_save_CC
2465
2466 fi
2467
2468 case "x$ac_cv_prog_cc_stdc" in
2469   x|xno)
2470     echo "$as_me:$LINENO: result: none needed" >&5
2471 echo "${ECHO_T}none needed" >&6 ;;
2472   *)
2473     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2474 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2475     CC="$CC $ac_cv_prog_cc_stdc" ;;
2476 esac
2477
2478 # Some people use a C++ compiler to compile C.  Since we use `exit',
2479 # in C++ we need to declare it.  In case someone uses the same compiler
2480 # for both compiling C and C++ we need to have the C++ compiler decide
2481 # the declaration of exit, since it's the most demanding environment.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 #ifndef __cplusplus
2484   choke me
2485 #endif
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489   (eval $ac_compile) 2>conftest.er1
2490   ac_status=$?
2491   grep -v '^ *+' conftest.er1 >conftest.err
2492   rm -f conftest.er1
2493   cat conftest.err >&5
2494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495   (exit $ac_status); } &&
2496          { ac_try='test -z "$ac_c_werror_flag"
2497                          || test ! -s conftest.err'
2498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499   (eval $ac_try) 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; } &&
2503          { ac_try='test -s conftest.$ac_objext'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; }; then
2509   for ac_declaration in \
2510    '' \
2511    'extern "C" void std::exit (int) throw (); using std::exit;' \
2512    'extern "C" void std::exit (int); using std::exit;' \
2513    'extern "C" void exit (int) throw ();' \
2514    'extern "C" void exit (int);' \
2515    'void exit (int);'
2516 do
2517   cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523 $ac_declaration
2524 #include <stdlib.h>
2525 int
2526 main ()
2527 {
2528 exit (42);
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535   (eval $ac_compile) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } &&
2542          { ac_try='test -z "$ac_c_werror_flag"
2543                          || test ! -s conftest.err'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; } &&
2549          { ac_try='test -s conftest.$ac_objext'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; }; then
2555   :
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 continue
2561 fi
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2563   cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569 $ac_declaration
2570 int
2571 main ()
2572 {
2573 exit (42);
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580   (eval $ac_compile) 2>conftest.er1
2581   ac_status=$?
2582   grep -v '^ *+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
2584   cat conftest.err >&5
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); } &&
2587          { ac_try='test -z "$ac_c_werror_flag"
2588                          || test ! -s conftest.err'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   break
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 fi
2606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607 done
2608 rm -f conftest*
2609 if test -n "$ac_declaration"; then
2610   echo '#ifdef __cplusplus' >>confdefs.h
2611   echo $ac_declaration      >>confdefs.h
2612   echo '#endif'             >>confdefs.h
2613 fi
2614
2615 else
2616   echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2618
2619 fi
2620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2621 ac_ext=c
2622 ac_cpp='$CPP $CPPFLAGS'
2623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626
2627 ac_ext=cc
2628 ac_cpp='$CXXCPP $CPPFLAGS'
2629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2632 if test -n "$ac_tool_prefix"; then
2633   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2634   do
2635     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2636 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2637 echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   if test -n "$CXX"; then
2643   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   for ac_exec_ext in '' $ac_executable_extensions; do
2651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657 done
2658
2659 fi
2660 fi
2661 CXX=$glibcxx_cv_prog_CXX
2662 if test -n "$CXX"; then
2663   echo "$as_me:$LINENO: result: $CXX" >&5
2664 echo "${ECHO_T}$CXX" >&6
2665 else
2666   echo "$as_me:$LINENO: result: no" >&5
2667 echo "${ECHO_T}no" >&6
2668 fi
2669
2670     test -n "$CXX" && break
2671   done
2672 fi
2673 if test -z "$CXX"; then
2674   ac_ct_CXX=$CXX
2675   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2676 do
2677   # Extract the first word of "$ac_prog", so it can be a program name with args.
2678 set dummy $ac_prog; ac_word=$2
2679 echo "$as_me:$LINENO: checking for $ac_word" >&5
2680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2681 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   if test -n "$ac_ct_CXX"; then
2685   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2689 do
2690   IFS=$as_save_IFS
2691   test -z "$as_dir" && as_dir=.
2692   for ac_exec_ext in '' $ac_executable_extensions; do
2693   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2694     ac_cv_prog_ac_ct_CXX="$ac_prog"
2695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696     break 2
2697   fi
2698 done
2699 done
2700
2701 fi
2702 fi
2703 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2704 if test -n "$ac_ct_CXX"; then
2705   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2706 echo "${ECHO_T}$ac_ct_CXX" >&6
2707 else
2708   echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2710 fi
2711
2712   test -n "$ac_ct_CXX" && break
2713 done
2714 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2715
2716   CXX=$ac_ct_CXX
2717 fi
2718
2719
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO:" \
2722      "checking for C++ compiler version" >&5
2723 ac_compiler=`set X $ac_compile; echo $2`
2724 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2725   (eval $ac_compiler --version </dev/null >&5) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); }
2729 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2730   (eval $ac_compiler -v </dev/null >&5) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }
2734 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2735   (eval $ac_compiler -V </dev/null >&5) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }
2739
2740 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2741 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2742 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   cat >conftest.$ac_ext <<_ACEOF
2746 /* confdefs.h.  */
2747 _ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h.  */
2751
2752 int
2753 main ()
2754 {
2755 #ifndef __GNUC__
2756        choke me
2757 #endif
2758
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_cxx_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   ac_compiler_gnu=yes
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 ac_compiler_gnu=no
2791 fi
2792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2794
2795 fi
2796 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2798 GXX=`test $ac_compiler_gnu = yes && echo yes`
2799 ac_test_CXXFLAGS=${CXXFLAGS+set}
2800 ac_save_CXXFLAGS=$CXXFLAGS
2801 CXXFLAGS="-g"
2802 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2803 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2804 if test "${ac_cv_prog_cxx_g+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   cat >conftest.$ac_ext <<_ACEOF
2808 /* confdefs.h.  */
2809 _ACEOF
2810 cat confdefs.h >>conftest.$ac_ext
2811 cat >>conftest.$ac_ext <<_ACEOF
2812 /* end confdefs.h.  */
2813
2814 int
2815 main ()
2816 {
2817
2818   ;
2819   return 0;
2820 }
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2824   (eval $ac_compile) 2>conftest.er1
2825   ac_status=$?
2826   grep -v '^ *+' conftest.er1 >conftest.err
2827   rm -f conftest.er1
2828   cat conftest.err >&5
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } &&
2831          { ac_try='test -z "$ac_cxx_werror_flag"
2832                          || test ! -s conftest.err'
2833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834   (eval $ac_try) 2>&5
2835   ac_status=$?
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); }; } &&
2838          { ac_try='test -s conftest.$ac_objext'
2839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; }; then
2844   ac_cv_prog_cxx_g=yes
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849 ac_cv_prog_cxx_g=no
2850 fi
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2852 fi
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2855 if test "$ac_test_CXXFLAGS" = set; then
2856   CXXFLAGS=$ac_save_CXXFLAGS
2857 elif test $ac_cv_prog_cxx_g = yes; then
2858   if test "$GXX" = yes; then
2859     CXXFLAGS="-g -O2"
2860   else
2861     CXXFLAGS="-g"
2862   fi
2863 else
2864   if test "$GXX" = yes; then
2865     CXXFLAGS="-O2"
2866   else
2867     CXXFLAGS=
2868   fi
2869 fi
2870 for ac_declaration in \
2871    '' \
2872    'extern "C" void std::exit (int) throw (); using std::exit;' \
2873    'extern "C" void std::exit (int); using std::exit;' \
2874    'extern "C" void exit (int) throw ();' \
2875    'extern "C" void exit (int);' \
2876    'void exit (int);'
2877 do
2878   cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884 $ac_declaration
2885 #include <stdlib.h>
2886 int
2887 main ()
2888 {
2889 exit (42);
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896   (eval $ac_compile) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -z "$ac_cxx_werror_flag"
2904                          || test ! -s conftest.err'
2905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); }; } &&
2910          { ac_try='test -s conftest.$ac_objext'
2911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 continue
2922 fi
2923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2924   cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 $ac_declaration
2931 int
2932 main ()
2933 {
2934 exit (42);
2935   ;
2936   return 0;
2937 }
2938 _ACEOF
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941   (eval $ac_compile) 2>conftest.er1
2942   ac_status=$?
2943   grep -v '^ *+' conftest.er1 >conftest.err
2944   rm -f conftest.er1
2945   cat conftest.err >&5
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); } &&
2948          { ac_try='test -z "$ac_cxx_werror_flag"
2949                          || test ! -s conftest.err'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   break
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968 done
2969 rm -f conftest*
2970 if test -n "$ac_declaration"; then
2971   echo '#ifdef __cplusplus' >>confdefs.h
2972   echo $ac_declaration      >>confdefs.h
2973   echo '#endif'             >>confdefs.h
2974 fi
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982 CXXFLAGS="$save_CXXFLAGS"
2983
2984
2985
2986
2987
2988 am__api_version="1.9"
2989 # Find a good install program.  We prefer a C program (faster),
2990 # so one script is as good as another.  But avoid the broken or
2991 # incompatible versions:
2992 # SysV /etc/install, /usr/sbin/install
2993 # SunOS /usr/etc/install
2994 # IRIX /sbin/install
2995 # AIX /bin/install
2996 # AmigaOS /C/install, which installs bootblocks on floppy discs
2997 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2998 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2999 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3000 # OS/2's system install, which has a completely different semantic
3001 # ./install, which can be erroneously created by make from ./install.sh.
3002 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3003 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3004 if test -z "$INSTALL"; then
3005 if test "${ac_cv_path_install+set}" = set; then
3006   echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011   IFS=$as_save_IFS
3012   test -z "$as_dir" && as_dir=.
3013   # Account for people who put trailing slashes in PATH elements.
3014 case $as_dir/ in
3015   ./ | .// | /cC/* | \
3016   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3017   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3018   /usr/ucb/* ) ;;
3019   *)
3020     # OSF1 and SCO ODT 3.0 have their own names for install.
3021     # Don't use installbsd from OSF since it installs stuff as root
3022     # by default.
3023     for ac_prog in ginstall scoinst install; do
3024       for ac_exec_ext in '' $ac_executable_extensions; do
3025         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3026           if test $ac_prog = install &&
3027             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3028             # AIX install.  It has an incompatible calling convention.
3029             :
3030           elif test $ac_prog = install &&
3031             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3032             # program-specific install script used by HP pwplus--don't use.
3033             :
3034           else
3035             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3036             break 3
3037           fi
3038         fi
3039       done
3040     done
3041     ;;
3042 esac
3043 done
3044
3045
3046 fi
3047   if test "${ac_cv_path_install+set}" = set; then
3048     INSTALL=$ac_cv_path_install
3049   else
3050     # As a last resort, use the slow shell script.  We don't cache a
3051     # path for INSTALL within a source directory, because that will
3052     # break other packages using the cache if that directory is
3053     # removed, or if the path is relative.
3054     INSTALL=$ac_install_sh
3055   fi
3056 fi
3057 echo "$as_me:$LINENO: result: $INSTALL" >&5
3058 echo "${ECHO_T}$INSTALL" >&6
3059
3060 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3061 # It thinks the first close brace ends the variable substitution.
3062 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3063
3064 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3065
3066 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3067
3068 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3069 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3070 # Just in case
3071 sleep 1
3072 echo timestamp > conftest.file
3073 # Do `set' in a subshell so we don't clobber the current shell's
3074 # arguments.  Must try -L first in case configure is actually a
3075 # symlink; some systems play weird games with the mod time of symlinks
3076 # (eg FreeBSD returns the mod time of the symlink's containing
3077 # directory).
3078 if (
3079    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3080    if test "$*" = "X"; then
3081       # -L didn't work.
3082       set X `ls -t $srcdir/configure conftest.file`
3083    fi
3084    rm -f conftest.file
3085    if test "$*" != "X $srcdir/configure conftest.file" \
3086       && test "$*" != "X conftest.file $srcdir/configure"; then
3087
3088       # If neither matched, then we have a broken ls.  This can happen
3089       # if, for instance, CONFIG_SHELL is bash and it inherits a
3090       # broken ls alias from the environment.  This has actually
3091       # happened.  Such a system could not be considered "sane".
3092       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3093 alias in your environment" >&5
3094 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3095 alias in your environment" >&2;}
3096    { (exit 1); exit 1; }; }
3097    fi
3098
3099    test "$2" = conftest.file
3100    )
3101 then
3102    # Ok.
3103    :
3104 else
3105    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3106 Check your system clock" >&5
3107 echo "$as_me: error: newly created file is older than distributed files!
3108 Check your system clock" >&2;}
3109    { (exit 1); exit 1; }; }
3110 fi
3111 echo "$as_me:$LINENO: result: yes" >&5
3112 echo "${ECHO_T}yes" >&6
3113 test "$program_prefix" != NONE &&
3114   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3115 # Use a double $ so make ignores it.
3116 test "$program_suffix" != NONE &&
3117   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3118 # Double any \ or $.  echo might interpret backslashes.
3119 # By default was `s,x,x', remove it if useless.
3120 cat <<\_ACEOF >conftest.sed
3121 s/[\\$]/&&/g;s/;s,x,x,$//
3122 _ACEOF
3123 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3124 rm conftest.sed
3125
3126 # expand $ac_aux_dir to an absolute path
3127 am_aux_dir=`cd $ac_aux_dir && pwd`
3128
3129 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3130 # Use eval to expand $SHELL
3131 if eval "$MISSING --run true"; then
3132   am_missing_run="$MISSING --run "
3133 else
3134   am_missing_run=
3135   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3136 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3137 fi
3138
3139 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3140   # We used to keeping the `.' as first argument, in order to
3141   # allow $(mkdir_p) to be used without argument.  As in
3142   #   $(mkdir_p) $(somedir)
3143   # where $(somedir) is conditionally defined.  However this is wrong
3144   # for two reasons:
3145   #  1. if the package is installed by a user who cannot write `.'
3146   #     make install will fail,
3147   #  2. the above comment should most certainly read
3148   #     $(mkdir_p) $(DESTDIR)$(somedir)
3149   #     so it does not work when $(somedir) is undefined and
3150   #     $(DESTDIR) is not.
3151   #  To support the latter case, we have to write
3152   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3153   #  so the `.' trick is pointless.
3154   mkdir_p='mkdir -p --'
3155 else
3156   # On NextStep and OpenStep, the `mkdir' command does not
3157   # recognize any option.  It will interpret all options as
3158   # directories to create, and then abort because `.' already
3159   # exists.
3160   for d in ./-p ./--version;
3161   do
3162     test -d $d && rmdir $d
3163   done
3164   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3165   if test -f "$ac_aux_dir/mkinstalldirs"; then
3166     mkdir_p='$(mkinstalldirs)'
3167   else
3168     mkdir_p='$(install_sh) -d'
3169   fi
3170 fi
3171
3172 for ac_prog in gawk mawk nawk awk
3173 do
3174   # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_AWK+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   if test -n "$AWK"; then
3182   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191     ac_cv_prog_AWK="$ac_prog"
3192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197
3198 fi
3199 fi
3200 AWK=$ac_cv_prog_AWK
3201 if test -n "$AWK"; then
3202   echo "$as_me:$LINENO: result: $AWK" >&5
3203 echo "${ECHO_T}$AWK" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   test -n "$AWK" && break
3210 done
3211
3212 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3213 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3214 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3215 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   cat >conftest.make <<\_ACEOF
3219 all:
3220         @echo 'ac_maketemp="$(MAKE)"'
3221 _ACEOF
3222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3223 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3224 if test -n "$ac_maketemp"; then
3225   eval ac_cv_prog_make_${ac_make}_set=yes
3226 else
3227   eval ac_cv_prog_make_${ac_make}_set=no
3228 fi
3229 rm -f conftest.make
3230 fi
3231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3232   echo "$as_me:$LINENO: result: yes" >&5
3233 echo "${ECHO_T}yes" >&6
3234   SET_MAKE=
3235 else
3236   echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3238   SET_MAKE="MAKE=${MAKE-make}"
3239 fi
3240
3241 rm -rf .tst 2>/dev/null
3242 mkdir .tst 2>/dev/null
3243 if test -d .tst; then
3244   am__leading_dot=.
3245 else
3246   am__leading_dot=_
3247 fi
3248 rmdir .tst 2>/dev/null
3249
3250 DEPDIR="${am__leading_dot}deps"
3251
3252           ac_config_commands="$ac_config_commands depfiles"
3253
3254
3255 am_make=${MAKE-make}
3256 cat > confinc << 'END'
3257 am__doit:
3258         @echo done
3259 .PHONY: am__doit
3260 END
3261 # If we don't find an include directive, just comment out the code.
3262 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3263 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3264 am__include="#"
3265 am__quote=
3266 _am_result=none
3267 # First try GNU make style include.
3268 echo "include confinc" > confmf
3269 # We grep out `Entering directory' and `Leaving directory'
3270 # messages which can occur if `w' ends up in MAKEFLAGS.
3271 # In particular we don't look at `^make:' because GNU make might
3272 # be invoked under some other name (usually "gmake"), in which
3273 # case it prints its new name instead of `make'.
3274 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3275    am__include=include
3276    am__quote=
3277    _am_result=GNU
3278 fi
3279 # Now try BSD make style include.
3280 if test "$am__include" = "#"; then
3281    echo '.include "confinc"' > confmf
3282    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3283       am__include=.include
3284       am__quote="\""
3285       _am_result=BSD
3286    fi
3287 fi
3288
3289
3290 echo "$as_me:$LINENO: result: $_am_result" >&5
3291 echo "${ECHO_T}$_am_result" >&6
3292 rm -f confinc confmf
3293
3294 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3295 if test "${enable_dependency_tracking+set}" = set; then
3296   enableval="$enable_dependency_tracking"
3297
3298 fi;
3299 if test "x$enable_dependency_tracking" != xno; then
3300   am_depcomp="$ac_aux_dir/depcomp"
3301   AMDEPBACKSLASH='\'
3302 fi
3303
3304
3305 if test "x$enable_dependency_tracking" != xno; then
3306   AMDEP_TRUE=
3307   AMDEP_FALSE='#'
3308 else
3309   AMDEP_TRUE='#'
3310   AMDEP_FALSE=
3311 fi
3312
3313
3314
3315 # test to see if srcdir already configured
3316 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3317    test -f $srcdir/config.status; then
3318   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3319 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3320    { (exit 1); exit 1; }; }
3321 fi
3322
3323 # test whether we have cygpath
3324 if test -z "$CYGPATH_W"; then
3325   if (cygpath --version) >/dev/null 2>/dev/null; then
3326     CYGPATH_W='cygpath -w'
3327   else
3328     CYGPATH_W=echo
3329   fi
3330 fi
3331
3332
3333 # Define the identity of the package.
3334  PACKAGE='libjava'
3335  VERSION='version-unused'
3336
3337
3338 cat >>confdefs.h <<_ACEOF
3339 #define PACKAGE "$PACKAGE"
3340 _ACEOF
3341
3342
3343 cat >>confdefs.h <<_ACEOF
3344 #define VERSION "$VERSION"
3345 _ACEOF
3346
3347 # Some tools Automake needs.
3348
3349 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3350
3351
3352 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3353
3354
3355 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3356
3357
3358 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3359
3360
3361 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3362
3363 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3364
3365 # Installed binaries are usually stripped using `strip' when the user
3366 # run `make install-strip'.  However `strip' might not be the right
3367 # tool to use in cross-compilation environments, therefore Automake
3368 # will honor the `STRIP' environment variable to overrule this program.
3369 if test "$cross_compiling" != no; then
3370   if test -n "$ac_tool_prefix"; then
3371   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}strip; ac_word=$2
3373 echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3375 if test "${ac_cv_prog_STRIP+set}" = set; then
3376   echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378   if test -n "$STRIP"; then
3379   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384   IFS=$as_save_IFS
3385   test -z "$as_dir" && as_dir=.
3386   for ac_exec_ext in '' $ac_executable_extensions; do
3387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390     break 2
3391   fi
3392 done
3393 done
3394
3395 fi
3396 fi
3397 STRIP=$ac_cv_prog_STRIP
3398 if test -n "$STRIP"; then
3399   echo "$as_me:$LINENO: result: $STRIP" >&5
3400 echo "${ECHO_T}$STRIP" >&6
3401 else
3402   echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6
3404 fi
3405
3406 fi
3407 if test -z "$ac_cv_prog_STRIP"; then
3408   ac_ct_STRIP=$STRIP
3409   # Extract the first word of "strip", so it can be a program name with args.
3410 set dummy strip; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   if test -n "$ac_ct_STRIP"; then
3417   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3418 else
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422   IFS=$as_save_IFS
3423   test -z "$as_dir" && as_dir=.
3424   for ac_exec_ext in '' $ac_executable_extensions; do
3425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3426     ac_cv_prog_ac_ct_STRIP="strip"
3427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3428     break 2
3429   fi
3430 done
3431 done
3432
3433   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3434 fi
3435 fi
3436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3437 if test -n "$ac_ct_STRIP"; then
3438   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3439 echo "${ECHO_T}$ac_ct_STRIP" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 fi
3444
3445   STRIP=$ac_ct_STRIP
3446 else
3447   STRIP="$ac_cv_prog_STRIP"
3448 fi
3449
3450 fi
3451 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3452
3453 # We need awk for the "check" target.  The system "awk" is bad on
3454 # some platforms.
3455 # Always define AMTAR for backward compatibility.
3456
3457 AMTAR=${AMTAR-"${am_missing_run}tar"}
3458
3459 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3460
3461
3462
3463
3464 depcc="$CC"   am_compiler_list=
3465
3466 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3467 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3468 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472   # We make a subdir and do the tests there.  Otherwise we can end up
3473   # making bogus files that we don't know about and never remove.  For
3474   # instance it was reported that on HP-UX the gcc test will end up
3475   # making a dummy file named `D' -- because `-MD' means `put the output
3476   # in D'.
3477   mkdir conftest.dir
3478   # Copy depcomp to subdir because otherwise we won't find it if we're
3479   # using a relative directory.
3480   cp "$am_depcomp" conftest.dir
3481   cd conftest.dir
3482   # We will build objects and dependencies in a subdirectory because
3483   # it helps to detect inapplicable dependency modes.  For instance
3484   # both Tru64's cc and ICC support -MD to output dependencies as a
3485   # side effect of compilation, but ICC will put the dependencies in
3486   # the current directory while Tru64 will put them in the object
3487   # directory.
3488   mkdir sub
3489
3490   am_cv_CC_dependencies_compiler_type=none
3491   if test "$am_compiler_list" = ""; then
3492      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3493   fi
3494   for depmode in $am_compiler_list; do
3495     # Setup a source with many dependencies, because some compilers
3496     # like to wrap large dependency lists on column 80 (with \), and
3497     # we should not choose a depcomp mode which is confused by this.
3498     #
3499     # We need to recreate these files for each test, as the compiler may
3500     # overwrite some of them when testing with obscure command lines.
3501     # This happens at least with the AIX C compiler.
3502     : > sub/conftest.c
3503     for i in 1 2 3 4 5 6; do
3504       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3505       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3506       # Solaris 8's {/usr,}/bin/sh.
3507       touch sub/conftst$i.h
3508     done
3509     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3510
3511     case $depmode in
3512     nosideeffect)
3513       # after this tag, mechanisms are not by side-effect, so they'll
3514       # only be used when explicitly requested
3515       if test "x$enable_dependency_tracking" = xyes; then
3516         continue
3517       else
3518         break
3519       fi
3520       ;;
3521     none) break ;;
3522     esac
3523     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3524     # mode.  It turns out that the SunPro C++ compiler does not properly
3525     # handle `-M -o', and we need to detect this.
3526     if depmode=$depmode \
3527        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3528        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3529        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3530          >/dev/null 2>conftest.err &&
3531        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3532        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3533        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3534       # icc doesn't choke on unknown options, it will just issue warnings
3535       # or remarks (even with -Werror).  So we grep stderr for any message
3536       # that says an option was ignored or not supported.
3537       # When given -MP, icc 7.0 and 7.1 complain thusly:
3538       #   icc: Command line warning: ignoring option '-M'; no argument required
3539       # The diagnosis changed in icc 8.0:
3540       #   icc: Command line remark: option '-MP' not supported
3541       if (grep 'ignoring option' conftest.err ||
3542           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3543         am_cv_CC_dependencies_compiler_type=$depmode
3544         break
3545       fi
3546     fi
3547   done
3548
3549   cd ..
3550   rm -rf conftest.dir
3551 else
3552   am_cv_CC_dependencies_compiler_type=none
3553 fi
3554
3555 fi
3556 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3557 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3559
3560
3561
3562 if
3563   test "x$enable_dependency_tracking" != xno \
3564   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3565   am__fastdepCC_TRUE=
3566   am__fastdepCC_FALSE='#'
3567 else
3568   am__fastdepCC_TRUE='#'
3569   am__fastdepCC_FALSE=
3570 fi
3571
3572
3573 depcc="$CXX"  am_compiler_list=
3574
3575 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3576 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3577 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581   # We make a subdir and do the tests there.  Otherwise we can end up
3582   # making bogus files that we don't know about and never remove.  For
3583   # instance it was reported that on HP-UX the gcc test will end up
3584   # making a dummy file named `D' -- because `-MD' means `put the output
3585   # in D'.
3586   mkdir conftest.dir
3587   # Copy depcomp to subdir because otherwise we won't find it if we're
3588   # using a relative directory.
3589   cp "$am_depcomp" conftest.dir
3590   cd conftest.dir
3591   # We will build objects and dependencies in a subdirectory because
3592   # it helps to detect inapplicable dependency modes.  For instance
3593   # both Tru64's cc and ICC support -MD to output dependencies as a
3594   # side effect of compilation, but ICC will put the dependencies in
3595   # the current directory while Tru64 will put them in the object
3596   # directory.
3597   mkdir sub
3598
3599   am_cv_CXX_dependencies_compiler_type=none
3600   if test "$am_compiler_list" = ""; then
3601      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3602   fi
3603   for depmode in $am_compiler_list; do
3604     # Setup a source with many dependencies, because some compilers
3605     # like to wrap large dependency lists on column 80 (with \), and
3606     # we should not choose a depcomp mode which is confused by this.
3607     #
3608     # We need to recreate these files for each test, as the compiler may
3609     # overwrite some of them when testing with obscure command lines.
3610     # This happens at least with the AIX C compiler.
3611     : > sub/conftest.c
3612     for i in 1 2 3 4 5 6; do
3613       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3614       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3615       # Solaris 8's {/usr,}/bin/sh.
3616       touch sub/conftst$i.h
3617     done
3618     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3619
3620     case $depmode in
3621     nosideeffect)
3622       # after this tag, mechanisms are not by side-effect, so they'll
3623       # only be used when explicitly requested
3624       if test "x$enable_dependency_tracking" = xyes; then
3625         continue
3626       else
3627         break
3628       fi
3629       ;;
3630     none) break ;;
3631     esac
3632     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633     # mode.  It turns out that the SunPro C++ compiler does not properly
3634     # handle `-M -o', and we need to detect this.
3635     if depmode=$depmode \
3636        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3637        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3638        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3639          >/dev/null 2>conftest.err &&
3640        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3641        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3642        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3643       # icc doesn't choke on unknown options, it will just issue warnings
3644       # or remarks (even with -Werror).  So we grep stderr for any message
3645       # that says an option was ignored or not supported.
3646       # When given -MP, icc 7.0 and 7.1 complain thusly:
3647       #   icc: Command line warning: ignoring option '-M'; no argument required
3648       # The diagnosis changed in icc 8.0:
3649       #   icc: Command line remark: option '-MP' not supported
3650       if (grep 'ignoring option' conftest.err ||
3651           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3652         am_cv_CXX_dependencies_compiler_type=$depmode
3653         break
3654       fi
3655     fi
3656   done
3657
3658   cd ..
3659   rm -rf conftest.dir
3660 else
3661   am_cv_CXX_dependencies_compiler_type=none
3662 fi
3663
3664 fi
3665 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3666 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3667 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3668
3669
3670
3671 if
3672   test "x$enable_dependency_tracking" != xno \
3673   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3674   am__fastdepCXX_TRUE=
3675   am__fastdepCXX_FALSE='#'
3676 else
3677   am__fastdepCXX_TRUE='#'
3678   am__fastdepCXX_FALSE=
3679 fi
3680
3681
3682
3683
3684 if test -n "$ac_tool_prefix"; then
3685   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3686 set dummy ${ac_tool_prefix}as; ac_word=$2
3687 echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3689 if test "${ac_cv_prog_AS+set}" = set; then
3690   echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692   if test -n "$AS"; then
3693   ac_cv_prog_AS="$AS" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   for ac_exec_ext in '' $ac_executable_extensions; do
3701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702     ac_cv_prog_AS="${ac_tool_prefix}as"
3703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707 done
3708
3709 fi
3710 fi
3711 AS=$ac_cv_prog_AS
3712 if test -n "$AS"; then
3713   echo "$as_me:$LINENO: result: $AS" >&5
3714 echo "${ECHO_T}$AS" >&6
3715 else
3716   echo "$as_me:$LINENO: result: no" >&5
3717 echo "${ECHO_T}no" >&6
3718 fi
3719
3720 fi
3721 if test -z "$ac_cv_prog_AS"; then
3722   ac_ct_AS=$AS
3723   # Extract the first word of "as", so it can be a program name with args.
3724 set dummy as; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   if test -n "$ac_ct_AS"; then
3731   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740     ac_cv_prog_ac_ct_AS="as"
3741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745 done
3746
3747 fi
3748 fi
3749 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3750 if test -n "$ac_ct_AS"; then
3751   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3752 echo "${ECHO_T}$ac_ct_AS" >&6
3753 else
3754   echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3756 fi
3757
3758   AS=$ac_ct_AS
3759 else
3760   AS="$ac_cv_prog_AS"
3761 fi
3762
3763 if test -n "$ac_tool_prefix"; then
3764   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3765 set dummy ${ac_tool_prefix}ld; ac_word=$2
3766 echo "$as_me:$LINENO: checking for $ac_word" >&5
3767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3768 if test "${ac_cv_prog_LD+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   if test -n "$LD"; then
3772   ac_cv_prog_LD="$LD" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777   IFS=$as_save_IFS
3778   test -z "$as_dir" && as_dir=.
3779   for ac_exec_ext in '' $ac_executable_extensions; do
3780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781     ac_cv_prog_LD="${ac_tool_prefix}ld"
3782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3783     break 2
3784   fi
3785 done
3786 done
3787
3788 fi
3789 fi
3790 LD=$ac_cv_prog_LD
3791 if test -n "$LD"; then
3792   echo "$as_me:$LINENO: result: $LD" >&5
3793 echo "${ECHO_T}$LD" >&6
3794 else
3795   echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3797 fi
3798
3799 fi
3800 if test -z "$ac_cv_prog_LD"; then
3801   ac_ct_LD=$LD
3802   # Extract the first word of "ld", so it can be a program name with args.
3803 set dummy ld; ac_word=$2
3804 echo "$as_me:$LINENO: checking for $ac_word" >&5
3805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3806 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3807   echo $ECHO_N "(cached) $ECHO_C" >&6
3808 else
3809   if test -n "$ac_ct_LD"; then
3810   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815   IFS=$as_save_IFS
3816   test -z "$as_dir" && as_dir=.
3817   for ac_exec_ext in '' $ac_executable_extensions; do
3818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819     ac_cv_prog_ac_ct_LD="ld"
3820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3821     break 2
3822   fi
3823 done
3824 done
3825
3826 fi
3827 fi
3828 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3829 if test -n "$ac_ct_LD"; then
3830   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3831 echo "${ECHO_T}$ac_ct_LD" >&6
3832 else
3833   echo "$as_me:$LINENO: result: no" >&5
3834 echo "${ECHO_T}no" >&6
3835 fi
3836
3837   LD=$ac_ct_LD
3838 else
3839   LD="$ac_cv_prog_LD"
3840 fi
3841
3842 if test -n "$ac_tool_prefix"; then
3843   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}ar; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_AR+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if test -n "$AR"; then
3851   ac_cv_prog_AR="$AR" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
3857   test -z "$as_dir" && as_dir=.
3858   for ac_exec_ext in '' $ac_executable_extensions; do
3859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860     ac_cv_prog_AR="${ac_tool_prefix}ar"
3861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862     break 2
3863   fi
3864 done
3865 done
3866
3867 fi
3868 fi
3869 AR=$ac_cv_prog_AR
3870 if test -n "$AR"; then
3871   echo "$as_me:$LINENO: result: $AR" >&5
3872 echo "${ECHO_T}$AR" >&6
3873 else
3874   echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3876 fi
3877
3878 fi
3879 if test -z "$ac_cv_prog_AR"; then
3880   ac_ct_AR=$AR
3881   # Extract the first word of "ar", so it can be a program name with args.
3882 set dummy ar; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   if test -n "$ac_ct_AR"; then
3889   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898     ac_cv_prog_ac_ct_AR="ar"
3899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903 done
3904
3905 fi
3906 fi
3907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3908 if test -n "$ac_ct_AR"; then
3909   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3910 echo "${ECHO_T}$ac_ct_AR" >&6
3911 else
3912   echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 fi
3915
3916   AR=$ac_ct_AR
3917 else
3918   AR="$ac_cv_prog_AR"
3919 fi
3920
3921 if test -n "$ac_tool_prefix"; then
3922   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3924 echo "$as_me:$LINENO: checking for $ac_word" >&5
3925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3926 if test "${ac_cv_prog_RANLIB+set}" = set; then
3927   echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929   if test -n "$RANLIB"; then
3930   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   test -z "$as_dir" && as_dir=.
3937   for ac_exec_ext in '' $ac_executable_extensions; do
3938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3941     break 2
3942   fi
3943 done
3944 done
3945
3946 fi
3947 fi
3948 RANLIB=$ac_cv_prog_RANLIB
3949 if test -n "$RANLIB"; then
3950   echo "$as_me:$LINENO: result: $RANLIB" >&5
3951 echo "${ECHO_T}$RANLIB" >&6
3952 else
3953   echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6
3955 fi
3956
3957 fi
3958 if test -z "$ac_cv_prog_RANLIB"; then
3959   ac_ct_RANLIB=$RANLIB
3960   # Extract the first word of "ranlib", so it can be a program name with args.
3961 set dummy ranlib; ac_word=$2
3962 echo "$as_me:$LINENO: checking for $ac_word" >&5
3963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   if test -n "$ac_ct_RANLIB"; then
3968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3972 do
3973   IFS=$as_save_IFS
3974   test -z "$as_dir" && as_dir=.
3975   for ac_exec_ext in '' $ac_executable_extensions; do
3976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3977     ac_cv_prog_ac_ct_RANLIB="ranlib"
3978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979     break 2
3980   fi
3981 done
3982 done
3983
3984   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3985 fi
3986 fi
3987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3988 if test -n "$ac_ct_RANLIB"; then
3989   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996   RANLIB=$ac_ct_RANLIB
3997 else
3998   RANLIB="$ac_cv_prog_RANLIB"
3999 fi
4000
4001 for ac_prog in gawk mawk nawk awk
4002 do
4003   # Extract the first word of "$ac_prog", so it can be a program name with args.
4004 set dummy $ac_prog; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_AWK+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   if test -n "$AWK"; then
4011   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016   IFS=$as_save_IFS
4017   test -z "$as_dir" && as_dir=.
4018   for ac_exec_ext in '' $ac_executable_extensions; do
4019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020     ac_cv_prog_AWK="$ac_prog"
4021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4022     break 2
4023   fi
4024 done
4025 done
4026
4027 fi
4028 fi
4029 AWK=$ac_cv_prog_AWK
4030 if test -n "$AWK"; then
4031   echo "$as_me:$LINENO: result: $AWK" >&5
4032 echo "${ECHO_T}$AWK" >&6
4033 else
4034   echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4036 fi
4037
4038   test -n "$AWK" && break
4039 done
4040
4041 for ac_prog in jar fastjar
4042 do
4043   # Extract the first word of "$ac_prog", so it can be a program name with args.
4044 set dummy $ac_prog; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_prog_JAR+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   if test -n "$JAR"; then
4051   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   for ac_exec_ext in '' $ac_executable_extensions; do
4059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060     ac_cv_prog_JAR="$ac_prog"
4061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4062     break 2
4063   fi
4064 done
4065 done
4066
4067 fi
4068 fi
4069 JAR=$ac_cv_prog_JAR
4070 if test -n "$JAR"; then
4071   echo "$as_me:$LINENO: result: $JAR" >&5
4072 echo "${ECHO_T}$JAR" >&6
4073 else
4074   echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076 fi
4077
4078   test -n "$JAR" && break
4079 done
4080 test -n "$JAR" || JAR="no"
4081
4082 # Extract the first word of "zip", so it can be a program name with args.
4083 set dummy zip; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_path_ZIP+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   case $ZIP in
4090   [\\/]* | ?:[\\/]*)
4091   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4092   ;;
4093   *)
4094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099   for ac_exec_ext in '' $ac_executable_extensions; do
4100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106 done
4107
4108   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4109   ;;
4110 esac
4111 fi
4112 ZIP=$ac_cv_path_ZIP
4113
4114 if test -n "$ZIP"; then
4115   echo "$as_me:$LINENO: result: $ZIP" >&5
4116 echo "${ECHO_T}$ZIP" >&6
4117 else
4118   echo "$as_me:$LINENO: result: no" >&5
4119 echo "${ECHO_T}no" >&6
4120 fi
4121
4122 # Extract the first word of "unzip", so it can be a program name with args.
4123 set dummy unzip; ac_word=$2
4124 echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126 if test "${ac_cv_path_UNZIP+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   case $UNZIP in
4130   [\\/]* | ?:[\\/]*)
4131   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4132   ;;
4133   *)
4134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146 done
4147
4148   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4149   ;;
4150 esac
4151 fi
4152 UNZIP=$ac_cv_path_UNZIP
4153
4154 if test -n "$UNZIP"; then
4155   echo "$as_me:$LINENO: result: $UNZIP" >&5
4156 echo "${ECHO_T}$UNZIP" >&6
4157 else
4158   echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4160 fi
4161
4162
4163
4164 if test "$JAR" = no; then
4165   BASH_JAR_TRUE=
4166   BASH_JAR_FALSE='#'
4167 else
4168   BASH_JAR_TRUE='#'
4169   BASH_JAR_FALSE=
4170 fi
4171
4172 if test "$ZIP" = no; then
4173   if test "$JAR" = no; then
4174     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4175 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4176    { (exit 1); exit 1; }; }
4177   fi
4178 else
4179   # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4180   JAR=`pwd`/scripts/jar
4181 fi
4182
4183 # Find a good install program.  We prefer a C program (faster),
4184 # so one script is as good as another.  But avoid the broken or
4185 # incompatible versions:
4186 # SysV /etc/install, /usr/sbin/install
4187 # SunOS /usr/etc/install
4188 # IRIX /sbin/install
4189 # AIX /bin/install
4190 # AmigaOS /C/install, which installs bootblocks on floppy discs
4191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4194 # OS/2's system install, which has a completely different semantic
4195 # ./install, which can be erroneously created by make from ./install.sh.
4196 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4197 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4198 if test -z "$INSTALL"; then
4199 if test "${ac_cv_path_install+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207   # Account for people who put trailing slashes in PATH elements.
4208 case $as_dir/ in
4209   ./ | .// | /cC/* | \
4210   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4211   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4212   /usr/ucb/* ) ;;
4213   *)
4214     # OSF1 and SCO ODT 3.0 have their own names for install.
4215     # Don't use installbsd from OSF since it installs stuff as root
4216     # by default.
4217     for ac_prog in ginstall scoinst install; do
4218       for ac_exec_ext in '' $ac_executable_extensions; do
4219         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4220           if test $ac_prog = install &&
4221             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4222             # AIX install.  It has an incompatible calling convention.
4223             :
4224           elif test $ac_prog = install &&
4225             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4226             # program-specific install script used by HP pwplus--don't use.
4227             :
4228           else
4229             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4230             break 3
4231           fi
4232         fi
4233       done
4234     done
4235     ;;
4236 esac
4237 done
4238
4239
4240 fi
4241   if test "${ac_cv_path_install+set}" = set; then
4242     INSTALL=$ac_cv_path_install
4243   else
4244     # As a last resort, use the slow shell script.  We don't cache a
4245     # path for INSTALL within a source directory, because that will
4246     # break other packages using the cache if that directory is
4247     # removed, or if the path is relative.
4248     INSTALL=$ac_install_sh
4249   fi
4250 fi
4251 echo "$as_me:$LINENO: result: $INSTALL" >&5
4252 echo "${ECHO_T}$INSTALL" >&6
4253
4254 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4255 # It thinks the first close brace ends the variable substitution.
4256 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4257
4258 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4259
4260 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4261
4262
4263 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4264 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4265     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4266 if test "${enable_maintainer_mode+set}" = set; then
4267   enableval="$enable_maintainer_mode"
4268   USE_MAINTAINER_MODE=$enableval
4269 else
4270   USE_MAINTAINER_MODE=no
4271 fi;
4272   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4273 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4274
4275
4276 if test $USE_MAINTAINER_MODE = yes; then
4277   MAINTAINER_MODE_TRUE=
4278   MAINTAINER_MODE_FALSE='#'
4279 else
4280   MAINTAINER_MODE_TRUE='#'
4281   MAINTAINER_MODE_FALSE=
4282 fi
4283
4284   MAINT=$MAINTAINER_MODE_TRUE
4285
4286
4287
4288
4289
4290 # configure.host sets the following important variables
4291 #       libgcj_cflags    - host specific C compiler flags
4292 #       libgcj_cxxflags  - host specific C++ compiler flags
4293 #       libgcj_javaflags - host specific Java compiler flags
4294
4295 libgcj_cflags=
4296 libgcj_cxxflags=
4297 libgcj_javaflags=
4298
4299 . ${srcdir}/configure.host
4300
4301 LIBGCJ_CFLAGS="${libgcj_cflags}"
4302 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4303 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4304 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4305
4306
4307
4308
4309
4310 # Only use libltdl for non-newlib builds.
4311 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4312    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4313 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4314 library_names_spec=
4315 libname_spec='lib$name'
4316 soname_spec=
4317 shrext=".so"
4318 postinstall_cmds=
4319 postuninstall_cmds=
4320 finish_cmds=
4321 finish_eval=
4322 shlibpath_var=
4323 shlibpath_overrides_runpath=unknown
4324 version_type=none
4325 dynamic_linker="$host_os ld.so"
4326 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4327 if test "$GCC" = yes; then
4328   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4329   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4330     # if the path contains ";" then we assume it to be the separator
4331     # otherwise default to the standard path separator (i.e. ":") - it is
4332     # assumed that no part of a normal pathname contains ";" but that should
4333     # okay in the real world where ";" in dirpaths is itself problematic.
4334     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4335   else
4336     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4337   fi
4338 else
4339   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4340 fi
4341 need_lib_prefix=unknown
4342 hardcode_into_libs=no
4343
4344 # when you set need_version to no, make sure it does not cause -set_version
4345 # flags to be left without arguments
4346 need_version=unknown
4347
4348 case $host_os in
4349 aix3*)
4350   version_type=linux
4351   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4352   shlibpath_var=LIBPATH
4353
4354   # AIX 3 has no versioning support, so we append a major version to the name.
4355   soname_spec='${libname}${release}${shared_ext}$major'
4356   ;;
4357
4358 aix4* | aix5*)
4359   version_type=linux
4360   need_lib_prefix=no
4361   need_version=no
4362   hardcode_into_libs=yes
4363   if test "$host_cpu" = ia64; then
4364     # AIX 5 supports IA64
4365     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4366     shlibpath_var=LD_LIBRARY_PATH
4367   else
4368     # With GCC up to 2.95.x, collect2 would create an import file
4369     # for dependence libraries.  The import file would start with
4370     # the line `#! .'.  This would cause the generated library to
4371     # depend on `.', always an invalid library.  This was fixed in
4372     # development snapshots of GCC prior to 3.0.
4373     case $host_os in
4374       aix4 | aix4.[01] | aix4.[01].*)
4375       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4376            echo ' yes '
4377            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4378         :
4379       else
4380         can_build_shared=no
4381       fi
4382       ;;
4383     esac
4384     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4385     # soname into executable. Probably we can add versioning support to
4386     # collect2, so additional links can be useful in future.
4387     if test "$aix_use_runtimelinking" = yes; then
4388       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4389       # instead of lib<name>.a to let people know that these are not
4390       # typical AIX shared libraries.
4391       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4392     else
4393       # We preserve .a as extension for shared libraries through AIX4.2
4394       # and later when we are not doing run time linking.
4395       library_names_spec='${libname}${release}.a $libname.a'
4396       soname_spec='${libname}${release}${shared_ext}$major'
4397     fi
4398     shlibpath_var=LIBPATH
4399   fi
4400   ;;
4401
4402 amigaos*)
4403   library_names_spec='$libname.ixlibrary $libname.a'
4404   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4405   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4406   ;;
4407
4408 beos*)
4409   library_names_spec='${libname}${shared_ext}'
4410   dynamic_linker="$host_os ld.so"
4411   shlibpath_var=LIBRARY_PATH
4412   ;;
4413
4414 bsdi4*)
4415   version_type=linux
4416   need_version=no
4417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4418   soname_spec='${libname}${release}${shared_ext}$major'
4419   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4420   shlibpath_var=LD_LIBRARY_PATH
4421   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4422   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4423   # the default ld.so.conf also contains /usr/contrib/lib and
4424   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4425   # libtool to hard-code these into programs
4426   ;;
4427
4428 cygwin* | mingw* | pw32*)
4429   version_type=windows
4430   shrext=".dll"
4431   need_version=no
4432   need_lib_prefix=no
4433
4434   case $GCC,$host_os in
4435   yes,cygwin* | yes,mingw* | yes,pw32*)
4436     library_names_spec='$libname.dll.a'
4437     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4438     postinstall_cmds='base_file=`basename \${file}`~
4439       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4440       dldir=$destdir/`dirname \$dlpath`~
4441       test -d \$dldir || mkdir -p \$dldir~
4442       $install_prog $dir/$dlname \$dldir/$dlname'
4443     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4444       dlpath=$dir/\$dldll~
4445        $rm \$dlpath'
4446     shlibpath_overrides_runpath=yes
4447
4448     case $host_os in
4449     cygwin*)
4450       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4451       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4452       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4453       ;;
4454     mingw*)
4455       # MinGW DLLs use traditional 'lib' prefix
4456       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4457       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4458       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4459         # It is most probably a Windows format PATH printed by
4460         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4461         # path with ; separators, and with drive letters. We can handle the
4462         # drive letters (cygwin fileutils understands them), so leave them,
4463         # especially as we might pass files found there to a mingw objdump,
4464         # which wouldn't understand a cygwinified path. Ahh.
4465         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4466       else
4467         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4468       fi
4469       ;;
4470     pw32*)
4471       # pw32 DLLs use 'pw' prefix rather than 'lib'
4472       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4473       ;;
4474     esac
4475     ;;
4476
4477   *)
4478     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4479     ;;
4480   esac
4481   dynamic_linker='Win32 ld.exe'
4482   # FIXME: first we should search . and the directory the executable is in
4483   shlibpath_var=PATH
4484   ;;
4485
4486 darwin* | rhapsody*)
4487   dynamic_linker="$host_os dyld"
4488   version_type=darwin
4489   need_lib_prefix=no
4490   need_version=no
4491   # FIXME: Relying on posixy $() will cause problems for
4492   #        cross-compilation, but unfortunately the echo tests do not
4493   #        yet detect zsh echo's removal of \ escapes.
4494   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4495   soname_spec='${libname}${release}${major}$shared_ext'
4496   shlibpath_overrides_runpath=yes
4497   shlibpath_var=DYLD_LIBRARY_PATH
4498   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4499   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4500   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4501   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4502   fi
4503   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4504   ;;
4505
4506 dgux*)
4507   version_type=linux
4508   need_lib_prefix=no
4509   need_version=no
4510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4511   soname_spec='${libname}${release}${shared_ext}$major'
4512   shlibpath_var=LD_LIBRARY_PATH
4513   ;;
4514
4515 freebsd1*)
4516   dynamic_linker=no
4517   ;;
4518
4519 freebsd*)
4520   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4521   version_type=freebsd-$objformat
4522   case $version_type in
4523     freebsd-elf*)
4524       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4525       need_version=no
4526       need_lib_prefix=no
4527       ;;
4528     freebsd-*)
4529       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4530       need_version=yes
4531       ;;
4532   esac
4533   shlibpath_var=LD_LIBRARY_PATH
4534   case $host_os in
4535   freebsd2*)
4536     shlibpath_overrides_runpath=yes
4537     ;;
4538   freebsd3.01* | freebsdelf3.01*)
4539     shlibpath_overrides_runpath=yes
4540     hardcode_into_libs=yes
4541     ;;
4542   *) # from 3.2 on
4543     shlibpath_overrides_runpath=no
4544     hardcode_into_libs=yes
4545     ;;
4546   esac
4547   ;;
4548
4549 gnu*)
4550   version_type=linux
4551   need_lib_prefix=no
4552   need_version=no
4553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4554   soname_spec='${libname}${release}${shared_ext}$major'
4555   shlibpath_var=LD_LIBRARY_PATH
4556   hardcode_into_libs=yes
4557   ;;
4558
4559 hpux9* | hpux10* | hpux11*)
4560   # Give a soname corresponding to the major version so that dld.sl refuses to
4561   # link against other versions.
4562   version_type=sunos
4563   need_lib_prefix=no
4564   need_version=no
4565   case "$host_cpu" in
4566   ia64*)
4567     shrext='.so'
4568     hardcode_into_libs=yes
4569     dynamic_linker="$host_os dld.so"
4570     shlibpath_var=LD_LIBRARY_PATH
4571     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4573     soname_spec='${libname}${release}${shared_ext}$major'
4574     if test "X$HPUX_IA64_MODE" = X32; then
4575       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4576     else
4577       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4578     fi
4579     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4580     ;;
4581    hppa*64*)
4582      shrext='.sl'
4583      hardcode_into_libs=yes
4584      dynamic_linker="$host_os dld.sl"
4585      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4586      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4587      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4588      soname_spec='${libname}${release}${shared_ext}$major'
4589      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4590      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4591      ;;
4592    *)
4593     shrext='.sl'
4594     dynamic_linker="$host_os dld.sl"
4595     shlibpath_var=SHLIB_PATH
4596     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4597     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4598     soname_spec='${libname}${release}${shared_ext}$major'
4599     ;;
4600   esac
4601   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4602   postinstall_cmds='chmod 555 $lib'
4603   ;;
4604
4605 irix5* | irix6* | nonstopux*)
4606   case $host_os in
4607     nonstopux*) version_type=nonstopux ;;
4608     *)
4609         if test "$lt_cv_prog_gnu_ld" = yes; then
4610                 version_type=linux
4611         else
4612                 version_type=irix
4613         fi ;;
4614   esac
4615   need_lib_prefix=no
4616   need_version=no
4617   soname_spec='${libname}${release}${shared_ext}$major'
4618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4619   case $host_os in
4620   irix5* | nonstopux*)
4621     libsuff= shlibsuff=
4622     ;;
4623   *)
4624     case $LD in # libtool.m4 will add one of these switches to LD
4625     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4626       libsuff= shlibsuff= libmagic=32-bit;;
4627     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4628       libsuff=32 shlibsuff=N32 libmagic=N32;;
4629     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4630       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4631     *) libsuff= shlibsuff= libmagic=never-match;;
4632     esac
4633     ;;
4634   esac
4635   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4636   shlibpath_overrides_runpath=no
4637   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4638   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4639   hardcode_into_libs=yes
4640   ;;
4641
4642 # No shared lib support for Linux oldld, aout, or coff.
4643 linux*oldld* | linux*aout* | linux*coff*)
4644   dynamic_linker=no
4645   ;;
4646
4647 # This must be Linux ELF.
4648 linux*)
4649   version_type=linux
4650   need_lib_prefix=no
4651   need_version=no
4652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4653   soname_spec='${libname}${release}${shared_ext}$major'
4654   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4655   shlibpath_var=LD_LIBRARY_PATH
4656   shlibpath_overrides_runpath=no
4657   # This implies no fast_install, which is unacceptable.
4658   # Some rework will be needed to allow for fast_install
4659   # before this can be enabled.
4660   hardcode_into_libs=yes
4661
4662   # We used to test for /lib/ld.so.1 and disable shared libraries on
4663   # powerpc, because MkLinux only supported shared libraries with the
4664   # GNU dynamic linker.  Since this was broken with cross compilers,
4665   # most powerpc-linux boxes support dynamic linking these days and
4666   # people can always --disable-shared, the test was removed, and we
4667   # assume the GNU/Linux dynamic linker is in use.
4668   dynamic_linker='GNU/Linux ld.so'
4669   ;;
4670
4671 netbsd*)
4672   version_type=sunos
4673   need_lib_prefix=no
4674   need_version=no
4675   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4676     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4677     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4678     dynamic_linker='NetBSD (a.out) ld.so'
4679   else
4680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4681     soname_spec='${libname}${release}${shared_ext}$major'
4682     dynamic_linker='NetBSD ld.elf_so'
4683   fi
4684   shlibpath_var=LD_LIBRARY_PATH
4685   shlibpath_overrides_runpath=yes
4686   hardcode_into_libs=yes
4687   ;;
4688
4689 newsos6)
4690   version_type=linux
4691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4692   shlibpath_var=LD_LIBRARY_PATH
4693   shlibpath_overrides_runpath=yes
4694   ;;
4695
4696 nto-qnx)
4697   version_type=linux
4698   need_lib_prefix=no
4699   need_version=no
4700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4701   soname_spec='${libname}${release}${shared_ext}$major'
4702   shlibpath_var=LD_LIBRARY_PATH
4703   shlibpath_overrides_runpath=yes
4704   ;;
4705
4706 openbsd*)
4707   version_type=sunos
4708   need_lib_prefix=no
4709   need_version=no
4710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4711   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4712   shlibpath_var=LD_LIBRARY_PATH
4713   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4714     case $host_os in
4715       openbsd2.[89] | openbsd2.[89].*)
4716         shlibpath_overrides_runpath=no
4717         ;;
4718       *)
4719         shlibpath_overrides_runpath=yes
4720         ;;
4721       esac
4722   else
4723     shlibpath_overrides_runpath=yes
4724   fi
4725   ;;
4726
4727 os2*)
4728   libname_spec='$name'
4729   shrext=".dll"
4730   need_lib_prefix=no
4731   library_names_spec='$libname${shared_ext} $libname.a'
4732   dynamic_linker='OS/2 ld.exe'
4733   shlibpath_var=LIBPATH
4734   ;;
4735
4736 osf3* | osf4* | osf5*)
4737   version_type=osf
4738   need_lib_prefix=no
4739   need_version=no
4740   soname_spec='${libname}${release}${shared_ext}$major'
4741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4742   shlibpath_var=LD_LIBRARY_PATH
4743   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4744   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4745   ;;
4746
4747 sco3.2v5*)
4748   version_type=osf
4749   soname_spec='${libname}${release}${shared_ext}$major'
4750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4751   shlibpath_var=LD_LIBRARY_PATH
4752   ;;
4753
4754 solaris*)
4755   version_type=linux
4756   need_lib_prefix=no
4757   need_version=no
4758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4759   soname_spec='${libname}${release}${shared_ext}$major'
4760   shlibpath_var=LD_LIBRARY_PATH
4761   shlibpath_overrides_runpath=yes
4762   hardcode_into_libs=yes
4763   # ldd complains unless libraries are executable
4764   postinstall_cmds='chmod +x $lib'
4765   ;;
4766
4767 sunos4*)
4768   version_type=sunos
4769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4770   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4771   shlibpath_var=LD_LIBRARY_PATH
4772   shlibpath_overrides_runpath=yes
4773   if test "$with_gnu_ld" = yes; then
4774     need_lib_prefix=no
4775   fi
4776   need_version=yes
4777   ;;
4778
4779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4780   version_type=linux
4781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4782   soname_spec='${libname}${release}${shared_ext}$major'
4783   shlibpath_var=LD_LIBRARY_PATH
4784   case $host_vendor in
4785     sni)
4786       shlibpath_overrides_runpath=no
4787       need_lib_prefix=no
4788       export_dynamic_flag_spec='${wl}-Blargedynsym'
4789       runpath_var=LD_RUN_PATH
4790       ;;
4791     siemens)
4792       need_lib_prefix=no
4793       ;;
4794     motorola)
4795       need_lib_prefix=no
4796       need_version=no
4797       shlibpath_overrides_runpath=no
4798       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4799       ;;
4800   esac
4801   ;;
4802
4803 sysv4*MP*)
4804   if test -d /usr/nec ;then
4805     version_type=linux
4806     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4807     soname_spec='$libname${shared_ext}.$major'
4808     shlibpath_var=LD_LIBRARY_PATH
4809   fi
4810   ;;
4811
4812 uts4*)
4813   version_type=linux
4814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4815   soname_spec='${libname}${release}${shared_ext}$major'
4816   shlibpath_var=LD_LIBRARY_PATH
4817   ;;
4818
4819 *)
4820   dynamic_linker=no
4821   ;;
4822 esac
4823 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4824 echo "${ECHO_T}$dynamic_linker" >&6
4825 test "$dynamic_linker" = no && can_build_shared=no
4826
4827
4828 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4829 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4830 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4831   echo $ECHO_N "(cached) $ECHO_C" >&6
4832 else
4833   libltdl_cv_shlibpath_var="$shlibpath_var"
4834 fi
4835 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4836 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4837 if test -n "$libltdl_cv_shlibpath_var"; then
4838
4839 cat >>confdefs.h <<_ACEOF
4840 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4841 _ACEOF
4842
4843 fi
4844
4845 fi
4846
4847                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4848
4849
4850 # See if the user has requested runtime debugging.
4851 LIBGCJDEBUG="disable"
4852
4853 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4854 if test "${enable_libgcj_debug+set}" = set; then
4855   enableval="$enable_libgcj_debug"
4856   if test "$enable_libgcj_debug" = yes; then
4857
4858 cat >>confdefs.h <<\_ACEOF
4859 #define DEBUG 1
4860 _ACEOF
4861
4862     LIBGCJDEBUG="enable"
4863   fi
4864 fi;
4865
4866 # Determine which AWT peer libraries to build
4867 # Check whether --enable-java-awt or --disable-java-awt was given.
4868 if test "${enable_java_awt+set}" = set; then
4869   enableval="$enable_java_awt"
4870
4871 fi;
4872
4873 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4874 use_xlib_awt=""
4875 use_gtk_awt=""
4876 use_qt_awt=""
4877 # The default toolkit to use is the first one specified.
4878 TOOLKIT=
4879
4880
4881 for peer in $peerlibs ; do
4882   case $peer in
4883     xlib)
4884       if test "$no_x" = yes; then
4885         echo "*** xlib peers requested but no X library available" 1>&2
4886         exit 1
4887       else
4888         use_xlib_awt="yes"
4889         if test -z "$TOOLKIT"; then
4890            TOOLKIT=gnu.awt.xlib.XToolkit
4891         fi
4892       fi
4893       ;;
4894     gtk)
4895       if test "$no_x" = yes; then
4896          echo "*** gtk peers requested but no X library available" 1>&2
4897          exit 1
4898       else
4899          use_gtk_awt=yes
4900          if test -z "$TOOLKIT"; then
4901             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4902          fi
4903       fi
4904       ;;
4905     qt)
4906       if test "$no_x" = yes; then
4907          # Perhaps we should admit the possibility of embedded Qt.
4908          echo "*** Qt peers requested but no X library available" 1>&2
4909          exit 1
4910       else
4911          use_qt_awt=yes
4912          if test -z "$TOOLKIT"; then
4913             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4914          fi
4915       fi
4916       ;;
4917     no)
4918       use_xlib_awt=
4919       use_gtk_awt=
4920       use_qt_awt=
4921       break
4922       ;;
4923     *)
4924       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4925       exit 1
4926   esac
4927 done
4928
4929
4930
4931 if test "$use_xlib_awt" = yes; then
4932   XLIB_AWT_TRUE=
4933   XLIB_AWT_FALSE='#'
4934 else
4935   XLIB_AWT_TRUE='#'
4936   XLIB_AWT_FALSE=
4937 fi
4938
4939
4940 # Create standard.omit based on decisions we just made.
4941 cp $srcdir/standard.omit.in standard.omit
4942 if test "$use_xlib_awt" != yes; then
4943    echo gnu/awt/xlib >> standard.omit
4944    echo gnu/gcj/xlib >> standard.omit
4945 fi
4946
4947 if test -z "${with_multisubdir}"; then
4948    builddotdot=.
4949 else
4950    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4951 fi
4952
4953 NATIVE=yes
4954
4955 # Which gcj do we use?
4956 which_gcj=default
4957 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4958 if test -n "${with_cross_host}"; then
4959   # We are being configured with a cross compiler. We can't
4960   # use ac_exeext, because that is for the target platform.
4961   NATIVE=no
4962   cross_host_exeext=
4963   case "${with_cross_host}" in
4964      *mingw* | *cygwin*)
4965          cross_host_exeext=.exe
4966      ;;
4967   esac
4968   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4969      if test x"$build_noncanonical" = x"$with_cross_host"; then
4970         # Ordinary cross (host!=target and host=build)
4971         which_gcj=built
4972      else
4973         # Canadian cross (host!=target and host!=build)
4974         which_gcj=cross
4975      fi
4976   else
4977      which_gcj=cross
4978   fi
4979 else
4980   # We are being configured with a native or crossed-native compiler
4981   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4982      if test x"$build" = x"$host"; then
4983         # True native build (host=target and host=build)
4984         which_gcj=built
4985      else
4986         # Crossed-native build (host=target and host!=build)
4987         which_gcj=cross
4988      fi
4989   else
4990      which_gcj=path
4991   fi
4992 fi
4993 case "${which_gcj}" in
4994    built)
4995       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4996       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4997    ;;
4998    cross)
4999       if test "x${with_newlib}" = "xyes"; then
5000          # FIXME (comment): Why is this needed?
5001          GCC_UNWIND_INCLUDE=
5002          GCJ="${target_noncanonical}-gcj"
5003       else
5004          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5005       fi
5006       GCJH='$(target_noncanonical)-gcjh'
5007    ;;
5008    path)
5009       GCJ="gcj -B`${PWDCMD-pwd}`/"
5010       GCJH=gcjh
5011    ;;
5012 esac
5013
5014
5015
5016 # Create it, so that compile/link tests don't fail
5017 test -f libgcj.spec || touch libgcj.spec
5018
5019
5020
5021 # Set up to configure Classpath.
5022 # FIXME: no supported way to pass args in autoconf.
5023 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5024 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5025 ac_configure_args="$ac_configure_args --disable-load-library"
5026 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5027 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5028 dir1=`cd $srcdir && pwd`
5029 dir2=`pwd`
5030 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5031 ac_configure_args="$ac_configure_args --disable-core-jni"
5032 ac_configure_args="$ac_configure_args --disable-examples"
5033 ac_configure_args="$ac_configure_args --with-glibj=build"
5034 if test "$plugin_enabled" != yes; then
5035   ac_configure_args="$ac_configure_args --disable-plugin"
5036 fi
5037 if test "$use_gtk_awt" != yes; then
5038   ac_configure_args="$ac_configure_args --disable-gtk-peer"
5039 fi
5040 if test "$use_qt_awt" != yes; then
5041   ac_configure_args="$ac_configure_args --disable-qt-peer"
5042 else
5043   # We need this as qt is disabled by default in classpath.
5044   ac_configure_args="$ac_configure_args --enable-qt-peer"
5045 fi
5046
5047 # Only use libltdl for non-newlib builds.
5048 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5049      case $enable_ltdl_convenience in
5050   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5051 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5052    { (exit 1); exit 1; }; } ;;
5053   "") enable_ltdl_convenience=yes
5054       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5055   esac
5056   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5057   INCLTDL='-I${top_srcdir}/''libltdl'
5058
5059
5060    DIRLTDL=libltdl
5061
5062 cat >>confdefs.h <<\_ACEOF
5063 #define USE_LTDL 1
5064 _ACEOF
5065
5066    # Sigh.  Libtool's macro doesn't do the right thing.
5067    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5068    # FIXME: this is a hack.
5069    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5070    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5071 fi
5072
5073
5074
5075 # Check whether --enable-shared or --disable-shared was given.
5076 if test "${enable_shared+set}" = set; then
5077   enableval="$enable_shared"
5078   p=${PACKAGE-default}
5079 case $enableval in
5080 yes) enable_shared=yes ;;
5081 no) enable_shared=no ;;
5082 *)
5083   enable_shared=no
5084   # Look at the argument we got.  We use all the common list separators.
5085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5086   for pkg in $enableval; do
5087     if test "X$pkg" = "X$p"; then
5088       enable_shared=yes
5089     fi
5090   done
5091   IFS="$ac_save_ifs"
5092   ;;
5093 esac
5094 else
5095   enable_shared=yes
5096 fi;
5097 # Check whether --enable-static or --disable-static was given.
5098 if test "${enable_static+set}" = set; then
5099   enableval="$enable_static"
5100   p=${PACKAGE-default}
5101 case $enableval in
5102 yes) enable_static=yes ;;
5103 no) enable_static=no ;;
5104 *)
5105   enable_static=no
5106   # Look at the argument we got.  We use all the common list separators.
5107   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5108   for pkg in $enableval; do
5109     if test "X$pkg" = "X$p"; then
5110       enable_static=yes
5111     fi
5112   done
5113   IFS="$ac_save_ifs"
5114   ;;
5115 esac
5116 else
5117   enable_static=yes
5118 fi;
5119 # Check whether --enable-fast-install or --disable-fast-install was given.
5120 if test "${enable_fast_install+set}" = set; then
5121   enableval="$enable_fast_install"
5122   p=${PACKAGE-default}
5123 case $enableval in
5124 yes) enable_fast_install=yes ;;
5125 no) enable_fast_install=no ;;
5126 *)
5127   enable_fast_install=no
5128   # Look at the argument we got.  We use all the common list separators.
5129   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5130   for pkg in $enableval; do
5131     if test "X$pkg" = "X$p"; then
5132       enable_fast_install=yes
5133     fi
5134   done
5135   IFS="$ac_save_ifs"
5136   ;;
5137 esac
5138 else
5139   enable_fast_install=yes
5140 fi;
5141
5142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5143 if test "${with_gnu_ld+set}" = set; then
5144   withval="$with_gnu_ld"
5145   test "$withval" = no || with_gnu_ld=yes
5146 else
5147   with_gnu_ld=no
5148 fi;
5149 ac_prog=ld
5150 if test "$GCC" = yes; then
5151   # Check if gcc -print-prog-name=ld gives a path.
5152   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5153 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5154   case $host in
5155   *-*-mingw*)
5156     # gcc leaves a trailing carriage return which upsets mingw
5157     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5158   *)
5159     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5160   esac
5161   case $ac_prog in
5162     # Accept absolute paths.
5163     [\\/]* | [A-Za-z]:[\\/]*)
5164       re_direlt='/[^/][^/]*/\.\./'
5165       # Canonicalize the path of ld
5166       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5167       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5168         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5169       done
5170       test -z "$LD" && LD="$ac_prog"
5171       ;;
5172   "")
5173     # If it fails, then pretend we aren't using GCC.
5174     ac_prog=ld
5175     ;;
5176   *)
5177     # If it is relative, then search for the first ld in PATH.
5178     with_gnu_ld=unknown
5179     ;;
5180   esac
5181 elif test "$with_gnu_ld" = yes; then
5182   echo "$as_me:$LINENO: checking for GNU ld" >&5
5183 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5184 else
5185   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5186 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5187 fi
5188 if test "${lt_cv_path_LD+set}" = set; then
5189   echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191   if test -z "$LD"; then
5192   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5193   for ac_dir in $PATH; do
5194     test -z "$ac_dir" && ac_dir=.
5195     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5196       lt_cv_path_LD="$ac_dir/$ac_prog"
5197       # Check to see if the program is GNU ld.  I'd rather use --version,
5198       # but apparently some GNU ld's only accept -v.
5199       # Break only if it was the GNU/non-GNU ld that we prefer.
5200       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5201         test "$with_gnu_ld" != no && break
5202       else
5203         test "$with_gnu_ld" != yes && break
5204       fi
5205     fi
5206   done
5207   IFS="$ac_save_ifs"
5208 else
5209   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5210 fi
5211 fi
5212
5213 LD="$lt_cv_path_LD"
5214 if test -n "$LD"; then
5215   echo "$as_me:$LINENO: result: $LD" >&5
5216 echo "${ECHO_T}$LD" >&6
5217 else
5218   echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6
5220 fi
5221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5223    { (exit 1); exit 1; }; }
5224 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5226 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5230 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5231   lt_cv_prog_gnu_ld=yes
5232 else
5233   lt_cv_prog_gnu_ld=no
5234 fi
5235 fi
5236 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5237 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5238 with_gnu_ld=$lt_cv_prog_gnu_ld
5239
5240
5241 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5242 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5243 if test "${lt_cv_ld_reload_flag+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   lt_cv_ld_reload_flag='-r'
5247 fi
5248 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5249 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5250 reload_flag=$lt_cv_ld_reload_flag
5251 test -n "$reload_flag" && reload_flag=" $reload_flag"
5252
5253 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5254 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5255 if test "${lt_cv_path_NM+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   if test -n "$NM"; then
5259   # Let the user override the test.
5260   lt_cv_path_NM="$NM"
5261 else
5262   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5263   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5264     test -z "$ac_dir" && ac_dir=.
5265     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5266     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5267       # Check to see if the nm accepts a BSD-compat flag.
5268       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5269       #   nm: unknown option "B" ignored
5270       # Tru64's nm complains that /dev/null is an invalid object file
5271       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5272         lt_cv_path_NM="$tmp_nm -B"
5273         break
5274       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5275         lt_cv_path_NM="$tmp_nm -p"
5276         break
5277       else
5278         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5279         continue # so that we can try to find one that supports BSD flags
5280       fi
5281     fi
5282   done
5283   IFS="$ac_save_ifs"
5284   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5285 fi
5286 fi
5287
5288 NM="$lt_cv_path_NM"
5289 echo "$as_me:$LINENO: result: $NM" >&5
5290 echo "${ECHO_T}$NM" >&6
5291
5292 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5293 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5294 if test "${lt_cv_deplibs_check_method+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297   lt_cv_file_magic_cmd='$MAGIC_CMD'
5298 lt_cv_file_magic_test_file=
5299 lt_cv_deplibs_check_method='unknown'
5300 # Need to set the preceding variable on all platforms that support
5301 # interlibrary dependencies.
5302 # 'none' -- dependencies not supported.
5303 # `unknown' -- same as none, but documents that we really don't know.
5304 # 'pass_all' -- all dependencies passed with no checks.
5305 # 'test_compile' -- check by making test program.
5306 # 'file_magic [regex]' -- check by looking for files in library path
5307 # which responds to the $file_magic_cmd with a given egrep regex.
5308 # If you have `file' or equivalent on your system and you're not sure
5309 # whether `pass_all' will *always* work, you probably want this one.
5310
5311 case $host_os in
5312 aix*)
5313   lt_cv_deplibs_check_method=pass_all
5314   ;;
5315
5316 beos*)
5317   lt_cv_deplibs_check_method=pass_all
5318   ;;
5319
5320 bsdi4*)
5321   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5322   lt_cv_file_magic_cmd='/usr/bin/file -L'
5323   lt_cv_file_magic_test_file=/shlib/libc.so
5324   ;;
5325
5326 cygwin* | mingw* |pw32*)
5327   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5328   lt_cv_file_magic_cmd='$OBJDUMP -f'
5329   ;;
5330
5331 darwin* | rhapsody*)
5332   # this will be overwritten by pass_all, but leave it in just in case
5333   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5334   lt_cv_file_magic_cmd='/usr/bin/file -L'
5335   case "$host_os" in
5336   rhapsody* | darwin1.012)
5337     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5338     ;;
5339   *) # Darwin 1.3 on
5340     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5341     ;;
5342   esac
5343   lt_cv_deplibs_check_method=pass_all
5344   ;;
5345
5346 freebsd* | kfreebsd*-gnu)
5347   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5348     case $host_cpu in
5349     i*86 )
5350       # Not sure whether the presence of OpenBSD here was a mistake.
5351       # Let's accept both of them until this is cleared up.
5352       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5353       lt_cv_file_magic_cmd=/usr/bin/file
5354       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5355       ;;
5356     esac
5357   else
5358     lt_cv_deplibs_check_method=pass_all
5359   fi
5360   ;;
5361
5362 gnu*)
5363   lt_cv_deplibs_check_method=pass_all
5364   ;;
5365
5366 hpux10.20*|hpux11*)
5367   case $host_cpu in
5368   hppa*)
5369     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5370     lt_cv_file_magic_cmd=/usr/bin/file
5371     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5372     ;;
5373   ia64*)
5374     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5375     lt_cv_file_magic_cmd=/usr/bin/file
5376     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5377     ;;
5378   esac
5379   ;;
5380
5381 irix5* | irix6*)
5382   case $host_os in
5383   irix5*)
5384     # this will be overridden with pass_all, but let us keep it just in case
5385     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5386     ;;
5387   *)
5388     case $LD in
5389     *-32|*"-32 ") libmagic=32-bit;;
5390     *-n32|*"-n32 ") libmagic=N32;;
5391     *-64|*"-64 ") libmagic=64-bit;;
5392     *) libmagic=never-match;;
5393     esac
5394     # this will be overridden with pass_all, but let us keep it just in case
5395     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5396     ;;
5397   esac
5398   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5399   lt_cv_deplibs_check_method=pass_all
5400   ;;
5401
5402 # This must be Linux ELF.
5403 linux-gnu*)
5404   lt_cv_deplibs_check_method=pass_all
5405   ;;
5406
5407 netbsd* | knetbsd*-gnu)
5408   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5409     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5410   else
5411     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5412   fi
5413   ;;
5414
5415 newsos6)
5416   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5417   lt_cv_file_magic_cmd=/usr/bin/file
5418   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5419   ;;
5420
5421 osf3* | osf4* | osf5*)
5422   # this will be overridden with pass_all, but let us keep it just in case
5423   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5424   lt_cv_file_magic_test_file=/shlib/libc.so
5425   lt_cv_deplibs_check_method=pass_all
5426   ;;
5427
5428 sco3.2v5*)
5429   lt_cv_deplibs_check_method=pass_all
5430   ;;
5431
5432 solaris*)
5433   lt_cv_deplibs_check_method=pass_all
5434   lt_cv_file_magic_test_file=/lib/libc.so
5435   ;;
5436
5437 sysv5uw[78]* | sysv4*uw2*)
5438   lt_cv_deplibs_check_method=pass_all
5439   ;;
5440
5441 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5442   case $host_vendor in
5443   ncr)
5444     lt_cv_deplibs_check_method=pass_all
5445     ;;
5446   motorola)
5447     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]'
5448     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5449     ;;
5450   esac
5451   ;;
5452 esac
5453
5454 fi
5455 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5456 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5457 file_magic_cmd=$lt_cv_file_magic_cmd
5458 deplibs_check_method=$lt_cv_deplibs_check_method
5459
5460
5461
5462
5463 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5464
5465 # find the maximum length of command line arguments
5466 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5467 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5468 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471     i=0
5472   teststring="ABCD"
5473
5474   case $build_os in
5475   msdosdjgpp*)
5476     # On DJGPP, this test can blow up pretty badly due to problems in libc
5477     # (any single argument exceeding 2000 bytes causes a buffer overrun
5478     # during glob expansion).  Even if it were fixed, the result of this
5479     # check would be larger than it should be.
5480     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5481     ;;
5482
5483   cygwin* | mingw*)
5484     # On Win9x/ME, this test blows up -- it succeeds, but takes
5485     # about 5 minutes as the teststring grows exponentially.
5486     # Worse, since 9x/ME are not pre-emptively multitasking,
5487     # you end up with a "frozen" computer, even though with patience
5488     # the test eventually succeeds (with a max line length of 256k).
5489     # Instead, let's just punt: use the minimum linelength reported by
5490     # all of the supported platforms: 8192 (on NT/2K/XP).
5491     lt_cv_sys_max_cmd_len=8192;
5492     ;;
5493
5494   amigaos*)
5495     # On AmigaOS with pdksh, this test takes hours, literally.
5496     # So we just punt and use a minimum line length of 8192.
5497     lt_cv_sys_max_cmd_len=8192;
5498     ;;
5499
5500   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5501     # This has been around since 386BSD, at least.  Likely further.
5502     if test -x /sbin/sysctl; then
5503       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5504     elif test -x /usr/sbin/sysctl; then
5505       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5506     else
5507       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5508     fi
5509     # And add a safety zone
5510     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5511     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5512     ;;
5513   esac
5514
5515 fi
5516
5517 if test -n "$lt_cv_sys_max_cmd_len" ; then
5518   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5519 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5520 else
5521   echo "$as_me:$LINENO: result: none" >&5
5522 echo "${ECHO_T}none" >&6
5523 fi
5524
5525
5526 # Only perform the check for file, if the check method requires it
5527 case $deplibs_check_method in
5528 file_magic*)
5529   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5530     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5531 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5532 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5533   echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535   case $MAGIC_CMD in
5536   /*)
5537   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5538   ;;
5539   ?:/*)
5540   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5541   ;;
5542   *)
5543   ac_save_MAGIC_CMD="$MAGIC_CMD"
5544   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5545   ac_dummy="/usr/bin:$PATH"
5546   for ac_dir in $ac_dummy; do
5547     test -z "$ac_dir" && ac_dir=.
5548     if test -f $ac_dir/${ac_tool_prefix}file; then
5549       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5550       if test -n "$file_magic_test_file"; then
5551         case $deplibs_check_method in
5552         "file_magic "*)
5553           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5554           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5555           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5556             egrep "$file_magic_regex" > /dev/null; then
5557             :
5558           else
5559             cat <<EOF 1>&2
5560
5561 *** Warning: the command libtool uses to detect shared libraries,
5562 *** $file_magic_cmd, produces output that libtool cannot recognize.
5563 *** The result is that libtool may fail to recognize shared libraries
5564 *** as such.  This will affect the creation of libtool libraries that
5565 *** depend on shared libraries, but programs linked with such libtool
5566 *** libraries will work regardless of this problem.  Nevertheless, you
5567 *** may want to report the problem to your system manager and/or to
5568 *** bug-libtool@gnu.org
5569
5570 EOF
5571           fi ;;
5572         esac
5573       fi
5574       break
5575     fi
5576   done
5577   IFS="$ac_save_ifs"
5578   MAGIC_CMD="$ac_save_MAGIC_CMD"
5579   ;;
5580 esac
5581 fi
5582
5583 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5584 if test -n "$MAGIC_CMD"; then
5585   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5586 echo "${ECHO_T}$MAGIC_CMD" >&6
5587 else
5588   echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590 fi
5591
5592 if test -z "$lt_cv_path_MAGIC_CMD"; then
5593   if test -n "$ac_tool_prefix"; then
5594     echo "$as_me:$LINENO: checking for file" >&5
5595 echo $ECHO_N "checking for file... $ECHO_C" >&6
5596 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5597   echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599   case $MAGIC_CMD in
5600   /*)
5601   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5602   ;;
5603   ?:/*)
5604   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5605   ;;
5606   *)
5607   ac_save_MAGIC_CMD="$MAGIC_CMD"
5608   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5609   ac_dummy="/usr/bin:$PATH"
5610   for ac_dir in $ac_dummy; do
5611     test -z "$ac_dir" && ac_dir=.
5612     if test -f $ac_dir/file; then
5613       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5614       if test -n "$file_magic_test_file"; then
5615         case $deplibs_check_method in
5616         "file_magic "*)
5617           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5618           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5619           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5620             egrep "$file_magic_regex" > /dev/null; then
5621             :
5622           else
5623             cat <<EOF 1>&2
5624
5625 *** Warning: the command libtool uses to detect shared libraries,
5626 *** $file_magic_cmd, produces output that libtool cannot recognize.
5627 *** The result is that libtool may fail to recognize shared libraries
5628 *** as such.  This will affect the creation of libtool libraries that
5629 *** depend on shared libraries, but programs linked with such libtool
5630 *** libraries will work regardless of this problem.  Nevertheless, you
5631 *** may want to report the problem to your system manager and/or to
5632 *** bug-libtool@gnu.org
5633
5634 EOF
5635           fi ;;
5636         esac
5637       fi
5638       break
5639     fi
5640   done
5641   IFS="$ac_save_ifs"
5642   MAGIC_CMD="$ac_save_MAGIC_CMD"
5643   ;;
5644 esac
5645 fi
5646
5647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5648 if test -n "$MAGIC_CMD"; then
5649   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5650 echo "${ECHO_T}$MAGIC_CMD" >&6
5651 else
5652   echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5654 fi
5655
5656   else
5657     MAGIC_CMD=:
5658   fi
5659 fi
5660
5661   fi
5662   ;;
5663 esac
5664
5665 if test -n "$ac_tool_prefix"; then
5666   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5667 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_RANLIB+set}" = set; then
5671   echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673   if test -n "$RANLIB"; then
5674   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679   IFS=$as_save_IFS
5680   test -z "$as_dir" && as_dir=.
5681   for ac_exec_ext in '' $ac_executable_extensions; do
5682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685     break 2
5686   fi
5687 done
5688 done
5689
5690 fi
5691 fi
5692 RANLIB=$ac_cv_prog_RANLIB
5693 if test -n "$RANLIB"; then
5694   echo "$as_me:$LINENO: result: $RANLIB" >&5
5695 echo "${ECHO_T}$RANLIB" >&6
5696 else
5697   echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6
5699 fi
5700
5701 fi
5702 if test -z "$ac_cv_prog_RANLIB"; then
5703   ac_ct_RANLIB=$RANLIB
5704   # Extract the first word of "ranlib", so it can be a program name with args.
5705 set dummy ranlib; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   if test -n "$ac_ct_RANLIB"; then
5712   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5713 else
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719   for ac_exec_ext in '' $ac_executable_extensions; do
5720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721     ac_cv_prog_ac_ct_RANLIB="ranlib"
5722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726 done
5727
5728   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5729 fi
5730 fi
5731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5732 if test -n "$ac_ct_RANLIB"; then
5733   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5734 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5735 else
5736   echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5738 fi
5739
5740   RANLIB=$ac_ct_RANLIB
5741 else
5742   RANLIB="$ac_cv_prog_RANLIB"
5743 fi
5744
5745 if test -n "$ac_tool_prefix"; then
5746   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5747 set dummy ${ac_tool_prefix}strip; ac_word=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_prog_STRIP+set}" = set; then
5751   echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753   if test -n "$STRIP"; then
5754   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759   IFS=$as_save_IFS
5760   test -z "$as_dir" && as_dir=.
5761   for ac_exec_ext in '' $ac_executable_extensions; do
5762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765     break 2
5766   fi
5767 done
5768 done
5769
5770 fi
5771 fi
5772 STRIP=$ac_cv_prog_STRIP
5773 if test -n "$STRIP"; then
5774   echo "$as_me:$LINENO: result: $STRIP" >&5
5775 echo "${ECHO_T}$STRIP" >&6
5776 else
5777   echo "$as_me:$LINENO: result: no" >&5
5778 echo "${ECHO_T}no" >&6
5779 fi
5780
5781 fi
5782 if test -z "$ac_cv_prog_STRIP"; then
5783   ac_ct_STRIP=$STRIP
5784   # Extract the first word of "strip", so it can be a program name with args.
5785 set dummy strip; ac_word=$2
5786 echo "$as_me:$LINENO: checking for $ac_word" >&5
5787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5788 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   if test -n "$ac_ct_STRIP"; then
5792   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797   IFS=$as_save_IFS
5798   test -z "$as_dir" && as_dir=.
5799   for ac_exec_ext in '' $ac_executable_extensions; do
5800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5801     ac_cv_prog_ac_ct_STRIP="strip"
5802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5803     break 2
5804   fi
5805 done
5806 done
5807
5808   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5809 fi
5810 fi
5811 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5812 if test -n "$ac_ct_STRIP"; then
5813   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5814 echo "${ECHO_T}$ac_ct_STRIP" >&6
5815 else
5816   echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5818 fi
5819
5820   STRIP=$ac_ct_STRIP
5821 else
5822   STRIP="$ac_cv_prog_STRIP"
5823 fi
5824
5825
5826 # Check for any special flags to pass to ltconfig.
5827 libtool_flags="--cache-file=$cache_file"
5828 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5829 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5830 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5831 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5832 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5833
5834
5835 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5836 if test "${enable_libtool_lock+set}" = set; then
5837   enableval="$enable_libtool_lock"
5838
5839 fi;
5840 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5841 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5842
5843
5844 # Check whether --with-pic or --without-pic was given.
5845 if test "${with_pic+set}" = set; then
5846   withval="$with_pic"
5847   pic_mode="$withval"
5848 else
5849   pic_mode=default
5850 fi;
5851 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5852 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5853
5854 # Some flags need to be propagated to the compiler or linker for good
5855 # libtool support.
5856 case $host in
5857 *-*-irix6*)
5858   # Find out which ABI we are using.
5859   echo '#line 5859 "configure"' > conftest.$ac_ext
5860   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5861   (eval $ac_compile) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; then
5865    if test "$lt_cv_prog_gnu_ld" = yes; then
5866     case `/usr/bin/file conftest.$ac_objext` in
5867     *32-bit*)
5868       LD="${LD-ld} -melf32bsmip"
5869       ;;
5870     *N32*)
5871       LD="${LD-ld} -melf32bmipn32"
5872       ;;
5873     *64-bit*)
5874       LD="${LD-ld} -melf64bmip"
5875       ;;
5876     esac
5877    else
5878     case `/usr/bin/file conftest.$ac_objext` in
5879     *32-bit*)
5880       LD="${LD-ld} -32"
5881       ;;
5882     *N32*)
5883       LD="${LD-ld} -n32"
5884       ;;
5885     *64-bit*)
5886       LD="${LD-ld} -64"
5887       ;;
5888     esac
5889    fi
5890   fi
5891   rm -rf conftest*
5892   ;;
5893
5894 ia64-*-hpux*)
5895   # Find out which ABI we are using.
5896   echo 'int i;' > conftest.$ac_ext
5897   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5898   (eval $ac_compile) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; then
5902     case "`/usr/bin/file conftest.o`" in
5903     *ELF-32*)
5904       HPUX_IA64_MODE="32"
5905       ;;
5906     *ELF-64*)
5907       HPUX_IA64_MODE="64"
5908       ;;
5909     esac
5910   fi
5911   rm -rf conftest*
5912   ;;
5913
5914 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5915   # Find out which ABI we are using.
5916   echo 'int i;' > conftest.$ac_ext
5917   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918   (eval $ac_compile) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; then
5922     case "`/usr/bin/file conftest.o`" in
5923     *32-bit*)
5924       case $host in
5925         x86_64-*linux*)
5926           LD="${LD-ld} -m elf_i386"
5927           ;;
5928         ppc64-*linux*|powerpc64-*linux*)
5929           LD="${LD-ld} -m elf32ppclinux"
5930           ;;
5931         s390x-*linux*)
5932           LD="${LD-ld} -m elf_s390"
5933           ;;
5934         sparc64-*linux*)
5935           LD="${LD-ld} -m elf32_sparc"
5936           ;;
5937       esac
5938       ;;
5939     *64-bit*)
5940       case $host in
5941         x86_64-*linux*)
5942           LD="${LD-ld} -m elf_x86_64"
5943           ;;
5944         ppc*-*linux*|powerpc*-*linux*)
5945           LD="${LD-ld} -m elf64ppc"
5946           ;;
5947         s390*-*linux*)
5948           LD="${LD-ld} -m elf64_s390"
5949           ;;
5950         sparc*-*linux*)
5951           LD="${LD-ld} -m elf64_sparc"
5952           ;;
5953       esac
5954       ;;
5955     esac
5956   fi
5957   rm -rf conftest*
5958   ;;
5959
5960 *-*-sco3.2v5*)
5961   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5962   SAVE_CFLAGS="$CFLAGS"
5963   CFLAGS="$CFLAGS -belf"
5964   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5965 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5966 if test "${lt_cv_cc_needs_belf+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969
5970
5971      ac_ext=c
5972 ac_cpp='$CPP $CPPFLAGS'
5973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5976
5977      if test x$gcc_no_link = xyes; then
5978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5980    { (exit 1); exit 1; }; }
5981 fi
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988
5989 int
5990 main ()
5991 {
5992
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"
6007                          || test ! -s conftest.err'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; } &&
6013          { ac_try='test -s conftest$ac_exeext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   lt_cv_cc_needs_belf=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 lt_cv_cc_needs_belf=no
6025 fi
6026 rm -f conftest.err conftest.$ac_objext \
6027       conftest$ac_exeext conftest.$ac_ext
6028      ac_ext=c
6029 ac_cpp='$CPP $CPPFLAGS'
6030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033
6034 fi
6035 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6036 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6037   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6038     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6039     CFLAGS="$SAVE_CFLAGS"
6040   fi
6041   ;;
6042
6043
6044 esac
6045
6046
6047 # Save cache, so that ltconfig can load it
6048 cat >confcache <<\_ACEOF
6049 # This file is a shell script that caches the results of configure
6050 # tests run on this system so they can be shared between configure
6051 # scripts and configure runs, see configure's option --config-cache.
6052 # It is not useful on other systems.  If it contains results you don't
6053 # want to keep, you may remove or edit it.
6054 #
6055 # config.status only pays attention to the cache file if you give it
6056 # the --recheck option to rerun configure.
6057 #
6058 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6059 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6060 # following values.
6061
6062 _ACEOF
6063
6064 # The following way of writing the cache mishandles newlines in values,
6065 # but we know of no workaround that is simple, portable, and efficient.
6066 # So, don't put newlines in cache variables' values.
6067 # Ultrix sh set writes to stderr and can't be redirected directly,
6068 # and sets the high bit in the cache file unless we assign to the vars.
6069 {
6070   (set) 2>&1 |
6071     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6072     *ac_space=\ *)
6073       # `set' does not quote correctly, so add quotes (double-quote
6074       # substitution turns \\\\ into \\, and sed turns \\ into \).
6075       sed -n \
6076         "s/'/'\\\\''/g;
6077           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6078       ;;
6079     *)
6080       # `set' quotes correctly as required by POSIX, so do not add quotes.
6081       sed -n \
6082         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6083       ;;
6084     esac;
6085 } |
6086   sed '
6087      t clear
6088      : clear
6089      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6090      t end
6091      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6092      : end' >>confcache
6093 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6094   if test -w $cache_file; then
6095     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6096     cat confcache >$cache_file
6097   else
6098     echo "not updating unwritable cache $cache_file"
6099   fi
6100 fi
6101 rm -f confcache
6102
6103 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6104 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6105 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6106 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6107 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6108 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6109 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6110 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6111 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6112 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6113 echo "$as_me: error: libtool configure failed" >&2;}
6114    { (exit 1); exit 1; }; }
6115
6116 # Reload cache, that may have been modified by ltconfig
6117 if test -r "$cache_file"; then
6118   # Some versions of bash will fail to source /dev/null (special
6119   # files actually), so we avoid doing that.
6120   if test -f "$cache_file"; then
6121     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6122 echo "$as_me: loading cache $cache_file" >&6;}
6123     case $cache_file in
6124       [\\/]* | ?:[\\/]* ) . $cache_file;;
6125       *)                      . ./$cache_file;;
6126     esac
6127   fi
6128 else
6129   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6130 echo "$as_me: creating cache $cache_file" >&6;}
6131   >$cache_file
6132 fi
6133
6134
6135 # This can be used to rebuild libtool when needed
6136 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6137
6138 # Always use our own libtool.
6139 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6140
6141 # Redirect the config.log output again, so that the ltconfig log is not
6142 # clobbered by the next message.
6143 exec 5>>./config.log
6144
6145 ac_ext=cc
6146 ac_cpp='$CXXCPP $CPPFLAGS'
6147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6150 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6151 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6152 if test -z "$CXXCPP"; then
6153   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156       # Double quotes because CXXCPP needs to be expanded
6157     for CXXCPP in "$CXX -E" "/lib/cpp"
6158     do
6159       ac_preproc_ok=false
6160 for ac_cxx_preproc_warn_flag in '' yes
6161 do
6162   # Use a header file that comes with gcc, so configuring glibc
6163   # with a fresh cross-compiler works.
6164   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6165   # <limits.h> exists even on freestanding compilers.
6166   # On the NeXT, cc -E runs the code through the compiler's parser,
6167   # not just through cpp. "Syntax error" is here to catch this case.
6168   cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #ifdef __STDC__
6175 # include <limits.h>
6176 #else
6177 # include <assert.h>
6178 #endif
6179                      Syntax error
6180 _ACEOF
6181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } >/dev/null; then
6189   if test -s conftest.err; then
6190     ac_cpp_err=$ac_cxx_preproc_warn_flag
6191     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6192   else
6193     ac_cpp_err=
6194   fi
6195 else
6196   ac_cpp_err=yes
6197 fi
6198 if test -z "$ac_cpp_err"; then
6199   :
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204   # Broken: fails on valid input.
6205 continue
6206 fi
6207 rm -f conftest.err conftest.$ac_ext
6208
6209   # OK, works on sane cases.  Now check whether non-existent headers
6210   # can be detected and how.
6211   cat >conftest.$ac_ext <<_ACEOF
6212 /* confdefs.h.  */
6213 _ACEOF
6214 cat confdefs.h >>conftest.$ac_ext
6215 cat >>conftest.$ac_ext <<_ACEOF
6216 /* end confdefs.h.  */
6217 #include <ac_nonexistent.h>
6218 _ACEOF
6219 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6220   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6221   ac_status=$?
6222   grep -v '^ *+' conftest.er1 >conftest.err
6223   rm -f conftest.er1
6224   cat conftest.err >&5
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); } >/dev/null; then
6227   if test -s conftest.err; then
6228     ac_cpp_err=$ac_cxx_preproc_warn_flag
6229     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6230   else
6231     ac_cpp_err=
6232   fi
6233 else
6234   ac_cpp_err=yes
6235 fi
6236 if test -z "$ac_cpp_err"; then
6237   # Broken: success on invalid input.
6238 continue
6239 else
6240   echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243   # Passes both tests.
6244 ac_preproc_ok=:
6245 break
6246 fi
6247 rm -f conftest.err conftest.$ac_ext
6248
6249 done
6250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6251 rm -f conftest.err conftest.$ac_ext
6252 if $ac_preproc_ok; then
6253   break
6254 fi
6255
6256     done
6257     ac_cv_prog_CXXCPP=$CXXCPP
6258
6259 fi
6260   CXXCPP=$ac_cv_prog_CXXCPP
6261 else
6262   ac_cv_prog_CXXCPP=$CXXCPP
6263 fi
6264 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6265 echo "${ECHO_T}$CXXCPP" >&6
6266 ac_preproc_ok=false
6267 for ac_cxx_preproc_warn_flag in '' yes
6268 do
6269   # Use a header file that comes with gcc, so configuring glibc
6270   # with a fresh cross-compiler works.
6271   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6272   # <limits.h> exists even on freestanding compilers.
6273   # On the NeXT, cc -E runs the code through the compiler's parser,
6274   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
6282 # include <limits.h>
6283 #else
6284 # include <assert.h>
6285 #endif
6286                      Syntax error
6287 _ACEOF
6288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6290   ac_status=$?
6291   grep -v '^ *+' conftest.er1 >conftest.err
6292   rm -f conftest.er1
6293   cat conftest.err >&5
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } >/dev/null; then
6296   if test -s conftest.err; then
6297     ac_cpp_err=$ac_cxx_preproc_warn_flag
6298     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6299   else
6300     ac_cpp_err=
6301   fi
6302 else
6303   ac_cpp_err=yes
6304 fi
6305 if test -z "$ac_cpp_err"; then
6306   :
6307 else
6308   echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311   # Broken: fails on valid input.
6312 continue
6313 fi
6314 rm -f conftest.err conftest.$ac_ext
6315
6316   # OK, works on sane cases.  Now check whether non-existent headers
6317   # can be detected and how.
6318   cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h.  */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h.  */
6324 #include <ac_nonexistent.h>
6325 _ACEOF
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6328   ac_status=$?
6329   grep -v '^ *+' conftest.er1 >conftest.err
6330   rm -f conftest.er1
6331   cat conftest.err >&5
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } >/dev/null; then
6334   if test -s conftest.err; then
6335     ac_cpp_err=$ac_cxx_preproc_warn_flag
6336     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6337   else
6338     ac_cpp_err=
6339   fi
6340 else
6341   ac_cpp_err=yes
6342 fi
6343 if test -z "$ac_cpp_err"; then
6344   # Broken: success on invalid input.
6345 continue
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350   # Passes both tests.
6351 ac_preproc_ok=:
6352 break
6353 fi
6354 rm -f conftest.err conftest.$ac_ext
6355
6356 done
6357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6358 rm -f conftest.err conftest.$ac_ext
6359 if $ac_preproc_ok; then
6360   :
6361 else
6362   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6363 See \`config.log' for more details." >&5
6364 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6365 See \`config.log' for more details." >&2;}
6366    { (exit 1); exit 1; }; }
6367 fi
6368
6369 ac_ext=c
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6374
6375
6376
6377 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6378 lt_save_CC="$CC"
6379 lt_save_CFLAGS="$CFLAGS"
6380 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6381 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6382 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6383 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6384 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6385 deplibs_check_method="$deplibs_check_method" \
6386 file_magic_cmd="$file_magic_cmd" \
6387 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6388 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6389 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6390 echo "$as_me: error: libtool tag configuration failed" >&2;}
6391    { (exit 1); exit 1; }; }
6392 CC="$lt_save_CC"
6393 CFLAGS="$lt_save_CFLAGS"
6394
6395 # Redirect the config.log output again, so that the ltconfig log is not
6396 # clobbered by the next message.
6397 exec 5>>./config.log
6398
6399
6400
6401
6402
6403
6404
6405 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
6406 do
6407   # Extract the first word of "$ac_prog", so it can be a program name with args.
6408 set dummy $ac_prog; ac_word=$2
6409 echo "$as_me:$LINENO: checking for $ac_word" >&5
6410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411 if test "${ac_cv_prog_GCJ+set}" = set; then
6412   echo $ECHO_N "(cached) $ECHO_C" >&6
6413 else
6414   if test -n "$GCJ"; then
6415   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6419 do
6420   IFS=$as_save_IFS
6421   test -z "$as_dir" && as_dir=.
6422   for ac_exec_ext in '' $ac_executable_extensions; do
6423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424     ac_cv_prog_GCJ="$ac_prog"
6425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426     break 2
6427   fi
6428 done
6429 done
6430
6431 fi
6432 fi
6433 GCJ=$ac_cv_prog_GCJ
6434 if test -n "$GCJ"; then
6435   echo "$as_me:$LINENO: result: $GCJ" >&5
6436 echo "${ECHO_T}$GCJ" >&6
6437 else
6438   echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6440 fi
6441
6442   test -n "$GCJ" && break
6443 done
6444 test -n "$GCJ" || GCJ="gcj"
6445
6446 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6447 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6448    { (exit 1); exit 1; }; }
6449 if test "x${GCJFLAGS-unset}" = xunset; then
6450    GCJFLAGS="-g -O2"
6451 fi
6452
6453
6454 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6455
6456 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6457 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6458 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6462   # We make a subdir and do the tests there.  Otherwise we can end up
6463   # making bogus files that we don't know about and never remove.  For
6464   # instance it was reported that on HP-UX the gcc test will end up
6465   # making a dummy file named `D' -- because `-MD' means `put the output
6466   # in D'.
6467   mkdir conftest.dir
6468   # Copy depcomp to subdir because otherwise we won't find it if we're
6469   # using a relative directory.
6470   cp "$am_depcomp" conftest.dir
6471   cd conftest.dir
6472   # We will build objects and dependencies in a subdirectory because
6473   # it helps to detect inapplicable dependency modes.  For instance
6474   # both Tru64's cc and ICC support -MD to output dependencies as a
6475   # side effect of compilation, but ICC will put the dependencies in
6476   # the current directory while Tru64 will put them in the object
6477   # directory.
6478   mkdir sub
6479
6480   am_cv_GCJ_dependencies_compiler_type=none
6481   if test "$am_compiler_list" = ""; then
6482      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6483   fi
6484   for depmode in $am_compiler_list; do
6485     # Setup a source with many dependencies, because some compilers
6486     # like to wrap large dependency lists on column 80 (with \), and
6487     # we should not choose a depcomp mode which is confused by this.
6488     #
6489     # We need to recreate these files for each test, as the compiler may
6490     # overwrite some of them when testing with obscure command lines.
6491     # This happens at least with the AIX C compiler.
6492     : > sub/conftest.c
6493     for i in 1 2 3 4 5 6; do
6494       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6495       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6496       # Solaris 8's {/usr,}/bin/sh.
6497       touch sub/conftst$i.h
6498     done
6499     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6500
6501     case $depmode in
6502     nosideeffect)
6503       # after this tag, mechanisms are not by side-effect, so they'll
6504       # only be used when explicitly requested
6505       if test "x$enable_dependency_tracking" = xyes; then
6506         continue
6507       else
6508         break
6509       fi
6510       ;;
6511     none) break ;;
6512     esac
6513     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6514     # mode.  It turns out that the SunPro C++ compiler does not properly
6515     # handle `-M -o', and we need to detect this.
6516     if depmode=$depmode \
6517        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6518        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6519        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6520          >/dev/null 2>conftest.err &&
6521        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6522        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6523        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6524       # icc doesn't choke on unknown options, it will just issue warnings
6525       # or remarks (even with -Werror).  So we grep stderr for any message
6526       # that says an option was ignored or not supported.
6527       # When given -MP, icc 7.0 and 7.1 complain thusly:
6528       #   icc: Command line warning: ignoring option '-M'; no argument required
6529       # The diagnosis changed in icc 8.0:
6530       #   icc: Command line remark: option '-MP' not supported
6531       if (grep 'ignoring option' conftest.err ||
6532           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6533         am_cv_GCJ_dependencies_compiler_type=$depmode
6534         break
6535       fi
6536     fi
6537   done
6538
6539   cd ..
6540   rm -rf conftest.dir
6541 else
6542   am_cv_GCJ_dependencies_compiler_type=none
6543 fi
6544
6545 fi
6546 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6547 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6548 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6549
6550
6551
6552 if
6553   test "x$enable_dependency_tracking" != xno \
6554   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6555   am__fastdepGCJ_TRUE=
6556   am__fastdepGCJ_FALSE='#'
6557 else
6558   am__fastdepGCJ_TRUE='#'
6559   am__fastdepGCJ_FALSE=
6560 fi
6561
6562
6563
6564
6565 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6566 lt_save_CC="$CC"
6567 lt_save_CFLAGS="$CFLAGS"
6568 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6569 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6570 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6571 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6572 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6573 deplibs_check_method="$deplibs_check_method" \
6574 file_magic_cmd="$file_magic_cmd" \
6575 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6576 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6577 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6578 echo "$as_me: error: libtool tag configuration failed" >&2;}
6579    { (exit 1); exit 1; }; }
6580 CC="$lt_save_CC"
6581 CFLAGS="$lt_save_CFLAGS"
6582
6583 # Redirect the config.log output again, so that the ltconfig log is not
6584 # clobbered by the next message.
6585 exec 5>>./config.log
6586
6587
6588
6589 if test "x$CC" != xcc; then
6590   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6591 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6592 else
6593   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6594 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6595 fi
6596 set dummy $CC; ac_cc=`echo $2 |
6597                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6598 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h.  */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h.  */
6607
6608 int
6609 main ()
6610 {
6611
6612   ;
6613   return 0;
6614 }
6615 _ACEOF
6616 # Make sure it works both with $CC and with simple cc.
6617 # We do the test twice because some compilers refuse to overwrite an
6618 # existing .o file with -o, though they will create one.
6619 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6620 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621   (eval $ac_try) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } &&
6625    test -f conftest.$ac_objext && { (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 then
6631   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6632   if test "x$CC" != xcc; then
6633     # Test first that cc exists at all.
6634     if { ac_try='cc -c conftest.$ac_ext >&5'
6635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636   (eval $ac_try) 2>&5
6637   ac_status=$?
6638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639   (exit $ac_status); }; }; then
6640       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6641       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642   (eval $ac_try) 2>&5
6643   ac_status=$?
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } &&
6646          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647   (eval $ac_try) 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); };
6651       then
6652         # cc works too.
6653         :
6654       else
6655         # cc exists but doesn't like -o.
6656         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6657       fi
6658     fi
6659   fi
6660 else
6661   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6662 fi
6663 rm -f conftest*
6664
6665 fi
6666 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6667   echo "$as_me:$LINENO: result: yes" >&5
6668 echo "${ECHO_T}yes" >&6
6669 else
6670   echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6
6672
6673 cat >>confdefs.h <<\_ACEOF
6674 #define NO_MINUS_C_MINUS_O 1
6675 _ACEOF
6676
6677 fi
6678
6679 # FIXME: we rely on the cache variable name because
6680 # there is no other way.
6681 set dummy $CC
6682 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6683 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6684    # Losing compiler, so override with the script.
6685    # FIXME: It is wrong to rewrite CC.
6686    # But if we don't then we get into trouble of one sort or another.
6687    # A longer-term fix would be to have automake use am__CC in this case,
6688    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6689    CC="$am_aux_dir/compile $CC"
6690 fi
6691
6692
6693
6694
6695 subdirs="$subdirs classpath libltdl"
6696
6697
6698 # The -no-testsuite modules omit the test subdir.
6699
6700
6701 if test -d $srcdir/testsuite; then
6702   TESTSUBDIR_TRUE=
6703   TESTSUBDIR_FALSE='#'
6704 else
6705   TESTSUBDIR_TRUE='#'
6706   TESTSUBDIR_FALSE=
6707 fi
6708
6709
6710 # Should the runtime set system properties by examining the
6711 # environment variable GCJ_PROPERTIES?
6712 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6713 if test "${enable_getenv_properties+set}" = set; then
6714   enableval="$enable_getenv_properties"
6715
6716 fi;
6717
6718 # Whether GCJ_PROPERTIES is used depends on the target.
6719 if test -z "$enable_getenv_properties"; then
6720    enable_getenv_properties=${enable_getenv_properties_default-yes}
6721 fi
6722 if test "$enable_getenv_properties" = no; then
6723
6724 cat >>confdefs.h <<\_ACEOF
6725 #define DISABLE_GETENV_PROPERTIES 1
6726 _ACEOF
6727
6728 fi
6729
6730 # Whether we should use arguments to main()
6731 if test -z "$enable_main_args"; then
6732    enable_main_args=${enable_main_args_default-yes}
6733 fi
6734 if test "$enable_main_args" = no; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define DISABLE_MAIN_ARGS 1
6738 _ACEOF
6739
6740 fi
6741
6742
6743 # Should we use hashtable-based synchronization?
6744 # Currently works only for Linux X86/ia64
6745 # Typically faster and more space-efficient
6746 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6747 if test "${enable_hash_synchronization+set}" = set; then
6748   enableval="$enable_hash_synchronization"
6749
6750 fi;
6751
6752 if test -z "$enable_hash_synchronization"; then
6753    enable_hash_synchronization=$enable_hash_synchronization_default
6754 fi
6755
6756
6757 # Check whether --with-java-home or --without-java-home was given.
6758 if test "${with_java_home+set}" = set; then
6759   withval="$with_java_home"
6760   JAVA_HOME="${withval}"
6761 else
6762   JAVA_HOME=""
6763 fi;
6764
6765
6766 if test ! -z "$JAVA_HOME"; then
6767   JAVA_HOME_SET_TRUE=
6768   JAVA_HOME_SET_FALSE='#'
6769 else
6770   JAVA_HOME_SET_TRUE='#'
6771   JAVA_HOME_SET_FALSE=
6772 fi
6773
6774
6775
6776 # What is the native OS API for MinGW?
6777
6778 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6779 if test "${with_win32_nlsapi+set}" = set; then
6780   withval="$with_win32_nlsapi"
6781   case "${withval}" in
6782   ansi) with_win32_nlsapi=ansi ;;
6783   unicows) with_win32_nlsapi=unicows ;;
6784   unicode) with_win32_nlsapi=unicode ;;
6785   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6786 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6787    { (exit 1); exit 1; }; } ;;
6788 esac
6789 else
6790   with_win32_nlsapi=ansi
6791 fi;
6792
6793 case "${with_win32_nlsapi}" in
6794   unicows | unicode)
6795
6796 cat >>confdefs.h <<\_ACEOF
6797 #define MINGW_LIBGCJ_UNICODE 1
6798 _ACEOF
6799
6800     ;;
6801 esac
6802
6803 # configure.host sets slow_pthread_self if the synchronization code should
6804 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6805 if test "${slow_pthread_self}" = "yes"; then
6806
6807 cat >>confdefs.h <<\_ACEOF
6808 #define SLOW_PTHREAD_SELF 1
6809 _ACEOF
6810
6811 fi
6812
6813 # Check for gc debugging.  This option is handled both here and in the GC.
6814 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6815 if test "${enable_gc_debug+set}" = set; then
6816   enableval="$enable_gc_debug"
6817    if test "$enable_gc_debug" = "yes"; then
6818
6819 cat >>confdefs.h <<\_ACEOF
6820 #define LIBGCJ_GC_DEBUG 1
6821 _ACEOF
6822
6823   fi
6824 fi;
6825
6826 # See if the user has the interpreter included.
6827 # Check whether --enable-interpreter or --disable-interpreter was given.
6828 if test "${enable_interpreter+set}" = set; then
6829   enableval="$enable_interpreter"
6830   if test "$enable_interpreter" = yes; then
6831     # This can also be set in configure.host.
6832     libgcj_interpreter=yes
6833   elif test "$enable_interpreter" = no; then
6834     libgcj_interpreter=no
6835   fi
6836 fi;
6837
6838 if test "$libgcj_interpreter" = yes; then
6839
6840 cat >>confdefs.h <<\_ACEOF
6841 #define INTERPRETER 1
6842 _ACEOF
6843
6844 fi
6845 INTERPRETER="$libgcj_interpreter"
6846
6847
6848 echo "$as_me:$LINENO: checking for exception model to use" >&5
6849 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6850 ac_ext=cc
6851 ac_cpp='$CXXCPP $CPPFLAGS'
6852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6855
6856 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6857 if test "${enable_sjlj_exceptions+set}" = set; then
6858   enableval="$enable_sjlj_exceptions"
6859   :
6860 else
6861   cat > conftest.$ac_ext << EOF
6862 #line 6862 "configure"
6863 struct S { ~S(); };
6864 void bar();
6865 void foo()
6866 {
6867   S s;
6868   bar();
6869 }
6870 EOF
6871 old_CXXFLAGS="$CXXFLAGS"
6872 CXXFLAGS=-S
6873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874   (eval $ac_compile) 2>&5
6875   ac_status=$?
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); }; then
6878   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6879     enable_sjlj_exceptions=yes
6880   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6881     enable_sjlj_exceptions=no
6882   fi
6883 fi
6884 CXXFLAGS="$old_CXXFLAGS"
6885 rm -f conftest*
6886 fi;
6887 if test x$enable_sjlj_exceptions = xyes; then
6888
6889 cat >>confdefs.h <<\_ACEOF
6890 #define SJLJ_EXCEPTIONS 1
6891 _ACEOF
6892
6893   ac_exception_model_name=sjlj
6894 elif test x$enable_sjlj_exceptions = xno; then
6895   ac_exception_model_name="call frame"
6896 else
6897   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6898 echo "$as_me: error: unable to detect exception model" >&2;}
6899    { (exit 1); exit 1; }; }
6900 fi
6901 ac_ext=c
6902 ac_cpp='$CPP $CPPFLAGS'
6903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906
6907 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6908 echo "${ECHO_T}$ac_exception_model_name" >&6
6909
6910 # If we are non using SJLJ exceptions, and this host does not have support
6911 # for unwinding from a signal handler, enable checked dereferences and divides.
6912 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6913   CHECKREFSPEC=-fcheck-references
6914   DIVIDESPEC=-fuse-divide-subroutine
6915   EXCEPTIONSPEC=
6916 fi
6917
6918 # See if the user wants to disable java.net.  This is the mildly
6919 # ugly way that we admit that target-side configuration sucks.
6920 # Check whether --enable-java-net or --disable-java-net was given.
6921 if test "${enable_java_net+set}" = set; then
6922   enableval="$enable_java_net"
6923
6924 fi;
6925
6926 # Whether java.net is built by default can depend on the target.
6927 if test -z "$enable_java_net"; then
6928    enable_java_net=${enable_java_net_default-yes}
6929 fi
6930 if test "$enable_java_net" = no; then
6931
6932 cat >>confdefs.h <<\_ACEOF
6933 #define DISABLE_JAVA_NET 1
6934 _ACEOF
6935
6936 fi
6937
6938 # See if the user wants to configure without libffi.  Some
6939 # architectures don't support it, and default values are set in
6940 # configure.host.
6941
6942 # Check whether --with-libffi or --without-libffi was given.
6943 if test "${with_libffi+set}" = set; then
6944   withval="$with_libffi"
6945   :
6946 else
6947   with_libffi=${with_libffi_default-yes}
6948 fi;
6949
6950 LIBFFI=
6951 LIBFFIINCS=
6952 if test "$with_libffi" != no; then
6953
6954 cat >>confdefs.h <<\_ACEOF
6955 #define USE_LIBFFI 1
6956 _ACEOF
6957
6958    LIBFFI=../libffi/libffi_convenience.la
6959    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6960 fi
6961
6962
6963
6964 # See if the user wants to disable JVMPI support.
6965 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6966 if test "${enable_jvmpi+set}" = set; then
6967   enableval="$enable_jvmpi"
6968
6969 fi;
6970
6971 if test "$enable_jvmpi" != no; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define ENABLE_JVMPI 1
6975 _ACEOF
6976
6977 fi
6978
6979 # If the target is an eCos system, use the appropriate eCos
6980 # I/O routines.
6981 # FIXME: this should not be a local option but a global target
6982 # system; at present there is no eCos target.
6983 TARGET_ECOS=${PROCESS-"no"}
6984
6985 # Check whether --with-ecos or --without-ecos was given.
6986 if test "${with_ecos+set}" = set; then
6987   withval="$with_ecos"
6988   TARGET_ECOS="$with_ecos"
6989
6990 fi;
6991
6992 PLATFORM_INNER_NAT_HDRS=
6993 case "$TARGET_ECOS" in
6994    no) case "$host" in
6995       *mingw*)
6996             PLATFORM=Win32
6997             PLATFORMNET=Win32
6998             PLATFORMH=win32.h
6999
7000 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7001 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7002 LD_PROG=`$CC --print-prog-name=ld`
7003 LD_VERSION=`$LD_PROG --version`
7004 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7005 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7006 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7007   LD_OK="ok"
7008 else
7009   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7010     LD_OK="ok"
7011   fi
7012 fi
7013 if test "x$LD_OK" != x; then
7014   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7015 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7016 else
7017   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7018 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7019   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7020 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7021
7022 cat >>confdefs.h <<\_ACEOF
7023 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7024 _ACEOF
7025
7026 fi
7027       ;;
7028       *)
7029             PLATFORM=Posix
7030             PLATFORMNET=Posix
7031             PLATFORMH=posix.h
7032             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7033       ;;
7034       esac
7035       ;;
7036    *)
7037       PLATFORM=Ecos
7038       PLATFORMNET=NoNet
7039
7040 cat >>confdefs.h <<\_ACEOF
7041 #define ECOS 1
7042 _ACEOF
7043
7044       PLATFORMH=posix.h
7045       ;;
7046 esac
7047
7048           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7049
7050
7051 ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7057 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7058 # On Suns, sometimes $CPP names a directory.
7059 if test -n "$CPP" && test -d "$CPP"; then
7060   CPP=
7061 fi
7062 if test -z "$CPP"; then
7063   if test "${ac_cv_prog_CPP+set}" = set; then
7064   echo $ECHO_N "(cached) $ECHO_C" >&6
7065 else
7066       # Double quotes because CPP needs to be expanded
7067     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7068     do
7069       ac_preproc_ok=false
7070 for ac_c_preproc_warn_flag in '' yes
7071 do
7072   # Use a header file that comes with gcc, so configuring glibc
7073   # with a fresh cross-compiler works.
7074   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075   # <limits.h> exists even on freestanding compilers.
7076   # On the NeXT, cc -E runs the code through the compiler's parser,
7077   # not just through cpp. "Syntax error" is here to catch this case.
7078   cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084 #ifdef __STDC__
7085 # include <limits.h>
7086 #else
7087 # include <assert.h>
7088 #endif
7089                      Syntax error
7090 _ACEOF
7091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7093   ac_status=$?
7094   grep -v '^ *+' conftest.er1 >conftest.err
7095   rm -f conftest.er1
7096   cat conftest.err >&5
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); } >/dev/null; then
7099   if test -s conftest.err; then
7100     ac_cpp_err=$ac_c_preproc_warn_flag
7101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7102   else
7103     ac_cpp_err=
7104   fi
7105 else
7106   ac_cpp_err=yes
7107 fi
7108 if test -z "$ac_cpp_err"; then
7109   :
7110 else
7111   echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7113
7114   # Broken: fails on valid input.
7115 continue
7116 fi
7117 rm -f conftest.err conftest.$ac_ext
7118
7119   # OK, works on sane cases.  Now check whether non-existent headers
7120   # can be detected and how.
7121   cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h.  */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h.  */
7127 #include <ac_nonexistent.h>
7128 _ACEOF
7129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7131   ac_status=$?
7132   grep -v '^ *+' conftest.er1 >conftest.err
7133   rm -f conftest.er1
7134   cat conftest.err >&5
7135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136   (exit $ac_status); } >/dev/null; then
7137   if test -s conftest.err; then
7138     ac_cpp_err=$ac_c_preproc_warn_flag
7139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7140   else
7141     ac_cpp_err=
7142   fi
7143 else
7144   ac_cpp_err=yes
7145 fi
7146 if test -z "$ac_cpp_err"; then
7147   # Broken: success on invalid input.
7148 continue
7149 else
7150   echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7152
7153   # Passes both tests.
7154 ac_preproc_ok=:
7155 break
7156 fi
7157 rm -f conftest.err conftest.$ac_ext
7158
7159 done
7160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7161 rm -f conftest.err conftest.$ac_ext
7162 if $ac_preproc_ok; then
7163   break
7164 fi
7165
7166     done
7167     ac_cv_prog_CPP=$CPP
7168
7169 fi
7170   CPP=$ac_cv_prog_CPP
7171 else
7172   ac_cv_prog_CPP=$CPP
7173 fi
7174 echo "$as_me:$LINENO: result: $CPP" >&5
7175 echo "${ECHO_T}$CPP" >&6
7176 ac_preproc_ok=false
7177 for ac_c_preproc_warn_flag in '' yes
7178 do
7179   # Use a header file that comes with gcc, so configuring glibc
7180   # with a fresh cross-compiler works.
7181   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7182   # <limits.h> exists even on freestanding compilers.
7183   # On the NeXT, cc -E runs the code through the compiler's parser,
7184   # not just through cpp. "Syntax error" is here to catch this case.
7185   cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h.  */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h.  */
7191 #ifdef __STDC__
7192 # include <limits.h>
7193 #else
7194 # include <assert.h>
7195 #endif
7196                      Syntax error
7197 _ACEOF
7198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7200   ac_status=$?
7201   grep -v '^ *+' conftest.er1 >conftest.err
7202   rm -f conftest.er1
7203   cat conftest.err >&5
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); } >/dev/null; then
7206   if test -s conftest.err; then
7207     ac_cpp_err=$ac_c_preproc_warn_flag
7208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7209   else
7210     ac_cpp_err=
7211   fi
7212 else
7213   ac_cpp_err=yes
7214 fi
7215 if test -z "$ac_cpp_err"; then
7216   :
7217 else
7218   echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221   # Broken: fails on valid input.
7222 continue
7223 fi
7224 rm -f conftest.err conftest.$ac_ext
7225
7226   # OK, works on sane cases.  Now check whether non-existent headers
7227   # can be detected and how.
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234 #include <ac_nonexistent.h>
7235 _ACEOF
7236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7238   ac_status=$?
7239   grep -v '^ *+' conftest.er1 >conftest.err
7240   rm -f conftest.er1
7241   cat conftest.err >&5
7242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243   (exit $ac_status); } >/dev/null; then
7244   if test -s conftest.err; then
7245     ac_cpp_err=$ac_c_preproc_warn_flag
7246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7247   else
7248     ac_cpp_err=
7249   fi
7250 else
7251   ac_cpp_err=yes
7252 fi
7253 if test -z "$ac_cpp_err"; then
7254   # Broken: success on invalid input.
7255 continue
7256 else
7257   echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7259
7260   # Passes both tests.
7261 ac_preproc_ok=:
7262 break
7263 fi
7264 rm -f conftest.err conftest.$ac_ext
7265
7266 done
7267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7268 rm -f conftest.err conftest.$ac_ext
7269 if $ac_preproc_ok; then
7270   :
7271 else
7272   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7273 See \`config.log' for more details." >&5
7274 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7275 See \`config.log' for more details." >&2;}
7276    { (exit 1); exit 1; }; }
7277 fi
7278
7279 ac_ext=c
7280 ac_cpp='$CPP $CPPFLAGS'
7281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7284
7285
7286 echo "$as_me:$LINENO: checking for egrep" >&5
7287 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7288 if test "${ac_cv_prog_egrep+set}" = set; then
7289   echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7292     then ac_cv_prog_egrep='grep -E'
7293     else ac_cv_prog_egrep='egrep'
7294     fi
7295 fi
7296 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7297 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7298  EGREP=$ac_cv_prog_egrep
7299
7300
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307 #include <stdint.h>
7308
7309 _ACEOF
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311   $EGREP "uint32_t" >/dev/null 2>&1; then
7312
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_INT32_DEFINED 1
7315 _ACEOF
7316
7317 fi
7318 rm -f conftest*
7319
7320 cat >conftest.$ac_ext <<_ACEOF
7321 /* confdefs.h.  */
7322 _ACEOF
7323 cat confdefs.h >>conftest.$ac_ext
7324 cat >>conftest.$ac_ext <<_ACEOF
7325 /* end confdefs.h.  */
7326 #include <inttypes.h>
7327
7328 _ACEOF
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330   $EGREP "uint32_t" >/dev/null 2>&1; then
7331
7332 cat >>confdefs.h <<\_ACEOF
7333 #define HAVE_INT32_DEFINED 1
7334 _ACEOF
7335
7336 fi
7337 rm -f conftest*
7338
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345 #include <sys/types.h>
7346
7347 _ACEOF
7348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7349   $EGREP "u_int32_t" >/dev/null 2>&1; then
7350
7351 cat >>confdefs.h <<\_ACEOF
7352 #define HAVE_BSD_INT32_DEFINED 1
7353 _ACEOF
7354
7355 fi
7356 rm -f conftest*
7357
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h.  */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h.  */
7364 #include <sys/config.h>
7365
7366 _ACEOF
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368   $EGREP "u_int32_t" >/dev/null 2>&1; then
7369
7370 cat >>confdefs.h <<\_ACEOF
7371 #define HAVE_BSD_INT32_DEFINED 1
7372 _ACEOF
7373
7374 fi
7375 rm -f conftest*
7376
7377
7378
7379
7380 if test "$PLATFORM" = Win32; then
7381   USING_WIN32_PLATFORM_TRUE=
7382   USING_WIN32_PLATFORM_FALSE='#'
7383 else
7384   USING_WIN32_PLATFORM_TRUE='#'
7385   USING_WIN32_PLATFORM_FALSE=
7386 fi
7387
7388
7389
7390 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7391   USING_POSIX_PLATFORM_TRUE=
7392   USING_POSIX_PLATFORM_FALSE='#'
7393 else
7394   USING_POSIX_PLATFORM_TRUE='#'
7395   USING_POSIX_PLATFORM_FALSE=
7396 fi
7397
7398
7399 case "$host" in
7400   *-darwin*) DARWIN_CRT=true ;;
7401   *) DARWIN_CRT=false ;;
7402 esac
7403
7404
7405 if $DARWIN_CRT; then
7406   USING_DARWIN_CRT_TRUE=
7407   USING_DARWIN_CRT_FALSE='#'
7408 else
7409   USING_DARWIN_CRT_TRUE='#'
7410   USING_DARWIN_CRT_FALSE=
7411 fi
7412
7413
7414 # These may not be defined in a non-ANS conformant embedded system.
7415 # FIXME: Should these case a runtime exception in that case?
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422 #include <time.h>
7423
7424 _ACEOF
7425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426   $EGREP "mktime" >/dev/null 2>&1; then
7427
7428 cat >>confdefs.h <<\_ACEOF
7429 #define HAVE_MKTIME 1
7430 _ACEOF
7431
7432 fi
7433 rm -f conftest*
7434
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441 #include <time.h>
7442
7443 _ACEOF
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445   $EGREP "localtime" >/dev/null 2>&1; then
7446
7447 cat >>confdefs.h <<\_ACEOF
7448 #define HAVE_LOCALTIME 1
7449 _ACEOF
7450
7451 fi
7452 rm -f conftest*
7453
7454
7455 # Create the subdirectory for natFile.cc, or the attempt
7456 # to create the link will fail.
7457 test -d java || mkdir java
7458 test -d java/io || mkdir java/io
7459 test -d gnu || mkdir gnu
7460           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7461
7462
7463 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7464 test -d java/lang || mkdir java/lang
7465           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7466
7467           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7468
7469
7470 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7471 test -d java/net || mkdir java/net
7472           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7473
7474           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7475
7476
7477 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7478 test -d gnu/java || mkdir gnu/java
7479 test -d gnu/java/net || mkdir gnu/java/net
7480           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7481
7482           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7483
7484
7485 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7486 test -d gnu/java/nio || mkdir gnu/java/nio
7487           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7488
7489           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7490
7491 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7492           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7493
7494
7495 case "${host}" in
7496     *mingw*)
7497       SYSTEMSPEC="-lgdi32 -lws2_32"
7498       if test "${with_win32_nlsapi}" = "unicows"; then
7499         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7500       fi
7501     ;;
7502     *)
7503       SYSTEMSPEC=
7504     ;;
7505 esac
7506
7507
7508 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7509
7510
7511
7512 # Check whether --with-system-zlib or --without-system-zlib was given.
7513 if test "${with_system_zlib+set}" = set; then
7514   withval="$with_system_zlib"
7515
7516 fi;
7517 ZLIBSPEC=
7518
7519 ZLIBTESTSPEC=
7520
7521
7522 echo "$as_me:$LINENO: checking for X" >&5
7523 echo $ECHO_N "checking for X... $ECHO_C" >&6
7524
7525
7526 # Check whether --with-x or --without-x was given.
7527 if test "${with_x+set}" = set; then
7528   withval="$with_x"
7529
7530 fi;
7531 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7532 if test "x$with_x" = xno; then
7533   # The user explicitly disabled X.
7534   have_x=disabled
7535 else
7536   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7537     # Both variables are already set.
7538     have_x=yes
7539   else
7540     if test "${ac_cv_have_x+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   # One or both of the vars are not set, and there is no cached value.
7544 ac_x_includes=no ac_x_libraries=no
7545 rm -fr conftest.dir
7546 if mkdir conftest.dir; then
7547   cd conftest.dir
7548   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7549   cat >Imakefile <<'_ACEOF'
7550 acfindx:
7551         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7552 _ACEOF
7553   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7554     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7555     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7556     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7557     for ac_extension in a so sl; do
7558       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7559          test -f $ac_im_libdir/libX11.$ac_extension; then
7560         ac_im_usrlibdir=$ac_im_libdir; break
7561       fi
7562     done
7563     # Screen out bogus values from the imake configuration.  They are
7564     # bogus both because they are the default anyway, and because
7565     # using them would break gcc on systems where it needs fixed includes.
7566     case $ac_im_incroot in
7567         /usr/include) ;;
7568         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7569     esac
7570     case $ac_im_usrlibdir in
7571         /usr/lib | /lib) ;;
7572         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7573     esac
7574   fi
7575   cd ..
7576   rm -fr conftest.dir
7577 fi
7578
7579 # Standard set of common directories for X headers.
7580 # Check X11 before X11Rn because it is often a symlink to the current release.
7581 ac_x_header_dirs='
7582 /usr/X11/include
7583 /usr/X11R6/include
7584 /usr/X11R5/include
7585 /usr/X11R4/include
7586
7587 /usr/include/X11
7588 /usr/include/X11R6
7589 /usr/include/X11R5
7590 /usr/include/X11R4
7591
7592 /usr/local/X11/include
7593 /usr/local/X11R6/include
7594 /usr/local/X11R5/include
7595 /usr/local/X11R4/include
7596
7597 /usr/local/include/X11
7598 /usr/local/include/X11R6
7599 /usr/local/include/X11R5
7600 /usr/local/include/X11R4
7601
7602 /usr/X386/include
7603 /usr/x386/include
7604 /usr/XFree86/include/X11
7605
7606 /usr/include
7607 /usr/local/include
7608 /usr/unsupported/include
7609 /usr/athena/include
7610 /usr/local/x11r5/include
7611 /usr/lpp/Xamples/include
7612
7613 /usr/openwin/include
7614 /usr/openwin/share/include'
7615
7616 if test "$ac_x_includes" = no; then
7617   # Guess where to find include files, by looking for Xlib.h.
7618   # First, try using that file with no special directory specified.
7619   cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h.  */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h.  */
7625 #include <X11/Xlib.h>
7626 _ACEOF
7627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7629   ac_status=$?
7630   grep -v '^ *+' conftest.er1 >conftest.err
7631   rm -f conftest.er1
7632   cat conftest.err >&5
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } >/dev/null; then
7635   if test -s conftest.err; then
7636     ac_cpp_err=$ac_c_preproc_warn_flag
7637     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7638   else
7639     ac_cpp_err=
7640   fi
7641 else
7642   ac_cpp_err=yes
7643 fi
7644 if test -z "$ac_cpp_err"; then
7645   # We can compile using X headers with no special include directory.
7646 ac_x_includes=
7647 else
7648   echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651   for ac_dir in $ac_x_header_dirs; do
7652   if test -r "$ac_dir/X11/Xlib.h"; then
7653     ac_x_includes=$ac_dir
7654     break
7655   fi
7656 done
7657 fi
7658 rm -f conftest.err conftest.$ac_ext
7659 fi # $ac_x_includes = no
7660
7661 if test "$ac_x_libraries" = no; then
7662   # Check for the libraries.
7663   # See if we find them without any special options.
7664   # Don't add to $LIBS permanently.
7665   ac_save_LIBS=$LIBS
7666   LIBS="-lXt $LIBS"
7667   if test x$gcc_no_link = xyes; then
7668   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7670    { (exit 1); exit 1; }; }
7671 fi
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h.  */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h.  */
7678 #include <X11/Xlib.h>
7679 int
7680 main ()
7681 {
7682 XrmInitialize ()
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689   (eval $ac_link) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"
7697                          || test ! -s conftest.err'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest$ac_exeext'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709   LIBS=$ac_save_LIBS
7710 # We can link X programs with no special library path.
7711 ac_x_libraries=
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 LIBS=$ac_save_LIBS
7717 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7718 do
7719   # Don't even attempt the hair of trying to link an X program!
7720   for ac_extension in a so sl; do
7721     if test -r $ac_dir/libXt.$ac_extension; then
7722       ac_x_libraries=$ac_dir
7723       break 2
7724     fi
7725   done
7726 done
7727 fi
7728 rm -f conftest.err conftest.$ac_objext \
7729       conftest$ac_exeext conftest.$ac_ext
7730 fi # $ac_x_libraries = no
7731
7732 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7733   # Didn't find X anywhere.  Cache the known absence of X.
7734   ac_cv_have_x="have_x=no"
7735 else
7736   # Record where we found X for the cache.
7737   ac_cv_have_x="have_x=yes \
7738                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7739 fi
7740 fi
7741
7742   fi
7743   eval "$ac_cv_have_x"
7744 fi # $with_x != no
7745
7746 if test "$have_x" != yes; then
7747   echo "$as_me:$LINENO: result: $have_x" >&5
7748 echo "${ECHO_T}$have_x" >&6
7749   no_x=yes
7750 else
7751   # If each of the values was on the command line, it overrides each guess.
7752   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7753   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7754   # Update the cache value to reflect the command line values.
7755   ac_cv_have_x="have_x=yes \
7756                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7757   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7758 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7759 fi
7760
7761 if test "$no_x" = yes; then
7762   # Not all programs may use this symbol, but it does not hurt to define it.
7763
7764 cat >>confdefs.h <<\_ACEOF
7765 #define X_DISPLAY_MISSING 1
7766 _ACEOF
7767
7768   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7769 else
7770   if test -n "$x_includes"; then
7771     X_CFLAGS="$X_CFLAGS -I$x_includes"
7772   fi
7773
7774   # It would also be nice to do this for all -L options, not just this one.
7775   if test -n "$x_libraries"; then
7776     X_LIBS="$X_LIBS -L$x_libraries"
7777     # For Solaris; some versions of Sun CC require a space after -R and
7778     # others require no space.  Words are not sufficient . . . .
7779     case `(uname -sr) 2>/dev/null` in
7780     "SunOS 5"*)
7781       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7782 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7783       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7784       if test x$gcc_no_link = xyes; then
7785   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7787    { (exit 1); exit 1; }; }
7788 fi
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795
7796 int
7797 main ()
7798 {
7799
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7806   (eval $ac_link) 2>conftest.er1
7807   ac_status=$?
7808   grep -v '^ *+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -z "$ac_c_werror_flag"
7814                          || test ! -s conftest.err'
7815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816   (eval $ac_try) 2>&5
7817   ac_status=$?
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; } &&
7820          { ac_try='test -s conftest$ac_exeext'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; }; then
7826   ac_R_nospace=yes
7827 else
7828   echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831 ac_R_nospace=no
7832 fi
7833 rm -f conftest.err conftest.$ac_objext \
7834       conftest$ac_exeext conftest.$ac_ext
7835       if test $ac_R_nospace = yes; then
7836         echo "$as_me:$LINENO: result: no" >&5
7837 echo "${ECHO_T}no" >&6
7838         X_LIBS="$X_LIBS -R$x_libraries"
7839       else
7840         LIBS="$ac_xsave_LIBS -R $x_libraries"
7841         if test x$gcc_no_link = xyes; then
7842   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7844    { (exit 1); exit 1; }; }
7845 fi
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h.  */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h.  */
7852
7853 int
7854 main ()
7855 {
7856
7857   ;
7858   return 0;
7859 }
7860 _ACEOF
7861 rm -f conftest.$ac_objext conftest$ac_exeext
7862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863   (eval $ac_link) 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } &&
7870          { ac_try='test -z "$ac_c_werror_flag"
7871                          || test ! -s conftest.err'
7872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873   (eval $ac_try) 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; } &&
7877          { ac_try='test -s conftest$ac_exeext'
7878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879   (eval $ac_try) 2>&5
7880   ac_status=$?
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); }; }; then
7883   ac_R_space=yes
7884 else
7885   echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 ac_R_space=no
7889 fi
7890 rm -f conftest.err conftest.$ac_objext \
7891       conftest$ac_exeext conftest.$ac_ext
7892         if test $ac_R_space = yes; then
7893           echo "$as_me:$LINENO: result: yes" >&5
7894 echo "${ECHO_T}yes" >&6
7895           X_LIBS="$X_LIBS -R $x_libraries"
7896         else
7897           echo "$as_me:$LINENO: result: neither works" >&5
7898 echo "${ECHO_T}neither works" >&6
7899         fi
7900       fi
7901       LIBS=$ac_xsave_LIBS
7902     esac
7903   fi
7904
7905   # Check for system-dependent libraries X programs must link with.
7906   # Do this before checking for the system-independent R6 libraries
7907   # (-lICE), since we may need -lsocket or whatever for X linking.
7908
7909   if test "$ISC" = yes; then
7910     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7911   else
7912     # Martyn Johnson says this is needed for Ultrix, if the X
7913     # libraries were built with DECnet support.  And Karl Berry says
7914     # the Alpha needs dnet_stub (dnet does not exist).
7915     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7916     if test x$gcc_no_link = xyes; then
7917   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7918 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7919    { (exit 1); exit 1; }; }
7920 fi
7921 cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927
7928 /* Override any gcc2 internal prototype to avoid an error.  */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 /* We use char because int might match the return type of a gcc2
7933    builtin and then its argument prototype would still apply.  */
7934 char XOpenDisplay ();
7935 int
7936 main ()
7937 {
7938 XOpenDisplay ();
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 rm -f conftest.$ac_objext conftest$ac_exeext
7944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7945   (eval $ac_link) 2>conftest.er1
7946   ac_status=$?
7947   grep -v '^ *+' conftest.er1 >conftest.err
7948   rm -f conftest.er1
7949   cat conftest.err >&5
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); } &&
7952          { ac_try='test -z "$ac_c_werror_flag"
7953                          || test ! -s conftest.err'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; } &&
7959          { ac_try='test -s conftest$ac_exeext'
7960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961   (eval $ac_try) 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); }; }; then
7965   :
7966 else
7967   echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7971 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7972 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7973   echo $ECHO_N "(cached) $ECHO_C" >&6
7974 else
7975   ac_check_lib_save_LIBS=$LIBS
7976 LIBS="-ldnet  $LIBS"
7977 if test x$gcc_no_link = xyes; then
7978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7980    { (exit 1); exit 1; }; }
7981 fi
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988
7989 /* Override any gcc2 internal prototype to avoid an error.  */
7990 #ifdef __cplusplus
7991 extern "C"
7992 #endif
7993 /* We use char because int might match the return type of a gcc2
7994    builtin and then its argument prototype would still apply.  */
7995 char dnet_ntoa ();
7996 int
7997 main ()
7998 {
7999 dnet_ntoa ();
8000   ;
8001   return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8006   (eval $ac_link) 2>conftest.er1
8007   ac_status=$?
8008   grep -v '^ *+' conftest.er1 >conftest.err
8009   rm -f conftest.er1
8010   cat conftest.err >&5
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); } &&
8013          { ac_try='test -z "$ac_c_werror_flag"
8014                          || test ! -s conftest.err'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; } &&
8020          { ac_try='test -s conftest$ac_exeext'
8021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022   (eval $ac_try) 2>&5
8023   ac_status=$?
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); }; }; then
8026   ac_cv_lib_dnet_dnet_ntoa=yes
8027 else
8028   echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ac_cv_lib_dnet_dnet_ntoa=no
8032 fi
8033 rm -f conftest.err conftest.$ac_objext \
8034       conftest$ac_exeext conftest.$ac_ext
8035 LIBS=$ac_check_lib_save_LIBS
8036 fi
8037 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8038 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8039 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8040   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8041 fi
8042
8043     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8044       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8045 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8046 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8047   echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049   ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-ldnet_stub  $LIBS"
8051 if test x$gcc_no_link = xyes; then
8052   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8054    { (exit 1); exit 1; }; }
8055 fi
8056 cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062
8063 /* Override any gcc2 internal prototype to avoid an error.  */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 /* We use char because int might match the return type of a gcc2
8068    builtin and then its argument prototype would still apply.  */
8069 char dnet_ntoa ();
8070 int
8071 main ()
8072 {
8073 dnet_ntoa ();
8074   ;
8075   return 0;
8076 }
8077 _ACEOF
8078 rm -f conftest.$ac_objext conftest$ac_exeext
8079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8080   (eval $ac_link) 2>conftest.er1
8081   ac_status=$?
8082   grep -v '^ *+' conftest.er1 >conftest.err
8083   rm -f conftest.er1
8084   cat conftest.err >&5
8085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086   (exit $ac_status); } &&
8087          { ac_try='test -z "$ac_c_werror_flag"
8088                          || test ! -s conftest.err'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; } &&
8094          { ac_try='test -s conftest$ac_exeext'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; }; then
8100   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ac_cv_lib_dnet_stub_dnet_ntoa=no
8106 fi
8107 rm -f conftest.err conftest.$ac_objext \
8108       conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8110 fi
8111 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8112 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8113 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8114   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8115 fi
8116
8117     fi
8118 fi
8119 rm -f conftest.err conftest.$ac_objext \
8120       conftest$ac_exeext conftest.$ac_ext
8121     LIBS="$ac_xsave_LIBS"
8122
8123     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8124     # to get the SysV transport functions.
8125     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8126     # needs -lnsl.
8127     # The nsl library prevents programs from opening the X display
8128     # on Irix 5.2, according to T.E. Dickey.
8129     # The functions gethostbyname, getservbyname, and inet_addr are
8130     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8131     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8132 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8133 if test "${ac_cv_func_gethostbyname+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   if test x$gcc_no_link = xyes; then
8137   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8139    { (exit 1); exit 1; }; }
8140 fi
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h.  */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h.  */
8147 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8149 #define gethostbyname innocuous_gethostbyname
8150
8151 /* System header to define __stub macros and hopefully few prototypes,
8152     which can conflict with char gethostbyname (); below.
8153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8154     <limits.h> exists even on freestanding compilers.  */
8155
8156 #ifdef __STDC__
8157 # include <limits.h>
8158 #else
8159 # include <assert.h>
8160 #endif
8161
8162 #undef gethostbyname
8163
8164 /* Override any gcc2 internal prototype to avoid an error.  */
8165 #ifdef __cplusplus
8166 extern "C"
8167 {
8168 #endif
8169 /* We use char because int might match the return type of a gcc2
8170    builtin and then its argument prototype would still apply.  */
8171 char gethostbyname ();
8172 /* The GNU C library defines this for functions which it implements
8173     to always fail with ENOSYS.  Some functions are actually named
8174     something starting with __ and the normal name is an alias.  */
8175 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8176 choke me
8177 #else
8178 char (*f) () = gethostbyname;
8179 #endif
8180 #ifdef __cplusplus
8181 }
8182 #endif
8183
8184 int
8185 main ()
8186 {
8187 return f != gethostbyname;
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext conftest$ac_exeext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194   (eval $ac_link) 2>conftest.er1
8195   ac_status=$?
8196   grep -v '^ *+' conftest.er1 >conftest.err
8197   rm -f conftest.er1
8198   cat conftest.err >&5
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } &&
8201          { ac_try='test -z "$ac_c_werror_flag"
8202                          || test ! -s conftest.err'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; } &&
8208          { ac_try='test -s conftest$ac_exeext'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   ac_cv_func_gethostbyname=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219 ac_cv_func_gethostbyname=no
8220 fi
8221 rm -f conftest.err conftest.$ac_objext \
8222       conftest$ac_exeext conftest.$ac_ext
8223 fi
8224 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8225 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8226
8227     if test $ac_cv_func_gethostbyname = no; then
8228       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8229 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8230 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8231   echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233   ac_check_lib_save_LIBS=$LIBS
8234 LIBS="-lnsl  $LIBS"
8235 if test x$gcc_no_link = xyes; then
8236   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8237 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8238    { (exit 1); exit 1; }; }
8239 fi
8240 cat >conftest.$ac_ext <<_ACEOF
8241 /* confdefs.h.  */
8242 _ACEOF
8243 cat confdefs.h >>conftest.$ac_ext
8244 cat >>conftest.$ac_ext <<_ACEOF
8245 /* end confdefs.h.  */
8246
8247 /* Override any gcc2 internal prototype to avoid an error.  */
8248 #ifdef __cplusplus
8249 extern "C"
8250 #endif
8251 /* We use char because int might match the return type of a gcc2
8252    builtin and then its argument prototype would still apply.  */
8253 char gethostbyname ();
8254 int
8255 main ()
8256 {
8257 gethostbyname ();
8258   ;
8259   return 0;
8260 }
8261 _ACEOF
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264   (eval $ac_link) 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -z "$ac_c_werror_flag"
8272                          || test ! -s conftest.err'
8273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274   (eval $ac_try) 2>&5
8275   ac_status=$?
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); }; } &&
8278          { ac_try='test -s conftest$ac_exeext'
8279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280   (eval $ac_try) 2>&5
8281   ac_status=$?
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); }; }; then
8284   ac_cv_lib_nsl_gethostbyname=yes
8285 else
8286   echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_lib_nsl_gethostbyname=no
8290 fi
8291 rm -f conftest.err conftest.$ac_objext \
8292       conftest$ac_exeext conftest.$ac_ext
8293 LIBS=$ac_check_lib_save_LIBS
8294 fi
8295 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8296 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8297 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8298   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8299 fi
8300
8301       if test $ac_cv_lib_nsl_gethostbyname = no; then
8302         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8303 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8304 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   ac_check_lib_save_LIBS=$LIBS
8308 LIBS="-lbsd  $LIBS"
8309 if test x$gcc_no_link = xyes; then
8310   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8312    { (exit 1); exit 1; }; }
8313 fi
8314 cat >conftest.$ac_ext <<_ACEOF
8315 /* confdefs.h.  */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h.  */
8320
8321 /* Override any gcc2 internal prototype to avoid an error.  */
8322 #ifdef __cplusplus
8323 extern "C"
8324 #endif
8325 /* We use char because int might match the return type of a gcc2
8326    builtin and then its argument prototype would still apply.  */
8327 char gethostbyname ();
8328 int
8329 main ()
8330 {
8331 gethostbyname ();
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338   (eval $ac_link) 2>conftest.er1
8339   ac_status=$?
8340   grep -v '^ *+' conftest.er1 >conftest.err
8341   rm -f conftest.er1
8342   cat conftest.err >&5
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } &&
8345          { ac_try='test -z "$ac_c_werror_flag"
8346                          || test ! -s conftest.err'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; } &&
8352          { ac_try='test -s conftest$ac_exeext'
8353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354   (eval $ac_try) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); }; }; then
8358   ac_cv_lib_bsd_gethostbyname=yes
8359 else
8360   echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_cv_lib_bsd_gethostbyname=no
8364 fi
8365 rm -f conftest.err conftest.$ac_objext \
8366       conftest$ac_exeext conftest.$ac_ext
8367 LIBS=$ac_check_lib_save_LIBS
8368 fi
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8370 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8371 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8372   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8373 fi
8374
8375       fi
8376     fi
8377
8378     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8379     # socket/setsockopt and other routines are undefined under SCO ODT
8380     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8381     # on later versions), says Simon Leinen: it contains gethostby*
8382     # variants that don't use the name server (or something).  -lsocket
8383     # must be given before -lnsl if both are needed.  We assume that
8384     # if connect needs -lnsl, so does gethostbyname.
8385     echo "$as_me:$LINENO: checking for connect" >&5
8386 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8387 if test "${ac_cv_func_connect+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   if test x$gcc_no_link = xyes; then
8391   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8393    { (exit 1); exit 1; }; }
8394 fi
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8403 #define connect innocuous_connect
8404
8405 /* System header to define __stub macros and hopefully few prototypes,
8406     which can conflict with char connect (); below.
8407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408     <limits.h> exists even on freestanding compilers.  */
8409
8410 #ifdef __STDC__
8411 # include <limits.h>
8412 #else
8413 # include <assert.h>
8414 #endif
8415
8416 #undef connect
8417
8418 /* Override any gcc2 internal prototype to avoid an error.  */
8419 #ifdef __cplusplus
8420 extern "C"
8421 {
8422 #endif
8423 /* We use char because int might match the return type of a gcc2
8424    builtin and then its argument prototype would still apply.  */
8425 char connect ();
8426 /* The GNU C library defines this for functions which it implements
8427     to always fail with ENOSYS.  Some functions are actually named
8428     something starting with __ and the normal name is an alias.  */
8429 #if defined (__stub_connect) || defined (__stub___connect)
8430 choke me
8431 #else
8432 char (*f) () = connect;
8433 #endif
8434 #ifdef __cplusplus
8435 }
8436 #endif
8437
8438 int
8439 main ()
8440 {
8441 return f != connect;
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448   (eval $ac_link) 2>conftest.er1
8449   ac_status=$?
8450   grep -v '^ *+' conftest.er1 >conftest.err
8451   rm -f conftest.er1
8452   cat conftest.err >&5
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); } &&
8455          { ac_try='test -z "$ac_c_werror_flag"
8456                          || test ! -s conftest.err'
8457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458   (eval $ac_try) 2>&5
8459   ac_status=$?
8460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461   (exit $ac_status); }; } &&
8462          { ac_try='test -s conftest$ac_exeext'
8463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464   (eval $ac_try) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); }; }; then
8468   ac_cv_func_connect=yes
8469 else
8470   echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 ac_cv_func_connect=no
8474 fi
8475 rm -f conftest.err conftest.$ac_objext \
8476       conftest$ac_exeext conftest.$ac_ext
8477 fi
8478 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8479 echo "${ECHO_T}$ac_cv_func_connect" >&6
8480
8481     if test $ac_cv_func_connect = no; then
8482       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8483 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8484 if test "${ac_cv_lib_socket_connect+set}" = set; then
8485   echo $ECHO_N "(cached) $ECHO_C" >&6
8486 else
8487   ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8489 if test x$gcc_no_link = xyes; then
8490   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8492    { (exit 1); exit 1; }; }
8493 fi
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h.  */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h.  */
8500
8501 /* Override any gcc2 internal prototype to avoid an error.  */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 /* We use char because int might match the return type of a gcc2
8506    builtin and then its argument prototype would still apply.  */
8507 char connect ();
8508 int
8509 main ()
8510 {
8511 connect ();
8512   ;
8513   return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518   (eval $ac_link) 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } &&
8525          { ac_try='test -z "$ac_c_werror_flag"
8526                          || test ! -s conftest.err'
8527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528   (eval $ac_try) 2>&5
8529   ac_status=$?
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); }; } &&
8532          { ac_try='test -s conftest$ac_exeext'
8533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534   (eval $ac_try) 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; }; then
8538   ac_cv_lib_socket_connect=yes
8539 else
8540   echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543 ac_cv_lib_socket_connect=no
8544 fi
8545 rm -f conftest.err conftest.$ac_objext \
8546       conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8548 fi
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8550 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8551 if test $ac_cv_lib_socket_connect = yes; then
8552   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8553 fi
8554
8555     fi
8556
8557     # Guillermo Gomez says -lposix is necessary on A/UX.
8558     echo "$as_me:$LINENO: checking for remove" >&5
8559 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8560 if test "${ac_cv_func_remove+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   if test x$gcc_no_link = xyes; then
8564   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8566    { (exit 1); exit 1; }; }
8567 fi
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h.  */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h.  */
8574 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8576 #define remove innocuous_remove
8577
8578 /* System header to define __stub macros and hopefully few prototypes,
8579     which can conflict with char remove (); below.
8580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8581     <limits.h> exists even on freestanding compilers.  */
8582
8583 #ifdef __STDC__
8584 # include <limits.h>
8585 #else
8586 # include <assert.h>
8587 #endif
8588
8589 #undef remove
8590
8591 /* Override any gcc2 internal prototype to avoid an error.  */
8592 #ifdef __cplusplus
8593 extern "C"
8594 {
8595 #endif
8596 /* We use char because int might match the return type of a gcc2
8597    builtin and then its argument prototype would still apply.  */
8598 char remove ();
8599 /* The GNU C library defines this for functions which it implements
8600     to always fail with ENOSYS.  Some functions are actually named
8601     something starting with __ and the normal name is an alias.  */
8602 #if defined (__stub_remove) || defined (__stub___remove)
8603 choke me
8604 #else
8605 char (*f) () = remove;
8606 #endif
8607 #ifdef __cplusplus
8608 }
8609 #endif
8610
8611 int
8612 main ()
8613 {
8614 return f != remove;
8615   ;
8616   return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621   (eval $ac_link) 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -z "$ac_c_werror_flag"
8629                          || test ! -s conftest.err'
8630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631   (eval $ac_try) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; } &&
8635          { ac_try='test -s conftest$ac_exeext'
8636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637   (eval $ac_try) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; }; then
8641   ac_cv_func_remove=yes
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_cv_func_remove=no
8647 fi
8648 rm -f conftest.err conftest.$ac_objext \
8649       conftest$ac_exeext conftest.$ac_ext
8650 fi
8651 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8652 echo "${ECHO_T}$ac_cv_func_remove" >&6
8653
8654     if test $ac_cv_func_remove = no; then
8655       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8656 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8657 if test "${ac_cv_lib_posix_remove+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-lposix  $LIBS"
8662 if test x$gcc_no_link = xyes; then
8663   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8665    { (exit 1); exit 1; }; }
8666 fi
8667 cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673
8674 /* Override any gcc2 internal prototype to avoid an error.  */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 /* We use char because int might match the return type of a gcc2
8679    builtin and then its argument prototype would still apply.  */
8680 char remove ();
8681 int
8682 main ()
8683 {
8684 remove ();
8685   ;
8686   return 0;
8687 }
8688 _ACEOF
8689 rm -f conftest.$ac_objext conftest$ac_exeext
8690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8691   (eval $ac_link) 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } &&
8698          { ac_try='test -z "$ac_c_werror_flag"
8699                          || test ! -s conftest.err'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; } &&
8705          { ac_try='test -s conftest$ac_exeext'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_cv_lib_posix_remove=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_cv_lib_posix_remove=no
8717 fi
8718 rm -f conftest.err conftest.$ac_objext \
8719       conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8721 fi
8722 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8723 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8724 if test $ac_cv_lib_posix_remove = yes; then
8725   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8726 fi
8727
8728     fi
8729
8730     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8731     echo "$as_me:$LINENO: checking for shmat" >&5
8732 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8733 if test "${ac_cv_func_shmat+set}" = set; then
8734   echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736   if test x$gcc_no_link = xyes; then
8737   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8739    { (exit 1); exit 1; }; }
8740 fi
8741 cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8749 #define shmat innocuous_shmat
8750
8751 /* System header to define __stub macros and hopefully few prototypes,
8752     which can conflict with char shmat (); below.
8753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8754     <limits.h> exists even on freestanding compilers.  */
8755
8756 #ifdef __STDC__
8757 # include <limits.h>
8758 #else
8759 # include <assert.h>
8760 #endif
8761
8762 #undef shmat
8763
8764 /* Override any gcc2 internal prototype to avoid an error.  */
8765 #ifdef __cplusplus
8766 extern "C"
8767 {
8768 #endif
8769 /* We use char because int might match the return type of a gcc2
8770    builtin and then its argument prototype would still apply.  */
8771 char shmat ();
8772 /* The GNU C library defines this for functions which it implements
8773     to always fail with ENOSYS.  Some functions are actually named
8774     something starting with __ and the normal name is an alias.  */
8775 #if defined (__stub_shmat) || defined (__stub___shmat)
8776 choke me
8777 #else
8778 char (*f) () = shmat;
8779 #endif
8780 #ifdef __cplusplus
8781 }
8782 #endif
8783
8784 int
8785 main ()
8786 {
8787 return f != shmat;
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794   (eval $ac_link) 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } &&
8801          { ac_try='test -z "$ac_c_werror_flag"
8802                          || test ! -s conftest.err'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; } &&
8808          { ac_try='test -s conftest$ac_exeext'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; }; then
8814   ac_cv_func_shmat=yes
8815 else
8816   echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819 ac_cv_func_shmat=no
8820 fi
8821 rm -f conftest.err conftest.$ac_objext \
8822       conftest$ac_exeext conftest.$ac_ext
8823 fi
8824 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8825 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8826
8827     if test $ac_cv_func_shmat = no; then
8828       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8829 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8830 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833   ac_check_lib_save_LIBS=$LIBS
8834 LIBS="-lipc  $LIBS"
8835 if test x$gcc_no_link = xyes; then
8836   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8838    { (exit 1); exit 1; }; }
8839 fi
8840 cat >conftest.$ac_ext <<_ACEOF
8841 /* confdefs.h.  */
8842 _ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h.  */
8846
8847 /* Override any gcc2 internal prototype to avoid an error.  */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 /* We use char because int might match the return type of a gcc2
8852    builtin and then its argument prototype would still apply.  */
8853 char shmat ();
8854 int
8855 main ()
8856 {
8857 shmat ();
8858   ;
8859   return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864   (eval $ac_link) 2>conftest.er1
8865   ac_status=$?
8866   grep -v '^ *+' conftest.er1 >conftest.err
8867   rm -f conftest.er1
8868   cat conftest.err >&5
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -z "$ac_c_werror_flag"
8872                          || test ! -s conftest.err'
8873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874   (eval $ac_try) 2>&5
8875   ac_status=$?
8876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877   (exit $ac_status); }; } &&
8878          { ac_try='test -s conftest$ac_exeext'
8879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880   (eval $ac_try) 2>&5
8881   ac_status=$?
8882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883   (exit $ac_status); }; }; then
8884   ac_cv_lib_ipc_shmat=yes
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 ac_cv_lib_ipc_shmat=no
8890 fi
8891 rm -f conftest.err conftest.$ac_objext \
8892       conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8894 fi
8895 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8896 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8897 if test $ac_cv_lib_ipc_shmat = yes; then
8898   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8899 fi
8900
8901     fi
8902   fi
8903
8904   # Check for libraries that X11R6 Xt/Xaw programs need.
8905   ac_save_LDFLAGS=$LDFLAGS
8906   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8907   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8908   # check for ICE first), but we must link in the order -lSM -lICE or
8909   # we get undefined symbols.  So assume we have SM if we have ICE.
8910   # These have to be linked with before -lX11, unlike the other
8911   # libraries we check for below, so use a different variable.
8912   # John Interrante, Karl Berry
8913   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8914 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8915 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8916   echo $ECHO_N "(cached) $ECHO_C" >&6
8917 else
8918   ac_check_lib_save_LIBS=$LIBS
8919 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8920 if test x$gcc_no_link = xyes; then
8921   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8922 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8923    { (exit 1); exit 1; }; }
8924 fi
8925 cat >conftest.$ac_ext <<_ACEOF
8926 /* confdefs.h.  */
8927 _ACEOF
8928 cat confdefs.h >>conftest.$ac_ext
8929 cat >>conftest.$ac_ext <<_ACEOF
8930 /* end confdefs.h.  */
8931
8932 /* Override any gcc2 internal prototype to avoid an error.  */
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936 /* We use char because int might match the return type of a gcc2
8937    builtin and then its argument prototype would still apply.  */
8938 char IceConnectionNumber ();
8939 int
8940 main ()
8941 {
8942 IceConnectionNumber ();
8943   ;
8944   return 0;
8945 }
8946 _ACEOF
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949   (eval $ac_link) 2>conftest.er1
8950   ac_status=$?
8951   grep -v '^ *+' conftest.er1 >conftest.err
8952   rm -f conftest.er1
8953   cat conftest.err >&5
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); } &&
8956          { ac_try='test -z "$ac_c_werror_flag"
8957                          || test ! -s conftest.err'
8958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959   (eval $ac_try) 2>&5
8960   ac_status=$?
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); }; } &&
8963          { ac_try='test -s conftest$ac_exeext'
8964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965   (eval $ac_try) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); }; }; then
8969   ac_cv_lib_ICE_IceConnectionNumber=yes
8970 else
8971   echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8973
8974 ac_cv_lib_ICE_IceConnectionNumber=no
8975 fi
8976 rm -f conftest.err conftest.$ac_objext \
8977       conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8979 fi
8980 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8981 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8982 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8983   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8984 fi
8985
8986   LDFLAGS=$ac_save_LDFLAGS
8987
8988 fi
8989
8990
8991 # FIXME: this should be _libs on some hosts.
8992 libsubdir=.libs
8993
8994 # extra LD Flags which are required for targets
8995 case "${host}" in
8996 *-*-darwin[0-7].*)
8997     # For now we have to disable it on darwin[8-9] because it slows down
8998     # the linking phase. A possible bug in ld?
8999     # on Darwin -single_module speeds up loading of the dynamic libraries.
9000     extra_ldflags_libjava=-Wl,-single_module
9001     ;;
9002 esac
9003
9004
9005 # Allow the GC to be disabled.  Can be useful when debugging.
9006 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9007 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9008 # Check whether --enable-java-gc or --disable-java-gc was given.
9009 if test "${enable_java_gc+set}" = set; then
9010   enableval="$enable_java_gc"
9011   GC=$enableval
9012 else
9013   GC=boehm
9014 fi;
9015 GCLIBS=
9016 GCINCS=
9017 GCDEPS=
9018 GCSPEC=
9019 JC1GCSPEC=
9020 GCTESTSPEC=
9021 case "$GC" in
9022  boehm)
9023     echo "$as_me:$LINENO: result: boehm" >&5
9024 echo "${ECHO_T}boehm" >&6
9025     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9026     JC1GCSPEC='-fuse-boehm-gc'
9027     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9028     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9029     GCOBJS=boehm.lo
9030     GCHDR=boehm-gc.h
9031     # The POSIX thread support needs to know this.
9032
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_BOEHM_GC 1
9035 _ACEOF
9036
9037     ;;
9038  no)
9039     echo "$as_me:$LINENO: result: none" >&5
9040 echo "${ECHO_T}none" >&6
9041     GCHDR=no-gc.h
9042     ;;
9043  *)
9044     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9045 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9046    { (exit 1); exit 1; }; }
9047     ;;
9048 esac
9049
9050
9051
9052
9053
9054
9055           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9056
9057
9058
9059 if test "$GC" = boehm; then
9060   USING_BOEHMGC_TRUE=
9061   USING_BOEHMGC_FALSE='#'
9062 else
9063   USING_BOEHMGC_TRUE='#'
9064   USING_BOEHMGC_FALSE=
9065 fi
9066
9067
9068
9069 if test "$GC" = no; then
9070   USING_NOGC_TRUE=
9071   USING_NOGC_FALSE='#'
9072 else
9073   USING_NOGC_TRUE='#'
9074   USING_NOGC_FALSE=
9075 fi
9076
9077
9078
9079 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9080 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9081 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9082 echo "$as_me:$LINENO: result: $THREADS" >&5
9083 echo "${ECHO_T}$THREADS" >&6
9084
9085 case "$THREADS" in
9086  no | none | single)
9087     THREADS=none
9088     ;;
9089  posix | posix95 | pthreads)
9090     THREADS=posix
9091     case "$host" in
9092      *-*-linux*)
9093
9094 cat >>confdefs.h <<\_ACEOF
9095 #define LINUX_THREADS 1
9096 _ACEOF
9097
9098         ;;
9099     esac
9100     ;;
9101  win32)
9102     ;;
9103  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9104     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9105 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9106    { (exit 1); exit 1; }; }
9107     ;;
9108  *)
9109     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9110 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9111    { (exit 1); exit 1; }; }
9112     ;;
9113 esac
9114
9115 THREADCXXFLAGS=
9116 THREADLDFLAGS=
9117 THREADLIBS=
9118 THREADINCS=
9119 THREADDEPS=
9120 THREADH=
9121 THREADSPEC=
9122 THREADSTARTFILESPEC=
9123 case "$THREADS" in
9124  posix)
9125     case "$host" in
9126      *-*-cygwin*)
9127         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9128         ;;
9129      *-*-freebsd[1234]*)
9130         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9131         # merely adds pthread_* functions) but it does have a -pthread switch
9132         # which is required at link-time to select -lc_r *instead* of -lc.
9133         THREADLDFLAGS=-pthread
9134         # Don't set THREADSPEC here as might be expected since -pthread is
9135         # not processed when found within a spec file, it must come from
9136         # the command line.  For now, the user must provide the -pthread
9137         # switch to link code compiled with gcj.  In future, consider adding
9138         # support for weak references to pthread_* functions ala gthr.h API.
9139         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9140         ;;
9141      *-*-freebsd*)
9142         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9143         # systems which support threads and -lpthread.
9144         THREADLDFLAGS=-pthread
9145         THREADSPEC=-lpthread
9146         ;;
9147      alpha*-dec-osf* | hppa*-hp-hpux*)
9148         THREADCXXFLAGS=-pthread
9149         # boehm-gc needs some functions from librt, so link that too.
9150         THREADLIBS='-lpthread -lrt'
9151         THREADSPEC='-lpthread -lrt'
9152         ;;
9153      *)
9154         THREADLIBS=-lpthread
9155         THREADSPEC=-lpthread
9156         ;;
9157     esac
9158     THREADH=posix-threads.h
9159     # MIT pthreads doesn't seem to have the mutexattr functions.
9160     # But for now we don't check for it.  We just assume you aren't
9161     # using MIT pthreads.
9162
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9165 _ACEOF
9166
9167
9168     # If we're using the Boehm GC, then we happen to know that it
9169     # defines _REENTRANT, so we don't bother.  Eww.
9170     if test "$GC" != boehm; then
9171
9172 cat >>confdefs.h <<\_ACEOF
9173 #define _REENTRANT 1
9174 _ACEOF
9175
9176     fi
9177
9178 cat >>confdefs.h <<\_ACEOF
9179 #define _POSIX_PTHREAD_SEMANTICS 1
9180 _ACEOF
9181
9182     ;;
9183
9184  win32)
9185     THREADH=win32-threads.h
9186     THREADCXXFLAGS=-mthreads
9187     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9188     # But we do not want the executables created to be dependent on
9189     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9190     # exception handling contexts.  The following kludge achieves this effect
9191     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9192     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9193     # A workaround is to explicitly use -mthreads while linking Java programs.
9194     # See PR libgcj/28263.
9195     #
9196     # FIXME: In Java we are able to detect thread death at the end of
9197     # Thread.run() so we should be able to clean up the exception handling
9198     # contexts ourselves.
9199     THREADSTARTFILESPEC='crtmt%O%s'
9200     ;;
9201
9202  none)
9203     THREADH=no-threads.h
9204     ;;
9205 esac
9206           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217 if test "$THREADS" = posix; then
9218   USING_POSIX_THREADS_TRUE=
9219   USING_POSIX_THREADS_FALSE='#'
9220 else
9221   USING_POSIX_THREADS_TRUE='#'
9222   USING_POSIX_THREADS_FALSE=
9223 fi
9224
9225
9226
9227 if test "$THREADS" = win32; then
9228   USING_WIN32_THREADS_TRUE=
9229   USING_WIN32_THREADS_FALSE='#'
9230 else
9231   USING_WIN32_THREADS_TRUE='#'
9232   USING_WIN32_THREADS_FALSE=
9233 fi
9234
9235
9236
9237 if test "$THREADS" = none; then
9238   USING_NO_THREADS_TRUE=
9239   USING_NO_THREADS_FALSE='#'
9240 else
9241   USING_NO_THREADS_TRUE='#'
9242   USING_NO_THREADS_FALSE=
9243 fi
9244
9245
9246 if test -d sysdep; then true; else mkdir sysdep; fi
9247           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9248
9249           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9250
9251           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9252
9253
9254 HASH_SYNC_SPEC=
9255 # Hash synchronization is only useful with posix threads right now.
9256 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9257    HASH_SYNC_SPEC=-fhash-synchronization
9258
9259 cat >>confdefs.h <<\_ACEOF
9260 #define JV_HASH_SYNCHRONIZATION 1
9261 _ACEOF
9262
9263 fi
9264
9265
9266
9267
9268 if test "$GCC" = yes; then
9269   USING_GCC_TRUE=
9270   USING_GCC_FALSE='#'
9271 else
9272   USING_GCC_TRUE='#'
9273   USING_GCC_FALSE=
9274 fi
9275
9276
9277 # We're in the tree with gcc, and need to include some of its headers.
9278 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9279
9280 if test "x${with_newlib}" = "xyes"; then
9281    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9282    # may not work correctly, because the compiler may not be able to
9283    # link executables.
9284
9285    # We assume newlib.  This lets us hard-code the functions we know
9286    # we'll have.
9287
9288 cat >>confdefs.h <<\_ACEOF
9289 #define HAVE_MEMMOVE 1
9290 _ACEOF
9291
9292
9293 cat >>confdefs.h <<\_ACEOF
9294 #define HAVE_MEMCPY 1
9295 _ACEOF
9296
9297
9298 cat >>confdefs.h <<\_ACEOF
9299 #define HAVE_STRERROR 1
9300 _ACEOF
9301
9302
9303 cat >>confdefs.h <<\_ACEOF
9304 #define HAVE_TIME 1
9305 _ACEOF
9306
9307
9308 cat >>confdefs.h <<\_ACEOF
9309 #define HAVE_GMTIME_R 1
9310 _ACEOF
9311
9312
9313 cat >>confdefs.h <<\_ACEOF
9314 #define HAVE_LOCALTIME_R 1
9315 _ACEOF
9316
9317
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_USLEEP_DECL 1
9320 _ACEOF
9321
9322    # This is only for POSIX threads.
9323
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9326 _ACEOF
9327
9328    # We also assume we are using gcc, which provides alloca.
9329    cat >>confdefs.h <<\_ACEOF
9330 #define HAVE_ALLOCA 1
9331 _ACEOF
9332
9333
9334    # Assume we do not have getuid and friends.
9335
9336 cat >>confdefs.h <<\_ACEOF
9337 #define NO_GETUID 1
9338 _ACEOF
9339
9340    PLATFORMNET=NoNet
9341 else
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9378                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9379                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9380                    nl_langinfo setlocale \
9381                    inet_pton uname inet_ntoa \
9382                    fork execvp pipe sigaction ftruncate mmap \
9383                    getifaddrs
9384 do
9385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9386 echo "$as_me:$LINENO: checking for $ac_func" >&5
9387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9388 if eval "test \"\${$as_ac_var+set}\" = set"; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   if test x$gcc_no_link = xyes; then
9392   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9394    { (exit 1); exit 1; }; }
9395 fi
9396 cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h.  */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h.  */
9402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9404 #define $ac_func innocuous_$ac_func
9405
9406 /* System header to define __stub macros and hopefully few prototypes,
9407     which can conflict with char $ac_func (); below.
9408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409     <limits.h> exists even on freestanding compilers.  */
9410
9411 #ifdef __STDC__
9412 # include <limits.h>
9413 #else
9414 # include <assert.h>
9415 #endif
9416
9417 #undef $ac_func
9418
9419 /* Override any gcc2 internal prototype to avoid an error.  */
9420 #ifdef __cplusplus
9421 extern "C"
9422 {
9423 #endif
9424 /* We use char because int might match the return type of a gcc2
9425    builtin and then its argument prototype would still apply.  */
9426 char $ac_func ();
9427 /* The GNU C library defines this for functions which it implements
9428     to always fail with ENOSYS.  Some functions are actually named
9429     something starting with __ and the normal name is an alias.  */
9430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9431 choke me
9432 #else
9433 char (*f) () = $ac_func;
9434 #endif
9435 #ifdef __cplusplus
9436 }
9437 #endif
9438
9439 int
9440 main ()
9441 {
9442 return f != $ac_func;
9443   ;
9444   return 0;
9445 }
9446 _ACEOF
9447 rm -f conftest.$ac_objext conftest$ac_exeext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449   (eval $ac_link) 2>conftest.er1
9450   ac_status=$?
9451   grep -v '^ *+' conftest.er1 >conftest.err
9452   rm -f conftest.er1
9453   cat conftest.err >&5
9454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } &&
9456          { ac_try='test -z "$ac_c_werror_flag"
9457                          || test ! -s conftest.err'
9458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459   (eval $ac_try) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; } &&
9463          { ac_try='test -s conftest$ac_exeext'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   eval "$as_ac_var=yes"
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474 eval "$as_ac_var=no"
9475 fi
9476 rm -f conftest.err conftest.$ac_objext \
9477       conftest$ac_exeext conftest.$ac_ext
9478 fi
9479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9481 if test `eval echo '${'$as_ac_var'}'` = yes; then
9482   cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9484 _ACEOF
9485
9486 fi
9487 done
9488
9489
9490
9491 for ac_func in inet_aton inet_addr
9492 do
9493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9494 echo "$as_me:$LINENO: checking for $ac_func" >&5
9495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9496 if eval "test \"\${$as_ac_var+set}\" = set"; then
9497   echo $ECHO_N "(cached) $ECHO_C" >&6
9498 else
9499   if test x$gcc_no_link = xyes; then
9500   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9501 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9502    { (exit 1); exit 1; }; }
9503 fi
9504 cat >conftest.$ac_ext <<_ACEOF
9505 /* confdefs.h.  */
9506 _ACEOF
9507 cat confdefs.h >>conftest.$ac_ext
9508 cat >>conftest.$ac_ext <<_ACEOF
9509 /* end confdefs.h.  */
9510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9512 #define $ac_func innocuous_$ac_func
9513
9514 /* System header to define __stub macros and hopefully few prototypes,
9515     which can conflict with char $ac_func (); below.
9516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517     <limits.h> exists even on freestanding compilers.  */
9518
9519 #ifdef __STDC__
9520 # include <limits.h>
9521 #else
9522 # include <assert.h>
9523 #endif
9524
9525 #undef $ac_func
9526
9527 /* Override any gcc2 internal prototype to avoid an error.  */
9528 #ifdef __cplusplus
9529 extern "C"
9530 {
9531 #endif
9532 /* We use char because int might match the return type of a gcc2
9533    builtin and then its argument prototype would still apply.  */
9534 char $ac_func ();
9535 /* The GNU C library defines this for functions which it implements
9536     to always fail with ENOSYS.  Some functions are actually named
9537     something starting with __ and the normal name is an alias.  */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539 choke me
9540 #else
9541 char (*f) () = $ac_func;
9542 #endif
9543 #ifdef __cplusplus
9544 }
9545 #endif
9546
9547 int
9548 main ()
9549 {
9550 return f != $ac_func;
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext conftest$ac_exeext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557   (eval $ac_link) 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -z "$ac_c_werror_flag"
9565                          || test ! -s conftest.err'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; } &&
9571          { ac_try='test -s conftest$ac_exeext'
9572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573   (eval $ac_try) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; }; then
9577   eval "$as_ac_var=yes"
9578 else
9579   echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582 eval "$as_ac_var=no"
9583 fi
9584 rm -f conftest.err conftest.$ac_objext \
9585       conftest$ac_exeext conftest.$ac_ext
9586 fi
9587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9589 if test `eval echo '${'$as_ac_var'}'` = yes; then
9590   cat >>confdefs.h <<_ACEOF
9591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9592 _ACEOF
9593  break
9594 fi
9595 done
9596
9597    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9599 if test "${ac_cv_header_stdc+set}" = set; then
9600   echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602   cat >conftest.$ac_ext <<_ACEOF
9603 /* confdefs.h.  */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h.  */
9608 #include <stdlib.h>
9609 #include <stdarg.h>
9610 #include <string.h>
9611 #include <float.h>
9612
9613 int
9614 main ()
9615 {
9616
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623   (eval $ac_compile) 2>conftest.er1
9624   ac_status=$?
9625   grep -v '^ *+' conftest.er1 >conftest.err
9626   rm -f conftest.er1
9627   cat conftest.err >&5
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   (exit $ac_status); } &&
9630          { ac_try='test -z "$ac_c_werror_flag"
9631                          || test ! -s conftest.err'
9632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9633   (eval $ac_try) 2>&5
9634   ac_status=$?
9635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636   (exit $ac_status); }; } &&
9637          { ac_try='test -s conftest.$ac_objext'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; }; then
9643   ac_cv_header_stdc=yes
9644 else
9645   echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9647
9648 ac_cv_header_stdc=no
9649 fi
9650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9651
9652 if test $ac_cv_header_stdc = yes; then
9653   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9654   cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 #include <string.h>
9661
9662 _ACEOF
9663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9664   $EGREP "memchr" >/dev/null 2>&1; then
9665   :
9666 else
9667   ac_cv_header_stdc=no
9668 fi
9669 rm -f conftest*
9670
9671 fi
9672
9673 if test $ac_cv_header_stdc = yes; then
9674   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9675   cat >conftest.$ac_ext <<_ACEOF
9676 /* confdefs.h.  */
9677 _ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h.  */
9681 #include <stdlib.h>
9682
9683 _ACEOF
9684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9685   $EGREP "free" >/dev/null 2>&1; then
9686   :
9687 else
9688   ac_cv_header_stdc=no
9689 fi
9690 rm -f conftest*
9691
9692 fi
9693
9694 if test $ac_cv_header_stdc = yes; then
9695   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9696   if test "$cross_compiling" = yes; then
9697   :
9698 else
9699   cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 #include <ctype.h>
9706 #if ((' ' & 0x0FF) == 0x020)
9707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9709 #else
9710 # define ISLOWER(c) \
9711                    (('a' <= (c) && (c) <= 'i') \
9712                      || ('j' <= (c) && (c) <= 'r') \
9713                      || ('s' <= (c) && (c) <= 'z'))
9714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9715 #endif
9716
9717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9718 int
9719 main ()
9720 {
9721   int i;
9722   for (i = 0; i < 256; i++)
9723     if (XOR (islower (i), ISLOWER (i))
9724         || toupper (i) != TOUPPER (i))
9725       exit(2);
9726   exit (0);
9727 }
9728 _ACEOF
9729 rm -f conftest$ac_exeext
9730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9731   (eval $ac_link) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   :
9741 else
9742   echo "$as_me: program exited with status $ac_status" >&5
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9745
9746 ( exit $ac_status )
9747 ac_cv_header_stdc=no
9748 fi
9749 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9750 fi
9751 fi
9752 fi
9753 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9754 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9755 if test $ac_cv_header_stdc = yes; then
9756
9757 cat >>confdefs.h <<\_ACEOF
9758 #define STDC_HEADERS 1
9759 _ACEOF
9760
9761 fi
9762
9763 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9774                   inttypes.h stdint.h unistd.h
9775 do
9776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9777 echo "$as_me:$LINENO: checking for $ac_header" >&5
9778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9780   echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782   cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788 $ac_includes_default
9789
9790 #include <$ac_header>
9791 _ACEOF
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794   (eval $ac_compile) 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } &&
9801          { ac_try='test -z "$ac_c_werror_flag"
9802                          || test ! -s conftest.err'
9803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804   (eval $ac_try) 2>&5
9805   ac_status=$?
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); }; } &&
9808          { ac_try='test -s conftest.$ac_objext'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; }; then
9814   eval "$as_ac_Header=yes"
9815 else
9816   echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 eval "$as_ac_Header=no"
9820 fi
9821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9822 fi
9823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9826   cat >>confdefs.h <<_ACEOF
9827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 _ACEOF
9829
9830 fi
9831
9832 done
9833
9834
9835
9836
9837
9838 for ac_header in execinfo.h unistd.h dlfcn.h
9839 do
9840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9842   echo "$as_me:$LINENO: checking for $ac_header" >&5
9843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 fi
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9849 else
9850   # Is the header compilable?
9851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9853 cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9859 $ac_includes_default
9860 #include <$ac_header>
9861 _ACEOF
9862 rm -f conftest.$ac_objext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9864   (eval $ac_compile) 2>conftest.er1
9865   ac_status=$?
9866   grep -v '^ *+' conftest.er1 >conftest.err
9867   rm -f conftest.er1
9868   cat conftest.err >&5
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); } &&
9871          { ac_try='test -z "$ac_c_werror_flag"
9872                          || test ! -s conftest.err'
9873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9874   (eval $ac_try) 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; } &&
9878          { ac_try='test -s conftest.$ac_objext'
9879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9880   (eval $ac_try) 2>&5
9881   ac_status=$?
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); }; }; then
9884   ac_header_compiler=yes
9885 else
9886   echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9888
9889 ac_header_compiler=no
9890 fi
9891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9893 echo "${ECHO_T}$ac_header_compiler" >&6
9894
9895 # Is the header present?
9896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9898 cat >conftest.$ac_ext <<_ACEOF
9899 /* confdefs.h.  */
9900 _ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h.  */
9904 #include <$ac_header>
9905 _ACEOF
9906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } >/dev/null; then
9914   if test -s conftest.err; then
9915     ac_cpp_err=$ac_c_preproc_warn_flag
9916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9917   else
9918     ac_cpp_err=
9919   fi
9920 else
9921   ac_cpp_err=yes
9922 fi
9923 if test -z "$ac_cpp_err"; then
9924   ac_header_preproc=yes
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929   ac_header_preproc=no
9930 fi
9931 rm -f conftest.err conftest.$ac_ext
9932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9933 echo "${ECHO_T}$ac_header_preproc" >&6
9934
9935 # So?  What about this header?
9936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9937   yes:no: )
9938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9942     ac_header_preproc=yes
9943     ;;
9944   no:yes:* )
9945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9957     (
9958       cat <<\_ASBOX
9959 ## ---------------------------------- ##
9960 ## Report this to the libjava lists.  ##
9961 ## ---------------------------------- ##
9962 _ASBOX
9963     ) |
9964       sed "s/^/$as_me: WARNING:     /" >&2
9965     ;;
9966 esac
9967 echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   eval "$as_ac_Header=\$ac_header_preproc"
9973 fi
9974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9976
9977 fi
9978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9979   cat >>confdefs.h <<_ACEOF
9980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9981 _ACEOF
9982
9983 fi
9984
9985 done
9986
9987    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
9988    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9989 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9990 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   ac_check_lib_save_LIBS=$LIBS
9994 LIBS="-ldl  $LIBS"
9995 if test x$gcc_no_link = xyes; then
9996   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9998    { (exit 1); exit 1; }; }
9999 fi
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006
10007 /* Override any gcc2 internal prototype to avoid an error.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 /* We use char because int might match the return type of a gcc2
10012    builtin and then its argument prototype would still apply.  */
10013 char dladdr ();
10014 int
10015 main ()
10016 {
10017 dladdr ();
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024   (eval $ac_link) 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -z "$ac_c_werror_flag"
10032                          || test ! -s conftest.err'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   ac_cv_lib_dl_dladdr=yes
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 ac_cv_lib_dl_dladdr=no
10050 fi
10051 rm -f conftest.err conftest.$ac_objext \
10052       conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10054 fi
10055 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10056 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10057 if test $ac_cv_lib_dl_dladdr = yes; then
10058
10059
10060 cat >>confdefs.h <<\_ACEOF
10061 #define HAVE_DLADDR 1
10062 _ACEOF
10063
10064 else
10065
10066        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10067 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10068 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldld  $LIBS"
10073 if test x$gcc_no_link = xyes; then
10074   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10075 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10076    { (exit 1); exit 1; }; }
10077 fi
10078 cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084
10085 /* Override any gcc2 internal prototype to avoid an error.  */
10086 #ifdef __cplusplus
10087 extern "C"
10088 #endif
10089 /* We use char because int might match the return type of a gcc2
10090    builtin and then its argument prototype would still apply.  */
10091 char dladdr ();
10092 int
10093 main ()
10094 {
10095 dladdr ();
10096   ;
10097   return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102   (eval $ac_link) 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -z "$ac_c_werror_flag"
10110                          || test ! -s conftest.err'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; } &&
10116          { ac_try='test -s conftest$ac_exeext'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_cv_lib_dld_dladdr=yes
10123 else
10124   echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127 ac_cv_lib_dld_dladdr=no
10128 fi
10129 rm -f conftest.err conftest.$ac_objext \
10130       conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_lib_save_LIBS
10132 fi
10133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10134 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10135 if test $ac_cv_lib_dld_dladdr = yes; then
10136
10137
10138 cat >>confdefs.h <<\_ACEOF
10139 #define HAVE_DLADDR 1
10140 _ACEOF
10141
10142 fi
10143
10144 fi
10145
10146
10147    if test x"$build" = x"$host"; then
10148      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10149 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10150 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10151   echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153   test "$cross_compiling" = yes &&
10154   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10155 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10156    { (exit 1); exit 1; }; }
10157 if test -r "/proc/self/exe"; then
10158   ac_cv_file__proc_self_exe=yes
10159 else
10160   ac_cv_file__proc_self_exe=no
10161 fi
10162 fi
10163 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10164 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10165 if test $ac_cv_file__proc_self_exe = yes; then
10166
10167 cat >>confdefs.h <<_ACEOF
10168 #define HAVE__PROC_SELF_EXE 1
10169 _ACEOF
10170
10171
10172
10173 cat >>confdefs.h <<\_ACEOF
10174 #define HAVE_PROC_SELF_EXE 1
10175 _ACEOF
10176
10177 fi
10178
10179    else
10180      case $host in
10181      *-linux*)
10182
10183 cat >>confdefs.h <<\_ACEOF
10184 #define HAVE_PROC_SELF_EXE 1
10185 _ACEOF
10186
10187        ;;
10188      esac
10189    fi
10190
10191
10192       if test "X$prefix" = "XNONE"; then
10193     acl_final_prefix="$ac_default_prefix"
10194   else
10195     acl_final_prefix="$prefix"
10196   fi
10197   if test "X$exec_prefix" = "XNONE"; then
10198     acl_final_exec_prefix='${prefix}'
10199   else
10200     acl_final_exec_prefix="$exec_prefix"
10201   fi
10202   acl_save_prefix="$prefix"
10203   prefix="$acl_final_prefix"
10204   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10205   prefix="$acl_save_prefix"
10206
10207
10208 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10209 if test "${with_gnu_ld+set}" = set; then
10210   withval="$with_gnu_ld"
10211   test "$withval" = no || with_gnu_ld=yes
10212 else
10213   with_gnu_ld=no
10214 fi;
10215 # Prepare PATH_SEPARATOR.
10216 # The user is always right.
10217 if test "${PATH_SEPARATOR+set}" != set; then
10218   echo "#! /bin/sh" >conf$$.sh
10219   echo  "exit 0"   >>conf$$.sh
10220   chmod +x conf$$.sh
10221   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10222     PATH_SEPARATOR=';'
10223   else
10224     PATH_SEPARATOR=:
10225   fi
10226   rm -f conf$$.sh
10227 fi
10228 ac_prog=ld
10229 if test "$GCC" = yes; then
10230   # Check if gcc -print-prog-name=ld gives a path.
10231   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10232 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10233   case $host in
10234   *-*-mingw*)
10235     # gcc leaves a trailing carriage return which upsets mingw
10236     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10237   *)
10238     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10239   esac
10240   case $ac_prog in
10241     # Accept absolute paths.
10242     [\\/]* | [A-Za-z]:[\\/]*)
10243       re_direlt='/[^/][^/]*/\.\./'
10244       # Canonicalize the path of ld
10245       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10246       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10247         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10248       done
10249       test -z "$LD" && LD="$ac_prog"
10250       ;;
10251   "")
10252     # If it fails, then pretend we aren't using GCC.
10253     ac_prog=ld
10254     ;;
10255   *)
10256     # If it is relative, then search for the first ld in PATH.
10257     with_gnu_ld=unknown
10258     ;;
10259   esac
10260 elif test "$with_gnu_ld" = yes; then
10261   echo "$as_me:$LINENO: checking for GNU ld" >&5
10262 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10263 else
10264   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10265 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10266 fi
10267 if test "${acl_cv_path_LD+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   if test -z "$LD"; then
10271   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10272   for ac_dir in $PATH; do
10273     test -z "$ac_dir" && ac_dir=.
10274     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10275       acl_cv_path_LD="$ac_dir/$ac_prog"
10276       # Check to see if the program is GNU ld.  I'd rather use --version,
10277       # but apparently some GNU ld's only accept -v.
10278       # Break only if it was the GNU/non-GNU ld that we prefer.
10279       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10280         test "$with_gnu_ld" != no && break
10281       else
10282         test "$with_gnu_ld" != yes && break
10283       fi
10284     fi
10285   done
10286   IFS="$ac_save_ifs"
10287 else
10288   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10289 fi
10290 fi
10291
10292 LD="$acl_cv_path_LD"
10293 if test -n "$LD"; then
10294   echo "$as_me:$LINENO: result: $LD" >&5
10295 echo "${ECHO_T}$LD" >&6
10296 else
10297   echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6
10299 fi
10300 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10301 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10302    { (exit 1); exit 1; }; }
10303 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10304 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10305 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10306   echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10309 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10310   acl_cv_prog_gnu_ld=yes
10311 else
10312   acl_cv_prog_gnu_ld=no
10313 fi
10314 fi
10315 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10316 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10317 with_gnu_ld=$acl_cv_prog_gnu_ld
10318
10319
10320
10321                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10322 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10323 if test "${acl_cv_rpath+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326
10327     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10328     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10329     . ./conftest.sh
10330     rm -f ./conftest.sh
10331     acl_cv_rpath=done
10332
10333 fi
10334 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10335 echo "${ECHO_T}$acl_cv_rpath" >&6
10336   wl="$acl_cv_wl"
10337   libext="$acl_cv_libext"
10338   shlibext="$acl_cv_shlibext"
10339   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10340   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10341   hardcode_direct="$acl_cv_hardcode_direct"
10342   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10343     # Check whether --enable-rpath or --disable-rpath was given.
10344 if test "${enable_rpath+set}" = set; then
10345   enableval="$enable_rpath"
10346   :
10347 else
10348   enable_rpath=yes
10349 fi;
10350
10351
10352
10353
10354
10355
10356
10357     use_additional=yes
10358
10359   acl_save_prefix="$prefix"
10360   prefix="$acl_final_prefix"
10361   acl_save_exec_prefix="$exec_prefix"
10362   exec_prefix="$acl_final_exec_prefix"
10363
10364     eval additional_includedir=\"$includedir\"
10365     eval additional_libdir=\"$libdir\"
10366
10367   exec_prefix="$acl_save_exec_prefix"
10368   prefix="$acl_save_prefix"
10369
10370
10371 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10372 if test "${with_libiconv_prefix+set}" = set; then
10373   withval="$with_libiconv_prefix"
10374
10375     if test "X$withval" = "Xno"; then
10376       use_additional=no
10377     else
10378       if test "X$withval" = "X"; then
10379
10380   acl_save_prefix="$prefix"
10381   prefix="$acl_final_prefix"
10382   acl_save_exec_prefix="$exec_prefix"
10383   exec_prefix="$acl_final_exec_prefix"
10384
10385           eval additional_includedir=\"$includedir\"
10386           eval additional_libdir=\"$libdir\"
10387
10388   exec_prefix="$acl_save_exec_prefix"
10389   prefix="$acl_save_prefix"
10390
10391       else
10392         additional_includedir="$withval/include"
10393         additional_libdir="$withval/lib"
10394       fi
10395     fi
10396
10397 fi;
10398       LIBICONV=
10399   LTLIBICONV=
10400   INCICONV=
10401   rpathdirs=
10402   ltrpathdirs=
10403   names_already_handled=
10404   names_next_round='iconv '
10405   while test -n "$names_next_round"; do
10406     names_this_round="$names_next_round"
10407     names_next_round=
10408     for name in $names_this_round; do
10409       already_handled=
10410       for n in $names_already_handled; do
10411         if test "$n" = "$name"; then
10412           already_handled=yes
10413           break
10414         fi
10415       done
10416       if test -z "$already_handled"; then
10417         names_already_handled="$names_already_handled $name"
10418                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10419         eval value=\"\$HAVE_LIB$uppername\"
10420         if test -n "$value"; then
10421           if test "$value" = yes; then
10422             eval value=\"\$LIB$uppername\"
10423             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10424             eval value=\"\$LTLIB$uppername\"
10425             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10426           else
10427                                     :
10428           fi
10429         else
10430                               found_dir=
10431           found_la=
10432           found_so=
10433           found_a=
10434           if test $use_additional = yes; then
10435             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10436               found_dir="$additional_libdir"
10437               found_so="$additional_libdir/lib$name.$shlibext"
10438               if test -f "$additional_libdir/lib$name.la"; then
10439                 found_la="$additional_libdir/lib$name.la"
10440               fi
10441             else
10442               if test -f "$additional_libdir/lib$name.$libext"; then
10443                 found_dir="$additional_libdir"
10444                 found_a="$additional_libdir/lib$name.$libext"
10445                 if test -f "$additional_libdir/lib$name.la"; then
10446                   found_la="$additional_libdir/lib$name.la"
10447                 fi
10448               fi
10449             fi
10450           fi
10451           if test "X$found_dir" = "X"; then
10452             for x in $LDFLAGS $LTLIBICONV; do
10453
10454   acl_save_prefix="$prefix"
10455   prefix="$acl_final_prefix"
10456   acl_save_exec_prefix="$exec_prefix"
10457   exec_prefix="$acl_final_exec_prefix"
10458   eval x=\"$x\"
10459   exec_prefix="$acl_save_exec_prefix"
10460   prefix="$acl_save_prefix"
10461
10462               case "$x" in
10463                 -L*)
10464                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10465                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10466                     found_dir="$dir"
10467                     found_so="$dir/lib$name.$shlibext"
10468                     if test -f "$dir/lib$name.la"; then
10469                       found_la="$dir/lib$name.la"
10470                     fi
10471                   else
10472                     if test -f "$dir/lib$name.$libext"; then
10473                       found_dir="$dir"
10474                       found_a="$dir/lib$name.$libext"
10475                       if test -f "$dir/lib$name.la"; then
10476                         found_la="$dir/lib$name.la"
10477                       fi
10478                     fi
10479                   fi
10480                   ;;
10481               esac
10482               if test "X$found_dir" != "X"; then
10483                 break
10484               fi
10485             done
10486           fi
10487           if test "X$found_dir" != "X"; then
10488                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10489             if test "X$found_so" != "X"; then
10490                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10491                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10492               else
10493                                                                                 haveit=
10494                 for x in $ltrpathdirs; do
10495                   if test "X$x" = "X$found_dir"; then
10496                     haveit=yes
10497                     break
10498                   fi
10499                 done
10500                 if test -z "$haveit"; then
10501                   ltrpathdirs="$ltrpathdirs $found_dir"
10502                 fi
10503                                 if test "$hardcode_direct" = yes; then
10504                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10505                 else
10506                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10507                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10508                                                             haveit=
10509                     for x in $rpathdirs; do
10510                       if test "X$x" = "X$found_dir"; then
10511                         haveit=yes
10512                         break
10513                       fi
10514                     done
10515                     if test -z "$haveit"; then
10516                       rpathdirs="$rpathdirs $found_dir"
10517                     fi
10518                   else
10519                                                                                 haveit=
10520                     for x in $LDFLAGS $LIBICONV; do
10521
10522   acl_save_prefix="$prefix"
10523   prefix="$acl_final_prefix"
10524   acl_save_exec_prefix="$exec_prefix"
10525   exec_prefix="$acl_final_exec_prefix"
10526   eval x=\"$x\"
10527   exec_prefix="$acl_save_exec_prefix"
10528   prefix="$acl_save_prefix"
10529
10530                       if test "X$x" = "X-L$found_dir"; then
10531                         haveit=yes
10532                         break
10533                       fi
10534                     done
10535                     if test -z "$haveit"; then
10536                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10537                     fi
10538                     if test "$hardcode_minus_L" != no; then
10539                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10540                     else
10541                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10542                     fi
10543                   fi
10544                 fi
10545               fi
10546             else
10547               if test "X$found_a" != "X"; then
10548                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10549               else
10550                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10551               fi
10552             fi
10553                         additional_includedir=
10554             case "$found_dir" in
10555               */lib | */lib/)
10556                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10557                 additional_includedir="$basedir/include"
10558                 ;;
10559             esac
10560             if test "X$additional_includedir" != "X"; then
10561                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10562                 haveit=
10563                 if test "X$additional_includedir" = "X/usr/local/include"; then
10564                   if test -n "$GCC"; then
10565                     case $host_os in
10566                       linux*) haveit=yes;;
10567                     esac
10568                   fi
10569                 fi
10570                 if test -z "$haveit"; then
10571                   for x in $CPPFLAGS $INCICONV; do
10572
10573   acl_save_prefix="$prefix"
10574   prefix="$acl_final_prefix"
10575   acl_save_exec_prefix="$exec_prefix"
10576   exec_prefix="$acl_final_exec_prefix"
10577   eval x=\"$x\"
10578   exec_prefix="$acl_save_exec_prefix"
10579   prefix="$acl_save_prefix"
10580
10581                     if test "X$x" = "X-I$additional_includedir"; then
10582                       haveit=yes
10583                       break
10584                     fi
10585                   done
10586                   if test -z "$haveit"; then
10587                     if test -d "$additional_includedir"; then
10588                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10589                     fi
10590                   fi
10591                 fi
10592               fi
10593             fi
10594                         if test -n "$found_la"; then
10595                                                         save_libdir="$libdir"
10596               case "$found_la" in
10597                 */* | *\\*) . "$found_la" ;;
10598                 *) . "./$found_la" ;;
10599               esac
10600               libdir="$save_libdir"
10601                             for dep in $dependency_libs; do
10602                 case "$dep" in
10603                   -L*)
10604                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10605                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10606                       haveit=
10607                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10608                         if test -n "$GCC"; then
10609                           case $host_os in
10610                             linux*) haveit=yes;;
10611                           esac
10612                         fi
10613                       fi
10614                       if test -z "$haveit"; then
10615                         haveit=
10616                         for x in $LDFLAGS $LIBICONV; do
10617
10618   acl_save_prefix="$prefix"
10619   prefix="$acl_final_prefix"
10620   acl_save_exec_prefix="$exec_prefix"
10621   exec_prefix="$acl_final_exec_prefix"
10622   eval x=\"$x\"
10623   exec_prefix="$acl_save_exec_prefix"
10624   prefix="$acl_save_prefix"
10625
10626                           if test "X$x" = "X-L$additional_libdir"; then
10627                             haveit=yes
10628                             break
10629                           fi
10630                         done
10631                         if test -z "$haveit"; then
10632                           if test -d "$additional_libdir"; then
10633                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10634                           fi
10635                         fi
10636                         haveit=
10637                         for x in $LDFLAGS $LTLIBICONV; do
10638
10639   acl_save_prefix="$prefix"
10640   prefix="$acl_final_prefix"
10641   acl_save_exec_prefix="$exec_prefix"
10642   exec_prefix="$acl_final_exec_prefix"
10643   eval x=\"$x\"
10644   exec_prefix="$acl_save_exec_prefix"
10645   prefix="$acl_save_prefix"
10646
10647                           if test "X$x" = "X-L$additional_libdir"; then
10648                             haveit=yes
10649                             break
10650                           fi
10651                         done
10652                         if test -z "$haveit"; then
10653                           if test -d "$additional_libdir"; then
10654                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10655                           fi
10656                         fi
10657                       fi
10658                     fi
10659                     ;;
10660                   -R*)
10661                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10662                     if test "$enable_rpath" != no; then
10663                                                                   haveit=
10664                       for x in $rpathdirs; do
10665                         if test "X$x" = "X$dir"; then
10666                           haveit=yes
10667                           break
10668                         fi
10669                       done
10670                       if test -z "$haveit"; then
10671                         rpathdirs="$rpathdirs $dir"
10672                       fi
10673                                                                   haveit=
10674                       for x in $ltrpathdirs; do
10675                         if test "X$x" = "X$dir"; then
10676                           haveit=yes
10677                           break
10678                         fi
10679                       done
10680                       if test -z "$haveit"; then
10681                         ltrpathdirs="$ltrpathdirs $dir"
10682                       fi
10683                     fi
10684                     ;;
10685                   -l*)
10686                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10687                     ;;
10688                   *.la)
10689                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10690                     ;;
10691                   *)
10692                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10693                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10694                     ;;
10695                 esac
10696               done
10697             fi
10698           else
10699                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10700             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10701           fi
10702         fi
10703       fi
10704     done
10705   done
10706   if test "X$rpathdirs" != "X"; then
10707     if test -n "$hardcode_libdir_separator"; then
10708                         alldirs=
10709       for found_dir in $rpathdirs; do
10710         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10711       done
10712             acl_save_libdir="$libdir"
10713       libdir="$alldirs"
10714       eval flag=\"$hardcode_libdir_flag_spec\"
10715       libdir="$acl_save_libdir"
10716       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10717     else
10718             for found_dir in $rpathdirs; do
10719         acl_save_libdir="$libdir"
10720         libdir="$found_dir"
10721         eval flag=\"$hardcode_libdir_flag_spec\"
10722         libdir="$acl_save_libdir"
10723         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10724       done
10725     fi
10726   fi
10727   if test "X$ltrpathdirs" != "X"; then
10728             for found_dir in $ltrpathdirs; do
10729       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10730     done
10731   fi
10732
10733
10734
10735
10736
10737
10738
10739           am_save_CPPFLAGS="$CPPFLAGS"
10740
10741   for element in $INCICONV; do
10742     haveit=
10743     for x in $CPPFLAGS; do
10744
10745   acl_save_prefix="$prefix"
10746   prefix="$acl_final_prefix"
10747   acl_save_exec_prefix="$exec_prefix"
10748   exec_prefix="$acl_final_exec_prefix"
10749   eval x=\"$x\"
10750   exec_prefix="$acl_save_exec_prefix"
10751   prefix="$acl_save_prefix"
10752
10753       if test "X$x" = "X$element"; then
10754         haveit=yes
10755         break
10756       fi
10757     done
10758     if test -z "$haveit"; then
10759       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10760     fi
10761   done
10762
10763
10764   echo "$as_me:$LINENO: checking for iconv" >&5
10765 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10766 if test "${am_cv_func_iconv+set}" = set; then
10767   echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769
10770     am_cv_func_iconv="no, consider installing GNU libiconv"
10771     am_cv_lib_iconv=no
10772     if test x$gcc_no_link = xyes; then
10773   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10775    { (exit 1); exit 1; }; }
10776 fi
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 #include <stdlib.h>
10784 #include <iconv.h>
10785 int
10786 main ()
10787 {
10788 iconv_t cd = iconv_open("","");
10789        iconv(cd,NULL,NULL,NULL,NULL);
10790        iconv_close(cd);
10791   ;
10792   return 0;
10793 }
10794 _ACEOF
10795 rm -f conftest.$ac_objext conftest$ac_exeext
10796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10797   (eval $ac_link) 2>conftest.er1
10798   ac_status=$?
10799   grep -v '^ *+' conftest.er1 >conftest.err
10800   rm -f conftest.er1
10801   cat conftest.err >&5
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } &&
10804          { ac_try='test -z "$ac_c_werror_flag"
10805                          || test ! -s conftest.err'
10806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10807   (eval $ac_try) 2>&5
10808   ac_status=$?
10809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810   (exit $ac_status); }; } &&
10811          { ac_try='test -s conftest$ac_exeext'
10812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10813   (eval $ac_try) 2>&5
10814   ac_status=$?
10815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816   (exit $ac_status); }; }; then
10817   am_cv_func_iconv=yes
10818 else
10819   echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 fi
10823 rm -f conftest.err conftest.$ac_objext \
10824       conftest$ac_exeext conftest.$ac_ext
10825     if test "$am_cv_func_iconv" != yes; then
10826       am_save_LIBS="$LIBS"
10827       LIBS="$LIBS $LIBICONV"
10828       if test x$gcc_no_link = xyes; then
10829   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10831    { (exit 1); exit 1; }; }
10832 fi
10833 cat >conftest.$ac_ext <<_ACEOF
10834 /* confdefs.h.  */
10835 _ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h.  */
10839 #include <stdlib.h>
10840 #include <iconv.h>
10841 int
10842 main ()
10843 {
10844 iconv_t cd = iconv_open("","");
10845          iconv(cd,NULL,NULL,NULL,NULL);
10846          iconv_close(cd);
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10853   (eval $ac_link) 2>conftest.er1
10854   ac_status=$?
10855   grep -v '^ *+' conftest.er1 >conftest.err
10856   rm -f conftest.er1
10857   cat conftest.err >&5
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } &&
10860          { ac_try='test -z "$ac_c_werror_flag"
10861                          || test ! -s conftest.err'
10862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863   (eval $ac_try) 2>&5
10864   ac_status=$?
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); }; } &&
10867          { ac_try='test -s conftest$ac_exeext'
10868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869   (eval $ac_try) 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; }; then
10873   am_cv_lib_iconv=yes
10874         am_cv_func_iconv=yes
10875 else
10876   echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 fi
10880 rm -f conftest.err conftest.$ac_objext \
10881       conftest$ac_exeext conftest.$ac_ext
10882       LIBS="$am_save_LIBS"
10883     fi
10884
10885 fi
10886 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10887 echo "${ECHO_T}$am_cv_func_iconv" >&6
10888   if test "$am_cv_func_iconv" = yes; then
10889
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_ICONV 1
10892 _ACEOF
10893
10894   fi
10895   if test "$am_cv_lib_iconv" = yes; then
10896     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10897 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10898     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10899 echo "${ECHO_T}$LIBICONV" >&6
10900   else
10901             CPPFLAGS="$am_save_CPPFLAGS"
10902     LIBICONV=
10903     LTLIBICONV=
10904   fi
10905
10906
10907
10908   if test "$am_cv_func_iconv" = yes; then
10909     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10910 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10911     if test "${am_cv_proto_iconv+set}" = set; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914
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
10922 #include <stdlib.h>
10923 #include <iconv.h>
10924 extern
10925 #ifdef __cplusplus
10926 "C"
10927 #endif
10928 #if defined(__STDC__) || defined(__cplusplus)
10929 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10930 #else
10931 size_t iconv();
10932 #endif
10933
10934 int
10935 main ()
10936 {
10937
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10944   (eval $ac_compile) 2>conftest.er1
10945   ac_status=$?
10946   grep -v '^ *+' conftest.er1 >conftest.err
10947   rm -f conftest.er1
10948   cat conftest.err >&5
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); } &&
10951          { ac_try='test -z "$ac_c_werror_flag"
10952                          || test ! -s conftest.err'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; } &&
10958          { ac_try='test -s conftest.$ac_objext'
10959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960   (eval $ac_try) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   am_cv_proto_iconv_arg1=""
10965 else
10966   echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 am_cv_proto_iconv_arg1="const"
10970 fi
10971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10972       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);"
10973 fi
10974
10975     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10976     echo "$as_me:$LINENO: result: ${ac_t:-
10977          }$am_cv_proto_iconv" >&5
10978 echo "${ECHO_T}${ac_t:-
10979          }$am_cv_proto_iconv" >&6
10980
10981 cat >>confdefs.h <<_ACEOF
10982 #define ICONV_CONST $am_cv_proto_iconv_arg1
10983 _ACEOF
10984
10985   fi
10986
10987
10988   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10989 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10990 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   if test x$gcc_no_link = xyes; then
10994   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10996    { (exit 1); exit 1; }; }
10997 fi
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 #include <locale.h>
11005 int
11006 main ()
11007 {
11008 return LC_MESSAGES
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015   (eval $ac_link) 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } &&
11022          { ac_try='test -z "$ac_c_werror_flag"
11023                          || test ! -s conftest.err'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; } &&
11029          { ac_try='test -s conftest$ac_exeext'
11030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031   (eval $ac_try) 2>&5
11032   ac_status=$?
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); }; }; then
11035   am_cv_val_LC_MESSAGES=yes
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040 am_cv_val_LC_MESSAGES=no
11041 fi
11042 rm -f conftest.err conftest.$ac_objext \
11043       conftest$ac_exeext conftest.$ac_ext
11044 fi
11045 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11046 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11047   if test $am_cv_val_LC_MESSAGES = yes; then
11048
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_LC_MESSAGES 1
11051 _ACEOF
11052
11053   fi
11054
11055    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11056 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11057 if test "${ac_cv_struct_tm+set}" = set; then
11058   echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060   cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h.  */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h.  */
11066 #include <sys/types.h>
11067 #include <time.h>
11068
11069 int
11070 main ()
11071 {
11072 struct tm *tp; tp->tm_sec;
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11079   (eval $ac_compile) 2>conftest.er1
11080   ac_status=$?
11081   grep -v '^ *+' conftest.er1 >conftest.err
11082   rm -f conftest.er1
11083   cat conftest.err >&5
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); } &&
11086          { ac_try='test -z "$ac_c_werror_flag"
11087                          || test ! -s conftest.err'
11088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089   (eval $ac_try) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); }; } &&
11093          { ac_try='test -s conftest.$ac_objext'
11094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095   (eval $ac_try) 2>&5
11096   ac_status=$?
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); }; }; then
11099   ac_cv_struct_tm=time.h
11100 else
11101   echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 ac_cv_struct_tm=sys/time.h
11105 fi
11106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11107 fi
11108 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11109 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11110 if test $ac_cv_struct_tm = sys/time.h; then
11111
11112 cat >>confdefs.h <<\_ACEOF
11113 #define TM_IN_SYS_TIME 1
11114 _ACEOF
11115
11116 fi
11117
11118 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11119 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11120 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123   cat >conftest.$ac_ext <<_ACEOF
11124 /* confdefs.h.  */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h.  */
11129 #include <sys/types.h>
11130 #include <$ac_cv_struct_tm>
11131
11132
11133 int
11134 main ()
11135 {
11136 static struct tm ac_aggr;
11137 if (ac_aggr.tm_zone)
11138 return 0;
11139   ;
11140   return 0;
11141 }
11142 _ACEOF
11143 rm -f conftest.$ac_objext
11144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11145   (eval $ac_compile) 2>conftest.er1
11146   ac_status=$?
11147   grep -v '^ *+' conftest.er1 >conftest.err
11148   rm -f conftest.er1
11149   cat conftest.err >&5
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } &&
11152          { ac_try='test -z "$ac_c_werror_flag"
11153                          || test ! -s conftest.err'
11154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155   (eval $ac_try) 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; } &&
11159          { ac_try='test -s conftest.$ac_objext'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; }; then
11165   ac_cv_member_struct_tm_tm_zone=yes
11166 else
11167   echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h.  */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h.  */
11176 #include <sys/types.h>
11177 #include <$ac_cv_struct_tm>
11178
11179
11180 int
11181 main ()
11182 {
11183 static struct tm ac_aggr;
11184 if (sizeof ac_aggr.tm_zone)
11185 return 0;
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext
11191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11192   (eval $ac_compile) 2>conftest.er1
11193   ac_status=$?
11194   grep -v '^ *+' conftest.er1 >conftest.err
11195   rm -f conftest.er1
11196   cat conftest.err >&5
11197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198   (exit $ac_status); } &&
11199          { ac_try='test -z "$ac_c_werror_flag"
11200                          || test ! -s conftest.err'
11201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202   (eval $ac_try) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); }; } &&
11206          { ac_try='test -s conftest.$ac_objext'
11207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208   (eval $ac_try) 2>&5
11209   ac_status=$?
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); }; }; then
11212   ac_cv_member_struct_tm_tm_zone=yes
11213 else
11214   echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 ac_cv_member_struct_tm_tm_zone=no
11218 fi
11219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11220 fi
11221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11222 fi
11223 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11224 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11225 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11226
11227 cat >>confdefs.h <<_ACEOF
11228 #define HAVE_STRUCT_TM_TM_ZONE 1
11229 _ACEOF
11230
11231
11232 fi
11233
11234 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11235
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_TM_ZONE 1
11238 _ACEOF
11239
11240 else
11241   echo "$as_me:$LINENO: checking for tzname" >&5
11242 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11243 if test "${ac_cv_var_tzname+set}" = set; then
11244   echo $ECHO_N "(cached) $ECHO_C" >&6
11245 else
11246   if test x$gcc_no_link = xyes; then
11247   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11248 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11249    { (exit 1); exit 1; }; }
11250 fi
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 #include <time.h>
11258 #ifndef tzname /* For SGI.  */
11259 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11260 #endif
11261
11262 int
11263 main ()
11264 {
11265 atoi(*tzname);
11266   ;
11267   return 0;
11268 }
11269 _ACEOF
11270 rm -f conftest.$ac_objext conftest$ac_exeext
11271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11272   (eval $ac_link) 2>conftest.er1
11273   ac_status=$?
11274   grep -v '^ *+' conftest.er1 >conftest.err
11275   rm -f conftest.er1
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } &&
11279          { ac_try='test -z "$ac_c_werror_flag"
11280                          || test ! -s conftest.err'
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); }; } &&
11286          { ac_try='test -s conftest$ac_exeext'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   ac_cv_var_tzname=yes
11293 else
11294   echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 ac_cv_var_tzname=no
11298 fi
11299 rm -f conftest.err conftest.$ac_objext \
11300       conftest$ac_exeext conftest.$ac_ext
11301 fi
11302 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11303 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11304   if test $ac_cv_var_tzname = yes; then
11305
11306 cat >>confdefs.h <<\_ACEOF
11307 #define HAVE_TZNAME 1
11308 _ACEOF
11309
11310   fi
11311 fi
11312
11313
11314
11315
11316 for ac_func in gethostbyname_r
11317 do
11318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 echo "$as_me:$LINENO: checking for $ac_func" >&5
11320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11321 if eval "test \"\${$as_ac_var+set}\" = set"; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   if test x$gcc_no_link = xyes; then
11325   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11327    { (exit 1); exit 1; }; }
11328 fi
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11337 #define $ac_func innocuous_$ac_func
11338
11339 /* System header to define __stub macros and hopefully few prototypes,
11340     which can conflict with char $ac_func (); below.
11341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342     <limits.h> exists even on freestanding compilers.  */
11343
11344 #ifdef __STDC__
11345 # include <limits.h>
11346 #else
11347 # include <assert.h>
11348 #endif
11349
11350 #undef $ac_func
11351
11352 /* Override any gcc2 internal prototype to avoid an error.  */
11353 #ifdef __cplusplus
11354 extern "C"
11355 {
11356 #endif
11357 /* We use char because int might match the return type of a gcc2
11358    builtin and then its argument prototype would still apply.  */
11359 char $ac_func ();
11360 /* The GNU C library defines this for functions which it implements
11361     to always fail with ENOSYS.  Some functions are actually named
11362     something starting with __ and the normal name is an alias.  */
11363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11364 choke me
11365 #else
11366 char (*f) () = $ac_func;
11367 #endif
11368 #ifdef __cplusplus
11369 }
11370 #endif
11371
11372 int
11373 main ()
11374 {
11375 return f != $ac_func;
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext conftest$ac_exeext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382   (eval $ac_link) 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -z "$ac_c_werror_flag"
11390                          || test ! -s conftest.err'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; } &&
11396          { ac_try='test -s conftest$ac_exeext'
11397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398   (eval $ac_try) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; }; then
11402   eval "$as_ac_var=yes"
11403 else
11404   echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407 eval "$as_ac_var=no"
11408 fi
11409 rm -f conftest.err conftest.$ac_objext \
11410       conftest$ac_exeext conftest.$ac_ext
11411 fi
11412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11413 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11414 if test `eval echo '${'$as_ac_var'}'` = yes; then
11415   cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11417 _ACEOF
11418
11419
11420 cat >>confdefs.h <<\_ACEOF
11421 #define HAVE_GETHOSTBYNAME_R 1
11422 _ACEOF
11423
11424      # There are two different kinds of gethostbyname_r.
11425      # We look for the one that returns `int'.
11426      # Hopefully this check is robust enough.
11427      cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <netdb.h>
11434
11435 _ACEOF
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11438
11439
11440 cat >>confdefs.h <<\_ACEOF
11441 #define GETHOSTBYNAME_R_RETURNS_INT 1
11442 _ACEOF
11443
11444 fi
11445 rm -f conftest*
11446
11447
11448      case " $GCINCS " in
11449      *" -D_REENTRANT "*) ;;
11450      *)
11451                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11452 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11453 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11454   echo $ECHO_N "(cached) $ECHO_C" >&6
11455 else
11456    ac_ext=cc
11457 ac_cpp='$CXXCPP $CPPFLAGS'
11458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11461
11462           cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 #include <netdb.h>
11469 int
11470 main ()
11471 {
11472 gethostbyname_r("", 0, 0);
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479   (eval $ac_compile) 2>conftest.er1
11480   ac_status=$?
11481   grep -v '^ *+' conftest.er1 >conftest.err
11482   rm -f conftest.er1
11483   cat conftest.err >&5
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -z "$ac_cxx_werror_flag"
11487                          || test ! -s conftest.err'
11488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11489   (eval $ac_try) 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; } &&
11493          { ac_try='test -s conftest.$ac_objext'
11494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11495   (eval $ac_try) 2>&5
11496   ac_status=$?
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); }; }; then
11499   libjava_cv_gethostbyname_r_needs_reentrant=no
11500 else
11501   echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504                 CPPFLAGS_SAVE="$CPPFLAGS"
11505                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11506                 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 #include <netdb.h>
11513 int
11514 main ()
11515 {
11516 gethostbyname_r("", 0, 0);
11517   ;
11518   return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11523   (eval $ac_compile) 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } &&
11530          { ac_try='test -z "$ac_cxx_werror_flag"
11531                          || test ! -s conftest.err'
11532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533   (eval $ac_try) 2>&5
11534   ac_status=$?
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); }; } &&
11537          { ac_try='test -s conftest.$ac_objext'
11538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539   (eval $ac_try) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); }; }; then
11543   libjava_cv_gethostbyname_r_needs_reentrant=yes
11544 else
11545   echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548 libjava_cv_gethostbyname_r_needs_reentrant=fail
11549 fi
11550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11551                 CPPFLAGS="$CPPFLAGS_SAVE"
11552
11553 fi
11554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11555           ac_ext=c
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560
11561
11562 fi
11563 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11564 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11565         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11566
11567 cat >>confdefs.h <<\_ACEOF
11568 #define _REENTRANT 1
11569 _ACEOF
11570
11571         fi
11572      ;;
11573      esac
11574
11575      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11576 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11577 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11578   echo $ECHO_N "(cached) $ECHO_C" >&6
11579 else
11580         cat >conftest.$ac_ext <<_ACEOF
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586
11587 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11588 # define _REENTRANT 1
11589 #endif
11590 #include <netdb.h>
11591 int
11592 main ()
11593 {
11594 struct hostent_data data;
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601   (eval $ac_compile) 2>conftest.er1
11602   ac_status=$?
11603   grep -v '^ *+' conftest.er1 >conftest.err
11604   rm -f conftest.er1
11605   cat conftest.err >&5
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); } &&
11608          { ac_try='test -z "$ac_c_werror_flag"
11609                          || test ! -s conftest.err'
11610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611   (eval $ac_try) 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); }; } &&
11615          { ac_try='test -s conftest.$ac_objext'
11616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617   (eval $ac_try) 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; }; then
11621   libjava_cv_struct_hostent_data=yes
11622 else
11623   echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11625
11626 libjava_cv_struct_hostent_data=no
11627 fi
11628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11629 fi
11630 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11631 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11632      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11633
11634 cat >>confdefs.h <<\_ACEOF
11635 #define HAVE_STRUCT_HOSTENT_DATA 1
11636 _ACEOF
11637
11638      fi
11639
11640 fi
11641 done
11642
11643
11644    # FIXME: libjava source code expects to find a prototype for
11645    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11646    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11647    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11648    # linkage check is enough, yet C++ code requires proper prototypes.)
11649    cat >conftest.$ac_ext <<_ACEOF
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 #include <netdb.h>
11656
11657 _ACEOF
11658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11659   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11660
11661
11662 for ac_func in gethostbyaddr_r
11663 do
11664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11665 echo "$as_me:$LINENO: checking for $ac_func" >&5
11666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11667 if eval "test \"\${$as_ac_var+set}\" = set"; then
11668   echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670   if test x$gcc_no_link = xyes; then
11671   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11673    { (exit 1); exit 1; }; }
11674 fi
11675 cat >conftest.$ac_ext <<_ACEOF
11676 /* confdefs.h.  */
11677 _ACEOF
11678 cat confdefs.h >>conftest.$ac_ext
11679 cat >>conftest.$ac_ext <<_ACEOF
11680 /* end confdefs.h.  */
11681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11683 #define $ac_func innocuous_$ac_func
11684
11685 /* System header to define __stub macros and hopefully few prototypes,
11686     which can conflict with char $ac_func (); below.
11687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11688     <limits.h> exists even on freestanding compilers.  */
11689
11690 #ifdef __STDC__
11691 # include <limits.h>
11692 #else
11693 # include <assert.h>
11694 #endif
11695
11696 #undef $ac_func
11697
11698 /* Override any gcc2 internal prototype to avoid an error.  */
11699 #ifdef __cplusplus
11700 extern "C"
11701 {
11702 #endif
11703 /* We use char because int might match the return type of a gcc2
11704    builtin and then its argument prototype would still apply.  */
11705 char $ac_func ();
11706 /* The GNU C library defines this for functions which it implements
11707     to always fail with ENOSYS.  Some functions are actually named
11708     something starting with __ and the normal name is an alias.  */
11709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11710 choke me
11711 #else
11712 char (*f) () = $ac_func;
11713 #endif
11714 #ifdef __cplusplus
11715 }
11716 #endif
11717
11718 int
11719 main ()
11720 {
11721 return f != $ac_func;
11722   ;
11723   return 0;
11724 }
11725 _ACEOF
11726 rm -f conftest.$ac_objext conftest$ac_exeext
11727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11728   (eval $ac_link) 2>conftest.er1
11729   ac_status=$?
11730   grep -v '^ *+' conftest.er1 >conftest.err
11731   rm -f conftest.er1
11732   cat conftest.err >&5
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); } &&
11735          { ac_try='test -z "$ac_c_werror_flag"
11736                          || test ! -s conftest.err'
11737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738   (eval $ac_try) 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; } &&
11742          { ac_try='test -s conftest$ac_exeext'
11743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11744   (eval $ac_try) 2>&5
11745   ac_status=$?
11746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); }; }; then
11748   eval "$as_ac_var=yes"
11749 else
11750   echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11752
11753 eval "$as_ac_var=no"
11754 fi
11755 rm -f conftest.err conftest.$ac_objext \
11756       conftest$ac_exeext conftest.$ac_ext
11757 fi
11758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11760 if test `eval echo '${'$as_ac_var'}'` = yes; then
11761   cat >>confdefs.h <<_ACEOF
11762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11763 _ACEOF
11764
11765
11766 cat >>confdefs.h <<\_ACEOF
11767 #define HAVE_GETHOSTBYADDR_R 1
11768 _ACEOF
11769
11770      # There are two different kinds of gethostbyaddr_r.
11771      # We look for the one that returns `int'.
11772      # Hopefully this check is robust enough.
11773      cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779 #include <netdb.h>
11780
11781 _ACEOF
11782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11783   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11784
11785
11786 cat >>confdefs.h <<\_ACEOF
11787 #define GETHOSTBYADDR_R_RETURNS_INT 1
11788 _ACEOF
11789
11790 fi
11791 rm -f conftest*
11792
11793 fi
11794 done
11795
11796 fi
11797 rm -f conftest*
11798
11799
11800
11801 for ac_func in gethostname
11802 do
11803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11804 echo "$as_me:$LINENO: checking for $ac_func" >&5
11805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11806 if eval "test \"\${$as_ac_var+set}\" = set"; then
11807   echo $ECHO_N "(cached) $ECHO_C" >&6
11808 else
11809   if test x$gcc_no_link = xyes; then
11810   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11812    { (exit 1); exit 1; }; }
11813 fi
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11822 #define $ac_func innocuous_$ac_func
11823
11824 /* System header to define __stub macros and hopefully few prototypes,
11825     which can conflict with char $ac_func (); below.
11826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827     <limits.h> exists even on freestanding compilers.  */
11828
11829 #ifdef __STDC__
11830 # include <limits.h>
11831 #else
11832 # include <assert.h>
11833 #endif
11834
11835 #undef $ac_func
11836
11837 /* Override any gcc2 internal prototype to avoid an error.  */
11838 #ifdef __cplusplus
11839 extern "C"
11840 {
11841 #endif
11842 /* We use char because int might match the return type of a gcc2
11843    builtin and then its argument prototype would still apply.  */
11844 char $ac_func ();
11845 /* The GNU C library defines this for functions which it implements
11846     to always fail with ENOSYS.  Some functions are actually named
11847     something starting with __ and the normal name is an alias.  */
11848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11849 choke me
11850 #else
11851 char (*f) () = $ac_func;
11852 #endif
11853 #ifdef __cplusplus
11854 }
11855 #endif
11856
11857 int
11858 main ()
11859 {
11860 return f != $ac_func;
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 rm -f conftest.$ac_objext conftest$ac_exeext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11867   (eval $ac_link) 2>conftest.er1
11868   ac_status=$?
11869   grep -v '^ *+' conftest.er1 >conftest.err
11870   rm -f conftest.er1
11871   cat conftest.err >&5
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); } &&
11874          { ac_try='test -z "$ac_c_werror_flag"
11875                          || test ! -s conftest.err'
11876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877   (eval $ac_try) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); }; } &&
11881          { ac_try='test -s conftest$ac_exeext'
11882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883   (eval $ac_try) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; }; then
11887   eval "$as_ac_var=yes"
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 eval "$as_ac_var=no"
11893 fi
11894 rm -f conftest.err conftest.$ac_objext \
11895       conftest$ac_exeext conftest.$ac_ext
11896 fi
11897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11899 if test `eval echo '${'$as_ac_var'}'` = yes; then
11900   cat >>confdefs.h <<_ACEOF
11901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11902 _ACEOF
11903
11904
11905 cat >>confdefs.h <<\_ACEOF
11906 #define HAVE_GETHOSTNAME 1
11907 _ACEOF
11908
11909      cat >conftest.$ac_ext <<_ACEOF
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 #include <unistd.h>
11916
11917 _ACEOF
11918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11919   $EGREP "gethostname" >/dev/null 2>&1; then
11920
11921
11922 cat >>confdefs.h <<\_ACEOF
11923 #define HAVE_GETHOSTNAME_DECL 1
11924 _ACEOF
11925
11926 fi
11927 rm -f conftest*
11928
11929 fi
11930 done
11931
11932
11933
11934 for ac_func in usleep
11935 do
11936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11937 echo "$as_me:$LINENO: checking for $ac_func" >&5
11938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11939 if eval "test \"\${$as_ac_var+set}\" = set"; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   if test x$gcc_no_link = xyes; then
11943   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11945    { (exit 1); exit 1; }; }
11946 fi
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11955 #define $ac_func innocuous_$ac_func
11956
11957 /* System header to define __stub macros and hopefully few prototypes,
11958     which can conflict with char $ac_func (); below.
11959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960     <limits.h> exists even on freestanding compilers.  */
11961
11962 #ifdef __STDC__
11963 # include <limits.h>
11964 #else
11965 # include <assert.h>
11966 #endif
11967
11968 #undef $ac_func
11969
11970 /* Override any gcc2 internal prototype to avoid an error.  */
11971 #ifdef __cplusplus
11972 extern "C"
11973 {
11974 #endif
11975 /* We use char because int might match the return type of a gcc2
11976    builtin and then its argument prototype would still apply.  */
11977 char $ac_func ();
11978 /* The GNU C library defines this for functions which it implements
11979     to always fail with ENOSYS.  Some functions are actually named
11980     something starting with __ and the normal name is an alias.  */
11981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11982 choke me
11983 #else
11984 char (*f) () = $ac_func;
11985 #endif
11986 #ifdef __cplusplus
11987 }
11988 #endif
11989
11990 int
11991 main ()
11992 {
11993 return f != $ac_func;
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12000   (eval $ac_link) 2>conftest.er1
12001   ac_status=$?
12002   grep -v '^ *+' conftest.er1 >conftest.err
12003   rm -f conftest.er1
12004   cat conftest.err >&5
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); } &&
12007          { ac_try='test -z "$ac_c_werror_flag"
12008                          || test ! -s conftest.err'
12009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010   (eval $ac_try) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); }; } &&
12014          { ac_try='test -s conftest$ac_exeext'
12015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016   (eval $ac_try) 2>&5
12017   ac_status=$?
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); }; }; then
12020   eval "$as_ac_var=yes"
12021 else
12022   echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12024
12025 eval "$as_ac_var=no"
12026 fi
12027 rm -f conftest.err conftest.$ac_objext \
12028       conftest$ac_exeext conftest.$ac_ext
12029 fi
12030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12031 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12032 if test `eval echo '${'$as_ac_var'}'` = yes; then
12033   cat >>confdefs.h <<_ACEOF
12034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12035 _ACEOF
12036
12037      cat >conftest.$ac_ext <<_ACEOF
12038 /* confdefs.h.  */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h.  */
12043 #include <unistd.h>
12044
12045 _ACEOF
12046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12047   $EGREP "usleep" >/dev/null 2>&1; then
12048
12049
12050 cat >>confdefs.h <<\_ACEOF
12051 #define HAVE_USLEEP_DECL 1
12052 _ACEOF
12053
12054 fi
12055 rm -f conftest*
12056
12057 fi
12058 done
12059
12060
12061    # Look for these functions in the thread library, but only bother
12062    # if using POSIX threads.
12063    if test "$THREADS" = posix; then
12064       save_LIBS="$LIBS"
12065       LIBS="$LIBS $THREADLIBS"
12066       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12067       # E.g., Solaris.
12068
12069
12070 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12071 do
12072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12073 echo "$as_me:$LINENO: checking for $ac_func" >&5
12074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12075 if eval "test \"\${$as_ac_var+set}\" = set"; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   if test x$gcc_no_link = xyes; then
12079   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12081    { (exit 1); exit 1; }; }
12082 fi
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h.  */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h.  */
12089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12091 #define $ac_func innocuous_$ac_func
12092
12093 /* System header to define __stub macros and hopefully few prototypes,
12094     which can conflict with char $ac_func (); below.
12095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096     <limits.h> exists even on freestanding compilers.  */
12097
12098 #ifdef __STDC__
12099 # include <limits.h>
12100 #else
12101 # include <assert.h>
12102 #endif
12103
12104 #undef $ac_func
12105
12106 /* Override any gcc2 internal prototype to avoid an error.  */
12107 #ifdef __cplusplus
12108 extern "C"
12109 {
12110 #endif
12111 /* We use char because int might match the return type of a gcc2
12112    builtin and then its argument prototype would still apply.  */
12113 char $ac_func ();
12114 /* The GNU C library defines this for functions which it implements
12115     to always fail with ENOSYS.  Some functions are actually named
12116     something starting with __ and the normal name is an alias.  */
12117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12118 choke me
12119 #else
12120 char (*f) () = $ac_func;
12121 #endif
12122 #ifdef __cplusplus
12123 }
12124 #endif
12125
12126 int
12127 main ()
12128 {
12129 return f != $ac_func;
12130   ;
12131   return 0;
12132 }
12133 _ACEOF
12134 rm -f conftest.$ac_objext conftest$ac_exeext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12136   (eval $ac_link) 2>conftest.er1
12137   ac_status=$?
12138   grep -v '^ *+' conftest.er1 >conftest.err
12139   rm -f conftest.er1
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   (exit $ac_status); } &&
12143          { ac_try='test -z "$ac_c_werror_flag"
12144                          || test ! -s conftest.err'
12145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146   (eval $ac_try) 2>&5
12147   ac_status=$?
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); }; } &&
12150          { ac_try='test -s conftest$ac_exeext'
12151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152   (eval $ac_try) 2>&5
12153   ac_status=$?
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); }; }; then
12156   eval "$as_ac_var=yes"
12157 else
12158   echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12160
12161 eval "$as_ac_var=no"
12162 fi
12163 rm -f conftest.err conftest.$ac_objext \
12164       conftest$ac_exeext conftest.$ac_ext
12165 fi
12166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12168 if test `eval echo '${'$as_ac_var'}'` = yes; then
12169   cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12171 _ACEOF
12172
12173 fi
12174 done
12175
12176
12177       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12178       # Solaris 7 the name librt is preferred.
12179
12180 for ac_func in sched_yield
12181 do
12182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12183 echo "$as_me:$LINENO: checking for $ac_func" >&5
12184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12185 if eval "test \"\${$as_ac_var+set}\" = set"; then
12186   echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188   if test x$gcc_no_link = xyes; then
12189   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12190 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12191    { (exit 1); exit 1; }; }
12192 fi
12193 cat >conftest.$ac_ext <<_ACEOF
12194 /* confdefs.h.  */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h.  */
12199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12201 #define $ac_func innocuous_$ac_func
12202
12203 /* System header to define __stub macros and hopefully few prototypes,
12204     which can conflict with char $ac_func (); below.
12205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206     <limits.h> exists even on freestanding compilers.  */
12207
12208 #ifdef __STDC__
12209 # include <limits.h>
12210 #else
12211 # include <assert.h>
12212 #endif
12213
12214 #undef $ac_func
12215
12216 /* Override any gcc2 internal prototype to avoid an error.  */
12217 #ifdef __cplusplus
12218 extern "C"
12219 {
12220 #endif
12221 /* We use char because int might match the return type of a gcc2
12222    builtin and then its argument prototype would still apply.  */
12223 char $ac_func ();
12224 /* The GNU C library defines this for functions which it implements
12225     to always fail with ENOSYS.  Some functions are actually named
12226     something starting with __ and the normal name is an alias.  */
12227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12228 choke me
12229 #else
12230 char (*f) () = $ac_func;
12231 #endif
12232 #ifdef __cplusplus
12233 }
12234 #endif
12235
12236 int
12237 main ()
12238 {
12239 return f != $ac_func;
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246   (eval $ac_link) 2>conftest.er1
12247   ac_status=$?
12248   grep -v '^ *+' conftest.er1 >conftest.err
12249   rm -f conftest.er1
12250   cat conftest.err >&5
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   (exit $ac_status); } &&
12253          { ac_try='test -z "$ac_c_werror_flag"
12254                          || test ! -s conftest.err'
12255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12256   (eval $ac_try) 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }; } &&
12260          { ac_try='test -s conftest$ac_exeext'
12261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262   (eval $ac_try) 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); }; }; then
12266   eval "$as_ac_var=yes"
12267 else
12268   echo "$as_me: failed program was:" >&5
12269 sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 eval "$as_ac_var=no"
12272 fi
12273 rm -f conftest.err conftest.$ac_objext \
12274       conftest$ac_exeext conftest.$ac_ext
12275 fi
12276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12278 if test `eval echo '${'$as_ac_var'}'` = yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12281 _ACEOF
12282
12283 else
12284
12285         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12286 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12287 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290   ac_check_lib_save_LIBS=$LIBS
12291 LIBS="-lrt  $LIBS"
12292 if test x$gcc_no_link = xyes; then
12293   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12295    { (exit 1); exit 1; }; }
12296 fi
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303
12304 /* Override any gcc2 internal prototype to avoid an error.  */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 /* We use char because int might match the return type of a gcc2
12309    builtin and then its argument prototype would still apply.  */
12310 char sched_yield ();
12311 int
12312 main ()
12313 {
12314 sched_yield ();
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321   (eval $ac_link) 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } &&
12328          { ac_try='test -z "$ac_c_werror_flag"
12329                          || test ! -s conftest.err'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; } &&
12335          { ac_try='test -s conftest$ac_exeext'
12336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337   (eval $ac_try) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; }; then
12341   ac_cv_lib_rt_sched_yield=yes
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346 ac_cv_lib_rt_sched_yield=no
12347 fi
12348 rm -f conftest.err conftest.$ac_objext \
12349       conftest$ac_exeext conftest.$ac_ext
12350 LIBS=$ac_check_lib_save_LIBS
12351 fi
12352 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12353 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12354 if test $ac_cv_lib_rt_sched_yield = yes; then
12355
12356           cat >>confdefs.h <<\_ACEOF
12357 #define HAVE_SCHED_YIELD 1
12358 _ACEOF
12359
12360           THREADLIBS="$THREADLIBS -lrt"
12361           THREADSPEC="$THREADSPEC -lrt"
12362 else
12363
12364           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12365 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12366 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   ac_check_lib_save_LIBS=$LIBS
12370 LIBS="-lposix4  $LIBS"
12371 if test x$gcc_no_link = xyes; then
12372   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12373 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12374    { (exit 1); exit 1; }; }
12375 fi
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382
12383 /* Override any gcc2 internal prototype to avoid an error.  */
12384 #ifdef __cplusplus
12385 extern "C"
12386 #endif
12387 /* We use char because int might match the return type of a gcc2
12388    builtin and then its argument prototype would still apply.  */
12389 char sched_yield ();
12390 int
12391 main ()
12392 {
12393 sched_yield ();
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_posix4_sched_yield=yes
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425 ac_cv_lib_posix4_sched_yield=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_posix4_sched_yield" >&5
12432 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12433 if test $ac_cv_lib_posix4_sched_yield = yes; then
12434
12435             cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_SCHED_YIELD 1
12437 _ACEOF
12438
12439             THREADLIBS="$THREADLIBS -lposix4"
12440             THREADSPEC="$THREADSPEC -lposix4"
12441 fi
12442
12443 fi
12444
12445 fi
12446 done
12447
12448
12449       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12450 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12451 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12452   echo $ECHO_N "(cached) $ECHO_C" >&6
12453 else
12454   ac_check_lib_save_LIBS=$LIBS
12455 LIBS="-lrt  $LIBS"
12456 if test x$gcc_no_link = xyes; then
12457   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12459    { (exit 1); exit 1; }; }
12460 fi
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467
12468 /* Override any gcc2 internal prototype to avoid an error.  */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 /* We use char because int might match the return type of a gcc2
12473    builtin and then its argument prototype would still apply.  */
12474 char clock_gettime ();
12475 int
12476 main ()
12477 {
12478 clock_gettime ();
12479   ;
12480   return 0;
12481 }
12482 _ACEOF
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12485   (eval $ac_link) 2>conftest.er1
12486   ac_status=$?
12487   grep -v '^ *+' conftest.er1 >conftest.err
12488   rm -f conftest.er1
12489   cat conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } &&
12492          { ac_try='test -z "$ac_c_werror_flag"
12493                          || test ! -s conftest.err'
12494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495   (eval $ac_try) 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); }; } &&
12499          { ac_try='test -s conftest$ac_exeext'
12500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501   (eval $ac_try) 2>&5
12502   ac_status=$?
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); }; }; then
12505   ac_cv_lib_rt_clock_gettime=yes
12506 else
12507   echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510 ac_cv_lib_rt_clock_gettime=no
12511 fi
12512 rm -f conftest.err conftest.$ac_objext \
12513       conftest$ac_exeext conftest.$ac_ext
12514 LIBS=$ac_check_lib_save_LIBS
12515 fi
12516 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12517 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12518 if test $ac_cv_lib_rt_clock_gettime = yes; then
12519
12520
12521 cat >>confdefs.h <<\_ACEOF
12522 #define HAVE_CLOCK_GETTIME 1
12523 _ACEOF
12524
12525          case "$THREADSPEC" in
12526            *-lrt*) ;;
12527            *)
12528              THREADSPEC="$THREADSPEC -lrt"
12529              THREADLIBS="$THREADLIBS -lrt"
12530              ;;
12531          esac
12532 fi
12533
12534
12535       LIBS="$save_LIBS"
12536
12537       # We can save a little space at runtime if the mutex has m_count
12538       # or __m_count.  This is a nice hack for Linux.
12539       cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 #include <pthread.h>
12546 int
12547 main ()
12548 {
12549
12550           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12551
12552   ;
12553   return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12558   (eval $ac_compile) 2>conftest.er1
12559   ac_status=$?
12560   grep -v '^ *+' conftest.er1 >conftest.err
12561   rm -f conftest.er1
12562   cat conftest.err >&5
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); } &&
12565          { ac_try='test -z "$ac_c_werror_flag"
12566                          || test ! -s conftest.err'
12567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568   (eval $ac_try) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; } &&
12572          { ac_try='test -s conftest.$ac_objext'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578
12579 cat >>confdefs.h <<\_ACEOF
12580 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12581 _ACEOF
12582
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587
12588         cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h.  */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h.  */
12594 #include <pthread.h>
12595 int
12596 main ()
12597 {
12598
12599             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12600
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607   (eval $ac_compile) 2>conftest.er1
12608   ac_status=$?
12609   grep -v '^ *+' conftest.er1 >conftest.err
12610   rm -f conftest.er1
12611   cat conftest.err >&5
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } &&
12614          { ac_try='test -z "$ac_c_werror_flag"
12615                          || test ! -s conftest.err'
12616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617   (eval $ac_try) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; } &&
12621          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12627
12628 cat >>confdefs.h <<\_ACEOF
12629 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12630 _ACEOF
12631
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 fi
12637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12638 fi
12639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12640    fi
12641
12642    # We require a way to get the time.
12643    time_found=no
12644
12645
12646
12647 for ac_func in gettimeofday time ftime
12648 do
12649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12650 echo "$as_me:$LINENO: checking for $ac_func" >&5
12651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12652 if eval "test \"\${$as_ac_var+set}\" = set"; then
12653   echo $ECHO_N "(cached) $ECHO_C" >&6
12654 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12668 #define $ac_func innocuous_$ac_func
12669
12670 /* System header to define __stub macros and hopefully few prototypes,
12671     which can conflict with char $ac_func (); below.
12672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12673     <limits.h> exists even on freestanding compilers.  */
12674
12675 #ifdef __STDC__
12676 # include <limits.h>
12677 #else
12678 # include <assert.h>
12679 #endif
12680
12681 #undef $ac_func
12682
12683 /* Override any gcc2 internal prototype to avoid an error.  */
12684 #ifdef __cplusplus
12685 extern "C"
12686 {
12687 #endif
12688 /* We use char because int might match the return type of a gcc2
12689    builtin and then its argument prototype would still apply.  */
12690 char $ac_func ();
12691 /* The GNU C library defines this for functions which it implements
12692     to always fail with ENOSYS.  Some functions are actually named
12693     something starting with __ and the normal name is an alias.  */
12694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12695 choke me
12696 #else
12697 char (*f) () = $ac_func;
12698 #endif
12699 #ifdef __cplusplus
12700 }
12701 #endif
12702
12703 int
12704 main ()
12705 {
12706 return f != $ac_func;
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713   (eval $ac_link) 2>conftest.er1
12714   ac_status=$?
12715   grep -v '^ *+' conftest.er1 >conftest.err
12716   rm -f conftest.er1
12717   cat conftest.err >&5
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -z "$ac_c_werror_flag"
12721                          || test ! -s conftest.err'
12722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723   (eval $ac_try) 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; } &&
12727          { ac_try='test -s conftest$ac_exeext'
12728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729   (eval $ac_try) 2>&5
12730   ac_status=$?
12731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732   (exit $ac_status); }; }; then
12733   eval "$as_ac_var=yes"
12734 else
12735   echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 eval "$as_ac_var=no"
12739 fi
12740 rm -f conftest.err conftest.$ac_objext \
12741       conftest$ac_exeext conftest.$ac_ext
12742 fi
12743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12745 if test `eval echo '${'$as_ac_var'}'` = yes; then
12746   cat >>confdefs.h <<_ACEOF
12747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12748 _ACEOF
12749  time_found=yes
12750 fi
12751 done
12752
12753    if test "$time_found" = no; then
12754       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12755 echo "$as_me: error: no function found to get the time" >&2;}
12756    { (exit 1); exit 1; }; }
12757    fi
12758
12759
12760 for ac_func in memmove
12761 do
12762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12763 echo "$as_me:$LINENO: checking for $ac_func" >&5
12764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12765 if eval "test \"\${$as_ac_var+set}\" = set"; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   if test x$gcc_no_link = xyes; then
12769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12771    { (exit 1); exit 1; }; }
12772 fi
12773 cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h.  */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h.  */
12779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12781 #define $ac_func innocuous_$ac_func
12782
12783 /* System header to define __stub macros and hopefully few prototypes,
12784     which can conflict with char $ac_func (); below.
12785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12786     <limits.h> exists even on freestanding compilers.  */
12787
12788 #ifdef __STDC__
12789 # include <limits.h>
12790 #else
12791 # include <assert.h>
12792 #endif
12793
12794 #undef $ac_func
12795
12796 /* Override any gcc2 internal prototype to avoid an error.  */
12797 #ifdef __cplusplus
12798 extern "C"
12799 {
12800 #endif
12801 /* We use char because int might match the return type of a gcc2
12802    builtin and then its argument prototype would still apply.  */
12803 char $ac_func ();
12804 /* The GNU C library defines this for functions which it implements
12805     to always fail with ENOSYS.  Some functions are actually named
12806     something starting with __ and the normal name is an alias.  */
12807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12808 choke me
12809 #else
12810 char (*f) () = $ac_func;
12811 #endif
12812 #ifdef __cplusplus
12813 }
12814 #endif
12815
12816 int
12817 main ()
12818 {
12819 return f != $ac_func;
12820   ;
12821   return 0;
12822 }
12823 _ACEOF
12824 rm -f conftest.$ac_objext conftest$ac_exeext
12825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12826   (eval $ac_link) 2>conftest.er1
12827   ac_status=$?
12828   grep -v '^ *+' conftest.er1 >conftest.err
12829   rm -f conftest.er1
12830   cat conftest.err >&5
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); } &&
12833          { ac_try='test -z "$ac_c_werror_flag"
12834                          || test ! -s conftest.err'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; } &&
12840          { ac_try='test -s conftest$ac_exeext'
12841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842   (eval $ac_try) 2>&5
12843   ac_status=$?
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); }; }; then
12846   eval "$as_ac_var=yes"
12847 else
12848   echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12850
12851 eval "$as_ac_var=no"
12852 fi
12853 rm -f conftest.err conftest.$ac_objext \
12854       conftest$ac_exeext conftest.$ac_ext
12855 fi
12856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12858 if test `eval echo '${'$as_ac_var'}'` = yes; then
12859   cat >>confdefs.h <<_ACEOF
12860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12861 _ACEOF
12862
12863 fi
12864 done
12865
12866
12867    # We require memcpy.
12868    memcpy_found=no
12869
12870 for ac_func in memcpy
12871 do
12872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12873 echo "$as_me:$LINENO: checking for $ac_func" >&5
12874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12875 if eval "test \"\${$as_ac_var+set}\" = set"; then
12876   echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878   if test x$gcc_no_link = xyes; then
12879   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12881    { (exit 1); exit 1; }; }
12882 fi
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h.  */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h.  */
12889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12891 #define $ac_func innocuous_$ac_func
12892
12893 /* System header to define __stub macros and hopefully few prototypes,
12894     which can conflict with char $ac_func (); below.
12895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12896     <limits.h> exists even on freestanding compilers.  */
12897
12898 #ifdef __STDC__
12899 # include <limits.h>
12900 #else
12901 # include <assert.h>
12902 #endif
12903
12904 #undef $ac_func
12905
12906 /* Override any gcc2 internal prototype to avoid an error.  */
12907 #ifdef __cplusplus
12908 extern "C"
12909 {
12910 #endif
12911 /* We use char because int might match the return type of a gcc2
12912    builtin and then its argument prototype would still apply.  */
12913 char $ac_func ();
12914 /* The GNU C library defines this for functions which it implements
12915     to always fail with ENOSYS.  Some functions are actually named
12916     something starting with __ and the normal name is an alias.  */
12917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12918 choke me
12919 #else
12920 char (*f) () = $ac_func;
12921 #endif
12922 #ifdef __cplusplus
12923 }
12924 #endif
12925
12926 int
12927 main ()
12928 {
12929 return f != $ac_func;
12930   ;
12931   return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12936   (eval $ac_link) 2>conftest.er1
12937   ac_status=$?
12938   grep -v '^ *+' conftest.er1 >conftest.err
12939   rm -f conftest.er1
12940   cat conftest.err >&5
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } &&
12943          { ac_try='test -z "$ac_c_werror_flag"
12944                          || test ! -s conftest.err'
12945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946   (eval $ac_try) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; } &&
12950          { ac_try='test -s conftest$ac_exeext'
12951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952   (eval $ac_try) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); }; }; then
12956   eval "$as_ac_var=yes"
12957 else
12958   echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 eval "$as_ac_var=no"
12962 fi
12963 rm -f conftest.err conftest.$ac_objext \
12964       conftest$ac_exeext conftest.$ac_ext
12965 fi
12966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12968 if test `eval echo '${'$as_ac_var'}'` = yes; then
12969   cat >>confdefs.h <<_ACEOF
12970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971 _ACEOF
12972  memcpy_found=yes
12973 fi
12974 done
12975
12976    if test "$memcpy_found" = no; then
12977       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12978 echo "$as_me: error: memcpy is required" >&2;}
12979    { (exit 1); exit 1; }; }
12980    fi
12981    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
12982    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12983 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12984 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12985   echo $ECHO_N "(cached) $ECHO_C" >&6
12986 else
12987   ac_check_lib_save_LIBS=$LIBS
12988 LIBS="-ldl  $LIBS"
12989 if test x$gcc_no_link = xyes; then
12990   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12992    { (exit 1); exit 1; }; }
12993 fi
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000
13001 /* Override any gcc2 internal prototype to avoid an error.  */
13002 #ifdef __cplusplus
13003 extern "C"
13004 #endif
13005 /* We use char because int might match the return type of a gcc2
13006    builtin and then its argument prototype would still apply.  */
13007 char dlopen ();
13008 int
13009 main ()
13010 {
13011 dlopen ();
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13018   (eval $ac_link) 2>conftest.er1
13019   ac_status=$?
13020   grep -v '^ *+' conftest.er1 >conftest.err
13021   rm -f conftest.er1
13022   cat conftest.err >&5
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } &&
13025          { ac_try='test -z "$ac_c_werror_flag"
13026                          || test ! -s conftest.err'
13027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028   (eval $ac_try) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); }; } &&
13032          { ac_try='test -s conftest$ac_exeext'
13033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13034   (eval $ac_try) 2>&5
13035   ac_status=$?
13036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037   (exit $ac_status); }; }; then
13038   ac_cv_lib_dl_dlopen=yes
13039 else
13040   echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 ac_cv_lib_dl_dlopen=no
13044 fi
13045 rm -f conftest.err conftest.$ac_objext \
13046       conftest$ac_exeext conftest.$ac_ext
13047 LIBS=$ac_check_lib_save_LIBS
13048 fi
13049 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13050 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13051 if test $ac_cv_lib_dl_dlopen = yes; then
13052
13053
13054 cat >>confdefs.h <<\_ACEOF
13055 #define HAVE_DLOPEN 1
13056 _ACEOF
13057
13058 else
13059
13060        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13061 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13062 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13063   echo $ECHO_N "(cached) $ECHO_C" >&6
13064 else
13065   ac_check_lib_save_LIBS=$LIBS
13066 LIBS="-ldld  $LIBS"
13067 if test x$gcc_no_link = xyes; then
13068   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13070    { (exit 1); exit 1; }; }
13071 fi
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h.  */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h.  */
13078
13079 /* Override any gcc2 internal prototype to avoid an error.  */
13080 #ifdef __cplusplus
13081 extern "C"
13082 #endif
13083 /* We use char because int might match the return type of a gcc2
13084    builtin and then its argument prototype would still apply.  */
13085 char dlopen ();
13086 int
13087 main ()
13088 {
13089 dlopen ();
13090   ;
13091   return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096   (eval $ac_link) 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } &&
13103          { ac_try='test -z "$ac_c_werror_flag"
13104                          || test ! -s conftest.err'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; } &&
13110          { ac_try='test -s conftest$ac_exeext'
13111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112   (eval $ac_try) 2>&5
13113   ac_status=$?
13114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115   (exit $ac_status); }; }; then
13116   ac_cv_lib_dld_dlopen=yes
13117 else
13118   echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121 ac_cv_lib_dld_dlopen=no
13122 fi
13123 rm -f conftest.err conftest.$ac_objext \
13124       conftest$ac_exeext conftest.$ac_ext
13125 LIBS=$ac_check_lib_save_LIBS
13126 fi
13127 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13128 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13129 if test $ac_cv_lib_dld_dlopen = yes; then
13130
13131
13132 cat >>confdefs.h <<\_ACEOF
13133 #define HAVE_DLOPEN 1
13134 _ACEOF
13135
13136 fi
13137
13138 fi
13139
13140
13141    # Some library-finding code we stole from Tcl.
13142    #--------------------------------------------------------------------
13143    #    Check for the existence of the -lsocket and -lnsl libraries.
13144    #    The order here is important, so that they end up in the right
13145    #    order in the command line generated by make.  Here are some
13146    #    special considerations:
13147    #    1. Use "connect" and "accept" to check for -lsocket, and
13148    #       "gethostbyname" to check for -lnsl.
13149    #    2. Use each function name only once:  can't redo a check because
13150    #       autoconf caches the results of the last check and won't redo it.
13151    #    3. Use -lnsl and -lsocket only if they supply procedures that
13152    #       aren't already present in the normal libraries.  This is because
13153    #       IRIX 5.2 has libraries, but they aren't needed and they're
13154    #       bogus:  they goof up name resolution if used.
13155    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13156    #       To get around this problem, check for both libraries together
13157    #       if -lsocket doesn't work by itself.
13158    #--------------------------------------------------------------------
13159
13160    echo "$as_me:$LINENO: checking for socket libraries" >&5
13161 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13162 if test "${gcj_cv_lib_sockets+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   gcj_cv_lib_sockets=
13166      gcj_checkBoth=0
13167      unset ac_cv_func_connect
13168      echo "$as_me:$LINENO: checking for connect" >&5
13169 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13170 if test "${ac_cv_func_connect+set}" = set; then
13171   echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173   if test x$gcc_no_link = xyes; then
13174   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13176    { (exit 1); exit 1; }; }
13177 fi
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13186 #define connect innocuous_connect
13187
13188 /* System header to define __stub macros and hopefully few prototypes,
13189     which can conflict with char connect (); below.
13190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13191     <limits.h> exists even on freestanding compilers.  */
13192
13193 #ifdef __STDC__
13194 # include <limits.h>
13195 #else
13196 # include <assert.h>
13197 #endif
13198
13199 #undef connect
13200
13201 /* Override any gcc2 internal prototype to avoid an error.  */
13202 #ifdef __cplusplus
13203 extern "C"
13204 {
13205 #endif
13206 /* We use char because int might match the return type of a gcc2
13207    builtin and then its argument prototype would still apply.  */
13208 char connect ();
13209 /* The GNU C library defines this for functions which it implements
13210     to always fail with ENOSYS.  Some functions are actually named
13211     something starting with __ and the normal name is an alias.  */
13212 #if defined (__stub_connect) || defined (__stub___connect)
13213 choke me
13214 #else
13215 char (*f) () = connect;
13216 #endif
13217 #ifdef __cplusplus
13218 }
13219 #endif
13220
13221 int
13222 main ()
13223 {
13224 return f != connect;
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13231   (eval $ac_link) 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } &&
13238          { ac_try='test -z "$ac_c_werror_flag"
13239                          || test ! -s conftest.err'
13240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241   (eval $ac_try) 2>&5
13242   ac_status=$?
13243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244   (exit $ac_status); }; } &&
13245          { ac_try='test -s conftest$ac_exeext'
13246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247   (eval $ac_try) 2>&5
13248   ac_status=$?
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); }; }; then
13251   ac_cv_func_connect=yes
13252 else
13253   echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 ac_cv_func_connect=no
13257 fi
13258 rm -f conftest.err conftest.$ac_objext \
13259       conftest$ac_exeext conftest.$ac_ext
13260 fi
13261 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13262 echo "${ECHO_T}$ac_cv_func_connect" >&6
13263 if test $ac_cv_func_connect = yes; then
13264   gcj_checkSocket=0
13265 else
13266   gcj_checkSocket=1
13267 fi
13268
13269      if test "$gcj_checkSocket" = 1; then
13270          unset ac_cv_func_connect
13271          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13272 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13273 if test "${ac_cv_lib_socket_main+set}" = set; then
13274   echo $ECHO_N "(cached) $ECHO_C" >&6
13275 else
13276   ac_check_lib_save_LIBS=$LIBS
13277 LIBS="-lsocket  $LIBS"
13278 if test x$gcc_no_link = xyes; then
13279   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13281    { (exit 1); exit 1; }; }
13282 fi
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h.  */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h.  */
13289
13290
13291 int
13292 main ()
13293 {
13294 main ();
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext conftest$ac_exeext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13301   (eval $ac_link) 2>conftest.er1
13302   ac_status=$?
13303   grep -v '^ *+' conftest.er1 >conftest.err
13304   rm -f conftest.er1
13305   cat conftest.err >&5
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -z "$ac_c_werror_flag"
13309                          || test ! -s conftest.err'
13310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311   (eval $ac_try) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; } &&
13315          { ac_try='test -s conftest$ac_exeext'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; }; then
13321   ac_cv_lib_socket_main=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_cv_lib_socket_main=no
13327 fi
13328 rm -f conftest.err conftest.$ac_objext \
13329       conftest$ac_exeext conftest.$ac_ext
13330 LIBS=$ac_check_lib_save_LIBS
13331 fi
13332 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13333 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13334 if test $ac_cv_lib_socket_main = yes; then
13335   gcj_cv_lib_sockets="-lsocket"
13336 else
13337   gcj_checkBoth=1
13338 fi
13339
13340      fi
13341      if test "$gcj_checkBoth" = 1; then
13342          gcj_oldLibs=$LIBS
13343          LIBS="$LIBS -lsocket -lnsl"
13344          unset ac_cv_func_accept
13345          echo "$as_me:$LINENO: checking for accept" >&5
13346 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13347 if test "${ac_cv_func_accept+set}" = set; then
13348   echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350   if test x$gcc_no_link = xyes; then
13351   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13352 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13353    { (exit 1); exit 1; }; }
13354 fi
13355 cat >conftest.$ac_ext <<_ACEOF
13356 /* confdefs.h.  */
13357 _ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h.  */
13361 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13363 #define accept innocuous_accept
13364
13365 /* System header to define __stub macros and hopefully few prototypes,
13366     which can conflict with char accept (); below.
13367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13368     <limits.h> exists even on freestanding compilers.  */
13369
13370 #ifdef __STDC__
13371 # include <limits.h>
13372 #else
13373 # include <assert.h>
13374 #endif
13375
13376 #undef accept
13377
13378 /* Override any gcc2 internal prototype to avoid an error.  */
13379 #ifdef __cplusplus
13380 extern "C"
13381 {
13382 #endif
13383 /* We use char because int might match the return type of a gcc2
13384    builtin and then its argument prototype would still apply.  */
13385 char accept ();
13386 /* The GNU C library defines this for functions which it implements
13387     to always fail with ENOSYS.  Some functions are actually named
13388     something starting with __ and the normal name is an alias.  */
13389 #if defined (__stub_accept) || defined (__stub___accept)
13390 choke me
13391 #else
13392 char (*f) () = accept;
13393 #endif
13394 #ifdef __cplusplus
13395 }
13396 #endif
13397
13398 int
13399 main ()
13400 {
13401 return f != accept;
13402   ;
13403   return 0;
13404 }
13405 _ACEOF
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13408   (eval $ac_link) 2>conftest.er1
13409   ac_status=$?
13410   grep -v '^ *+' conftest.er1 >conftest.err
13411   rm -f conftest.er1
13412   cat conftest.err >&5
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); } &&
13415          { ac_try='test -z "$ac_c_werror_flag"
13416                          || test ! -s conftest.err'
13417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13418   (eval $ac_try) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); }; } &&
13422          { ac_try='test -s conftest$ac_exeext'
13423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428   ac_cv_func_accept=yes
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_cv_func_accept=no
13434 fi
13435 rm -f conftest.err conftest.$ac_objext \
13436       conftest$ac_exeext conftest.$ac_ext
13437 fi
13438 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13439 echo "${ECHO_T}$ac_cv_func_accept" >&6
13440 if test $ac_cv_func_accept = yes; then
13441   gcj_checkNsl=0
13442                         gcj_cv_lib_sockets="-lsocket -lnsl"
13443 fi
13444
13445          unset ac_cv_func_accept
13446          LIBS=$gcj_oldLibs
13447      fi
13448      unset ac_cv_func_gethostbyname
13449      gcj_oldLibs=$LIBS
13450      LIBS="$LIBS $gcj_cv_lib_sockets"
13451      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13452 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13453 if test "${ac_cv_func_gethostbyname+set}" = set; then
13454   echo $ECHO_N "(cached) $ECHO_C" >&6
13455 else
13456   if test x$gcc_no_link = xyes; then
13457   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13459    { (exit 1); exit 1; }; }
13460 fi
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13469 #define gethostbyname innocuous_gethostbyname
13470
13471 /* System header to define __stub macros and hopefully few prototypes,
13472     which can conflict with char gethostbyname (); below.
13473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13474     <limits.h> exists even on freestanding compilers.  */
13475
13476 #ifdef __STDC__
13477 # include <limits.h>
13478 #else
13479 # include <assert.h>
13480 #endif
13481
13482 #undef gethostbyname
13483
13484 /* Override any gcc2 internal prototype to avoid an error.  */
13485 #ifdef __cplusplus
13486 extern "C"
13487 {
13488 #endif
13489 /* We use char because int might match the return type of a gcc2
13490    builtin and then its argument prototype would still apply.  */
13491 char gethostbyname ();
13492 /* The GNU C library defines this for functions which it implements
13493     to always fail with ENOSYS.  Some functions are actually named
13494     something starting with __ and the normal name is an alias.  */
13495 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13496 choke me
13497 #else
13498 char (*f) () = gethostbyname;
13499 #endif
13500 #ifdef __cplusplus
13501 }
13502 #endif
13503
13504 int
13505 main ()
13506 {
13507 return f != gethostbyname;
13508   ;
13509   return 0;
13510 }
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514   (eval $ac_link) 2>conftest.er1
13515   ac_status=$?
13516   grep -v '^ *+' conftest.er1 >conftest.err
13517   rm -f conftest.er1
13518   cat conftest.err >&5
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); } &&
13521          { ac_try='test -z "$ac_c_werror_flag"
13522                          || test ! -s conftest.err'
13523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524   (eval $ac_try) 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; } &&
13528          { ac_try='test -s conftest$ac_exeext'
13529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530   (eval $ac_try) 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   ac_cv_func_gethostbyname=yes
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 ac_cv_func_gethostbyname=no
13540 fi
13541 rm -f conftest.err conftest.$ac_objext \
13542       conftest$ac_exeext conftest.$ac_ext
13543 fi
13544 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13545 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13546 if test $ac_cv_func_gethostbyname = yes; then
13547   :
13548 else
13549   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13550 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13551 if test "${ac_cv_lib_nsl_main+set}" = set; then
13552   echo $ECHO_N "(cached) $ECHO_C" >&6
13553 else
13554   ac_check_lib_save_LIBS=$LIBS
13555 LIBS="-lnsl  $LIBS"
13556 if test x$gcc_no_link = xyes; then
13557   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13558 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13559    { (exit 1); exit 1; }; }
13560 fi
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h.  */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h.  */
13567
13568
13569 int
13570 main ()
13571 {
13572 main ();
13573   ;
13574   return 0;
13575 }
13576 _ACEOF
13577 rm -f conftest.$ac_objext conftest$ac_exeext
13578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13579   (eval $ac_link) 2>conftest.er1
13580   ac_status=$?
13581   grep -v '^ *+' conftest.er1 >conftest.err
13582   rm -f conftest.er1
13583   cat conftest.err >&5
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); } &&
13586          { ac_try='test -z "$ac_c_werror_flag"
13587                          || test ! -s conftest.err'
13588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13589   (eval $ac_try) 2>&5
13590   ac_status=$?
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); }; } &&
13593          { ac_try='test -s conftest$ac_exeext'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; }; then
13599   ac_cv_lib_nsl_main=yes
13600 else
13601   echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13603
13604 ac_cv_lib_nsl_main=no
13605 fi
13606 rm -f conftest.err conftest.$ac_objext \
13607       conftest$ac_exeext conftest.$ac_ext
13608 LIBS=$ac_check_lib_save_LIBS
13609 fi
13610 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13611 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13612 if test $ac_cv_lib_nsl_main = yes; then
13613   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13614 fi
13615
13616 fi
13617
13618      unset ac_cv_func_gethostbyname
13619      LIBS=$gcj_oldLIBS
13620
13621 fi
13622 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13623 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13624    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13625
13626    if test "$with_system_zlib" = yes; then
13627       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13628 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13629 if test "${ac_cv_lib_z_deflate+set}" = set; then
13630   echo $ECHO_N "(cached) $ECHO_C" >&6
13631 else
13632   ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lz  $LIBS"
13634 if test x$gcc_no_link = xyes; then
13635   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13637    { (exit 1); exit 1; }; }
13638 fi
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645
13646 /* Override any gcc2 internal prototype to avoid an error.  */
13647 #ifdef __cplusplus
13648 extern "C"
13649 #endif
13650 /* We use char because int might match the return type of a gcc2
13651    builtin and then its argument prototype would still apply.  */
13652 char deflate ();
13653 int
13654 main ()
13655 {
13656 deflate ();
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13663   (eval $ac_link) 2>conftest.er1
13664   ac_status=$?
13665   grep -v '^ *+' conftest.er1 >conftest.err
13666   rm -f conftest.er1
13667   cat conftest.err >&5
13668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669   (exit $ac_status); } &&
13670          { ac_try='test -z "$ac_c_werror_flag"
13671                          || test ! -s conftest.err'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; } &&
13677          { ac_try='test -s conftest$ac_exeext'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; }; then
13683   ac_cv_lib_z_deflate=yes
13684 else
13685   echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13687
13688 ac_cv_lib_z_deflate=no
13689 fi
13690 rm -f conftest.err conftest.$ac_objext \
13691       conftest$ac_exeext conftest.$ac_ext
13692 LIBS=$ac_check_lib_save_LIBS
13693 fi
13694 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13695 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13696 if test $ac_cv_lib_z_deflate = yes; then
13697   ZLIBSPEC=-lz
13698 else
13699   ZLIBSPEC=
13700 fi
13701
13702    fi
13703
13704    # Test for Gtk stuff, if asked for.
13705    if test "$use_gtk_awt" = yes; then
13706
13707   succeeded=no
13708
13709   if test -z "$PKG_CONFIG"; then
13710     # Extract the first word of "pkg-config", so it can be a program name with args.
13711 set dummy pkg-config; ac_word=$2
13712 echo "$as_me:$LINENO: checking for $ac_word" >&5
13713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13714 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13715   echo $ECHO_N "(cached) $ECHO_C" >&6
13716 else
13717   case $PKG_CONFIG in
13718   [\\/]* | ?:[\\/]*)
13719   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13720   ;;
13721   *)
13722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13724 do
13725   IFS=$as_save_IFS
13726   test -z "$as_dir" && as_dir=.
13727   for ac_exec_ext in '' $ac_executable_extensions; do
13728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13731     break 2
13732   fi
13733 done
13734 done
13735
13736   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13737   ;;
13738 esac
13739 fi
13740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13741
13742 if test -n "$PKG_CONFIG"; then
13743   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13744 echo "${ECHO_T}$PKG_CONFIG" >&6
13745 else
13746   echo "$as_me:$LINENO: result: no" >&5
13747 echo "${ECHO_T}no" >&6
13748 fi
13749
13750   fi
13751
13752   if test "$PKG_CONFIG" = "no" ; then
13753      echo "*** The pkg-config script could not be found. Make sure it is"
13754      echo "*** in your path, or set the PKG_CONFIG environment variable"
13755      echo "*** to the full path to pkg-config."
13756      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13757   else
13758      PKG_CONFIG_MIN_VERSION=0.9.0
13759      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13760         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13761 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13762
13763         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13764             echo "$as_me:$LINENO: result: yes" >&5
13765 echo "${ECHO_T}yes" >&6
13766             succeeded=yes
13767
13768             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13769 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13770             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13771             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13772 echo "${ECHO_T}$GTK_CFLAGS" >&6
13773
13774             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13775 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13776             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13777             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13778 echo "${ECHO_T}$GTK_LIBS" >&6
13779         else
13780             GTK_CFLAGS=""
13781             GTK_LIBS=""
13782             ## If we have a custom action on failure, don't print errors, but
13783             ## do set a variable so people can do so.
13784             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13785             echo $GTK_PKG_ERRORS
13786         fi
13787
13788
13789
13790      else
13791         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13792         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13793      fi
13794   fi
13795
13796   if test $succeeded = yes; then
13797      :
13798   else
13799      { { 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
13800 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;}
13801    { (exit 1); exit 1; }; }
13802   fi
13803
13804
13805
13806
13807
13808   succeeded=no
13809
13810   if test -z "$PKG_CONFIG"; then
13811     # Extract the first word of "pkg-config", so it can be a program name with args.
13812 set dummy pkg-config; ac_word=$2
13813 echo "$as_me:$LINENO: checking for $ac_word" >&5
13814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13816   echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818   case $PKG_CONFIG in
13819   [\\/]* | ?:[\\/]*)
13820   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13821   ;;
13822   *)
13823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13825 do
13826   IFS=$as_save_IFS
13827   test -z "$as_dir" && as_dir=.
13828   for ac_exec_ext in '' $ac_executable_extensions; do
13829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13832     break 2
13833   fi
13834 done
13835 done
13836
13837   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13838   ;;
13839 esac
13840 fi
13841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13842
13843 if test -n "$PKG_CONFIG"; then
13844   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13845 echo "${ECHO_T}$PKG_CONFIG" >&6
13846 else
13847   echo "$as_me:$LINENO: result: no" >&5
13848 echo "${ECHO_T}no" >&6
13849 fi
13850
13851   fi
13852
13853   if test "$PKG_CONFIG" = "no" ; then
13854      echo "*** The pkg-config script could not be found. Make sure it is"
13855      echo "*** in your path, or set the PKG_CONFIG environment variable"
13856      echo "*** to the full path to pkg-config."
13857      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13858   else
13859      PKG_CONFIG_MIN_VERSION=0.9.0
13860      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13861         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13862 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13863
13864         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13865             echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13867             succeeded=yes
13868
13869             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13870 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13871             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13872             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13873 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13874
13875             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13876 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13877             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13878             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13879 echo "${ECHO_T}$GLIB_LIBS" >&6
13880         else
13881             GLIB_CFLAGS=""
13882             GLIB_LIBS=""
13883             ## If we have a custom action on failure, don't print errors, but
13884             ## do set a variable so people can do so.
13885             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13886             echo $GLIB_PKG_ERRORS
13887         fi
13888
13889
13890
13891      else
13892         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13893         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13894      fi
13895   fi
13896
13897   if test $succeeded = yes; then
13898      :
13899   else
13900      { { 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
13901 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;}
13902    { (exit 1); exit 1; }; }
13903   fi
13904
13905
13906
13907
13908
13909   succeeded=no
13910
13911   if test -z "$PKG_CONFIG"; then
13912     # Extract the first word of "pkg-config", so it can be a program name with args.
13913 set dummy pkg-config; ac_word=$2
13914 echo "$as_me:$LINENO: checking for $ac_word" >&5
13915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13916 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   case $PKG_CONFIG in
13920   [\\/]* | ?:[\\/]*)
13921   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13922   ;;
13923   *)
13924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13926 do
13927   IFS=$as_save_IFS
13928   test -z "$as_dir" && as_dir=.
13929   for ac_exec_ext in '' $ac_executable_extensions; do
13930   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933     break 2
13934   fi
13935 done
13936 done
13937
13938   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13939   ;;
13940 esac
13941 fi
13942 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13943
13944 if test -n "$PKG_CONFIG"; then
13945   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13946 echo "${ECHO_T}$PKG_CONFIG" >&6
13947 else
13948   echo "$as_me:$LINENO: result: no" >&5
13949 echo "${ECHO_T}no" >&6
13950 fi
13951
13952   fi
13953
13954   if test "$PKG_CONFIG" = "no" ; then
13955      echo "*** The pkg-config script could not be found. Make sure it is"
13956      echo "*** in your path, or set the PKG_CONFIG environment variable"
13957      echo "*** to the full path to pkg-config."
13958      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13959   else
13960      PKG_CONFIG_MIN_VERSION=0.9.0
13961      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13962         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13963 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13964
13965         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13966             echo "$as_me:$LINENO: result: yes" >&5
13967 echo "${ECHO_T}yes" >&6
13968             succeeded=yes
13969
13970             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13971 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13972             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13973             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13974 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13975
13976             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13977 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13978             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13979             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13980 echo "${ECHO_T}$LIBART_LIBS" >&6
13981         else
13982             LIBART_CFLAGS=""
13983             LIBART_LIBS=""
13984             ## If we have a custom action on failure, don't print errors, but
13985             ## do set a variable so people can do so.
13986             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13987             echo $LIBART_PKG_ERRORS
13988         fi
13989
13990
13991
13992      else
13993         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13994         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13995      fi
13996   fi
13997
13998   if test $succeeded = yes; then
13999      :
14000   else
14001      { { 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
14002 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;}
14003    { (exit 1); exit 1; }; }
14004   fi
14005
14006
14007
14008
14009       # We require the XTest Extension to support java.awt.Robot.
14010       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14011 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14012 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   ac_check_lib_save_LIBS=$LIBS
14016 LIBS="-lXtst ${X_LIBS} $LIBS"
14017 if test x$gcc_no_link = xyes; then
14018   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14020    { (exit 1); exit 1; }; }
14021 fi
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h.  */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h.  */
14028
14029 /* Override any gcc2 internal prototype to avoid an error.  */
14030 #ifdef __cplusplus
14031 extern "C"
14032 #endif
14033 /* We use char because int might match the return type of a gcc2
14034    builtin and then its argument prototype would still apply.  */
14035 char XTestQueryExtension ();
14036 int
14037 main ()
14038 {
14039 XTestQueryExtension ();
14040   ;
14041   return 0;
14042 }
14043 _ACEOF
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046   (eval $ac_link) 2>conftest.er1
14047   ac_status=$?
14048   grep -v '^ *+' conftest.er1 >conftest.err
14049   rm -f conftest.er1
14050   cat conftest.err >&5
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } &&
14053          { ac_try='test -z "$ac_c_werror_flag"
14054                          || test ! -s conftest.err'
14055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056   (eval $ac_try) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); }; } &&
14060          { ac_try='test -s conftest$ac_exeext'
14061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062   (eval $ac_try) 2>&5
14063   ac_status=$?
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); }; }; then
14066   ac_cv_lib_Xtst_XTestQueryExtension=yes
14067 else
14068   echo "$as_me: failed program was:" >&5
14069 sed 's/^/| /' conftest.$ac_ext >&5
14070
14071 ac_cv_lib_Xtst_XTestQueryExtension=no
14072 fi
14073 rm -f conftest.err conftest.$ac_objext \
14074       conftest$ac_exeext conftest.$ac_ext
14075 LIBS=$ac_check_lib_save_LIBS
14076 fi
14077 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14078 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14079 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14080   true
14081 else
14082   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14083 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14084    { (exit 1); exit 1; }; }
14085 fi
14086
14087    fi
14088
14089    # On Solaris, and maybe other architectures, the Boehm collector
14090    # requires -ldl.
14091    if test "$GC" = boehm; then
14092       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14093 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14094 if test "${ac_cv_lib_dl_main+set}" = set; then
14095   echo $ECHO_N "(cached) $ECHO_C" >&6
14096 else
14097   ac_check_lib_save_LIBS=$LIBS
14098 LIBS="-ldl  $LIBS"
14099 if test x$gcc_no_link = xyes; then
14100   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14102    { (exit 1); exit 1; }; }
14103 fi
14104 cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110
14111
14112 int
14113 main ()
14114 {
14115 main ();
14116   ;
14117   return 0;
14118 }
14119 _ACEOF
14120 rm -f conftest.$ac_objext conftest$ac_exeext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14122   (eval $ac_link) 2>conftest.er1
14123   ac_status=$?
14124   grep -v '^ *+' conftest.er1 >conftest.err
14125   rm -f conftest.er1
14126   cat conftest.err >&5
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); } &&
14129          { ac_try='test -z "$ac_c_werror_flag"
14130                          || test ! -s conftest.err'
14131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132   (eval $ac_try) 2>&5
14133   ac_status=$?
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); }; } &&
14136          { ac_try='test -s conftest$ac_exeext'
14137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138   (eval $ac_try) 2>&5
14139   ac_status=$?
14140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141   (exit $ac_status); }; }; then
14142   ac_cv_lib_dl_main=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 ac_cv_lib_dl_main=no
14148 fi
14149 rm -f conftest.err conftest.$ac_objext \
14150       conftest$ac_exeext conftest.$ac_ext
14151 LIBS=$ac_check_lib_save_LIBS
14152 fi
14153 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14154 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14155 if test $ac_cv_lib_dl_main = yes; then
14156   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14157 fi
14158
14159    fi
14160 fi
14161
14162 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14163 case $build in
14164     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14165     *)         CLASSPATH_SEPARATOR=':' ;;
14166 esac
14167
14168
14169 # We must search the source tree for java.lang, since we still don't
14170 # have libgcj.jar nor java/lang/*.class
14171 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14172 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14173
14174 # Since some classes depend on this one, we need its source available
14175 # before we can do any GCJ compilation test :-(
14176 if test ! -f gnu/classpath/Configuration.java; then
14177   test -d gnu || mkdir gnu
14178   test -d gnu/classpath || mkdir gnu/classpath
14179   # Note that it is not crucial that all the values here be correct.
14180   sed -e "s,@prefix@,$prefix," \
14181       -e "s,@VERSION@,$VERSION," \
14182       -e "s,@LIBDEBUG@,false," \
14183       -e "s,@INIT_LOAD_LIBRARY@,false," \
14184       -e "s,@@,$LIBGCJDEBUG," \
14185       -e "s,@default_toolkit@,$TOOLKIT," \
14186       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14187       -e "s,@GTK_CAIRO_ENABLED@,false," \
14188         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14189         > gnu/classpath/Configuration.java
14190   # We do not want to redirect the output of the grep below to /dev/null,
14191   # but we add /dev/null to the input list so that grep will print the
14192   # filename of Configuration.java in case it finds any matches.
14193   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14194     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14195 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14196    { (exit 1); exit 1; }; }
14197   fi
14198 fi
14199
14200 if test -n "$ac_tool_prefix"; then
14201   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14202 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14203 echo "$as_me:$LINENO: checking for $ac_word" >&5
14204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14205 if test "${ac_cv_prog_GCJ+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208   if test -n "$GCJ"; then
14209   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14210 else
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $PATH
14213 do
14214   IFS=$as_save_IFS
14215   test -z "$as_dir" && as_dir=.
14216   for ac_exec_ext in '' $ac_executable_extensions; do
14217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14220     break 2
14221   fi
14222 done
14223 done
14224
14225 fi
14226 fi
14227 GCJ=$ac_cv_prog_GCJ
14228 if test -n "$GCJ"; then
14229   echo "$as_me:$LINENO: result: $GCJ" >&5
14230 echo "${ECHO_T}$GCJ" >&6
14231 else
14232   echo "$as_me:$LINENO: result: no" >&5
14233 echo "${ECHO_T}no" >&6
14234 fi
14235
14236 fi
14237 if test -z "$ac_cv_prog_GCJ"; then
14238   ac_ct_GCJ=$GCJ
14239   # Extract the first word of "gcj", so it can be a program name with args.
14240 set dummy gcj; ac_word=$2
14241 echo "$as_me:$LINENO: checking for $ac_word" >&5
14242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14243 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14244   echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246   if test -n "$ac_ct_GCJ"; then
14247   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14248 else
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14251 do
14252   IFS=$as_save_IFS
14253   test -z "$as_dir" && as_dir=.
14254   for ac_exec_ext in '' $ac_executable_extensions; do
14255   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256     ac_cv_prog_ac_ct_GCJ="gcj"
14257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14258     break 2
14259   fi
14260 done
14261 done
14262
14263   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14264 fi
14265 fi
14266 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14267 if test -n "$ac_ct_GCJ"; then
14268   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14269 echo "${ECHO_T}$ac_ct_GCJ" >&6
14270 else
14271   echo "$as_me:$LINENO: result: no" >&5
14272 echo "${ECHO_T}no" >&6
14273 fi
14274
14275   GCJ=$ac_ct_GCJ
14276 else
14277   GCJ="$ac_cv_prog_GCJ"
14278 fi
14279
14280   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14281
14282
14283
14284
14285 # Now remove it.
14286 rm -f gnu/classpath/Configuration.java
14287
14288 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14289
14290 echo "$as_me:$LINENO: checking for void *" >&5
14291 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14292 if test "${ac_cv_type_void_p+set}" = set; then
14293   echo $ECHO_N "(cached) $ECHO_C" >&6
14294 else
14295   cat >conftest.$ac_ext <<_ACEOF
14296 /* confdefs.h.  */
14297 _ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h.  */
14301 $ac_includes_default
14302 int
14303 main ()
14304 {
14305 if ((void * *) 0)
14306   return 0;
14307 if (sizeof (void *))
14308   return 0;
14309   ;
14310   return 0;
14311 }
14312 _ACEOF
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315   (eval $ac_compile) 2>conftest.er1
14316   ac_status=$?
14317   grep -v '^ *+' conftest.er1 >conftest.err
14318   rm -f conftest.er1
14319   cat conftest.err >&5
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); } &&
14322          { ac_try='test -z "$ac_c_werror_flag"
14323                          || test ! -s conftest.err'
14324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325   (eval $ac_try) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; } &&
14329          { ac_try='test -s conftest.$ac_objext'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_cv_type_void_p=yes
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ac_cv_type_void_p=no
14341 fi
14342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14343 fi
14344 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14345 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14346
14347 echo "$as_me:$LINENO: checking size of void *" >&5
14348 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14349 if test "${ac_cv_sizeof_void_p+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   if test "$ac_cv_type_void_p" = yes; then
14353   # The cast to unsigned long works around a bug in the HP C Compiler
14354   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14355   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14356   # This bug is HP SR number 8606223364.
14357   if test "$cross_compiling" = yes; then
14358   # Depending upon the size, compute the lo and hi bounds.
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 $ac_includes_default
14366 int
14367 main ()
14368 {
14369 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14370 test_array [0] = 0
14371
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378   (eval $ac_compile) 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag"
14386                          || test ! -s conftest.err'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_lo=0 ac_mid=0
14399   while :; do
14400     cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h.  */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h.  */
14406 $ac_includes_default
14407 int
14408 main ()
14409 {
14410 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14411 test_array [0] = 0
14412
14413   ;
14414   return 0;
14415 }
14416 _ACEOF
14417 rm -f conftest.$ac_objext
14418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14419   (eval $ac_compile) 2>conftest.er1
14420   ac_status=$?
14421   grep -v '^ *+' conftest.er1 >conftest.err
14422   rm -f conftest.er1
14423   cat conftest.err >&5
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); } &&
14426          { ac_try='test -z "$ac_c_werror_flag"
14427                          || test ! -s conftest.err'
14428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429   (eval $ac_try) 2>&5
14430   ac_status=$?
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); }; } &&
14433          { ac_try='test -s conftest.$ac_objext'
14434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435   (eval $ac_try) 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }; }; then
14439   ac_hi=$ac_mid; break
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444 ac_lo=`expr $ac_mid + 1`
14445                     if test $ac_lo -le $ac_mid; then
14446                       ac_lo= ac_hi=
14447                       break
14448                     fi
14449                     ac_mid=`expr 2 '*' $ac_mid + 1`
14450 fi
14451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14452   done
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h.  */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h.  */
14463 $ac_includes_default
14464 int
14465 main ()
14466 {
14467 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14468 test_array [0] = 0
14469
14470   ;
14471   return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14476   (eval $ac_compile) 2>conftest.er1
14477   ac_status=$?
14478   grep -v '^ *+' conftest.er1 >conftest.err
14479   rm -f conftest.er1
14480   cat conftest.err >&5
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); } &&
14483          { ac_try='test -z "$ac_c_werror_flag"
14484                          || test ! -s conftest.err'
14485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486   (eval $ac_try) 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; } &&
14490          { ac_try='test -s conftest.$ac_objext'
14491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14492   (eval $ac_try) 2>&5
14493   ac_status=$?
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); }; }; then
14496   ac_hi=-1 ac_mid=-1
14497   while :; do
14498     cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 int
14506 main ()
14507 {
14508 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14509 test_array [0] = 0
14510
14511   ;
14512   return 0;
14513 }
14514 _ACEOF
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517   (eval $ac_compile) 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag"
14525                          || test ! -s conftest.err'
14526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527   (eval $ac_try) 2>&5
14528   ac_status=$?
14529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530   (exit $ac_status); }; } &&
14531          { ac_try='test -s conftest.$ac_objext'
14532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533   (eval $ac_try) 2>&5
14534   ac_status=$?
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); }; }; then
14537   ac_lo=$ac_mid; break
14538 else
14539   echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_hi=`expr '(' $ac_mid ')' - 1`
14543                        if test $ac_mid -le $ac_hi; then
14544                          ac_lo= ac_hi=
14545                          break
14546                        fi
14547                        ac_mid=`expr 2 '*' $ac_mid`
14548 fi
14549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14550   done
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555 ac_lo= ac_hi=
14556 fi
14557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14558 fi
14559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14560 # Binary search between lo and hi bounds.
14561 while test "x$ac_lo" != "x$ac_hi"; do
14562   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14563   cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569 $ac_includes_default
14570 int
14571 main ()
14572 {
14573 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14574 test_array [0] = 0
14575
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582   (eval $ac_compile) 2>conftest.er1
14583   ac_status=$?
14584   grep -v '^ *+' conftest.er1 >conftest.err
14585   rm -f conftest.er1
14586   cat conftest.err >&5
14587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588   (exit $ac_status); } &&
14589          { ac_try='test -z "$ac_c_werror_flag"
14590                          || test ! -s conftest.err'
14591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592   (eval $ac_try) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); }; } &&
14596          { ac_try='test -s conftest.$ac_objext'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; }; then
14602   ac_hi=$ac_mid
14603 else
14604   echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_lo=`expr '(' $ac_mid ')' + 1`
14608 fi
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610 done
14611 case $ac_lo in
14612 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14613 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14614 See \`config.log' for more details." >&5
14615 echo "$as_me: error: cannot compute sizeof (void *), 77
14616 See \`config.log' for more details." >&2;}
14617    { (exit 1); exit 1; }; } ;;
14618 esac
14619 else
14620   if test "$cross_compiling" = yes; then
14621   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14622 See \`config.log' for more details." >&5
14623 echo "$as_me: error: cannot run test program while cross compiling
14624 See \`config.log' for more details." >&2;}
14625    { (exit 1); exit 1; }; }
14626 else
14627   cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633 $ac_includes_default
14634 long longval () { return (long) (sizeof (void *)); }
14635 unsigned long ulongval () { return (long) (sizeof (void *)); }
14636 #include <stdio.h>
14637 #include <stdlib.h>
14638 int
14639 main ()
14640 {
14641
14642   FILE *f = fopen ("conftest.val", "w");
14643   if (! f)
14644     exit (1);
14645   if (((long) (sizeof (void *))) < 0)
14646     {
14647       long i = longval ();
14648       if (i != ((long) (sizeof (void *))))
14649         exit (1);
14650       fprintf (f, "%ld\n", i);
14651     }
14652   else
14653     {
14654       unsigned long i = ulongval ();
14655       if (i != ((long) (sizeof (void *))))
14656         exit (1);
14657       fprintf (f, "%lu\n", i);
14658     }
14659   exit (ferror (f) || fclose (f) != 0);
14660
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest$ac_exeext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14667   (eval $ac_link) 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672   (eval $ac_try) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; }; then
14676   ac_cv_sizeof_void_p=`cat conftest.val`
14677 else
14678   echo "$as_me: program exited with status $ac_status" >&5
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ( exit $ac_status )
14683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14684 See \`config.log' for more details." >&5
14685 echo "$as_me: error: cannot compute sizeof (void *), 77
14686 See \`config.log' for more details." >&2;}
14687    { (exit 1); exit 1; }; }
14688 fi
14689 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14690 fi
14691 fi
14692 rm -f conftest.val
14693 else
14694   ac_cv_sizeof_void_p=0
14695 fi
14696 fi
14697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14698 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14699 cat >>confdefs.h <<_ACEOF
14700 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14701 _ACEOF
14702
14703
14704
14705 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14706 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14707 if test "${ac_cv_c_bigendian+set}" = set; then
14708   echo $ECHO_N "(cached) $ECHO_C" >&6
14709 else
14710   # See if sys/param.h defines the BYTE_ORDER macro.
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h.  */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h.  */
14717 #include <sys/types.h>
14718 #include <sys/param.h>
14719
14720 int
14721 main ()
14722 {
14723 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14724  bogus endian macros
14725 #endif
14726
14727   ;
14728   return 0;
14729 }
14730 _ACEOF
14731 rm -f conftest.$ac_objext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14733   (eval $ac_compile) 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } &&
14740          { ac_try='test -z "$ac_c_werror_flag"
14741                          || test ! -s conftest.err'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; } &&
14747          { ac_try='test -s conftest.$ac_objext'
14748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; }; then
14753   # It does; now see whether it defined to BIG_ENDIAN or not.
14754 cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h.  */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h.  */
14760 #include <sys/types.h>
14761 #include <sys/param.h>
14762
14763 int
14764 main ()
14765 {
14766 #if BYTE_ORDER != BIG_ENDIAN
14767  not big endian
14768 #endif
14769
14770   ;
14771   return 0;
14772 }
14773 _ACEOF
14774 rm -f conftest.$ac_objext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14776   (eval $ac_compile) 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -z "$ac_c_werror_flag"
14784                          || test ! -s conftest.err'
14785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786   (eval $ac_try) 2>&5
14787   ac_status=$?
14788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789   (exit $ac_status); }; } &&
14790          { ac_try='test -s conftest.$ac_objext'
14791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792   (eval $ac_try) 2>&5
14793   ac_status=$?
14794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795   (exit $ac_status); }; }; then
14796   ac_cv_c_bigendian=yes
14797 else
14798   echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.$ac_ext >&5
14800
14801 ac_cv_c_bigendian=no
14802 fi
14803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14804 else
14805   echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 # It does not; compile a test program.
14809 if test "$cross_compiling" = yes; then
14810   # try to guess the endianness by grepping values into an object file
14811   ac_cv_c_bigendian=unknown
14812   cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h.  */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h.  */
14818 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14819 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14820 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14821 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14822 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14823 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14824 int
14825 main ()
14826 {
14827  _ascii (); _ebcdic ();
14828   ;
14829   return 0;
14830 }
14831 _ACEOF
14832 rm -f conftest.$ac_objext
14833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14834   (eval $ac_compile) 2>conftest.er1
14835   ac_status=$?
14836   grep -v '^ *+' conftest.er1 >conftest.err
14837   rm -f conftest.er1
14838   cat conftest.err >&5
14839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } &&
14841          { ac_try='test -z "$ac_c_werror_flag"
14842                          || test ! -s conftest.err'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; } &&
14848          { ac_try='test -s conftest.$ac_objext'
14849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14850   (eval $ac_try) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; }; then
14854   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14855   ac_cv_c_bigendian=yes
14856 fi
14857 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14858   if test "$ac_cv_c_bigendian" = unknown; then
14859     ac_cv_c_bigendian=no
14860   else
14861     # finding both strings is unlikely to happen, but who knows?
14862     ac_cv_c_bigendian=unknown
14863   fi
14864 fi
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869 fi
14870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14871 else
14872   cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878 int
14879 main ()
14880 {
14881   /* Are we little or big endian?  From Harbison&Steele.  */
14882   union
14883   {
14884     long l;
14885     char c[sizeof (long)];
14886   } u;
14887   u.l = 1;
14888   exit (u.c[sizeof (long) - 1] == 1);
14889 }
14890 _ACEOF
14891 rm -f conftest$ac_exeext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14893   (eval $ac_link) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; }; then
14902   ac_cv_c_bigendian=no
14903 else
14904   echo "$as_me: program exited with status $ac_status" >&5
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908 ( exit $ac_status )
14909 ac_cv_c_bigendian=yes
14910 fi
14911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14912 fi
14913 fi
14914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14915 fi
14916 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14917 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14918 case $ac_cv_c_bigendian in
14919   yes)
14920
14921 cat >>confdefs.h <<\_ACEOF
14922 #define WORDS_BIGENDIAN 1
14923 _ACEOF
14924  ;;
14925   no)
14926      ;;
14927   *)
14928     { { echo "$as_me:$LINENO: error: unknown endianness
14929 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14930 echo "$as_me: error: unknown endianness
14931 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14932    { (exit 1); exit 1; }; } ;;
14933 esac
14934
14935
14936 ZLIBS=
14937 SYS_ZLIBS=
14938 ZINCS=
14939
14940 if test -z "$ZLIBSPEC"; then
14941    # Use zlib from the GCC tree.
14942    ZINCS='-I$(top_srcdir)/../zlib'
14943    ZLIBS=../zlib/libzgcj_convenience.la
14944 else
14945    # System's zlib.
14946    SYS_ZLIBS="$ZLIBSPEC"
14947 fi
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959 if test "$NATIVE" = yes; then
14960   NATIVE_TRUE=
14961   NATIVE_FALSE='#'
14962 else
14963   NATIVE_TRUE='#'
14964   NATIVE_FALSE=
14965 fi
14966
14967
14968
14969 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14970   NEEDS_DATA_START_TRUE=
14971   NEEDS_DATA_START_FALSE='#'
14972 else
14973   NEEDS_DATA_START_TRUE='#'
14974   NEEDS_DATA_START_FALSE=
14975 fi
14976
14977
14978
14979 # Process the option "--enable-version-specific-runtime-libs"
14980 # Calculate toolexeclibdir
14981 case ${version_specific_libs} in
14982   yes)
14983     # Need the gcc compiler version to know where to install libraries
14984     # and header files if --enable-version-specific-runtime-libs option
14985     # is selected.
14986     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14987     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14988     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14989     toolexeclibdir=$toolexecmainlibdir
14990     ;;
14991   no)
14992     if test -n "$with_cross_host" &&
14993        test x"$with_cross_host" != x"no"; then
14994       # Install a library built with a cross compiler in tooldir, not libdir.
14995       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14996       toolexecmainlibdir='$(toolexecdir)/lib'
14997     else
14998       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14999       toolexecmainlibdir='$(libdir)'
15000     fi
15001     multi_os_directory=`$CC -print-multi-os-directory`
15002     case $multi_os_directory in
15003       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15004       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15005     esac
15006     ;;
15007 esac
15008
15009
15010
15011
15012 # Determine where the standard .db file and GNU Classpath JNI
15013 # libraries are found.
15014 multi_os_directory=`$CC -print-multi-os-directory`
15015 case $multi_os_directory in
15016   .)
15017    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15018    ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/gcj-`cat $srcdir/../gcc/BASE-VER`"
15019    ;;
15020   *)
15021    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15022    ac_configure_args="$ac_configure_args --with-native-libdir=\$\(libdir\)/$multi_os_directory/gcj-`cat $srcdir/../gcc/BASE-VER`"
15023    ;;
15024 esac
15025
15026
15027 # Determine gcj version number.
15028 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15029 GCJVERSION=$gcjversion
15030
15031
15032 cat >>confdefs.h <<_ACEOF
15033 #define GCJVERSION "$GCJVERSION"
15034 _ACEOF
15035
15036
15037
15038 cat >>confdefs.h <<\_ACEOF
15039 #define JV_VERSION "1.4.2"
15040 _ACEOF
15041
15042
15043 cat >>confdefs.h <<\_ACEOF
15044 #define JV_API_VERSION "1.4"
15045 _ACEOF
15046
15047
15048
15049 case "${with_gxx_include_dir}" in
15050   yes)
15051     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15052 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15053    { (exit 1); exit 1; }; }
15054     ;;
15055   no | "")
15056     case "${enable_version_specific_runtime_libs}" in
15057       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15058       *)
15059         libstdcxx_incdir='c++/$(gcc_version)'
15060         gxx_include_dir='include/$(libstdcxx_incdir)'
15061         if test -n "$with_cross_host" &&
15062            test x"$with_cross_host" != x"no"; then
15063           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15064         else
15065           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15066         fi;;
15067     esac ;;
15068   *) gxx_include_dir=${with_gxx_include_dir} ;;
15069 esac
15070
15071
15072
15073
15074 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15075 # On that system, sys/ioctl.h will not include sys/filio.h unless
15076 # BSD_COMP is defined; just including sys/filio.h is simpler.
15077 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15078 # for now.  If you change this, you also must update natFile.cc.
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15102                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15103                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15104                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15105                   dirent.h sys/rw_lock.h ifaddrs.h
15106 do
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15109   echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15112   echo $ECHO_N "(cached) $ECHO_C" >&6
15113 fi
15114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15116 else
15117   # Is the header compilable?
15118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 $ac_includes_default
15127 #include <$ac_header>
15128 _ACEOF
15129 rm -f conftest.$ac_objext
15130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15131   (eval $ac_compile) 2>conftest.er1
15132   ac_status=$?
15133   grep -v '^ *+' conftest.er1 >conftest.err
15134   rm -f conftest.er1
15135   cat conftest.err >&5
15136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137   (exit $ac_status); } &&
15138          { ac_try='test -z "$ac_c_werror_flag"
15139                          || test ! -s conftest.err'
15140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141   (eval $ac_try) 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; } &&
15145          { ac_try='test -s conftest.$ac_objext'
15146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15147   (eval $ac_try) 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); }; }; then
15151   ac_header_compiler=yes
15152 else
15153   echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15155
15156 ac_header_compiler=no
15157 fi
15158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15160 echo "${ECHO_T}$ac_header_compiler" >&6
15161
15162 # Is the header present?
15163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15165 cat >conftest.$ac_ext <<_ACEOF
15166 /* confdefs.h.  */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h.  */
15171 #include <$ac_header>
15172 _ACEOF
15173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15175   ac_status=$?
15176   grep -v '^ *+' conftest.er1 >conftest.err
15177   rm -f conftest.er1
15178   cat conftest.err >&5
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); } >/dev/null; then
15181   if test -s conftest.err; then
15182     ac_cpp_err=$ac_c_preproc_warn_flag
15183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15184   else
15185     ac_cpp_err=
15186   fi
15187 else
15188   ac_cpp_err=yes
15189 fi
15190 if test -z "$ac_cpp_err"; then
15191   ac_header_preproc=yes
15192 else
15193   echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15195
15196   ac_header_preproc=no
15197 fi
15198 rm -f conftest.err conftest.$ac_ext
15199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15200 echo "${ECHO_T}$ac_header_preproc" >&6
15201
15202 # So?  What about this header?
15203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15204   yes:no: )
15205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15209     ac_header_preproc=yes
15210     ;;
15211   no:yes:* )
15212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15224     (
15225       cat <<\_ASBOX
15226 ## ---------------------------------- ##
15227 ## Report this to the libjava lists.  ##
15228 ## ---------------------------------- ##
15229 _ASBOX
15230     ) |
15231       sed "s/^/$as_me: WARNING:     /" >&2
15232     ;;
15233 esac
15234 echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   eval "$as_ac_Header=\$ac_header_preproc"
15240 fi
15241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15243
15244 fi
15245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15246   cat >>confdefs.h <<_ACEOF
15247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15248 _ACEOF
15249
15250 fi
15251
15252 done
15253
15254
15255 for ac_header in inttypes.h
15256 do
15257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15259   echo "$as_me:$LINENO: checking for $ac_header" >&5
15260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15262   echo $ECHO_N "(cached) $ECHO_C" >&6
15263 fi
15264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15266 else
15267   # Is the header compilable?
15268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15270 cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 $ac_includes_default
15277 #include <$ac_header>
15278 _ACEOF
15279 rm -f conftest.$ac_objext
15280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15281   (eval $ac_compile) 2>conftest.er1
15282   ac_status=$?
15283   grep -v '^ *+' conftest.er1 >conftest.err
15284   rm -f conftest.er1
15285   cat conftest.err >&5
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   (exit $ac_status); } &&
15288          { ac_try='test -z "$ac_c_werror_flag"
15289                          || test ! -s conftest.err'
15290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291   (eval $ac_try) 2>&5
15292   ac_status=$?
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); }; } &&
15295          { ac_try='test -s conftest.$ac_objext'
15296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297   (eval $ac_try) 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); }; }; then
15301   ac_header_compiler=yes
15302 else
15303   echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306 ac_header_compiler=no
15307 fi
15308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15310 echo "${ECHO_T}$ac_header_compiler" >&6
15311
15312 # Is the header present?
15313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15315 cat >conftest.$ac_ext <<_ACEOF
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321 #include <$ac_header>
15322 _ACEOF
15323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } >/dev/null; then
15331   if test -s conftest.err; then
15332     ac_cpp_err=$ac_c_preproc_warn_flag
15333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15334   else
15335     ac_cpp_err=
15336   fi
15337 else
15338   ac_cpp_err=yes
15339 fi
15340 if test -z "$ac_cpp_err"; then
15341   ac_header_preproc=yes
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346   ac_header_preproc=no
15347 fi
15348 rm -f conftest.err conftest.$ac_ext
15349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15350 echo "${ECHO_T}$ac_header_preproc" >&6
15351
15352 # So?  What about this header?
15353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15354   yes:no: )
15355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15359     ac_header_preproc=yes
15360     ;;
15361   no:yes:* )
15362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15374     (
15375       cat <<\_ASBOX
15376 ## ---------------------------------- ##
15377 ## Report this to the libjava lists.  ##
15378 ## ---------------------------------- ##
15379 _ASBOX
15380     ) |
15381       sed "s/^/$as_me: WARNING:     /" >&2
15382     ;;
15383 esac
15384 echo "$as_me:$LINENO: checking for $ac_header" >&5
15385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   eval "$as_ac_Header=\$ac_header_preproc"
15390 fi
15391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15393
15394 fi
15395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15396   cat >>confdefs.h <<_ACEOF
15397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15398 _ACEOF
15399
15400
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE_INTTYPES_H 1
15403 _ACEOF
15404
15405
15406 cat >>confdefs.h <<\_ACEOF
15407 #define JV_HAVE_INTTYPES_H 1
15408 _ACEOF
15409
15410
15411 fi
15412
15413 done
15414
15415 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15416 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15417 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 #include <sys/types.h>
15427 #include <sys/wait.h>
15428 #ifndef WEXITSTATUS
15429 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15430 #endif
15431 #ifndef WIFEXITED
15432 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15433 #endif
15434
15435 int
15436 main ()
15437 {
15438   int s;
15439   wait (&s);
15440   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 rm -f conftest.$ac_objext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447   (eval $ac_compile) 2>conftest.er1
15448   ac_status=$?
15449   grep -v '^ *+' conftest.er1 >conftest.err
15450   rm -f conftest.er1
15451   cat conftest.err >&5
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); } &&
15454          { ac_try='test -z "$ac_c_werror_flag"
15455                          || test ! -s conftest.err'
15456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457   (eval $ac_try) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; } &&
15461          { ac_try='test -s conftest.$ac_objext'
15462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463   (eval $ac_try) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; }; then
15467   ac_cv_header_sys_wait_h=yes
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472 ac_cv_header_sys_wait_h=no
15473 fi
15474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15475 fi
15476 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15477 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15478 if test $ac_cv_header_sys_wait_h = yes; then
15479
15480 cat >>confdefs.h <<\_ACEOF
15481 #define HAVE_SYS_WAIT_H 1
15482 _ACEOF
15483
15484 fi
15485
15486
15487 echo "$as_me:$LINENO: checking for ssize_t" >&5
15488 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15489 if test "${ac_cv_type_ssize_t+set}" = set; then
15490   echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492   cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h.  */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h.  */
15498 $ac_includes_default
15499 int
15500 main ()
15501 {
15502 if ((ssize_t *) 0)
15503   return 0;
15504 if (sizeof (ssize_t))
15505   return 0;
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512   (eval $ac_compile) 2>conftest.er1
15513   ac_status=$?
15514   grep -v '^ *+' conftest.er1 >conftest.err
15515   rm -f conftest.er1
15516   cat conftest.err >&5
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); } &&
15519          { ac_try='test -z "$ac_c_werror_flag"
15520                          || test ! -s conftest.err'
15521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522   (eval $ac_try) 2>&5
15523   ac_status=$?
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   (exit $ac_status); }; } &&
15526          { ac_try='test -s conftest.$ac_objext'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; }; then
15532   ac_cv_type_ssize_t=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 ac_cv_type_ssize_t=no
15538 fi
15539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15540 fi
15541 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15542 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15543 if test $ac_cv_type_ssize_t = yes; then
15544   :
15545 else
15546
15547 cat >>confdefs.h <<_ACEOF
15548 #define ssize_t int
15549 _ACEOF
15550
15551 fi
15552
15553
15554 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15555 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h.  */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h.  */
15562 #include <sys/types.h>
15563 #if STDC_HEADERS
15564 #include <stdlib.h>
15565 #include <stddef.h>
15566 #endif
15567 #if HAVE_NETINET_IN_H
15568 #include <netinet/in.h>
15569 #endif
15570 int
15571 main ()
15572 {
15573 in_addr_t foo;
15574   ;
15575   return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext
15579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15580   (eval $ac_compile) 2>conftest.er1
15581   ac_status=$?
15582   grep -v '^ *+' conftest.er1 >conftest.err
15583   rm -f conftest.er1
15584   cat conftest.err >&5
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } &&
15587          { ac_try='test -z "$ac_c_werror_flag"
15588                          || test ! -s conftest.err'
15589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15590   (eval $ac_try) 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; } &&
15594          { ac_try='test -s conftest.$ac_objext'
15595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15596   (eval $ac_try) 2>&5
15597   ac_status=$?
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); }; }; then
15600
15601 cat >>confdefs.h <<\_ACEOF
15602 #define HAVE_IN_ADDR_T 1
15603 _ACEOF
15604
15605    echo "$as_me:$LINENO: result: yes" >&5
15606 echo "${ECHO_T}yes" >&6
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611 echo "$as_me:$LINENO: result: no" >&5
15612 echo "${ECHO_T}no" >&6
15613 fi
15614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15615
15616 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15617 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624 #include <netinet/in.h>
15625 int
15626 main ()
15627 {
15628 struct ip_mreq mreq;
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.$ac_objext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15635   (eval $ac_compile) 2>conftest.er1
15636   ac_status=$?
15637   grep -v '^ *+' conftest.er1 >conftest.err
15638   rm -f conftest.er1
15639   cat conftest.err >&5
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } &&
15642          { ac_try='test -z "$ac_c_werror_flag"
15643                          || test ! -s conftest.err'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; } &&
15649          { ac_try='test -s conftest.$ac_objext'
15650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651   (eval $ac_try) 2>&5
15652   ac_status=$?
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); }; }; then
15655
15656 cat >>confdefs.h <<\_ACEOF
15657 #define HAVE_STRUCT_IP_MREQ 1
15658 _ACEOF
15659
15660    echo "$as_me:$LINENO: result: yes" >&5
15661 echo "${ECHO_T}yes" >&6
15662 else
15663   echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15665
15666 echo "$as_me:$LINENO: result: no" >&5
15667 echo "${ECHO_T}no" >&6
15668 fi
15669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15670
15671 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15672 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h.  */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h.  */
15679 #include <netinet/in.h>
15680 int
15681 main ()
15682 {
15683 struct ipv6_mreq mreq6;
15684   ;
15685   return 0;
15686 }
15687 _ACEOF
15688 rm -f conftest.$ac_objext
15689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15690   (eval $ac_compile) 2>conftest.er1
15691   ac_status=$?
15692   grep -v '^ *+' conftest.er1 >conftest.err
15693   rm -f conftest.er1
15694   cat conftest.err >&5
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } &&
15697          { ac_try='test -z "$ac_c_werror_flag"
15698                          || test ! -s conftest.err'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; } &&
15704          { ac_try='test -s conftest.$ac_objext'
15705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706   (eval $ac_try) 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; }; then
15710
15711 cat >>confdefs.h <<\_ACEOF
15712 #define HAVE_STRUCT_IPV6_MREQ 1
15713 _ACEOF
15714
15715    echo "$as_me:$LINENO: result: yes" >&5
15716 echo "${ECHO_T}yes" >&6
15717 else
15718   echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 echo "$as_me:$LINENO: result: no" >&5
15722 echo "${ECHO_T}no" >&6
15723 fi
15724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15725
15726 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15727 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 #include <netinet/in.h>
15735 int
15736 main ()
15737 {
15738 struct sockaddr_in6 addr6;
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 rm -f conftest.$ac_objext
15744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15745   (eval $ac_compile) 2>conftest.er1
15746   ac_status=$?
15747   grep -v '^ *+' conftest.er1 >conftest.err
15748   rm -f conftest.er1
15749   cat conftest.err >&5
15750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751   (exit $ac_status); } &&
15752          { ac_try='test -z "$ac_c_werror_flag"
15753                          || test ! -s conftest.err'
15754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755   (eval $ac_try) 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; } &&
15759          { ac_try='test -s conftest.$ac_objext'
15760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761   (eval $ac_try) 2>&5
15762   ac_status=$?
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; }; then
15765
15766 cat >>confdefs.h <<\_ACEOF
15767 #define HAVE_INET6 1
15768 _ACEOF
15769
15770    echo "$as_me:$LINENO: result: yes" >&5
15771 echo "${ECHO_T}yes" >&6
15772 else
15773   echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776 echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6
15778 fi
15779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15780
15781 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15782 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h.  */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h.  */
15789 #define _POSIX_PII_SOCKET
15790 #include <sys/types.h>
15791 #include <sys/socket.h>
15792 int
15793 main ()
15794 {
15795 socklen_t x = 5;
15796   ;
15797   return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802   (eval $ac_compile) 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } &&
15809          { ac_try='test -z "$ac_c_werror_flag"
15810                          || test ! -s conftest.err'
15811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812   (eval $ac_try) 2>&5
15813   ac_status=$?
15814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815   (exit $ac_status); }; } &&
15816          { ac_try='test -s conftest.$ac_objext'
15817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818   (eval $ac_try) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); }; }; then
15822
15823 cat >>confdefs.h <<\_ACEOF
15824 #define HAVE_SOCKLEN_T 1
15825 _ACEOF
15826
15827    echo "$as_me:$LINENO: result: yes" >&5
15828 echo "${ECHO_T}yes" >&6
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833 echo "$as_me:$LINENO: result: no" >&5
15834 echo "${ECHO_T}no" >&6
15835 fi
15836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15837
15838 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15839 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15840 cat >conftest.$ac_ext <<_ACEOF
15841 /* confdefs.h.  */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h.  */
15846 #include <time.h>
15847 int
15848 main ()
15849 {
15850 struct tm tim; tim.tm_gmtoff = 0;
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857   (eval $ac_compile) 2>conftest.er1
15858   ac_status=$?
15859   grep -v '^ *+' conftest.er1 >conftest.err
15860   rm -f conftest.er1
15861   cat conftest.err >&5
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); } &&
15864          { ac_try='test -z "$ac_c_werror_flag"
15865                          || test ! -s conftest.err'
15866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867   (eval $ac_try) 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }; } &&
15871          { ac_try='test -s conftest.$ac_objext'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; }; then
15877
15878 cat >>confdefs.h <<\_ACEOF
15879 #define STRUCT_TM_HAS_GMTOFF 1
15880 _ACEOF
15881
15882    echo "$as_me:$LINENO: result: yes" >&5
15883 echo "${ECHO_T}yes" >&6
15884 else
15885   echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 echo "$as_me:$LINENO: result: no" >&5
15889 echo "${ECHO_T}no" >&6
15890    echo "$as_me:$LINENO: checking for global timezone variable" >&5
15891 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15892                cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h.  */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h.  */
15898 #include <time.h>
15899 int
15900 main ()
15901 {
15902 void i(){long z2 = 2*timezone;}
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909   (eval $ac_compile) 2>conftest.er1
15910   ac_status=$?
15911   grep -v '^ *+' conftest.er1 >conftest.err
15912   rm -f conftest.er1
15913   cat conftest.err >&5
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); } &&
15916          { ac_try='test -z "$ac_c_werror_flag"
15917                          || test ! -s conftest.err'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest.$ac_objext'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; }; then
15929
15930 cat >>confdefs.h <<\_ACEOF
15931 #define HAVE_TIMEZONE 1
15932 _ACEOF
15933
15934       echo "$as_me:$LINENO: result: yes" >&5
15935 echo "${ECHO_T}yes" >&6
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 echo "$as_me:$LINENO: result: no" >&5
15941 echo "${ECHO_T}no" >&6
15942        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15943 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15944               cat >conftest.$ac_ext <<_ACEOF
15945 /* confdefs.h.  */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h.  */
15950 #include <time.h>
15951 int
15952 main ()
15953 {
15954 long z2 = _timezone;
15955   ;
15956   return 0;
15957 }
15958 _ACEOF
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961   (eval $ac_compile) 2>conftest.er1
15962   ac_status=$?
15963   grep -v '^ *+' conftest.er1 >conftest.err
15964   rm -f conftest.er1
15965   cat conftest.err >&5
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } &&
15968          { ac_try='test -z "$ac_c_werror_flag"
15969                          || test ! -s conftest.err'
15970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971   (eval $ac_try) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; } &&
15975          { ac_try='test -s conftest.$ac_objext'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981
15982 cat >>confdefs.h <<\_ACEOF
15983 #define HAVE_UNDERSCORE_TIMEZONE 1
15984 _ACEOF
15985
15986           echo "$as_me:$LINENO: result: yes" >&5
15987 echo "${ECHO_T}yes" >&6
15988 else
15989   echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 echo "$as_me:$LINENO: result: no" >&5
15993 echo "${ECHO_T}no" >&6
15994 fi
15995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15996 fi
15997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15998 fi
15999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16000
16001 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16002 # for constant arguments.  Useless!
16003 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16004 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16005 if test "${ac_cv_working_alloca_h+set}" = set; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008   if test x$gcc_no_link = xyes; then
16009   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16011    { (exit 1); exit 1; }; }
16012 fi
16013 cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h.  */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h.  */
16019 #include <alloca.h>
16020 int
16021 main ()
16022 {
16023 char *p = (char *) alloca (2 * sizeof (int));
16024   ;
16025   return 0;
16026 }
16027 _ACEOF
16028 rm -f conftest.$ac_objext conftest$ac_exeext
16029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16030   (eval $ac_link) 2>conftest.er1
16031   ac_status=$?
16032   grep -v '^ *+' conftest.er1 >conftest.err
16033   rm -f conftest.er1
16034   cat conftest.err >&5
16035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036   (exit $ac_status); } &&
16037          { ac_try='test -z "$ac_c_werror_flag"
16038                          || test ! -s conftest.err'
16039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040   (eval $ac_try) 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; } &&
16044          { ac_try='test -s conftest$ac_exeext'
16045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046   (eval $ac_try) 2>&5
16047   ac_status=$?
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); }; }; then
16050   ac_cv_working_alloca_h=yes
16051 else
16052   echo "$as_me: failed program was:" >&5
16053 sed 's/^/| /' conftest.$ac_ext >&5
16054
16055 ac_cv_working_alloca_h=no
16056 fi
16057 rm -f conftest.err conftest.$ac_objext \
16058       conftest$ac_exeext conftest.$ac_ext
16059 fi
16060 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16061 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16062 if test $ac_cv_working_alloca_h = yes; then
16063
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_ALLOCA_H 1
16066 _ACEOF
16067
16068 fi
16069
16070 echo "$as_me:$LINENO: checking for alloca" >&5
16071 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16072 if test "${ac_cv_func_alloca_works+set}" = set; then
16073   echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075   if test x$gcc_no_link = xyes; then
16076   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16078    { (exit 1); exit 1; }; }
16079 fi
16080 cat >conftest.$ac_ext <<_ACEOF
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 #ifdef __GNUC__
16087 # define alloca __builtin_alloca
16088 #else
16089 # ifdef _MSC_VER
16090 #  include <malloc.h>
16091 #  define alloca _alloca
16092 # else
16093 #  if HAVE_ALLOCA_H
16094 #   include <alloca.h>
16095 #  else
16096 #   ifdef _AIX
16097  #pragma alloca
16098 #   else
16099 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16100 char *alloca ();
16101 #    endif
16102 #   endif
16103 #  endif
16104 # endif
16105 #endif
16106
16107 int
16108 main ()
16109 {
16110 char *p = (char *) alloca (1);
16111   ;
16112   return 0;
16113 }
16114 _ACEOF
16115 rm -f conftest.$ac_objext conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117   (eval $ac_link) 2>conftest.er1
16118   ac_status=$?
16119   grep -v '^ *+' conftest.er1 >conftest.err
16120   rm -f conftest.er1
16121   cat conftest.err >&5
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); } &&
16124          { ac_try='test -z "$ac_c_werror_flag"
16125                          || test ! -s conftest.err'
16126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127   (eval $ac_try) 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest$ac_exeext'
16132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133   (eval $ac_try) 2>&5
16134   ac_status=$?
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); }; }; then
16137   ac_cv_func_alloca_works=yes
16138 else
16139   echo "$as_me: failed program was:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16141
16142 ac_cv_func_alloca_works=no
16143 fi
16144 rm -f conftest.err conftest.$ac_objext \
16145       conftest$ac_exeext conftest.$ac_ext
16146 fi
16147 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16148 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16149
16150 if test $ac_cv_func_alloca_works = yes; then
16151
16152 cat >>confdefs.h <<\_ACEOF
16153 #define HAVE_ALLOCA 1
16154 _ACEOF
16155
16156 else
16157   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16158 # that cause trouble.  Some versions do not even contain alloca or
16159 # contain a buggy version.  If you still want to use their alloca,
16160 # use ar to extract alloca.o from them instead of compiling alloca.c.
16161
16162 ALLOCA=alloca.$ac_objext
16163
16164 cat >>confdefs.h <<\_ACEOF
16165 #define C_ALLOCA 1
16166 _ACEOF
16167
16168
16169 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16170 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16171 if test "${ac_cv_os_cray+set}" = set; then
16172   echo $ECHO_N "(cached) $ECHO_C" >&6
16173 else
16174   cat >conftest.$ac_ext <<_ACEOF
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180 #if defined(CRAY) && ! defined(CRAY2)
16181 webecray
16182 #else
16183 wenotbecray
16184 #endif
16185
16186 _ACEOF
16187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16188   $EGREP "webecray" >/dev/null 2>&1; then
16189   ac_cv_os_cray=yes
16190 else
16191   ac_cv_os_cray=no
16192 fi
16193 rm -f conftest*
16194
16195 fi
16196 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16197 echo "${ECHO_T}$ac_cv_os_cray" >&6
16198 if test $ac_cv_os_cray = yes; then
16199   for ac_func in _getb67 GETB67 getb67; do
16200     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16201 echo "$as_me:$LINENO: checking for $ac_func" >&5
16202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_var+set}\" = set"; then
16204   echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206   if test x$gcc_no_link = xyes; then
16207   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16209    { (exit 1); exit 1; }; }
16210 fi
16211 cat >conftest.$ac_ext <<_ACEOF
16212 /* confdefs.h.  */
16213 _ACEOF
16214 cat confdefs.h >>conftest.$ac_ext
16215 cat >>conftest.$ac_ext <<_ACEOF
16216 /* end confdefs.h.  */
16217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16219 #define $ac_func innocuous_$ac_func
16220
16221 /* System header to define __stub macros and hopefully few prototypes,
16222     which can conflict with char $ac_func (); below.
16223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16224     <limits.h> exists even on freestanding compilers.  */
16225
16226 #ifdef __STDC__
16227 # include <limits.h>
16228 #else
16229 # include <assert.h>
16230 #endif
16231
16232 #undef $ac_func
16233
16234 /* Override any gcc2 internal prototype to avoid an error.  */
16235 #ifdef __cplusplus
16236 extern "C"
16237 {
16238 #endif
16239 /* We use char because int might match the return type of a gcc2
16240    builtin and then its argument prototype would still apply.  */
16241 char $ac_func ();
16242 /* The GNU C library defines this for functions which it implements
16243     to always fail with ENOSYS.  Some functions are actually named
16244     something starting with __ and the normal name is an alias.  */
16245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16246 choke me
16247 #else
16248 char (*f) () = $ac_func;
16249 #endif
16250 #ifdef __cplusplus
16251 }
16252 #endif
16253
16254 int
16255 main ()
16256 {
16257 return f != $ac_func;
16258   ;
16259   return 0;
16260 }
16261 _ACEOF
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264   (eval $ac_link) 2>conftest.er1
16265   ac_status=$?
16266   grep -v '^ *+' conftest.er1 >conftest.err
16267   rm -f conftest.er1
16268   cat conftest.err >&5
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); } &&
16271          { ac_try='test -z "$ac_c_werror_flag"
16272                          || test ! -s conftest.err'
16273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274   (eval $ac_try) 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); }; } &&
16278          { ac_try='test -s conftest$ac_exeext'
16279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16280   (eval $ac_try) 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); }; }; then
16284   eval "$as_ac_var=yes"
16285 else
16286   echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289 eval "$as_ac_var=no"
16290 fi
16291 rm -f conftest.err conftest.$ac_objext \
16292       conftest$ac_exeext conftest.$ac_ext
16293 fi
16294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16296 if test `eval echo '${'$as_ac_var'}'` = yes; then
16297
16298 cat >>confdefs.h <<_ACEOF
16299 #define CRAY_STACKSEG_END $ac_func
16300 _ACEOF
16301
16302     break
16303 fi
16304
16305   done
16306 fi
16307
16308 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16309 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16310 if test "${ac_cv_c_stack_direction+set}" = set; then
16311   echo $ECHO_N "(cached) $ECHO_C" >&6
16312 else
16313   if test "$cross_compiling" = yes; then
16314   ac_cv_c_stack_direction=0
16315 else
16316   cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h.  */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h.  */
16322 int
16323 find_stack_direction ()
16324 {
16325   static char *addr = 0;
16326   auto char dummy;
16327   if (addr == 0)
16328     {
16329       addr = &dummy;
16330       return find_stack_direction ();
16331     }
16332   else
16333     return (&dummy > addr) ? 1 : -1;
16334 }
16335
16336 int
16337 main ()
16338 {
16339   exit (find_stack_direction () < 0);
16340 }
16341 _ACEOF
16342 rm -f conftest$ac_exeext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16344   (eval $ac_link) 2>&5
16345   ac_status=$?
16346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349   (eval $ac_try) 2>&5
16350   ac_status=$?
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); }; }; then
16353   ac_cv_c_stack_direction=1
16354 else
16355   echo "$as_me: program exited with status $ac_status" >&5
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359 ( exit $ac_status )
16360 ac_cv_c_stack_direction=-1
16361 fi
16362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16363 fi
16364 fi
16365 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16366 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16367
16368 cat >>confdefs.h <<_ACEOF
16369 #define STACK_DIRECTION $ac_cv_c_stack_direction
16370 _ACEOF
16371
16372
16373 fi
16374
16375
16376 for ac_prog in perl
16377 do
16378   # Extract the first word of "$ac_prog", so it can be a program name with args.
16379 set dummy $ac_prog; ac_word=$2
16380 echo "$as_me:$LINENO: checking for $ac_word" >&5
16381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16382 if test "${ac_cv_prog_PERL+set}" = set; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   if test -n "$PERL"; then
16386   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16387 else
16388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16389 for as_dir in $PATH
16390 do
16391   IFS=$as_save_IFS
16392   test -z "$as_dir" && as_dir=.
16393   for ac_exec_ext in '' $ac_executable_extensions; do
16394   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16395     ac_cv_prog_PERL="$ac_prog"
16396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16397     break 2
16398   fi
16399 done
16400 done
16401
16402 fi
16403 fi
16404 PERL=$ac_cv_prog_PERL
16405 if test -n "$PERL"; then
16406   echo "$as_me:$LINENO: result: $PERL" >&5
16407 echo "${ECHO_T}$PERL" >&6
16408 else
16409   echo "$as_me:$LINENO: result: no" >&5
16410 echo "${ECHO_T}no" >&6
16411 fi
16412
16413   test -n "$PERL" && break
16414 done
16415 test -n "$PERL" || PERL="false"
16416
16417
16418 SYSDEP_SOURCES=
16419 SIGNAL_HANDLER_AUX=
16420
16421 case "${host}" in
16422  i?86-*-linux*)
16423     SIGNAL_HANDLER=include/i386-signal.h
16424     ;;
16425  sparc*-sun-solaris*)
16426     SIGNAL_HANDLER=include/sparc-signal.h
16427     ;;
16428 # ia64-*)
16429 #    SYSDEP_SOURCES=sysdep/ia64.c
16430 #    test -d sysdep || mkdir sysdep
16431 #    ;;
16432  hppa*-*-linux*)
16433     SIGNAL_HANDLER=include/pa-signal.h
16434     ;;
16435  hppa*-hp-hpux*)
16436     SIGNAL_HANDLER=include/hppa-signal.h
16437     ;;
16438  ia64-*-linux*)
16439     SIGNAL_HANDLER=include/dwarf2-signal.h
16440     ;;
16441  powerpc*-*-linux*)
16442     SIGNAL_HANDLER=include/powerpc-signal.h
16443     ;;
16444  alpha*-*-linux*)
16445     SIGNAL_HANDLER=include/dwarf2-signal.h
16446     ;;
16447  s390*-*-linux*)
16448     SIGNAL_HANDLER=include/s390-signal.h
16449     ;;
16450  x86_64*-*-linux*)
16451     SIGNAL_HANDLER=include/x86_64-signal.h
16452     SIGNAL_HANDLER_AUX=include/i386-signal.h
16453     ;;
16454  sparc*-*-linux*)
16455     SIGNAL_HANDLER=include/dwarf2-signal.h
16456     ;;
16457  sh*-*-linux*)
16458     SIGNAL_HANDLER=include/sh-signal.h
16459     ;;
16460  *mingw*)
16461     SIGNAL_HANDLER=include/win32-signal.h
16462     ;;
16463  mips*-*-linux*)
16464     SIGNAL_HANDLER=include/mips-signal.h
16465     ;;
16466  *-*-darwin*)
16467     SIGNAL_HANDLER=include/darwin-signal.h
16468     ;;
16469  *)
16470     SIGNAL_HANDLER=include/default-signal.h
16471     ;;
16472 esac
16473
16474 # If we're using sjlj exceptions, forget what we just learned.
16475 if test "$enable_sjlj_exceptions" = yes; then
16476    SIGNAL_HANDLER=include/default-signal.h
16477    SIGNAL_HANDLER_AUX=
16478 fi
16479
16480
16481
16482 if test -z "$SIGNAL_HANDLER_AUX"; then
16483   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16484 fi
16485
16486                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16487
16488
16489 if test "${multilib}" = "yes"; then
16490   multilib_arg="--enable-multilib"
16491 else
16492   multilib_arg=
16493 fi
16494
16495 # See if we support thread-local storage.
16496
16497    # Check whether --enable-tls or --disable-tls was given.
16498 if test "${enable_tls+set}" = set; then
16499   enableval="$enable_tls"
16500
16501       case "$enableval" in
16502        yes|no) ;;
16503        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16504 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16505    { (exit 1); exit 1; }; } ;;
16506       esac
16507
16508 else
16509   enable_tls=yes
16510 fi;
16511
16512   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16513 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16514 if test "${have_tls+set}" = set; then
16515   echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517
16518     if test "$cross_compiling" = yes; then
16519   cat >conftest.$ac_ext <<_ACEOF
16520 __thread int foo;
16521 _ACEOF
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524   (eval $ac_compile) 2>conftest.er1
16525   ac_status=$?
16526   grep -v '^ *+' conftest.er1 >conftest.err
16527   rm -f conftest.er1
16528   cat conftest.err >&5
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } &&
16531          { ac_try='test -z "$ac_c_werror_flag"
16532                          || test ! -s conftest.err'
16533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534   (eval $ac_try) 2>&5
16535   ac_status=$?
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); }; } &&
16538          { ac_try='test -s conftest.$ac_objext'
16539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540   (eval $ac_try) 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; }; then
16544   have_tls=yes
16545 else
16546   echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16548
16549 have_tls=no
16550 fi
16551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16552
16553 else
16554   cat >conftest.$ac_ext <<_ACEOF
16555 __thread int a; int b; int main() { return a = b; }
16556 _ACEOF
16557 rm -f conftest$ac_exeext
16558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16559   (eval $ac_link) 2>&5
16560   ac_status=$?
16561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564   (eval $ac_try) 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); }; }; then
16568                     save_LDFLAGS="$LDFLAGS"
16569       LDFLAGS="-static $LDFLAGS"
16570       if test "$cross_compiling" = yes; then
16571   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16572 See \`config.log' for more details." >&5
16573 echo "$as_me: error: cannot run test program while cross compiling
16574 See \`config.log' for more details." >&2;}
16575    { (exit 1); exit 1; }; }
16576 else
16577   cat >conftest.$ac_ext <<_ACEOF
16578 __thread int a; int b; int main() { return a = b; }
16579 _ACEOF
16580 rm -f conftest$ac_exeext
16581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16582   (eval $ac_link) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   have_tls=yes
16592 else
16593   echo "$as_me: program exited with status $ac_status" >&5
16594 echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16596
16597 ( exit $ac_status )
16598 have_tls=no
16599 fi
16600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16601 fi
16602       LDFLAGS="$save_LDFLAGS"
16603 else
16604   echo "$as_me: program exited with status $ac_status" >&5
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16607
16608 ( exit $ac_status )
16609 have_tls=no
16610 fi
16611 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16612 fi
16613 fi
16614 echo "$as_me:$LINENO: result: $have_tls" >&5
16615 echo "${ECHO_T}$have_tls" >&6
16616   if test "$enable_tls $have_tls" = "yes yes"; then
16617
16618 cat >>confdefs.h <<\_ACEOF
16619 #define HAVE_TLS 1
16620 _ACEOF
16621
16622   fi
16623
16624 # Check if linker supports static linking on a per library basis
16625 LD_START_STATIC_SPEC=
16626 LD_FINISH_STATIC_SPEC=
16627 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16628   if $LD --help 2>&1 | grep -q -e -non_shared ; then
16629     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16630     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16631   fi
16632 fi
16633
16634
16635
16636 here=`${PWDCMD-pwd}`
16637
16638
16639 # We get this from the environment.
16640
16641
16642                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16643
16644
16645           ac_config_files="$ac_config_files scripts/jar"
16646
16647
16648           ac_config_commands="$ac_config_commands default"
16649
16650
16651 cat >confcache <<\_ACEOF
16652 # This file is a shell script that caches the results of configure
16653 # tests run on this system so they can be shared between configure
16654 # scripts and configure runs, see configure's option --config-cache.
16655 # It is not useful on other systems.  If it contains results you don't
16656 # want to keep, you may remove or edit it.
16657 #
16658 # config.status only pays attention to the cache file if you give it
16659 # the --recheck option to rerun configure.
16660 #
16661 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16663 # following values.
16664
16665 _ACEOF
16666
16667 # The following way of writing the cache mishandles newlines in values,
16668 # but we know of no workaround that is simple, portable, and efficient.
16669 # So, don't put newlines in cache variables' values.
16670 # Ultrix sh set writes to stderr and can't be redirected directly,
16671 # and sets the high bit in the cache file unless we assign to the vars.
16672 {
16673   (set) 2>&1 |
16674     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16675     *ac_space=\ *)
16676       # `set' does not quote correctly, so add quotes (double-quote
16677       # substitution turns \\\\ into \\, and sed turns \\ into \).
16678       sed -n \
16679         "s/'/'\\\\''/g;
16680           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16681       ;;
16682     *)
16683       # `set' quotes correctly as required by POSIX, so do not add quotes.
16684       sed -n \
16685         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16686       ;;
16687     esac;
16688 } |
16689   sed '
16690      t clear
16691      : clear
16692      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16693      t end
16694      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16695      : end' >>confcache
16696 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16697   if test -w $cache_file; then
16698     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16699     cat confcache >$cache_file
16700   else
16701     echo "not updating unwritable cache $cache_file"
16702   fi
16703 fi
16704 rm -f confcache
16705
16706 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16707 # Let make expand exec_prefix.
16708 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16709
16710 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16711 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16712 # trailing colons and then remove the whole line if VPATH becomes empty
16713 # (actually we leave an empty line to preserve line numbers).
16714 if test "x$srcdir" = x.; then
16715   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16716 s/:*\$(srcdir):*/:/;
16717 s/:*\${srcdir}:*/:/;
16718 s/:*@srcdir@:*/:/;
16719 s/^\([^=]*=[     ]*\):*/\1/;
16720 s/:*$//;
16721 s/^[^=]*=[       ]*$//;
16722 }'
16723 fi
16724
16725 DEFS=-DHAVE_CONFIG_H
16726
16727 ac_libobjs=
16728 ac_ltlibobjs=
16729 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16730   # 1. Remove the extension, and $U if already installed.
16731   ac_i=`echo "$ac_i" |
16732          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16733   # 2. Add them.
16734   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16735   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16736 done
16737 LIBOBJS=$ac_libobjs
16738
16739 LTLIBOBJS=$ac_ltlibobjs
16740
16741
16742 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16743   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16744 Usually this means the macro was only invoked conditionally." >&5
16745 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16746 Usually this means the macro was only invoked conditionally." >&2;}
16747    { (exit 1); exit 1; }; }
16748 fi
16749 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16750   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16751 Usually this means the macro was only invoked conditionally." >&5
16752 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16753 Usually this means the macro was only invoked conditionally." >&2;}
16754    { (exit 1); exit 1; }; }
16755 fi
16756 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16757   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16758 Usually this means the macro was only invoked conditionally." >&5
16759 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16760 Usually this means the macro was only invoked conditionally." >&2;}
16761    { (exit 1); exit 1; }; }
16762 fi
16763 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16764   { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16765 Usually this means the macro was only invoked conditionally." >&5
16766 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16767 Usually this means the macro was only invoked conditionally." >&2;}
16768    { (exit 1); exit 1; }; }
16769 fi
16770 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16771   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16772 Usually this means the macro was only invoked conditionally." >&5
16773 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16774 Usually this means the macro was only invoked conditionally." >&2;}
16775    { (exit 1); exit 1; }; }
16776 fi
16777 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16778   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16779 Usually this means the macro was only invoked conditionally." >&5
16780 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16781 Usually this means the macro was only invoked conditionally." >&2;}
16782    { (exit 1); exit 1; }; }
16783 fi
16784 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16785   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16786 Usually this means the macro was only invoked conditionally." >&5
16787 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16788 Usually this means the macro was only invoked conditionally." >&2;}
16789    { (exit 1); exit 1; }; }
16790 fi
16791 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16792   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16793 Usually this means the macro was only invoked conditionally." >&5
16794 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16795 Usually this means the macro was only invoked conditionally." >&2;}
16796    { (exit 1); exit 1; }; }
16797 fi
16798 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16799   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16800 Usually this means the macro was only invoked conditionally." >&5
16801 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16802 Usually this means the macro was only invoked conditionally." >&2;}
16803    { (exit 1); exit 1; }; }
16804 fi
16805 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16806   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16807 Usually this means the macro was only invoked conditionally." >&5
16808 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16809 Usually this means the macro was only invoked conditionally." >&2;}
16810    { (exit 1); exit 1; }; }
16811 fi
16812 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16813   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16814 Usually this means the macro was only invoked conditionally." >&5
16815 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16816 Usually this means the macro was only invoked conditionally." >&2;}
16817    { (exit 1); exit 1; }; }
16818 fi
16819 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16820   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16821 Usually this means the macro was only invoked conditionally." >&5
16822 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16823 Usually this means the macro was only invoked conditionally." >&2;}
16824    { (exit 1); exit 1; }; }
16825 fi
16826 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16827   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16828 Usually this means the macro was only invoked conditionally." >&5
16829 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16830 Usually this means the macro was only invoked conditionally." >&2;}
16831    { (exit 1); exit 1; }; }
16832 fi
16833 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16834   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16835 Usually this means the macro was only invoked conditionally." >&5
16836 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16837 Usually this means the macro was only invoked conditionally." >&2;}
16838    { (exit 1); exit 1; }; }
16839 fi
16840 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16841   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16842 Usually this means the macro was only invoked conditionally." >&5
16843 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16844 Usually this means the macro was only invoked conditionally." >&2;}
16845    { (exit 1); exit 1; }; }
16846 fi
16847 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16848   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16849 Usually this means the macro was only invoked conditionally." >&5
16850 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16851 Usually this means the macro was only invoked conditionally." >&2;}
16852    { (exit 1); exit 1; }; }
16853 fi
16854 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16855   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16856 Usually this means the macro was only invoked conditionally." >&5
16857 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16858 Usually this means the macro was only invoked conditionally." >&2;}
16859    { (exit 1); exit 1; }; }
16860 fi
16861 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16862   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16863 Usually this means the macro was only invoked conditionally." >&5
16864 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16865 Usually this means the macro was only invoked conditionally." >&2;}
16866    { (exit 1); exit 1; }; }
16867 fi
16868 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16869   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16870 Usually this means the macro was only invoked conditionally." >&5
16871 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16872 Usually this means the macro was only invoked conditionally." >&2;}
16873    { (exit 1); exit 1; }; }
16874 fi
16875 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16876   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16877 Usually this means the macro was only invoked conditionally." >&5
16878 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16879 Usually this means the macro was only invoked conditionally." >&2;}
16880    { (exit 1); exit 1; }; }
16881 fi
16882
16883 : ${CONFIG_STATUS=./config.status}
16884 ac_clean_files_save=$ac_clean_files
16885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16886 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16887 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16888 cat >$CONFIG_STATUS <<_ACEOF
16889 #! $SHELL
16890 # Generated by $as_me.
16891 # Run this file to recreate the current configuration.
16892 # Compiler output produced by configure, useful for debugging
16893 # configure, is in config.log if it exists.
16894
16895 debug=false
16896 ac_cs_recheck=false
16897 ac_cs_silent=false
16898 SHELL=\${CONFIG_SHELL-$SHELL}
16899 _ACEOF
16900
16901 cat >>$CONFIG_STATUS <<\_ACEOF
16902 ## --------------------- ##
16903 ## M4sh Initialization.  ##
16904 ## --------------------- ##
16905
16906 # Be Bourne compatible
16907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16908   emulate sh
16909   NULLCMD=:
16910   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16911   # is contrary to our usage.  Disable this feature.
16912   alias -g '${1+"$@"}'='"$@"'
16913 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16914   set -o posix
16915 fi
16916 DUALCASE=1; export DUALCASE # for MKS sh
16917
16918 # Support unset when possible.
16919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16920   as_unset=unset
16921 else
16922   as_unset=false
16923 fi
16924
16925
16926 # Work around bugs in pre-3.0 UWIN ksh.
16927 $as_unset ENV MAIL MAILPATH
16928 PS1='$ '
16929 PS2='> '
16930 PS4='+ '
16931
16932 # NLS nuisances.
16933 for as_var in \
16934   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16935   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16936   LC_TELEPHONE LC_TIME
16937 do
16938   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16939     eval $as_var=C; export $as_var
16940   else
16941     $as_unset $as_var
16942   fi
16943 done
16944
16945 # Required to use basename.
16946 if expr a : '\(a\)' >/dev/null 2>&1; then
16947   as_expr=expr
16948 else
16949   as_expr=false
16950 fi
16951
16952 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16953   as_basename=basename
16954 else
16955   as_basename=false
16956 fi
16957
16958
16959 # Name of the executable.
16960 as_me=`$as_basename "$0" ||
16961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16962          X"$0" : 'X\(//\)$' \| \
16963          X"$0" : 'X\(/\)$' \| \
16964          .     : '\(.\)' 2>/dev/null ||
16965 echo X/"$0" |
16966     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16967           /^X\/\(\/\/\)$/{ s//\1/; q; }
16968           /^X\/\(\/\).*/{ s//\1/; q; }
16969           s/.*/./; q'`
16970
16971
16972 # PATH needs CR, and LINENO needs CR and PATH.
16973 # Avoid depending upon Character Ranges.
16974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16977 as_cr_digits='0123456789'
16978 as_cr_alnum=$as_cr_Letters$as_cr_digits
16979
16980 # The user is always right.
16981 if test "${PATH_SEPARATOR+set}" != set; then
16982   echo "#! /bin/sh" >conf$$.sh
16983   echo  "exit 0"   >>conf$$.sh
16984   chmod +x conf$$.sh
16985   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16986     PATH_SEPARATOR=';'
16987   else
16988     PATH_SEPARATOR=:
16989   fi
16990   rm -f conf$$.sh
16991 fi
16992
16993
16994   as_lineno_1=$LINENO
16995   as_lineno_2=$LINENO
16996   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16997   test "x$as_lineno_1" != "x$as_lineno_2" &&
16998   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16999   # Find who we are.  Look in the path if we contain no path at all
17000   # relative or not.
17001   case $0 in
17002     *[\\/]* ) as_myself=$0 ;;
17003     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17004 for as_dir in $PATH
17005 do
17006   IFS=$as_save_IFS
17007   test -z "$as_dir" && as_dir=.
17008   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17009 done
17010
17011        ;;
17012   esac
17013   # We did not find ourselves, most probably we were run as `sh COMMAND'
17014   # in which case we are not to be found in the path.
17015   if test "x$as_myself" = x; then
17016     as_myself=$0
17017   fi
17018   if test ! -f "$as_myself"; then
17019     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17020 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17021    { (exit 1); exit 1; }; }
17022   fi
17023   case $CONFIG_SHELL in
17024   '')
17025     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17027 do
17028   IFS=$as_save_IFS
17029   test -z "$as_dir" && as_dir=.
17030   for as_base in sh bash ksh sh5; do
17031          case $as_dir in
17032          /*)
17033            if ("$as_dir/$as_base" -c '
17034   as_lineno_1=$LINENO
17035   as_lineno_2=$LINENO
17036   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17037   test "x$as_lineno_1" != "x$as_lineno_2" &&
17038   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17039              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17040              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17041              CONFIG_SHELL=$as_dir/$as_base
17042              export CONFIG_SHELL
17043              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17044            fi;;
17045          esac
17046        done
17047 done
17048 ;;
17049   esac
17050
17051   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17052   # uniformly replaced by the line number.  The first 'sed' inserts a
17053   # line-number line before each line; the second 'sed' does the real
17054   # work.  The second script uses 'N' to pair each line-number line
17055   # with the numbered line, and appends trailing '-' during
17056   # substitution so that $LINENO is not a special case at line end.
17057   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17058   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17059   sed '=' <$as_myself |
17060     sed '
17061       N
17062       s,$,-,
17063       : loop
17064       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17065       t loop
17066       s,-$,,
17067       s,^['$as_cr_digits']*\n,,
17068     ' >$as_me.lineno &&
17069   chmod +x $as_me.lineno ||
17070     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17071 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17072    { (exit 1); exit 1; }; }
17073
17074   # Don't try to exec as it changes $[0], causing all sort of problems
17075   # (the dirname of $[0] is not the place where we might find the
17076   # original and so on.  Autoconf is especially sensible to this).
17077   . ./$as_me.lineno
17078   # Exit status is that of the last command.
17079   exit
17080 }
17081
17082
17083 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17084   *c*,-n*) ECHO_N= ECHO_C='
17085 ' ECHO_T='      ' ;;
17086   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17087   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17088 esac
17089
17090 if expr a : '\(a\)' >/dev/null 2>&1; then
17091   as_expr=expr
17092 else
17093   as_expr=false
17094 fi
17095
17096 rm -f conf$$ conf$$.exe conf$$.file
17097 echo >conf$$.file
17098 if ln -s conf$$.file conf$$ 2>/dev/null; then
17099   # We could just check for DJGPP; but this test a) works b) is more generic
17100   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17101   if test -f conf$$.exe; then
17102     # Don't use ln at all; we don't have any links
17103     as_ln_s='cp -p'
17104   else
17105     as_ln_s='ln -s'
17106   fi
17107 elif ln conf$$.file conf$$ 2>/dev/null; then
17108   as_ln_s=ln
17109 else
17110   as_ln_s='cp -p'
17111 fi
17112 rm -f conf$$ conf$$.exe conf$$.file
17113
17114 if mkdir -p . 2>/dev/null; then
17115   as_mkdir_p=:
17116 else
17117   test -d ./-p && rmdir ./-p
17118   as_mkdir_p=false
17119 fi
17120
17121 as_executable_p="test -f"
17122
17123 # Sed expression to map a string onto a valid CPP name.
17124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17125
17126 # Sed expression to map a string onto a valid variable name.
17127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17128
17129
17130 # IFS
17131 # We need space, tab and new line, in precisely that order.
17132 as_nl='
17133 '
17134 IFS="   $as_nl"
17135
17136 # CDPATH.
17137 $as_unset CDPATH
17138
17139 exec 6>&1
17140
17141 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17142 # report actual input values of CONFIG_FILES etc. instead of their
17143 # values after options handling.  Logging --version etc. is OK.
17144 exec 5>>config.log
17145 {
17146   echo
17147   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17148 ## Running $as_me. ##
17149 _ASBOX
17150 } >&5
17151 cat >&5 <<_CSEOF
17152
17153 This file was extended by libjava $as_me version-unused, which was
17154 generated by GNU Autoconf 2.59.  Invocation command line was
17155
17156   CONFIG_FILES    = $CONFIG_FILES
17157   CONFIG_HEADERS  = $CONFIG_HEADERS
17158   CONFIG_LINKS    = $CONFIG_LINKS
17159   CONFIG_COMMANDS = $CONFIG_COMMANDS
17160   $ $0 $@
17161
17162 _CSEOF
17163 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17164 echo >&5
17165 _ACEOF
17166
17167 # Files that config.status was made for.
17168 if test -n "$ac_config_files"; then
17169   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17170 fi
17171
17172 if test -n "$ac_config_headers"; then
17173   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17174 fi
17175
17176 if test -n "$ac_config_links"; then
17177   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17178 fi
17179
17180 if test -n "$ac_config_commands"; then
17181   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17182 fi
17183
17184 cat >>$CONFIG_STATUS <<\_ACEOF
17185
17186 ac_cs_usage="\
17187 \`$as_me' instantiates files from templates according to the
17188 current configuration.
17189
17190 Usage: $0 [OPTIONS] [FILE]...
17191
17192   -h, --help       print this help, then exit
17193   -V, --version    print version number, then exit
17194   -q, --quiet      do not print progress messages
17195   -d, --debug      don't remove temporary files
17196       --recheck    update $as_me by reconfiguring in the same conditions
17197   --file=FILE[:TEMPLATE]
17198                    instantiate the configuration file FILE
17199   --header=FILE[:TEMPLATE]
17200                    instantiate the configuration header FILE
17201
17202 Configuration files:
17203 $config_files
17204
17205 Configuration headers:
17206 $config_headers
17207
17208 Configuration links:
17209 $config_links
17210
17211 Configuration commands:
17212 $config_commands
17213
17214 Report bugs to <bug-autoconf@gnu.org>."
17215 _ACEOF
17216
17217 cat >>$CONFIG_STATUS <<_ACEOF
17218 ac_cs_version="\\
17219 libjava config.status version-unused
17220 configured by $0, generated by GNU Autoconf 2.59,
17221   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17222
17223 Copyright (C) 2003 Free Software Foundation, Inc.
17224 This config.status script is free software; the Free Software Foundation
17225 gives unlimited permission to copy, distribute and modify it."
17226 srcdir=$srcdir
17227 INSTALL="$INSTALL"
17228 _ACEOF
17229
17230 cat >>$CONFIG_STATUS <<\_ACEOF
17231 # If no file are specified by the user, then we need to provide default
17232 # value.  By we need to know if files were specified by the user.
17233 ac_need_defaults=:
17234 while test $# != 0
17235 do
17236   case $1 in
17237   --*=*)
17238     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17239     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17240     ac_shift=:
17241     ;;
17242   -*)
17243     ac_option=$1
17244     ac_optarg=$2
17245     ac_shift=shift
17246     ;;
17247   *) # This is not an option, so the user has probably given explicit
17248      # arguments.
17249      ac_option=$1
17250      ac_need_defaults=false;;
17251   esac
17252
17253   case $ac_option in
17254   # Handling of the options.
17255 _ACEOF
17256 cat >>$CONFIG_STATUS <<\_ACEOF
17257   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17258     ac_cs_recheck=: ;;
17259   --version | --vers* | -V )
17260     echo "$ac_cs_version"; exit 0 ;;
17261   --he | --h)
17262     # Conflict between --help and --header
17263     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17264 Try \`$0 --help' for more information." >&5
17265 echo "$as_me: error: ambiguous option: $1
17266 Try \`$0 --help' for more information." >&2;}
17267    { (exit 1); exit 1; }; };;
17268   --help | --hel | -h )
17269     echo "$ac_cs_usage"; exit 0 ;;
17270   --debug | --d* | -d )
17271     debug=: ;;
17272   --file | --fil | --fi | --f )
17273     $ac_shift
17274     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17275     ac_need_defaults=false;;
17276   --header | --heade | --head | --hea )
17277     $ac_shift
17278     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17279     ac_need_defaults=false;;
17280   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17281   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17282     ac_cs_silent=: ;;
17283
17284   # This is an error.
17285   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17286 Try \`$0 --help' for more information." >&5
17287 echo "$as_me: error: unrecognized option: $1
17288 Try \`$0 --help' for more information." >&2;}
17289    { (exit 1); exit 1; }; } ;;
17290
17291   *) ac_config_targets="$ac_config_targets $1" ;;
17292
17293   esac
17294   shift
17295 done
17296
17297 ac_configure_extra_args=
17298
17299 if $ac_cs_silent; then
17300   exec 6>/dev/null
17301   ac_configure_extra_args="$ac_configure_extra_args --silent"
17302 fi
17303
17304 _ACEOF
17305 cat >>$CONFIG_STATUS <<_ACEOF
17306 if \$ac_cs_recheck; then
17307   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17308   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17309 fi
17310
17311 _ACEOF
17312
17313 cat >>$CONFIG_STATUS <<_ACEOF
17314 #
17315 # INIT-COMMANDS section.
17316 #
17317
17318 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17319 srcdir=${srcdir}
17320 host=${host}
17321 target=${target}
17322 with_multisubdir=${with_multisubdir}
17323 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17324 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17325 libgcj_basedir=${libgcj_basedir}
17326 CC="${CC}"
17327 CXX="${CXX}"
17328 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17329
17330
17331 _ACEOF
17332
17333
17334
17335 cat >>$CONFIG_STATUS <<\_ACEOF
17336 for ac_config_target in $ac_config_targets
17337 do
17338   case "$ac_config_target" in
17339   # Handling of arguments.
17340   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17341   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17342   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17343   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17344   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17345   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17346   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17347   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17348   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17349   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17350   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17351   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17352   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17353   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17354   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17355   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17356   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17357   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17358   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17359   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17360   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17361   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17362   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17363   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17364   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17365   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17366   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17367   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17368   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17369   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17370   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17371 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17372    { (exit 1); exit 1; }; };;
17373   esac
17374 done
17375
17376 # If the user did not use the arguments to specify the items to instantiate,
17377 # then the envvar interface is used.  Set only those that are not.
17378 # We use the long form for the default assignment because of an extremely
17379 # bizarre bug on SunOS 4.1.3.
17380 if $ac_need_defaults; then
17381   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17382   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17383   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17384   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17385 fi
17386
17387 # Have a temporary directory for convenience.  Make it in the build tree
17388 # simply because there is no reason to put it here, and in addition,
17389 # creating and moving files from /tmp can sometimes cause problems.
17390 # Create a temporary directory, and hook for its removal unless debugging.
17391 $debug ||
17392 {
17393   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17394   trap '{ (exit 1); exit 1; }' 1 2 13 15
17395 }
17396
17397 # Create a (secure) tmp directory for tmp files.
17398
17399 {
17400   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17401   test -n "$tmp" && test -d "$tmp"
17402 }  ||
17403 {
17404   tmp=./confstat$$-$RANDOM
17405   (umask 077 && mkdir $tmp)
17406 } ||
17407 {
17408    echo "$me: cannot create a temporary directory in ." >&2
17409    { (exit 1); exit 1; }
17410 }
17411
17412 _ACEOF
17413
17414 cat >>$CONFIG_STATUS <<_ACEOF
17415
17416 #
17417 # CONFIG_FILES section.
17418 #
17419
17420 # No need to generate the scripts if there are no CONFIG_FILES.
17421 # This happens for instance when ./config.status config.h
17422 if test -n "\$CONFIG_FILES"; then
17423   # Protect against being on the right side of a sed subst in config.status.
17424   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17425    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17426 s,@SHELL@,$SHELL,;t t
17427 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17428 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17429 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17430 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17431 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17432 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17433 s,@exec_prefix@,$exec_prefix,;t t
17434 s,@prefix@,$prefix,;t t
17435 s,@program_transform_name@,$program_transform_name,;t t
17436 s,@bindir@,$bindir,;t t
17437 s,@sbindir@,$sbindir,;t t
17438 s,@libexecdir@,$libexecdir,;t t
17439 s,@datadir@,$datadir,;t t
17440 s,@sysconfdir@,$sysconfdir,;t t
17441 s,@sharedstatedir@,$sharedstatedir,;t t
17442 s,@localstatedir@,$localstatedir,;t t
17443 s,@libdir@,$libdir,;t t
17444 s,@includedir@,$includedir,;t t
17445 s,@oldincludedir@,$oldincludedir,;t t
17446 s,@infodir@,$infodir,;t t
17447 s,@mandir@,$mandir,;t t
17448 s,@build_alias@,$build_alias,;t t
17449 s,@host_alias@,$host_alias,;t t
17450 s,@target_alias@,$target_alias,;t t
17451 s,@DEFS@,$DEFS,;t t
17452 s,@ECHO_C@,$ECHO_C,;t t
17453 s,@ECHO_N@,$ECHO_N,;t t
17454 s,@ECHO_T@,$ECHO_T,;t t
17455 s,@LIBS@,$LIBS,;t t
17456 s,@build@,$build,;t t
17457 s,@build_cpu@,$build_cpu,;t t
17458 s,@build_vendor@,$build_vendor,;t t
17459 s,@build_os@,$build_os,;t t
17460 s,@build_libsubdir@,$build_libsubdir,;t t
17461 s,@build_subdir@,$build_subdir,;t t
17462 s,@host_subdir@,$host_subdir,;t t
17463 s,@target_subdir@,$target_subdir,;t t
17464 s,@libgcj_basedir@,$libgcj_basedir,;t t
17465 s,@host@,$host,;t t
17466 s,@host_cpu@,$host_cpu,;t t
17467 s,@host_vendor@,$host_vendor,;t t
17468 s,@host_os@,$host_os,;t t
17469 s,@target@,$target,;t t
17470 s,@target_cpu@,$target_cpu,;t t
17471 s,@target_vendor@,$target_vendor,;t t
17472 s,@target_os@,$target_os,;t t
17473 s,@target_noncanonical@,$target_noncanonical,;t t
17474 s,@LN_S@,$LN_S,;t t
17475 s,@mkinstalldirs@,$mkinstalldirs,;t t
17476 s,@CC@,$CC,;t t
17477 s,@ac_ct_CC@,$ac_ct_CC,;t t
17478 s,@EXEEXT@,$EXEEXT,;t t
17479 s,@OBJEXT@,$OBJEXT,;t t
17480 s,@CXX@,$CXX,;t t
17481 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17482 s,@CFLAGS@,$CFLAGS,;t t
17483 s,@CXXFLAGS@,$CXXFLAGS,;t t
17484 s,@LDFLAGS@,$LDFLAGS,;t t
17485 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17486 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17487 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17488 s,@CYGPATH_W@,$CYGPATH_W,;t t
17489 s,@PACKAGE@,$PACKAGE,;t t
17490 s,@VERSION@,$VERSION,;t t
17491 s,@ACLOCAL@,$ACLOCAL,;t t
17492 s,@AUTOCONF@,$AUTOCONF,;t t
17493 s,@AUTOMAKE@,$AUTOMAKE,;t t
17494 s,@AUTOHEADER@,$AUTOHEADER,;t t
17495 s,@MAKEINFO@,$MAKEINFO,;t t
17496 s,@install_sh@,$install_sh,;t t
17497 s,@STRIP@,$STRIP,;t t
17498 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17499 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17500 s,@mkdir_p@,$mkdir_p,;t t
17501 s,@AWK@,$AWK,;t t
17502 s,@SET_MAKE@,$SET_MAKE,;t t
17503 s,@am__leading_dot@,$am__leading_dot,;t t
17504 s,@AMTAR@,$AMTAR,;t t
17505 s,@am__tar@,$am__tar,;t t
17506 s,@am__untar@,$am__untar,;t t
17507 s,@DEPDIR@,$DEPDIR,;t t
17508 s,@am__include@,$am__include,;t t
17509 s,@am__quote@,$am__quote,;t t
17510 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17511 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17512 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17513 s,@CCDEPMODE@,$CCDEPMODE,;t t
17514 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17515 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17516 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17517 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17518 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17519 s,@AS@,$AS,;t t
17520 s,@ac_ct_AS@,$ac_ct_AS,;t t
17521 s,@LD@,$LD,;t t
17522 s,@ac_ct_LD@,$ac_ct_LD,;t t
17523 s,@AR@,$AR,;t t
17524 s,@ac_ct_AR@,$ac_ct_AR,;t t
17525 s,@RANLIB@,$RANLIB,;t t
17526 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17527 s,@JAR@,$JAR,;t t
17528 s,@ZIP@,$ZIP,;t t
17529 s,@UNZIP@,$UNZIP,;t t
17530 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17531 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17532 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17533 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17534 s,@MAINT@,$MAINT,;t t
17535 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17536 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17537 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17538 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17539 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17540 s,@TOOLKIT@,$TOOLKIT,;t t
17541 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17542 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17543 s,@GCJH@,$GCJH,;t t
17544 s,@INCLTDL@,$INCLTDL,;t t
17545 s,@LIBLTDL@,$LIBLTDL,;t t
17546 s,@DIRLTDL@,$DIRLTDL,;t t
17547 s,@LIBTOOL@,$LIBTOOL,;t t
17548 s,@CXXCPP@,$CXXCPP,;t t
17549 s,@CPPFLAGS@,$CPPFLAGS,;t t
17550 s,@GCJ@,$GCJ,;t t
17551 s,@GCJFLAGS@,$GCJFLAGS,;t t
17552 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17553 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17554 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17555 s,@subdirs@,$subdirs,;t t
17556 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17557 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17558 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17559 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17560 s,@JAVA_HOME@,$JAVA_HOME,;t t
17561 s,@INTERPRETER@,$INTERPRETER,;t t
17562 s,@LIBFFI@,$LIBFFI,;t t
17563 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17564 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17565 s,@CPP@,$CPP,;t t
17566 s,@EGREP@,$EGREP,;t t
17567 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17568 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17569 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17570 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17571 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17572 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17573 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17574 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17575 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17576 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17577 s,@X_CFLAGS@,$X_CFLAGS,;t t
17578 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17579 s,@X_LIBS@,$X_LIBS,;t t
17580 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17581 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17582 s,@GCLIBS@,$GCLIBS,;t t
17583 s,@GCINCS@,$GCINCS,;t t
17584 s,@GCDEPS@,$GCDEPS,;t t
17585 s,@GCSPEC@,$GCSPEC,;t t
17586 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17587 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17588 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17589 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17590 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17591 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17592 s,@THREADLIBS@,$THREADLIBS,;t t
17593 s,@THREADINCS@,$THREADINCS,;t t
17594 s,@THREADDEPS@,$THREADDEPS,;t t
17595 s,@THREADSPEC@,$THREADSPEC,;t t
17596 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17597 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17598 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17599 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17600 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17601 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17602 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17603 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17604 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17605 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17606 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17607 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17608 s,@LIBICONV@,$LIBICONV,;t t
17609 s,@LTLIBICONV@,$LTLIBICONV,;t t
17610 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17611 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17612 s,@GTK_LIBS@,$GTK_LIBS,;t t
17613 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17614 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17615 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17616 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17617 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17618 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17619 s,@ZLIBS@,$ZLIBS,;t t
17620 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17621 s,@ZINCS@,$ZINCS,;t t
17622 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17623 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17624 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17625 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17626 s,@IEEESPEC@,$IEEESPEC,;t t
17627 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17628 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17629 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17630 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17631 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17632 s,@toolexecdir@,$toolexecdir,;t t
17633 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17634 s,@toolexeclibdir@,$toolexeclibdir,;t t
17635 s,@dbexecdir@,$dbexecdir,;t t
17636 s,@GCJVERSION@,$GCJVERSION,;t t
17637 s,@gxx_include_dir@,$gxx_include_dir,;t t
17638 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17639 s,@ALLOCA@,$ALLOCA,;t t
17640 s,@PERL@,$PERL,;t t
17641 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17642 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17643 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17644 s,@here@,$here,;t t
17645 s,@LIBOBJS@,$LIBOBJS,;t t
17646 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17647 CEOF
17648
17649 _ACEOF
17650
17651   cat >>$CONFIG_STATUS <<\_ACEOF
17652   # Split the substitutions into bite-sized pieces for seds with
17653   # small command number limits, like on Digital OSF/1 and HP-UX.
17654   ac_max_sed_lines=48
17655   ac_sed_frag=1 # Number of current file.
17656   ac_beg=1 # First line for current file.
17657   ac_end=$ac_max_sed_lines # Line after last line for current file.
17658   ac_more_lines=:
17659   ac_sed_cmds=
17660   while $ac_more_lines; do
17661     if test $ac_beg -gt 1; then
17662       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17663     else
17664       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17665     fi
17666     if test ! -s $tmp/subs.frag; then
17667       ac_more_lines=false
17668     else
17669       # The purpose of the label and of the branching condition is to
17670       # speed up the sed processing (if there are no `@' at all, there
17671       # is no need to browse any of the substitutions).
17672       # These are the two extra sed commands mentioned above.
17673       (echo ':t
17674   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17675       if test -z "$ac_sed_cmds"; then
17676         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17677       else
17678         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17679       fi
17680       ac_sed_frag=`expr $ac_sed_frag + 1`
17681       ac_beg=$ac_end
17682       ac_end=`expr $ac_end + $ac_max_sed_lines`
17683     fi
17684   done
17685   if test -z "$ac_sed_cmds"; then
17686     ac_sed_cmds=cat
17687   fi
17688 fi # test -n "$CONFIG_FILES"
17689
17690 _ACEOF
17691 cat >>$CONFIG_STATUS <<\_ACEOF
17692 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17693   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17694   case $ac_file in
17695   - | *:- | *:-:* ) # input from stdin
17696         cat >$tmp/stdin
17697         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17698         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17699   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17700         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17701   * )   ac_file_in=$ac_file.in ;;
17702   esac
17703
17704   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17705   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17707          X"$ac_file" : 'X\(//\)[^/]' \| \
17708          X"$ac_file" : 'X\(//\)$' \| \
17709          X"$ac_file" : 'X\(/\)' \| \
17710          .     : '\(.\)' 2>/dev/null ||
17711 echo X"$ac_file" |
17712     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17713           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17714           /^X\(\/\/\)$/{ s//\1/; q; }
17715           /^X\(\/\).*/{ s//\1/; q; }
17716           s/.*/./; q'`
17717   { if $as_mkdir_p; then
17718     mkdir -p "$ac_dir"
17719   else
17720     as_dir="$ac_dir"
17721     as_dirs=
17722     while test ! -d "$as_dir"; do
17723       as_dirs="$as_dir $as_dirs"
17724       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17726          X"$as_dir" : 'X\(//\)[^/]' \| \
17727          X"$as_dir" : 'X\(//\)$' \| \
17728          X"$as_dir" : 'X\(/\)' \| \
17729          .     : '\(.\)' 2>/dev/null ||
17730 echo X"$as_dir" |
17731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17732           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17733           /^X\(\/\/\)$/{ s//\1/; q; }
17734           /^X\(\/\).*/{ s//\1/; q; }
17735           s/.*/./; q'`
17736     done
17737     test ! -n "$as_dirs" || mkdir $as_dirs
17738   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17739 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17740    { (exit 1); exit 1; }; }; }
17741
17742   ac_builddir=.
17743
17744 if test "$ac_dir" != .; then
17745   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17746   # A "../" for each directory in $ac_dir_suffix.
17747   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17748 else
17749   ac_dir_suffix= ac_top_builddir=
17750 fi
17751
17752 case $srcdir in
17753   .)  # No --srcdir option.  We are building in place.
17754     ac_srcdir=.
17755     if test -z "$ac_top_builddir"; then
17756        ac_top_srcdir=.
17757     else
17758        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17759     fi ;;
17760   [\\/]* | ?:[\\/]* )  # Absolute path.
17761     ac_srcdir=$srcdir$ac_dir_suffix;
17762     ac_top_srcdir=$srcdir ;;
17763   *) # Relative path.
17764     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17765     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17766 esac
17767
17768 # Do not use `cd foo && pwd` to compute absolute paths, because
17769 # the directories may not exist.
17770 case `pwd` in
17771 .) ac_abs_builddir="$ac_dir";;
17772 *)
17773   case "$ac_dir" in
17774   .) ac_abs_builddir=`pwd`;;
17775   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17776   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17777   esac;;
17778 esac
17779 case $ac_abs_builddir in
17780 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17781 *)
17782   case ${ac_top_builddir}. in
17783   .) ac_abs_top_builddir=$ac_abs_builddir;;
17784   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17785   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17786   esac;;
17787 esac
17788 case $ac_abs_builddir in
17789 .) ac_abs_srcdir=$ac_srcdir;;
17790 *)
17791   case $ac_srcdir in
17792   .) ac_abs_srcdir=$ac_abs_builddir;;
17793   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17794   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17795   esac;;
17796 esac
17797 case $ac_abs_builddir in
17798 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17799 *)
17800   case $ac_top_srcdir in
17801   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17802   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17803   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17804   esac;;
17805 esac
17806
17807
17808   case $INSTALL in
17809   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17810   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17811   esac
17812
17813   if test x"$ac_file" != x-; then
17814     { echo "$as_me:$LINENO: creating $ac_file" >&5
17815 echo "$as_me: creating $ac_file" >&6;}
17816     rm -f "$ac_file"
17817   fi
17818   # Let's still pretend it is `configure' which instantiates (i.e., don't
17819   # use $as_me), people would be surprised to read:
17820   #    /* config.h.  Generated by config.status.  */
17821   if test x"$ac_file" = x-; then
17822     configure_input=
17823   else
17824     configure_input="$ac_file.  "
17825   fi
17826   configure_input=$configure_input"Generated from `echo $ac_file_in |
17827                                      sed 's,.*/,,'` by configure."
17828
17829   # First look for the input files in the build tree, otherwise in the
17830   # src tree.
17831   ac_file_inputs=`IFS=:
17832     for f in $ac_file_in; do
17833       case $f in
17834       -) echo $tmp/stdin ;;
17835       [\\/$]*)
17836          # Absolute (can't be DOS-style, as IFS=:)
17837          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17838 echo "$as_me: error: cannot find input file: $f" >&2;}
17839    { (exit 1); exit 1; }; }
17840          echo "$f";;
17841       *) # Relative
17842          if test -f "$f"; then
17843            # Build tree
17844            echo "$f"
17845          elif test -f "$srcdir/$f"; then
17846            # Source tree
17847            echo "$srcdir/$f"
17848          else
17849            # /dev/null tree
17850            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17851 echo "$as_me: error: cannot find input file: $f" >&2;}
17852    { (exit 1); exit 1; }; }
17853          fi;;
17854       esac
17855     done` || { (exit 1); exit 1; }
17856 _ACEOF
17857 cat >>$CONFIG_STATUS <<_ACEOF
17858   sed "$ac_vpsub
17859 $extrasub
17860 _ACEOF
17861 cat >>$CONFIG_STATUS <<\_ACEOF
17862 :t
17863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17864 s,@configure_input@,$configure_input,;t t
17865 s,@srcdir@,$ac_srcdir,;t t
17866 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17867 s,@top_srcdir@,$ac_top_srcdir,;t t
17868 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17869 s,@builddir@,$ac_builddir,;t t
17870 s,@abs_builddir@,$ac_abs_builddir,;t t
17871 s,@top_builddir@,$ac_top_builddir,;t t
17872 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17873 s,@INSTALL@,$ac_INSTALL,;t t
17874 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17875   rm -f $tmp/stdin
17876   if test x"$ac_file" != x-; then
17877     mv $tmp/out $ac_file
17878   else
17879     cat $tmp/out
17880     rm -f $tmp/out
17881   fi
17882
17883   # Run the commands associated with the file.
17884   case $ac_file in
17885     scripts/jar ) chmod +x scripts/jar ;;
17886   esac
17887 done
17888 _ACEOF
17889 cat >>$CONFIG_STATUS <<\_ACEOF
17890
17891 #
17892 # CONFIG_HEADER section.
17893 #
17894
17895 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17896 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17897 #
17898 # ac_d sets the value in "#define NAME VALUE" lines.
17899 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17900 ac_dB='[         ].*$,\1#\2'
17901 ac_dC=' '
17902 ac_dD=',;t'
17903 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17904 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17905 ac_uB='$,\1#\2define\3'
17906 ac_uC=' '
17907 ac_uD=',;t'
17908
17909 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17910   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17911   case $ac_file in
17912   - | *:- | *:-:* ) # input from stdin
17913         cat >$tmp/stdin
17914         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17915         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17916   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17917         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17918   * )   ac_file_in=$ac_file.in ;;
17919   esac
17920
17921   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17922 echo "$as_me: creating $ac_file" >&6;}
17923
17924   # First look for the input files in the build tree, otherwise in the
17925   # src tree.
17926   ac_file_inputs=`IFS=:
17927     for f in $ac_file_in; do
17928       case $f in
17929       -) echo $tmp/stdin ;;
17930       [\\/$]*)
17931          # Absolute (can't be DOS-style, as IFS=:)
17932          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17933 echo "$as_me: error: cannot find input file: $f" >&2;}
17934    { (exit 1); exit 1; }; }
17935          # Do quote $f, to prevent DOS paths from being IFS'd.
17936          echo "$f";;
17937       *) # Relative
17938          if test -f "$f"; then
17939            # Build tree
17940            echo "$f"
17941          elif test -f "$srcdir/$f"; then
17942            # Source tree
17943            echo "$srcdir/$f"
17944          else
17945            # /dev/null tree
17946            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17947 echo "$as_me: error: cannot find input file: $f" >&2;}
17948    { (exit 1); exit 1; }; }
17949          fi;;
17950       esac
17951     done` || { (exit 1); exit 1; }
17952   # Remove the trailing spaces.
17953   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17954
17955 _ACEOF
17956
17957 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17958 # `conftest.undefs', that substitutes the proper values into
17959 # config.h.in to produce config.h.  The first handles `#define'
17960 # templates, and the second `#undef' templates.
17961 # And first: Protect against being on the right side of a sed subst in
17962 # config.status.  Protect against being in an unquoted here document
17963 # in config.status.
17964 rm -f conftest.defines conftest.undefs
17965 # Using a here document instead of a string reduces the quoting nightmare.
17966 # Putting comments in sed scripts is not portable.
17967 #
17968 # `end' is used to avoid that the second main sed command (meant for
17969 # 0-ary CPP macros) applies to n-ary macro definitions.
17970 # See the Autoconf documentation for `clear'.
17971 cat >confdef2sed.sed <<\_ACEOF
17972 s/[\\&,]/\\&/g
17973 s,[\\$`],\\&,g
17974 t clear
17975 : clear
17976 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17977 t end
17978 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17979 : end
17980 _ACEOF
17981 # If some macros were called several times there might be several times
17982 # the same #defines, which is useless.  Nevertheless, we may not want to
17983 # sort them, since we want the *last* AC-DEFINE to be honored.
17984 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17985 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17986 rm -f confdef2sed.sed
17987
17988 # This sed command replaces #undef with comments.  This is necessary, for
17989 # example, in the case of _POSIX_SOURCE, which is predefined and required
17990 # on some systems where configure will not decide to define it.
17991 cat >>conftest.undefs <<\_ACEOF
17992 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17993 _ACEOF
17994
17995 # Break up conftest.defines because some shells have a limit on the size
17996 # of here documents, and old seds have small limits too (100 cmds).
17997 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17998 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17999 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18000 echo '  :' >>$CONFIG_STATUS
18001 rm -f conftest.tail
18002 while grep . conftest.defines >/dev/null
18003 do
18004   # Write a limited-size here document to $tmp/defines.sed.
18005   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18006   # Speed up: don't consider the non `#define' lines.
18007   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18008   # Work around the forget-to-reset-the-flag bug.
18009   echo 't clr' >>$CONFIG_STATUS
18010   echo ': clr' >>$CONFIG_STATUS
18011   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18012   echo 'CEOF
18013   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18014   rm -f $tmp/in
18015   mv $tmp/out $tmp/in
18016 ' >>$CONFIG_STATUS
18017   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18018   rm -f conftest.defines
18019   mv conftest.tail conftest.defines
18020 done
18021 rm -f conftest.defines
18022 echo '  fi # grep' >>$CONFIG_STATUS
18023 echo >>$CONFIG_STATUS
18024
18025 # Break up conftest.undefs because some shells have a limit on the size
18026 # of here documents, and old seds have small limits too (100 cmds).
18027 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18028 rm -f conftest.tail
18029 while grep . conftest.undefs >/dev/null
18030 do
18031   # Write a limited-size here document to $tmp/undefs.sed.
18032   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18033   # Speed up: don't consider the non `#undef'
18034   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18035   # Work around the forget-to-reset-the-flag bug.
18036   echo 't clr' >>$CONFIG_STATUS
18037   echo ': clr' >>$CONFIG_STATUS
18038   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18039   echo 'CEOF
18040   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18041   rm -f $tmp/in
18042   mv $tmp/out $tmp/in
18043 ' >>$CONFIG_STATUS
18044   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18045   rm -f conftest.undefs
18046   mv conftest.tail conftest.undefs
18047 done
18048 rm -f conftest.undefs
18049
18050 cat >>$CONFIG_STATUS <<\_ACEOF
18051   # Let's still pretend it is `configure' which instantiates (i.e., don't
18052   # use $as_me), people would be surprised to read:
18053   #    /* config.h.  Generated by config.status.  */
18054   if test x"$ac_file" = x-; then
18055     echo "/* Generated by configure.  */" >$tmp/config.h
18056   else
18057     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18058   fi
18059   cat $tmp/in >>$tmp/config.h
18060   rm -f $tmp/in
18061   if test x"$ac_file" != x-; then
18062     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18063       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18064 echo "$as_me: $ac_file is unchanged" >&6;}
18065     else
18066       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18067 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18068          X"$ac_file" : 'X\(//\)[^/]' \| \
18069          X"$ac_file" : 'X\(//\)$' \| \
18070          X"$ac_file" : 'X\(/\)' \| \
18071          .     : '\(.\)' 2>/dev/null ||
18072 echo X"$ac_file" |
18073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18075           /^X\(\/\/\)$/{ s//\1/; q; }
18076           /^X\(\/\).*/{ s//\1/; q; }
18077           s/.*/./; q'`
18078       { if $as_mkdir_p; then
18079     mkdir -p "$ac_dir"
18080   else
18081     as_dir="$ac_dir"
18082     as_dirs=
18083     while test ! -d "$as_dir"; do
18084       as_dirs="$as_dir $as_dirs"
18085       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18087          X"$as_dir" : 'X\(//\)[^/]' \| \
18088          X"$as_dir" : 'X\(//\)$' \| \
18089          X"$as_dir" : 'X\(/\)' \| \
18090          .     : '\(.\)' 2>/dev/null ||
18091 echo X"$as_dir" |
18092     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18093           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18094           /^X\(\/\/\)$/{ s//\1/; q; }
18095           /^X\(\/\).*/{ s//\1/; q; }
18096           s/.*/./; q'`
18097     done
18098     test ! -n "$as_dirs" || mkdir $as_dirs
18099   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18100 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18101    { (exit 1); exit 1; }; }; }
18102
18103       rm -f $ac_file
18104       mv $tmp/config.h $ac_file
18105     fi
18106   else
18107     cat $tmp/config.h
18108     rm -f $tmp/config.h
18109   fi
18110 # Compute $ac_file's index in $config_headers.
18111 _am_stamp_count=1
18112 for _am_header in $config_headers :; do
18113   case $_am_header in
18114     $ac_file | $ac_file:* )
18115       break ;;
18116     * )
18117       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18118   esac
18119 done
18120 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18121 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18122          X$ac_file : 'X\(//\)[^/]' \| \
18123          X$ac_file : 'X\(//\)$' \| \
18124          X$ac_file : 'X\(/\)' \| \
18125          .     : '\(.\)' 2>/dev/null ||
18126 echo X$ac_file |
18127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18129           /^X\(\/\/\)$/{ s//\1/; q; }
18130           /^X\(\/\).*/{ s//\1/; q; }
18131           s/.*/./; q'`/stamp-h$_am_stamp_count
18132 done
18133 _ACEOF
18134 cat >>$CONFIG_STATUS <<\_ACEOF
18135
18136 #
18137 # CONFIG_LINKS section.
18138 #
18139
18140 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18141   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18142   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18143
18144   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18145 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18146
18147   if test ! -r $srcdir/$ac_source; then
18148     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18149 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18150    { (exit 1); exit 1; }; }
18151   fi
18152   rm -f $ac_dest
18153
18154   # Make relative symlinks.
18155   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18156 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18157          X"$ac_dest" : 'X\(//\)[^/]' \| \
18158          X"$ac_dest" : 'X\(//\)$' \| \
18159          X"$ac_dest" : 'X\(/\)' \| \
18160          .     : '\(.\)' 2>/dev/null ||
18161 echo X"$ac_dest" |
18162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18163           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18164           /^X\(\/\/\)$/{ s//\1/; q; }
18165           /^X\(\/\).*/{ s//\1/; q; }
18166           s/.*/./; q'`
18167   { if $as_mkdir_p; then
18168     mkdir -p "$ac_dest_dir"
18169   else
18170     as_dir="$ac_dest_dir"
18171     as_dirs=
18172     while test ! -d "$as_dir"; do
18173       as_dirs="$as_dir $as_dirs"
18174       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18176          X"$as_dir" : 'X\(//\)[^/]' \| \
18177          X"$as_dir" : 'X\(//\)$' \| \
18178          X"$as_dir" : 'X\(/\)' \| \
18179          .     : '\(.\)' 2>/dev/null ||
18180 echo X"$as_dir" |
18181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18183           /^X\(\/\/\)$/{ s//\1/; q; }
18184           /^X\(\/\).*/{ s//\1/; q; }
18185           s/.*/./; q'`
18186     done
18187     test ! -n "$as_dirs" || mkdir $as_dirs
18188   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18189 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18190    { (exit 1); exit 1; }; }; }
18191
18192   ac_builddir=.
18193
18194 if test "$ac_dest_dir" != .; then
18195   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18196   # A "../" for each directory in $ac_dir_suffix.
18197   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18198 else
18199   ac_dir_suffix= ac_top_builddir=
18200 fi
18201
18202 case $srcdir in
18203   .)  # No --srcdir option.  We are building in place.
18204     ac_srcdir=.
18205     if test -z "$ac_top_builddir"; then
18206        ac_top_srcdir=.
18207     else
18208        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18209     fi ;;
18210   [\\/]* | ?:[\\/]* )  # Absolute path.
18211     ac_srcdir=$srcdir$ac_dir_suffix;
18212     ac_top_srcdir=$srcdir ;;
18213   *) # Relative path.
18214     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18215     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18216 esac
18217
18218 # Do not use `cd foo && pwd` to compute absolute paths, because
18219 # the directories may not exist.
18220 case `pwd` in
18221 .) ac_abs_builddir="$ac_dest_dir";;
18222 *)
18223   case "$ac_dest_dir" in
18224   .) ac_abs_builddir=`pwd`;;
18225   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18226   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18227   esac;;
18228 esac
18229 case $ac_abs_builddir in
18230 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18231 *)
18232   case ${ac_top_builddir}. in
18233   .) ac_abs_top_builddir=$ac_abs_builddir;;
18234   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18235   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18236   esac;;
18237 esac
18238 case $ac_abs_builddir in
18239 .) ac_abs_srcdir=$ac_srcdir;;
18240 *)
18241   case $ac_srcdir in
18242   .) ac_abs_srcdir=$ac_abs_builddir;;
18243   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18244   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18245   esac;;
18246 esac
18247 case $ac_abs_builddir in
18248 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18249 *)
18250   case $ac_top_srcdir in
18251   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18252   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18253   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18254   esac;;
18255 esac
18256
18257
18258   case $srcdir in
18259   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18260       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18261   esac
18262
18263   # Try a symlink, then a hard link, then a copy.
18264   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18265     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18266     cp -p $srcdir/$ac_source $ac_dest ||
18267     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18268 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18269    { (exit 1); exit 1; }; }
18270 done
18271 _ACEOF
18272 cat >>$CONFIG_STATUS <<\_ACEOF
18273
18274 #
18275 # CONFIG_COMMANDS section.
18276 #
18277 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18278   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18279   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18280   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18281 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18282          X"$ac_dest" : 'X\(//\)[^/]' \| \
18283          X"$ac_dest" : 'X\(//\)$' \| \
18284          X"$ac_dest" : 'X\(/\)' \| \
18285          .     : '\(.\)' 2>/dev/null ||
18286 echo X"$ac_dest" |
18287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18288           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18289           /^X\(\/\/\)$/{ s//\1/; q; }
18290           /^X\(\/\).*/{ s//\1/; q; }
18291           s/.*/./; q'`
18292   { if $as_mkdir_p; then
18293     mkdir -p "$ac_dir"
18294   else
18295     as_dir="$ac_dir"
18296     as_dirs=
18297     while test ! -d "$as_dir"; do
18298       as_dirs="$as_dir $as_dirs"
18299       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18301          X"$as_dir" : 'X\(//\)[^/]' \| \
18302          X"$as_dir" : 'X\(//\)$' \| \
18303          X"$as_dir" : 'X\(/\)' \| \
18304          .     : '\(.\)' 2>/dev/null ||
18305 echo X"$as_dir" |
18306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18307           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18308           /^X\(\/\/\)$/{ s//\1/; q; }
18309           /^X\(\/\).*/{ s//\1/; q; }
18310           s/.*/./; q'`
18311     done
18312     test ! -n "$as_dirs" || mkdir $as_dirs
18313   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18315    { (exit 1); exit 1; }; }; }
18316
18317   ac_builddir=.
18318
18319 if test "$ac_dir" != .; then
18320   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18321   # A "../" for each directory in $ac_dir_suffix.
18322   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18323 else
18324   ac_dir_suffix= ac_top_builddir=
18325 fi
18326
18327 case $srcdir in
18328   .)  # No --srcdir option.  We are building in place.
18329     ac_srcdir=.
18330     if test -z "$ac_top_builddir"; then
18331        ac_top_srcdir=.
18332     else
18333        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18334     fi ;;
18335   [\\/]* | ?:[\\/]* )  # Absolute path.
18336     ac_srcdir=$srcdir$ac_dir_suffix;
18337     ac_top_srcdir=$srcdir ;;
18338   *) # Relative path.
18339     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18340     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18341 esac
18342
18343 # Do not use `cd foo && pwd` to compute absolute paths, because
18344 # the directories may not exist.
18345 case `pwd` in
18346 .) ac_abs_builddir="$ac_dir";;
18347 *)
18348   case "$ac_dir" in
18349   .) ac_abs_builddir=`pwd`;;
18350   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18351   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18352   esac;;
18353 esac
18354 case $ac_abs_builddir in
18355 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18356 *)
18357   case ${ac_top_builddir}. in
18358   .) ac_abs_top_builddir=$ac_abs_builddir;;
18359   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18360   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18361   esac;;
18362 esac
18363 case $ac_abs_builddir in
18364 .) ac_abs_srcdir=$ac_srcdir;;
18365 *)
18366   case $ac_srcdir in
18367   .) ac_abs_srcdir=$ac_abs_builddir;;
18368   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18369   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18370   esac;;
18371 esac
18372 case $ac_abs_builddir in
18373 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18374 *)
18375   case $ac_top_srcdir in
18376   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18377   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18378   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18379   esac;;
18380 esac
18381
18382
18383   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18384 echo "$as_me: executing $ac_dest commands" >&6;}
18385   case $ac_dest in
18386     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18387   # Strip MF so we end up with the name of the file.
18388   mf=`echo "$mf" | sed -e 's/:.*$//'`
18389   # Check whether this is an Automake generated Makefile or not.
18390   # We used to match only the files named `Makefile.in', but
18391   # some people rename them; so instead we look at the file content.
18392   # Grep'ing the first line is not enough: some people post-process
18393   # each Makefile.in and add a new line on top of each file to say so.
18394   # So let's grep whole file.
18395   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18396     dirpart=`(dirname "$mf") 2>/dev/null ||
18397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18398          X"$mf" : 'X\(//\)[^/]' \| \
18399          X"$mf" : 'X\(//\)$' \| \
18400          X"$mf" : 'X\(/\)' \| \
18401          .     : '\(.\)' 2>/dev/null ||
18402 echo X"$mf" |
18403     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18404           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18405           /^X\(\/\/\)$/{ s//\1/; q; }
18406           /^X\(\/\).*/{ s//\1/; q; }
18407           s/.*/./; q'`
18408   else
18409     continue
18410   fi
18411   # Extract the definition of DEPDIR, am__include, and am__quote
18412   # from the Makefile without running `make'.
18413   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18414   test -z "$DEPDIR" && continue
18415   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18416   test -z "am__include" && continue
18417   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18418   # When using ansi2knr, U may be empty or an underscore; expand it
18419   U=`sed -n 's/^U = //p' < "$mf"`
18420   # Find all dependency output files, they are included files with
18421   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18422   # simplest approach to changing $(DEPDIR) to its actual value in the
18423   # expansion.
18424   for file in `sed -n "
18425     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18426        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18427     # Make sure the directory exists.
18428     test -f "$dirpart/$file" && continue
18429     fdir=`(dirname "$file") 2>/dev/null ||
18430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18431          X"$file" : 'X\(//\)[^/]' \| \
18432          X"$file" : 'X\(//\)$' \| \
18433          X"$file" : 'X\(/\)' \| \
18434          .     : '\(.\)' 2>/dev/null ||
18435 echo X"$file" |
18436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18438           /^X\(\/\/\)$/{ s//\1/; q; }
18439           /^X\(\/\).*/{ s//\1/; q; }
18440           s/.*/./; q'`
18441     { if $as_mkdir_p; then
18442     mkdir -p $dirpart/$fdir
18443   else
18444     as_dir=$dirpart/$fdir
18445     as_dirs=
18446     while test ! -d "$as_dir"; do
18447       as_dirs="$as_dir $as_dirs"
18448       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18450          X"$as_dir" : 'X\(//\)[^/]' \| \
18451          X"$as_dir" : 'X\(//\)$' \| \
18452          X"$as_dir" : 'X\(/\)' \| \
18453          .     : '\(.\)' 2>/dev/null ||
18454 echo X"$as_dir" |
18455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18457           /^X\(\/\/\)$/{ s//\1/; q; }
18458           /^X\(\/\).*/{ s//\1/; q; }
18459           s/.*/./; q'`
18460     done
18461     test ! -n "$as_dirs" || mkdir $as_dirs
18462   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18463 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18464    { (exit 1); exit 1; }; }; }
18465
18466     # echo "creating $dirpart/$file"
18467     echo '# dummy' > "$dirpart/$file"
18468   done
18469 done
18470  ;;
18471     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18472 case " $CONFIG_FILES " in
18473  *" Makefile "*)
18474    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18475    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18476    ;;
18477 esac
18478 for ac_multi_file in $CONFIG_FILES; do
18479   case $ac_multi_file in
18480   */Makefile)
18481     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18482   esac
18483 done
18484  ;;
18485   esac
18486 done
18487 _ACEOF
18488
18489 cat >>$CONFIG_STATUS <<\_ACEOF
18490
18491 { (exit 0); exit 0; }
18492 _ACEOF
18493 chmod +x $CONFIG_STATUS
18494 ac_clean_files=$ac_clean_files_save
18495
18496
18497 # configure is writing to config.log, and then calls config.status.
18498 # config.status does its own redirection, appending to config.log.
18499 # Unfortunately, on DOS this fails, as config.log is still kept open
18500 # by configure, so config.status won't be able to write to it; its
18501 # output is simply discarded.  So we exec the FD to /dev/null,
18502 # effectively closing config.log, so it can be properly (re)opened and
18503 # appended to by config.status.  When coming back to configure, we
18504 # need to make the FD available again.
18505 if test "$no_create" != yes; then
18506   ac_cs_success=:
18507   ac_config_status_args=
18508   test "$silent" = yes &&
18509     ac_config_status_args="$ac_config_status_args --quiet"
18510   exec 5>/dev/null
18511   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18512   exec 5>>config.log
18513   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18514   # would make configure fail if this is the last instruction.
18515   $ac_cs_success || { (exit 1); exit 1; }
18516 fi
18517
18518 #
18519 # CONFIG_SUBDIRS section.
18520 #
18521 if test "$no_recursion" != yes; then
18522
18523   # Remove --cache-file and --srcdir arguments so they do not pile up.
18524   ac_sub_configure_args=
18525   ac_prev=
18526   for ac_arg in $ac_configure_args; do
18527     if test -n "$ac_prev"; then
18528       ac_prev=
18529       continue
18530     fi
18531     case $ac_arg in
18532     -cache-file | --cache-file | --cache-fil | --cache-fi \
18533     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18534       ac_prev=cache_file ;;
18535     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18536     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18537     | --c=*)
18538       ;;
18539     --config-cache | -C)
18540       ;;
18541     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18542       ac_prev=srcdir ;;
18543     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18544       ;;
18545     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18546       ac_prev=prefix ;;
18547     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18548       ;;
18549     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18550     esac
18551   done
18552
18553   # Always prepend --prefix to ensure using the same prefix
18554   # in subdir configurations.
18555   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18556
18557   ac_popdir=`pwd`
18558   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18559
18560     # Do not complain, so a configure script can configure whichever
18561     # parts of a large source tree are present.
18562     test -d $srcdir/$ac_dir || continue
18563
18564     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18565 echo "$as_me: configuring in $ac_dir" >&6;}
18566     { if $as_mkdir_p; then
18567     mkdir -p "$ac_dir"
18568   else
18569     as_dir="$ac_dir"
18570     as_dirs=
18571     while test ! -d "$as_dir"; do
18572       as_dirs="$as_dir $as_dirs"
18573       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18575          X"$as_dir" : 'X\(//\)[^/]' \| \
18576          X"$as_dir" : 'X\(//\)$' \| \
18577          X"$as_dir" : 'X\(/\)' \| \
18578          .     : '\(.\)' 2>/dev/null ||
18579 echo X"$as_dir" |
18580     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18581           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18582           /^X\(\/\/\)$/{ s//\1/; q; }
18583           /^X\(\/\).*/{ s//\1/; q; }
18584           s/.*/./; q'`
18585     done
18586     test ! -n "$as_dirs" || mkdir $as_dirs
18587   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18588 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18589    { (exit 1); exit 1; }; }; }
18590
18591     ac_builddir=.
18592
18593 if test "$ac_dir" != .; then
18594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18595   # A "../" for each directory in $ac_dir_suffix.
18596   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18597 else
18598   ac_dir_suffix= ac_top_builddir=
18599 fi
18600
18601 case $srcdir in
18602   .)  # No --srcdir option.  We are building in place.
18603     ac_srcdir=.
18604     if test -z "$ac_top_builddir"; then
18605        ac_top_srcdir=.
18606     else
18607        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18608     fi ;;
18609   [\\/]* | ?:[\\/]* )  # Absolute path.
18610     ac_srcdir=$srcdir$ac_dir_suffix;
18611     ac_top_srcdir=$srcdir ;;
18612   *) # Relative path.
18613     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18614     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18615 esac
18616
18617 # Do not use `cd foo && pwd` to compute absolute paths, because
18618 # the directories may not exist.
18619 case `pwd` in
18620 .) ac_abs_builddir="$ac_dir";;
18621 *)
18622   case "$ac_dir" in
18623   .) ac_abs_builddir=`pwd`;;
18624   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18625   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18626   esac;;
18627 esac
18628 case $ac_abs_builddir in
18629 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18630 *)
18631   case ${ac_top_builddir}. in
18632   .) ac_abs_top_builddir=$ac_abs_builddir;;
18633   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18634   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18635   esac;;
18636 esac
18637 case $ac_abs_builddir in
18638 .) ac_abs_srcdir=$ac_srcdir;;
18639 *)
18640   case $ac_srcdir in
18641   .) ac_abs_srcdir=$ac_abs_builddir;;
18642   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18643   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18644   esac;;
18645 esac
18646 case $ac_abs_builddir in
18647 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18648 *)
18649   case $ac_top_srcdir in
18650   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18651   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18652   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18653   esac;;
18654 esac
18655
18656
18657     cd $ac_dir
18658
18659     # Check for guested configure; otherwise get Cygnus style configure.
18660     if test -f $ac_srcdir/configure.gnu; then
18661       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18662     elif test -f $ac_srcdir/configure; then
18663       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18664     elif test -f $ac_srcdir/configure.in; then
18665       ac_sub_configure=$ac_configure
18666     else
18667       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18668 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18669       ac_sub_configure=
18670     fi
18671
18672     # The recursion is here.
18673     if test -n "$ac_sub_configure"; then
18674       # Make the cache file name correct relative to the subdirectory.
18675       case $cache_file in
18676       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18677       *) # Relative path.
18678         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18679       esac
18680
18681       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18682 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18683       # The eval makes quoting arguments work.
18684       eval $ac_sub_configure $ac_sub_configure_args \
18685            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18686         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18687 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18688    { (exit 1); exit 1; }; }
18689     fi
18690
18691     cd $ac_popdir
18692   done
18693 fi
18694