OSDN Git Service

Canonicalize mips nmadd/nmsub patterns.
[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.
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=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS INCLTDL LIBLTDL DIRLTDL STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS EXTRA_CC_FILES PLATFORMOBJS PLATFORM_INNER_NAT_HDRS CPP EGREP SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCOBJS GCSPEC JC1GCSPEC GCTESTSPEC THREADLIBS THREADINCS THREADDEPS THREADOBJS THREADSPEC THREADLDFLAGS THREADCXXFLAGS HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS GCJH ZIP GCJ ac_ct_GCJ GCJFLAGS ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures this package 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
845   cat <<\_ACEOF
846
847 Optional Features:
848   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
849   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
850   --enable-version-specific-runtime-libs
851                           specify that runtime libraries should be installed
852                           in a compiler-specific directory
853   --enable-multilib       build many library versions (default)
854   --enable-maintainer-mode enable make rules and dependencies not useful
855                           (and sometimes confusing) to the casual installer
856   --enable-shared=PKGS  build shared libraries default=yes
857   --enable-static=PKGS  build static libraries default=yes
858   --enable-fast-install=PKGS  optimize for fast installation default=yes
859   --disable-libtool-lock  avoid locking (might break parallel builds)
860   --disable-getenv-properties
861                           don't set system properties from GCJ_PROPERTIES
862   --enable-hash-synchronization
863                           use global hash table for monitor locks
864   --enable-libgcj-multifile
865                  allow compilation of several files at once
866
867   --enable-libgcj-debug   enable runtime debugging code
868   --enable-interpreter    enable interpreter
869   --enable-sjlj-exceptions
870                           force use of builtin_setjmp for exceptions
871   --disable-java-net      disable java.net
872   --disable-jvmpi         disable JVMPI support
873   --enable-java-awt       list of AWT peer implementations to be built
874   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
875   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
876
877 Optional Packages:
878   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880   --with-target-subdir=SUBDIR
881                           configure in a subdirectory
882   --with-cross-host=HOST  configure with a cross compiler from HOST
883   --with-newlib           configure with newlib
884   --with-gnu-ld           assume the C compiler uses GNU ld default=no
885   --with-pic              try to use only PIC/non-PIC objects default=use both
886   --with-win32-nlsapi=ansi or unicows or unicode
887                           native MinGW libgcj Win32 OS API (default is ansi)
888   --without-libffi        don't use libffi
889   --with-ecos             enable runtime eCos target support
890   --with-system-zlib      use installed libz
891   --with-x                use the X Window System
892   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
893
894 Some influential environment variables:
895   CC          C compiler command
896   CFLAGS      C compiler flags
897   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
898               nonstandard directory <lib dir>
899   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
900               headers in a nonstandard directory <include dir>
901   CXX         C++ compiler command
902   CXXFLAGS    C++ compiler flags
903   CXXCPP      C++ preprocessor
904   CPP         C preprocessor
905
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
908
909 _ACEOF
910 fi
911
912 if test "$ac_init_help" = "recursive"; then
913   # If there are subdirs, report their specific --help.
914   ac_popdir=`pwd`
915   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916     test -d $ac_dir || continue
917     ac_builddir=.
918
919 if test "$ac_dir" != .; then
920   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921   # A "../" for each directory in $ac_dir_suffix.
922   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 else
924   ac_dir_suffix= ac_top_builddir=
925 fi
926
927 case $srcdir in
928   .)  # No --srcdir option.  We are building in place.
929     ac_srcdir=.
930     if test -z "$ac_top_builddir"; then
931        ac_top_srcdir=.
932     else
933        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934     fi ;;
935   [\\/]* | ?:[\\/]* )  # Absolute path.
936     ac_srcdir=$srcdir$ac_dir_suffix;
937     ac_top_srcdir=$srcdir ;;
938   *) # Relative path.
939     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940     ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 esac
942
943 # Do not use `cd foo && pwd` to compute absolute paths, because
944 # the directories may not exist.
945 case `pwd` in
946 .) ac_abs_builddir="$ac_dir";;
947 *)
948   case "$ac_dir" in
949   .) ac_abs_builddir=`pwd`;;
950   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
951   *) ac_abs_builddir=`pwd`/"$ac_dir";;
952   esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
956 *)
957   case ${ac_top_builddir}. in
958   .) ac_abs_top_builddir=$ac_abs_builddir;;
959   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
960   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_srcdir=$ac_srcdir;;
965 *)
966   case $ac_srcdir in
967   .) ac_abs_srcdir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
969   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
974 *)
975   case $ac_top_srcdir in
976   .) ac_abs_top_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
978   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
979   esac;;
980 esac
981
982     cd $ac_dir
983     # Check for guested configure; otherwise get Cygnus style configure.
984     if test -f $ac_srcdir/configure.gnu; then
985       echo
986       $SHELL $ac_srcdir/configure.gnu  --help=recursive
987     elif test -f $ac_srcdir/configure; then
988       echo
989       $SHELL $ac_srcdir/configure  --help=recursive
990     elif test -f $ac_srcdir/configure.ac ||
991            test -f $ac_srcdir/configure.in; then
992       echo
993       $ac_configure --help
994     else
995       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
996     fi
997     cd $ac_popdir
998   done
999 fi
1000
1001 test -n "$ac_init_help" && exit 0
1002 if $ac_init_version; then
1003   cat <<\_ACEOF
1004
1005 Copyright (C) 2003 Free Software Foundation, Inc.
1006 This configure script is free software; the Free Software Foundation
1007 gives unlimited permission to copy, distribute and modify it.
1008 _ACEOF
1009   exit 0
1010 fi
1011 exec 5>config.log
1012 cat >&5 <<_ACEOF
1013 This file contains any messages produced by compilers while
1014 running configure, to aid debugging if configure makes a mistake.
1015
1016 It was created by $as_me, which was
1017 generated by GNU Autoconf 2.59.  Invocation command line was
1018
1019   $ $0 $@
1020
1021 _ACEOF
1022 {
1023 cat <<_ASUNAME
1024 ## --------- ##
1025 ## Platform. ##
1026 ## --------- ##
1027
1028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1033
1034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1035 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1036
1037 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1038 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1040 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1041 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1042 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1043 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1044
1045 _ASUNAME
1046
1047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 for as_dir in $PATH
1049 do
1050   IFS=$as_save_IFS
1051   test -z "$as_dir" && as_dir=.
1052   echo "PATH: $as_dir"
1053 done
1054
1055 } >&5
1056
1057 cat >&5 <<_ACEOF
1058
1059
1060 ## ----------- ##
1061 ## Core tests. ##
1062 ## ----------- ##
1063
1064 _ACEOF
1065
1066
1067 # Keep a trace of the command line.
1068 # Strip out --no-create and --no-recursion so they do not pile up.
1069 # Strip out --silent because we don't want to record it for future runs.
1070 # Also quote any args containing shell meta-characters.
1071 # Make two passes to allow for proper duplicate-argument suppression.
1072 ac_configure_args=
1073 ac_configure_args0=
1074 ac_configure_args1=
1075 ac_sep=
1076 ac_must_keep_next=false
1077 for ac_pass in 1 2
1078 do
1079   for ac_arg
1080   do
1081     case $ac_arg in
1082     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1083     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084     | -silent | --silent | --silen | --sile | --sil)
1085       continue ;;
1086     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1088     esac
1089     case $ac_pass in
1090     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1091     2)
1092       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1093       if test $ac_must_keep_next = true; then
1094         ac_must_keep_next=false # Got value, back to normal.
1095       else
1096         case $ac_arg in
1097           *=* | --config-cache | -C | -disable-* | --disable-* \
1098           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1099           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1100           | -with-* | --with-* | -without-* | --without-* | --x)
1101             case "$ac_configure_args0 " in
1102               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1103             esac
1104             ;;
1105           -* ) ac_must_keep_next=true ;;
1106         esac
1107       fi
1108       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1109       # Get rid of the leading space.
1110       ac_sep=" "
1111       ;;
1112     esac
1113   done
1114 done
1115 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1116 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1117
1118 # When interrupted or exit'd, cleanup temporary files, and complete
1119 # config.log.  We remove comments because anyway the quotes in there
1120 # would cause problems or look ugly.
1121 # WARNING: Be sure not to use single quotes in there, as some shells,
1122 # such as our DU 5.0 friend, will then `close' the trap.
1123 trap 'exit_status=$?
1124   # Save into config.log some information that might help in debugging.
1125   {
1126     echo
1127
1128     cat <<\_ASBOX
1129 ## ---------------- ##
1130 ## Cache variables. ##
1131 ## ---------------- ##
1132 _ASBOX
1133     echo
1134     # The following way of writing the cache mishandles newlines in values,
1135 {
1136   (set) 2>&1 |
1137     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1138     *ac_space=\ *)
1139       sed -n \
1140         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1141           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142       ;;
1143     *)
1144       sed -n \
1145         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1146       ;;
1147     esac;
1148 }
1149     echo
1150
1151     cat <<\_ASBOX
1152 ## ----------------- ##
1153 ## Output variables. ##
1154 ## ----------------- ##
1155 _ASBOX
1156     echo
1157     for ac_var in $ac_subst_vars
1158     do
1159       eval ac_val=$`echo $ac_var`
1160       echo "$ac_var='"'"'$ac_val'"'"'"
1161     done | sort
1162     echo
1163
1164     if test -n "$ac_subst_files"; then
1165       cat <<\_ASBOX
1166 ## ------------- ##
1167 ## Output files. ##
1168 ## ------------- ##
1169 _ASBOX
1170       echo
1171       for ac_var in $ac_subst_files
1172       do
1173         eval ac_val=$`echo $ac_var`
1174         echo "$ac_var='"'"'$ac_val'"'"'"
1175       done | sort
1176       echo
1177     fi
1178
1179     if test -s confdefs.h; then
1180       cat <<\_ASBOX
1181 ## ----------- ##
1182 ## confdefs.h. ##
1183 ## ----------- ##
1184 _ASBOX
1185       echo
1186       sed "/^$/d" confdefs.h | sort
1187       echo
1188     fi
1189     test "$ac_signal" != 0 &&
1190       echo "$as_me: caught signal $ac_signal"
1191     echo "$as_me: exit $exit_status"
1192   } >&5
1193   rm -f core *.core &&
1194   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1195     exit $exit_status
1196      ' 0
1197 for ac_signal in 1 2 13 15; do
1198   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 done
1200 ac_signal=0
1201
1202 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1203 rm -rf conftest* confdefs.h
1204 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1205 echo >confdefs.h
1206
1207 # Predefined preprocessor variables.
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 _ACEOF
1212
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 _ACEOF
1232
1233
1234 # Let the site file select an alternate cache file if it wants to.
1235 # Prefer explicitly selected file to automatically selected ones.
1236 if test -z "$CONFIG_SITE"; then
1237   if test "x$prefix" != xNONE; then
1238     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1239   else
1240     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1241   fi
1242 fi
1243 for ac_site_file in $CONFIG_SITE; do
1244   if test -r "$ac_site_file"; then
1245     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1246 echo "$as_me: loading site script $ac_site_file" >&6;}
1247     sed 's/^/| /' "$ac_site_file" >&5
1248     . "$ac_site_file"
1249   fi
1250 done
1251
1252 if test -r "$cache_file"; then
1253   # Some versions of bash will fail to source /dev/null (special
1254   # files actually), so we avoid doing that.
1255   if test -f "$cache_file"; then
1256     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1257 echo "$as_me: loading cache $cache_file" >&6;}
1258     case $cache_file in
1259       [\\/]* | ?:[\\/]* ) . $cache_file;;
1260       *)                      . ./$cache_file;;
1261     esac
1262   fi
1263 else
1264   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1265 echo "$as_me: creating cache $cache_file" >&6;}
1266   >$cache_file
1267 fi
1268
1269 # Check that the precious variables saved in the cache have kept the same
1270 # value.
1271 ac_cache_corrupted=false
1272 for ac_var in `(set) 2>&1 |
1273                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1274   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1275   eval ac_new_set=\$ac_env_${ac_var}_set
1276   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1277   eval ac_new_val="\$ac_env_${ac_var}_value"
1278   case $ac_old_set,$ac_new_set in
1279     set,)
1280       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1282       ac_cache_corrupted=: ;;
1283     ,set)
1284       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1286       ac_cache_corrupted=: ;;
1287     ,);;
1288     *)
1289       if test "x$ac_old_val" != "x$ac_new_val"; then
1290         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1291 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1292         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1293 echo "$as_me:   former value:  $ac_old_val" >&2;}
1294         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1295 echo "$as_me:   current value: $ac_new_val" >&2;}
1296         ac_cache_corrupted=:
1297       fi;;
1298   esac
1299   # Pass precious variables to config.status.
1300   if test "$ac_new_set" = set; then
1301     case $ac_new_val in
1302     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1304     *) ac_arg=$ac_var=$ac_new_val ;;
1305     esac
1306     case " $ac_configure_args " in
1307       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1308       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309     esac
1310   fi
1311 done
1312 if $ac_cache_corrupted; then
1313   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1314 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1315   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1316 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1317    { (exit 1); exit 1; }; }
1318 fi
1319
1320 ac_ext=c
1321 ac_cpp='$CPP $CPPFLAGS'
1322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 # We use these options to decide which functions to include.
1346
1347 # Check whether --with-target-subdir or --without-target-subdir was given.
1348 if test "${with_target_subdir+set}" = set; then
1349   withval="$with_target_subdir"
1350
1351 fi;
1352
1353 # We may get other options which we don't document:
1354 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1355
1356 # When building with srcdir == objdir, links to the source files will
1357 # be created in directories within the target_subdir.  We have to
1358 # adjust toplevel_srcdir accordingly, so that configure finds
1359 # install-sh and other auxiliary files that live in the top-level
1360 # source directory.
1361 if test "${srcdir}" = "."; then
1362   if test -z "${with_target_subdir}"; then
1363     toprel=".."
1364   else
1365     if test "${with_target_subdir}" != "."; then
1366       toprel="${with_multisrctop}../.."
1367     else
1368       toprel="${with_multisrctop}.."
1369     fi
1370   fi
1371 else
1372   toprel=".."
1373 fi
1374
1375 libgcj_basedir=$srcdir/$toprel/./libjava
1376
1377
1378 ac_aux_dir=
1379 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1380   if test -f $ac_dir/install-sh; then
1381     ac_aux_dir=$ac_dir
1382     ac_install_sh="$ac_aux_dir/install-sh -c"
1383     break
1384   elif test -f $ac_dir/install.sh; then
1385     ac_aux_dir=$ac_dir
1386     ac_install_sh="$ac_aux_dir/install.sh -c"
1387     break
1388   elif test -f $ac_dir/shtool; then
1389     ac_aux_dir=$ac_dir
1390     ac_install_sh="$ac_aux_dir/shtool install -c"
1391     break
1392   fi
1393 done
1394 if test -z "$ac_aux_dir"; then
1395   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1396 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1397    { (exit 1); exit 1; }; }
1398 fi
1399 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1400 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1401 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1402
1403 if :; then :; else
1404   # This overrides the previous occurrence for automake, but not for
1405   # autoconf, which is exactly what we want.
1406   ac_aux_dir=
1407 for ac_dir in .. $srcdir/..; do
1408   if test -f $ac_dir/install-sh; then
1409     ac_aux_dir=$ac_dir
1410     ac_install_sh="$ac_aux_dir/install-sh -c"
1411     break
1412   elif test -f $ac_dir/install.sh; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/install.sh -c"
1415     break
1416   elif test -f $ac_dir/shtool; then
1417     ac_aux_dir=$ac_dir
1418     ac_install_sh="$ac_aux_dir/shtool install -c"
1419     break
1420   fi
1421 done
1422 if test -z "$ac_aux_dir"; then
1423   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1425    { (exit 1); exit 1; }; }
1426 fi
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1430
1431 fi
1432
1433 # Make sure we can run config.sub.
1434 $ac_config_sub sun4 >/dev/null 2>&1 ||
1435   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1436 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1437    { (exit 1); exit 1; }; }
1438
1439 echo "$as_me:$LINENO: checking build system type" >&5
1440 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1441 if test "${ac_cv_build+set}" = set; then
1442   echo $ECHO_N "(cached) $ECHO_C" >&6
1443 else
1444   ac_cv_build_alias=$build_alias
1445 test -z "$ac_cv_build_alias" &&
1446   ac_cv_build_alias=`$ac_config_guess`
1447 test -z "$ac_cv_build_alias" &&
1448   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1449 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1450    { (exit 1); exit 1; }; }
1451 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1452   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1454    { (exit 1); exit 1; }; }
1455
1456 fi
1457 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1458 echo "${ECHO_T}$ac_cv_build" >&6
1459 build=$ac_cv_build
1460 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1463
1464
1465 echo "$as_me:$LINENO: checking host system type" >&5
1466 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1467 if test "${ac_cv_host+set}" = set; then
1468   echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470   ac_cv_host_alias=$host_alias
1471 test -z "$ac_cv_host_alias" &&
1472   ac_cv_host_alias=$ac_cv_build_alias
1473 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1474   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1476    { (exit 1); exit 1; }; }
1477
1478 fi
1479 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1480 echo "${ECHO_T}$ac_cv_host" >&6
1481 host=$ac_cv_host
1482 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1485
1486
1487 echo "$as_me:$LINENO: checking target system type" >&5
1488 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1489 if test "${ac_cv_target+set}" = set; then
1490   echo $ECHO_N "(cached) $ECHO_C" >&6
1491 else
1492   ac_cv_target_alias=$target_alias
1493 test "x$ac_cv_target_alias" = "x" &&
1494   ac_cv_target_alias=$ac_cv_host_alias
1495 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1496   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1497 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1498    { (exit 1); exit 1; }; }
1499
1500 fi
1501 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1502 echo "${ECHO_T}$ac_cv_target" >&6
1503 target=$ac_cv_target
1504 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1505 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1506 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1507
1508
1509 # The aliases save the names the user supplied, while $host etc.
1510 # will get canonicalized.
1511 test -n "$target_alias" &&
1512   test "$program_prefix$program_suffix$program_transform_name" = \
1513     NONENONEs,x,x, &&
1514   program_prefix=${target_alias}-
1515  case ${build_alias} in
1516   "") build_noncanonical=${build} ;;
1517   *) build_noncanonical=${build_alias} ;;
1518 esac
1519
1520  case ${host_alias} in
1521   "") host_noncanonical=${build_noncanonical} ;;
1522   *) host_noncanonical=${host_alias} ;;
1523 esac
1524
1525  case ${target_alias} in
1526   "") target_noncanonical=${host_noncanonical} ;;
1527   *) target_noncanonical=${target_alias} ;;
1528 esac
1529
1530
1531
1532
1533 # This works around the fact that libtool configuration may change LD
1534 # for this particular configuration, but some shells, instead of
1535 # keeping the changes in LD private, export them just because LD is
1536 # exported.
1537 ORIGINAL_LD_FOR_MULTILIBS=$LD
1538
1539 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1541 LN_S=$as_ln_s
1542 if test "$LN_S" = "ln -s"; then
1543   echo "$as_me:$LINENO: result: yes" >&5
1544 echo "${ECHO_T}yes" >&6
1545 else
1546   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1547 echo "${ECHO_T}no, using $LN_S" >&6
1548 fi
1549
1550
1551 # This works around an automake problem.
1552 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1553
1554
1555
1556 # Check whether --with-cross-host or --without-cross-host was given.
1557 if test "${with_cross_host+set}" = set; then
1558   withval="$with_cross_host"
1559
1560 fi;
1561
1562
1563 # Check whether --with-newlib or --without-newlib was given.
1564 if test "${with_newlib+set}" = set; then
1565   withval="$with_newlib"
1566
1567 fi;
1568
1569 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1570 if test "${enable_version_specific_runtime_libs+set}" = set; then
1571   enableval="$enable_version_specific_runtime_libs"
1572   case "$enableval" in
1573       yes) version_specific_libs=yes ;;
1574       no)  version_specific_libs=no ;;
1575       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1576 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1577    { (exit 1); exit 1; }; };;
1578      esac
1579 else
1580   version_specific_libs=no
1581
1582 fi;
1583
1584 # Default to --enable-multilib
1585 # Check whether --enable-multilib or --disable-multilib was given.
1586 if test "${enable_multilib+set}" = set; then
1587   enableval="$enable_multilib"
1588   case "${enableval}" in
1589   yes) multilib=yes ;;
1590   no)  multilib=no ;;
1591   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1592 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1593    { (exit 1); exit 1; }; } ;;
1594  esac
1595 else
1596   multilib=yes
1597 fi;
1598 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1599
1600
1601 # (1) We use an abnormal CXX (without library references), so we
1602 # must cache it under a different name.
1603 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1604 # the non-multilib-adjusted value will be used in multilibs.
1605 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1606 # (4) As another side effect, automake doesn't automatically include them
1607 # in Makefile.in.
1608 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1609 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1610 # used in later tests.  This may not be necessary in libjava; I don't know.
1611
1612
1613
1614 save_CXXFLAGS="$CXXFLAGS"
1615 CXXFLAGS="$CXXFLAGS -fno-builtin"
1616 ac_ext=c
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621 if test -n "$ac_tool_prefix"; then
1622   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627   echo $ECHO_N "(cached) $ECHO_C" >&6
1628 else
1629   if test -n "$CC"; then
1630   ac_cv_prog_CC="$CC" # Let the user override the test.
1631 else
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635   IFS=$as_save_IFS
1636   test -z "$as_dir" && as_dir=.
1637   for ac_exec_ext in '' $ac_executable_extensions; do
1638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1641     break 2
1642   fi
1643 done
1644 done
1645
1646 fi
1647 fi
1648 CC=$ac_cv_prog_CC
1649 if test -n "$CC"; then
1650   echo "$as_me:$LINENO: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1652 else
1653   echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1655 fi
1656
1657 fi
1658 if test -z "$ac_cv_prog_CC"; then
1659   ac_ct_CC=$CC
1660   # Extract the first word of "gcc", so it can be a program name with args.
1661 set dummy gcc; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   if test -n "$ac_ct_CC"; then
1668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673   IFS=$as_save_IFS
1674   test -z "$as_dir" && as_dir=.
1675   for ac_exec_ext in '' $ac_executable_extensions; do
1676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677     ac_cv_prog_ac_ct_CC="gcc"
1678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679     break 2
1680   fi
1681 done
1682 done
1683
1684 fi
1685 fi
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1690 else
1691   echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 fi
1694
1695   CC=$ac_ct_CC
1696 else
1697   CC="$ac_cv_prog_CC"
1698 fi
1699
1700 if test -z "$CC"; then
1701   if test -n "$ac_tool_prefix"; then
1702   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1703 set dummy ${ac_tool_prefix}cc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707   echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709   if test -n "$CC"; then
1710   ac_cv_prog_CC="$CC" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   for ac_exec_ext in '' $ac_executable_extensions; do
1718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719     ac_cv_prog_CC="${ac_tool_prefix}cc"
1720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721     break 2
1722   fi
1723 done
1724 done
1725
1726 fi
1727 fi
1728 CC=$ac_cv_prog_CC
1729 if test -n "$CC"; then
1730   echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737 fi
1738 if test -z "$ac_cv_prog_CC"; then
1739   ac_ct_CC=$CC
1740   # Extract the first word of "cc", so it can be a program name with args.
1741 set dummy cc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   if test -n "$ac_ct_CC"; then
1748   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1749 else
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 for as_dir in $PATH
1752 do
1753   IFS=$as_save_IFS
1754   test -z "$as_dir" && as_dir=.
1755   for ac_exec_ext in '' $ac_executable_extensions; do
1756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757     ac_cv_prog_ac_ct_CC="cc"
1758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1759     break 2
1760   fi
1761 done
1762 done
1763
1764 fi
1765 fi
1766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1767 if test -n "$ac_ct_CC"; then
1768   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1769 echo "${ECHO_T}$ac_ct_CC" >&6
1770 else
1771   echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1773 fi
1774
1775   CC=$ac_ct_CC
1776 else
1777   CC="$ac_cv_prog_CC"
1778 fi
1779
1780 fi
1781 if test -z "$CC"; then
1782   # Extract the first word of "cc", so it can be a program name with args.
1783 set dummy cc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787   echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789   if test -n "$CC"; then
1790   ac_cv_prog_CC="$CC" # Let the user override the test.
1791 else
1792   ac_prog_rejected=no
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1801        ac_prog_rejected=yes
1802        continue
1803      fi
1804     ac_cv_prog_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 if test $ac_prog_rejected = yes; then
1812   # We found a bogon in the path, so make sure we never use it.
1813   set dummy $ac_cv_prog_CC
1814   shift
1815   if test $# != 0; then
1816     # We chose a different compiler from the bogus one.
1817     # However, it has the same basename, so the bogon will be chosen
1818     # first if we set CC to just the basename; use the full file name.
1819     shift
1820     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1821   fi
1822 fi
1823 fi
1824 fi
1825 CC=$ac_cv_prog_CC
1826 if test -n "$CC"; then
1827   echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1829 else
1830   echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834 fi
1835 if test -z "$CC"; then
1836   if test -n "$ac_tool_prefix"; then
1837   for ac_prog in cl
1838   do
1839     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   if test -n "$CC"; then
1847   ac_cv_prog_CC="$CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852   IFS=$as_save_IFS
1853   test -z "$as_dir" && as_dir=.
1854   for ac_exec_ext in '' $ac_executable_extensions; do
1855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858     break 2
1859   fi
1860 done
1861 done
1862
1863 fi
1864 fi
1865 CC=$ac_cv_prog_CC
1866 if test -n "$CC"; then
1867   echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1869 else
1870   echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1872 fi
1873
1874     test -n "$CC" && break
1875   done
1876 fi
1877 if test -z "$CC"; then
1878   ac_ct_CC=$CC
1879   for ac_prog in cl
1880 do
1881   # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$ac_ct_CC"; then
1889   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_ac_ct_CC="$ac_prog"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916   test -n "$ac_ct_CC" && break
1917 done
1918
1919   CC=$ac_ct_CC
1920 fi
1921
1922 fi
1923
1924
1925 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1926 See \`config.log' for more details." >&5
1927 echo "$as_me: error: no acceptable C compiler found in \$PATH
1928 See \`config.log' for more details." >&2;}
1929    { (exit 1); exit 1; }; }
1930
1931 # Provide some information about the compiler.
1932 echo "$as_me:$LINENO:" \
1933      "checking for C compiler version" >&5
1934 ac_compiler=`set X $ac_compile; echo $2`
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1936   (eval $ac_compiler --version </dev/null >&5) 2>&5
1937   ac_status=$?
1938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939   (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1941   (eval $ac_compiler -v </dev/null >&5) 2>&5
1942   ac_status=$?
1943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944   (exit $ac_status); }
1945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1946   (eval $ac_compiler -V </dev/null >&5) 2>&5
1947   ac_status=$?
1948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949   (exit $ac_status); }
1950
1951 cat >conftest.$ac_ext <<_ACEOF
1952 /* confdefs.h.  */
1953 _ACEOF
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h.  */
1957
1958 int
1959 main ()
1960 {
1961
1962   ;
1963   return 0;
1964 }
1965 _ACEOF
1966 # FIXME: Cleanup?
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968   (eval $ac_link) 2>&5
1969   ac_status=$?
1970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971   (exit $ac_status); }; then
1972   gcc_no_link=no
1973 else
1974   gcc_no_link=yes
1975 fi
1976
1977 if test x$gcc_no_link = xyes; then
1978   # Setting cross_compile will disable run tests; it will
1979   # also disable AC_CHECK_FILE but that's generally
1980   # correct if we can't link.
1981   cross_compiling=yes
1982   EXEEXT=
1983 else
1984   cat >conftest.$ac_ext <<_ACEOF
1985 /* confdefs.h.  */
1986 _ACEOF
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h.  */
1990
1991 int
1992 main ()
1993 {
1994
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 ac_clean_files_save=$ac_clean_files
2000 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2001 # Try to create an executable without -o first, disregard a.out.
2002 # It will help us diagnose broken compilers, and finding out an intuition
2003 # of exeext.
2004 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2005 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2006 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008   (eval $ac_link_default) 2>&5
2009   ac_status=$?
2010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011   (exit $ac_status); }; then
2012   # Find the output, starting from the most likely.  This scheme is
2013 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2014 # resort.
2015
2016 # Be careful to initialize this variable, since it used to be cached.
2017 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2018 ac_cv_exeext=
2019 # b.out is created by i960 compilers.
2020 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2021 do
2022   test -f "$ac_file" || continue
2023   case $ac_file in
2024     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2025         ;;
2026     conftest.$ac_ext )
2027         # This is the source file.
2028         ;;
2029     [ab].out )
2030         # We found the default executable, but exeext='' is most
2031         # certainly right.
2032         break;;
2033     *.* )
2034         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2035         # FIXME: I believe we export ac_cv_exeext for Libtool,
2036         # but it would be cool to find out if it's true.  Does anybody
2037         # maintain Libtool? --akim.
2038         export ac_cv_exeext
2039         break;;
2040     * )
2041         break;;
2042   esac
2043 done
2044 else
2045   echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: C compiler cannot create executables
2051 See \`config.log' for more details." >&2;}
2052    { (exit 77); exit 77; }; }
2053 fi
2054
2055 ac_exeext=$ac_cv_exeext
2056 echo "$as_me:$LINENO: result: $ac_file" >&5
2057 echo "${ECHO_T}$ac_file" >&6
2058
2059 # Check the compiler produces executables we can run.  If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2062 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2063 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2064 # If not cross compiling, check that we can run a simple program.
2065 if test "$cross_compiling" != yes; then
2066   if { ac_try='./$ac_file'
2067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2068   (eval $ac_try) 2>&5
2069   ac_status=$?
2070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071   (exit $ac_status); }; }; then
2072     cross_compiling=no
2073   else
2074     if test "$cross_compiling" = maybe; then
2075         cross_compiling=yes
2076     else
2077         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2078 If you meant to cross compile, use \`--host'.
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot run C compiled programs.
2081 If you meant to cross compile, use \`--host'.
2082 See \`config.log' for more details." >&2;}
2083    { (exit 1); exit 1; }; }
2084     fi
2085   fi
2086 fi
2087 echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6
2089
2090 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2091 ac_clean_files=$ac_clean_files_save
2092 # Check the compiler produces executables we can run.  If not, either
2093 # the compiler is broken, or we cross compile.
2094 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2095 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2096 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2097 echo "${ECHO_T}$cross_compiling" >&6
2098
2099 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2100 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2102   (eval $ac_link) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; then
2106   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2107 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2108 # work properly (i.e., refer to `conftest.exe'), while it won't with
2109 # `rm'.
2110 for ac_file in conftest.exe conftest conftest.*; do
2111   test -f "$ac_file" || continue
2112   case $ac_file in
2113     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2114     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115           export ac_cv_exeext
2116           break;;
2117     * ) break;;
2118   esac
2119 done
2120 else
2121   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2124 See \`config.log' for more details." >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127
2128 rm -f conftest$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2130 echo "${ECHO_T}$ac_cv_exeext" >&6
2131
2132 rm -f conftest.$ac_ext
2133 EXEEXT=$ac_cv_exeext
2134 ac_exeext=$EXEEXT
2135 fi
2136 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2137 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2138 if test "${ac_cv_objext+set}" = set; then
2139   echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141   cat >conftest.$ac_ext <<_ACEOF
2142 /* confdefs.h.  */
2143 _ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h.  */
2147
2148 int
2149 main ()
2150 {
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 rm -f conftest.o conftest.obj
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158   (eval $ac_compile) 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }; then
2162   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2163   case $ac_file in
2164     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2165     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2166        break;;
2167   esac
2168 done
2169 else
2170   echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2176 See \`config.log' for more details." >&2;}
2177    { (exit 1); exit 1; }; }
2178 fi
2179
2180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2181 fi
2182 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2183 echo "${ECHO_T}$ac_cv_objext" >&6
2184 OBJEXT=$ac_cv_objext
2185 ac_objext=$OBJEXT
2186 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   cat >conftest.$ac_ext <<_ACEOF
2192 /* confdefs.h.  */
2193 _ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h.  */
2197
2198 int
2199 main ()
2200 {
2201 #ifndef __GNUC__
2202        choke me
2203 #endif
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211   (eval $ac_compile) 2>conftest.er1
2212   ac_status=$?
2213   grep -v '^ *+' conftest.er1 >conftest.err
2214   rm -f conftest.er1
2215   cat conftest.err >&5
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); } &&
2218          { ac_try='test -z "$ac_c_werror_flag"
2219                          || test ! -s conftest.err'
2220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221   (eval $ac_try) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; } &&
2225          { ac_try='test -s conftest.$ac_objext'
2226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227   (eval $ac_try) 2>&5
2228   ac_status=$?
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); }; }; then
2231   ac_compiler_gnu=yes
2232 else
2233   echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2235
2236 ac_compiler_gnu=no
2237 fi
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2240
2241 fi
2242 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2244 GCC=`test $ac_compiler_gnu = yes && echo yes`
2245 ac_test_CFLAGS=${CFLAGS+set}
2246 ac_save_CFLAGS=$CFLAGS
2247 CFLAGS="-g"
2248 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2249 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2250 if test "${ac_cv_prog_cc_g+set}" = set; then
2251   echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253   cat >conftest.$ac_ext <<_ACEOF
2254 /* confdefs.h.  */
2255 _ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h.  */
2259
2260 int
2261 main ()
2262 {
2263
2264   ;
2265   return 0;
2266 }
2267 _ACEOF
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270   (eval $ac_compile) 2>conftest.er1
2271   ac_status=$?
2272   grep -v '^ *+' conftest.er1 >conftest.err
2273   rm -f conftest.er1
2274   cat conftest.err >&5
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); } &&
2277          { ac_try='test -z "$ac_c_werror_flag"
2278                          || test ! -s conftest.err'
2279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280   (eval $ac_try) 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }; } &&
2284          { ac_try='test -s conftest.$ac_objext'
2285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286   (eval $ac_try) 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }; }; then
2290   ac_cv_prog_cc_g=yes
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 ac_cv_prog_cc_g=no
2296 fi
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2298 fi
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2301 if test "$ac_test_CFLAGS" = set; then
2302   CFLAGS=$ac_save_CFLAGS
2303 elif test $ac_cv_prog_cc_g = yes; then
2304   if test "$GCC" = yes; then
2305     CFLAGS="-g -O2"
2306   else
2307     CFLAGS="-g"
2308   fi
2309 else
2310   if test "$GCC" = yes; then
2311     CFLAGS="-O2"
2312   else
2313     CFLAGS=
2314   fi
2315 fi
2316 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2317 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2318 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   ac_cv_prog_cc_stdc=no
2322 ac_save_CC=$CC
2323 cat >conftest.$ac_ext <<_ACEOF
2324 /* confdefs.h.  */
2325 _ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h.  */
2329 #include <stdarg.h>
2330 #include <stdio.h>
2331 #include <sys/types.h>
2332 #include <sys/stat.h>
2333 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2334 struct buf { int x; };
2335 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2336 static char *e (p, i)
2337      char **p;
2338      int i;
2339 {
2340   return p[i];
2341 }
2342 static char *f (char * (*g) (char **, int), char **p, ...)
2343 {
2344   char *s;
2345   va_list v;
2346   va_start (v,p);
2347   s = g (p, va_arg (v,int));
2348   va_end (v);
2349   return s;
2350 }
2351
2352 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2353    function prototypes and stuff, but not '\xHH' hex character constants.
2354    These don't provoke an error unfortunately, instead are silently treated
2355    as 'x'.  The following induces an error, until -std1 is added to get
2356    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2357    array size at least.  It's necessary to write '\x00'==0 to get something
2358    that's true only with -std1.  */
2359 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2360
2361 int test (int i, double x);
2362 struct s1 {int (*f) (int a);};
2363 struct s2 {int (*f) (double a);};
2364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2365 int argc;
2366 char **argv;
2367 int
2368 main ()
2369 {
2370 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2371   ;
2372   return 0;
2373 }
2374 _ACEOF
2375 # Don't try gcc -ansi; that turns off useful extensions and
2376 # breaks some systems' header files.
2377 # AIX                   -qlanglvl=ansi
2378 # Ultrix and OSF/1      -std1
2379 # HP-UX 10.20 and later -Ae
2380 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2381 # SVR4                  -Xc -D__EXTENSIONS__
2382 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2383 do
2384   CC="$ac_save_CC $ac_arg"
2385   rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387   (eval $ac_compile) 2>conftest.er1
2388   ac_status=$?
2389   grep -v '^ *+' conftest.er1 >conftest.err
2390   rm -f conftest.er1
2391   cat conftest.err >&5
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); } &&
2394          { ac_try='test -z "$ac_c_werror_flag"
2395                          || test ! -s conftest.err'
2396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397   (eval $ac_try) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); }; } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   ac_cv_prog_cc_stdc=$ac_arg
2408 break
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 fi
2414 rm -f conftest.err conftest.$ac_objext
2415 done
2416 rm -f conftest.$ac_ext conftest.$ac_objext
2417 CC=$ac_save_CC
2418
2419 fi
2420
2421 case "x$ac_cv_prog_cc_stdc" in
2422   x|xno)
2423     echo "$as_me:$LINENO: result: none needed" >&5
2424 echo "${ECHO_T}none needed" >&6 ;;
2425   *)
2426     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2427 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2428     CC="$CC $ac_cv_prog_cc_stdc" ;;
2429 esac
2430
2431 # Some people use a C++ compiler to compile C.  Since we use `exit',
2432 # in C++ we need to declare it.  In case someone uses the same compiler
2433 # for both compiling C and C++ we need to have the C++ compiler decide
2434 # the declaration of exit, since it's the most demanding environment.
2435 cat >conftest.$ac_ext <<_ACEOF
2436 #ifndef __cplusplus
2437   choke me
2438 #endif
2439 _ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442   (eval $ac_compile) 2>conftest.er1
2443   ac_status=$?
2444   grep -v '^ *+' conftest.er1 >conftest.err
2445   rm -f conftest.er1
2446   cat conftest.err >&5
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); } &&
2449          { ac_try='test -z "$ac_c_werror_flag"
2450                          || test ! -s conftest.err'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; } &&
2456          { ac_try='test -s conftest.$ac_objext'
2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; }; then
2462   for ac_declaration in \
2463    '' \
2464    'extern "C" void std::exit (int) throw (); using std::exit;' \
2465    'extern "C" void std::exit (int); using std::exit;' \
2466    'extern "C" void exit (int) throw ();' \
2467    'extern "C" void exit (int);' \
2468    'void exit (int);'
2469 do
2470   cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476 $ac_declaration
2477 #include <stdlib.h>
2478 int
2479 main ()
2480 {
2481 exit (42);
2482   ;
2483   return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488   (eval $ac_compile) 2>conftest.er1
2489   ac_status=$?
2490   grep -v '^ *+' conftest.er1 >conftest.err
2491   rm -f conftest.er1
2492   cat conftest.err >&5
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); } &&
2495          { ac_try='test -z "$ac_c_werror_flag"
2496                          || test ! -s conftest.err'
2497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2498   (eval $ac_try) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); }; } &&
2502          { ac_try='test -s conftest.$ac_objext'
2503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504   (eval $ac_try) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; }; then
2508   :
2509 else
2510   echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 continue
2514 fi
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516   cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2522 $ac_declaration
2523 int
2524 main ()
2525 {
2526 exit (42);
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533   (eval $ac_compile) 2>conftest.er1
2534   ac_status=$?
2535   grep -v '^ *+' conftest.er1 >conftest.err
2536   rm -f conftest.er1
2537   cat conftest.err >&5
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); } &&
2540          { ac_try='test -z "$ac_c_werror_flag"
2541                          || test ! -s conftest.err'
2542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543   (eval $ac_try) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; } &&
2547          { ac_try='test -s conftest.$ac_objext'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; }; then
2553   break
2554 else
2555   echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 fi
2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2560 done
2561 rm -f conftest*
2562 if test -n "$ac_declaration"; then
2563   echo '#ifdef __cplusplus' >>confdefs.h
2564   echo $ac_declaration      >>confdefs.h
2565   echo '#endif'             >>confdefs.h
2566 fi
2567
2568 else
2569   echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580 ac_ext=cc
2581 ac_cpp='$CXXCPP $CPPFLAGS'
2582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2585 if test -n "$ac_tool_prefix"; then
2586   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2587   do
2588     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2592 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   if test -n "$CXX"; then
2596   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603   for ac_exec_ext in '' $ac_executable_extensions; do
2604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610 done
2611
2612 fi
2613 fi
2614 CXX=$glibcxx_cv_prog_CXX
2615 if test -n "$CXX"; then
2616   echo "$as_me:$LINENO: result: $CXX" >&5
2617 echo "${ECHO_T}$CXX" >&6
2618 else
2619   echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2621 fi
2622
2623     test -n "$CXX" && break
2624   done
2625 fi
2626 if test -z "$CXX"; then
2627   ac_ct_CXX=$CXX
2628   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2629 do
2630   # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2635   echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637   if test -n "$ac_ct_CXX"; then
2638   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643   IFS=$as_save_IFS
2644   test -z "$as_dir" && as_dir=.
2645   for ac_exec_ext in '' $ac_executable_extensions; do
2646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647     ac_cv_prog_ac_ct_CXX="$ac_prog"
2648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649     break 2
2650   fi
2651 done
2652 done
2653
2654 fi
2655 fi
2656 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2657 if test -n "$ac_ct_CXX"; then
2658   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2659 echo "${ECHO_T}$ac_ct_CXX" >&6
2660 else
2661   echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2663 fi
2664
2665   test -n "$ac_ct_CXX" && break
2666 done
2667 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2668
2669   CXX=$ac_ct_CXX
2670 fi
2671
2672
2673 # Provide some information about the compiler.
2674 echo "$as_me:$LINENO:" \
2675      "checking for C++ compiler version" >&5
2676 ac_compiler=`set X $ac_compile; echo $2`
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2678   (eval $ac_compiler --version </dev/null >&5) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2683   (eval $ac_compiler -v </dev/null >&5) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }
2687 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2688   (eval $ac_compiler -V </dev/null >&5) 2>&5
2689   ac_status=$?
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); }
2692
2693 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2694 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2695 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704
2705 int
2706 main ()
2707 {
2708 #ifndef __GNUC__
2709        choke me
2710 #endif
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718   (eval $ac_compile) 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } &&
2725          { ac_try='test -z "$ac_cxx_werror_flag"
2726                          || test ! -s conftest.err'
2727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728   (eval $ac_try) 2>&5
2729   ac_status=$?
2730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); }; } &&
2732          { ac_try='test -s conftest.$ac_objext'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_compiler_gnu=yes
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 ac_compiler_gnu=no
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2747
2748 fi
2749 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2750 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2751 GXX=`test $ac_compiler_gnu = yes && echo yes`
2752 ac_test_CXXFLAGS=${CXXFLAGS+set}
2753 ac_save_CXXFLAGS=$CXXFLAGS
2754 CXXFLAGS="-g"
2755 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2756 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2757 if test "${ac_cv_prog_cxx_g+set}" = set; then
2758   echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760   cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 int
2768 main ()
2769 {
2770
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777   (eval $ac_compile) 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } &&
2784          { ac_try='test -z "$ac_cxx_werror_flag"
2785                          || test ! -s conftest.err'
2786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787   (eval $ac_try) 2>&5
2788   ac_status=$?
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); }; } &&
2791          { ac_try='test -s conftest.$ac_objext'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; }; then
2797   ac_cv_prog_cxx_g=yes
2798 else
2799   echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 ac_cv_prog_cxx_g=no
2803 fi
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 fi
2806 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2808 if test "$ac_test_CXXFLAGS" = set; then
2809   CXXFLAGS=$ac_save_CXXFLAGS
2810 elif test $ac_cv_prog_cxx_g = yes; then
2811   if test "$GXX" = yes; then
2812     CXXFLAGS="-g -O2"
2813   else
2814     CXXFLAGS="-g"
2815   fi
2816 else
2817   if test "$GXX" = yes; then
2818     CXXFLAGS="-O2"
2819   else
2820     CXXFLAGS=
2821   fi
2822 fi
2823 for ac_declaration in \
2824    '' \
2825    'extern "C" void std::exit (int) throw (); using std::exit;' \
2826    'extern "C" void std::exit (int); using std::exit;' \
2827    'extern "C" void exit (int) throw ();' \
2828    'extern "C" void exit (int);' \
2829    'void exit (int);'
2830 do
2831   cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837 $ac_declaration
2838 #include <stdlib.h>
2839 int
2840 main ()
2841 {
2842 exit (42);
2843   ;
2844   return 0;
2845 }
2846 _ACEOF
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849   (eval $ac_compile) 2>conftest.er1
2850   ac_status=$?
2851   grep -v '^ *+' conftest.er1 >conftest.err
2852   rm -f conftest.er1
2853   cat conftest.err >&5
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); } &&
2856          { ac_try='test -z "$ac_cxx_werror_flag"
2857                          || test ! -s conftest.err'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; } &&
2863          { ac_try='test -s conftest.$ac_objext'
2864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865   (eval $ac_try) 2>&5
2866   ac_status=$?
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); }; }; then
2869   :
2870 else
2871   echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 continue
2875 fi
2876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877   cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h.  */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h.  */
2883 $ac_declaration
2884 int
2885 main ()
2886 {
2887 exit (42);
2888   ;
2889   return 0;
2890 }
2891 _ACEOF
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894   (eval $ac_compile) 2>conftest.er1
2895   ac_status=$?
2896   grep -v '^ *+' conftest.er1 >conftest.err
2897   rm -f conftest.er1
2898   cat conftest.err >&5
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); } &&
2901          { ac_try='test -z "$ac_cxx_werror_flag"
2902                          || test ! -s conftest.err'
2903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904   (eval $ac_try) 2>&5
2905   ac_status=$?
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); }; } &&
2908          { ac_try='test -s conftest.$ac_objext'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; }; then
2914   break
2915 else
2916   echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2918
2919 fi
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2921 done
2922 rm -f conftest*
2923 if test -n "$ac_declaration"; then
2924   echo '#ifdef __cplusplus' >>confdefs.h
2925   echo $ac_declaration      >>confdefs.h
2926   echo '#endif'             >>confdefs.h
2927 fi
2928
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2934
2935 CXXFLAGS="$save_CXXFLAGS"
2936
2937
2938
2939
2940
2941 # version is pulled out to make it a bit easier to change using sed.
2942 version=0.0.7
2943 # Still use "libjava" here to placate dejagnu.
2944 # Find a good install program.  We prefer a C program (faster),
2945 # so one script is as good as another.  But avoid the broken or
2946 # incompatible versions:
2947 # SysV /etc/install, /usr/sbin/install
2948 # SunOS /usr/etc/install
2949 # IRIX /sbin/install
2950 # AIX /bin/install
2951 # AmigaOS /C/install, which installs bootblocks on floppy discs
2952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2955 # OS/2's system install, which has a completely different semantic
2956 # ./install, which can be erroneously created by make from ./install.sh.
2957 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2958 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2959 if test -z "$INSTALL"; then
2960 if test "${ac_cv_path_install+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966   IFS=$as_save_IFS
2967   test -z "$as_dir" && as_dir=.
2968   # Account for people who put trailing slashes in PATH elements.
2969 case $as_dir/ in
2970   ./ | .// | /cC/* | \
2971   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2972   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2973   /usr/ucb/* ) ;;
2974   *)
2975     # OSF1 and SCO ODT 3.0 have their own names for install.
2976     # Don't use installbsd from OSF since it installs stuff as root
2977     # by default.
2978     for ac_prog in ginstall scoinst install; do
2979       for ac_exec_ext in '' $ac_executable_extensions; do
2980         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2981           if test $ac_prog = install &&
2982             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2983             # AIX install.  It has an incompatible calling convention.
2984             :
2985           elif test $ac_prog = install &&
2986             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987             # program-specific install script used by HP pwplus--don't use.
2988             :
2989           else
2990             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2991             break 3
2992           fi
2993         fi
2994       done
2995     done
2996     ;;
2997 esac
2998 done
2999
3000
3001 fi
3002   if test "${ac_cv_path_install+set}" = set; then
3003     INSTALL=$ac_cv_path_install
3004   else
3005     # As a last resort, use the slow shell script.  We don't cache a
3006     # path for INSTALL within a source directory, because that will
3007     # break other packages using the cache if that directory is
3008     # removed, or if the path is relative.
3009     INSTALL=$ac_install_sh
3010   fi
3011 fi
3012 echo "$as_me:$LINENO: result: $INSTALL" >&5
3013 echo "${ECHO_T}$INSTALL" >&6
3014
3015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016 # It thinks the first close brace ends the variable substitution.
3017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3018
3019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3020
3021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3022
3023 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3024 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3025 # Just in case
3026 sleep 1
3027 echo timestamp > conftestfile
3028 # Do `set' in a subshell so we don't clobber the current shell's
3029 # arguments.  Must try -L first in case configure is actually a
3030 # symlink; some systems play weird games with the mod time of symlinks
3031 # (eg FreeBSD returns the mod time of the symlink's containing
3032 # directory).
3033 if (
3034    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
3035    if test "$*" = "X"; then
3036       # -L didn't work.
3037       set X `ls -t $srcdir/configure conftestfile`
3038    fi
3039    if test "$*" != "X $srcdir/configure conftestfile" \
3040       && test "$*" != "X conftestfile $srcdir/configure"; then
3041
3042       # If neither matched, then we have a broken ls.  This can happen
3043       # if, for instance, CONFIG_SHELL is bash and it inherits a
3044       # broken ls alias from the environment.  This has actually
3045       # happened.  Such a system could not be considered "sane".
3046       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3047 alias in your environment" >&5
3048 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3049 alias in your environment" >&2;}
3050    { (exit 1); exit 1; }; }
3051    fi
3052
3053    test "$2" = conftestfile
3054    )
3055 then
3056    # Ok.
3057    :
3058 else
3059    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3060 Check your system clock" >&5
3061 echo "$as_me: error: newly created file is older than distributed files!
3062 Check your system clock" >&2;}
3063    { (exit 1); exit 1; }; }
3064 fi
3065 rm -f conftest*
3066 echo "$as_me:$LINENO: result: yes" >&5
3067 echo "${ECHO_T}yes" >&6
3068 test "$program_prefix" != NONE &&
3069   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3070 # Use a double $ so make ignores it.
3071 test "$program_suffix" != NONE &&
3072   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3073 # Double any \ or $.  echo might interpret backslashes.
3074 # By default was `s,x,x', remove it if useless.
3075 cat <<\_ACEOF >conftest.sed
3076 s/[\\$]/&&/g;s/;s,x,x,$//
3077 _ACEOF
3078 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3079 rm conftest.sed
3080
3081 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3082 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3083 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3084 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3085   echo $ECHO_N "(cached) $ECHO_C" >&6
3086 else
3087   cat >conftest.make <<\_ACEOF
3088 all:
3089         @echo 'ac_maketemp="$(MAKE)"'
3090 _ACEOF
3091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3092 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3093 if test -n "$ac_maketemp"; then
3094   eval ac_cv_prog_make_${ac_make}_set=yes
3095 else
3096   eval ac_cv_prog_make_${ac_make}_set=no
3097 fi
3098 rm -f conftest.make
3099 fi
3100 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3101   echo "$as_me:$LINENO: result: yes" >&5
3102 echo "${ECHO_T}yes" >&6
3103   SET_MAKE=
3104 else
3105   echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3107   SET_MAKE="MAKE=${MAKE-make}"
3108 fi
3109
3110
3111 PACKAGE=libjava
3112
3113 VERSION=$version
3114
3115 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
3116   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3117 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3118    { (exit 1); exit 1; }; }
3119 fi
3120
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE "$PACKAGE"
3123 _ACEOF
3124
3125
3126 cat >>confdefs.h <<_ACEOF
3127 #define VERSION "$VERSION"
3128 _ACEOF
3129
3130
3131
3132 missing_dir=`cd $ac_aux_dir && pwd`
3133 echo "$as_me:$LINENO: checking for working aclocal" >&5
3134 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
3135 # Run test in a subshell; some versions of sh will print an error if
3136 # an executable is not found, even if stderr is redirected.
3137 # Redirect stdin to placate older versions of autoconf.  Sigh.
3138 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
3139    ACLOCAL=aclocal
3140    echo "$as_me:$LINENO: result: found" >&5
3141 echo "${ECHO_T}found" >&6
3142 else
3143    ACLOCAL="$missing_dir/missing aclocal"
3144    echo "$as_me:$LINENO: result: missing" >&5
3145 echo "${ECHO_T}missing" >&6
3146 fi
3147
3148 echo "$as_me:$LINENO: checking for working autoconf" >&5
3149 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
3150 # Run test in a subshell; some versions of sh will print an error if
3151 # an executable is not found, even if stderr is redirected.
3152 # Redirect stdin to placate older versions of autoconf.  Sigh.
3153 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
3154    AUTOCONF=autoconf
3155    echo "$as_me:$LINENO: result: found" >&5
3156 echo "${ECHO_T}found" >&6
3157 else
3158    AUTOCONF="$missing_dir/missing autoconf"
3159    echo "$as_me:$LINENO: result: missing" >&5
3160 echo "${ECHO_T}missing" >&6
3161 fi
3162
3163 echo "$as_me:$LINENO: checking for working automake" >&5
3164 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
3165 # Run test in a subshell; some versions of sh will print an error if
3166 # an executable is not found, even if stderr is redirected.
3167 # Redirect stdin to placate older versions of autoconf.  Sigh.
3168 if (automake --version) < /dev/null > /dev/null 2>&1; then
3169    AUTOMAKE=automake
3170    echo "$as_me:$LINENO: result: found" >&5
3171 echo "${ECHO_T}found" >&6
3172 else
3173    AUTOMAKE="$missing_dir/missing automake"
3174    echo "$as_me:$LINENO: result: missing" >&5
3175 echo "${ECHO_T}missing" >&6
3176 fi
3177
3178 echo "$as_me:$LINENO: checking for working autoheader" >&5
3179 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
3180 # Run test in a subshell; some versions of sh will print an error if
3181 # an executable is not found, even if stderr is redirected.
3182 # Redirect stdin to placate older versions of autoconf.  Sigh.
3183 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
3184    AUTOHEADER=autoheader
3185    echo "$as_me:$LINENO: result: found" >&5
3186 echo "${ECHO_T}found" >&6
3187 else
3188    AUTOHEADER="$missing_dir/missing autoheader"
3189    echo "$as_me:$LINENO: result: missing" >&5
3190 echo "${ECHO_T}missing" >&6
3191 fi
3192
3193 echo "$as_me:$LINENO: checking for working makeinfo" >&5
3194 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
3195 # Run test in a subshell; some versions of sh will print an error if
3196 # an executable is not found, even if stderr is redirected.
3197 # Redirect stdin to placate older versions of autoconf.  Sigh.
3198 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
3199    MAKEINFO=makeinfo
3200    echo "$as_me:$LINENO: result: found" >&5
3201 echo "${ECHO_T}found" >&6
3202 else
3203    MAKEINFO="$missing_dir/missing makeinfo"
3204    echo "$as_me:$LINENO: result: missing" >&5
3205 echo "${ECHO_T}missing" >&6
3206 fi
3207
3208
3209
3210 if test -n "$ac_tool_prefix"; then
3211   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}as; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_prog_AS+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   if test -n "$AS"; then
3219   ac_cv_prog_AS="$AS" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   for ac_exec_ext in '' $ac_executable_extensions; do
3227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228     ac_cv_prog_AS="${ac_tool_prefix}as"
3229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230     break 2
3231   fi
3232 done
3233 done
3234
3235 fi
3236 fi
3237 AS=$ac_cv_prog_AS
3238 if test -n "$AS"; then
3239   echo "$as_me:$LINENO: result: $AS" >&5
3240 echo "${ECHO_T}$AS" >&6
3241 else
3242   echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3244 fi
3245
3246 fi
3247 if test -z "$ac_cv_prog_AS"; then
3248   ac_ct_AS=$AS
3249   # Extract the first word of "as", so it can be a program name with args.
3250 set dummy as; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   if test -n "$ac_ct_AS"; then
3257   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264   for ac_exec_ext in '' $ac_executable_extensions; do
3265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266     ac_cv_prog_ac_ct_AS="as"
3267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271 done
3272
3273 fi
3274 fi
3275 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3276 if test -n "$ac_ct_AS"; then
3277   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3278 echo "${ECHO_T}$ac_ct_AS" >&6
3279 else
3280   echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 fi
3283
3284   AS=$ac_ct_AS
3285 else
3286   AS="$ac_cv_prog_AS"
3287 fi
3288
3289 if test -n "$ac_tool_prefix"; then
3290   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}ar; ac_word=$2
3292 echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_prog_AR+set}" = set; then
3295   echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297   if test -n "$AR"; then
3298   ac_cv_prog_AR="$AR" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303   IFS=$as_save_IFS
3304   test -z "$as_dir" && as_dir=.
3305   for ac_exec_ext in '' $ac_executable_extensions; do
3306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307     ac_cv_prog_AR="${ac_tool_prefix}ar"
3308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309     break 2
3310   fi
3311 done
3312 done
3313
3314 fi
3315 fi
3316 AR=$ac_cv_prog_AR
3317 if test -n "$AR"; then
3318   echo "$as_me:$LINENO: result: $AR" >&5
3319 echo "${ECHO_T}$AR" >&6
3320 else
3321   echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 fi
3324
3325 fi
3326 if test -z "$ac_cv_prog_AR"; then
3327   ac_ct_AR=$AR
3328   # Extract the first word of "ar", so it can be a program name with args.
3329 set dummy ar; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -n "$ac_ct_AR"; then
3336   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343   for ac_exec_ext in '' $ac_executable_extensions; do
3344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345     ac_cv_prog_ac_ct_AR="ar"
3346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350 done
3351
3352 fi
3353 fi
3354 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3355 if test -n "$ac_ct_AR"; then
3356   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3357 echo "${ECHO_T}$ac_ct_AR" >&6
3358 else
3359   echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362
3363   AR=$ac_ct_AR
3364 else
3365   AR="$ac_cv_prog_AR"
3366 fi
3367
3368 if test -n "$ac_tool_prefix"; then
3369   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_prog_RANLIB+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376   if test -n "$RANLIB"; then
3377   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3378 else
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 for as_dir in $PATH
3381 do
3382   IFS=$as_save_IFS
3383   test -z "$as_dir" && as_dir=.
3384   for ac_exec_ext in '' $ac_executable_extensions; do
3385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388     break 2
3389   fi
3390 done
3391 done
3392
3393 fi
3394 fi
3395 RANLIB=$ac_cv_prog_RANLIB
3396 if test -n "$RANLIB"; then
3397   echo "$as_me:$LINENO: result: $RANLIB" >&5
3398 echo "${ECHO_T}$RANLIB" >&6
3399 else
3400   echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3402 fi
3403
3404 fi
3405 if test -z "$ac_cv_prog_RANLIB"; then
3406   ac_ct_RANLIB=$RANLIB
3407   # Extract the first word of "ranlib", so it can be a program name with args.
3408 set dummy ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   if test -n "$ac_ct_RANLIB"; then
3415   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420   IFS=$as_save_IFS
3421   test -z "$as_dir" && as_dir=.
3422   for ac_exec_ext in '' $ac_executable_extensions; do
3423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424     ac_cv_prog_ac_ct_RANLIB="ranlib"
3425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429 done
3430
3431   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3432 fi
3433 fi
3434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3435 if test -n "$ac_ct_RANLIB"; then
3436   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3437 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3438 else
3439   echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441 fi
3442
3443   RANLIB=$ac_ct_RANLIB
3444 else
3445   RANLIB="$ac_cv_prog_RANLIB"
3446 fi
3447
3448
3449 # Find a good install program.  We prefer a C program (faster),
3450 # so one script is as good as another.  But avoid the broken or
3451 # incompatible versions:
3452 # SysV /etc/install, /usr/sbin/install
3453 # SunOS /usr/etc/install
3454 # IRIX /sbin/install
3455 # AIX /bin/install
3456 # AmigaOS /C/install, which installs bootblocks on floppy discs
3457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3460 # OS/2's system install, which has a completely different semantic
3461 # ./install, which can be erroneously created by make from ./install.sh.
3462 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3463 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3464 if test -z "$INSTALL"; then
3465 if test "${ac_cv_path_install+set}" = set; then
3466   echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473   # Account for people who put trailing slashes in PATH elements.
3474 case $as_dir/ in
3475   ./ | .// | /cC/* | \
3476   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3477   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3478   /usr/ucb/* ) ;;
3479   *)
3480     # OSF1 and SCO ODT 3.0 have their own names for install.
3481     # Don't use installbsd from OSF since it installs stuff as root
3482     # by default.
3483     for ac_prog in ginstall scoinst install; do
3484       for ac_exec_ext in '' $ac_executable_extensions; do
3485         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3486           if test $ac_prog = install &&
3487             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488             # AIX install.  It has an incompatible calling convention.
3489             :
3490           elif test $ac_prog = install &&
3491             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3492             # program-specific install script used by HP pwplus--don't use.
3493             :
3494           else
3495             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3496             break 3
3497           fi
3498         fi
3499       done
3500     done
3501     ;;
3502 esac
3503 done
3504
3505
3506 fi
3507   if test "${ac_cv_path_install+set}" = set; then
3508     INSTALL=$ac_cv_path_install
3509   else
3510     # As a last resort, use the slow shell script.  We don't cache a
3511     # path for INSTALL within a source directory, because that will
3512     # break other packages using the cache if that directory is
3513     # removed, or if the path is relative.
3514     INSTALL=$ac_install_sh
3515   fi
3516 fi
3517 echo "$as_me:$LINENO: result: $INSTALL" >&5
3518 echo "${ECHO_T}$INSTALL" >&6
3519
3520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3521 # It thinks the first close brace ends the variable substitution.
3522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3523
3524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3525
3526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3527
3528
3529 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3530 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3531     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3532 if test "${enable_maintainer_mode+set}" = set; then
3533   enableval="$enable_maintainer_mode"
3534   USE_MAINTAINER_MODE=$enableval
3535 else
3536   USE_MAINTAINER_MODE=no
3537 fi;
3538   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3539 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3540
3541
3542 if test $USE_MAINTAINER_MODE = yes; then
3543   MAINTAINER_MODE_TRUE=
3544   MAINTAINER_MODE_FALSE='#'
3545 else
3546   MAINTAINER_MODE_TRUE='#'
3547   MAINTAINER_MODE_FALSE=
3548 fi
3549   MAINT=$MAINTAINER_MODE_TRUE
3550
3551
3552
3553
3554
3555 # configure.host sets the following important variables
3556 #       libgcj_cflags    - host specific C compiler flags
3557 #       libgcj_cxxflags  - host specific C++ compiler flags
3558 #       libgcj_javaflags - host specific Java compiler flags
3559
3560 libgcj_cflags=
3561 libgcj_cxxflags=
3562 libgcj_javaflags=
3563
3564 . ${srcdir}/configure.host
3565
3566 LIBGCJ_CFLAGS="${libgcj_cflags}"
3567 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3568 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3569
3570
3571
3572
3573
3574                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3575
3576           ac_config_commands="$ac_config_commands default-1"
3577
3578
3579 # Only use libltdl for non-newlib builds.
3580 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3581      case $enable_ltdl_convenience in
3582   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3583 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3584    { (exit 1); exit 1; }; } ;;
3585   "") enable_ltdl_convenience=yes
3586       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3587   esac
3588   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3589   INCLTDL='-I${top_srcdir}/''libltdl'
3590
3591
3592    DIRLTDL=libltdl
3593
3594 cat >>confdefs.h <<\_ACEOF
3595 #define USE_LTDL 1
3596 _ACEOF
3597
3598    # Sigh.  Libtool's macro doesn't do the right thing.
3599    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
3600    # FIXME: this is a hack.
3601    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
3602    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
3603 fi
3604
3605
3606
3607 # Check whether --enable-shared or --disable-shared was given.
3608 if test "${enable_shared+set}" = set; then
3609   enableval="$enable_shared"
3610   p=${PACKAGE-default}
3611 case $enableval in
3612 yes) enable_shared=yes ;;
3613 no) enable_shared=no ;;
3614 *)
3615   enable_shared=no
3616   # Look at the argument we got.  We use all the common list separators.
3617   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3618   for pkg in $enableval; do
3619     if test "X$pkg" = "X$p"; then
3620       enable_shared=yes
3621     fi
3622   done
3623   IFS="$ac_save_ifs"
3624   ;;
3625 esac
3626 else
3627   enable_shared=yes
3628 fi;
3629 # Check whether --enable-static or --disable-static was given.
3630 if test "${enable_static+set}" = set; then
3631   enableval="$enable_static"
3632   p=${PACKAGE-default}
3633 case $enableval in
3634 yes) enable_static=yes ;;
3635 no) enable_static=no ;;
3636 *)
3637   enable_static=no
3638   # Look at the argument we got.  We use all the common list separators.
3639   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3640   for pkg in $enableval; do
3641     if test "X$pkg" = "X$p"; then
3642       enable_static=yes
3643     fi
3644   done
3645   IFS="$ac_save_ifs"
3646   ;;
3647 esac
3648 else
3649   enable_static=yes
3650 fi;
3651 # Check whether --enable-fast-install or --disable-fast-install was given.
3652 if test "${enable_fast_install+set}" = set; then
3653   enableval="$enable_fast_install"
3654   p=${PACKAGE-default}
3655 case $enableval in
3656 yes) enable_fast_install=yes ;;
3657 no) enable_fast_install=no ;;
3658 *)
3659   enable_fast_install=no
3660   # Look at the argument we got.  We use all the common list separators.
3661   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3662   for pkg in $enableval; do
3663     if test "X$pkg" = "X$p"; then
3664       enable_fast_install=yes
3665     fi
3666   done
3667   IFS="$ac_save_ifs"
3668   ;;
3669 esac
3670 else
3671   enable_fast_install=yes
3672 fi;
3673
3674 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3675 if test "${with_gnu_ld+set}" = set; then
3676   withval="$with_gnu_ld"
3677   test "$withval" = no || with_gnu_ld=yes
3678 else
3679   with_gnu_ld=no
3680 fi;
3681 ac_prog=ld
3682 if test "$GCC" = yes; then
3683   # Check if gcc -print-prog-name=ld gives a path.
3684   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3685 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3686   case $host in
3687   *-*-mingw*)
3688     # gcc leaves a trailing carriage return which upsets mingw
3689     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3690   *)
3691     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3692   esac
3693   case $ac_prog in
3694     # Accept absolute paths.
3695     [\\/]* | [A-Za-z]:[\\/]*)
3696       re_direlt='/[^/][^/]*/\.\./'
3697       # Canonicalize the path of ld
3698       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3699       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3700         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3701       done
3702       test -z "$LD" && LD="$ac_prog"
3703       ;;
3704   "")
3705     # If it fails, then pretend we aren't using GCC.
3706     ac_prog=ld
3707     ;;
3708   *)
3709     # If it is relative, then search for the first ld in PATH.
3710     with_gnu_ld=unknown
3711     ;;
3712   esac
3713 elif test "$with_gnu_ld" = yes; then
3714   echo "$as_me:$LINENO: checking for GNU ld" >&5
3715 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3716 else
3717   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3718 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3719 fi
3720 if test "${lt_cv_path_LD+set}" = set; then
3721   echo $ECHO_N "(cached) $ECHO_C" >&6
3722 else
3723   if test -z "$LD"; then
3724   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3725   for ac_dir in $PATH; do
3726     test -z "$ac_dir" && ac_dir=.
3727     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3728       lt_cv_path_LD="$ac_dir/$ac_prog"
3729       # Check to see if the program is GNU ld.  I'd rather use --version,
3730       # but apparently some GNU ld's only accept -v.
3731       # Break only if it was the GNU/non-GNU ld that we prefer.
3732       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3733         test "$with_gnu_ld" != no && break
3734       else
3735         test "$with_gnu_ld" != yes && break
3736       fi
3737     fi
3738   done
3739   IFS="$ac_save_ifs"
3740 else
3741   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3742 fi
3743 fi
3744
3745 LD="$lt_cv_path_LD"
3746 if test -n "$LD"; then
3747   echo "$as_me:$LINENO: result: $LD" >&5
3748 echo "${ECHO_T}$LD" >&6
3749 else
3750   echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3752 fi
3753 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3754 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3755    { (exit 1); exit 1; }; }
3756 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3757 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3762 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3763   lt_cv_prog_gnu_ld=yes
3764 else
3765   lt_cv_prog_gnu_ld=no
3766 fi
3767 fi
3768 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3769 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3770 with_gnu_ld=$lt_cv_prog_gnu_ld
3771
3772
3773 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3774 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3775 if test "${lt_cv_ld_reload_flag+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   lt_cv_ld_reload_flag='-r'
3779 fi
3780 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3781 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3782 reload_flag=$lt_cv_ld_reload_flag
3783 test -n "$reload_flag" && reload_flag=" $reload_flag"
3784
3785 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3786 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3787 if test "${lt_cv_path_NM+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   if test -n "$NM"; then
3791   # Let the user override the test.
3792   lt_cv_path_NM="$NM"
3793 else
3794   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3795   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3796     test -z "$ac_dir" && ac_dir=.
3797     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3798     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3799       # Check to see if the nm accepts a BSD-compat flag.
3800       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3801       #   nm: unknown option "B" ignored
3802       # Tru64's nm complains that /dev/null is an invalid object file
3803       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3804         lt_cv_path_NM="$tmp_nm -B"
3805         break
3806       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3807         lt_cv_path_NM="$tmp_nm -p"
3808         break
3809       else
3810         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3811         continue # so that we can try to find one that supports BSD flags
3812       fi
3813     fi
3814   done
3815   IFS="$ac_save_ifs"
3816   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3817 fi
3818 fi
3819
3820 NM="$lt_cv_path_NM"
3821 echo "$as_me:$LINENO: result: $NM" >&5
3822 echo "${ECHO_T}$NM" >&6
3823
3824 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3825 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3826 if test "${lt_cv_deplibs_check_method+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   lt_cv_file_magic_cmd='$MAGIC_CMD'
3830 lt_cv_file_magic_test_file=
3831 lt_cv_deplibs_check_method='unknown'
3832 # Need to set the preceding variable on all platforms that support
3833 # interlibrary dependencies.
3834 # 'none' -- dependencies not supported.
3835 # `unknown' -- same as none, but documents that we really don't know.
3836 # 'pass_all' -- all dependencies passed with no checks.
3837 # 'test_compile' -- check by making test program.
3838 # 'file_magic [regex]' -- check by looking for files in library path
3839 # which responds to the $file_magic_cmd with a given egrep regex.
3840 # If you have `file' or equivalent on your system and you're not sure
3841 # whether `pass_all' will *always* work, you probably want this one.
3842
3843 case $host_os in
3844 aix*)
3845   lt_cv_deplibs_check_method=pass_all
3846   ;;
3847
3848 beos*)
3849   lt_cv_deplibs_check_method=pass_all
3850   ;;
3851
3852 bsdi4*)
3853   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3854   lt_cv_file_magic_cmd='/usr/bin/file -L'
3855   lt_cv_file_magic_test_file=/shlib/libc.so
3856   ;;
3857
3858 cygwin* | mingw* |pw32*)
3859   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3860   lt_cv_file_magic_cmd='$OBJDUMP -f'
3861   ;;
3862
3863 darwin* | rhapsody*)
3864   # this will be overwritten by pass_all, but leave it in just in case
3865   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3866   lt_cv_file_magic_cmd='/usr/bin/file -L'
3867   case "$host_os" in
3868   rhapsody* | darwin1.012)
3869     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3870     ;;
3871   *) # Darwin 1.3 on
3872     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3873     ;;
3874   esac
3875   lt_cv_deplibs_check_method=pass_all
3876   ;;
3877
3878 freebsd* | kfreebsd*-gnu)
3879   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3880     case $host_cpu in
3881     i*86 )
3882       # Not sure whether the presence of OpenBSD here was a mistake.
3883       # Let's accept both of them until this is cleared up.
3884       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3885       lt_cv_file_magic_cmd=/usr/bin/file
3886       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3887       ;;
3888     esac
3889   else
3890     lt_cv_deplibs_check_method=pass_all
3891   fi
3892   ;;
3893
3894 gnu*)
3895   lt_cv_deplibs_check_method=pass_all
3896   ;;
3897
3898 hpux10.20*|hpux11*)
3899   case $host_cpu in
3900   hppa*)
3901     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3902     lt_cv_file_magic_cmd=/usr/bin/file
3903     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3904     ;;
3905   ia64*)
3906     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3907     lt_cv_file_magic_cmd=/usr/bin/file
3908     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3909     ;;
3910   esac
3911   ;;
3912
3913 irix5* | irix6*)
3914   case $host_os in
3915   irix5*)
3916     # this will be overridden with pass_all, but let us keep it just in case
3917     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3918     ;;
3919   *)
3920     case $LD in
3921     *-32|*"-32 ") libmagic=32-bit;;
3922     *-n32|*"-n32 ") libmagic=N32;;
3923     *-64|*"-64 ") libmagic=64-bit;;
3924     *) libmagic=never-match;;
3925     esac
3926     # this will be overridden with pass_all, but let us keep it just in case
3927     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3928     ;;
3929   esac
3930   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3931   lt_cv_deplibs_check_method=pass_all
3932   ;;
3933
3934 # This must be Linux ELF.
3935 linux-gnu*)
3936   case $host_cpu in
3937   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3938     lt_cv_deplibs_check_method=pass_all ;;
3939   *)
3940     # glibc up to 2.1.1 does not perform some relocations on ARM
3941     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3942   esac
3943   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3944   ;;
3945
3946 netbsd* | knetbsd*-gnu)
3947   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3948     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3949   else
3950     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3951   fi
3952   ;;
3953
3954 newsos6)
3955   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3956   lt_cv_file_magic_cmd=/usr/bin/file
3957   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3958   ;;
3959
3960 osf3* | osf4* | osf5*)
3961   # this will be overridden with pass_all, but let us keep it just in case
3962   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3963   lt_cv_file_magic_test_file=/shlib/libc.so
3964   lt_cv_deplibs_check_method=pass_all
3965   ;;
3966
3967 sco3.2v5*)
3968   lt_cv_deplibs_check_method=pass_all
3969   ;;
3970
3971 solaris*)
3972   lt_cv_deplibs_check_method=pass_all
3973   lt_cv_file_magic_test_file=/lib/libc.so
3974   ;;
3975
3976 sysv5uw[78]* | sysv4*uw2*)
3977   lt_cv_deplibs_check_method=pass_all
3978   ;;
3979
3980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3981   case $host_vendor in
3982   ncr)
3983     lt_cv_deplibs_check_method=pass_all
3984     ;;
3985   motorola)
3986     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]'
3987     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3988     ;;
3989   esac
3990   ;;
3991 esac
3992
3993 fi
3994 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3995 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3996 file_magic_cmd=$lt_cv_file_magic_cmd
3997 deplibs_check_method=$lt_cv_deplibs_check_method
3998
3999
4000
4001
4002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4003
4004 # Only perform the check for file, if the check method requires it
4005 case $deplibs_check_method in
4006 file_magic*)
4007   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4008     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4009 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   case $MAGIC_CMD in
4014   /*)
4015   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4016   ;;
4017   ?:/*)
4018   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4019   ;;
4020   *)
4021   ac_save_MAGIC_CMD="$MAGIC_CMD"
4022   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4023   ac_dummy="/usr/bin:$PATH"
4024   for ac_dir in $ac_dummy; do
4025     test -z "$ac_dir" && ac_dir=.
4026     if test -f $ac_dir/${ac_tool_prefix}file; then
4027       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4028       if test -n "$file_magic_test_file"; then
4029         case $deplibs_check_method in
4030         "file_magic "*)
4031           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4032           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4033           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4034             egrep "$file_magic_regex" > /dev/null; then
4035             :
4036           else
4037             cat <<EOF 1>&2
4038
4039 *** Warning: the command libtool uses to detect shared libraries,
4040 *** $file_magic_cmd, produces output that libtool cannot recognize.
4041 *** The result is that libtool may fail to recognize shared libraries
4042 *** as such.  This will affect the creation of libtool libraries that
4043 *** depend on shared libraries, but programs linked with such libtool
4044 *** libraries will work regardless of this problem.  Nevertheless, you
4045 *** may want to report the problem to your system manager and/or to
4046 *** bug-libtool@gnu.org
4047
4048 EOF
4049           fi ;;
4050         esac
4051       fi
4052       break
4053     fi
4054   done
4055   IFS="$ac_save_ifs"
4056   MAGIC_CMD="$ac_save_MAGIC_CMD"
4057   ;;
4058 esac
4059 fi
4060
4061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4062 if test -n "$MAGIC_CMD"; then
4063   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4064 echo "${ECHO_T}$MAGIC_CMD" >&6
4065 else
4066   echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 fi
4069
4070 if test -z "$lt_cv_path_MAGIC_CMD"; then
4071   if test -n "$ac_tool_prefix"; then
4072     echo "$as_me:$LINENO: checking for file" >&5
4073 echo $ECHO_N "checking for file... $ECHO_C" >&6
4074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   case $MAGIC_CMD in
4078   /*)
4079   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4080   ;;
4081   ?:/*)
4082   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4083   ;;
4084   *)
4085   ac_save_MAGIC_CMD="$MAGIC_CMD"
4086   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4087   ac_dummy="/usr/bin:$PATH"
4088   for ac_dir in $ac_dummy; do
4089     test -z "$ac_dir" && ac_dir=.
4090     if test -f $ac_dir/file; then
4091       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4092       if test -n "$file_magic_test_file"; then
4093         case $deplibs_check_method in
4094         "file_magic "*)
4095           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4096           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4097           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4098             egrep "$file_magic_regex" > /dev/null; then
4099             :
4100           else
4101             cat <<EOF 1>&2
4102
4103 *** Warning: the command libtool uses to detect shared libraries,
4104 *** $file_magic_cmd, produces output that libtool cannot recognize.
4105 *** The result is that libtool may fail to recognize shared libraries
4106 *** as such.  This will affect the creation of libtool libraries that
4107 *** depend on shared libraries, but programs linked with such libtool
4108 *** libraries will work regardless of this problem.  Nevertheless, you
4109 *** may want to report the problem to your system manager and/or to
4110 *** bug-libtool@gnu.org
4111
4112 EOF
4113           fi ;;
4114         esac
4115       fi
4116       break
4117     fi
4118   done
4119   IFS="$ac_save_ifs"
4120   MAGIC_CMD="$ac_save_MAGIC_CMD"
4121   ;;
4122 esac
4123 fi
4124
4125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4126 if test -n "$MAGIC_CMD"; then
4127   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4128 echo "${ECHO_T}$MAGIC_CMD" >&6
4129 else
4130   echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132 fi
4133
4134   else
4135     MAGIC_CMD=:
4136   fi
4137 fi
4138
4139   fi
4140   ;;
4141 esac
4142
4143 if test -n "$ac_tool_prefix"; then
4144   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_RANLIB+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$RANLIB"; then
4152   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167
4168 fi
4169 fi
4170 RANLIB=$ac_cv_prog_RANLIB
4171 if test -n "$RANLIB"; then
4172   echo "$as_me:$LINENO: result: $RANLIB" >&5
4173 echo "${ECHO_T}$RANLIB" >&6
4174 else
4175   echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4177 fi
4178
4179 fi
4180 if test -z "$ac_cv_prog_RANLIB"; then
4181   ac_ct_RANLIB=$RANLIB
4182   # Extract the first word of "ranlib", so it can be a program name with args.
4183 set dummy ranlib; ac_word=$2
4184 echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   if test -n "$ac_ct_RANLIB"; then
4190   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197   for ac_exec_ext in '' $ac_executable_extensions; do
4198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199     ac_cv_prog_ac_ct_RANLIB="ranlib"
4200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204 done
4205
4206   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4207 fi
4208 fi
4209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4210 if test -n "$ac_ct_RANLIB"; then
4211   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4212 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4213 else
4214   echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218   RANLIB=$ac_ct_RANLIB
4219 else
4220   RANLIB="$ac_cv_prog_RANLIB"
4221 fi
4222
4223 if test -n "$ac_tool_prefix"; then
4224   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}strip; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_STRIP+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   if test -n "$STRIP"; then
4232   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239   for ac_exec_ext in '' $ac_executable_extensions; do
4240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4243     break 2
4244   fi
4245 done
4246 done
4247
4248 fi
4249 fi
4250 STRIP=$ac_cv_prog_STRIP
4251 if test -n "$STRIP"; then
4252   echo "$as_me:$LINENO: result: $STRIP" >&5
4253 echo "${ECHO_T}$STRIP" >&6
4254 else
4255   echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4257 fi
4258
4259 fi
4260 if test -z "$ac_cv_prog_STRIP"; then
4261   ac_ct_STRIP=$STRIP
4262   # Extract the first word of "strip", so it can be a program name with args.
4263 set dummy strip; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4267   echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269   if test -n "$ac_ct_STRIP"; then
4270   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275   IFS=$as_save_IFS
4276   test -z "$as_dir" && as_dir=.
4277   for ac_exec_ext in '' $ac_executable_extensions; do
4278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279     ac_cv_prog_ac_ct_STRIP="strip"
4280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281     break 2
4282   fi
4283 done
4284 done
4285
4286   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4287 fi
4288 fi
4289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4290 if test -n "$ac_ct_STRIP"; then
4291   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4292 echo "${ECHO_T}$ac_ct_STRIP" >&6
4293 else
4294   echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4296 fi
4297
4298   STRIP=$ac_ct_STRIP
4299 else
4300   STRIP="$ac_cv_prog_STRIP"
4301 fi
4302
4303
4304 # Check for any special flags to pass to ltconfig.
4305 libtool_flags="--cache-file=$cache_file"
4306 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4307 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4308 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4309 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4310 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4311
4312
4313 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4314 if test "${enable_libtool_lock+set}" = set; then
4315   enableval="$enable_libtool_lock"
4316
4317 fi;
4318 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4319 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4320
4321
4322 # Check whether --with-pic or --without-pic was given.
4323 if test "${with_pic+set}" = set; then
4324   withval="$with_pic"
4325   pic_mode="$withval"
4326 else
4327   pic_mode=default
4328 fi;
4329 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4330 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4331
4332 # Some flags need to be propagated to the compiler or linker for good
4333 # libtool support.
4334 case $host in
4335 *-*-irix6*)
4336   # Find out which ABI we are using.
4337   echo '#line 4337 "configure"' > conftest.$ac_ext
4338   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339   (eval $ac_compile) 2>&5
4340   ac_status=$?
4341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342   (exit $ac_status); }; then
4343    if test "$lt_cv_prog_gnu_ld" = yes; then
4344     case `/usr/bin/file conftest.$ac_objext` in
4345     *32-bit*)
4346       LD="${LD-ld} -melf32bsmip"
4347       ;;
4348     *N32*)
4349       LD="${LD-ld} -melf32bmipn32"
4350       ;;
4351     *64-bit*)
4352       LD="${LD-ld} -melf64bmip"
4353       ;;
4354     esac
4355    else
4356     case `/usr/bin/file conftest.$ac_objext` in
4357     *32-bit*)
4358       LD="${LD-ld} -32"
4359       ;;
4360     *N32*)
4361       LD="${LD-ld} -n32"
4362       ;;
4363     *64-bit*)
4364       LD="${LD-ld} -64"
4365       ;;
4366     esac
4367    fi
4368   fi
4369   rm -rf conftest*
4370   ;;
4371
4372 ia64-*-hpux*)
4373   # Find out which ABI we are using.
4374   echo 'int i;' > conftest.$ac_ext
4375   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376   (eval $ac_compile) 2>&5
4377   ac_status=$?
4378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379   (exit $ac_status); }; then
4380     case "`/usr/bin/file conftest.o`" in
4381     *ELF-32*)
4382       HPUX_IA64_MODE="32"
4383       ;;
4384     *ELF-64*)
4385       HPUX_IA64_MODE="64"
4386       ;;
4387     esac
4388   fi
4389   rm -rf conftest*
4390   ;;
4391
4392 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4393   # Find out which ABI we are using.
4394   echo 'int i;' > conftest.$ac_ext
4395   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; then
4400     case "`/usr/bin/file conftest.o`" in
4401     *32-bit*)
4402       case $host in
4403         x86_64-*linux*)
4404           LD="${LD-ld} -m elf_i386"
4405           ;;
4406         ppc64-*linux*|powerpc64-*linux*)
4407           LD="${LD-ld} -m elf32ppclinux"
4408           ;;
4409         s390x-*linux*)
4410           LD="${LD-ld} -m elf_s390"
4411           ;;
4412         sparc64-*linux*)
4413           LD="${LD-ld} -m elf32_sparc"
4414           ;;
4415       esac
4416       ;;
4417     *64-bit*)
4418       case $host in
4419         x86_64-*linux*)
4420           LD="${LD-ld} -m elf_x86_64"
4421           ;;
4422         ppc*-*linux*|powerpc*-*linux*)
4423           LD="${LD-ld} -m elf64ppc"
4424           ;;
4425         s390*-*linux*)
4426           LD="${LD-ld} -m elf64_s390"
4427           ;;
4428         sparc*-*linux*)
4429           LD="${LD-ld} -m elf64_sparc"
4430           ;;
4431       esac
4432       ;;
4433     esac
4434   fi
4435   rm -rf conftest*
4436   ;;
4437
4438 *-*-sco3.2v5*)
4439   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4440   SAVE_CFLAGS="$CFLAGS"
4441   CFLAGS="$CFLAGS -belf"
4442   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4443 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4444 if test "${lt_cv_cc_needs_belf+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447
4448
4449      ac_ext=c
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454
4455      if test x$gcc_no_link = xyes; then
4456   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4458    { (exit 1); exit 1; }; }
4459 fi
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466
4467 int
4468 main ()
4469 {
4470
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477   (eval $ac_link) 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } &&
4484          { ac_try='test -z "$ac_c_werror_flag"
4485                          || test ! -s conftest.err'
4486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487   (eval $ac_try) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; } &&
4491          { ac_try='test -s conftest$ac_exeext'
4492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493   (eval $ac_try) 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; }; then
4497   lt_cv_cc_needs_belf=yes
4498 else
4499   echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502 lt_cv_cc_needs_belf=no
4503 fi
4504 rm -f conftest.err conftest.$ac_objext \
4505       conftest$ac_exeext conftest.$ac_ext
4506      ac_ext=c
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4511
4512 fi
4513 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4514 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4515   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4516     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4517     CFLAGS="$SAVE_CFLAGS"
4518   fi
4519   ;;
4520
4521
4522 esac
4523
4524
4525 # Save cache, so that ltconfig can load it
4526 cat >confcache <<\_ACEOF
4527 # This file is a shell script that caches the results of configure
4528 # tests run on this system so they can be shared between configure
4529 # scripts and configure runs, see configure's option --config-cache.
4530 # It is not useful on other systems.  If it contains results you don't
4531 # want to keep, you may remove or edit it.
4532 #
4533 # config.status only pays attention to the cache file if you give it
4534 # the --recheck option to rerun configure.
4535 #
4536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4538 # following values.
4539
4540 _ACEOF
4541
4542 # The following way of writing the cache mishandles newlines in values,
4543 # but we know of no workaround that is simple, portable, and efficient.
4544 # So, don't put newlines in cache variables' values.
4545 # Ultrix sh set writes to stderr and can't be redirected directly,
4546 # and sets the high bit in the cache file unless we assign to the vars.
4547 {
4548   (set) 2>&1 |
4549     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4550     *ac_space=\ *)
4551       # `set' does not quote correctly, so add quotes (double-quote
4552       # substitution turns \\\\ into \\, and sed turns \\ into \).
4553       sed -n \
4554         "s/'/'\\\\''/g;
4555           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4556       ;;
4557     *)
4558       # `set' quotes correctly as required by POSIX, so do not add quotes.
4559       sed -n \
4560         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4561       ;;
4562     esac;
4563 } |
4564   sed '
4565      t clear
4566      : clear
4567      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4568      t end
4569      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4570      : end' >>confcache
4571 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4572   if test -w $cache_file; then
4573     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4574     cat confcache >$cache_file
4575   else
4576     echo "not updating unwritable cache $cache_file"
4577   fi
4578 fi
4579 rm -f confcache
4580
4581 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4582 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4583 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4584 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4585 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4586 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4587 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4588 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4589 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4590 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4591 echo "$as_me: error: libtool configure failed" >&2;}
4592    { (exit 1); exit 1; }; }
4593
4594 # Reload cache, that may have been modified by ltconfig
4595 if test -r "$cache_file"; then
4596   # Some versions of bash will fail to source /dev/null (special
4597   # files actually), so we avoid doing that.
4598   if test -f "$cache_file"; then
4599     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4600 echo "$as_me: loading cache $cache_file" >&6;}
4601     case $cache_file in
4602       [\\/]* | ?:[\\/]* ) . $cache_file;;
4603       *)                      . ./$cache_file;;
4604     esac
4605   fi
4606 else
4607   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4608 echo "$as_me: creating cache $cache_file" >&6;}
4609   >$cache_file
4610 fi
4611
4612
4613 # This can be used to rebuild libtool when needed
4614 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4615
4616 # Always use our own libtool.
4617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4618
4619 # Redirect the config.log output again, so that the ltconfig log is not
4620 # clobbered by the next message.
4621 exec 5>>./config.log
4622
4623 ac_ext=cc
4624 ac_cpp='$CXXCPP $CPPFLAGS'
4625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4628 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4629 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4630 if test -z "$CXXCPP"; then
4631   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634       # Double quotes because CXXCPP needs to be expanded
4635     for CXXCPP in "$CXX -E" "/lib/cpp"
4636     do
4637       ac_preproc_ok=false
4638 for ac_cxx_preproc_warn_flag in '' yes
4639 do
4640   # Use a header file that comes with gcc, so configuring glibc
4641   # with a fresh cross-compiler works.
4642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643   # <limits.h> exists even on freestanding compilers.
4644   # On the NeXT, cc -E runs the code through the compiler's parser,
4645   # not just through cpp. "Syntax error" is here to catch this case.
4646   cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h.  */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h.  */
4652 #ifdef __STDC__
4653 # include <limits.h>
4654 #else
4655 # include <assert.h>
4656 #endif
4657                      Syntax error
4658 _ACEOF
4659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4661   ac_status=$?
4662   grep -v '^ *+' conftest.er1 >conftest.err
4663   rm -f conftest.er1
4664   cat conftest.err >&5
4665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666   (exit $ac_status); } >/dev/null; then
4667   if test -s conftest.err; then
4668     ac_cpp_err=$ac_cxx_preproc_warn_flag
4669     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4670   else
4671     ac_cpp_err=
4672   fi
4673 else
4674   ac_cpp_err=yes
4675 fi
4676 if test -z "$ac_cpp_err"; then
4677   :
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682   # Broken: fails on valid input.
4683 continue
4684 fi
4685 rm -f conftest.err conftest.$ac_ext
4686
4687   # OK, works on sane cases.  Now check whether non-existent headers
4688   # can be detected and how.
4689   cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h.  */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h.  */
4695 #include <ac_nonexistent.h>
4696 _ACEOF
4697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4699   ac_status=$?
4700   grep -v '^ *+' conftest.er1 >conftest.err
4701   rm -f conftest.er1
4702   cat conftest.err >&5
4703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704   (exit $ac_status); } >/dev/null; then
4705   if test -s conftest.err; then
4706     ac_cpp_err=$ac_cxx_preproc_warn_flag
4707     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4708   else
4709     ac_cpp_err=
4710   fi
4711 else
4712   ac_cpp_err=yes
4713 fi
4714 if test -z "$ac_cpp_err"; then
4715   # Broken: success on invalid input.
4716 continue
4717 else
4718   echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4720
4721   # Passes both tests.
4722 ac_preproc_ok=:
4723 break
4724 fi
4725 rm -f conftest.err conftest.$ac_ext
4726
4727 done
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.$ac_ext
4730 if $ac_preproc_ok; then
4731   break
4732 fi
4733
4734     done
4735     ac_cv_prog_CXXCPP=$CXXCPP
4736
4737 fi
4738   CXXCPP=$ac_cv_prog_CXXCPP
4739 else
4740   ac_cv_prog_CXXCPP=$CXXCPP
4741 fi
4742 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4743 echo "${ECHO_T}$CXXCPP" >&6
4744 ac_preproc_ok=false
4745 for ac_cxx_preproc_warn_flag in '' yes
4746 do
4747   # Use a header file that comes with gcc, so configuring glibc
4748   # with a fresh cross-compiler works.
4749   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750   # <limits.h> exists even on freestanding compilers.
4751   # On the NeXT, cc -E runs the code through the compiler's parser,
4752   # not just through cpp. "Syntax error" is here to catch this case.
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 #ifdef __STDC__
4760 # include <limits.h>
4761 #else
4762 # include <assert.h>
4763 #endif
4764                      Syntax error
4765 _ACEOF
4766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4767   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4768   ac_status=$?
4769   grep -v '^ *+' conftest.er1 >conftest.err
4770   rm -f conftest.er1
4771   cat conftest.err >&5
4772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773   (exit $ac_status); } >/dev/null; then
4774   if test -s conftest.err; then
4775     ac_cpp_err=$ac_cxx_preproc_warn_flag
4776     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4777   else
4778     ac_cpp_err=
4779   fi
4780 else
4781   ac_cpp_err=yes
4782 fi
4783 if test -z "$ac_cpp_err"; then
4784   :
4785 else
4786   echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4788
4789   # Broken: fails on valid input.
4790 continue
4791 fi
4792 rm -f conftest.err conftest.$ac_ext
4793
4794   # OK, works on sane cases.  Now check whether non-existent headers
4795   # can be detected and how.
4796   cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802 #include <ac_nonexistent.h>
4803 _ACEOF
4804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4806   ac_status=$?
4807   grep -v '^ *+' conftest.er1 >conftest.err
4808   rm -f conftest.er1
4809   cat conftest.err >&5
4810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811   (exit $ac_status); } >/dev/null; then
4812   if test -s conftest.err; then
4813     ac_cpp_err=$ac_cxx_preproc_warn_flag
4814     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4815   else
4816     ac_cpp_err=
4817   fi
4818 else
4819   ac_cpp_err=yes
4820 fi
4821 if test -z "$ac_cpp_err"; then
4822   # Broken: success on invalid input.
4823 continue
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828   # Passes both tests.
4829 ac_preproc_ok=:
4830 break
4831 fi
4832 rm -f conftest.err conftest.$ac_ext
4833
4834 done
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then
4838   :
4839 else
4840   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4841 See \`config.log' for more details." >&5
4842 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4843 See \`config.log' for more details." >&2;}
4844    { (exit 1); exit 1; }; }
4845 fi
4846
4847 ac_ext=c
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
4853
4854
4855 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4856 lt_save_CC="$CC"
4857 lt_save_CFLAGS="$CFLAGS"
4858 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4859 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4860 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4861 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4862 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4863 deplibs_check_method="$deplibs_check_method" \
4864 file_magic_cmd="$file_magic_cmd" \
4865 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4866 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4867 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4868 echo "$as_me: error: libtool tag configuration failed" >&2;}
4869    { (exit 1); exit 1; }; }
4870 CC="$lt_save_CC"
4871 CFLAGS="$lt_save_CFLAGS"
4872
4873 # Redirect the config.log output again, so that the ltconfig log is not
4874 # clobbered by the next message.
4875 exec 5>>./config.log
4876
4877
4878
4879
4880
4881
4882
4883
4884 subdirs="$subdirs libltdl"
4885
4886
4887 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
4888    COMPPATH=.
4889 else
4890    COMPPATH=..
4891 fi
4892
4893
4894 # The -no-testsuite modules omit the test subdir.
4895
4896
4897 if test -d $srcdir/testsuite; then
4898   TESTSUBDIR_TRUE=
4899   TESTSUBDIR_FALSE='#'
4900 else
4901   TESTSUBDIR_TRUE='#'
4902   TESTSUBDIR_FALSE=
4903 fi
4904
4905 # Should the runtime set system properties by examining the
4906 # environment variable GCJ_PROPERTIES?
4907 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
4908 if test "${enable_getenv_properties+set}" = set; then
4909   enableval="$enable_getenv_properties"
4910
4911 fi;
4912
4913 # Whether GCJ_PROPERTIES is used depends on the target.
4914 if test -z "$enable_getenv_properties"; then
4915    enable_getenv_properties=${enable_getenv_properties_default-yes}
4916 fi
4917 if test "$enable_getenv_properties" = no; then
4918
4919 cat >>confdefs.h <<\_ACEOF
4920 #define DISABLE_GETENV_PROPERTIES 1
4921 _ACEOF
4922
4923 fi
4924
4925 # Whether we should use arguments to main()
4926 if test -z "$enable_main_args"; then
4927    enable_main_args=${enable_main_args_default-yes}
4928 fi
4929 if test "$enable_main_args" = no; then
4930
4931 cat >>confdefs.h <<\_ACEOF
4932 #define DISABLE_MAIN_ARGS 1
4933 _ACEOF
4934
4935 fi
4936
4937
4938 # Should we use hashtable-based synchronization?
4939 # Currently works only for Linux X86/ia64
4940 # Typically faster and more space-efficient
4941 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
4942 if test "${enable_hash_synchronization+set}" = set; then
4943   enableval="$enable_hash_synchronization"
4944
4945 fi;
4946
4947 if test -z "$enable_hash_synchronization"; then
4948    enable_hash_synchronization=$enable_hash_synchronization_default
4949 fi
4950
4951 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
4952 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
4953 if test "${enable_libgcj_multifile+set}" = set; then
4954   enableval="$enable_libgcj_multifile"
4955   case "${enableval}" in
4956   yes) enable_libgcj_multifile=yes ;;
4957   no)  enable_libgcj_multifile=no ;;
4958   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
4959 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
4960    { (exit 1); exit 1; }; } ;;
4961 esac
4962 else
4963   enable_libgcj_multifile=no
4964 fi;
4965
4966
4967 if test "$enable_libgcj_multifile" = yes; then
4968   ONESTEP_TRUE=
4969   ONESTEP_FALSE='#'
4970 else
4971   ONESTEP_TRUE='#'
4972   ONESTEP_FALSE=
4973 fi
4974
4975 # What is the native OS API for MinGW?
4976
4977 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
4978 if test "${with_win32_nlsapi+set}" = set; then
4979   withval="$with_win32_nlsapi"
4980   case "${withval}" in
4981   ansi) with_win32_nlsapi=ansi ;;
4982   unicows) with_win32_nlsapi=unicows ;;
4983   unicode) with_win32_nlsapi=unicode ;;
4984   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
4985 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
4986    { (exit 1); exit 1; }; } ;;
4987 esac
4988 else
4989   with_win32_nlsapi=ansi
4990 fi;
4991
4992 case "${with_win32_nlsapi}" in
4993   unicows | unicode)
4994
4995 cat >>confdefs.h <<\_ACEOF
4996 #define MINGW_LIBGCJ_UNICODE 1
4997 _ACEOF
4998
4999     ;;
5000 esac
5001
5002 # configure.host sets slow_pthread_self if the synchronization code should
5003 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5004 if test "${slow_pthread_self}" = "yes"; then
5005
5006 cat >>confdefs.h <<\_ACEOF
5007 #define SLOW_PTHREAD_SELF 1
5008 _ACEOF
5009
5010 fi
5011
5012
5013 # See if the user has requested runtime debugging.
5014 LIBGCJDEBUG="false"
5015
5016 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5017 if test "${enable_libgcj_debug+set}" = set; then
5018   enableval="$enable_libgcj_debug"
5019   if test "$enable_libgcj_debug" = yes; then
5020
5021 cat >>confdefs.h <<\_ACEOF
5022 #define DEBUG 1
5023 _ACEOF
5024
5025     LIBGCJDEBUG="true"
5026   fi
5027 fi;
5028
5029 # See if the user has the interpreter included.
5030 # Check whether --enable-interpreter or --disable-interpreter was given.
5031 if test "${enable_interpreter+set}" = set; then
5032   enableval="$enable_interpreter"
5033   if test "$enable_interpreter" = yes; then
5034     # This can also be set in configure.host.
5035     libgcj_interpreter=yes
5036   elif test "$enable_interpreter" = no; then
5037     libgcj_interpreter=no
5038   fi
5039 fi;
5040
5041 if test "$libgcj_interpreter" = yes; then
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define INTERPRETER 1
5045 _ACEOF
5046
5047 fi
5048 INTERPRETER="$libgcj_interpreter"
5049
5050
5051 echo "$as_me:$LINENO: checking for exception model to use" >&5
5052 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5053
5054
5055 ac_ext=cc
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5060
5061 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5062 if test "${enable_sjlj_exceptions+set}" = set; then
5063   enableval="$enable_sjlj_exceptions"
5064   :
5065 else
5066   cat > conftest.$ac_ext << EOF
5067 #line 5067 "configure"
5068 struct S { ~S(); };
5069 void bar();
5070 void foo()
5071 {
5072   S s;
5073   bar();
5074 }
5075 EOF
5076 old_CXXFLAGS="$CXXFLAGS"
5077 CXXFLAGS=-S
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079   (eval $ac_compile) 2>&5
5080   ac_status=$?
5081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082   (exit $ac_status); }; then
5083   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5084     enable_sjlj_exceptions=yes
5085   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5086     enable_sjlj_exceptions=no
5087   fi
5088 fi
5089 CXXFLAGS="$old_CXXFLAGS"
5090 rm -f conftest*
5091 fi;
5092 if test x$enable_sjlj_exceptions = xyes; then
5093
5094 cat >>confdefs.h <<\_ACEOF
5095 #define SJLJ_EXCEPTIONS 1
5096 _ACEOF
5097
5098   ac_exception_model_name=sjlj
5099 elif test x$enable_sjlj_exceptions = xno; then
5100   ac_exception_model_name="call frame"
5101 else
5102   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5103 echo "$as_me: error: unable to detect exception model" >&2;}
5104    { (exit 1); exit 1; }; }
5105 fi
5106 ac_ext=c
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
5112 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5113 echo "${ECHO_T}$ac_exception_model_name" >&6
5114
5115 # If we are non using SJLJ exceptions, and this host does not have support
5116 # for unwinding from a signal handler, enable checked dereferences and divides.
5117 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5118   CHECKREFSPEC=-fcheck-references
5119   DIVIDESPEC=-fuse-divide-subroutine
5120   EXCEPTIONSPEC=
5121 fi
5122
5123 # See if the user wants to disable java.net.  This is the mildly
5124 # ugly way that we admit that target-side configuration sucks.
5125 # Check whether --enable-java-net or --disable-java-net was given.
5126 if test "${enable_java_net+set}" = set; then
5127   enableval="$enable_java_net"
5128
5129 fi;
5130
5131 # Whether java.net is built by default can depend on the target.
5132 if test -z "$enable_java_net"; then
5133    enable_java_net=${enable_java_net_default-yes}
5134 fi
5135 if test "$enable_java_net" = no; then
5136
5137 cat >>confdefs.h <<\_ACEOF
5138 #define DISABLE_JAVA_NET 1
5139 _ACEOF
5140
5141 fi
5142
5143 # See if the user wants to configure without libffi.  Some
5144 # architectures don't support it, and default values are set in
5145 # configure.host.
5146
5147 # Check whether --with-libffi or --without-libffi was given.
5148 if test "${with_libffi+set}" = set; then
5149   withval="$with_libffi"
5150   :
5151 else
5152   with_libffi=${with_libffi_default-yes}
5153 fi;
5154
5155 LIBFFI=
5156 LIBFFIINCS=
5157 if test "$with_libffi" != no; then
5158
5159 cat >>confdefs.h <<\_ACEOF
5160 #define USE_LIBFFI 1
5161 _ACEOF
5162
5163    LIBFFI=../libffi/libffi_convenience.la
5164    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5165 fi
5166
5167
5168
5169 # See if the user wants to disable JVMPI support.
5170 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5171 if test "${enable_jvmpi+set}" = set; then
5172   enableval="$enable_jvmpi"
5173
5174 fi;
5175
5176 if test "$enable_jvmpi" != no; then
5177
5178 cat >>confdefs.h <<\_ACEOF
5179 #define ENABLE_JVMPI 1
5180 _ACEOF
5181
5182 fi
5183
5184 # If the target is an eCos system, use the appropriate eCos
5185 # I/O routines.
5186 # FIXME: this should not be a local option but a global target
5187 # system; at present there is no eCos target.
5188 TARGET_ECOS=${PROCESS-"no"}
5189
5190 # Check whether --with-ecos or --without-ecos was given.
5191 if test "${with_ecos+set}" = set; then
5192   withval="$with_ecos"
5193   TARGET_ECOS="$with_ecos"
5194
5195 fi;
5196
5197 EXTRA_CC_FILES=
5198
5199
5200 PLATFORMOBJS=
5201 PLATFORM_INNER_NAT_HDRS=
5202 case "$TARGET_ECOS" in
5203    no) case "$host" in
5204       *mingw*)
5205             PLATFORM=Win32
5206             PLATFORMNET=Win32
5207             PLATFORMOBJS=win32.lo
5208             PLATFORMH=win32.h
5209
5210 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5211 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5212 LD_PROG=`$CC --print-prog-name=ld`
5213 LD_VERSION=`$LD_PROG --version`
5214 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5215 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5216 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5217   LD_OK="ok"
5218 else
5219   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5220     LD_OK="ok"
5221   fi
5222 fi
5223 if test "x$LD_OK" != x; then
5224   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5225 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5226 else
5227   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5228 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5229   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5230 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5231
5232 cat >>confdefs.h <<\_ACEOF
5233 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5234 _ACEOF
5235
5236 fi
5237       ;;
5238       *)
5239             PLATFORM=Posix
5240             PLATFORMNET=Posix
5241             PLATFORMOBJS=posix.lo
5242             PLATFORMH=posix.h
5243             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5244       ;;
5245       esac
5246       ;;
5247    *)
5248       PLATFORM=Ecos
5249       PLATFORMNET=NoNet
5250
5251 cat >>confdefs.h <<\_ACEOF
5252 #define ECOS 1
5253 _ACEOF
5254
5255       PLATFORMOBJS=posix.lo
5256       PLATFORMH=posix.h
5257       ;;
5258 esac
5259
5260
5261           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5262
5263
5264 ac_ext=c
5265 ac_cpp='$CPP $CPPFLAGS'
5266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5271 # On Suns, sometimes $CPP names a directory.
5272 if test -n "$CPP" && test -d "$CPP"; then
5273   CPP=
5274 fi
5275 if test -z "$CPP"; then
5276   if test "${ac_cv_prog_CPP+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279       # Double quotes because CPP needs to be expanded
5280     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5281     do
5282       ac_preproc_ok=false
5283 for ac_c_preproc_warn_flag in '' yes
5284 do
5285   # Use a header file that comes with gcc, so configuring glibc
5286   # with a fresh cross-compiler works.
5287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288   # <limits.h> exists even on freestanding compilers.
5289   # On the NeXT, cc -E runs the code through the compiler's parser,
5290   # not just through cpp. "Syntax error" is here to catch this case.
5291   cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h.  */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h.  */
5297 #ifdef __STDC__
5298 # include <limits.h>
5299 #else
5300 # include <assert.h>
5301 #endif
5302                      Syntax error
5303 _ACEOF
5304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5306   ac_status=$?
5307   grep -v '^ *+' conftest.er1 >conftest.err
5308   rm -f conftest.er1
5309   cat conftest.err >&5
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); } >/dev/null; then
5312   if test -s conftest.err; then
5313     ac_cpp_err=$ac_c_preproc_warn_flag
5314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315   else
5316     ac_cpp_err=
5317   fi
5318 else
5319   ac_cpp_err=yes
5320 fi
5321 if test -z "$ac_cpp_err"; then
5322   :
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327   # Broken: fails on valid input.
5328 continue
5329 fi
5330 rm -f conftest.err conftest.$ac_ext
5331
5332   # OK, works on sane cases.  Now check whether non-existent headers
5333   # can be detected and how.
5334   cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h.  */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h.  */
5340 #include <ac_nonexistent.h>
5341 _ACEOF
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } >/dev/null; then
5350   if test -s conftest.err; then
5351     ac_cpp_err=$ac_c_preproc_warn_flag
5352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5353   else
5354     ac_cpp_err=
5355   fi
5356 else
5357   ac_cpp_err=yes
5358 fi
5359 if test -z "$ac_cpp_err"; then
5360   # Broken: success on invalid input.
5361 continue
5362 else
5363   echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366   # Passes both tests.
5367 ac_preproc_ok=:
5368 break
5369 fi
5370 rm -f conftest.err conftest.$ac_ext
5371
5372 done
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then
5376   break
5377 fi
5378
5379     done
5380     ac_cv_prog_CPP=$CPP
5381
5382 fi
5383   CPP=$ac_cv_prog_CPP
5384 else
5385   ac_cv_prog_CPP=$CPP
5386 fi
5387 echo "$as_me:$LINENO: result: $CPP" >&5
5388 echo "${ECHO_T}$CPP" >&6
5389 ac_preproc_ok=false
5390 for ac_c_preproc_warn_flag in '' yes
5391 do
5392   # Use a header file that comes with gcc, so configuring glibc
5393   # with a fresh cross-compiler works.
5394   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395   # <limits.h> exists even on freestanding compilers.
5396   # On the NeXT, cc -E runs the code through the compiler's parser,
5397   # not just through cpp. "Syntax error" is here to catch this case.
5398   cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404 #ifdef __STDC__
5405 # include <limits.h>
5406 #else
5407 # include <assert.h>
5408 #endif
5409                      Syntax error
5410 _ACEOF
5411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5412   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5413   ac_status=$?
5414   grep -v '^ *+' conftest.er1 >conftest.err
5415   rm -f conftest.er1
5416   cat conftest.err >&5
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); } >/dev/null; then
5419   if test -s conftest.err; then
5420     ac_cpp_err=$ac_c_preproc_warn_flag
5421     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5422   else
5423     ac_cpp_err=
5424   fi
5425 else
5426   ac_cpp_err=yes
5427 fi
5428 if test -z "$ac_cpp_err"; then
5429   :
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434   # Broken: fails on valid input.
5435 continue
5436 fi
5437 rm -f conftest.err conftest.$ac_ext
5438
5439   # OK, works on sane cases.  Now check whether non-existent headers
5440   # can be detected and how.
5441   cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h.  */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h.  */
5447 #include <ac_nonexistent.h>
5448 _ACEOF
5449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5451   ac_status=$?
5452   grep -v '^ *+' conftest.er1 >conftest.err
5453   rm -f conftest.er1
5454   cat conftest.err >&5
5455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456   (exit $ac_status); } >/dev/null; then
5457   if test -s conftest.err; then
5458     ac_cpp_err=$ac_c_preproc_warn_flag
5459     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5460   else
5461     ac_cpp_err=
5462   fi
5463 else
5464   ac_cpp_err=yes
5465 fi
5466 if test -z "$ac_cpp_err"; then
5467   # Broken: success on invalid input.
5468 continue
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473   # Passes both tests.
5474 ac_preproc_ok=:
5475 break
5476 fi
5477 rm -f conftest.err conftest.$ac_ext
5478
5479 done
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then
5483   :
5484 else
5485   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5488 See \`config.log' for more details." >&2;}
5489    { (exit 1); exit 1; }; }
5490 fi
5491
5492 ac_ext=c
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
5498
5499 echo "$as_me:$LINENO: checking for egrep" >&5
5500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5501 if test "${ac_cv_prog_egrep+set}" = set; then
5502   echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5505     then ac_cv_prog_egrep='grep -E'
5506     else ac_cv_prog_egrep='egrep'
5507     fi
5508 fi
5509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5511  EGREP=$ac_cv_prog_egrep
5512
5513
5514 cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520 #include <stdint.h>
5521
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524   $EGREP "uint32_t" >/dev/null 2>&1; then
5525
5526 cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_INT32_DEFINED 1
5528 _ACEOF
5529
5530 fi
5531 rm -f conftest*
5532
5533 cat >conftest.$ac_ext <<_ACEOF
5534 /* confdefs.h.  */
5535 _ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h.  */
5539 #include <inttypes.h>
5540
5541 _ACEOF
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543   $EGREP "uint32_t" >/dev/null 2>&1; then
5544
5545 cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_INT32_DEFINED 1
5547 _ACEOF
5548
5549 fi
5550 rm -f conftest*
5551
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h.  */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h.  */
5558 #include <sys/types.h>
5559
5560 _ACEOF
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562   $EGREP "u_int32_t" >/dev/null 2>&1; then
5563
5564 cat >>confdefs.h <<\_ACEOF
5565 #define HAVE_BSD_INT32_DEFINED 1
5566 _ACEOF
5567
5568 fi
5569 rm -f conftest*
5570
5571 cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 #include <sys/config.h>
5578
5579 _ACEOF
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581   $EGREP "u_int32_t" >/dev/null 2>&1; then
5582
5583 cat >>confdefs.h <<\_ACEOF
5584 #define HAVE_BSD_INT32_DEFINED 1
5585 _ACEOF
5586
5587 fi
5588 rm -f conftest*
5589
5590
5591
5592 # These may not be defined in a non-ANS conformant embedded system.
5593 # FIXME: Should these case a runtime exception in that case?
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600 #include <time.h>
5601
5602 _ACEOF
5603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604   $EGREP "mktime" >/dev/null 2>&1; then
5605
5606 cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_MKTIME 1
5608 _ACEOF
5609
5610 fi
5611 rm -f conftest*
5612
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619 #include <time.h>
5620
5621 _ACEOF
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623   $EGREP "localtime" >/dev/null 2>&1; then
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define HAVE_LOCALTIME 1
5627 _ACEOF
5628
5629 fi
5630 rm -f conftest*
5631
5632
5633 # Create the subdirectory for natFile.cc, or the attempt
5634 # to create the link will fail.
5635 test -d java || mkdir java
5636 test -d java/io || mkdir java/io
5637 test -d gnu || mkdir gnu
5638           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
5639
5640
5641 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
5642 test -d java/lang || mkdir java/lang
5643           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
5644
5645           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
5646
5647
5648 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
5649 test -d java/net || mkdir java/net
5650           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
5651
5652           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
5653
5654
5655 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
5656 test -d gnu/java || mkdir gnu/java
5657 test -d gnu/java/net || mkdir gnu/java/net
5658           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
5659
5660           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
5661
5662
5663 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
5664 test -d gnu/java/nio || mkdir gnu/java/nio
5665           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
5666
5667           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
5668
5669 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
5670           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
5671
5672
5673 case "${host}" in
5674     *mingw*)
5675       SYSTEMSPEC="-lgdi32 -lws2_32"
5676       if test "${with_win32_nlsapi}" = "unicows"; then
5677         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
5678       fi
5679     ;;
5680     *)
5681       SYSTEMSPEC=
5682     ;;
5683 esac
5684
5685
5686 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
5687
5688
5689
5690 # Check whether --with-system-zlib or --without-system-zlib was given.
5691 if test "${with_system_zlib+set}" = set; then
5692   withval="$with_system_zlib"
5693
5694 fi;
5695 ZLIBSPEC=
5696
5697 ZLIBTESTSPEC=
5698
5699
5700 echo "$as_me:$LINENO: checking for X" >&5
5701 echo $ECHO_N "checking for X... $ECHO_C" >&6
5702
5703
5704 # Check whether --with-x or --without-x was given.
5705 if test "${with_x+set}" = set; then
5706   withval="$with_x"
5707
5708 fi;
5709 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5710 if test "x$with_x" = xno; then
5711   # The user explicitly disabled X.
5712   have_x=disabled
5713 else
5714   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5715     # Both variables are already set.
5716     have_x=yes
5717   else
5718     if test "${ac_cv_have_x+set}" = set; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   # One or both of the vars are not set, and there is no cached value.
5722 ac_x_includes=no ac_x_libraries=no
5723 rm -fr conftest.dir
5724 if mkdir conftest.dir; then
5725   cd conftest.dir
5726   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5727   cat >Imakefile <<'_ACEOF'
5728 acfindx:
5729         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5730 _ACEOF
5731   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5732     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5733     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5734     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5735     for ac_extension in a so sl; do
5736       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5737          test -f $ac_im_libdir/libX11.$ac_extension; then
5738         ac_im_usrlibdir=$ac_im_libdir; break
5739       fi
5740     done
5741     # Screen out bogus values from the imake configuration.  They are
5742     # bogus both because they are the default anyway, and because
5743     # using them would break gcc on systems where it needs fixed includes.
5744     case $ac_im_incroot in
5745         /usr/include) ;;
5746         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5747     esac
5748     case $ac_im_usrlibdir in
5749         /usr/lib | /lib) ;;
5750         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5751     esac
5752   fi
5753   cd ..
5754   rm -fr conftest.dir
5755 fi
5756
5757 # Standard set of common directories for X headers.
5758 # Check X11 before X11Rn because it is often a symlink to the current release.
5759 ac_x_header_dirs='
5760 /usr/X11/include
5761 /usr/X11R6/include
5762 /usr/X11R5/include
5763 /usr/X11R4/include
5764
5765 /usr/include/X11
5766 /usr/include/X11R6
5767 /usr/include/X11R5
5768 /usr/include/X11R4
5769
5770 /usr/local/X11/include
5771 /usr/local/X11R6/include
5772 /usr/local/X11R5/include
5773 /usr/local/X11R4/include
5774
5775 /usr/local/include/X11
5776 /usr/local/include/X11R6
5777 /usr/local/include/X11R5
5778 /usr/local/include/X11R4
5779
5780 /usr/X386/include
5781 /usr/x386/include
5782 /usr/XFree86/include/X11
5783
5784 /usr/include
5785 /usr/local/include
5786 /usr/unsupported/include
5787 /usr/athena/include
5788 /usr/local/x11r5/include
5789 /usr/lpp/Xamples/include
5790
5791 /usr/openwin/include
5792 /usr/openwin/share/include'
5793
5794 if test "$ac_x_includes" = no; then
5795   # Guess where to find include files, by looking for Intrinsic.h.
5796   # First, try using that file with no special directory specified.
5797   cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 #include <X11/Intrinsic.h>
5804 _ACEOF
5805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } >/dev/null; then
5813   if test -s conftest.err; then
5814     ac_cpp_err=$ac_c_preproc_warn_flag
5815     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5816   else
5817     ac_cpp_err=
5818   fi
5819 else
5820   ac_cpp_err=yes
5821 fi
5822 if test -z "$ac_cpp_err"; then
5823   # We can compile using X headers with no special include directory.
5824 ac_x_includes=
5825 else
5826   echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5828
5829   for ac_dir in $ac_x_header_dirs; do
5830   if test -r "$ac_dir/X11/Intrinsic.h"; then
5831     ac_x_includes=$ac_dir
5832     break
5833   fi
5834 done
5835 fi
5836 rm -f conftest.err conftest.$ac_ext
5837 fi # $ac_x_includes = no
5838
5839 if test "$ac_x_libraries" = no; then
5840   # Check for the libraries.
5841   # See if we find them without any special options.
5842   # Don't add to $LIBS permanently.
5843   ac_save_LIBS=$LIBS
5844   LIBS="-lXt $LIBS"
5845   if test x$gcc_no_link = xyes; then
5846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5848    { (exit 1); exit 1; }; }
5849 fi
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h.  */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h.  */
5856 #include <X11/Intrinsic.h>
5857 int
5858 main ()
5859 {
5860 XtMalloc (0)
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext conftest$ac_exeext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867   (eval $ac_link) 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } &&
5874          { ac_try='test -z "$ac_c_werror_flag"
5875                          || test ! -s conftest.err'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; } &&
5881          { ac_try='test -s conftest$ac_exeext'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   LIBS=$ac_save_LIBS
5888 # We can link X programs with no special library path.
5889 ac_x_libraries=
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 LIBS=$ac_save_LIBS
5895 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5896 do
5897   # Don't even attempt the hair of trying to link an X program!
5898   for ac_extension in a so sl; do
5899     if test -r $ac_dir/libXt.$ac_extension; then
5900       ac_x_libraries=$ac_dir
5901       break 2
5902     fi
5903   done
5904 done
5905 fi
5906 rm -f conftest.err conftest.$ac_objext \
5907       conftest$ac_exeext conftest.$ac_ext
5908 fi # $ac_x_libraries = no
5909
5910 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5911   # Didn't find X anywhere.  Cache the known absence of X.
5912   ac_cv_have_x="have_x=no"
5913 else
5914   # Record where we found X for the cache.
5915   ac_cv_have_x="have_x=yes \
5916                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5917 fi
5918 fi
5919
5920   fi
5921   eval "$ac_cv_have_x"
5922 fi # $with_x != no
5923
5924 if test "$have_x" != yes; then
5925   echo "$as_me:$LINENO: result: $have_x" >&5
5926 echo "${ECHO_T}$have_x" >&6
5927   no_x=yes
5928 else
5929   # If each of the values was on the command line, it overrides each guess.
5930   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5931   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5932   # Update the cache value to reflect the command line values.
5933   ac_cv_have_x="have_x=yes \
5934                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5935   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5936 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5937 fi
5938
5939 if test "$no_x" = yes; then
5940   # Not all programs may use this symbol, but it does not hurt to define it.
5941
5942 cat >>confdefs.h <<\_ACEOF
5943 #define X_DISPLAY_MISSING 1
5944 _ACEOF
5945
5946   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5947 else
5948   if test -n "$x_includes"; then
5949     X_CFLAGS="$X_CFLAGS -I$x_includes"
5950   fi
5951
5952   # It would also be nice to do this for all -L options, not just this one.
5953   if test -n "$x_libraries"; then
5954     X_LIBS="$X_LIBS -L$x_libraries"
5955     # For Solaris; some versions of Sun CC require a space after -R and
5956     # others require no space.  Words are not sufficient . . . .
5957     case `(uname -sr) 2>/dev/null` in
5958     "SunOS 5"*)
5959       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5960 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5961       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5962       if test x$gcc_no_link = xyes; then
5963   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5965    { (exit 1); exit 1; }; }
5966 fi
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973
5974 int
5975 main ()
5976 {
5977
5978   ;
5979   return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984   (eval $ac_link) 2>conftest.er1
5985   ac_status=$?
5986   grep -v '^ *+' conftest.er1 >conftest.err
5987   rm -f conftest.er1
5988   cat conftest.err >&5
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); } &&
5991          { ac_try='test -z "$ac_c_werror_flag"
5992                          || test ! -s conftest.err'
5993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994   (eval $ac_try) 2>&5
5995   ac_status=$?
5996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997   (exit $ac_status); }; } &&
5998          { ac_try='test -s conftest$ac_exeext'
5999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000   (eval $ac_try) 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   ac_R_nospace=yes
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009 ac_R_nospace=no
6010 fi
6011 rm -f conftest.err conftest.$ac_objext \
6012       conftest$ac_exeext conftest.$ac_ext
6013       if test $ac_R_nospace = yes; then
6014         echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016         X_LIBS="$X_LIBS -R$x_libraries"
6017       else
6018         LIBS="$ac_xsave_LIBS -R $x_libraries"
6019         if test x$gcc_no_link = xyes; then
6020   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6022    { (exit 1); exit 1; }; }
6023 fi
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h.  */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h.  */
6030
6031 int
6032 main ()
6033 {
6034
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041   (eval $ac_link) 2>conftest.er1
6042   ac_status=$?
6043   grep -v '^ *+' conftest.er1 >conftest.err
6044   rm -f conftest.er1
6045   cat conftest.err >&5
6046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047   (exit $ac_status); } &&
6048          { ac_try='test -z "$ac_c_werror_flag"
6049                          || test ! -s conftest.err'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; } &&
6055          { ac_try='test -s conftest$ac_exeext'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; }; then
6061   ac_R_space=yes
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 ac_R_space=no
6067 fi
6068 rm -f conftest.err conftest.$ac_objext \
6069       conftest$ac_exeext conftest.$ac_ext
6070         if test $ac_R_space = yes; then
6071           echo "$as_me:$LINENO: result: yes" >&5
6072 echo "${ECHO_T}yes" >&6
6073           X_LIBS="$X_LIBS -R $x_libraries"
6074         else
6075           echo "$as_me:$LINENO: result: neither works" >&5
6076 echo "${ECHO_T}neither works" >&6
6077         fi
6078       fi
6079       LIBS=$ac_xsave_LIBS
6080     esac
6081   fi
6082
6083   # Check for system-dependent libraries X programs must link with.
6084   # Do this before checking for the system-independent R6 libraries
6085   # (-lICE), since we may need -lsocket or whatever for X linking.
6086
6087   if test "$ISC" = yes; then
6088     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6089   else
6090     # Martyn Johnson says this is needed for Ultrix, if the X
6091     # libraries were built with DECnet support.  And Karl Berry says
6092     # the Alpha needs dnet_stub (dnet does not exist).
6093     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6094     if test x$gcc_no_link = xyes; then
6095   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6097    { (exit 1); exit 1; }; }
6098 fi
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105
6106 /* Override any gcc2 internal prototype to avoid an error.  */
6107 #ifdef __cplusplus
6108 extern "C"
6109 #endif
6110 /* We use char because int might match the return type of a gcc2
6111    builtin and then its argument prototype would still apply.  */
6112 char XOpenDisplay ();
6113 int
6114 main ()
6115 {
6116 XOpenDisplay ();
6117   ;
6118   return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123   (eval $ac_link) 2>conftest.er1
6124   ac_status=$?
6125   grep -v '^ *+' conftest.er1 >conftest.err
6126   rm -f conftest.er1
6127   cat conftest.err >&5
6128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); } &&
6130          { ac_try='test -z "$ac_c_werror_flag"
6131                          || test ! -s conftest.err'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; } &&
6137          { ac_try='test -s conftest$ac_exeext'
6138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139   (eval $ac_try) 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; }; then
6143   :
6144 else
6145   echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6147
6148 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6149 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6150 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   ac_check_lib_save_LIBS=$LIBS
6154 LIBS="-ldnet  $LIBS"
6155 if test x$gcc_no_link = xyes; then
6156   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6158    { (exit 1); exit 1; }; }
6159 fi
6160 cat >conftest.$ac_ext <<_ACEOF
6161 /* confdefs.h.  */
6162 _ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h.  */
6166
6167 /* Override any gcc2 internal prototype to avoid an error.  */
6168 #ifdef __cplusplus
6169 extern "C"
6170 #endif
6171 /* We use char because int might match the return type of a gcc2
6172    builtin and then its argument prototype would still apply.  */
6173 char dnet_ntoa ();
6174 int
6175 main ()
6176 {
6177 dnet_ntoa ();
6178   ;
6179   return 0;
6180 }
6181 _ACEOF
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184   (eval $ac_link) 2>conftest.er1
6185   ac_status=$?
6186   grep -v '^ *+' conftest.er1 >conftest.err
6187   rm -f conftest.er1
6188   cat conftest.err >&5
6189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); } &&
6191          { ac_try='test -z "$ac_c_werror_flag"
6192                          || test ! -s conftest.err'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; } &&
6198          { ac_try='test -s conftest$ac_exeext'
6199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200   (eval $ac_try) 2>&5
6201   ac_status=$?
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); }; }; then
6204   ac_cv_lib_dnet_dnet_ntoa=yes
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_lib_dnet_dnet_ntoa=no
6210 fi
6211 rm -f conftest.err conftest.$ac_objext \
6212       conftest$ac_exeext conftest.$ac_ext
6213 LIBS=$ac_check_lib_save_LIBS
6214 fi
6215 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6216 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6217 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6218   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6219 fi
6220
6221     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6222       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6223 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6224 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   ac_check_lib_save_LIBS=$LIBS
6228 LIBS="-ldnet_stub  $LIBS"
6229 if test x$gcc_no_link = xyes; then
6230   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6232    { (exit 1); exit 1; }; }
6233 fi
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h.  */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h.  */
6240
6241 /* Override any gcc2 internal prototype to avoid an error.  */
6242 #ifdef __cplusplus
6243 extern "C"
6244 #endif
6245 /* We use char because int might match the return type of a gcc2
6246    builtin and then its argument prototype would still apply.  */
6247 char dnet_ntoa ();
6248 int
6249 main ()
6250 {
6251 dnet_ntoa ();
6252   ;
6253   return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest.$ac_objext conftest$ac_exeext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258   (eval $ac_link) 2>conftest.er1
6259   ac_status=$?
6260   grep -v '^ *+' conftest.er1 >conftest.err
6261   rm -f conftest.er1
6262   cat conftest.err >&5
6263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264   (exit $ac_status); } &&
6265          { ac_try='test -z "$ac_c_werror_flag"
6266                          || test ! -s conftest.err'
6267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268   (eval $ac_try) 2>&5
6269   ac_status=$?
6270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271   (exit $ac_status); }; } &&
6272          { ac_try='test -s conftest$ac_exeext'
6273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274   (eval $ac_try) 2>&5
6275   ac_status=$?
6276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277   (exit $ac_status); }; }; then
6278   ac_cv_lib_dnet_stub_dnet_ntoa=yes
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_cv_lib_dnet_stub_dnet_ntoa=no
6284 fi
6285 rm -f conftest.err conftest.$ac_objext \
6286       conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_check_lib_save_LIBS
6288 fi
6289 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6290 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6291 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6292   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6293 fi
6294
6295     fi
6296 fi
6297 rm -f conftest.err conftest.$ac_objext \
6298       conftest$ac_exeext conftest.$ac_ext
6299     LIBS="$ac_xsave_LIBS"
6300
6301     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6302     # to get the SysV transport functions.
6303     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6304     # needs -lnsl.
6305     # The nsl library prevents programs from opening the X display
6306     # on Irix 5.2, according to T.E. Dickey.
6307     # The functions gethostbyname, getservbyname, and inet_addr are
6308     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6309     echo "$as_me:$LINENO: checking for gethostbyname" >&5
6310 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6311 if test "${ac_cv_func_gethostbyname+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   if test x$gcc_no_link = xyes; then
6315   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6317    { (exit 1); exit 1; }; }
6318 fi
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6327 #define gethostbyname innocuous_gethostbyname
6328
6329 /* System header to define __stub macros and hopefully few prototypes,
6330     which can conflict with char gethostbyname (); below.
6331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6332     <limits.h> exists even on freestanding compilers.  */
6333
6334 #ifdef __STDC__
6335 # include <limits.h>
6336 #else
6337 # include <assert.h>
6338 #endif
6339
6340 #undef gethostbyname
6341
6342 /* Override any gcc2 internal prototype to avoid an error.  */
6343 #ifdef __cplusplus
6344 extern "C"
6345 {
6346 #endif
6347 /* We use char because int might match the return type of a gcc2
6348    builtin and then its argument prototype would still apply.  */
6349 char gethostbyname ();
6350 /* The GNU C library defines this for functions which it implements
6351     to always fail with ENOSYS.  Some functions are actually named
6352     something starting with __ and the normal name is an alias.  */
6353 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6354 choke me
6355 #else
6356 char (*f) () = gethostbyname;
6357 #endif
6358 #ifdef __cplusplus
6359 }
6360 #endif
6361
6362 int
6363 main ()
6364 {
6365 return f != gethostbyname;
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372   (eval $ac_link) 2>conftest.er1
6373   ac_status=$?
6374   grep -v '^ *+' conftest.er1 >conftest.err
6375   rm -f conftest.er1
6376   cat conftest.err >&5
6377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378   (exit $ac_status); } &&
6379          { ac_try='test -z "$ac_c_werror_flag"
6380                          || test ! -s conftest.err'
6381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382   (eval $ac_try) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); }; } &&
6386          { ac_try='test -s conftest$ac_exeext'
6387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388   (eval $ac_try) 2>&5
6389   ac_status=$?
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); }; }; then
6392   ac_cv_func_gethostbyname=yes
6393 else
6394   echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 ac_cv_func_gethostbyname=no
6398 fi
6399 rm -f conftest.err conftest.$ac_objext \
6400       conftest$ac_exeext conftest.$ac_ext
6401 fi
6402 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6403 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6404
6405     if test $ac_cv_func_gethostbyname = no; then
6406       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6407 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6408 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6409   echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411   ac_check_lib_save_LIBS=$LIBS
6412 LIBS="-lnsl  $LIBS"
6413 if test x$gcc_no_link = xyes; then
6414   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6416    { (exit 1); exit 1; }; }
6417 fi
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424
6425 /* Override any gcc2 internal prototype to avoid an error.  */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 /* We use char because int might match the return type of a gcc2
6430    builtin and then its argument prototype would still apply.  */
6431 char gethostbyname ();
6432 int
6433 main ()
6434 {
6435 gethostbyname ();
6436   ;
6437   return 0;
6438 }
6439 _ACEOF
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442   (eval $ac_link) 2>conftest.er1
6443   ac_status=$?
6444   grep -v '^ *+' conftest.er1 >conftest.err
6445   rm -f conftest.er1
6446   cat conftest.err >&5
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -z "$ac_c_werror_flag"
6450                          || test ! -s conftest.err'
6451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452   (eval $ac_try) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); }; } &&
6456          { ac_try='test -s conftest$ac_exeext'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; }; then
6462   ac_cv_lib_nsl_gethostbyname=yes
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 ac_cv_lib_nsl_gethostbyname=no
6468 fi
6469 rm -f conftest.err conftest.$ac_objext \
6470       conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_check_lib_save_LIBS
6472 fi
6473 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6474 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6475 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6476   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6477 fi
6478
6479       if test $ac_cv_lib_nsl_gethostbyname = no; then
6480         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6481 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6482 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   ac_check_lib_save_LIBS=$LIBS
6486 LIBS="-lbsd  $LIBS"
6487 if test x$gcc_no_link = xyes; then
6488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6490    { (exit 1); exit 1; }; }
6491 fi
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h.  */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h.  */
6498
6499 /* Override any gcc2 internal prototype to avoid an error.  */
6500 #ifdef __cplusplus
6501 extern "C"
6502 #endif
6503 /* We use char because int might match the return type of a gcc2
6504    builtin and then its argument prototype would still apply.  */
6505 char gethostbyname ();
6506 int
6507 main ()
6508 {
6509 gethostbyname ();
6510   ;
6511   return 0;
6512 }
6513 _ACEOF
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516   (eval $ac_link) 2>conftest.er1
6517   ac_status=$?
6518   grep -v '^ *+' conftest.er1 >conftest.err
6519   rm -f conftest.er1
6520   cat conftest.err >&5
6521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522   (exit $ac_status); } &&
6523          { ac_try='test -z "$ac_c_werror_flag"
6524                          || test ! -s conftest.err'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; } &&
6530          { ac_try='test -s conftest$ac_exeext'
6531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; }; then
6536   ac_cv_lib_bsd_gethostbyname=yes
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541 ac_cv_lib_bsd_gethostbyname=no
6542 fi
6543 rm -f conftest.err conftest.$ac_objext \
6544       conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6546 fi
6547 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6548 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6549 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6550   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6551 fi
6552
6553       fi
6554     fi
6555
6556     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6557     # socket/setsockopt and other routines are undefined under SCO ODT
6558     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6559     # on later versions), says Simon Leinen: it contains gethostby*
6560     # variants that don't use the name server (or something).  -lsocket
6561     # must be given before -lnsl if both are needed.  We assume that
6562     # if connect needs -lnsl, so does gethostbyname.
6563     echo "$as_me:$LINENO: checking for connect" >&5
6564 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6565 if test "${ac_cv_func_connect+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   if test x$gcc_no_link = xyes; then
6569   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6571    { (exit 1); exit 1; }; }
6572 fi
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6581 #define connect innocuous_connect
6582
6583 /* System header to define __stub macros and hopefully few prototypes,
6584     which can conflict with char connect (); below.
6585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6586     <limits.h> exists even on freestanding compilers.  */
6587
6588 #ifdef __STDC__
6589 # include <limits.h>
6590 #else
6591 # include <assert.h>
6592 #endif
6593
6594 #undef connect
6595
6596 /* Override any gcc2 internal prototype to avoid an error.  */
6597 #ifdef __cplusplus
6598 extern "C"
6599 {
6600 #endif
6601 /* We use char because int might match the return type of a gcc2
6602    builtin and then its argument prototype would still apply.  */
6603 char connect ();
6604 /* The GNU C library defines this for functions which it implements
6605     to always fail with ENOSYS.  Some functions are actually named
6606     something starting with __ and the normal name is an alias.  */
6607 #if defined (__stub_connect) || defined (__stub___connect)
6608 choke me
6609 #else
6610 char (*f) () = connect;
6611 #endif
6612 #ifdef __cplusplus
6613 }
6614 #endif
6615
6616 int
6617 main ()
6618 {
6619 return f != connect;
6620   ;
6621   return 0;
6622 }
6623 _ACEOF
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6626   (eval $ac_link) 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } &&
6633          { ac_try='test -z "$ac_c_werror_flag"
6634                          || test ! -s conftest.err'
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); }; } &&
6640          { ac_try='test -s conftest$ac_exeext'
6641   { (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); }; }; then
6646   ac_cv_func_connect=yes
6647 else
6648   echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6650
6651 ac_cv_func_connect=no
6652 fi
6653 rm -f conftest.err conftest.$ac_objext \
6654       conftest$ac_exeext conftest.$ac_ext
6655 fi
6656 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6657 echo "${ECHO_T}$ac_cv_func_connect" >&6
6658
6659     if test $ac_cv_func_connect = no; then
6660       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6661 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6662 if test "${ac_cv_lib_socket_connect+set}" = set; then
6663   echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665   ac_check_lib_save_LIBS=$LIBS
6666 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6667 if test x$gcc_no_link = xyes; then
6668   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6670    { (exit 1); exit 1; }; }
6671 fi
6672 cat >conftest.$ac_ext <<_ACEOF
6673 /* confdefs.h.  */
6674 _ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h.  */
6678
6679 /* Override any gcc2 internal prototype to avoid an error.  */
6680 #ifdef __cplusplus
6681 extern "C"
6682 #endif
6683 /* We use char because int might match the return type of a gcc2
6684    builtin and then its argument prototype would still apply.  */
6685 char connect ();
6686 int
6687 main ()
6688 {
6689 connect ();
6690   ;
6691   return 0;
6692 }
6693 _ACEOF
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696   (eval $ac_link) 2>conftest.er1
6697   ac_status=$?
6698   grep -v '^ *+' conftest.er1 >conftest.err
6699   rm -f conftest.er1
6700   cat conftest.err >&5
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); } &&
6703          { ac_try='test -z "$ac_c_werror_flag"
6704                          || test ! -s conftest.err'
6705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706   (eval $ac_try) 2>&5
6707   ac_status=$?
6708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709   (exit $ac_status); }; } &&
6710          { ac_try='test -s conftest$ac_exeext'
6711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712   (eval $ac_try) 2>&5
6713   ac_status=$?
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); }; }; then
6716   ac_cv_lib_socket_connect=yes
6717 else
6718   echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_cv_lib_socket_connect=no
6722 fi
6723 rm -f conftest.err conftest.$ac_objext \
6724       conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_check_lib_save_LIBS
6726 fi
6727 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6728 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6729 if test $ac_cv_lib_socket_connect = yes; then
6730   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6731 fi
6732
6733     fi
6734
6735     # Guillermo Gomez says -lposix is necessary on A/UX.
6736     echo "$as_me:$LINENO: checking for remove" >&5
6737 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6738 if test "${ac_cv_func_remove+set}" = set; then
6739   echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741   if test x$gcc_no_link = xyes; then
6742   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6744    { (exit 1); exit 1; }; }
6745 fi
6746 cat >conftest.$ac_ext <<_ACEOF
6747 /* confdefs.h.  */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h.  */
6752 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6754 #define remove innocuous_remove
6755
6756 /* System header to define __stub macros and hopefully few prototypes,
6757     which can conflict with char remove (); below.
6758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759     <limits.h> exists even on freestanding compilers.  */
6760
6761 #ifdef __STDC__
6762 # include <limits.h>
6763 #else
6764 # include <assert.h>
6765 #endif
6766
6767 #undef remove
6768
6769 /* Override any gcc2 internal prototype to avoid an error.  */
6770 #ifdef __cplusplus
6771 extern "C"
6772 {
6773 #endif
6774 /* We use char because int might match the return type of a gcc2
6775    builtin and then its argument prototype would still apply.  */
6776 char remove ();
6777 /* The GNU C library defines this for functions which it implements
6778     to always fail with ENOSYS.  Some functions are actually named
6779     something starting with __ and the normal name is an alias.  */
6780 #if defined (__stub_remove) || defined (__stub___remove)
6781 choke me
6782 #else
6783 char (*f) () = remove;
6784 #endif
6785 #ifdef __cplusplus
6786 }
6787 #endif
6788
6789 int
6790 main ()
6791 {
6792 return f != remove;
6793   ;
6794   return 0;
6795 }
6796 _ACEOF
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799   (eval $ac_link) 2>conftest.er1
6800   ac_status=$?
6801   grep -v '^ *+' conftest.er1 >conftest.err
6802   rm -f conftest.er1
6803   cat conftest.err >&5
6804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805   (exit $ac_status); } &&
6806          { ac_try='test -z "$ac_c_werror_flag"
6807                          || test ! -s conftest.err'
6808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809   (eval $ac_try) 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; } &&
6813          { ac_try='test -s conftest$ac_exeext'
6814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6815   (eval $ac_try) 2>&5
6816   ac_status=$?
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); }; }; then
6819   ac_cv_func_remove=yes
6820 else
6821   echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6823
6824 ac_cv_func_remove=no
6825 fi
6826 rm -f conftest.err conftest.$ac_objext \
6827       conftest$ac_exeext conftest.$ac_ext
6828 fi
6829 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6830 echo "${ECHO_T}$ac_cv_func_remove" >&6
6831
6832     if test $ac_cv_func_remove = no; then
6833       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6834 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6835 if test "${ac_cv_lib_posix_remove+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   ac_check_lib_save_LIBS=$LIBS
6839 LIBS="-lposix  $LIBS"
6840 if test x$gcc_no_link = xyes; then
6841   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6843    { (exit 1); exit 1; }; }
6844 fi
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851
6852 /* Override any gcc2 internal prototype to avoid an error.  */
6853 #ifdef __cplusplus
6854 extern "C"
6855 #endif
6856 /* We use char because int might match the return type of a gcc2
6857    builtin and then its argument prototype would still apply.  */
6858 char remove ();
6859 int
6860 main ()
6861 {
6862 remove ();
6863   ;
6864   return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext conftest$ac_exeext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869   (eval $ac_link) 2>conftest.er1
6870   ac_status=$?
6871   grep -v '^ *+' conftest.er1 >conftest.err
6872   rm -f conftest.er1
6873   cat conftest.err >&5
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); } &&
6876          { ac_try='test -z "$ac_c_werror_flag"
6877                          || test ! -s conftest.err'
6878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879   (eval $ac_try) 2>&5
6880   ac_status=$?
6881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882   (exit $ac_status); }; } &&
6883          { ac_try='test -s conftest$ac_exeext'
6884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885   (eval $ac_try) 2>&5
6886   ac_status=$?
6887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888   (exit $ac_status); }; }; then
6889   ac_cv_lib_posix_remove=yes
6890 else
6891   echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6893
6894 ac_cv_lib_posix_remove=no
6895 fi
6896 rm -f conftest.err conftest.$ac_objext \
6897       conftest$ac_exeext conftest.$ac_ext
6898 LIBS=$ac_check_lib_save_LIBS
6899 fi
6900 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6901 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6902 if test $ac_cv_lib_posix_remove = yes; then
6903   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6904 fi
6905
6906     fi
6907
6908     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6909     echo "$as_me:$LINENO: checking for shmat" >&5
6910 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6911 if test "${ac_cv_func_shmat+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   if test x$gcc_no_link = xyes; then
6915   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6917    { (exit 1); exit 1; }; }
6918 fi
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h.  */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h.  */
6925 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6927 #define shmat innocuous_shmat
6928
6929 /* System header to define __stub macros and hopefully few prototypes,
6930     which can conflict with char shmat (); below.
6931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932     <limits.h> exists even on freestanding compilers.  */
6933
6934 #ifdef __STDC__
6935 # include <limits.h>
6936 #else
6937 # include <assert.h>
6938 #endif
6939
6940 #undef shmat
6941
6942 /* Override any gcc2 internal prototype to avoid an error.  */
6943 #ifdef __cplusplus
6944 extern "C"
6945 {
6946 #endif
6947 /* We use char because int might match the return type of a gcc2
6948    builtin and then its argument prototype would still apply.  */
6949 char shmat ();
6950 /* The GNU C library defines this for functions which it implements
6951     to always fail with ENOSYS.  Some functions are actually named
6952     something starting with __ and the normal name is an alias.  */
6953 #if defined (__stub_shmat) || defined (__stub___shmat)
6954 choke me
6955 #else
6956 char (*f) () = shmat;
6957 #endif
6958 #ifdef __cplusplus
6959 }
6960 #endif
6961
6962 int
6963 main ()
6964 {
6965 return f != shmat;
6966   ;
6967   return 0;
6968 }
6969 _ACEOF
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972   (eval $ac_link) 2>conftest.er1
6973   ac_status=$?
6974   grep -v '^ *+' conftest.er1 >conftest.err
6975   rm -f conftest.er1
6976   cat conftest.err >&5
6977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978   (exit $ac_status); } &&
6979          { ac_try='test -z "$ac_c_werror_flag"
6980                          || test ! -s conftest.err'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; } &&
6986          { ac_try='test -s conftest$ac_exeext'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; }; then
6992   ac_cv_func_shmat=yes
6993 else
6994   echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ac_cv_func_shmat=no
6998 fi
6999 rm -f conftest.err conftest.$ac_objext \
7000       conftest$ac_exeext conftest.$ac_ext
7001 fi
7002 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7003 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7004
7005     if test $ac_cv_func_shmat = no; then
7006       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7007 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7008 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7009   echo $ECHO_N "(cached) $ECHO_C" >&6
7010 else
7011   ac_check_lib_save_LIBS=$LIBS
7012 LIBS="-lipc  $LIBS"
7013 if test x$gcc_no_link = xyes; then
7014   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7016    { (exit 1); exit 1; }; }
7017 fi
7018 cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024
7025 /* Override any gcc2 internal prototype to avoid an error.  */
7026 #ifdef __cplusplus
7027 extern "C"
7028 #endif
7029 /* We use char because int might match the return type of a gcc2
7030    builtin and then its argument prototype would still apply.  */
7031 char shmat ();
7032 int
7033 main ()
7034 {
7035 shmat ();
7036   ;
7037   return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042   (eval $ac_link) 2>conftest.er1
7043   ac_status=$?
7044   grep -v '^ *+' conftest.er1 >conftest.err
7045   rm -f conftest.er1
7046   cat conftest.err >&5
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } &&
7049          { ac_try='test -z "$ac_c_werror_flag"
7050                          || test ! -s conftest.err'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; } &&
7056          { ac_try='test -s conftest$ac_exeext'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; }; then
7062   ac_cv_lib_ipc_shmat=yes
7063 else
7064   echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_lib_ipc_shmat=no
7068 fi
7069 rm -f conftest.err conftest.$ac_objext \
7070       conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7072 fi
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7074 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7075 if test $ac_cv_lib_ipc_shmat = yes; then
7076   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7077 fi
7078
7079     fi
7080   fi
7081
7082   # Check for libraries that X11R6 Xt/Xaw programs need.
7083   ac_save_LDFLAGS=$LDFLAGS
7084   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7085   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7086   # check for ICE first), but we must link in the order -lSM -lICE or
7087   # we get undefined symbols.  So assume we have SM if we have ICE.
7088   # These have to be linked with before -lX11, unlike the other
7089   # libraries we check for below, so use a different variable.
7090   # John Interrante, Karl Berry
7091   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7092 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7093 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7094   echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096   ac_check_lib_save_LIBS=$LIBS
7097 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7098 if test x$gcc_no_link = xyes; then
7099   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7101    { (exit 1); exit 1; }; }
7102 fi
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h.  */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h.  */
7109
7110 /* Override any gcc2 internal prototype to avoid an error.  */
7111 #ifdef __cplusplus
7112 extern "C"
7113 #endif
7114 /* We use char because int might match the return type of a gcc2
7115    builtin and then its argument prototype would still apply.  */
7116 char IceConnectionNumber ();
7117 int
7118 main ()
7119 {
7120 IceConnectionNumber ();
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127   (eval $ac_link) 2>conftest.er1
7128   ac_status=$?
7129   grep -v '^ *+' conftest.er1 >conftest.err
7130   rm -f conftest.er1
7131   cat conftest.err >&5
7132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133   (exit $ac_status); } &&
7134          { ac_try='test -z "$ac_c_werror_flag"
7135                          || test ! -s conftest.err'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; } &&
7141          { ac_try='test -s conftest$ac_exeext'
7142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143   (eval $ac_try) 2>&5
7144   ac_status=$?
7145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146   (exit $ac_status); }; }; then
7147   ac_cv_lib_ICE_IceConnectionNumber=yes
7148 else
7149   echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_lib_ICE_IceConnectionNumber=no
7153 fi
7154 rm -f conftest.err conftest.$ac_objext \
7155       conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7157 fi
7158 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7159 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7160 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7161   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7162 fi
7163
7164   LDFLAGS=$ac_save_LDFLAGS
7165
7166 fi
7167
7168
7169 # Determine which AWT peer libraries to build
7170 # Check whether --enable-java-awt or --disable-java-awt was given.
7171 if test "${enable_java_awt+set}" = set; then
7172   enableval="$enable_java_awt"
7173
7174 fi;
7175
7176 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7177 use_xlib_awt=""
7178 use_gtk_awt=""
7179 # The default toolkit to use is the first one specified.
7180 TOOLKIT=
7181
7182
7183 for peer in $peerlibs ; do
7184   case $peer in
7185     xlib)
7186       if test "$no_x" = yes; then
7187         echo "*** xlib peers requested but no X library available" 1>&2
7188         exit 1
7189       else
7190         use_xlib_awt="yes"
7191         if test -z "$TOOLKIT"; then
7192            TOOLKIT=gnu.awt.xlib.XToolkit
7193         fi
7194       fi
7195       ;;
7196     gtk)
7197       if test "$no_x" = yes; then
7198          echo "*** xlib peers requested but no X library available" 1>&2
7199          exit 1
7200       else
7201          use_gtk_awt=yes
7202          if test -z "$TOOLKIT"; then
7203             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7204          fi
7205          test -d jniinclude || mkdir jniinclude
7206       fi
7207       ;;
7208     no)
7209       use_xlib_awt=
7210       use_gtk_awt=
7211       break
7212       ;;
7213     *)
7214       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7215       exit 1
7216   esac
7217 done
7218
7219
7220
7221 if test "$use_xlib_awt" = yes; then
7222   XLIB_AWT_TRUE=
7223   XLIB_AWT_FALSE='#'
7224 else
7225   XLIB_AWT_TRUE='#'
7226   XLIB_AWT_FALSE=
7227 fi
7228
7229
7230 if test "$use_gtk_awt" = yes; then
7231   GTK_AWT_TRUE=
7232   GTK_AWT_FALSE='#'
7233 else
7234   GTK_AWT_TRUE='#'
7235   GTK_AWT_FALSE=
7236 fi
7237
7238 # determine whether to enable the cairo GTK Graphics2D backend
7239 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7240 if test "${enable_gtk_cairo+set}" = set; then
7241   enableval="$enable_gtk_cairo"
7242
7243 fi;
7244
7245
7246 if test "x${enable_gtk_cairo}" = xyes; then
7247   GTK_CAIRO_TRUE=
7248   GTK_CAIRO_FALSE='#'
7249 else
7250   GTK_CAIRO_TRUE='#'
7251   GTK_CAIRO_FALSE=
7252 fi
7253 if test "x${enable_gtk_cairo}" = xyes
7254 then
7255
7256   succeeded=no
7257
7258   if test -z "$PKG_CONFIG"; then
7259     # Extract the first word of "pkg-config", so it can be a program name with args.
7260 set dummy pkg-config; ac_word=$2
7261 echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   case $PKG_CONFIG in
7267   [\\/]* | ?:[\\/]*)
7268   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7269   ;;
7270   *)
7271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276   for ac_exec_ext in '' $ac_executable_extensions; do
7277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283 done
7284
7285   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7286   ;;
7287 esac
7288 fi
7289 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7290
7291 if test -n "$PKG_CONFIG"; then
7292   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7293 echo "${ECHO_T}$PKG_CONFIG" >&6
7294 else
7295   echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7297 fi
7298
7299   fi
7300
7301   if test "$PKG_CONFIG" = "no" ; then
7302      echo "*** The pkg-config script could not be found. Make sure it is"
7303      echo "*** in your path, or set the PKG_CONFIG environment variable"
7304      echo "*** to the full path to pkg-config."
7305      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7306   else
7307      PKG_CONFIG_MIN_VERSION=0.9.0
7308      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7309         echo "$as_me:$LINENO: checking for cairo" >&5
7310 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
7311
7312         if $PKG_CONFIG --exists "cairo" ; then
7313             echo "$as_me:$LINENO: result: yes" >&5
7314 echo "${ECHO_T}yes" >&6
7315             succeeded=yes
7316
7317             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
7318 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
7319             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
7320             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
7321 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
7322
7323             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
7324 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
7325             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
7326             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
7327 echo "${ECHO_T}$CAIRO_LIBS" >&6
7328         else
7329             CAIRO_CFLAGS=""
7330             CAIRO_LIBS=""
7331             ## If we have a custom action on failure, don't print errors, but
7332             ## do set a variable so people can do so.
7333             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
7334             echo $CAIRO_PKG_ERRORS
7335         fi
7336
7337
7338
7339      else
7340         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7341         echo "*** See http://www.freedesktop.org/software/pkgconfig"
7342      fi
7343   fi
7344
7345   if test $succeeded = yes; then
7346      :
7347   else
7348      { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
7349 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7350    { (exit 1); exit 1; }; }
7351   fi
7352
7353
7354   succeeded=no
7355
7356   if test -z "$PKG_CONFIG"; then
7357     # Extract the first word of "pkg-config", so it can be a program name with args.
7358 set dummy pkg-config; ac_word=$2
7359 echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   case $PKG_CONFIG in
7365   [\\/]* | ?:[\\/]*)
7366   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7367   ;;
7368   *)
7369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7371 do
7372   IFS=$as_save_IFS
7373   test -z "$as_dir" && as_dir=.
7374   for ac_exec_ext in '' $ac_executable_extensions; do
7375   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378     break 2
7379   fi
7380 done
7381 done
7382
7383   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7384   ;;
7385 esac
7386 fi
7387 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7388
7389 if test -n "$PKG_CONFIG"; then
7390   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7391 echo "${ECHO_T}$PKG_CONFIG" >&6
7392 else
7393   echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7395 fi
7396
7397   fi
7398
7399   if test "$PKG_CONFIG" = "no" ; then
7400      echo "*** The pkg-config script could not be found. Make sure it is"
7401      echo "*** in your path, or set the PKG_CONFIG environment variable"
7402      echo "*** to the full path to pkg-config."
7403      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7404   else
7405      PKG_CONFIG_MIN_VERSION=0.9.0
7406      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7407         echo "$as_me:$LINENO: checking for pangoft2" >&5
7408 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
7409
7410         if $PKG_CONFIG --exists "pangoft2" ; then
7411             echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7413             succeeded=yes
7414
7415             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
7416 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
7417             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
7418             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
7419 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
7420
7421             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
7422 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
7423             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
7424             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
7425 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
7426         else
7427             PANGOFT2_CFLAGS=""
7428             PANGOFT2_LIBS=""
7429             ## If we have a custom action on failure, don't print errors, but
7430             ## do set a variable so people can do so.
7431             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
7432             echo $PANGOFT2_PKG_ERRORS
7433         fi
7434
7435
7436
7437      else
7438         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7439         echo "*** See http://www.freedesktop.org/software/pkgconfig"
7440      fi
7441   fi
7442
7443   if test $succeeded = yes; then
7444      :
7445   else
7446      { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
7447 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
7448    { (exit 1); exit 1; }; }
7449   fi
7450
7451 fi
7452
7453
7454
7455
7456
7457 # FIXME: this should be _libs on some hosts.
7458 libsubdir=.libs
7459
7460 # Allow the GC to be disabled.  Can be useful when debugging.
7461 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
7462 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
7463 # Check whether --enable-java-gc or --disable-java-gc was given.
7464 if test "${enable_java_gc+set}" = set; then
7465   enableval="$enable_java_gc"
7466   GC=$enableval
7467 else
7468   GC=boehm
7469 fi;
7470 GCLIBS=
7471 GCINCS=
7472 GCDEPS=
7473 GCOBJS=
7474 GCSPEC=
7475 JC1GCSPEC=
7476 GCTESTSPEC=
7477 case "$GC" in
7478  boehm)
7479     echo "$as_me:$LINENO: result: boehm" >&5
7480 echo "${ECHO_T}boehm" >&6
7481     GCLIBS=../boehm-gc/libgcjgc_convenience.la
7482     JC1GCSPEC='-fuse-boehm-gc'
7483     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
7484     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
7485     GCOBJS=boehm.lo
7486     GCHDR=boehm-gc.h
7487     # The POSIX thread support needs to know this.
7488
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_BOEHM_GC 1
7491 _ACEOF
7492
7493     ;;
7494  no)
7495     echo "$as_me:$LINENO: result: none" >&5
7496 echo "${ECHO_T}none" >&6
7497     GCOBJS=nogc.lo
7498     GCHDR=no-gc.h
7499     ;;
7500  *)
7501     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
7502 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
7503    { (exit 1); exit 1; }; }
7504     ;;
7505 esac
7506
7507
7508
7509
7510
7511
7512
7513           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
7514
7515
7516
7517 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7518 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7519 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
7520 echo "$as_me:$LINENO: result: $THREADS" >&5
7521 echo "${ECHO_T}$THREADS" >&6
7522
7523 case "$THREADS" in
7524  no | none | single)
7525     THREADS=none
7526     ;;
7527  posix | pthreads)
7528     THREADS=posix
7529     case "$host" in
7530      *-*-linux*)
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define LINUX_THREADS 1
7534 _ACEOF
7535
7536         ;;
7537     esac
7538     ;;
7539  win32)
7540     ;;
7541  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
7542     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
7543 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
7544    { (exit 1); exit 1; }; }
7545     ;;
7546  *)
7547     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
7548 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
7549    { (exit 1); exit 1; }; }
7550     ;;
7551 esac
7552
7553 THREADCXXFLAGS=
7554 THREADLDFLAGS=
7555 THREADLIBS=
7556 THREADINCS=
7557 THREADDEPS=
7558 THREADOBJS=
7559 THREADH=
7560 THREADSPEC=
7561 case "$THREADS" in
7562  posix)
7563     case "$host" in
7564      *-*-cygwin*)
7565         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
7566         ;;
7567      *-*-freebsd[1234]*)
7568         # Before FreeBSD 5, it didn't have -lpthread (or any library which
7569         # merely adds pthread_* functions) but it does have a -pthread switch
7570         # which is required at link-time to select -lc_r *instead* of -lc.
7571         THREADLDFLAGS=-pthread
7572         # Don't set THREADSPEC here as might be expected since -pthread is
7573         # not processed when found within a spec file, it must come from
7574         # the command line.  For now, the user must provide the -pthread
7575         # switch to link code compiled with gcj.  In future, consider adding
7576         # support for weak references to pthread_* functions ala gthr.h API.
7577         THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
7578         ;;
7579      *-*-freebsd*)
7580         # FreeBSD 5 implements a model much closer to other modern UNIX
7581         # which support threads.  However, it still does not support
7582         # -lpthread.
7583         THREADLDFLAGS=-pthread
7584         THREADSPEC=-lc_r
7585         ;;
7586      alpha*-dec-osf*)
7587         THREADCXXFLAGS=-pthread
7588         # boehm-gc needs some functions from librt, so link that too.
7589         THREADLIBS='-lpthread -lrt'
7590         THREADSPEC='-lpthread -lrt'
7591         ;;
7592      *)
7593         THREADLIBS=-lpthread
7594         THREADSPEC=-lpthread
7595         ;;
7596     esac
7597     THREADOBJS=posix-threads.lo
7598     THREADH=posix-threads.h
7599     # MIT pthreads doesn't seem to have the mutexattr functions.
7600     # But for now we don't check for it.  We just assume you aren't
7601     # using MIT pthreads.
7602
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7605 _ACEOF
7606
7607
7608     # If we're using the Boehm GC, then we happen to know that it
7609     # defines _REENTRANT, so we don't bother.  Eww.
7610     if test "$GC" != boehm; then
7611
7612 cat >>confdefs.h <<\_ACEOF
7613 #define _REENTRANT 1
7614 _ACEOF
7615
7616     fi
7617
7618 cat >>confdefs.h <<\_ACEOF
7619 #define _POSIX_PTHREAD_SEMANTICS 1
7620 _ACEOF
7621
7622     ;;
7623
7624  win32)
7625     THREADOBJS=win32-threads.lo
7626     THREADH=win32-threads.h
7627     ;;
7628
7629  none)
7630     THREADOBJS=no-threads.lo
7631     THREADH=no-threads.h
7632     ;;
7633 esac
7634           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644 if test -d sysdep; then true; else mkdir sysdep; fi
7645           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
7646
7647
7648 HASH_SYNC_SPEC=
7649 # Hash synchronization is only useful with posix threads right now.
7650 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
7651    HASH_SYNC_SPEC=-fhash-synchronization
7652
7653 cat >>confdefs.h <<\_ACEOF
7654 #define JV_HASH_SYNCHRONIZATION 1
7655 _ACEOF
7656
7657 fi
7658
7659
7660
7661
7662
7663 if test "$GCC" = yes; then
7664   USING_GCC_TRUE=
7665   USING_GCC_FALSE='#'
7666 else
7667   USING_GCC_TRUE='#'
7668   USING_GCC_FALSE=
7669 fi
7670
7671 # We're in the tree with gcc, and need to include some of its headers.
7672 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
7673
7674 # Figure out where generated headers like libgcj-config.h get installed.
7675 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
7676 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
7677 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
7678 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
7679
7680
7681
7682 if test "x${with_newlib}" = "xyes"; then
7683    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
7684    # may not work correctly, because the compiler may not be able to
7685    # link executables.
7686
7687    # We assume newlib.  This lets us hard-code the functions we know
7688    # we'll have.
7689
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_MEMMOVE 1
7692 _ACEOF
7693
7694
7695 cat >>confdefs.h <<\_ACEOF
7696 #define HAVE_MEMCPY 1
7697 _ACEOF
7698
7699
7700 cat >>confdefs.h <<\_ACEOF
7701 #define HAVE_STRERROR 1
7702 _ACEOF
7703
7704
7705 cat >>confdefs.h <<\_ACEOF
7706 #define HAVE_TIME 1
7707 _ACEOF
7708
7709
7710 cat >>confdefs.h <<\_ACEOF
7711 #define HAVE_GMTIME_R 1
7712 _ACEOF
7713
7714
7715 cat >>confdefs.h <<\_ACEOF
7716 #define HAVE_LOCALTIME_R 1
7717 _ACEOF
7718
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_USLEEP_DECL 1
7722 _ACEOF
7723
7724    # This is only for POSIX threads.
7725
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7728 _ACEOF
7729
7730    # We also assume we are using gcc, which provides alloca.
7731    cat >>confdefs.h <<\_ACEOF
7732 #define HAVE_ALLOCA 1
7733 _ACEOF
7734
7735
7736    # Assume we do not have getuid and friends.
7737
7738 cat >>confdefs.h <<\_ACEOF
7739 #define NO_GETUID 1
7740 _ACEOF
7741
7742    PLATFORMNET=NoNet
7743 else
7744
7745
7746
7747
7748
7749
7750
7751
7752 for ac_func in strerror ioctl select fstat open fsync sleep opendir
7753 do
7754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7755 echo "$as_me:$LINENO: checking for $ac_func" >&5
7756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7757 if eval "test \"\${$as_ac_var+set}\" = set"; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   if test x$gcc_no_link = xyes; then
7761   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7763    { (exit 1); exit 1; }; }
7764 fi
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7773 #define $ac_func innocuous_$ac_func
7774
7775 /* System header to define __stub macros and hopefully few prototypes,
7776     which can conflict with char $ac_func (); below.
7777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7778     <limits.h> exists even on freestanding compilers.  */
7779
7780 #ifdef __STDC__
7781 # include <limits.h>
7782 #else
7783 # include <assert.h>
7784 #endif
7785
7786 #undef $ac_func
7787
7788 /* Override any gcc2 internal prototype to avoid an error.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 {
7792 #endif
7793 /* We use char because int might match the return type of a gcc2
7794    builtin and then its argument prototype would still apply.  */
7795 char $ac_func ();
7796 /* The GNU C library defines this for functions which it implements
7797     to always fail with ENOSYS.  Some functions are actually named
7798     something starting with __ and the normal name is an alias.  */
7799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7800 choke me
7801 #else
7802 char (*f) () = $ac_func;
7803 #endif
7804 #ifdef __cplusplus
7805 }
7806 #endif
7807
7808 int
7809 main ()
7810 {
7811 return f != $ac_func;
7812   ;
7813   return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818   (eval $ac_link) 2>conftest.er1
7819   ac_status=$?
7820   grep -v '^ *+' conftest.er1 >conftest.err
7821   rm -f conftest.er1
7822   cat conftest.err >&5
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); } &&
7825          { ac_try='test -z "$ac_c_werror_flag"
7826                          || test ! -s conftest.err'
7827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828   (eval $ac_try) 2>&5
7829   ac_status=$?
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); }; } &&
7832          { ac_try='test -s conftest$ac_exeext'
7833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834   (eval $ac_try) 2>&5
7835   ac_status=$?
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   eval "$as_ac_var=yes"
7839 else
7840   echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7842
7843 eval "$as_ac_var=no"
7844 fi
7845 rm -f conftest.err conftest.$ac_objext \
7846       conftest$ac_exeext conftest.$ac_ext
7847 fi
7848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7850 if test `eval echo '${'$as_ac_var'}'` = yes; then
7851   cat >>confdefs.h <<_ACEOF
7852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7853 _ACEOF
7854
7855 fi
7856 done
7857
7858
7859
7860
7861
7862
7863 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
7864 do
7865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7866 echo "$as_me:$LINENO: checking for $ac_func" >&5
7867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7868 if eval "test \"\${$as_ac_var+set}\" = set"; then
7869   echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871   if test x$gcc_no_link = xyes; then
7872   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7874    { (exit 1); exit 1; }; }
7875 fi
7876 cat >conftest.$ac_ext <<_ACEOF
7877 /* confdefs.h.  */
7878 _ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h.  */
7882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7884 #define $ac_func innocuous_$ac_func
7885
7886 /* System header to define __stub macros and hopefully few prototypes,
7887     which can conflict with char $ac_func (); below.
7888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889     <limits.h> exists even on freestanding compilers.  */
7890
7891 #ifdef __STDC__
7892 # include <limits.h>
7893 #else
7894 # include <assert.h>
7895 #endif
7896
7897 #undef $ac_func
7898
7899 /* Override any gcc2 internal prototype to avoid an error.  */
7900 #ifdef __cplusplus
7901 extern "C"
7902 {
7903 #endif
7904 /* We use char because int might match the return type of a gcc2
7905    builtin and then its argument prototype would still apply.  */
7906 char $ac_func ();
7907 /* The GNU C library defines this for functions which it implements
7908     to always fail with ENOSYS.  Some functions are actually named
7909     something starting with __ and the normal name is an alias.  */
7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7911 choke me
7912 #else
7913 char (*f) () = $ac_func;
7914 #endif
7915 #ifdef __cplusplus
7916 }
7917 #endif
7918
7919 int
7920 main ()
7921 {
7922 return f != $ac_func;
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929   (eval $ac_link) 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } &&
7936          { ac_try='test -z "$ac_c_werror_flag"
7937                          || test ! -s conftest.err'
7938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939   (eval $ac_try) 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; } &&
7943          { ac_try='test -s conftest$ac_exeext'
7944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945   (eval $ac_try) 2>&5
7946   ac_status=$?
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); }; }; then
7949   eval "$as_ac_var=yes"
7950 else
7951   echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 eval "$as_ac_var=no"
7955 fi
7956 rm -f conftest.err conftest.$ac_objext \
7957       conftest$ac_exeext conftest.$ac_ext
7958 fi
7959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7961 if test `eval echo '${'$as_ac_var'}'` = yes; then
7962   cat >>confdefs.h <<_ACEOF
7963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7964 _ACEOF
7965
7966 fi
7967 done
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
7979 do
7980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7981 echo "$as_me:$LINENO: checking for $ac_func" >&5
7982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7983 if eval "test \"\${$as_ac_var+set}\" = set"; then
7984   echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986   if test x$gcc_no_link = xyes; then
7987   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7989    { (exit 1); exit 1; }; }
7990 fi
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h.  */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h.  */
7997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7999 #define $ac_func innocuous_$ac_func
8000
8001 /* System header to define __stub macros and hopefully few prototypes,
8002     which can conflict with char $ac_func (); below.
8003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8004     <limits.h> exists even on freestanding compilers.  */
8005
8006 #ifdef __STDC__
8007 # include <limits.h>
8008 #else
8009 # include <assert.h>
8010 #endif
8011
8012 #undef $ac_func
8013
8014 /* Override any gcc2 internal prototype to avoid an error.  */
8015 #ifdef __cplusplus
8016 extern "C"
8017 {
8018 #endif
8019 /* We use char because int might match the return type of a gcc2
8020    builtin and then its argument prototype would still apply.  */
8021 char $ac_func ();
8022 /* The GNU C library defines this for functions which it implements
8023     to always fail with ENOSYS.  Some functions are actually named
8024     something starting with __ and the normal name is an alias.  */
8025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8026 choke me
8027 #else
8028 char (*f) () = $ac_func;
8029 #endif
8030 #ifdef __cplusplus
8031 }
8032 #endif
8033
8034 int
8035 main ()
8036 {
8037 return f != $ac_func;
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044   (eval $ac_link) 2>conftest.er1
8045   ac_status=$?
8046   grep -v '^ *+' conftest.er1 >conftest.err
8047   rm -f conftest.er1
8048   cat conftest.err >&5
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); } &&
8051          { ac_try='test -z "$ac_c_werror_flag"
8052                          || test ! -s conftest.err'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; } &&
8058          { ac_try='test -s conftest$ac_exeext'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   eval "$as_ac_var=yes"
8065 else
8066   echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 eval "$as_ac_var=no"
8070 fi
8071 rm -f conftest.err conftest.$ac_objext \
8072       conftest$ac_exeext conftest.$ac_ext
8073 fi
8074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8076 if test `eval echo '${'$as_ac_var'}'` = yes; then
8077   cat >>confdefs.h <<_ACEOF
8078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8079 _ACEOF
8080
8081 fi
8082 done
8083
8084
8085
8086 for ac_func in nl_langinfo setlocale
8087 do
8088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8089 echo "$as_me:$LINENO: checking for $ac_func" >&5
8090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8091 if eval "test \"\${$as_ac_var+set}\" = set"; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   if test x$gcc_no_link = xyes; then
8095   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8097    { (exit 1); exit 1; }; }
8098 fi
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8107 #define $ac_func innocuous_$ac_func
8108
8109 /* System header to define __stub macros and hopefully few prototypes,
8110     which can conflict with char $ac_func (); below.
8111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8112     <limits.h> exists even on freestanding compilers.  */
8113
8114 #ifdef __STDC__
8115 # include <limits.h>
8116 #else
8117 # include <assert.h>
8118 #endif
8119
8120 #undef $ac_func
8121
8122 /* Override any gcc2 internal prototype to avoid an error.  */
8123 #ifdef __cplusplus
8124 extern "C"
8125 {
8126 #endif
8127 /* We use char because int might match the return type of a gcc2
8128    builtin and then its argument prototype would still apply.  */
8129 char $ac_func ();
8130 /* The GNU C library defines this for functions which it implements
8131     to always fail with ENOSYS.  Some functions are actually named
8132     something starting with __ and the normal name is an alias.  */
8133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8134 choke me
8135 #else
8136 char (*f) () = $ac_func;
8137 #endif
8138 #ifdef __cplusplus
8139 }
8140 #endif
8141
8142 int
8143 main ()
8144 {
8145 return f != $ac_func;
8146   ;
8147   return 0;
8148 }
8149 _ACEOF
8150 rm -f conftest.$ac_objext conftest$ac_exeext
8151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8152   (eval $ac_link) 2>conftest.er1
8153   ac_status=$?
8154   grep -v '^ *+' conftest.er1 >conftest.err
8155   rm -f conftest.er1
8156   cat conftest.err >&5
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); } &&
8159          { ac_try='test -z "$ac_c_werror_flag"
8160                          || test ! -s conftest.err'
8161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8162   (eval $ac_try) 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; } &&
8166          { ac_try='test -s conftest$ac_exeext'
8167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168   (eval $ac_try) 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); }; }; then
8172   eval "$as_ac_var=yes"
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177 eval "$as_ac_var=no"
8178 fi
8179 rm -f conftest.err conftest.$ac_objext \
8180       conftest$ac_exeext conftest.$ac_ext
8181 fi
8182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8184 if test `eval echo '${'$as_ac_var'}'` = yes; then
8185   cat >>confdefs.h <<_ACEOF
8186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8187 _ACEOF
8188
8189 fi
8190 done
8191
8192
8193
8194 for ac_func in inet_aton inet_addr
8195 do
8196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8197 echo "$as_me:$LINENO: checking for $ac_func" >&5
8198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_var+set}\" = set"; then
8200   echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202   if test x$gcc_no_link = xyes; then
8203   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8205    { (exit 1); exit 1; }; }
8206 fi
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8215 #define $ac_func innocuous_$ac_func
8216
8217 /* System header to define __stub macros and hopefully few prototypes,
8218     which can conflict with char $ac_func (); below.
8219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220     <limits.h> exists even on freestanding compilers.  */
8221
8222 #ifdef __STDC__
8223 # include <limits.h>
8224 #else
8225 # include <assert.h>
8226 #endif
8227
8228 #undef $ac_func
8229
8230 /* Override any gcc2 internal prototype to avoid an error.  */
8231 #ifdef __cplusplus
8232 extern "C"
8233 {
8234 #endif
8235 /* We use char because int might match the return type of a gcc2
8236    builtin and then its argument prototype would still apply.  */
8237 char $ac_func ();
8238 /* The GNU C library defines this for functions which it implements
8239     to always fail with ENOSYS.  Some functions are actually named
8240     something starting with __ and the normal name is an alias.  */
8241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8242 choke me
8243 #else
8244 char (*f) () = $ac_func;
8245 #endif
8246 #ifdef __cplusplus
8247 }
8248 #endif
8249
8250 int
8251 main ()
8252 {
8253 return f != $ac_func;
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260   (eval $ac_link) 2>conftest.er1
8261   ac_status=$?
8262   grep -v '^ *+' conftest.er1 >conftest.err
8263   rm -f conftest.er1
8264   cat conftest.err >&5
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -z "$ac_c_werror_flag"
8268                          || test ! -s conftest.err'
8269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8270   (eval $ac_try) 2>&5
8271   ac_status=$?
8272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273   (exit $ac_status); }; } &&
8274          { ac_try='test -s conftest$ac_exeext'
8275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276   (eval $ac_try) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); }; }; then
8280   eval "$as_ac_var=yes"
8281 else
8282   echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8284
8285 eval "$as_ac_var=no"
8286 fi
8287 rm -f conftest.err conftest.$ac_objext \
8288       conftest$ac_exeext conftest.$ac_ext
8289 fi
8290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8292 if test `eval echo '${'$as_ac_var'}'` = yes; then
8293   cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8295 _ACEOF
8296  break
8297 fi
8298 done
8299
8300
8301
8302
8303 for ac_func in inet_pton uname inet_ntoa
8304 do
8305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8306 echo "$as_me:$LINENO: checking for $ac_func" >&5
8307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8308 if eval "test \"\${$as_ac_var+set}\" = set"; then
8309   echo $ECHO_N "(cached) $ECHO_C" >&6
8310 else
8311   if test x$gcc_no_link = xyes; then
8312   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8313 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8314    { (exit 1); exit 1; }; }
8315 fi
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8324 #define $ac_func innocuous_$ac_func
8325
8326 /* System header to define __stub macros and hopefully few prototypes,
8327     which can conflict with char $ac_func (); below.
8328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8329     <limits.h> exists even on freestanding compilers.  */
8330
8331 #ifdef __STDC__
8332 # include <limits.h>
8333 #else
8334 # include <assert.h>
8335 #endif
8336
8337 #undef $ac_func
8338
8339 /* Override any gcc2 internal prototype to avoid an error.  */
8340 #ifdef __cplusplus
8341 extern "C"
8342 {
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345    builtin and then its argument prototype would still apply.  */
8346 char $ac_func ();
8347 /* The GNU C library defines this for functions which it implements
8348     to always fail with ENOSYS.  Some functions are actually named
8349     something starting with __ and the normal name is an alias.  */
8350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8351 choke me
8352 #else
8353 char (*f) () = $ac_func;
8354 #endif
8355 #ifdef __cplusplus
8356 }
8357 #endif
8358
8359 int
8360 main ()
8361 {
8362 return f != $ac_func;
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369   (eval $ac_link) 2>conftest.er1
8370   ac_status=$?
8371   grep -v '^ *+' conftest.er1 >conftest.err
8372   rm -f conftest.er1
8373   cat conftest.err >&5
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); } &&
8376          { ac_try='test -z "$ac_c_werror_flag"
8377                          || test ! -s conftest.err'
8378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8379   (eval $ac_try) 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; } &&
8383          { ac_try='test -s conftest$ac_exeext'
8384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385   (eval $ac_try) 2>&5
8386   ac_status=$?
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); }; }; then
8389   eval "$as_ac_var=yes"
8390 else
8391   echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8393
8394 eval "$as_ac_var=no"
8395 fi
8396 rm -f conftest.err conftest.$ac_objext \
8397       conftest$ac_exeext conftest.$ac_ext
8398 fi
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8401 if test `eval echo '${'$as_ac_var'}'` = yes; then
8402   cat >>confdefs.h <<_ACEOF
8403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8404 _ACEOF
8405
8406 fi
8407 done
8408
8409
8410
8411
8412
8413
8414 for ac_func in fork execvp pipe sigaction ftruncate
8415 do
8416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8417 echo "$as_me:$LINENO: checking for $ac_func" >&5
8418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8419 if eval "test \"\${$as_ac_var+set}\" = set"; then
8420   echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422   if test x$gcc_no_link = xyes; then
8423   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8424 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8425    { (exit 1); exit 1; }; }
8426 fi
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h.  */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h.  */
8433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8435 #define $ac_func innocuous_$ac_func
8436
8437 /* System header to define __stub macros and hopefully few prototypes,
8438     which can conflict with char $ac_func (); below.
8439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8440     <limits.h> exists even on freestanding compilers.  */
8441
8442 #ifdef __STDC__
8443 # include <limits.h>
8444 #else
8445 # include <assert.h>
8446 #endif
8447
8448 #undef $ac_func
8449
8450 /* Override any gcc2 internal prototype to avoid an error.  */
8451 #ifdef __cplusplus
8452 extern "C"
8453 {
8454 #endif
8455 /* We use char because int might match the return type of a gcc2
8456    builtin and then its argument prototype would still apply.  */
8457 char $ac_func ();
8458 /* The GNU C library defines this for functions which it implements
8459     to always fail with ENOSYS.  Some functions are actually named
8460     something starting with __ and the normal name is an alias.  */
8461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8462 choke me
8463 #else
8464 char (*f) () = $ac_func;
8465 #endif
8466 #ifdef __cplusplus
8467 }
8468 #endif
8469
8470 int
8471 main ()
8472 {
8473 return f != $ac_func;
8474   ;
8475   return 0;
8476 }
8477 _ACEOF
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8480   (eval $ac_link) 2>conftest.er1
8481   ac_status=$?
8482   grep -v '^ *+' conftest.er1 >conftest.err
8483   rm -f conftest.er1
8484   cat conftest.err >&5
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); } &&
8487          { ac_try='test -z "$ac_c_werror_flag"
8488                          || test ! -s conftest.err'
8489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490   (eval $ac_try) 2>&5
8491   ac_status=$?
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   (exit $ac_status); }; } &&
8494          { ac_try='test -s conftest$ac_exeext'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; }; then
8500   eval "$as_ac_var=yes"
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 eval "$as_ac_var=no"
8506 fi
8507 rm -f conftest.err conftest.$ac_objext \
8508       conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8512 if test `eval echo '${'$as_ac_var'}'` = yes; then
8513   cat >>confdefs.h <<_ACEOF
8514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8515 _ACEOF
8516
8517 fi
8518 done
8519
8520    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8521 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8522 if test "${ac_cv_header_stdc+set}" = set; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   cat >conftest.$ac_ext <<_ACEOF
8526 /* confdefs.h.  */
8527 _ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h.  */
8531 #include <stdlib.h>
8532 #include <stdarg.h>
8533 #include <string.h>
8534 #include <float.h>
8535
8536 int
8537 main ()
8538 {
8539
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546   (eval $ac_compile) 2>conftest.er1
8547   ac_status=$?
8548   grep -v '^ *+' conftest.er1 >conftest.err
8549   rm -f conftest.er1
8550   cat conftest.err >&5
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } &&
8553          { ac_try='test -z "$ac_c_werror_flag"
8554                          || test ! -s conftest.err'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; } &&
8560          { ac_try='test -s conftest.$ac_objext'
8561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562   (eval $ac_try) 2>&5
8563   ac_status=$?
8564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565   (exit $ac_status); }; }; then
8566   ac_cv_header_stdc=yes
8567 else
8568   echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8570
8571 ac_cv_header_stdc=no
8572 fi
8573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8574
8575 if test $ac_cv_header_stdc = yes; then
8576   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8577   cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 #include <string.h>
8584
8585 _ACEOF
8586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8587   $EGREP "memchr" >/dev/null 2>&1; then
8588   :
8589 else
8590   ac_cv_header_stdc=no
8591 fi
8592 rm -f conftest*
8593
8594 fi
8595
8596 if test $ac_cv_header_stdc = yes; then
8597   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8598   cat >conftest.$ac_ext <<_ACEOF
8599 /* confdefs.h.  */
8600 _ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h.  */
8604 #include <stdlib.h>
8605
8606 _ACEOF
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608   $EGREP "free" >/dev/null 2>&1; then
8609   :
8610 else
8611   ac_cv_header_stdc=no
8612 fi
8613 rm -f conftest*
8614
8615 fi
8616
8617 if test $ac_cv_header_stdc = yes; then
8618   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8619   if test "$cross_compiling" = yes; then
8620   :
8621 else
8622   cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 #include <ctype.h>
8629 #if ((' ' & 0x0FF) == 0x020)
8630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8632 #else
8633 # define ISLOWER(c) \
8634                    (('a' <= (c) && (c) <= 'i') \
8635                      || ('j' <= (c) && (c) <= 'r') \
8636                      || ('s' <= (c) && (c) <= 'z'))
8637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8638 #endif
8639
8640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8641 int
8642 main ()
8643 {
8644   int i;
8645   for (i = 0; i < 256; i++)
8646     if (XOR (islower (i), ISLOWER (i))
8647         || toupper (i) != TOUPPER (i))
8648       exit(2);
8649   exit (0);
8650 }
8651 _ACEOF
8652 rm -f conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654   (eval $ac_link) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659   (eval $ac_try) 2>&5
8660   ac_status=$?
8661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662   (exit $ac_status); }; }; then
8663   :
8664 else
8665   echo "$as_me: program exited with status $ac_status" >&5
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669 ( exit $ac_status )
8670 ac_cv_header_stdc=no
8671 fi
8672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 fi
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8677 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8678 if test $ac_cv_header_stdc = yes; then
8679
8680 cat >>confdefs.h <<\_ACEOF
8681 #define STDC_HEADERS 1
8682 _ACEOF
8683
8684 fi
8685
8686 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8697                   inttypes.h stdint.h unistd.h
8698 do
8699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8700 echo "$as_me:$LINENO: checking for $ac_header" >&5
8701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711 $ac_includes_default
8712
8713 #include <$ac_header>
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717   (eval $ac_compile) 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -z "$ac_c_werror_flag"
8725                          || test ! -s conftest.err'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; } &&
8731          { ac_try='test -s conftest.$ac_objext'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; }; then
8737   eval "$as_ac_Header=yes"
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 eval "$as_ac_Header=no"
8743 fi
8744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8745 fi
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8749   cat >>confdefs.h <<_ACEOF
8750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8751 _ACEOF
8752
8753 fi
8754
8755 done
8756
8757
8758
8759
8760
8761 for ac_header in execinfo.h unistd.h dlfcn.h
8762 do
8763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8765   echo "$as_me:$LINENO: checking for $ac_header" >&5
8766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 fi
8770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8772 else
8773   # Is the header compilable?
8774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782 $ac_includes_default
8783 #include <$ac_header>
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787   (eval $ac_compile) 2>conftest.er1
8788   ac_status=$?
8789   grep -v '^ *+' conftest.er1 >conftest.err
8790   rm -f conftest.er1
8791   cat conftest.err >&5
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); } &&
8794          { ac_try='test -z "$ac_c_werror_flag"
8795                          || test ! -s conftest.err'
8796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797   (eval $ac_try) 2>&5
8798   ac_status=$?
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); }; } &&
8801          { ac_try='test -s conftest.$ac_objext'
8802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8803   (eval $ac_try) 2>&5
8804   ac_status=$?
8805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806   (exit $ac_status); }; }; then
8807   ac_header_compiler=yes
8808 else
8809   echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8811
8812 ac_header_compiler=no
8813 fi
8814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8816 echo "${ECHO_T}$ac_header_compiler" >&6
8817
8818 # Is the header present?
8819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8821 cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h.  */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h.  */
8827 #include <$ac_header>
8828 _ACEOF
8829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8830   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8831   ac_status=$?
8832   grep -v '^ *+' conftest.er1 >conftest.err
8833   rm -f conftest.er1
8834   cat conftest.err >&5
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } >/dev/null; then
8837   if test -s conftest.err; then
8838     ac_cpp_err=$ac_c_preproc_warn_flag
8839     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8840   else
8841     ac_cpp_err=
8842   fi
8843 else
8844   ac_cpp_err=yes
8845 fi
8846 if test -z "$ac_cpp_err"; then
8847   ac_header_preproc=yes
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852   ac_header_preproc=no
8853 fi
8854 rm -f conftest.err conftest.$ac_ext
8855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8856 echo "${ECHO_T}$ac_header_preproc" >&6
8857
8858 # So?  What about this header?
8859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8860   yes:no: )
8861     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8865     ac_header_preproc=yes
8866     ;;
8867   no:yes:* )
8868     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8870     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8871 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8874     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8875 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8880     (
8881       cat <<\_ASBOX
8882 ## ------------------------------------------ ##
8883 ## Report this to the AC_PACKAGE_NAME lists.  ##
8884 ## ------------------------------------------ ##
8885 _ASBOX
8886     ) |
8887       sed "s/^/$as_me: WARNING:     /" >&2
8888     ;;
8889 esac
8890 echo "$as_me:$LINENO: checking for $ac_header" >&5
8891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   eval "$as_ac_Header=\$ac_header_preproc"
8896 fi
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899
8900 fi
8901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8902   cat >>confdefs.h <<_ACEOF
8903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8904 _ACEOF
8905
8906 fi
8907
8908 done
8909
8910    echo "$as_me:$LINENO: checking for backtrace" >&5
8911 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
8912 if test "${ac_cv_func_backtrace+set}" = set; then
8913   echo $ECHO_N "(cached) $ECHO_C" >&6
8914 else
8915   if test x$gcc_no_link = xyes; then
8916   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8918    { (exit 1); exit 1; }; }
8919 fi
8920 cat >conftest.$ac_ext <<_ACEOF
8921 /* confdefs.h.  */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h.  */
8926 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
8927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8928 #define backtrace innocuous_backtrace
8929
8930 /* System header to define __stub macros and hopefully few prototypes,
8931     which can conflict with char backtrace (); below.
8932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8933     <limits.h> exists even on freestanding compilers.  */
8934
8935 #ifdef __STDC__
8936 # include <limits.h>
8937 #else
8938 # include <assert.h>
8939 #endif
8940
8941 #undef backtrace
8942
8943 /* Override any gcc2 internal prototype to avoid an error.  */
8944 #ifdef __cplusplus
8945 extern "C"
8946 {
8947 #endif
8948 /* We use char because int might match the return type of a gcc2
8949    builtin and then its argument prototype would still apply.  */
8950 char backtrace ();
8951 /* The GNU C library defines this for functions which it implements
8952     to always fail with ENOSYS.  Some functions are actually named
8953     something starting with __ and the normal name is an alias.  */
8954 #if defined (__stub_backtrace) || defined (__stub___backtrace)
8955 choke me
8956 #else
8957 char (*f) () = backtrace;
8958 #endif
8959 #ifdef __cplusplus
8960 }
8961 #endif
8962
8963 int
8964 main ()
8965 {
8966 return f != backtrace;
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973   (eval $ac_link) 2>conftest.er1
8974   ac_status=$?
8975   grep -v '^ *+' conftest.er1 >conftest.err
8976   rm -f conftest.er1
8977   cat conftest.err >&5
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } &&
8980          { ac_try='test -z "$ac_c_werror_flag"
8981                          || test ! -s conftest.err'
8982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983   (eval $ac_try) 2>&5
8984   ac_status=$?
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); }; } &&
8987          { ac_try='test -s conftest$ac_exeext'
8988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989   (eval $ac_try) 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }; }; then
8993   ac_cv_func_backtrace=yes
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998 ac_cv_func_backtrace=no
8999 fi
9000 rm -f conftest.err conftest.$ac_objext \
9001       conftest$ac_exeext conftest.$ac_ext
9002 fi
9003 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9004 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9005 if test $ac_cv_func_backtrace = yes; then
9006
9007      case "$host" in
9008        ia64-*-linux*)
9009          # Has broken backtrace()
9010          ;;
9011        mips*-*-linux*)
9012          # Has broken backtrace(), but we supply our own.
9013          if test -d sysdep; then true; else mkdir -p sysdep; fi
9014          EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
9015
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_BACKTRACE 1
9018 _ACEOF
9019
9020          ;;
9021        *)
9022
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_BACKTRACE 1
9025 _ACEOF
9026
9027          ;;
9028      esac
9029
9030 else
9031
9032      case "$host" in
9033        *mingw*)
9034          # Has backtrace() defined in libgcj itself
9035
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_BACKTRACE 1
9038 _ACEOF
9039
9040          ;;
9041      esac
9042
9043 fi
9044
9045
9046    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9047 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9048 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9049   echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051   ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-ldl  $LIBS"
9053 if test x$gcc_no_link = xyes; then
9054   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9056    { (exit 1); exit 1; }; }
9057 fi
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064
9065 /* Override any gcc2 internal prototype to avoid an error.  */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 /* We use char because int might match the return type of a gcc2
9070    builtin and then its argument prototype would still apply.  */
9071 char dladdr ();
9072 int
9073 main ()
9074 {
9075 dladdr ();
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082   (eval $ac_link) 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } &&
9089          { ac_try='test -z "$ac_c_werror_flag"
9090                          || test ! -s conftest.err'
9091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092   (eval $ac_try) 2>&5
9093   ac_status=$?
9094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095   (exit $ac_status); }; } &&
9096          { ac_try='test -s conftest$ac_exeext'
9097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098   (eval $ac_try) 2>&5
9099   ac_status=$?
9100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101   (exit $ac_status); }; }; then
9102   ac_cv_lib_dl_dladdr=yes
9103 else
9104   echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ac_cv_lib_dl_dladdr=no
9108 fi
9109 rm -f conftest.err conftest.$ac_objext \
9110       conftest$ac_exeext conftest.$ac_ext
9111 LIBS=$ac_check_lib_save_LIBS
9112 fi
9113 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9114 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9115 if test $ac_cv_lib_dl_dladdr = yes; then
9116
9117      if test "x${disable_dladdr}" = "xyes"; then
9118        #Broken dladdr().
9119        true
9120      else
9121
9122 cat >>confdefs.h <<\_ACEOF
9123 #define HAVE_DLADDR 1
9124 _ACEOF
9125
9126      fi
9127
9128 fi
9129
9130    if test x"$build" = x"$host"; then
9131      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9132 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9133 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9134   echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136   test "$cross_compiling" = yes &&
9137   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9138 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9139    { (exit 1); exit 1; }; }
9140 if test -r "/proc/self/exe"; then
9141   ac_cv_file__proc_self_exe=yes
9142 else
9143   ac_cv_file__proc_self_exe=no
9144 fi
9145 fi
9146 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9147 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9148 if test $ac_cv_file__proc_self_exe = yes; then
9149
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE__PROC_SELF_EXE 1
9152 _ACEOF
9153
9154
9155
9156 cat >>confdefs.h <<\_ACEOF
9157 #define HAVE_PROC_SELF_EXE 1
9158 _ACEOF
9159
9160 fi
9161
9162    else
9163      case $host in
9164      *-linux*)
9165
9166 cat >>confdefs.h <<\_ACEOF
9167 #define HAVE_PROC_SELF_EXE 1
9168 _ACEOF
9169
9170        ;;
9171      esac
9172    fi
9173
9174
9175
9176   am_cv_lib_iconv_ldpath=
9177
9178 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9179 if test "${with_libiconv_prefix+set}" = set; then
9180   withval="$with_libiconv_prefix"
9181
9182     for dir in `echo "$withval" | tr : ' '`; do
9183       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9184       if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9185     done
9186
9187 fi;
9188
9189   echo "$as_me:$LINENO: checking for iconv" >&5
9190 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9191 if test "${am_cv_func_iconv+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194
9195     am_cv_func_iconv="no, consider installing GNU libiconv"
9196     am_cv_lib_iconv=no
9197     if test x$gcc_no_link = xyes; then
9198   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9200    { (exit 1); exit 1; }; }
9201 fi
9202 cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208 #include <stdlib.h>
9209 #include <iconv.h>
9210 int
9211 main ()
9212 {
9213 iconv_t cd = iconv_open("","");
9214        iconv(cd,NULL,NULL,NULL,NULL);
9215        iconv_close(cd);
9216   ;
9217   return 0;
9218 }
9219 _ACEOF
9220 rm -f conftest.$ac_objext conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222   (eval $ac_link) 2>conftest.er1
9223   ac_status=$?
9224   grep -v '^ *+' conftest.er1 >conftest.err
9225   rm -f conftest.er1
9226   cat conftest.err >&5
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); } &&
9229          { ac_try='test -z "$ac_c_werror_flag"
9230                          || test ! -s conftest.err'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; } &&
9236          { ac_try='test -s conftest$ac_exeext'
9237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238   (eval $ac_try) 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; }; then
9242   am_cv_func_iconv=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247 fi
9248 rm -f conftest.err conftest.$ac_objext \
9249       conftest$ac_exeext conftest.$ac_ext
9250     if test "$am_cv_func_iconv" != yes; then
9251       am_save_LIBS="$LIBS"
9252       LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
9253       if test x$gcc_no_link = xyes; then
9254   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9256    { (exit 1); exit 1; }; }
9257 fi
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h.  */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h.  */
9264 #include <stdlib.h>
9265 #include <iconv.h>
9266 int
9267 main ()
9268 {
9269 iconv_t cd = iconv_open("","");
9270          iconv(cd,NULL,NULL,NULL,NULL);
9271          iconv_close(cd);
9272   ;
9273   return 0;
9274 }
9275 _ACEOF
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278   (eval $ac_link) 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } &&
9285          { ac_try='test -z "$ac_c_werror_flag"
9286                          || test ! -s conftest.err'
9287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288   (eval $ac_try) 2>&5
9289   ac_status=$?
9290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291   (exit $ac_status); }; } &&
9292          { ac_try='test -s conftest$ac_exeext'
9293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294   (eval $ac_try) 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); }; }; then
9298   am_cv_lib_iconv=yes
9299         am_cv_func_iconv=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 fi
9305 rm -f conftest.err conftest.$ac_objext \
9306       conftest$ac_exeext conftest.$ac_ext
9307       LIBS="$am_save_LIBS"
9308     fi
9309
9310 fi
9311 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9312 echo "${ECHO_T}$am_cv_func_iconv" >&6
9313   if test "$am_cv_func_iconv" = yes; then
9314
9315 cat >>confdefs.h <<\_ACEOF
9316 #define HAVE_ICONV 1
9317 _ACEOF
9318
9319     echo "$as_me:$LINENO: checking for iconv declaration" >&5
9320 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9321     if test "${am_cv_proto_iconv+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324
9325       cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 #include <stdlib.h>
9333 #include <iconv.h>
9334 extern
9335 #ifdef __cplusplus
9336 "C"
9337 #endif
9338 #if defined(__STDC__) || defined(__cplusplus)
9339 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9340 #else
9341 size_t iconv();
9342 #endif
9343
9344 int
9345 main ()
9346 {
9347
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest.$ac_objext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9354   (eval $ac_compile) 2>conftest.er1
9355   ac_status=$?
9356   grep -v '^ *+' conftest.er1 >conftest.err
9357   rm -f conftest.er1
9358   cat conftest.err >&5
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); } &&
9361          { ac_try='test -z "$ac_c_werror_flag"
9362                          || test ! -s conftest.err'
9363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9364   (eval $ac_try) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); }; } &&
9368          { ac_try='test -s conftest.$ac_objext'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   am_cv_proto_iconv_arg1=""
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 am_cv_proto_iconv_arg1="const"
9380 fi
9381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9382       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);"
9383 fi
9384
9385     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9386     echo "$as_me:$LINENO: result: ${ac_t:-
9387          }$am_cv_proto_iconv" >&5
9388 echo "${ECHO_T}${ac_t:-
9389          }$am_cv_proto_iconv" >&6
9390
9391 cat >>confdefs.h <<_ACEOF
9392 #define ICONV_CONST $am_cv_proto_iconv_arg1
9393 _ACEOF
9394
9395   fi
9396   LIBICONV=
9397   if test "$am_cv_lib_iconv" = yes; then
9398     LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
9399   fi
9400
9401
9402
9403 for ac_header in locale.h
9404 do
9405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9407   echo "$as_me:$LINENO: checking for $ac_header" >&5
9408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 fi
9412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9414 else
9415   # Is the header compilable?
9416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424 $ac_includes_default
9425 #include <$ac_header>
9426 _ACEOF
9427 rm -f conftest.$ac_objext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9429   (eval $ac_compile) 2>conftest.er1
9430   ac_status=$?
9431   grep -v '^ *+' conftest.er1 >conftest.err
9432   rm -f conftest.er1
9433   cat conftest.err >&5
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); } &&
9436          { ac_try='test -z "$ac_c_werror_flag"
9437                          || test ! -s conftest.err'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; } &&
9443          { ac_try='test -s conftest.$ac_objext'
9444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445   (eval $ac_try) 2>&5
9446   ac_status=$?
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); }; }; then
9449   ac_header_compiler=yes
9450 else
9451   echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454 ac_header_compiler=no
9455 fi
9456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9458 echo "${ECHO_T}$ac_header_compiler" >&6
9459
9460 # Is the header present?
9461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469 #include <$ac_header>
9470 _ACEOF
9471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9473   ac_status=$?
9474   grep -v '^ *+' conftest.er1 >conftest.err
9475   rm -f conftest.er1
9476   cat conftest.err >&5
9477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478   (exit $ac_status); } >/dev/null; then
9479   if test -s conftest.err; then
9480     ac_cpp_err=$ac_c_preproc_warn_flag
9481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9482   else
9483     ac_cpp_err=
9484   fi
9485 else
9486   ac_cpp_err=yes
9487 fi
9488 if test -z "$ac_cpp_err"; then
9489   ac_header_preproc=yes
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494   ac_header_preproc=no
9495 fi
9496 rm -f conftest.err conftest.$ac_ext
9497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9498 echo "${ECHO_T}$ac_header_preproc" >&6
9499
9500 # So?  What about this header?
9501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9502   yes:no: )
9503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9507     ac_header_preproc=yes
9508     ;;
9509   no:yes:* )
9510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9522     (
9523       cat <<\_ASBOX
9524 ## ------------------------------------------ ##
9525 ## Report this to the AC_PACKAGE_NAME lists.  ##
9526 ## ------------------------------------------ ##
9527 _ASBOX
9528     ) |
9529       sed "s/^/$as_me: WARNING:     /" >&2
9530     ;;
9531 esac
9532 echo "$as_me:$LINENO: checking for $ac_header" >&5
9533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9535   echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537   eval "$as_ac_Header=\$ac_header_preproc"
9538 fi
9539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9541
9542 fi
9543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9544   cat >>confdefs.h <<_ACEOF
9545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9546 _ACEOF
9547
9548 fi
9549
9550 done
9551
9552   if test $ac_cv_header_locale_h = yes; then
9553     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9554 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9555 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9556   echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558   if test x$gcc_no_link = xyes; then
9559   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9561    { (exit 1); exit 1; }; }
9562 fi
9563 cat >conftest.$ac_ext <<_ACEOF
9564 /* confdefs.h.  */
9565 _ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h.  */
9569 #include <locale.h>
9570 int
9571 main ()
9572 {
9573 return LC_MESSAGES
9574   ;
9575   return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9580   (eval $ac_link) 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } &&
9587          { ac_try='test -z "$ac_c_werror_flag"
9588                          || test ! -s conftest.err'
9589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9590   (eval $ac_try) 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; } &&
9594          { ac_try='test -s conftest$ac_exeext'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; }; then
9600   am_cv_val_LC_MESSAGES=yes
9601 else
9602   echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605 am_cv_val_LC_MESSAGES=no
9606 fi
9607 rm -f conftest.err conftest.$ac_objext \
9608       conftest$ac_exeext conftest.$ac_ext
9609 fi
9610 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9611 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9612     if test $am_cv_val_LC_MESSAGES = yes; then
9613
9614 cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_LC_MESSAGES 1
9616 _ACEOF
9617
9618     fi
9619   fi
9620    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9621 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9622 if test "${ac_cv_struct_tm+set}" = set; then
9623   echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625   cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631 #include <sys/types.h>
9632 #include <time.h>
9633
9634 int
9635 main ()
9636 {
9637 struct tm *tp; tp->tm_sec;
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644   (eval $ac_compile) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag"
9652                          || test ! -s conftest.err'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest.$ac_objext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_cv_struct_tm=time.h
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_cv_struct_tm=sys/time.h
9670 fi
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 fi
9673 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9674 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9675 if test $ac_cv_struct_tm = sys/time.h; then
9676
9677 cat >>confdefs.h <<\_ACEOF
9678 #define TM_IN_SYS_TIME 1
9679 _ACEOF
9680
9681 fi
9682
9683 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9684 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9685 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694 #include <sys/types.h>
9695 #include <$ac_cv_struct_tm>
9696
9697
9698 int
9699 main ()
9700 {
9701 static struct tm ac_aggr;
9702 if (ac_aggr.tm_zone)
9703 return 0;
9704   ;
9705   return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710   (eval $ac_compile) 2>conftest.er1
9711   ac_status=$?
9712   grep -v '^ *+' conftest.er1 >conftest.err
9713   rm -f conftest.er1
9714   cat conftest.err >&5
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); } &&
9717          { ac_try='test -z "$ac_c_werror_flag"
9718                          || test ! -s conftest.err'
9719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720   (eval $ac_try) 2>&5
9721   ac_status=$?
9722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723   (exit $ac_status); }; } &&
9724          { ac_try='test -s conftest.$ac_objext'
9725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726   (eval $ac_try) 2>&5
9727   ac_status=$?
9728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729   (exit $ac_status); }; }; then
9730   ac_cv_member_struct_tm_tm_zone=yes
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741 #include <sys/types.h>
9742 #include <$ac_cv_struct_tm>
9743
9744
9745 int
9746 main ()
9747 {
9748 static struct tm ac_aggr;
9749 if (sizeof ac_aggr.tm_zone)
9750 return 0;
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757   (eval $ac_compile) 2>conftest.er1
9758   ac_status=$?
9759   grep -v '^ *+' conftest.er1 >conftest.err
9760   rm -f conftest.er1
9761   cat conftest.err >&5
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -z "$ac_c_werror_flag"
9765                          || test ! -s conftest.err'
9766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767   (eval $ac_try) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; } &&
9771          { ac_try='test -s conftest.$ac_objext'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; }; then
9777   ac_cv_member_struct_tm_tm_zone=yes
9778 else
9779   echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9781
9782 ac_cv_member_struct_tm_tm_zone=no
9783 fi
9784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9785 fi
9786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9787 fi
9788 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9789 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9790 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9791
9792 cat >>confdefs.h <<_ACEOF
9793 #define HAVE_STRUCT_TM_TM_ZONE 1
9794 _ACEOF
9795
9796
9797 fi
9798
9799 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9800
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_TM_ZONE 1
9803 _ACEOF
9804
9805 else
9806   echo "$as_me:$LINENO: checking for tzname" >&5
9807 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9808 if test "${ac_cv_var_tzname+set}" = set; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   if test x$gcc_no_link = xyes; then
9812   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9814    { (exit 1); exit 1; }; }
9815 fi
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822 #include <time.h>
9823 #ifndef tzname /* For SGI.  */
9824 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
9825 #endif
9826
9827 int
9828 main ()
9829 {
9830 atoi(*tzname);
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837   (eval $ac_link) 2>conftest.er1
9838   ac_status=$?
9839   grep -v '^ *+' conftest.er1 >conftest.err
9840   rm -f conftest.er1
9841   cat conftest.err >&5
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); } &&
9844          { ac_try='test -z "$ac_c_werror_flag"
9845                          || test ! -s conftest.err'
9846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847   (eval $ac_try) 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; } &&
9851          { ac_try='test -s conftest$ac_exeext'
9852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853   (eval $ac_try) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }; }; then
9857   ac_cv_var_tzname=yes
9858 else
9859   echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9861
9862 ac_cv_var_tzname=no
9863 fi
9864 rm -f conftest.err conftest.$ac_objext \
9865       conftest$ac_exeext conftest.$ac_ext
9866 fi
9867 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9868 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9869   if test $ac_cv_var_tzname = yes; then
9870
9871 cat >>confdefs.h <<\_ACEOF
9872 #define HAVE_TZNAME 1
9873 _ACEOF
9874
9875   fi
9876 fi
9877
9878
9879
9880
9881 for ac_func in gethostbyname_r
9882 do
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9886 if eval "test \"\${$as_ac_var+set}\" = set"; then
9887   echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9889   if test x$gcc_no_link = xyes; then
9890   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9892    { (exit 1); exit 1; }; }
9893 fi
9894 cat >conftest.$ac_ext <<_ACEOF
9895 /* confdefs.h.  */
9896 _ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h.  */
9900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9902 #define $ac_func innocuous_$ac_func
9903
9904 /* System header to define __stub macros and hopefully few prototypes,
9905     which can conflict with char $ac_func (); below.
9906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907     <limits.h> exists even on freestanding compilers.  */
9908
9909 #ifdef __STDC__
9910 # include <limits.h>
9911 #else
9912 # include <assert.h>
9913 #endif
9914
9915 #undef $ac_func
9916
9917 /* Override any gcc2 internal prototype to avoid an error.  */
9918 #ifdef __cplusplus
9919 extern "C"
9920 {
9921 #endif
9922 /* We use char because int might match the return type of a gcc2
9923    builtin and then its argument prototype would still apply.  */
9924 char $ac_func ();
9925 /* The GNU C library defines this for functions which it implements
9926     to always fail with ENOSYS.  Some functions are actually named
9927     something starting with __ and the normal name is an alias.  */
9928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9929 choke me
9930 #else
9931 char (*f) () = $ac_func;
9932 #endif
9933 #ifdef __cplusplus
9934 }
9935 #endif
9936
9937 int
9938 main ()
9939 {
9940 return f != $ac_func;
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947   (eval $ac_link) 2>conftest.er1
9948   ac_status=$?
9949   grep -v '^ *+' conftest.er1 >conftest.err
9950   rm -f conftest.er1
9951   cat conftest.err >&5
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); } &&
9954          { ac_try='test -z "$ac_c_werror_flag"
9955                          || test ! -s conftest.err'
9956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9957   (eval $ac_try) 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; } &&
9961          { ac_try='test -s conftest$ac_exeext'
9962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963   (eval $ac_try) 2>&5
9964   ac_status=$?
9965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966   (exit $ac_status); }; }; then
9967   eval "$as_ac_var=yes"
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 eval "$as_ac_var=no"
9973 fi
9974 rm -f conftest.err conftest.$ac_objext \
9975       conftest$ac_exeext conftest.$ac_ext
9976 fi
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9979 if test `eval echo '${'$as_ac_var'}'` = yes; then
9980   cat >>confdefs.h <<_ACEOF
9981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9982 _ACEOF
9983
9984
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_GETHOSTBYNAME_R 1
9987 _ACEOF
9988
9989      # There are two different kinds of gethostbyname_r.
9990      # We look for the one that returns `int'.
9991      # Hopefully this check is robust enough.
9992      cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998 #include <netdb.h>
9999
10000 _ACEOF
10001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10002   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10003
10004
10005 cat >>confdefs.h <<\_ACEOF
10006 #define GETHOSTBYNAME_R_RETURNS_INT 1
10007 _ACEOF
10008
10009 fi
10010 rm -f conftest*
10011
10012
10013      case " $GCINCS " in
10014      *" -D_REENTRANT "*) ;;
10015      *)
10016                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10017 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10018 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021
10022
10023           ac_ext=cc
10024 ac_cpp='$CXXCPP $CPPFLAGS'
10025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10028
10029           cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035 #include <netdb.h>
10036 int
10037 main ()
10038 {
10039 gethostbyname_r("", 0, 0);
10040   ;
10041   return 0;
10042 }
10043 _ACEOF
10044 rm -f conftest.$ac_objext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10046   (eval $ac_compile) 2>conftest.er1
10047   ac_status=$?
10048   grep -v '^ *+' conftest.er1 >conftest.err
10049   rm -f conftest.er1
10050   cat conftest.err >&5
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); } &&
10053          { ac_try='test -z "$ac_cxx_werror_flag"
10054                          || test ! -s conftest.err'
10055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056   (eval $ac_try) 2>&5
10057   ac_status=$?
10058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059   (exit $ac_status); }; } &&
10060          { ac_try='test -s conftest.$ac_objext'
10061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062   (eval $ac_try) 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; }; then
10066   libjava_cv_gethostbyname_r_needs_reentrant=no
10067 else
10068   echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10070
10071                 CPPFLAGS_SAVE="$CPPFLAGS"
10072                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10073                 cat >conftest.$ac_ext <<_ACEOF
10074 /* confdefs.h.  */
10075 _ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h.  */
10079 #include <netdb.h>
10080 int
10081 main ()
10082 {
10083 gethostbyname_r("", 0, 0);
10084   ;
10085   return 0;
10086 }
10087 _ACEOF
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090   (eval $ac_compile) 2>conftest.er1
10091   ac_status=$?
10092   grep -v '^ *+' conftest.er1 >conftest.err
10093   rm -f conftest.er1
10094   cat conftest.err >&5
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); } &&
10097          { ac_try='test -z "$ac_cxx_werror_flag"
10098                          || test ! -s conftest.err'
10099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100   (eval $ac_try) 2>&5
10101   ac_status=$?
10102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103   (exit $ac_status); }; } &&
10104          { ac_try='test -s conftest.$ac_objext'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; }; then
10110   libjava_cv_gethostbyname_r_needs_reentrant=yes
10111 else
10112   echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 libjava_cv_gethostbyname_r_needs_reentrant=fail
10116 fi
10117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10118                 CPPFLAGS="$CPPFLAGS_SAVE"
10119
10120 fi
10121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10122           ac_ext=c
10123 ac_cpp='$CPP $CPPFLAGS'
10124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10127
10128
10129 fi
10130 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10131 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10132         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10133
10134 cat >>confdefs.h <<\_ACEOF
10135 #define _REENTRANT 1
10136 _ACEOF
10137
10138         fi
10139      ;;
10140      esac
10141
10142      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10143 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10144 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147         cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h.  */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h.  */
10153
10154 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10155 # define _REENTRANT 1
10156 #endif
10157 #include <netdb.h>
10158 int
10159 main ()
10160 {
10161 struct hostent_data data;
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168   (eval $ac_compile) 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -z "$ac_c_werror_flag"
10176                          || test ! -s conftest.err'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; } &&
10182          { ac_try='test -s conftest.$ac_objext'
10183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184   (eval $ac_try) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; }; then
10188   libjava_cv_struct_hostent_data=yes
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 libjava_cv_struct_hostent_data=no
10194 fi
10195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10196 fi
10197 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10198 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10199      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10200
10201 cat >>confdefs.h <<\_ACEOF
10202 #define HAVE_STRUCT_HOSTENT_DATA 1
10203 _ACEOF
10204
10205      fi
10206
10207 fi
10208 done
10209
10210
10211    # FIXME: libjava source code expects to find a prototype for
10212    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10213    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10214    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10215    # linkage check is enough, yet C++ code requires proper prototypes.)
10216    cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <netdb.h>
10223
10224 _ACEOF
10225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10226   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10227
10228
10229 for ac_func in gethostbyaddr_r
10230 do
10231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10232 echo "$as_me:$LINENO: checking for $ac_func" >&5
10233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_var+set}\" = set"; then
10235   echo $ECHO_N "(cached) $ECHO_C" >&6
10236 else
10237   if test x$gcc_no_link = xyes; then
10238   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10239 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10240    { (exit 1); exit 1; }; }
10241 fi
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h.  */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h.  */
10248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10250 #define $ac_func innocuous_$ac_func
10251
10252 /* System header to define __stub macros and hopefully few prototypes,
10253     which can conflict with char $ac_func (); below.
10254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10255     <limits.h> exists even on freestanding compilers.  */
10256
10257 #ifdef __STDC__
10258 # include <limits.h>
10259 #else
10260 # include <assert.h>
10261 #endif
10262
10263 #undef $ac_func
10264
10265 /* Override any gcc2 internal prototype to avoid an error.  */
10266 #ifdef __cplusplus
10267 extern "C"
10268 {
10269 #endif
10270 /* We use char because int might match the return type of a gcc2
10271    builtin and then its argument prototype would still apply.  */
10272 char $ac_func ();
10273 /* The GNU C library defines this for functions which it implements
10274     to always fail with ENOSYS.  Some functions are actually named
10275     something starting with __ and the normal name is an alias.  */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10277 choke me
10278 #else
10279 char (*f) () = $ac_func;
10280 #endif
10281 #ifdef __cplusplus
10282 }
10283 #endif
10284
10285 int
10286 main ()
10287 {
10288 return f != $ac_func;
10289   ;
10290   return 0;
10291 }
10292 _ACEOF
10293 rm -f conftest.$ac_objext conftest$ac_exeext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295   (eval $ac_link) 2>conftest.er1
10296   ac_status=$?
10297   grep -v '^ *+' conftest.er1 >conftest.err
10298   rm -f conftest.er1
10299   cat conftest.err >&5
10300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301   (exit $ac_status); } &&
10302          { ac_try='test -z "$ac_c_werror_flag"
10303                          || test ! -s conftest.err'
10304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305   (eval $ac_try) 2>&5
10306   ac_status=$?
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); }; } &&
10309          { ac_try='test -s conftest$ac_exeext'
10310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311   (eval $ac_try) 2>&5
10312   ac_status=$?
10313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314   (exit $ac_status); }; }; then
10315   eval "$as_ac_var=yes"
10316 else
10317   echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10319
10320 eval "$as_ac_var=no"
10321 fi
10322 rm -f conftest.err conftest.$ac_objext \
10323       conftest$ac_exeext conftest.$ac_ext
10324 fi
10325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10327 if test `eval echo '${'$as_ac_var'}'` = yes; then
10328   cat >>confdefs.h <<_ACEOF
10329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10330 _ACEOF
10331
10332
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_GETHOSTBYADDR_R 1
10335 _ACEOF
10336
10337      # There are two different kinds of gethostbyaddr_r.
10338      # We look for the one that returns `int'.
10339      # Hopefully this check is robust enough.
10340      cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h.  */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h.  */
10346 #include <netdb.h>
10347
10348 _ACEOF
10349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10350   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
10351
10352
10353 cat >>confdefs.h <<\_ACEOF
10354 #define GETHOSTBYADDR_R_RETURNS_INT 1
10355 _ACEOF
10356
10357 fi
10358 rm -f conftest*
10359
10360 fi
10361 done
10362
10363 fi
10364 rm -f conftest*
10365
10366
10367
10368 for ac_func in gethostname
10369 do
10370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10371 echo "$as_me:$LINENO: checking for $ac_func" >&5
10372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10373 if eval "test \"\${$as_ac_var+set}\" = set"; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   if test x$gcc_no_link = xyes; then
10377   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10379    { (exit 1); exit 1; }; }
10380 fi
10381 cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h.  */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h.  */
10387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10389 #define $ac_func innocuous_$ac_func
10390
10391 /* System header to define __stub macros and hopefully few prototypes,
10392     which can conflict with char $ac_func (); below.
10393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394     <limits.h> exists even on freestanding compilers.  */
10395
10396 #ifdef __STDC__
10397 # include <limits.h>
10398 #else
10399 # include <assert.h>
10400 #endif
10401
10402 #undef $ac_func
10403
10404 /* Override any gcc2 internal prototype to avoid an error.  */
10405 #ifdef __cplusplus
10406 extern "C"
10407 {
10408 #endif
10409 /* We use char because int might match the return type of a gcc2
10410    builtin and then its argument prototype would still apply.  */
10411 char $ac_func ();
10412 /* The GNU C library defines this for functions which it implements
10413     to always fail with ENOSYS.  Some functions are actually named
10414     something starting with __ and the normal name is an alias.  */
10415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10416 choke me
10417 #else
10418 char (*f) () = $ac_func;
10419 #endif
10420 #ifdef __cplusplus
10421 }
10422 #endif
10423
10424 int
10425 main ()
10426 {
10427 return f != $ac_func;
10428   ;
10429   return 0;
10430 }
10431 _ACEOF
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434   (eval $ac_link) 2>conftest.er1
10435   ac_status=$?
10436   grep -v '^ *+' conftest.er1 >conftest.err
10437   rm -f conftest.er1
10438   cat conftest.err >&5
10439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440   (exit $ac_status); } &&
10441          { ac_try='test -z "$ac_c_werror_flag"
10442                          || test ! -s conftest.err'
10443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444   (eval $ac_try) 2>&5
10445   ac_status=$?
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); }; } &&
10448          { ac_try='test -s conftest$ac_exeext'
10449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450   (eval $ac_try) 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; }; then
10454   eval "$as_ac_var=yes"
10455 else
10456   echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10458
10459 eval "$as_ac_var=no"
10460 fi
10461 rm -f conftest.err conftest.$ac_objext \
10462       conftest$ac_exeext conftest.$ac_ext
10463 fi
10464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10466 if test `eval echo '${'$as_ac_var'}'` = yes; then
10467   cat >>confdefs.h <<_ACEOF
10468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10469 _ACEOF
10470
10471
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_GETHOSTNAME 1
10474 _ACEOF
10475
10476      cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h.  */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h.  */
10482 #include <unistd.h>
10483
10484 _ACEOF
10485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10486   $EGREP "gethostname" >/dev/null 2>&1; then
10487
10488
10489 cat >>confdefs.h <<\_ACEOF
10490 #define HAVE_GETHOSTNAME_DECL 1
10491 _ACEOF
10492
10493 fi
10494 rm -f conftest*
10495
10496 fi
10497 done
10498
10499
10500
10501 for ac_func in usleep
10502 do
10503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_func" >&5
10505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_var+set}\" = set"; then
10507   echo $ECHO_N "(cached) $ECHO_C" >&6
10508 else
10509   if test x$gcc_no_link = xyes; then
10510   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10512    { (exit 1); exit 1; }; }
10513 fi
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h.  */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h.  */
10520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10522 #define $ac_func innocuous_$ac_func
10523
10524 /* System header to define __stub macros and hopefully few prototypes,
10525     which can conflict with char $ac_func (); below.
10526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10527     <limits.h> exists even on freestanding compilers.  */
10528
10529 #ifdef __STDC__
10530 # include <limits.h>
10531 #else
10532 # include <assert.h>
10533 #endif
10534
10535 #undef $ac_func
10536
10537 /* Override any gcc2 internal prototype to avoid an error.  */
10538 #ifdef __cplusplus
10539 extern "C"
10540 {
10541 #endif
10542 /* We use char because int might match the return type of a gcc2
10543    builtin and then its argument prototype would still apply.  */
10544 char $ac_func ();
10545 /* The GNU C library defines this for functions which it implements
10546     to always fail with ENOSYS.  Some functions are actually named
10547     something starting with __ and the normal name is an alias.  */
10548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10549 choke me
10550 #else
10551 char (*f) () = $ac_func;
10552 #endif
10553 #ifdef __cplusplus
10554 }
10555 #endif
10556
10557 int
10558 main ()
10559 {
10560 return f != $ac_func;
10561   ;
10562   return 0;
10563 }
10564 _ACEOF
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567   (eval $ac_link) 2>conftest.er1
10568   ac_status=$?
10569   grep -v '^ *+' conftest.er1 >conftest.err
10570   rm -f conftest.er1
10571   cat conftest.err >&5
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); } &&
10574          { ac_try='test -z "$ac_c_werror_flag"
10575                          || test ! -s conftest.err'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; } &&
10581          { ac_try='test -s conftest$ac_exeext'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; }; then
10587   eval "$as_ac_var=yes"
10588 else
10589   echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10591
10592 eval "$as_ac_var=no"
10593 fi
10594 rm -f conftest.err conftest.$ac_objext \
10595       conftest$ac_exeext conftest.$ac_ext
10596 fi
10597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10599 if test `eval echo '${'$as_ac_var'}'` = yes; then
10600   cat >>confdefs.h <<_ACEOF
10601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10602 _ACEOF
10603
10604      cat >conftest.$ac_ext <<_ACEOF
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610 #include <unistd.h>
10611
10612 _ACEOF
10613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10614   $EGREP "usleep" >/dev/null 2>&1; then
10615
10616
10617 cat >>confdefs.h <<\_ACEOF
10618 #define HAVE_USLEEP_DECL 1
10619 _ACEOF
10620
10621 fi
10622 rm -f conftest*
10623
10624 fi
10625 done
10626
10627
10628    # Look for these functions in the thread library, but only bother
10629    # if using POSIX threads.
10630    if test "$THREADS" = posix; then
10631       save_LIBS="$LIBS"
10632       LIBS="$LIBS $THREADLIBS"
10633       # Some POSIX thread systems don't have pthread_mutexattr_settype.
10634       # E.g., Solaris.
10635
10636
10637 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
10638 do
10639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10640 echo "$as_me:$LINENO: checking for $ac_func" >&5
10641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10642 if eval "test \"\${$as_ac_var+set}\" = set"; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   if test x$gcc_no_link = xyes; then
10646   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10648    { (exit 1); exit 1; }; }
10649 fi
10650 cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10658 #define $ac_func innocuous_$ac_func
10659
10660 /* System header to define __stub macros and hopefully few prototypes,
10661     which can conflict with char $ac_func (); below.
10662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10663     <limits.h> exists even on freestanding compilers.  */
10664
10665 #ifdef __STDC__
10666 # include <limits.h>
10667 #else
10668 # include <assert.h>
10669 #endif
10670
10671 #undef $ac_func
10672
10673 /* Override any gcc2 internal prototype to avoid an error.  */
10674 #ifdef __cplusplus
10675 extern "C"
10676 {
10677 #endif
10678 /* We use char because int might match the return type of a gcc2
10679    builtin and then its argument prototype would still apply.  */
10680 char $ac_func ();
10681 /* The GNU C library defines this for functions which it implements
10682     to always fail with ENOSYS.  Some functions are actually named
10683     something starting with __ and the normal name is an alias.  */
10684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10685 choke me
10686 #else
10687 char (*f) () = $ac_func;
10688 #endif
10689 #ifdef __cplusplus
10690 }
10691 #endif
10692
10693 int
10694 main ()
10695 {
10696 return f != $ac_func;
10697   ;
10698   return 0;
10699 }
10700 _ACEOF
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703   (eval $ac_link) 2>conftest.er1
10704   ac_status=$?
10705   grep -v '^ *+' conftest.er1 >conftest.err
10706   rm -f conftest.er1
10707   cat conftest.err >&5
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -z "$ac_c_werror_flag"
10711                          || test ! -s conftest.err'
10712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713   (eval $ac_try) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; } &&
10717          { ac_try='test -s conftest$ac_exeext'
10718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719   (eval $ac_try) 2>&5
10720   ac_status=$?
10721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722   (exit $ac_status); }; }; then
10723   eval "$as_ac_var=yes"
10724 else
10725   echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 eval "$as_ac_var=no"
10729 fi
10730 rm -f conftest.err conftest.$ac_objext \
10731       conftest$ac_exeext conftest.$ac_ext
10732 fi
10733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10735 if test `eval echo '${'$as_ac_var'}'` = yes; then
10736   cat >>confdefs.h <<_ACEOF
10737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10738 _ACEOF
10739
10740 fi
10741 done
10742
10743
10744       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
10745       # Solaris 7 the name librt is preferred.
10746
10747 for ac_func in sched_yield
10748 do
10749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10750 echo "$as_me:$LINENO: checking for $ac_func" >&5
10751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10752 if eval "test \"\${$as_ac_var+set}\" = set"; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   if test x$gcc_no_link = xyes; then
10756   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10758    { (exit 1); exit 1; }; }
10759 fi
10760 cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h.  */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h.  */
10766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10768 #define $ac_func innocuous_$ac_func
10769
10770 /* System header to define __stub macros and hopefully few prototypes,
10771     which can conflict with char $ac_func (); below.
10772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10773     <limits.h> exists even on freestanding compilers.  */
10774
10775 #ifdef __STDC__
10776 # include <limits.h>
10777 #else
10778 # include <assert.h>
10779 #endif
10780
10781 #undef $ac_func
10782
10783 /* Override any gcc2 internal prototype to avoid an error.  */
10784 #ifdef __cplusplus
10785 extern "C"
10786 {
10787 #endif
10788 /* We use char because int might match the return type of a gcc2
10789    builtin and then its argument prototype would still apply.  */
10790 char $ac_func ();
10791 /* The GNU C library defines this for functions which it implements
10792     to always fail with ENOSYS.  Some functions are actually named
10793     something starting with __ and the normal name is an alias.  */
10794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10795 choke me
10796 #else
10797 char (*f) () = $ac_func;
10798 #endif
10799 #ifdef __cplusplus
10800 }
10801 #endif
10802
10803 int
10804 main ()
10805 {
10806 return f != $ac_func;
10807   ;
10808   return 0;
10809 }
10810 _ACEOF
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10813   (eval $ac_link) 2>conftest.er1
10814   ac_status=$?
10815   grep -v '^ *+' conftest.er1 >conftest.err
10816   rm -f conftest.er1
10817   cat conftest.err >&5
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); } &&
10820          { ac_try='test -z "$ac_c_werror_flag"
10821                          || test ! -s conftest.err'
10822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823   (eval $ac_try) 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); }; } &&
10827          { ac_try='test -s conftest$ac_exeext'
10828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829   (eval $ac_try) 2>&5
10830   ac_status=$?
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); }; }; then
10833   eval "$as_ac_var=yes"
10834 else
10835   echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10837
10838 eval "$as_ac_var=no"
10839 fi
10840 rm -f conftest.err conftest.$ac_objext \
10841       conftest$ac_exeext conftest.$ac_ext
10842 fi
10843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10845 if test `eval echo '${'$as_ac_var'}'` = yes; then
10846   cat >>confdefs.h <<_ACEOF
10847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10848 _ACEOF
10849
10850 else
10851
10852         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
10853 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
10854 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
10855   echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857   ac_check_lib_save_LIBS=$LIBS
10858 LIBS="-lrt  $LIBS"
10859 if test x$gcc_no_link = xyes; then
10860   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10862    { (exit 1); exit 1; }; }
10863 fi
10864 cat >conftest.$ac_ext <<_ACEOF
10865 /* confdefs.h.  */
10866 _ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h.  */
10870
10871 /* Override any gcc2 internal prototype to avoid an error.  */
10872 #ifdef __cplusplus
10873 extern "C"
10874 #endif
10875 /* We use char because int might match the return type of a gcc2
10876    builtin and then its argument prototype would still apply.  */
10877 char sched_yield ();
10878 int
10879 main ()
10880 {
10881 sched_yield ();
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888   (eval $ac_link) 2>conftest.er1
10889   ac_status=$?
10890   grep -v '^ *+' conftest.er1 >conftest.err
10891   rm -f conftest.er1
10892   cat conftest.err >&5
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); } &&
10895          { ac_try='test -z "$ac_c_werror_flag"
10896                          || test ! -s conftest.err'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; } &&
10902          { ac_try='test -s conftest$ac_exeext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_cv_lib_rt_sched_yield=yes
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_cv_lib_rt_sched_yield=no
10914 fi
10915 rm -f conftest.err conftest.$ac_objext \
10916       conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10918 fi
10919 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
10920 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
10921 if test $ac_cv_lib_rt_sched_yield = yes; then
10922
10923           cat >>confdefs.h <<\_ACEOF
10924 #define HAVE_SCHED_YIELD 1
10925 _ACEOF
10926
10927           THREADLIBS="$THREADLIBS -lrt"
10928           THREADSPEC="$THREADSPEC -lrt"
10929 else
10930
10931           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
10932 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
10933 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
10934   echo $ECHO_N "(cached) $ECHO_C" >&6
10935 else
10936   ac_check_lib_save_LIBS=$LIBS
10937 LIBS="-lposix4  $LIBS"
10938 if test x$gcc_no_link = xyes; then
10939   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10941    { (exit 1); exit 1; }; }
10942 fi
10943 cat >conftest.$ac_ext <<_ACEOF
10944 /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949
10950 /* Override any gcc2 internal prototype to avoid an error.  */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 /* We use char because int might match the return type of a gcc2
10955    builtin and then its argument prototype would still apply.  */
10956 char sched_yield ();
10957 int
10958 main ()
10959 {
10960 sched_yield ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967   (eval $ac_link) 2>conftest.er1
10968   ac_status=$?
10969   grep -v '^ *+' conftest.er1 >conftest.err
10970   rm -f conftest.er1
10971   cat conftest.err >&5
10972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973   (exit $ac_status); } &&
10974          { ac_try='test -z "$ac_c_werror_flag"
10975                          || test ! -s conftest.err'
10976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977   (eval $ac_try) 2>&5
10978   ac_status=$?
10979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); }; } &&
10981          { ac_try='test -s conftest$ac_exeext'
10982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983   (eval $ac_try) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; }; then
10987   ac_cv_lib_posix4_sched_yield=yes
10988 else
10989   echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10991
10992 ac_cv_lib_posix4_sched_yield=no
10993 fi
10994 rm -f conftest.err conftest.$ac_objext \
10995       conftest$ac_exeext conftest.$ac_ext
10996 LIBS=$ac_check_lib_save_LIBS
10997 fi
10998 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
10999 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11000 if test $ac_cv_lib_posix4_sched_yield = yes; then
11001
11002             cat >>confdefs.h <<\_ACEOF
11003 #define HAVE_SCHED_YIELD 1
11004 _ACEOF
11005
11006             THREADLIBS="$THREADLIBS -lposix4"
11007             THREADSPEC="$THREADSPEC -lposix4"
11008 fi
11009
11010 fi
11011
11012 fi
11013 done
11014
11015       LIBS="$save_LIBS"
11016
11017       # We can save a little space at runtime if the mutex has m_count
11018       # or __m_count.  This is a nice hack for Linux.
11019       cat >conftest.$ac_ext <<_ACEOF
11020 /* confdefs.h.  */
11021 _ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h.  */
11025 #include <pthread.h>
11026 int
11027 main ()
11028 {
11029
11030           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11031
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 rm -f conftest.$ac_objext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11038   (eval $ac_compile) 2>conftest.er1
11039   ac_status=$?
11040   grep -v '^ *+' conftest.er1 >conftest.err
11041   rm -f conftest.er1
11042   cat conftest.err >&5
11043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044   (exit $ac_status); } &&
11045          { ac_try='test -z "$ac_c_werror_flag"
11046                          || test ! -s conftest.err'
11047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048   (eval $ac_try) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }; } &&
11052          { ac_try='test -s conftest.$ac_objext'
11053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054   (eval $ac_try) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); }; }; then
11058
11059 cat >>confdefs.h <<\_ACEOF
11060 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11061 _ACEOF
11062
11063 else
11064   echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067
11068         cat >conftest.$ac_ext <<_ACEOF
11069 /* confdefs.h.  */
11070 _ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h.  */
11074 #include <pthread.h>
11075 int
11076 main ()
11077 {
11078
11079             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11080
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087   (eval $ac_compile) 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } &&
11094          { ac_try='test -z "$ac_c_werror_flag"
11095                          || test ! -s conftest.err'
11096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097   (eval $ac_try) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; } &&
11101          { ac_try='test -s conftest.$ac_objext'
11102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103   (eval $ac_try) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; }; then
11107
11108 cat >>confdefs.h <<\_ACEOF
11109 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11110 _ACEOF
11111
11112 else
11113   echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 fi
11117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118 fi
11119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11120    fi
11121
11122    # We require a way to get the time.
11123    time_found=no
11124
11125
11126
11127 for ac_func in gettimeofday time ftime
11128 do
11129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11130 echo "$as_me:$LINENO: checking for $ac_func" >&5
11131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11132 if eval "test \"\${$as_ac_var+set}\" = set"; then
11133   echo $ECHO_N "(cached) $ECHO_C" >&6
11134 else
11135   if test x$gcc_no_link = xyes; then
11136   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11138    { (exit 1); exit 1; }; }
11139 fi
11140 cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h.  */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h.  */
11146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11148 #define $ac_func innocuous_$ac_func
11149
11150 /* System header to define __stub macros and hopefully few prototypes,
11151     which can conflict with char $ac_func (); below.
11152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11153     <limits.h> exists even on freestanding compilers.  */
11154
11155 #ifdef __STDC__
11156 # include <limits.h>
11157 #else
11158 # include <assert.h>
11159 #endif
11160
11161 #undef $ac_func
11162
11163 /* Override any gcc2 internal prototype to avoid an error.  */
11164 #ifdef __cplusplus
11165 extern "C"
11166 {
11167 #endif
11168 /* We use char because int might match the return type of a gcc2
11169    builtin and then its argument prototype would still apply.  */
11170 char $ac_func ();
11171 /* The GNU C library defines this for functions which it implements
11172     to always fail with ENOSYS.  Some functions are actually named
11173     something starting with __ and the normal name is an alias.  */
11174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11175 choke me
11176 #else
11177 char (*f) () = $ac_func;
11178 #endif
11179 #ifdef __cplusplus
11180 }
11181 #endif
11182
11183 int
11184 main ()
11185 {
11186 return f != $ac_func;
11187   ;
11188   return 0;
11189 }
11190 _ACEOF
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193   (eval $ac_link) 2>conftest.er1
11194   ac_status=$?
11195   grep -v '^ *+' conftest.er1 >conftest.err
11196   rm -f conftest.er1
11197   cat conftest.err >&5
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); } &&
11200          { ac_try='test -z "$ac_c_werror_flag"
11201                          || test ! -s conftest.err'
11202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203   (eval $ac_try) 2>&5
11204   ac_status=$?
11205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206   (exit $ac_status); }; } &&
11207          { ac_try='test -s conftest$ac_exeext'
11208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209   (eval $ac_try) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); }; }; then
11213   eval "$as_ac_var=yes"
11214 else
11215   echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11217
11218 eval "$as_ac_var=no"
11219 fi
11220 rm -f conftest.err conftest.$ac_objext \
11221       conftest$ac_exeext conftest.$ac_ext
11222 fi
11223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11225 if test `eval echo '${'$as_ac_var'}'` = yes; then
11226   cat >>confdefs.h <<_ACEOF
11227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11228 _ACEOF
11229  time_found=yes
11230 fi
11231 done
11232
11233    if test "$time_found" = no; then
11234       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11235 echo "$as_me: error: no function found to get the time" >&2;}
11236    { (exit 1); exit 1; }; }
11237    fi
11238
11239
11240 for ac_func in memmove
11241 do
11242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 echo "$as_me:$LINENO: checking for $ac_func" >&5
11244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11245 if eval "test \"\${$as_ac_var+set}\" = set"; then
11246   echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248   if test x$gcc_no_link = xyes; then
11249   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11251    { (exit 1); exit 1; }; }
11252 fi
11253 cat >conftest.$ac_ext <<_ACEOF
11254 /* confdefs.h.  */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h.  */
11259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11261 #define $ac_func innocuous_$ac_func
11262
11263 /* System header to define __stub macros and hopefully few prototypes,
11264     which can conflict with char $ac_func (); below.
11265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11266     <limits.h> exists even on freestanding compilers.  */
11267
11268 #ifdef __STDC__
11269 # include <limits.h>
11270 #else
11271 # include <assert.h>
11272 #endif
11273
11274 #undef $ac_func
11275
11276 /* Override any gcc2 internal prototype to avoid an error.  */
11277 #ifdef __cplusplus
11278 extern "C"
11279 {
11280 #endif
11281 /* We use char because int might match the return type of a gcc2
11282    builtin and then its argument prototype would still apply.  */
11283 char $ac_func ();
11284 /* The GNU C library defines this for functions which it implements
11285     to always fail with ENOSYS.  Some functions are actually named
11286     something starting with __ and the normal name is an alias.  */
11287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11288 choke me
11289 #else
11290 char (*f) () = $ac_func;
11291 #endif
11292 #ifdef __cplusplus
11293 }
11294 #endif
11295
11296 int
11297 main ()
11298 {
11299 return f != $ac_func;
11300   ;
11301   return 0;
11302 }
11303 _ACEOF
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306   (eval $ac_link) 2>conftest.er1
11307   ac_status=$?
11308   grep -v '^ *+' conftest.er1 >conftest.err
11309   rm -f conftest.er1
11310   cat conftest.err >&5
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); } &&
11313          { ac_try='test -z "$ac_c_werror_flag"
11314                          || test ! -s conftest.err'
11315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316   (eval $ac_try) 2>&5
11317   ac_status=$?
11318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); }; } &&
11320          { ac_try='test -s conftest$ac_exeext'
11321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322   (eval $ac_try) 2>&5
11323   ac_status=$?
11324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325   (exit $ac_status); }; }; then
11326   eval "$as_ac_var=yes"
11327 else
11328   echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11330
11331 eval "$as_ac_var=no"
11332 fi
11333 rm -f conftest.err conftest.$ac_objext \
11334       conftest$ac_exeext conftest.$ac_ext
11335 fi
11336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11338 if test `eval echo '${'$as_ac_var'}'` = yes; then
11339   cat >>confdefs.h <<_ACEOF
11340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11341 _ACEOF
11342
11343 fi
11344 done
11345
11346
11347    # We require memcpy.
11348    memcpy_found=no
11349
11350 for ac_func in memcpy
11351 do
11352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11353 echo "$as_me:$LINENO: checking for $ac_func" >&5
11354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11355 if eval "test \"\${$as_ac_var+set}\" = set"; then
11356   echo $ECHO_N "(cached) $ECHO_C" >&6
11357 else
11358   if test x$gcc_no_link = xyes; then
11359   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11361    { (exit 1); exit 1; }; }
11362 fi
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h.  */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h.  */
11369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11370    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11371 #define $ac_func innocuous_$ac_func
11372
11373 /* System header to define __stub macros and hopefully few prototypes,
11374     which can conflict with char $ac_func (); below.
11375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376     <limits.h> exists even on freestanding compilers.  */
11377
11378 #ifdef __STDC__
11379 # include <limits.h>
11380 #else
11381 # include <assert.h>
11382 #endif
11383
11384 #undef $ac_func
11385
11386 /* Override any gcc2 internal prototype to avoid an error.  */
11387 #ifdef __cplusplus
11388 extern "C"
11389 {
11390 #endif
11391 /* We use char because int might match the return type of a gcc2
11392    builtin and then its argument prototype would still apply.  */
11393 char $ac_func ();
11394 /* The GNU C library defines this for functions which it implements
11395     to always fail with ENOSYS.  Some functions are actually named
11396     something starting with __ and the normal name is an alias.  */
11397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11398 choke me
11399 #else
11400 char (*f) () = $ac_func;
11401 #endif
11402 #ifdef __cplusplus
11403 }
11404 #endif
11405
11406 int
11407 main ()
11408 {
11409 return f != $ac_func;
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416   (eval $ac_link) 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag"
11424                          || test ! -s conftest.err'
11425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426   (eval $ac_try) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   eval "$as_ac_var=yes"
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 eval "$as_ac_var=no"
11442 fi
11443 rm -f conftest.err conftest.$ac_objext \
11444       conftest$ac_exeext conftest.$ac_ext
11445 fi
11446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11448 if test `eval echo '${'$as_ac_var'}'` = yes; then
11449   cat >>confdefs.h <<_ACEOF
11450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11451 _ACEOF
11452  memcpy_found=yes
11453 fi
11454 done
11455
11456    if test "$memcpy_found" = no; then
11457       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
11458 echo "$as_me: error: memcpy is required" >&2;}
11459    { (exit 1); exit 1; }; }
11460    fi
11461
11462    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11463 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   ac_check_lib_save_LIBS=$LIBS
11468 LIBS="-ldl  $LIBS"
11469 if test x$gcc_no_link = xyes; then
11470   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11472    { (exit 1); exit 1; }; }
11473 fi
11474 cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h.  */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h.  */
11480
11481 /* Override any gcc2 internal prototype to avoid an error.  */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 /* We use char because int might match the return type of a gcc2
11486    builtin and then its argument prototype would still apply.  */
11487 char dlopen ();
11488 int
11489 main ()
11490 {
11491 dlopen ();
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498   (eval $ac_link) 2>conftest.er1
11499   ac_status=$?
11500   grep -v '^ *+' conftest.er1 >conftest.err
11501   rm -f conftest.er1
11502   cat conftest.err >&5
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } &&
11505          { ac_try='test -z "$ac_c_werror_flag"
11506                          || test ! -s conftest.err'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; } &&
11512          { ac_try='test -s conftest$ac_exeext'
11513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514   (eval $ac_try) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   ac_cv_lib_dl_dlopen=yes
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 ac_cv_lib_dl_dlopen=no
11524 fi
11525 rm -f conftest.err conftest.$ac_objext \
11526       conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11528 fi
11529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11531 if test $ac_cv_lib_dl_dlopen = yes; then
11532
11533
11534 cat >>confdefs.h <<\_ACEOF
11535 #define HAVE_DLOPEN 1
11536 _ACEOF
11537
11538 fi
11539
11540
11541    # Some library-finding code we stole from Tcl.
11542    #--------------------------------------------------------------------
11543    #    Check for the existence of the -lsocket and -lnsl libraries.
11544    #    The order here is important, so that they end up in the right
11545    #    order in the command line generated by make.  Here are some
11546    #    special considerations:
11547    #    1. Use "connect" and "accept" to check for -lsocket, and
11548    #       "gethostbyname" to check for -lnsl.
11549    #    2. Use each function name only once:  can't redo a check because
11550    #       autoconf caches the results of the last check and won't redo it.
11551    #    3. Use -lnsl and -lsocket only if they supply procedures that
11552    #       aren't already present in the normal libraries.  This is because
11553    #       IRIX 5.2 has libraries, but they aren't needed and they're
11554    #       bogus:  they goof up name resolution if used.
11555    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
11556    #       To get around this problem, check for both libraries together
11557    #       if -lsocket doesn't work by itself.
11558    #--------------------------------------------------------------------
11559
11560    echo "$as_me:$LINENO: checking for socket libraries" >&5
11561 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
11562 if test "${gcj_cv_lib_sockets+set}" = set; then
11563   echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565   gcj_cv_lib_sockets=
11566      gcj_checkBoth=0
11567      unset ac_cv_func_connect
11568      echo "$as_me:$LINENO: checking for connect" >&5
11569 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11570 if test "${ac_cv_func_connect+set}" = set; then
11571   echo $ECHO_N "(cached) $ECHO_C" >&6
11572 else
11573   if test x$gcc_no_link = xyes; then
11574   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11576    { (exit 1); exit 1; }; }
11577 fi
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11586 #define connect innocuous_connect
11587
11588 /* System header to define __stub macros and hopefully few prototypes,
11589     which can conflict with char connect (); below.
11590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591     <limits.h> exists even on freestanding compilers.  */
11592
11593 #ifdef __STDC__
11594 # include <limits.h>
11595 #else
11596 # include <assert.h>
11597 #endif
11598
11599 #undef connect
11600
11601 /* Override any gcc2 internal prototype to avoid an error.  */
11602 #ifdef __cplusplus
11603 extern "C"
11604 {
11605 #endif
11606 /* We use char because int might match the return type of a gcc2
11607    builtin and then its argument prototype would still apply.  */
11608 char connect ();
11609 /* The GNU C library defines this for functions which it implements
11610     to always fail with ENOSYS.  Some functions are actually named
11611     something starting with __ and the normal name is an alias.  */
11612 #if defined (__stub_connect) || defined (__stub___connect)
11613 choke me
11614 #else
11615 char (*f) () = connect;
11616 #endif
11617 #ifdef __cplusplus
11618 }
11619 #endif
11620
11621 int
11622 main ()
11623 {
11624 return f != connect;
11625   ;
11626   return 0;
11627 }
11628 _ACEOF
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631   (eval $ac_link) 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } &&
11638          { ac_try='test -z "$ac_c_werror_flag"
11639                          || test ! -s conftest.err'
11640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641   (eval $ac_try) 2>&5
11642   ac_status=$?
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); }; } &&
11645          { ac_try='test -s conftest$ac_exeext'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; }; then
11651   ac_cv_func_connect=yes
11652 else
11653   echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11655
11656 ac_cv_func_connect=no
11657 fi
11658 rm -f conftest.err conftest.$ac_objext \
11659       conftest$ac_exeext conftest.$ac_ext
11660 fi
11661 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11662 echo "${ECHO_T}$ac_cv_func_connect" >&6
11663 if test $ac_cv_func_connect = yes; then
11664   gcj_checkSocket=0
11665 else
11666   gcj_checkSocket=1
11667 fi
11668
11669      if test "$gcj_checkSocket" = 1; then
11670          unset ac_cv_func_connect
11671          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
11672 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
11673 if test "${ac_cv_lib_socket_main+set}" = set; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   ac_check_lib_save_LIBS=$LIBS
11677 LIBS="-lsocket  $LIBS"
11678 if test x$gcc_no_link = xyes; then
11679   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11681    { (exit 1); exit 1; }; }
11682 fi
11683 cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689
11690
11691 int
11692 main ()
11693 {
11694 main ();
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701   (eval $ac_link) 2>conftest.er1
11702   ac_status=$?
11703   grep -v '^ *+' conftest.er1 >conftest.err
11704   rm -f conftest.er1
11705   cat conftest.err >&5
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -z "$ac_c_werror_flag"
11709                          || test ! -s conftest.err'
11710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711   (eval $ac_try) 2>&5
11712   ac_status=$?
11713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714   (exit $ac_status); }; } &&
11715          { ac_try='test -s conftest$ac_exeext'
11716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717   (eval $ac_try) 2>&5
11718   ac_status=$?
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); }; }; then
11721   ac_cv_lib_socket_main=yes
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726 ac_cv_lib_socket_main=no
11727 fi
11728 rm -f conftest.err conftest.$ac_objext \
11729       conftest$ac_exeext conftest.$ac_ext
11730 LIBS=$ac_check_lib_save_LIBS
11731 fi
11732 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
11733 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
11734 if test $ac_cv_lib_socket_main = yes; then
11735   gcj_cv_lib_sockets="-lsocket"
11736 else
11737   gcj_checkBoth=1
11738 fi
11739
11740      fi
11741      if test "$gcj_checkBoth" = 1; then
11742          gcj_oldLibs=$LIBS
11743          LIBS="$LIBS -lsocket -lnsl"
11744          unset ac_cv_func_accept
11745          echo "$as_me:$LINENO: checking for accept" >&5
11746 echo $ECHO_N "checking for accept... $ECHO_C" >&6
11747 if test "${ac_cv_func_accept+set}" = set; then
11748   echo $ECHO_N "(cached) $ECHO_C" >&6
11749 else
11750   if test x$gcc_no_link = xyes; then
11751   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11753    { (exit 1); exit 1; }; }
11754 fi
11755 cat >conftest.$ac_ext <<_ACEOF
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
11762    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11763 #define accept innocuous_accept
11764
11765 /* System header to define __stub macros and hopefully few prototypes,
11766     which can conflict with char accept (); below.
11767     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768     <limits.h> exists even on freestanding compilers.  */
11769
11770 #ifdef __STDC__
11771 # include <limits.h>
11772 #else
11773 # include <assert.h>
11774 #endif
11775
11776 #undef accept
11777
11778 /* Override any gcc2 internal prototype to avoid an error.  */
11779 #ifdef __cplusplus
11780 extern "C"
11781 {
11782 #endif
11783 /* We use char because int might match the return type of a gcc2
11784    builtin and then its argument prototype would still apply.  */
11785 char accept ();
11786 /* The GNU C library defines this for functions which it implements
11787     to always fail with ENOSYS.  Some functions are actually named
11788     something starting with __ and the normal name is an alias.  */
11789 #if defined (__stub_accept) || defined (__stub___accept)
11790 choke me
11791 #else
11792 char (*f) () = accept;
11793 #endif
11794 #ifdef __cplusplus
11795 }
11796 #endif
11797
11798 int
11799 main ()
11800 {
11801 return f != accept;
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808   (eval $ac_link) 2>conftest.er1
11809   ac_status=$?
11810   grep -v '^ *+' conftest.er1 >conftest.err
11811   rm -f conftest.er1
11812   cat conftest.err >&5
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -z "$ac_c_werror_flag"
11816                          || test ! -s conftest.err'
11817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818   (eval $ac_try) 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; } &&
11822          { ac_try='test -s conftest$ac_exeext'
11823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824   (eval $ac_try) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); }; }; then
11828   ac_cv_func_accept=yes
11829 else
11830   echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 ac_cv_func_accept=no
11834 fi
11835 rm -f conftest.err conftest.$ac_objext \
11836       conftest$ac_exeext conftest.$ac_ext
11837 fi
11838 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
11839 echo "${ECHO_T}$ac_cv_func_accept" >&6
11840 if test $ac_cv_func_accept = yes; then
11841   gcj_checkNsl=0
11842                         gcj_cv_lib_sockets="-lsocket -lnsl"
11843 fi
11844
11845          unset ac_cv_func_accept
11846          LIBS=$gcj_oldLibs
11847      fi
11848      unset ac_cv_func_gethostbyname
11849      gcj_oldLibs=$LIBS
11850      LIBS="$LIBS $gcj_cv_lib_sockets"
11851      echo "$as_me:$LINENO: checking for gethostbyname" >&5
11852 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11853 if test "${ac_cv_func_gethostbyname+set}" = set; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856   if test x$gcc_no_link = xyes; then
11857   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11859    { (exit 1); exit 1; }; }
11860 fi
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11869 #define gethostbyname innocuous_gethostbyname
11870
11871 /* System header to define __stub macros and hopefully few prototypes,
11872     which can conflict with char gethostbyname (); below.
11873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874     <limits.h> exists even on freestanding compilers.  */
11875
11876 #ifdef __STDC__
11877 # include <limits.h>
11878 #else
11879 # include <assert.h>
11880 #endif
11881
11882 #undef gethostbyname
11883
11884 /* Override any gcc2 internal prototype to avoid an error.  */
11885 #ifdef __cplusplus
11886 extern "C"
11887 {
11888 #endif
11889 /* We use char because int might match the return type of a gcc2
11890    builtin and then its argument prototype would still apply.  */
11891 char gethostbyname ();
11892 /* The GNU C library defines this for functions which it implements
11893     to always fail with ENOSYS.  Some functions are actually named
11894     something starting with __ and the normal name is an alias.  */
11895 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11896 choke me
11897 #else
11898 char (*f) () = gethostbyname;
11899 #endif
11900 #ifdef __cplusplus
11901 }
11902 #endif
11903
11904 int
11905 main ()
11906 {
11907 return f != gethostbyname;
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914   (eval $ac_link) 2>conftest.er1
11915   ac_status=$?
11916   grep -v '^ *+' conftest.er1 >conftest.err
11917   rm -f conftest.er1
11918   cat conftest.err >&5
11919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920   (exit $ac_status); } &&
11921          { ac_try='test -z "$ac_c_werror_flag"
11922                          || test ! -s conftest.err'
11923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924   (eval $ac_try) 2>&5
11925   ac_status=$?
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); }; } &&
11928          { ac_try='test -s conftest$ac_exeext'
11929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930   (eval $ac_try) 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; }; then
11934   ac_cv_func_gethostbyname=yes
11935 else
11936   echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11938
11939 ac_cv_func_gethostbyname=no
11940 fi
11941 rm -f conftest.err conftest.$ac_objext \
11942       conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11945 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11946 if test $ac_cv_func_gethostbyname = yes; then
11947   :
11948 else
11949   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
11950 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
11951 if test "${ac_cv_lib_nsl_main+set}" = set; then
11952   echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954   ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-lnsl  $LIBS"
11956 if test x$gcc_no_link = xyes; then
11957   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11959    { (exit 1); exit 1; }; }
11960 fi
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h.  */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h.  */
11967
11968
11969 int
11970 main ()
11971 {
11972 main ();
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979   (eval $ac_link) 2>conftest.er1
11980   ac_status=$?
11981   grep -v '^ *+' conftest.er1 >conftest.err
11982   rm -f conftest.er1
11983   cat conftest.err >&5
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); } &&
11986          { ac_try='test -z "$ac_c_werror_flag"
11987                          || test ! -s conftest.err'
11988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989   (eval $ac_try) 2>&5
11990   ac_status=$?
11991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992   (exit $ac_status); }; } &&
11993          { ac_try='test -s conftest$ac_exeext'
11994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995   (eval $ac_try) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; }; then
11999   ac_cv_lib_nsl_main=yes
12000 else
12001   echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 ac_cv_lib_nsl_main=no
12005 fi
12006 rm -f conftest.err conftest.$ac_objext \
12007       conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12009 fi
12010 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12011 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12012 if test $ac_cv_lib_nsl_main = yes; then
12013   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12014 fi
12015
12016 fi
12017
12018      unset ac_cv_func_gethostbyname
12019      LIBS=$gcj_oldLIBS
12020
12021 fi
12022 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12023 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12024    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12025
12026    if test "$with_system_zlib" = yes; then
12027       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12028 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12029 if test "${ac_cv_lib_z_deflate+set}" = set; then
12030   echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032   ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-lz  $LIBS"
12034 if test x$gcc_no_link = xyes; then
12035   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12037    { (exit 1); exit 1; }; }
12038 fi
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h.  */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h.  */
12045
12046 /* Override any gcc2 internal prototype to avoid an error.  */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 /* We use char because int might match the return type of a gcc2
12051    builtin and then its argument prototype would still apply.  */
12052 char deflate ();
12053 int
12054 main ()
12055 {
12056 deflate ();
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063   (eval $ac_link) 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -z "$ac_c_werror_flag"
12071                          || test ! -s conftest.err'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; }; then
12083   ac_cv_lib_z_deflate=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_cv_lib_z_deflate=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext \
12091       conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12095 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12096 if test $ac_cv_lib_z_deflate = yes; then
12097   ZLIBSPEC=-lz
12098 else
12099   ZLIBSPEC=
12100 fi
12101
12102    fi
12103
12104    # Test for Gtk stuff, if asked for.
12105    if test "$use_gtk_awt" = yes; then
12106
12107   succeeded=no
12108
12109   if test -z "$PKG_CONFIG"; then
12110     # Extract the first word of "pkg-config", so it can be a program name with args.
12111 set dummy pkg-config; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117   case $PKG_CONFIG in
12118   [\\/]* | ?:[\\/]*)
12119   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12120   ;;
12121   *)
12122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12124 do
12125   IFS=$as_save_IFS
12126   test -z "$as_dir" && as_dir=.
12127   for ac_exec_ext in '' $ac_executable_extensions; do
12128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12131     break 2
12132   fi
12133 done
12134 done
12135
12136   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12137   ;;
12138 esac
12139 fi
12140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12141
12142 if test -n "$PKG_CONFIG"; then
12143   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12144 echo "${ECHO_T}$PKG_CONFIG" >&6
12145 else
12146   echo "$as_me:$LINENO: result: no" >&5
12147 echo "${ECHO_T}no" >&6
12148 fi
12149
12150   fi
12151
12152   if test "$PKG_CONFIG" = "no" ; then
12153      echo "*** The pkg-config script could not be found. Make sure it is"
12154      echo "*** in your path, or set the PKG_CONFIG environment variable"
12155      echo "*** to the full path to pkg-config."
12156      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12157   else
12158      PKG_CONFIG_MIN_VERSION=0.9.0
12159      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12160         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12161 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12162
12163         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12164             echo "$as_me:$LINENO: result: yes" >&5
12165 echo "${ECHO_T}yes" >&6
12166             succeeded=yes
12167
12168             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12169 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12170             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12171             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12172 echo "${ECHO_T}$GTK_CFLAGS" >&6
12173
12174             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12175 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12176             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12177             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12178 echo "${ECHO_T}$GTK_LIBS" >&6
12179         else
12180             GTK_CFLAGS=""
12181             GTK_LIBS=""
12182             ## If we have a custom action on failure, don't print errors, but
12183             ## do set a variable so people can do so.
12184             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12185             echo $GTK_PKG_ERRORS
12186         fi
12187
12188
12189
12190      else
12191         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12192         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12193      fi
12194   fi
12195
12196   if test $succeeded = yes; then
12197      :
12198   else
12199      { { 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
12200 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;}
12201    { (exit 1); exit 1; }; }
12202   fi
12203
12204
12205
12206
12207
12208   succeeded=no
12209
12210   if test -z "$PKG_CONFIG"; then
12211     # Extract the first word of "pkg-config", so it can be a program name with args.
12212 set dummy pkg-config; ac_word=$2
12213 echo "$as_me:$LINENO: checking for $ac_word" >&5
12214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12216   echo $ECHO_N "(cached) $ECHO_C" >&6
12217 else
12218   case $PKG_CONFIG in
12219   [\\/]* | ?:[\\/]*)
12220   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12221   ;;
12222   *)
12223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12225 do
12226   IFS=$as_save_IFS
12227   test -z "$as_dir" && as_dir=.
12228   for ac_exec_ext in '' $ac_executable_extensions; do
12229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12232     break 2
12233   fi
12234 done
12235 done
12236
12237   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12238   ;;
12239 esac
12240 fi
12241 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12242
12243 if test -n "$PKG_CONFIG"; then
12244   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12245 echo "${ECHO_T}$PKG_CONFIG" >&6
12246 else
12247   echo "$as_me:$LINENO: result: no" >&5
12248 echo "${ECHO_T}no" >&6
12249 fi
12250
12251   fi
12252
12253   if test "$PKG_CONFIG" = "no" ; then
12254      echo "*** The pkg-config script could not be found. Make sure it is"
12255      echo "*** in your path, or set the PKG_CONFIG environment variable"
12256      echo "*** to the full path to pkg-config."
12257      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12258   else
12259      PKG_CONFIG_MIN_VERSION=0.9.0
12260      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12261         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12262 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12263
12264         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12265             echo "$as_me:$LINENO: result: yes" >&5
12266 echo "${ECHO_T}yes" >&6
12267             succeeded=yes
12268
12269             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12270 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12271             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12272             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12273 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12274
12275             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12276 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12277             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12278             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12279 echo "${ECHO_T}$GLIB_LIBS" >&6
12280         else
12281             GLIB_CFLAGS=""
12282             GLIB_LIBS=""
12283             ## If we have a custom action on failure, don't print errors, but
12284             ## do set a variable so people can do so.
12285             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12286             echo $GLIB_PKG_ERRORS
12287         fi
12288
12289
12290
12291      else
12292         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12293         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12294      fi
12295   fi
12296
12297   if test $succeeded = yes; then
12298      :
12299   else
12300      { { 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
12301 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;}
12302    { (exit 1); exit 1; }; }
12303   fi
12304
12305
12306
12307
12308
12309   succeeded=no
12310
12311   if test -z "$PKG_CONFIG"; then
12312     # Extract the first word of "pkg-config", so it can be a program name with args.
12313 set dummy pkg-config; ac_word=$2
12314 echo "$as_me:$LINENO: checking for $ac_word" >&5
12315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12317   echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319   case $PKG_CONFIG in
12320   [\\/]* | ?:[\\/]*)
12321   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12322   ;;
12323   *)
12324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12326 do
12327   IFS=$as_save_IFS
12328   test -z "$as_dir" && as_dir=.
12329   for ac_exec_ext in '' $ac_executable_extensions; do
12330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12333     break 2
12334   fi
12335 done
12336 done
12337
12338   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12339   ;;
12340 esac
12341 fi
12342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12343
12344 if test -n "$PKG_CONFIG"; then
12345   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12346 echo "${ECHO_T}$PKG_CONFIG" >&6
12347 else
12348   echo "$as_me:$LINENO: result: no" >&5
12349 echo "${ECHO_T}no" >&6
12350 fi
12351
12352   fi
12353
12354   if test "$PKG_CONFIG" = "no" ; then
12355      echo "*** The pkg-config script could not be found. Make sure it is"
12356      echo "*** in your path, or set the PKG_CONFIG environment variable"
12357      echo "*** to the full path to pkg-config."
12358      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12359   else
12360      PKG_CONFIG_MIN_VERSION=0.9.0
12361      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12362         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
12363 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
12364
12365         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
12366             echo "$as_me:$LINENO: result: yes" >&5
12367 echo "${ECHO_T}yes" >&6
12368             succeeded=yes
12369
12370             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
12371 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
12372             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
12373             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
12374 echo "${ECHO_T}$LIBART_CFLAGS" >&6
12375
12376             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
12377 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
12378             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
12379             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
12380 echo "${ECHO_T}$LIBART_LIBS" >&6
12381         else
12382             LIBART_CFLAGS=""
12383             LIBART_LIBS=""
12384             ## If we have a custom action on failure, don't print errors, but
12385             ## do set a variable so people can do so.
12386             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
12387             echo $LIBART_PKG_ERRORS
12388         fi
12389
12390
12391
12392      else
12393         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12394         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12395      fi
12396   fi
12397
12398   if test $succeeded = yes; then
12399      :
12400   else
12401      { { 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
12402 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;}
12403    { (exit 1); exit 1; }; }
12404   fi
12405
12406
12407
12408    fi
12409
12410    # On Solaris, and maybe other architectures, the Boehm collector
12411    # requires -ldl.
12412    if test "$GC" = boehm; then
12413       echo "$as_me:$LINENO: checking for main in -ldl" >&5
12414 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
12415 if test "${ac_cv_lib_dl_main+set}" = set; then
12416   echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418   ac_check_lib_save_LIBS=$LIBS
12419 LIBS="-ldl  $LIBS"
12420 if test x$gcc_no_link = xyes; then
12421   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12423    { (exit 1); exit 1; }; }
12424 fi
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431
12432
12433 int
12434 main ()
12435 {
12436 main ();
12437   ;
12438   return 0;
12439 }
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443   (eval $ac_link) 2>conftest.er1
12444   ac_status=$?
12445   grep -v '^ *+' conftest.er1 >conftest.err
12446   rm -f conftest.er1
12447   cat conftest.err >&5
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); } &&
12450          { ac_try='test -z "$ac_c_werror_flag"
12451                          || test ! -s conftest.err'
12452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453   (eval $ac_try) 2>&5
12454   ac_status=$?
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); }; } &&
12457          { ac_try='test -s conftest$ac_exeext'
12458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459   (eval $ac_try) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); }; }; then
12463   ac_cv_lib_dl_main=yes
12464 else
12465   echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12467
12468 ac_cv_lib_dl_main=no
12469 fi
12470 rm -f conftest.err conftest.$ac_objext \
12471       conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12473 fi
12474 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
12475 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
12476 if test $ac_cv_lib_dl_main = yes; then
12477   SYSTEMSPEC="$SYSTEMSPEC -ldl"
12478 fi
12479
12480    fi
12481 fi
12482
12483 if test -z "${with_multisubdir}"; then
12484    builddotdot=.
12485 else
12486    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
12487 fi
12488
12489 NATIVE=yes
12490
12491 # Which gcj do we use?
12492 which_gcj=default
12493 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
12494 if test -n "${with_cross_host}"; then
12495   # We are being configured with a cross compiler. We can't
12496   # use ac_exeext, because that is for the target platform.
12497   NATIVE=no
12498   cross_host_exeext=
12499   case "${with_cross_host}" in
12500      *mingw* | *cygwin*)
12501          cross_host_exeext=.exe
12502      ;;
12503   esac
12504   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
12505      if test x"$build_noncanonical" = x"$with_cross_host"; then
12506         # Ordinary cross (host!=target and host=build)
12507         which_gcj=built
12508      else
12509         # Canadian cross (host!=target and host!=build)
12510         which_gcj=cross
12511      fi
12512   else
12513      which_gcj=cross
12514   fi
12515 else
12516   # We are being configured with a native or crossed-native compiler
12517   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
12518      if test x"$build" = x"$host"; then
12519         # True native build (host=target and host=build)
12520         which_gcj=built
12521      else
12522         # Crossed-native build (host=target and host!=build)
12523         which_gcj=cross
12524      fi
12525   else
12526      which_gcj=path
12527   fi
12528 fi
12529 case "${which_gcj}" in
12530    built)
12531       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
12532       GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
12533       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12534    ;;
12535    cross)
12536       if test "x${with_newlib}" = "xyes"; then
12537          # FIXME (comment): Why is this needed?
12538          GCC_UNWIND_INCLUDE=
12539          GCJ="${target_noncanonical}-gcj"
12540       else
12541          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
12542       fi
12543       ZIP=jar
12544       GCJH='$(target_noncanonical)-gcjh'
12545    ;;
12546    path)
12547       GCJ="gcj -B`${PWDCMD-pwd}`/"
12548       ## In this case, gcj is found outside the build tree.  However, zip is
12549       ## found in the build tree.
12550       ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12551       GCJH=gcjh
12552    ;;
12553 esac
12554
12555
12556
12557
12558 # Create it, so that compile/link tests don't fail
12559 test -f libgcj.spec || touch libgcj.spec
12560
12561 # We must search the source tree for java.lang, since we still don't
12562 # have libgcj.jar nor java/lang/*.class
12563 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
12564 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
12565
12566 # Since some classes depend on this one, we need its source available
12567 # before we can do any GCJ compilation test :-(
12568 if test ! -f gnu/classpath/Configuration.java; then
12569   test -d gnu || mkdir gnu
12570   test -d gnu/classpath || mkdir gnu/classpath
12571   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
12572       -e 's,@TOOLKIT@,$TOOLKIT,' \
12573         < $srcdir/gnu/classpath/Configuration.java.in \
12574         > gnu/classpath/Configuration.java
12575   # We do not want to redirect the output of the grep below to /dev/null,
12576   # but we add /dev/null to the input list so that grep will print the
12577   # filename of Configuration.java in case it finds any matches.
12578   if grep @ gnu/classpath/Configuration.java /dev/null; then
12579     { { echo "$as_me:$LINENO: error: configure.in is missing the substitutions above" >&5
12580 echo "$as_me: error: configure.in is missing the substitutions above" >&2;}
12581    { (exit 1); exit 1; }; }
12582   fi
12583 fi
12584
12585 if test -n "$ac_tool_prefix"; then
12586   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
12587 set dummy ${ac_tool_prefix}gcj; ac_word=$2
12588 echo "$as_me:$LINENO: checking for $ac_word" >&5
12589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12590 if test "${ac_cv_prog_GCJ+set}" = set; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593   if test -n "$GCJ"; then
12594   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
12595 else
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12598 do
12599   IFS=$as_save_IFS
12600   test -z "$as_dir" && as_dir=.
12601   for ac_exec_ext in '' $ac_executable_extensions; do
12602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
12604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12605     break 2
12606   fi
12607 done
12608 done
12609
12610 fi
12611 fi
12612 GCJ=$ac_cv_prog_GCJ
12613 if test -n "$GCJ"; then
12614   echo "$as_me:$LINENO: result: $GCJ" >&5
12615 echo "${ECHO_T}$GCJ" >&6
12616 else
12617   echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6
12619 fi
12620
12621 fi
12622 if test -z "$ac_cv_prog_GCJ"; then
12623   ac_ct_GCJ=$GCJ
12624   # Extract the first word of "gcj", so it can be a program name with args.
12625 set dummy gcj; ac_word=$2
12626 echo "$as_me:$LINENO: checking for $ac_word" >&5
12627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12628 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
12629   echo $ECHO_N "(cached) $ECHO_C" >&6
12630 else
12631   if test -n "$ac_ct_GCJ"; then
12632   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
12633 else
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12636 do
12637   IFS=$as_save_IFS
12638   test -z "$as_dir" && as_dir=.
12639   for ac_exec_ext in '' $ac_executable_extensions; do
12640   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641     ac_cv_prog_ac_ct_GCJ="gcj"
12642     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12643     break 2
12644   fi
12645 done
12646 done
12647
12648   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
12649 fi
12650 fi
12651 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
12652 if test -n "$ac_ct_GCJ"; then
12653   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
12654 echo "${ECHO_T}$ac_ct_GCJ" >&6
12655 else
12656   echo "$as_me:$LINENO: result: no" >&5
12657 echo "${ECHO_T}no" >&6
12658 fi
12659
12660   GCJ=$ac_ct_GCJ
12661 else
12662   GCJ="$ac_cv_prog_GCJ"
12663 fi
12664
12665   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12666
12667
12668
12669 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
12670 lt_save_CC="$CC"
12671 lt_save_CFLAGS="$CFLAGS"
12672 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
12673 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
12674 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
12675 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
12676 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
12677 deplibs_check_method="$deplibs_check_method" \
12678 file_magic_cmd="$file_magic_cmd" \
12679 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
12680 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
12681 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
12682 echo "$as_me: error: libtool tag configuration failed" >&2;}
12683    { (exit 1); exit 1; }; }
12684 CC="$lt_save_CC"
12685 CFLAGS="$lt_save_CFLAGS"
12686
12687 # Redirect the config.log output again, so that the ltconfig log is not
12688 # clobbered by the next message.
12689 exec 5>>./config.log
12690
12691
12692
12693
12694 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
12695
12696 echo "$as_me:$LINENO: checking size of void *" >&5
12697 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12698 if test "${ac_cv_sizeof_void_p+set}" = set; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
12702   cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h.  */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h.  */
12708 #include "confdefs.h"
12709 #include <sys/types.h>
12710
12711
12712 int
12713 main ()
12714 {
12715 switch (0) case 0: case (sizeof (void *) == $ac_size):;
12716   ;
12717   return 0;
12718 }
12719 _ACEOF
12720 rm -f conftest.$ac_objext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722   (eval $ac_compile) 2>conftest.er1
12723   ac_status=$?
12724   grep -v '^ *+' conftest.er1 >conftest.err
12725   rm -f conftest.er1
12726   cat conftest.err >&5
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } &&
12729          { ac_try='test -z "$ac_c_werror_flag"
12730                          || test ! -s conftest.err'
12731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732   (eval $ac_try) 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }; } &&
12736          { ac_try='test -s conftest.$ac_objext'
12737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738   (eval $ac_try) 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   ac_cv_sizeof_void_p=$ac_size
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747 fi
12748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12749   if test x$ac_cv_sizeof_void_p != x ; then break; fi
12750 done
12751
12752 fi
12753
12754 if test x$ac_cv_sizeof_void_p = x ; then
12755   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
12756 echo "$as_me: error: cannot determine a size for void *" >&2;}
12757    { (exit 1); exit 1; }; }
12758 fi
12759 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12760 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12761
12762 cat >>confdefs.h <<_ACEOF
12763 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12764 _ACEOF
12765
12766
12767
12768 ZLIBS=
12769 SYS_ZLIBS=
12770 ZINCS=
12771
12772 if test -z "$ZLIBSPEC"; then
12773    # Use zlib from the GCC tree.
12774    ZINCS='-I$(top_srcdir)/../zlib'
12775    ZLIBS=../zlib/libzgcj_convenience.la
12776 else
12777    # System's zlib.
12778    SYS_ZLIBS="$ZLIBSPEC"
12779 fi
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790 if test "$NATIVE" = yes; then
12791   NATIVE_TRUE=
12792   NATIVE_FALSE='#'
12793 else
12794   NATIVE_TRUE='#'
12795   NATIVE_FALSE=
12796 fi
12797
12798
12799 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
12800   NEEDS_DATA_START_TRUE=
12801   NEEDS_DATA_START_FALSE='#'
12802 else
12803   NEEDS_DATA_START_TRUE='#'
12804   NEEDS_DATA_START_FALSE=
12805 fi
12806
12807
12808 # Process the option "--enable-version-specific-runtime-libs"
12809 # Calculate toolexeclibdir
12810 case ${version_specific_libs} in
12811   yes)
12812     # Need the gcc compiler version to know where to install libraries
12813     # and header files if --enable-version-specific-runtime-libs option
12814     # is selected.
12815     includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
12816     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
12817     toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
12818     toolexeclibdir=$toolexecmainlibdir
12819     ;;
12820   no)
12821     if test -n "$with_cross_host" &&
12822        test x"$with_cross_host" != x"no"; then
12823       # Install a library built with a cross compiler in tooldir, not libdir.
12824       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
12825       toolexecmainlibdir='$(toolexecdir)/lib'
12826     else
12827       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
12828       toolexecmainlibdir='$(libdir)'
12829     fi
12830     multi_os_directory=`$CC -print-multi-os-directory`
12831     case $multi_os_directory in
12832       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
12833       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
12834     esac
12835     ;;
12836 esac
12837
12838
12839
12840
12841 # Determine gcj version number.
12842 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
12843 GCJVERSION=$gcjversion
12844
12845
12846 cat >>confdefs.h <<_ACEOF
12847 #define GCJVERSION "$GCJVERSION"
12848 _ACEOF
12849
12850
12851 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
12852 # On that system, sys/ioctl.h will not include sys/filio.h unless
12853 # BSD_COMP is defined; just including sys/filio.h is simpler.
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
12874 do
12875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12877   echo "$as_me:$LINENO: checking for $ac_header" >&5
12878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880   echo $ECHO_N "(cached) $ECHO_C" >&6
12881 fi
12882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12884 else
12885   # Is the header compilable?
12886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12888 cat >conftest.$ac_ext <<_ACEOF
12889 /* confdefs.h.  */
12890 _ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h.  */
12894 $ac_includes_default
12895 #include <$ac_header>
12896 _ACEOF
12897 rm -f conftest.$ac_objext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899   (eval $ac_compile) 2>conftest.er1
12900   ac_status=$?
12901   grep -v '^ *+' conftest.er1 >conftest.err
12902   rm -f conftest.er1
12903   cat conftest.err >&5
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); } &&
12906          { ac_try='test -z "$ac_c_werror_flag"
12907                          || test ! -s conftest.err'
12908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909   (eval $ac_try) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); }; } &&
12913          { ac_try='test -s conftest.$ac_objext'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; }; then
12919   ac_header_compiler=yes
12920 else
12921   echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 ac_header_compiler=no
12925 fi
12926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12928 echo "${ECHO_T}$ac_header_compiler" >&6
12929
12930 # Is the header present?
12931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939 #include <$ac_header>
12940 _ACEOF
12941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12942   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12943   ac_status=$?
12944   grep -v '^ *+' conftest.er1 >conftest.err
12945   rm -f conftest.er1
12946   cat conftest.err >&5
12947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948   (exit $ac_status); } >/dev/null; then
12949   if test -s conftest.err; then
12950     ac_cpp_err=$ac_c_preproc_warn_flag
12951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12952   else
12953     ac_cpp_err=
12954   fi
12955 else
12956   ac_cpp_err=yes
12957 fi
12958 if test -z "$ac_cpp_err"; then
12959   ac_header_preproc=yes
12960 else
12961   echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12963
12964   ac_header_preproc=no
12965 fi
12966 rm -f conftest.err conftest.$ac_ext
12967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12968 echo "${ECHO_T}$ac_header_preproc" >&6
12969
12970 # So?  What about this header?
12971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12972   yes:no: )
12973     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12975     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12977     ac_header_preproc=yes
12978     ;;
12979   no:yes:* )
12980     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12982     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12983 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12984     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12986     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12987 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12990     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12992     (
12993       cat <<\_ASBOX
12994 ## ------------------------------------------ ##
12995 ## Report this to the AC_PACKAGE_NAME lists.  ##
12996 ## ------------------------------------------ ##
12997 _ASBOX
12998     ) |
12999       sed "s/^/$as_me: WARNING:     /" >&2
13000     ;;
13001 esac
13002 echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007   eval "$as_ac_Header=\$ac_header_preproc"
13008 fi
13009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13011
13012 fi
13013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13014   cat >>confdefs.h <<_ACEOF
13015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13016 _ACEOF
13017
13018 fi
13019
13020 done
13021
13022 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13023 # for now.  If you change this, you also must update natFile.cc.
13024
13025 for ac_header in dirent.h
13026 do
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029   echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032   echo $ECHO_N "(cached) $ECHO_C" >&6
13033 fi
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13036 else
13037   # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13041 /* confdefs.h.  */
13042 _ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h.  */
13046 $ac_includes_default
13047 #include <$ac_header>
13048 _ACEOF
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051   (eval $ac_compile) 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } &&
13058          { ac_try='test -z "$ac_c_werror_flag"
13059                          || test ! -s conftest.err'
13060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061   (eval $ac_try) 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; } &&
13065          { ac_try='test -s conftest.$ac_objext'
13066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067   (eval $ac_try) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; }; then
13071   ac_header_compiler=yes
13072 else
13073   echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13075
13076 ac_header_compiler=no
13077 fi
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13081
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 #include <$ac_header>
13092 _ACEOF
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } >/dev/null; then
13101   if test -s conftest.err; then
13102     ac_cpp_err=$ac_c_preproc_warn_flag
13103     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13104   else
13105     ac_cpp_err=
13106   fi
13107 else
13108   ac_cpp_err=yes
13109 fi
13110 if test -z "$ac_cpp_err"; then
13111   ac_header_preproc=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116   ac_header_preproc=no
13117 fi
13118 rm -f conftest.err conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13121
13122 # So?  What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13124   yes:no: )
13125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129     ac_header_preproc=yes
13130     ;;
13131   no:yes:* )
13132     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13136     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13144     (
13145       cat <<\_ASBOX
13146 ## ------------------------------------------ ##
13147 ## Report this to the AC_PACKAGE_NAME lists.  ##
13148 ## ------------------------------------------ ##
13149 _ASBOX
13150     ) |
13151       sed "s/^/$as_me: WARNING:     /" >&2
13152     ;;
13153 esac
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157   echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159   eval "$as_ac_Header=\$ac_header_preproc"
13160 fi
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163
13164 fi
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166   cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 _ACEOF
13169
13170 fi
13171
13172 done
13173
13174
13175 for ac_header in inttypes.h
13176 do
13177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13179   echo "$as_me:$LINENO: checking for $ac_header" >&5
13180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182   echo $ECHO_N "(cached) $ECHO_C" >&6
13183 fi
13184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13186 else
13187   # Is the header compilable?
13188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h.  */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h.  */
13196 $ac_includes_default
13197 #include <$ac_header>
13198 _ACEOF
13199 rm -f conftest.$ac_objext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201   (eval $ac_compile) 2>conftest.er1
13202   ac_status=$?
13203   grep -v '^ *+' conftest.er1 >conftest.err
13204   rm -f conftest.er1
13205   cat conftest.err >&5
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); } &&
13208          { ac_try='test -z "$ac_c_werror_flag"
13209                          || test ! -s conftest.err'
13210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211   (eval $ac_try) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); }; } &&
13215          { ac_try='test -s conftest.$ac_objext'
13216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217   (eval $ac_try) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   ac_header_compiler=yes
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 ac_header_compiler=no
13227 fi
13228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13230 echo "${ECHO_T}$ac_header_compiler" >&6
13231
13232 # Is the header present?
13233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h.  */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h.  */
13241 #include <$ac_header>
13242 _ACEOF
13243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13244   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } >/dev/null; then
13251   if test -s conftest.err; then
13252     ac_cpp_err=$ac_c_preproc_warn_flag
13253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13254   else
13255     ac_cpp_err=
13256   fi
13257 else
13258   ac_cpp_err=yes
13259 fi
13260 if test -z "$ac_cpp_err"; then
13261   ac_header_preproc=yes
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266   ac_header_preproc=no
13267 fi
13268 rm -f conftest.err conftest.$ac_ext
13269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13270 echo "${ECHO_T}$ac_header_preproc" >&6
13271
13272 # So?  What about this header?
13273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13274   yes:no: )
13275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13279     ac_header_preproc=yes
13280     ;;
13281   no:yes:* )
13282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13294     (
13295       cat <<\_ASBOX
13296 ## ------------------------------------------ ##
13297 ## Report this to the AC_PACKAGE_NAME lists.  ##
13298 ## ------------------------------------------ ##
13299 _ASBOX
13300     ) |
13301       sed "s/^/$as_me: WARNING:     /" >&2
13302     ;;
13303 esac
13304 echo "$as_me:$LINENO: checking for $ac_header" >&5
13305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309   eval "$as_ac_Header=\$ac_header_preproc"
13310 fi
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13313
13314 fi
13315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13316   cat >>confdefs.h <<_ACEOF
13317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13318 _ACEOF
13319
13320
13321 cat >>confdefs.h <<\_ACEOF
13322 #define HAVE_INTTYPES_H 1
13323 _ACEOF
13324
13325
13326 cat >>confdefs.h <<\_ACEOF
13327 #define JV_HAVE_INTTYPES_H 1
13328 _ACEOF
13329
13330
13331 fi
13332
13333 done
13334
13335 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13336 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13337 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 else
13340   cat >conftest.$ac_ext <<_ACEOF
13341 /* confdefs.h.  */
13342 _ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h.  */
13346 #include <sys/types.h>
13347 #include <sys/wait.h>
13348 #ifndef WEXITSTATUS
13349 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13350 #endif
13351 #ifndef WIFEXITED
13352 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13353 #endif
13354
13355 int
13356 main ()
13357 {
13358   int s;
13359   wait (&s);
13360   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13361   ;
13362   return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367   (eval $ac_compile) 2>conftest.er1
13368   ac_status=$?
13369   grep -v '^ *+' conftest.er1 >conftest.err
13370   rm -f conftest.er1
13371   cat conftest.err >&5
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); } &&
13374          { ac_try='test -z "$ac_c_werror_flag"
13375                          || test ! -s conftest.err'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; } &&
13381          { ac_try='test -s conftest.$ac_objext'
13382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383   (eval $ac_try) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; }; then
13387   ac_cv_header_sys_wait_h=yes
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ac_cv_header_sys_wait_h=no
13393 fi
13394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13397 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13398 if test $ac_cv_header_sys_wait_h = yes; then
13399
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_SYS_WAIT_H 1
13402 _ACEOF
13403
13404 fi
13405
13406
13407 echo "$as_me:$LINENO: checking for ssize_t" >&5
13408 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13409 if test "${ac_cv_type_ssize_t+set}" = set; then
13410   echo $ECHO_N "(cached) $ECHO_C" >&6
13411 else
13412   cat >conftest.$ac_ext <<_ACEOF
13413 /* confdefs.h.  */
13414 _ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h.  */
13418 $ac_includes_default
13419 int
13420 main ()
13421 {
13422 if ((ssize_t *) 0)
13423   return 0;
13424 if (sizeof (ssize_t))
13425   return 0;
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 rm -f conftest.$ac_objext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13432   (eval $ac_compile) 2>conftest.er1
13433   ac_status=$?
13434   grep -v '^ *+' conftest.er1 >conftest.err
13435   rm -f conftest.er1
13436   cat conftest.err >&5
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); } &&
13439          { ac_try='test -z "$ac_c_werror_flag"
13440                          || test ! -s conftest.err'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; } &&
13446          { ac_try='test -s conftest.$ac_objext'
13447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448   (eval $ac_try) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452   ac_cv_type_ssize_t=yes
13453 else
13454   echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457 ac_cv_type_ssize_t=no
13458 fi
13459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13460 fi
13461 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13462 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13463 if test $ac_cv_type_ssize_t = yes; then
13464   :
13465 else
13466
13467 cat >>confdefs.h <<_ACEOF
13468 #define ssize_t int
13469 _ACEOF
13470
13471 fi
13472
13473
13474 echo "$as_me:$LINENO: checking for in_addr_t" >&5
13475 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
13476 cat >conftest.$ac_ext <<_ACEOF
13477 /* confdefs.h.  */
13478 _ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h.  */
13482 #include <sys/types.h>
13483 #if STDC_HEADERS
13484 #include <stdlib.h>
13485 #include <stddef.h>
13486 #endif
13487 #if HAVE_NETINET_IN_H
13488 #include <netinet/in.h>
13489 #endif
13490 int
13491 main ()
13492 {
13493 in_addr_t foo;
13494   ;
13495   return 0;
13496 }
13497 _ACEOF
13498 rm -f conftest.$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500   (eval $ac_compile) 2>conftest.er1
13501   ac_status=$?
13502   grep -v '^ *+' conftest.er1 >conftest.err
13503   rm -f conftest.er1
13504   cat conftest.err >&5
13505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506   (exit $ac_status); } &&
13507          { ac_try='test -z "$ac_c_werror_flag"
13508                          || test ! -s conftest.err'
13509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510   (eval $ac_try) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); }; } &&
13514          { ac_try='test -s conftest.$ac_objext'
13515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516   (eval $ac_try) 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); }; }; then
13520
13521 cat >>confdefs.h <<\_ACEOF
13522 #define HAVE_IN_ADDR_T 1
13523 _ACEOF
13524
13525    echo "$as_me:$LINENO: result: yes" >&5
13526 echo "${ECHO_T}yes" >&6
13527 else
13528   echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13530
13531 echo "$as_me:$LINENO: result: no" >&5
13532 echo "${ECHO_T}no" >&6
13533 fi
13534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13535
13536 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
13537 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
13538 cat >conftest.$ac_ext <<_ACEOF
13539 /* confdefs.h.  */
13540 _ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h.  */
13544 #include <netinet/in.h>
13545 int
13546 main ()
13547 {
13548 struct ip_mreq mreq;
13549   ;
13550   return 0;
13551 }
13552 _ACEOF
13553 rm -f conftest.$ac_objext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555   (eval $ac_compile) 2>conftest.er1
13556   ac_status=$?
13557   grep -v '^ *+' conftest.er1 >conftest.err
13558   rm -f conftest.er1
13559   cat conftest.err >&5
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); } &&
13562          { ac_try='test -z "$ac_c_werror_flag"
13563                          || test ! -s conftest.err'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; } &&
13569          { ac_try='test -s conftest.$ac_objext'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; }; then
13575
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_STRUCT_IP_MREQ 1
13578 _ACEOF
13579
13580    echo "$as_me:$LINENO: result: yes" >&5
13581 echo "${ECHO_T}yes" >&6
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 echo "$as_me:$LINENO: result: no" >&5
13587 echo "${ECHO_T}no" >&6
13588 fi
13589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13590
13591 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
13592 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h.  */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h.  */
13599 #include <netinet/in.h>
13600 int
13601 main ()
13602 {
13603 struct ipv6_mreq mreq6;
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610   (eval $ac_compile) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_c_werror_flag"
13618                          || test ! -s conftest.err'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest.$ac_objext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630
13631 cat >>confdefs.h <<\_ACEOF
13632 #define HAVE_STRUCT_IPV6_MREQ 1
13633 _ACEOF
13634
13635    echo "$as_me:$LINENO: result: yes" >&5
13636 echo "${ECHO_T}yes" >&6
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 echo "$as_me:$LINENO: result: no" >&5
13642 echo "${ECHO_T}no" >&6
13643 fi
13644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13645
13646 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
13647 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h.  */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h.  */
13654 #include <netinet/in.h>
13655 int
13656 main ()
13657 {
13658 struct sockaddr_in6 addr6;
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665   (eval $ac_compile) 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -z "$ac_c_werror_flag"
13673                          || test ! -s conftest.err'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest.$ac_objext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685
13686 cat >>confdefs.h <<\_ACEOF
13687 #define HAVE_INET6 1
13688 _ACEOF
13689
13690    echo "$as_me:$LINENO: result: yes" >&5
13691 echo "${ECHO_T}yes" >&6
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696 echo "$as_me:$LINENO: result: no" >&5
13697 echo "${ECHO_T}no" >&6
13698 fi
13699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13700
13701 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
13702 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 #define _POSIX_PII_SOCKET
13710 #include <sys/types.h>
13711 #include <sys/socket.h>
13712 int
13713 main ()
13714 {
13715 socklen_t x = 5;
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722   (eval $ac_compile) 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } &&
13729          { ac_try='test -z "$ac_c_werror_flag"
13730                          || test ! -s conftest.err'
13731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732   (eval $ac_try) 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; } &&
13736          { ac_try='test -s conftest.$ac_objext'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; }; then
13742
13743 cat >>confdefs.h <<\_ACEOF
13744 #define HAVE_SOCKLEN_T 1
13745 _ACEOF
13746
13747    echo "$as_me:$LINENO: result: yes" >&5
13748 echo "${ECHO_T}yes" >&6
13749 else
13750   echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13752
13753 echo "$as_me:$LINENO: result: no" >&5
13754 echo "${ECHO_T}no" >&6
13755 fi
13756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13757
13758 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
13759 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766 #include <time.h>
13767 int
13768 main ()
13769 {
13770 struct tm tim; tim.tm_gmtoff = 0;
13771   ;
13772   return 0;
13773 }
13774 _ACEOF
13775 rm -f conftest.$ac_objext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777   (eval $ac_compile) 2>conftest.er1
13778   ac_status=$?
13779   grep -v '^ *+' conftest.er1 >conftest.err
13780   rm -f conftest.er1
13781   cat conftest.err >&5
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } &&
13784          { ac_try='test -z "$ac_c_werror_flag"
13785                          || test ! -s conftest.err'
13786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787   (eval $ac_try) 2>&5
13788   ac_status=$?
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); }; } &&
13791          { ac_try='test -s conftest.$ac_objext'
13792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793   (eval $ac_try) 2>&5
13794   ac_status=$?
13795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796   (exit $ac_status); }; }; then
13797
13798 cat >>confdefs.h <<\_ACEOF
13799 #define STRUCT_TM_HAS_GMTOFF 1
13800 _ACEOF
13801
13802    echo "$as_me:$LINENO: result: yes" >&5
13803 echo "${ECHO_T}yes" >&6
13804 else
13805   echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13807
13808 echo "$as_me:$LINENO: result: no" >&5
13809 echo "${ECHO_T}no" >&6
13810    echo "$as_me:$LINENO: checking for global timezone variable" >&5
13811 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
13812                cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h.  */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h.  */
13818 #include <time.h>
13819 int
13820 main ()
13821 {
13822 void i(){long z2 = 2*timezone;}
13823   ;
13824   return 0;
13825 }
13826 _ACEOF
13827 rm -f conftest.$ac_objext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829   (eval $ac_compile) 2>conftest.er1
13830   ac_status=$?
13831   grep -v '^ *+' conftest.er1 >conftest.err
13832   rm -f conftest.er1
13833   cat conftest.err >&5
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); } &&
13836          { ac_try='test -z "$ac_c_werror_flag"
13837                          || test ! -s conftest.err'
13838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839   (eval $ac_try) 2>&5
13840   ac_status=$?
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); }; } &&
13843          { ac_try='test -s conftest.$ac_objext'
13844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845   (eval $ac_try) 2>&5
13846   ac_status=$?
13847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848   (exit $ac_status); }; }; then
13849
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_TIMEZONE 1
13852 _ACEOF
13853
13854       echo "$as_me:$LINENO: result: yes" >&5
13855 echo "${ECHO_T}yes" >&6
13856 else
13857   echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860 echo "$as_me:$LINENO: result: no" >&5
13861 echo "${ECHO_T}no" >&6
13862        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
13863 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
13864               cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 #include <time.h>
13871 int
13872 main ()
13873 {
13874 long z2 = _timezone;
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881   (eval $ac_compile) 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -z "$ac_c_werror_flag"
13889                          || test ! -s conftest.err'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; } &&
13895          { ac_try='test -s conftest.$ac_objext'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; }; then
13901
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_UNDERSCORE_TIMEZONE 1
13904 _ACEOF
13905
13906           echo "$as_me:$LINENO: result: yes" >&5
13907 echo "${ECHO_T}yes" >&6
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 echo "$as_me:$LINENO: result: no" >&5
13913 echo "${ECHO_T}no" >&6
13914 fi
13915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13916 fi
13917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13918 fi
13919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13920
13921 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13922 # for constant arguments.  Useless!
13923 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13924 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13925 if test "${ac_cv_working_alloca_h+set}" = set; then
13926   echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928   if test x$gcc_no_link = xyes; then
13929   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13931    { (exit 1); exit 1; }; }
13932 fi
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 #include <alloca.h>
13940 int
13941 main ()
13942 {
13943 char *p = (char *) alloca (2 * sizeof (int));
13944   ;
13945   return 0;
13946 }
13947 _ACEOF
13948 rm -f conftest.$ac_objext conftest$ac_exeext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13950   (eval $ac_link) 2>conftest.er1
13951   ac_status=$?
13952   grep -v '^ *+' conftest.er1 >conftest.err
13953   rm -f conftest.er1
13954   cat conftest.err >&5
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); } &&
13957          { ac_try='test -z "$ac_c_werror_flag"
13958                          || test ! -s conftest.err'
13959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960   (eval $ac_try) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); }; } &&
13964          { ac_try='test -s conftest$ac_exeext'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   ac_cv_working_alloca_h=yes
13971 else
13972   echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13974
13975 ac_cv_working_alloca_h=no
13976 fi
13977 rm -f conftest.err conftest.$ac_objext \
13978       conftest$ac_exeext conftest.$ac_ext
13979 fi
13980 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13981 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13982 if test $ac_cv_working_alloca_h = yes; then
13983
13984 cat >>confdefs.h <<\_ACEOF
13985 #define HAVE_ALLOCA_H 1
13986 _ACEOF
13987
13988 fi
13989
13990 echo "$as_me:$LINENO: checking for alloca" >&5
13991 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13992 if test "${ac_cv_func_alloca_works+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   if test x$gcc_no_link = xyes; then
13996   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13998    { (exit 1); exit 1; }; }
13999 fi
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006 #ifdef __GNUC__
14007 # define alloca __builtin_alloca
14008 #else
14009 # ifdef _MSC_VER
14010 #  include <malloc.h>
14011 #  define alloca _alloca
14012 # else
14013 #  if HAVE_ALLOCA_H
14014 #   include <alloca.h>
14015 #  else
14016 #   ifdef _AIX
14017  #pragma alloca
14018 #   else
14019 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14020 char *alloca ();
14021 #    endif
14022 #   endif
14023 #  endif
14024 # endif
14025 #endif
14026
14027 int
14028 main ()
14029 {
14030 char *p = (char *) alloca (1);
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 rm -f conftest.$ac_objext conftest$ac_exeext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14037   (eval $ac_link) 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -z "$ac_c_werror_flag"
14045                          || test ! -s conftest.err'
14046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047   (eval $ac_try) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; } &&
14051          { ac_try='test -s conftest$ac_exeext'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; }; then
14057   ac_cv_func_alloca_works=yes
14058 else
14059   echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_cv_func_alloca_works=no
14063 fi
14064 rm -f conftest.err conftest.$ac_objext \
14065       conftest$ac_exeext conftest.$ac_ext
14066 fi
14067 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14068 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14069
14070 if test $ac_cv_func_alloca_works = yes; then
14071
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_ALLOCA 1
14074 _ACEOF
14075
14076 else
14077   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14078 # that cause trouble.  Some versions do not even contain alloca or
14079 # contain a buggy version.  If you still want to use their alloca,
14080 # use ar to extract alloca.o from them instead of compiling alloca.c.
14081
14082 ALLOCA=alloca.$ac_objext
14083
14084 cat >>confdefs.h <<\_ACEOF
14085 #define C_ALLOCA 1
14086 _ACEOF
14087
14088
14089 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14090 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14091 if test "${ac_cv_os_cray+set}" = set; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094   cat >conftest.$ac_ext <<_ACEOF
14095 /* confdefs.h.  */
14096 _ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h.  */
14100 #if defined(CRAY) && ! defined(CRAY2)
14101 webecray
14102 #else
14103 wenotbecray
14104 #endif
14105
14106 _ACEOF
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108   $EGREP "webecray" >/dev/null 2>&1; then
14109   ac_cv_os_cray=yes
14110 else
14111   ac_cv_os_cray=no
14112 fi
14113 rm -f conftest*
14114
14115 fi
14116 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14117 echo "${ECHO_T}$ac_cv_os_cray" >&6
14118 if test $ac_cv_os_cray = yes; then
14119   for ac_func in _getb67 GETB67 getb67; do
14120     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14121 echo "$as_me:$LINENO: checking for $ac_func" >&5
14122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14123 if eval "test \"\${$as_ac_var+set}\" = set"; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   if test x$gcc_no_link = xyes; then
14127   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14129    { (exit 1); exit 1; }; }
14130 fi
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h.  */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h.  */
14137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14139 #define $ac_func innocuous_$ac_func
14140
14141 /* System header to define __stub macros and hopefully few prototypes,
14142     which can conflict with char $ac_func (); below.
14143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144     <limits.h> exists even on freestanding compilers.  */
14145
14146 #ifdef __STDC__
14147 # include <limits.h>
14148 #else
14149 # include <assert.h>
14150 #endif
14151
14152 #undef $ac_func
14153
14154 /* Override any gcc2 internal prototype to avoid an error.  */
14155 #ifdef __cplusplus
14156 extern "C"
14157 {
14158 #endif
14159 /* We use char because int might match the return type of a gcc2
14160    builtin and then its argument prototype would still apply.  */
14161 char $ac_func ();
14162 /* The GNU C library defines this for functions which it implements
14163     to always fail with ENOSYS.  Some functions are actually named
14164     something starting with __ and the normal name is an alias.  */
14165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14166 choke me
14167 #else
14168 char (*f) () = $ac_func;
14169 #endif
14170 #ifdef __cplusplus
14171 }
14172 #endif
14173
14174 int
14175 main ()
14176 {
14177 return f != $ac_func;
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_c_werror_flag"
14192                          || test ! -s conftest.err'
14193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194   (eval $ac_try) 2>&5
14195   ac_status=$?
14196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197   (exit $ac_status); }; } &&
14198          { ac_try='test -s conftest$ac_exeext'
14199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200   (eval $ac_try) 2>&5
14201   ac_status=$?
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); }; }; then
14204   eval "$as_ac_var=yes"
14205 else
14206   echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14208
14209 eval "$as_ac_var=no"
14210 fi
14211 rm -f conftest.err conftest.$ac_objext \
14212       conftest$ac_exeext conftest.$ac_ext
14213 fi
14214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14216 if test `eval echo '${'$as_ac_var'}'` = yes; then
14217
14218 cat >>confdefs.h <<_ACEOF
14219 #define CRAY_STACKSEG_END $ac_func
14220 _ACEOF
14221
14222     break
14223 fi
14224
14225   done
14226 fi
14227
14228 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14229 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14230 if test "${ac_cv_c_stack_direction+set}" = set; then
14231   echo $ECHO_N "(cached) $ECHO_C" >&6
14232 else
14233   if test "$cross_compiling" = yes; then
14234   ac_cv_c_stack_direction=0
14235 else
14236   cat >conftest.$ac_ext <<_ACEOF
14237 /* confdefs.h.  */
14238 _ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h.  */
14242 int
14243 find_stack_direction ()
14244 {
14245   static char *addr = 0;
14246   auto char dummy;
14247   if (addr == 0)
14248     {
14249       addr = &dummy;
14250       return find_stack_direction ();
14251     }
14252   else
14253     return (&dummy > addr) ? 1 : -1;
14254 }
14255
14256 int
14257 main ()
14258 {
14259   exit (find_stack_direction () < 0);
14260 }
14261 _ACEOF
14262 rm -f conftest$ac_exeext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14264   (eval $ac_link) 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269   (eval $ac_try) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; }; then
14273   ac_cv_c_stack_direction=1
14274 else
14275   echo "$as_me: program exited with status $ac_status" >&5
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279 ( exit $ac_status )
14280 ac_cv_c_stack_direction=-1
14281 fi
14282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14283 fi
14284 fi
14285 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14286 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14287
14288 cat >>confdefs.h <<_ACEOF
14289 #define STACK_DIRECTION $ac_cv_c_stack_direction
14290 _ACEOF
14291
14292
14293 fi
14294
14295 if test x$gcc_no_link = xyes; then
14296   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14297     ac_cv_func_mmap_fixed_mapped=no
14298   fi
14299 fi
14300 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14301
14302
14303 for ac_header in stdlib.h unistd.h
14304 do
14305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14307   echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310   echo $ECHO_N "(cached) $ECHO_C" >&6
14311 fi
14312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14314 else
14315   # Is the header compilable?
14316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h.  */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h.  */
14324 $ac_includes_default
14325 #include <$ac_header>
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329   (eval $ac_compile) 2>conftest.er1
14330   ac_status=$?
14331   grep -v '^ *+' conftest.er1 >conftest.err
14332   rm -f conftest.er1
14333   cat conftest.err >&5
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); } &&
14336          { ac_try='test -z "$ac_c_werror_flag"
14337                          || test ! -s conftest.err'
14338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339   (eval $ac_try) 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; } &&
14343          { ac_try='test -s conftest.$ac_objext'
14344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345   (eval $ac_try) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; }; then
14349   ac_header_compiler=yes
14350 else
14351   echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ac_header_compiler=no
14355 fi
14356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14358 echo "${ECHO_T}$ac_header_compiler" >&6
14359
14360 # Is the header present?
14361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369 #include <$ac_header>
14370 _ACEOF
14371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14373   ac_status=$?
14374   grep -v '^ *+' conftest.er1 >conftest.err
14375   rm -f conftest.er1
14376   cat conftest.err >&5
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } >/dev/null; then
14379   if test -s conftest.err; then
14380     ac_cpp_err=$ac_c_preproc_warn_flag
14381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14382   else
14383     ac_cpp_err=
14384   fi
14385 else
14386   ac_cpp_err=yes
14387 fi
14388 if test -z "$ac_cpp_err"; then
14389   ac_header_preproc=yes
14390 else
14391   echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394   ac_header_preproc=no
14395 fi
14396 rm -f conftest.err conftest.$ac_ext
14397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14398 echo "${ECHO_T}$ac_header_preproc" >&6
14399
14400 # So?  What about this header?
14401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14402   yes:no: )
14403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14407     ac_header_preproc=yes
14408     ;;
14409   no:yes:* )
14410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14412     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14413 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14414     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14416     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14417 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14420     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14422     (
14423       cat <<\_ASBOX
14424 ## ------------------------------------------ ##
14425 ## Report this to the AC_PACKAGE_NAME lists.  ##
14426 ## ------------------------------------------ ##
14427 _ASBOX
14428     ) |
14429       sed "s/^/$as_me: WARNING:     /" >&2
14430     ;;
14431 esac
14432 echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437   eval "$as_ac_Header=\$ac_header_preproc"
14438 fi
14439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14441
14442 fi
14443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14444   cat >>confdefs.h <<_ACEOF
14445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14446 _ACEOF
14447
14448 fi
14449
14450 done
14451
14452
14453 for ac_func in getpagesize
14454 do
14455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14456 echo "$as_me:$LINENO: checking for $ac_func" >&5
14457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14458 if eval "test \"\${$as_ac_var+set}\" = set"; then
14459   echo $ECHO_N "(cached) $ECHO_C" >&6
14460 else
14461   if test x$gcc_no_link = xyes; then
14462   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14464    { (exit 1); exit 1; }; }
14465 fi
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h.  */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h.  */
14472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14474 #define $ac_func innocuous_$ac_func
14475
14476 /* System header to define __stub macros and hopefully few prototypes,
14477     which can conflict with char $ac_func (); below.
14478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14479     <limits.h> exists even on freestanding compilers.  */
14480
14481 #ifdef __STDC__
14482 # include <limits.h>
14483 #else
14484 # include <assert.h>
14485 #endif
14486
14487 #undef $ac_func
14488
14489 /* Override any gcc2 internal prototype to avoid an error.  */
14490 #ifdef __cplusplus
14491 extern "C"
14492 {
14493 #endif
14494 /* We use char because int might match the return type of a gcc2
14495    builtin and then its argument prototype would still apply.  */
14496 char $ac_func ();
14497 /* The GNU C library defines this for functions which it implements
14498     to always fail with ENOSYS.  Some functions are actually named
14499     something starting with __ and the normal name is an alias.  */
14500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14501 choke me
14502 #else
14503 char (*f) () = $ac_func;
14504 #endif
14505 #ifdef __cplusplus
14506 }
14507 #endif
14508
14509 int
14510 main ()
14511 {
14512 return f != $ac_func;
14513   ;
14514   return 0;
14515 }
14516 _ACEOF
14517 rm -f conftest.$ac_objext conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519   (eval $ac_link) 2>conftest.er1
14520   ac_status=$?
14521   grep -v '^ *+' conftest.er1 >conftest.err
14522   rm -f conftest.er1
14523   cat conftest.err >&5
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); } &&
14526          { ac_try='test -z "$ac_c_werror_flag"
14527                          || test ! -s conftest.err'
14528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529   (eval $ac_try) 2>&5
14530   ac_status=$?
14531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532   (exit $ac_status); }; } &&
14533          { ac_try='test -s conftest$ac_exeext'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; }; then
14539   eval "$as_ac_var=yes"
14540 else
14541   echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 eval "$as_ac_var=no"
14545 fi
14546 rm -f conftest.err conftest.$ac_objext \
14547       conftest$ac_exeext conftest.$ac_ext
14548 fi
14549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14551 if test `eval echo '${'$as_ac_var'}'` = yes; then
14552   cat >>confdefs.h <<_ACEOF
14553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14554 _ACEOF
14555
14556 fi
14557 done
14558
14559 echo "$as_me:$LINENO: checking for working mmap" >&5
14560 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14561 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564   if test "$cross_compiling" = yes; then
14565   ac_cv_func_mmap_fixed_mapped=no
14566 else
14567   cat >conftest.$ac_ext <<_ACEOF
14568 /* confdefs.h.  */
14569 _ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h.  */
14573 $ac_includes_default
14574 /* malloc might have been renamed as rpl_malloc. */
14575 #undef malloc
14576
14577 /* Thanks to Mike Haertel and Jim Avera for this test.
14578    Here is a matrix of mmap possibilities:
14579         mmap private not fixed
14580         mmap private fixed at somewhere currently unmapped
14581         mmap private fixed at somewhere already mapped
14582         mmap shared not fixed
14583         mmap shared fixed at somewhere currently unmapped
14584         mmap shared fixed at somewhere already mapped
14585    For private mappings, we should verify that changes cannot be read()
14586    back from the file, nor mmap's back from the file at a different
14587    address.  (There have been systems where private was not correctly
14588    implemented like the infamous i386 svr4.0, and systems where the
14589    VM page cache was not coherent with the file system buffer cache
14590    like early versions of FreeBSD and possibly contemporary NetBSD.)
14591    For shared mappings, we should conversely verify that changes get
14592    propagated back to all the places they're supposed to be.
14593
14594    Grep wants private fixed already mapped.
14595    The main things grep needs to know about mmap are:
14596    * does it exist and is it safe to write into the mmap'd area
14597    * how to use it (BSD variants)  */
14598
14599 #include <fcntl.h>
14600 #include <sys/mman.h>
14601
14602 #if !STDC_HEADERS && !HAVE_STDLIB_H
14603 char *malloc ();
14604 #endif
14605
14606 /* This mess was copied from the GNU getpagesize.h.  */
14607 #if !HAVE_GETPAGESIZE
14608 /* Assume that all systems that can run configure have sys/param.h.  */
14609 # if !HAVE_SYS_PARAM_H
14610 #  define HAVE_SYS_PARAM_H 1
14611 # endif
14612
14613 # ifdef _SC_PAGESIZE
14614 #  define getpagesize() sysconf(_SC_PAGESIZE)
14615 # else /* no _SC_PAGESIZE */
14616 #  if HAVE_SYS_PARAM_H
14617 #   include <sys/param.h>
14618 #   ifdef EXEC_PAGESIZE
14619 #    define getpagesize() EXEC_PAGESIZE
14620 #   else /* no EXEC_PAGESIZE */
14621 #    ifdef NBPG
14622 #     define getpagesize() NBPG * CLSIZE
14623 #     ifndef CLSIZE
14624 #      define CLSIZE 1
14625 #     endif /* no CLSIZE */
14626 #    else /* no NBPG */
14627 #     ifdef NBPC
14628 #      define getpagesize() NBPC
14629 #     else /* no NBPC */
14630 #      ifdef PAGESIZE
14631 #       define getpagesize() PAGESIZE
14632 #      endif /* PAGESIZE */
14633 #     endif /* no NBPC */
14634 #    endif /* no NBPG */
14635 #   endif /* no EXEC_PAGESIZE */
14636 #  else /* no HAVE_SYS_PARAM_H */
14637 #   define getpagesize() 8192   /* punt totally */
14638 #  endif /* no HAVE_SYS_PARAM_H */
14639 # endif /* no _SC_PAGESIZE */
14640
14641 #endif /* no HAVE_GETPAGESIZE */
14642
14643 int
14644 main ()
14645 {
14646   char *data, *data2, *data3;
14647   int i, pagesize;
14648   int fd;
14649
14650   pagesize = getpagesize ();
14651
14652   /* First, make a file with some known garbage in it. */
14653   data = (char *) malloc (pagesize);
14654   if (!data)
14655     exit (1);
14656   for (i = 0; i < pagesize; ++i)
14657     *(data + i) = rand ();
14658   umask (0);
14659   fd = creat ("conftest.mmap", 0600);
14660   if (fd < 0)
14661     exit (1);
14662   if (write (fd, data, pagesize) != pagesize)
14663     exit (1);
14664   close (fd);
14665
14666   /* Next, try to mmap the file at a fixed address which already has
14667      something else allocated at it.  If we can, also make sure that
14668      we see the same garbage.  */
14669   fd = open ("conftest.mmap", O_RDWR);
14670   if (fd < 0)
14671     exit (1);
14672   data2 = (char *) malloc (2 * pagesize);
14673   if (!data2)
14674     exit (1);
14675   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14676   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14677                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14678     exit (1);
14679   for (i = 0; i < pagesize; ++i)
14680     if (*(data + i) != *(data2 + i))
14681       exit (1);
14682
14683   /* Finally, make sure that changes to the mapped area do not
14684      percolate back to the file as seen by read().  (This is a bug on
14685      some variants of i386 svr4.0.)  */
14686   for (i = 0; i < pagesize; ++i)
14687     *(data2 + i) = *(data2 + i) + 1;
14688   data3 = (char *) malloc (pagesize);
14689   if (!data3)
14690     exit (1);
14691   if (read (fd, data3, pagesize) != pagesize)
14692     exit (1);
14693   for (i = 0; i < pagesize; ++i)
14694     if (*(data + i) != *(data3 + i))
14695       exit (1);
14696   close (fd);
14697   exit (0);
14698 }
14699 _ACEOF
14700 rm -f conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702   (eval $ac_link) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; }; then
14711   ac_cv_func_mmap_fixed_mapped=yes
14712 else
14713   echo "$as_me: program exited with status $ac_status" >&5
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14716
14717 ( exit $ac_status )
14718 ac_cv_func_mmap_fixed_mapped=no
14719 fi
14720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14721 fi
14722 fi
14723 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14724 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14725 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14726
14727 cat >>confdefs.h <<\_ACEOF
14728 #define HAVE_MMAP 1
14729 _ACEOF
14730
14731 fi
14732 rm -f conftest.mmap
14733
14734 fi
14735
14736 for ac_prog in perl
14737 do
14738   # Extract the first word of "$ac_prog", so it can be a program name with args.
14739 set dummy $ac_prog; ac_word=$2
14740 echo "$as_me:$LINENO: checking for $ac_word" >&5
14741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14742 if test "${ac_cv_prog_PERL+set}" = set; then
14743   echo $ECHO_N "(cached) $ECHO_C" >&6
14744 else
14745   if test -n "$PERL"; then
14746   ac_cv_prog_PERL="$PERL" # Let the user override the test.
14747 else
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14750 do
14751   IFS=$as_save_IFS
14752   test -z "$as_dir" && as_dir=.
14753   for ac_exec_ext in '' $ac_executable_extensions; do
14754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755     ac_cv_prog_PERL="$ac_prog"
14756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14757     break 2
14758   fi
14759 done
14760 done
14761
14762 fi
14763 fi
14764 PERL=$ac_cv_prog_PERL
14765 if test -n "$PERL"; then
14766   echo "$as_me:$LINENO: result: $PERL" >&5
14767 echo "${ECHO_T}$PERL" >&6
14768 else
14769   echo "$as_me:$LINENO: result: no" >&5
14770 echo "${ECHO_T}no" >&6
14771 fi
14772
14773   test -n "$PERL" && break
14774 done
14775 test -n "$PERL" || PERL="false"
14776
14777
14778 SYSDEP_SOURCES=
14779 SIGNAL_HANDLER_AUX=
14780
14781 case "${host}" in
14782  i?86-*-linux*)
14783     SIGNAL_HANDLER=include/i386-signal.h
14784     ;;
14785  sparc*-sun-solaris*)
14786     SIGNAL_HANDLER=include/sparc-signal.h
14787     ;;
14788 # ia64-*)
14789 #    SYSDEP_SOURCES=sysdep/ia64.c
14790 #    test -d sysdep || mkdir sysdep
14791 #    ;;
14792  hppa*-*-linux*)
14793     SIGNAL_HANDLER=include/pa-signal.h
14794     ;;
14795  ia64-*-linux*)
14796     SIGNAL_HANDLER=include/dwarf2-signal.h
14797     ;;
14798  powerpc*-*-linux*)
14799     SIGNAL_HANDLER=include/powerpc-signal.h
14800     ;;
14801  alpha*-*-linux*)
14802     SIGNAL_HANDLER=include/dwarf2-signal.h
14803     ;;
14804  s390*-*-linux*)
14805     SIGNAL_HANDLER=include/s390-signal.h
14806     ;;
14807  x86_64*-*-linux*)
14808     SIGNAL_HANDLER=include/x86_64-signal.h
14809     SIGNAL_HANDLER_AUX=include/i386-signal.h
14810     ;;
14811  sparc*-*-linux*)
14812     SIGNAL_HANDLER=include/dwarf2-signal.h
14813     ;;
14814  sh-*-linux* | sh[34]*-*-linux*)
14815     SIGNAL_HANDLER=include/dwarf2-signal.h
14816     ;;
14817  *mingw*)
14818     SIGNAL_HANDLER=include/win32-signal.h
14819     ;;
14820  mips*-*-linux*)
14821     SIGNAL_HANDLER=include/mips-signal.h
14822     ;;
14823  *-*-darwin*)
14824     SIGNAL_HANDLER=include/darwin-signal.h
14825     ;;
14826  *)
14827     SIGNAL_HANDLER=include/default-signal.h
14828     ;;
14829 esac
14830
14831 # If we're using sjlj exceptions, forget what we just learned.
14832 if test "$enable_sjlj_exceptions" = yes; then
14833    SIGNAL_HANDLER=include/default-signal.h
14834    SIGNAL_HANDLER_AUX=
14835 fi
14836
14837 # Define here any compiler flags that you need in order to make backtrace() work.
14838 BACKTRACESPEC=
14839 case "${host}" in
14840  x86_64*-*-linux*|i?86-*)
14841     BACKTRACESPEC=-fno-omit-frame-pointer
14842     ;;
14843 esac
14844
14845
14846
14847
14848 if test -z "$SIGNAL_HANDLER_AUX"; then
14849   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
14850 fi
14851
14852                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
14853
14854
14855 if test "${multilib}" = "yes"; then
14856   multilib_arg="--enable-multilib"
14857 else
14858   multilib_arg=
14859 fi
14860
14861
14862
14863 here=`${PWDCMD-pwd}`
14864
14865
14866 # We get this from the environment.
14867
14868
14869                                                                                 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
14870           ac_config_commands="$ac_config_commands default"
14871 cat >confcache <<\_ACEOF
14872 # This file is a shell script that caches the results of configure
14873 # tests run on this system so they can be shared between configure
14874 # scripts and configure runs, see configure's option --config-cache.
14875 # It is not useful on other systems.  If it contains results you don't
14876 # want to keep, you may remove or edit it.
14877 #
14878 # config.status only pays attention to the cache file if you give it
14879 # the --recheck option to rerun configure.
14880 #
14881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14883 # following values.
14884
14885 _ACEOF
14886
14887 # The following way of writing the cache mishandles newlines in values,
14888 # but we know of no workaround that is simple, portable, and efficient.
14889 # So, don't put newlines in cache variables' values.
14890 # Ultrix sh set writes to stderr and can't be redirected directly,
14891 # and sets the high bit in the cache file unless we assign to the vars.
14892 {
14893   (set) 2>&1 |
14894     case `(ac_space=' '; set | grep ac_space) 2>&1` in
14895     *ac_space=\ *)
14896       # `set' does not quote correctly, so add quotes (double-quote
14897       # substitution turns \\\\ into \\, and sed turns \\ into \).
14898       sed -n \
14899         "s/'/'\\\\''/g;
14900           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14901       ;;
14902     *)
14903       # `set' quotes correctly as required by POSIX, so do not add quotes.
14904       sed -n \
14905         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14906       ;;
14907     esac;
14908 } |
14909   sed '
14910      t clear
14911      : clear
14912      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14913      t end
14914      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14915      : end' >>confcache
14916 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14917   if test -w $cache_file; then
14918     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14919     cat confcache >$cache_file
14920   else
14921     echo "not updating unwritable cache $cache_file"
14922   fi
14923 fi
14924 rm -f confcache
14925
14926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14927 # Let make expand exec_prefix.
14928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14929
14930 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14931 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14932 # trailing colons and then remove the whole line if VPATH becomes empty
14933 # (actually we leave an empty line to preserve line numbers).
14934 if test "x$srcdir" = x.; then
14935   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14936 s/:*\$(srcdir):*/:/;
14937 s/:*\${srcdir}:*/:/;
14938 s/:*@srcdir@:*/:/;
14939 s/^\([^=]*=[     ]*\):*/\1/;
14940 s/:*$//;
14941 s/^[^=]*=[       ]*$//;
14942 }'
14943 fi
14944
14945 DEFS=-DHAVE_CONFIG_H
14946
14947 ac_libobjs=
14948 ac_ltlibobjs=
14949 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14950   # 1. Remove the extension, and $U if already installed.
14951   ac_i=`echo "$ac_i" |
14952          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14953   # 2. Add them.
14954   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14955   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14956 done
14957 LIBOBJS=$ac_libobjs
14958
14959 LTLIBOBJS=$ac_ltlibobjs
14960
14961
14962
14963 : ${CONFIG_STATUS=./config.status}
14964 ac_clean_files_save=$ac_clean_files
14965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14966 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14967 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14968 cat >$CONFIG_STATUS <<_ACEOF
14969 #! $SHELL
14970 # Generated by $as_me.
14971 # Run this file to recreate the current configuration.
14972 # Compiler output produced by configure, useful for debugging
14973 # configure, is in config.log if it exists.
14974
14975 debug=false
14976 ac_cs_recheck=false
14977 ac_cs_silent=false
14978 SHELL=\${CONFIG_SHELL-$SHELL}
14979 _ACEOF
14980
14981 cat >>$CONFIG_STATUS <<\_ACEOF
14982 ## --------------------- ##
14983 ## M4sh Initialization.  ##
14984 ## --------------------- ##
14985
14986 # Be Bourne compatible
14987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14988   emulate sh
14989   NULLCMD=:
14990   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14991   # is contrary to our usage.  Disable this feature.
14992   alias -g '${1+"$@"}'='"$@"'
14993 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14994   set -o posix
14995 fi
14996 DUALCASE=1; export DUALCASE # for MKS sh
14997
14998 # Support unset when possible.
14999 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15000   as_unset=unset
15001 else
15002   as_unset=false
15003 fi
15004
15005
15006 # Work around bugs in pre-3.0 UWIN ksh.
15007 $as_unset ENV MAIL MAILPATH
15008 PS1='$ '
15009 PS2='> '
15010 PS4='+ '
15011
15012 # NLS nuisances.
15013 for as_var in \
15014   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15015   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15016   LC_TELEPHONE LC_TIME
15017 do
15018   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15019     eval $as_var=C; export $as_var
15020   else
15021     $as_unset $as_var
15022   fi
15023 done
15024
15025 # Required to use basename.
15026 if expr a : '\(a\)' >/dev/null 2>&1; then
15027   as_expr=expr
15028 else
15029   as_expr=false
15030 fi
15031
15032 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15033   as_basename=basename
15034 else
15035   as_basename=false
15036 fi
15037
15038
15039 # Name of the executable.
15040 as_me=`$as_basename "$0" ||
15041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15042          X"$0" : 'X\(//\)$' \| \
15043          X"$0" : 'X\(/\)$' \| \
15044          .     : '\(.\)' 2>/dev/null ||
15045 echo X/"$0" |
15046     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15047           /^X\/\(\/\/\)$/{ s//\1/; q; }
15048           /^X\/\(\/\).*/{ s//\1/; q; }
15049           s/.*/./; q'`
15050
15051
15052 # PATH needs CR, and LINENO needs CR and PATH.
15053 # Avoid depending upon Character Ranges.
15054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15057 as_cr_digits='0123456789'
15058 as_cr_alnum=$as_cr_Letters$as_cr_digits
15059
15060 # The user is always right.
15061 if test "${PATH_SEPARATOR+set}" != set; then
15062   echo "#! /bin/sh" >conf$$.sh
15063   echo  "exit 0"   >>conf$$.sh
15064   chmod +x conf$$.sh
15065   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15066     PATH_SEPARATOR=';'
15067   else
15068     PATH_SEPARATOR=:
15069   fi
15070   rm -f conf$$.sh
15071 fi
15072
15073
15074   as_lineno_1=$LINENO
15075   as_lineno_2=$LINENO
15076   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15077   test "x$as_lineno_1" != "x$as_lineno_2" &&
15078   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15079   # Find who we are.  Look in the path if we contain no path at all
15080   # relative or not.
15081   case $0 in
15082     *[\\/]* ) as_myself=$0 ;;
15083     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15084 for as_dir in $PATH
15085 do
15086   IFS=$as_save_IFS
15087   test -z "$as_dir" && as_dir=.
15088   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15089 done
15090
15091        ;;
15092   esac
15093   # We did not find ourselves, most probably we were run as `sh COMMAND'
15094   # in which case we are not to be found in the path.
15095   if test "x$as_myself" = x; then
15096     as_myself=$0
15097   fi
15098   if test ! -f "$as_myself"; then
15099     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15100 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15101    { (exit 1); exit 1; }; }
15102   fi
15103   case $CONFIG_SHELL in
15104   '')
15105     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15107 do
15108   IFS=$as_save_IFS
15109   test -z "$as_dir" && as_dir=.
15110   for as_base in sh bash ksh sh5; do
15111          case $as_dir in
15112          /*)
15113            if ("$as_dir/$as_base" -c '
15114   as_lineno_1=$LINENO
15115   as_lineno_2=$LINENO
15116   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15117   test "x$as_lineno_1" != "x$as_lineno_2" &&
15118   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15119              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15120              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15121              CONFIG_SHELL=$as_dir/$as_base
15122              export CONFIG_SHELL
15123              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15124            fi;;
15125          esac
15126        done
15127 done
15128 ;;
15129   esac
15130
15131   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15132   # uniformly replaced by the line number.  The first 'sed' inserts a
15133   # line-number line before each line; the second 'sed' does the real
15134   # work.  The second script uses 'N' to pair each line-number line
15135   # with the numbered line, and appends trailing '-' during
15136   # substitution so that $LINENO is not a special case at line end.
15137   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15138   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15139   sed '=' <$as_myself |
15140     sed '
15141       N
15142       s,$,-,
15143       : loop
15144       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15145       t loop
15146       s,-$,,
15147       s,^['$as_cr_digits']*\n,,
15148     ' >$as_me.lineno &&
15149   chmod +x $as_me.lineno ||
15150     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15151 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15152    { (exit 1); exit 1; }; }
15153
15154   # Don't try to exec as it changes $[0], causing all sort of problems
15155   # (the dirname of $[0] is not the place where we might find the
15156   # original and so on.  Autoconf is especially sensible to this).
15157   . ./$as_me.lineno
15158   # Exit status is that of the last command.
15159   exit
15160 }
15161
15162
15163 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15164   *c*,-n*) ECHO_N= ECHO_C='
15165 ' ECHO_T='      ' ;;
15166   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15167   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15168 esac
15169
15170 if expr a : '\(a\)' >/dev/null 2>&1; then
15171   as_expr=expr
15172 else
15173   as_expr=false
15174 fi
15175
15176 rm -f conf$$ conf$$.exe conf$$.file
15177 echo >conf$$.file
15178 if ln -s conf$$.file conf$$ 2>/dev/null; then
15179   # We could just check for DJGPP; but this test a) works b) is more generic
15180   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15181   if test -f conf$$.exe; then
15182     # Don't use ln at all; we don't have any links
15183     as_ln_s='cp -p'
15184   else
15185     as_ln_s='ln -s'
15186   fi
15187 elif ln conf$$.file conf$$ 2>/dev/null; then
15188   as_ln_s=ln
15189 else
15190   as_ln_s='cp -p'
15191 fi
15192 rm -f conf$$ conf$$.exe conf$$.file
15193
15194 if mkdir -p . 2>/dev/null; then
15195   as_mkdir_p=:
15196 else
15197   test -d ./-p && rmdir ./-p
15198   as_mkdir_p=false
15199 fi
15200
15201 as_executable_p="test -f"
15202
15203 # Sed expression to map a string onto a valid CPP name.
15204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15205
15206 # Sed expression to map a string onto a valid variable name.
15207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15208
15209
15210 # IFS
15211 # We need space, tab and new line, in precisely that order.
15212 as_nl='
15213 '
15214 IFS="   $as_nl"
15215
15216 # CDPATH.
15217 $as_unset CDPATH
15218
15219 exec 6>&1
15220
15221 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15222 # report actual input values of CONFIG_FILES etc. instead of their
15223 # values after options handling.  Logging --version etc. is OK.
15224 exec 5>>config.log
15225 {
15226   echo
15227   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15228 ## Running $as_me. ##
15229 _ASBOX
15230 } >&5
15231 cat >&5 <<_CSEOF
15232
15233 This file was extended by $as_me, which was
15234 generated by GNU Autoconf 2.59.  Invocation command line was
15235
15236   CONFIG_FILES    = $CONFIG_FILES
15237   CONFIG_HEADERS  = $CONFIG_HEADERS
15238   CONFIG_LINKS    = $CONFIG_LINKS
15239   CONFIG_COMMANDS = $CONFIG_COMMANDS
15240   $ $0 $@
15241
15242 _CSEOF
15243 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15244 echo >&5
15245 _ACEOF
15246
15247 # Files that config.status was made for.
15248 if test -n "$ac_config_files"; then
15249   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15250 fi
15251
15252 if test -n "$ac_config_headers"; then
15253   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15254 fi
15255
15256 if test -n "$ac_config_links"; then
15257   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15258 fi
15259
15260 if test -n "$ac_config_commands"; then
15261   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15262 fi
15263
15264 cat >>$CONFIG_STATUS <<\_ACEOF
15265
15266 ac_cs_usage="\
15267 \`$as_me' instantiates files from templates according to the
15268 current configuration.
15269
15270 Usage: $0 [OPTIONS] [FILE]...
15271
15272   -h, --help       print this help, then exit
15273   -V, --version    print version number, then exit
15274   -q, --quiet      do not print progress messages
15275   -d, --debug      don't remove temporary files
15276       --recheck    update $as_me by reconfiguring in the same conditions
15277   --file=FILE[:TEMPLATE]
15278                    instantiate the configuration file FILE
15279   --header=FILE[:TEMPLATE]
15280                    instantiate the configuration header FILE
15281
15282 Configuration files:
15283 $config_files
15284
15285 Configuration headers:
15286 $config_headers
15287
15288 Configuration links:
15289 $config_links
15290
15291 Configuration commands:
15292 $config_commands
15293
15294 Report bugs to <bug-autoconf@gnu.org>."
15295 _ACEOF
15296
15297 cat >>$CONFIG_STATUS <<_ACEOF
15298 ac_cs_version="\\
15299 config.status
15300 configured by $0, generated by GNU Autoconf 2.59,
15301   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15302
15303 Copyright (C) 2003 Free Software Foundation, Inc.
15304 This config.status script is free software; the Free Software Foundation
15305 gives unlimited permission to copy, distribute and modify it."
15306 srcdir=$srcdir
15307 INSTALL="$INSTALL"
15308 _ACEOF
15309
15310 cat >>$CONFIG_STATUS <<\_ACEOF
15311 # If no file are specified by the user, then we need to provide default
15312 # value.  By we need to know if files were specified by the user.
15313 ac_need_defaults=:
15314 while test $# != 0
15315 do
15316   case $1 in
15317   --*=*)
15318     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15319     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15320     ac_shift=:
15321     ;;
15322   -*)
15323     ac_option=$1
15324     ac_optarg=$2
15325     ac_shift=shift
15326     ;;
15327   *) # This is not an option, so the user has probably given explicit
15328      # arguments.
15329      ac_option=$1
15330      ac_need_defaults=false;;
15331   esac
15332
15333   case $ac_option in
15334   # Handling of the options.
15335 _ACEOF
15336 cat >>$CONFIG_STATUS <<\_ACEOF
15337   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15338     ac_cs_recheck=: ;;
15339   --version | --vers* | -V )
15340     echo "$ac_cs_version"; exit 0 ;;
15341   --he | --h)
15342     # Conflict between --help and --header
15343     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15344 Try \`$0 --help' for more information." >&5
15345 echo "$as_me: error: ambiguous option: $1
15346 Try \`$0 --help' for more information." >&2;}
15347    { (exit 1); exit 1; }; };;
15348   --help | --hel | -h )
15349     echo "$ac_cs_usage"; exit 0 ;;
15350   --debug | --d* | -d )
15351     debug=: ;;
15352   --file | --fil | --fi | --f )
15353     $ac_shift
15354     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15355     ac_need_defaults=false;;
15356   --header | --heade | --head | --hea )
15357     $ac_shift
15358     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15359     ac_need_defaults=false;;
15360   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15361   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15362     ac_cs_silent=: ;;
15363
15364   # This is an error.
15365   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15366 Try \`$0 --help' for more information." >&5
15367 echo "$as_me: error: unrecognized option: $1
15368 Try \`$0 --help' for more information." >&2;}
15369    { (exit 1); exit 1; }; } ;;
15370
15371   *) ac_config_targets="$ac_config_targets $1" ;;
15372
15373   esac
15374   shift
15375 done
15376
15377 ac_configure_extra_args=
15378
15379 if $ac_cs_silent; then
15380   exec 6>/dev/null
15381   ac_configure_extra_args="$ac_configure_extra_args --silent"
15382 fi
15383
15384 _ACEOF
15385 cat >>$CONFIG_STATUS <<_ACEOF
15386 if \$ac_cs_recheck; then
15387   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15388   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15389 fi
15390
15391 _ACEOF
15392
15393 cat >>$CONFIG_STATUS <<_ACEOF
15394 #
15395 # INIT-COMMANDS section.
15396 #
15397
15398
15399 srcdir=${srcdir}
15400 host=${host}
15401 target=${target}
15402 with_multisubdir=${with_multisubdir}
15403 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15404 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15405 libgcj_basedir=${libgcj_basedir}
15406 CC="${CC}"
15407 CXX="${CXX}"
15408 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
15409
15410
15411 _ACEOF
15412
15413
15414
15415 cat >>$CONFIG_STATUS <<\_ACEOF
15416 for ac_config_target in $ac_config_targets
15417 do
15418   case "$ac_config_target" in
15419   # Handling of arguments.
15420   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15421   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
15422   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
15423   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
15424   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
15425   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
15426   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15427   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15428   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
15429   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
15430   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
15431   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
15432   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
15433   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
15434   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
15435   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
15436   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
15437   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
15438   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
15439   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
15440   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
15441   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
15442   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
15443   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
15444   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15445   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15446   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15447   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
15448   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15449 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15450    { (exit 1); exit 1; }; };;
15451   esac
15452 done
15453
15454 # If the user did not use the arguments to specify the items to instantiate,
15455 # then the envvar interface is used.  Set only those that are not.
15456 # We use the long form for the default assignment because of an extremely
15457 # bizarre bug on SunOS 4.1.3.
15458 if $ac_need_defaults; then
15459   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15460   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15461   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15462   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15463 fi
15464
15465 # Have a temporary directory for convenience.  Make it in the build tree
15466 # simply because there is no reason to put it here, and in addition,
15467 # creating and moving files from /tmp can sometimes cause problems.
15468 # Create a temporary directory, and hook for its removal unless debugging.
15469 $debug ||
15470 {
15471   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15472   trap '{ (exit 1); exit 1; }' 1 2 13 15
15473 }
15474
15475 # Create a (secure) tmp directory for tmp files.
15476
15477 {
15478   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15479   test -n "$tmp" && test -d "$tmp"
15480 }  ||
15481 {
15482   tmp=./confstat$$-$RANDOM
15483   (umask 077 && mkdir $tmp)
15484 } ||
15485 {
15486    echo "$me: cannot create a temporary directory in ." >&2
15487    { (exit 1); exit 1; }
15488 }
15489
15490 _ACEOF
15491
15492 cat >>$CONFIG_STATUS <<_ACEOF
15493
15494 #
15495 # CONFIG_FILES section.
15496 #
15497
15498 # No need to generate the scripts if there are no CONFIG_FILES.
15499 # This happens for instance when ./config.status config.h
15500 if test -n "\$CONFIG_FILES"; then
15501   # Protect against being on the right side of a sed subst in config.status.
15502   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15503    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15504 s,@SHELL@,$SHELL,;t t
15505 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15506 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15507 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15508 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15509 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15510 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15511 s,@exec_prefix@,$exec_prefix,;t t
15512 s,@prefix@,$prefix,;t t
15513 s,@program_transform_name@,$program_transform_name,;t t
15514 s,@bindir@,$bindir,;t t
15515 s,@sbindir@,$sbindir,;t t
15516 s,@libexecdir@,$libexecdir,;t t
15517 s,@datadir@,$datadir,;t t
15518 s,@sysconfdir@,$sysconfdir,;t t
15519 s,@sharedstatedir@,$sharedstatedir,;t t
15520 s,@localstatedir@,$localstatedir,;t t
15521 s,@libdir@,$libdir,;t t
15522 s,@includedir@,$includedir,;t t
15523 s,@oldincludedir@,$oldincludedir,;t t
15524 s,@infodir@,$infodir,;t t
15525 s,@mandir@,$mandir,;t t
15526 s,@build_alias@,$build_alias,;t t
15527 s,@host_alias@,$host_alias,;t t
15528 s,@target_alias@,$target_alias,;t t
15529 s,@DEFS@,$DEFS,;t t
15530 s,@ECHO_C@,$ECHO_C,;t t
15531 s,@ECHO_N@,$ECHO_N,;t t
15532 s,@ECHO_T@,$ECHO_T,;t t
15533 s,@LIBS@,$LIBS,;t t
15534 s,@libgcj_basedir@,$libgcj_basedir,;t t
15535 s,@build@,$build,;t t
15536 s,@build_cpu@,$build_cpu,;t t
15537 s,@build_vendor@,$build_vendor,;t t
15538 s,@build_os@,$build_os,;t t
15539 s,@host@,$host,;t t
15540 s,@host_cpu@,$host_cpu,;t t
15541 s,@host_vendor@,$host_vendor,;t t
15542 s,@host_os@,$host_os,;t t
15543 s,@target@,$target,;t t
15544 s,@target_cpu@,$target_cpu,;t t
15545 s,@target_vendor@,$target_vendor,;t t
15546 s,@target_os@,$target_os,;t t
15547 s,@target_noncanonical@,$target_noncanonical,;t t
15548 s,@LN_S@,$LN_S,;t t
15549 s,@mkinstalldirs@,$mkinstalldirs,;t t
15550 s,@CC@,$CC,;t t
15551 s,@ac_ct_CC@,$ac_ct_CC,;t t
15552 s,@EXEEXT@,$EXEEXT,;t t
15553 s,@OBJEXT@,$OBJEXT,;t t
15554 s,@CXX@,$CXX,;t t
15555 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15556 s,@CFLAGS@,$CFLAGS,;t t
15557 s,@CXXFLAGS@,$CXXFLAGS,;t t
15558 s,@LDFLAGS@,$LDFLAGS,;t t
15559 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15560 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15561 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15562 s,@PACKAGE@,$PACKAGE,;t t
15563 s,@VERSION@,$VERSION,;t t
15564 s,@ACLOCAL@,$ACLOCAL,;t t
15565 s,@AUTOCONF@,$AUTOCONF,;t t
15566 s,@AUTOMAKE@,$AUTOMAKE,;t t
15567 s,@AUTOHEADER@,$AUTOHEADER,;t t
15568 s,@MAKEINFO@,$MAKEINFO,;t t
15569 s,@SET_MAKE@,$SET_MAKE,;t t
15570 s,@AS@,$AS,;t t
15571 s,@ac_ct_AS@,$ac_ct_AS,;t t
15572 s,@AR@,$AR,;t t
15573 s,@ac_ct_AR@,$ac_ct_AR,;t t
15574 s,@RANLIB@,$RANLIB,;t t
15575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15576 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15577 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15578 s,@MAINT@,$MAINT,;t t
15579 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
15580 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
15581 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
15582 s,@INCLTDL@,$INCLTDL,;t t
15583 s,@LIBLTDL@,$LIBLTDL,;t t
15584 s,@DIRLTDL@,$DIRLTDL,;t t
15585 s,@STRIP@,$STRIP,;t t
15586 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15587 s,@LIBTOOL@,$LIBTOOL,;t t
15588 s,@CXXCPP@,$CXXCPP,;t t
15589 s,@CPPFLAGS@,$CPPFLAGS,;t t
15590 s,@subdirs@,$subdirs,;t t
15591 s,@COMPPATH@,$COMPPATH,;t t
15592 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
15593 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
15594 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
15595 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
15596 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
15597 s,@INTERPRETER@,$INTERPRETER,;t t
15598 s,@LIBFFI@,$LIBFFI,;t t
15599 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
15600 s,@EXTRA_CC_FILES@,$EXTRA_CC_FILES,;t t
15601 s,@PLATFORMOBJS@,$PLATFORMOBJS,;t t
15602 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
15603 s,@CPP@,$CPP,;t t
15604 s,@EGREP@,$EGREP,;t t
15605 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
15606 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
15607 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
15608 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
15609 s,@X_CFLAGS@,$X_CFLAGS,;t t
15610 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15611 s,@X_LIBS@,$X_LIBS,;t t
15612 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15613 s,@TOOLKIT@,$TOOLKIT,;t t
15614 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
15615 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
15616 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
15617 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
15618 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
15619 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
15620 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15621 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
15622 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
15623 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
15624 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
15625 s,@GCLIBS@,$GCLIBS,;t t
15626 s,@GCINCS@,$GCINCS,;t t
15627 s,@GCDEPS@,$GCDEPS,;t t
15628 s,@GCOBJS@,$GCOBJS,;t t
15629 s,@GCSPEC@,$GCSPEC,;t t
15630 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
15631 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
15632 s,@THREADLIBS@,$THREADLIBS,;t t
15633 s,@THREADINCS@,$THREADINCS,;t t
15634 s,@THREADDEPS@,$THREADDEPS,;t t
15635 s,@THREADOBJS@,$THREADOBJS,;t t
15636 s,@THREADSPEC@,$THREADSPEC,;t t
15637 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
15638 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
15639 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
15640 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
15641 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
15642 s,@tool_include_dir@,$tool_include_dir,;t t
15643 s,@gcc_version@,$gcc_version,;t t
15644 s,@LIBICONV@,$LIBICONV,;t t
15645 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15646 s,@GTK_LIBS@,$GTK_LIBS,;t t
15647 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
15648 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
15649 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
15650 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
15651 s,@GCJH@,$GCJH,;t t
15652 s,@ZIP@,$ZIP,;t t
15653 s,@GCJ@,$GCJ,;t t
15654 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
15655 s,@GCJFLAGS@,$GCJFLAGS,;t t
15656 s,@ZLIBS@,$ZLIBS,;t t
15657 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
15658 s,@ZINCS@,$ZINCS,;t t
15659 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
15660 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
15661 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
15662 s,@IEEESPEC@,$IEEESPEC,;t t
15663 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
15664 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
15665 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
15666 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
15667 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
15668 s,@toolexecdir@,$toolexecdir,;t t
15669 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
15670 s,@toolexeclibdir@,$toolexeclibdir,;t t
15671 s,@GCJVERSION@,$GCJVERSION,;t t
15672 s,@ALLOCA@,$ALLOCA,;t t
15673 s,@PERL@,$PERL,;t t
15674 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
15675 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
15676 s,@here@,$here,;t t
15677 s,@LIBOBJS@,$LIBOBJS,;t t
15678 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15679 CEOF
15680
15681 _ACEOF
15682
15683   cat >>$CONFIG_STATUS <<\_ACEOF
15684   # Split the substitutions into bite-sized pieces for seds with
15685   # small command number limits, like on Digital OSF/1 and HP-UX.
15686   ac_max_sed_lines=48
15687   ac_sed_frag=1 # Number of current file.
15688   ac_beg=1 # First line for current file.
15689   ac_end=$ac_max_sed_lines # Line after last line for current file.
15690   ac_more_lines=:
15691   ac_sed_cmds=
15692   while $ac_more_lines; do
15693     if test $ac_beg -gt 1; then
15694       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15695     else
15696       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15697     fi
15698     if test ! -s $tmp/subs.frag; then
15699       ac_more_lines=false
15700     else
15701       # The purpose of the label and of the branching condition is to
15702       # speed up the sed processing (if there are no `@' at all, there
15703       # is no need to browse any of the substitutions).
15704       # These are the two extra sed commands mentioned above.
15705       (echo ':t
15706   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15707       if test -z "$ac_sed_cmds"; then
15708         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15709       else
15710         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15711       fi
15712       ac_sed_frag=`expr $ac_sed_frag + 1`
15713       ac_beg=$ac_end
15714       ac_end=`expr $ac_end + $ac_max_sed_lines`
15715     fi
15716   done
15717   if test -z "$ac_sed_cmds"; then
15718     ac_sed_cmds=cat
15719   fi
15720 fi # test -n "$CONFIG_FILES"
15721
15722 _ACEOF
15723 cat >>$CONFIG_STATUS <<\_ACEOF
15724 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15725   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15726   case $ac_file in
15727   - | *:- | *:-:* ) # input from stdin
15728         cat >$tmp/stdin
15729         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15730         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15731   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15732         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15733   * )   ac_file_in=$ac_file.in ;;
15734   esac
15735
15736   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15737   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15739          X"$ac_file" : 'X\(//\)[^/]' \| \
15740          X"$ac_file" : 'X\(//\)$' \| \
15741          X"$ac_file" : 'X\(/\)' \| \
15742          .     : '\(.\)' 2>/dev/null ||
15743 echo X"$ac_file" |
15744     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15745           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15746           /^X\(\/\/\)$/{ s//\1/; q; }
15747           /^X\(\/\).*/{ s//\1/; q; }
15748           s/.*/./; q'`
15749   { if $as_mkdir_p; then
15750     mkdir -p "$ac_dir"
15751   else
15752     as_dir="$ac_dir"
15753     as_dirs=
15754     while test ! -d "$as_dir"; do
15755       as_dirs="$as_dir $as_dirs"
15756       as_dir=`(dirname "$as_dir") 2>/dev/null ||
15757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15758          X"$as_dir" : 'X\(//\)[^/]' \| \
15759          X"$as_dir" : 'X\(//\)$' \| \
15760          X"$as_dir" : 'X\(/\)' \| \
15761          .     : '\(.\)' 2>/dev/null ||
15762 echo X"$as_dir" |
15763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15764           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15765           /^X\(\/\/\)$/{ s//\1/; q; }
15766           /^X\(\/\).*/{ s//\1/; q; }
15767           s/.*/./; q'`
15768     done
15769     test ! -n "$as_dirs" || mkdir $as_dirs
15770   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15771 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15772    { (exit 1); exit 1; }; }; }
15773
15774   ac_builddir=.
15775
15776 if test "$ac_dir" != .; then
15777   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15778   # A "../" for each directory in $ac_dir_suffix.
15779   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15780 else
15781   ac_dir_suffix= ac_top_builddir=
15782 fi
15783
15784 case $srcdir in
15785   .)  # No --srcdir option.  We are building in place.
15786     ac_srcdir=.
15787     if test -z "$ac_top_builddir"; then
15788        ac_top_srcdir=.
15789     else
15790        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15791     fi ;;
15792   [\\/]* | ?:[\\/]* )  # Absolute path.
15793     ac_srcdir=$srcdir$ac_dir_suffix;
15794     ac_top_srcdir=$srcdir ;;
15795   *) # Relative path.
15796     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15797     ac_top_srcdir=$ac_top_builddir$srcdir ;;
15798 esac
15799
15800 # Do not use `cd foo && pwd` to compute absolute paths, because
15801 # the directories may not exist.
15802 case `pwd` in
15803 .) ac_abs_builddir="$ac_dir";;
15804 *)
15805   case "$ac_dir" in
15806   .) ac_abs_builddir=`pwd`;;
15807   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15808   *) ac_abs_builddir=`pwd`/"$ac_dir";;
15809   esac;;
15810 esac
15811 case $ac_abs_builddir in
15812 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15813 *)
15814   case ${ac_top_builddir}. in
15815   .) ac_abs_top_builddir=$ac_abs_builddir;;
15816   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15817   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15818   esac;;
15819 esac
15820 case $ac_abs_builddir in
15821 .) ac_abs_srcdir=$ac_srcdir;;
15822 *)
15823   case $ac_srcdir in
15824   .) ac_abs_srcdir=$ac_abs_builddir;;
15825   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15826   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15827   esac;;
15828 esac
15829 case $ac_abs_builddir in
15830 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15831 *)
15832   case $ac_top_srcdir in
15833   .) ac_abs_top_srcdir=$ac_abs_builddir;;
15834   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15835   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15836   esac;;
15837 esac
15838
15839
15840   case $INSTALL in
15841   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15842   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15843   esac
15844
15845   if test x"$ac_file" != x-; then
15846     { echo "$as_me:$LINENO: creating $ac_file" >&5
15847 echo "$as_me: creating $ac_file" >&6;}
15848     rm -f "$ac_file"
15849   fi
15850   # Let's still pretend it is `configure' which instantiates (i.e., don't
15851   # use $as_me), people would be surprised to read:
15852   #    /* config.h.  Generated by config.status.  */
15853   if test x"$ac_file" = x-; then
15854     configure_input=
15855   else
15856     configure_input="$ac_file.  "
15857   fi
15858   configure_input=$configure_input"Generated from `echo $ac_file_in |
15859                                      sed 's,.*/,,'` by configure."
15860
15861   # First look for the input files in the build tree, otherwise in the
15862   # src tree.
15863   ac_file_inputs=`IFS=:
15864     for f in $ac_file_in; do
15865       case $f in
15866       -) echo $tmp/stdin ;;
15867       [\\/$]*)
15868          # Absolute (can't be DOS-style, as IFS=:)
15869          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15870 echo "$as_me: error: cannot find input file: $f" >&2;}
15871    { (exit 1); exit 1; }; }
15872          echo "$f";;
15873       *) # Relative
15874          if test -f "$f"; then
15875            # Build tree
15876            echo "$f"
15877          elif test -f "$srcdir/$f"; then
15878            # Source tree
15879            echo "$srcdir/$f"
15880          else
15881            # /dev/null tree
15882            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15883 echo "$as_me: error: cannot find input file: $f" >&2;}
15884    { (exit 1); exit 1; }; }
15885          fi;;
15886       esac
15887     done` || { (exit 1); exit 1; }
15888 _ACEOF
15889 cat >>$CONFIG_STATUS <<_ACEOF
15890   sed "$ac_vpsub
15891 $extrasub
15892 _ACEOF
15893 cat >>$CONFIG_STATUS <<\_ACEOF
15894 :t
15895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15896 s,@configure_input@,$configure_input,;t t
15897 s,@srcdir@,$ac_srcdir,;t t
15898 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15899 s,@top_srcdir@,$ac_top_srcdir,;t t
15900 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15901 s,@builddir@,$ac_builddir,;t t
15902 s,@abs_builddir@,$ac_abs_builddir,;t t
15903 s,@top_builddir@,$ac_top_builddir,;t t
15904 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15905 s,@INSTALL@,$ac_INSTALL,;t t
15906 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15907   rm -f $tmp/stdin
15908   if test x"$ac_file" != x-; then
15909     mv $tmp/out $ac_file
15910   else
15911     cat $tmp/out
15912     rm -f $tmp/out
15913   fi
15914
15915 done
15916 _ACEOF
15917 cat >>$CONFIG_STATUS <<\_ACEOF
15918
15919 #
15920 # CONFIG_HEADER section.
15921 #
15922
15923 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15924 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15925 #
15926 # ac_d sets the value in "#define NAME VALUE" lines.
15927 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
15928 ac_dB='[         ].*$,\1#\2'
15929 ac_dC=' '
15930 ac_dD=',;t'
15931 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15932 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
15933 ac_uB='$,\1#\2define\3'
15934 ac_uC=' '
15935 ac_uD=',;t'
15936
15937 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15938   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15939   case $ac_file in
15940   - | *:- | *:-:* ) # input from stdin
15941         cat >$tmp/stdin
15942         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15943         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15944   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15945         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15946   * )   ac_file_in=$ac_file.in ;;
15947   esac
15948
15949   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15950 echo "$as_me: creating $ac_file" >&6;}
15951
15952   # First look for the input files in the build tree, otherwise in the
15953   # src tree.
15954   ac_file_inputs=`IFS=:
15955     for f in $ac_file_in; do
15956       case $f in
15957       -) echo $tmp/stdin ;;
15958       [\\/$]*)
15959          # Absolute (can't be DOS-style, as IFS=:)
15960          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15961 echo "$as_me: error: cannot find input file: $f" >&2;}
15962    { (exit 1); exit 1; }; }
15963          # Do quote $f, to prevent DOS paths from being IFS'd.
15964          echo "$f";;
15965       *) # Relative
15966          if test -f "$f"; then
15967            # Build tree
15968            echo "$f"
15969          elif test -f "$srcdir/$f"; then
15970            # Source tree
15971            echo "$srcdir/$f"
15972          else
15973            # /dev/null tree
15974            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15975 echo "$as_me: error: cannot find input file: $f" >&2;}
15976    { (exit 1); exit 1; }; }
15977          fi;;
15978       esac
15979     done` || { (exit 1); exit 1; }
15980   # Remove the trailing spaces.
15981   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
15982
15983 _ACEOF
15984
15985 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15986 # `conftest.undefs', that substitutes the proper values into
15987 # config.h.in to produce config.h.  The first handles `#define'
15988 # templates, and the second `#undef' templates.
15989 # And first: Protect against being on the right side of a sed subst in
15990 # config.status.  Protect against being in an unquoted here document
15991 # in config.status.
15992 rm -f conftest.defines conftest.undefs
15993 # Using a here document instead of a string reduces the quoting nightmare.
15994 # Putting comments in sed scripts is not portable.
15995 #
15996 # `end' is used to avoid that the second main sed command (meant for
15997 # 0-ary CPP macros) applies to n-ary macro definitions.
15998 # See the Autoconf documentation for `clear'.
15999 cat >confdef2sed.sed <<\_ACEOF
16000 s/[\\&,]/\\&/g
16001 s,[\\$`],\\&,g
16002 t clear
16003 : clear
16004 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16005 t end
16006 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16007 : end
16008 _ACEOF
16009 # If some macros were called several times there might be several times
16010 # the same #defines, which is useless.  Nevertheless, we may not want to
16011 # sort them, since we want the *last* AC-DEFINE to be honored.
16012 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16013 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16014 rm -f confdef2sed.sed
16015
16016 # This sed command replaces #undef with comments.  This is necessary, for
16017 # example, in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 cat >>conftest.undefs <<\_ACEOF
16020 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16021 _ACEOF
16022
16023 # Break up conftest.defines because some shells have a limit on the size
16024 # of here documents, and old seds have small limits too (100 cmds).
16025 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16026 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16027 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16028 echo '  :' >>$CONFIG_STATUS
16029 rm -f conftest.tail
16030 while grep . conftest.defines >/dev/null
16031 do
16032   # Write a limited-size here document to $tmp/defines.sed.
16033   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16034   # Speed up: don't consider the non `#define' lines.
16035   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
16036   # Work around the forget-to-reset-the-flag bug.
16037   echo 't clr' >>$CONFIG_STATUS
16038   echo ': clr' >>$CONFIG_STATUS
16039   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16040   echo 'CEOF
16041   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16042   rm -f $tmp/in
16043   mv $tmp/out $tmp/in
16044 ' >>$CONFIG_STATUS
16045   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16046   rm -f conftest.defines
16047   mv conftest.tail conftest.defines
16048 done
16049 rm -f conftest.defines
16050 echo '  fi # grep' >>$CONFIG_STATUS
16051 echo >>$CONFIG_STATUS
16052
16053 # Break up conftest.undefs because some shells have a limit on the size
16054 # of here documents, and old seds have small limits too (100 cmds).
16055 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16056 rm -f conftest.tail
16057 while grep . conftest.undefs >/dev/null
16058 do
16059   # Write a limited-size here document to $tmp/undefs.sed.
16060   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16061   # Speed up: don't consider the non `#undef'
16062   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16063   # Work around the forget-to-reset-the-flag bug.
16064   echo 't clr' >>$CONFIG_STATUS
16065   echo ': clr' >>$CONFIG_STATUS
16066   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16067   echo 'CEOF
16068   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16069   rm -f $tmp/in
16070   mv $tmp/out $tmp/in
16071 ' >>$CONFIG_STATUS
16072   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16073   rm -f conftest.undefs
16074   mv conftest.tail conftest.undefs
16075 done
16076 rm -f conftest.undefs
16077
16078 cat >>$CONFIG_STATUS <<\_ACEOF
16079   # Let's still pretend it is `configure' which instantiates (i.e., don't
16080   # use $as_me), people would be surprised to read:
16081   #    /* config.h.  Generated by config.status.  */
16082   if test x"$ac_file" = x-; then
16083     echo "/* Generated by configure.  */" >$tmp/config.h
16084   else
16085     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16086   fi
16087   cat $tmp/in >>$tmp/config.h
16088   rm -f $tmp/in
16089   if test x"$ac_file" != x-; then
16090     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16091       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16092 echo "$as_me: $ac_file is unchanged" >&6;}
16093     else
16094       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096          X"$ac_file" : 'X\(//\)[^/]' \| \
16097          X"$ac_file" : 'X\(//\)$' \| \
16098          X"$ac_file" : 'X\(/\)' \| \
16099          .     : '\(.\)' 2>/dev/null ||
16100 echo X"$ac_file" |
16101     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16102           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16103           /^X\(\/\/\)$/{ s//\1/; q; }
16104           /^X\(\/\).*/{ s//\1/; q; }
16105           s/.*/./; q'`
16106       { if $as_mkdir_p; then
16107     mkdir -p "$ac_dir"
16108   else
16109     as_dir="$ac_dir"
16110     as_dirs=
16111     while test ! -d "$as_dir"; do
16112       as_dirs="$as_dir $as_dirs"
16113       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16115          X"$as_dir" : 'X\(//\)[^/]' \| \
16116          X"$as_dir" : 'X\(//\)$' \| \
16117          X"$as_dir" : 'X\(/\)' \| \
16118          .     : '\(.\)' 2>/dev/null ||
16119 echo X"$as_dir" |
16120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16122           /^X\(\/\/\)$/{ s//\1/; q; }
16123           /^X\(\/\).*/{ s//\1/; q; }
16124           s/.*/./; q'`
16125     done
16126     test ! -n "$as_dirs" || mkdir $as_dirs
16127   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16129    { (exit 1); exit 1; }; }; }
16130
16131       rm -f $ac_file
16132       mv $tmp/config.h $ac_file
16133     fi
16134   else
16135     cat $tmp/config.h
16136     rm -f $tmp/config.h
16137   fi
16138 done
16139 _ACEOF
16140 cat >>$CONFIG_STATUS <<\_ACEOF
16141
16142 #
16143 # CONFIG_LINKS section.
16144 #
16145
16146 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16147   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16148   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16149
16150   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16151 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16152
16153   if test ! -r $srcdir/$ac_source; then
16154     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16155 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16156    { (exit 1); exit 1; }; }
16157   fi
16158   rm -f $ac_dest
16159
16160   # Make relative symlinks.
16161   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16162 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16163          X"$ac_dest" : 'X\(//\)[^/]' \| \
16164          X"$ac_dest" : 'X\(//\)$' \| \
16165          X"$ac_dest" : 'X\(/\)' \| \
16166          .     : '\(.\)' 2>/dev/null ||
16167 echo X"$ac_dest" |
16168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16169           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16170           /^X\(\/\/\)$/{ s//\1/; q; }
16171           /^X\(\/\).*/{ s//\1/; q; }
16172           s/.*/./; q'`
16173   { if $as_mkdir_p; then
16174     mkdir -p "$ac_dest_dir"
16175   else
16176     as_dir="$ac_dest_dir"
16177     as_dirs=
16178     while test ! -d "$as_dir"; do
16179       as_dirs="$as_dir $as_dirs"
16180       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16182          X"$as_dir" : 'X\(//\)[^/]' \| \
16183          X"$as_dir" : 'X\(//\)$' \| \
16184          X"$as_dir" : 'X\(/\)' \| \
16185          .     : '\(.\)' 2>/dev/null ||
16186 echo X"$as_dir" |
16187     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16188           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16189           /^X\(\/\/\)$/{ s//\1/; q; }
16190           /^X\(\/\).*/{ s//\1/; q; }
16191           s/.*/./; q'`
16192     done
16193     test ! -n "$as_dirs" || mkdir $as_dirs
16194   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
16195 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
16196    { (exit 1); exit 1; }; }; }
16197
16198   ac_builddir=.
16199
16200 if test "$ac_dest_dir" != .; then
16201   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16202   # A "../" for each directory in $ac_dir_suffix.
16203   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16204 else
16205   ac_dir_suffix= ac_top_builddir=
16206 fi
16207
16208 case $srcdir in
16209   .)  # No --srcdir option.  We are building in place.
16210     ac_srcdir=.
16211     if test -z "$ac_top_builddir"; then
16212        ac_top_srcdir=.
16213     else
16214        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16215     fi ;;
16216   [\\/]* | ?:[\\/]* )  # Absolute path.
16217     ac_srcdir=$srcdir$ac_dir_suffix;
16218     ac_top_srcdir=$srcdir ;;
16219   *) # Relative path.
16220     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16221     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16222 esac
16223
16224 # Do not use `cd foo && pwd` to compute absolute paths, because
16225 # the directories may not exist.
16226 case `pwd` in
16227 .) ac_abs_builddir="$ac_dest_dir";;
16228 *)
16229   case "$ac_dest_dir" in
16230   .) ac_abs_builddir=`pwd`;;
16231   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
16232   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
16233   esac;;
16234 esac
16235 case $ac_abs_builddir in
16236 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16237 *)
16238   case ${ac_top_builddir}. in
16239   .) ac_abs_top_builddir=$ac_abs_builddir;;
16240   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16241   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16242   esac;;
16243 esac
16244 case $ac_abs_builddir in
16245 .) ac_abs_srcdir=$ac_srcdir;;
16246 *)
16247   case $ac_srcdir in
16248   .) ac_abs_srcdir=$ac_abs_builddir;;
16249   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16250   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16251   esac;;
16252 esac
16253 case $ac_abs_builddir in
16254 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16255 *)
16256   case $ac_top_srcdir in
16257   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16258   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16259   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16260   esac;;
16261 esac
16262
16263
16264   case $srcdir in
16265   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16266       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16267   esac
16268
16269   # Try a symlink, then a hard link, then a copy.
16270   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16271     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
16272     cp -p $srcdir/$ac_source $ac_dest ||
16273     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
16274 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
16275    { (exit 1); exit 1; }; }
16276 done
16277 _ACEOF
16278 cat >>$CONFIG_STATUS <<\_ACEOF
16279
16280 #
16281 # CONFIG_COMMANDS section.
16282 #
16283 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16284   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16285   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16286   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16287 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288          X"$ac_dest" : 'X\(//\)[^/]' \| \
16289          X"$ac_dest" : 'X\(//\)$' \| \
16290          X"$ac_dest" : 'X\(/\)' \| \
16291          .     : '\(.\)' 2>/dev/null ||
16292 echo X"$ac_dest" |
16293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16294           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16295           /^X\(\/\/\)$/{ s//\1/; q; }
16296           /^X\(\/\).*/{ s//\1/; q; }
16297           s/.*/./; q'`
16298   { if $as_mkdir_p; then
16299     mkdir -p "$ac_dir"
16300   else
16301     as_dir="$ac_dir"
16302     as_dirs=
16303     while test ! -d "$as_dir"; do
16304       as_dirs="$as_dir $as_dirs"
16305       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16307          X"$as_dir" : 'X\(//\)[^/]' \| \
16308          X"$as_dir" : 'X\(//\)$' \| \
16309          X"$as_dir" : 'X\(/\)' \| \
16310          .     : '\(.\)' 2>/dev/null ||
16311 echo X"$as_dir" |
16312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16313           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16314           /^X\(\/\/\)$/{ s//\1/; q; }
16315           /^X\(\/\).*/{ s//\1/; q; }
16316           s/.*/./; q'`
16317     done
16318     test ! -n "$as_dirs" || mkdir $as_dirs
16319   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16321    { (exit 1); exit 1; }; }; }
16322
16323   ac_builddir=.
16324
16325 if test "$ac_dir" != .; then
16326   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16327   # A "../" for each directory in $ac_dir_suffix.
16328   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16329 else
16330   ac_dir_suffix= ac_top_builddir=
16331 fi
16332
16333 case $srcdir in
16334   .)  # No --srcdir option.  We are building in place.
16335     ac_srcdir=.
16336     if test -z "$ac_top_builddir"; then
16337        ac_top_srcdir=.
16338     else
16339        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16340     fi ;;
16341   [\\/]* | ?:[\\/]* )  # Absolute path.
16342     ac_srcdir=$srcdir$ac_dir_suffix;
16343     ac_top_srcdir=$srcdir ;;
16344   *) # Relative path.
16345     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16346     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16347 esac
16348
16349 # Do not use `cd foo && pwd` to compute absolute paths, because
16350 # the directories may not exist.
16351 case `pwd` in
16352 .) ac_abs_builddir="$ac_dir";;
16353 *)
16354   case "$ac_dir" in
16355   .) ac_abs_builddir=`pwd`;;
16356   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16357   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16358   esac;;
16359 esac
16360 case $ac_abs_builddir in
16361 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16362 *)
16363   case ${ac_top_builddir}. in
16364   .) ac_abs_top_builddir=$ac_abs_builddir;;
16365   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16366   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16367   esac;;
16368 esac
16369 case $ac_abs_builddir in
16370 .) ac_abs_srcdir=$ac_srcdir;;
16371 *)
16372   case $ac_srcdir in
16373   .) ac_abs_srcdir=$ac_abs_builddir;;
16374   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16375   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16376   esac;;
16377 esac
16378 case $ac_abs_builddir in
16379 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16380 *)
16381   case $ac_top_srcdir in
16382   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16383   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16384   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16385   esac;;
16386 esac
16387
16388
16389   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16390 echo "$as_me: executing $ac_dest commands" >&6;}
16391   case $ac_dest in
16392     default-1 ) am_indx=1
16393 for am_file in include/config.h gcj/libgcj-config.h; do
16394   case " $CONFIG_HEADERS " in
16395   *" $am_file "*)
16396     echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
16397     ;;
16398   esac
16399   am_indx=`expr "$am_indx" + 1`
16400 done ;;
16401     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
16402 case " $CONFIG_FILES " in
16403  *" Makefile "*)
16404    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
16405    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
16406    ;;
16407 esac
16408
16409 # Make subdirectories and `.d' files.  Look in both srcdir and
16410 # builddir for the .java files.
16411 h=`${PWDCMD-pwd}`
16412 : > deps.mk
16413 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
16414   find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
16415    fgrep -v testsuite | \
16416    sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
16417    while read f; do
16418       echo "include $f" >> deps.mk
16419       test -f $f || {
16420          d=`echo $f | sed -e 's,/[^/]*$,,'`
16421          if test ! -d $d; then
16422            $libgcj_basedir/../mkinstalldirs $d
16423          fi;
16424          echo > $f
16425       }
16426    done
16427  ;;
16428   esac
16429 done
16430 _ACEOF
16431
16432 cat >>$CONFIG_STATUS <<\_ACEOF
16433
16434 { (exit 0); exit 0; }
16435 _ACEOF
16436 chmod +x $CONFIG_STATUS
16437 ac_clean_files=$ac_clean_files_save
16438
16439
16440 # configure is writing to config.log, and then calls config.status.
16441 # config.status does its own redirection, appending to config.log.
16442 # Unfortunately, on DOS this fails, as config.log is still kept open
16443 # by configure, so config.status won't be able to write to it; its
16444 # output is simply discarded.  So we exec the FD to /dev/null,
16445 # effectively closing config.log, so it can be properly (re)opened and
16446 # appended to by config.status.  When coming back to configure, we
16447 # need to make the FD available again.
16448 if test "$no_create" != yes; then
16449   ac_cs_success=:
16450   ac_config_status_args=
16451   test "$silent" = yes &&
16452     ac_config_status_args="$ac_config_status_args --quiet"
16453   exec 5>/dev/null
16454   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16455   exec 5>>config.log
16456   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16457   # would make configure fail if this is the last instruction.
16458   $ac_cs_success || { (exit 1); exit 1; }
16459 fi
16460
16461 #
16462 # CONFIG_SUBDIRS section.
16463 #
16464 if test "$no_recursion" != yes; then
16465
16466   # Remove --cache-file and --srcdir arguments so they do not pile up.
16467   ac_sub_configure_args=
16468   ac_prev=
16469   for ac_arg in $ac_configure_args; do
16470     if test -n "$ac_prev"; then
16471       ac_prev=
16472       continue
16473     fi
16474     case $ac_arg in
16475     -cache-file | --cache-file | --cache-fil | --cache-fi \
16476     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16477       ac_prev=cache_file ;;
16478     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16479     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16480     | --c=*)
16481       ;;
16482     --config-cache | -C)
16483       ;;
16484     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16485       ac_prev=srcdir ;;
16486     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16487       ;;
16488     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16489       ac_prev=prefix ;;
16490     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16491       ;;
16492     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16493     esac
16494   done
16495
16496   # Always prepend --prefix to ensure using the same prefix
16497   # in subdir configurations.
16498   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16499
16500   ac_popdir=`pwd`
16501   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16502
16503     # Do not complain, so a configure script can configure whichever
16504     # parts of a large source tree are present.
16505     test -d $srcdir/$ac_dir || continue
16506
16507     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16508 echo "$as_me: configuring in $ac_dir" >&6;}
16509     { if $as_mkdir_p; then
16510     mkdir -p "$ac_dir"
16511   else
16512     as_dir="$ac_dir"
16513     as_dirs=
16514     while test ! -d "$as_dir"; do
16515       as_dirs="$as_dir $as_dirs"
16516       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16518          X"$as_dir" : 'X\(//\)[^/]' \| \
16519          X"$as_dir" : 'X\(//\)$' \| \
16520          X"$as_dir" : 'X\(/\)' \| \
16521          .     : '\(.\)' 2>/dev/null ||
16522 echo X"$as_dir" |
16523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16524           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16525           /^X\(\/\/\)$/{ s//\1/; q; }
16526           /^X\(\/\).*/{ s//\1/; q; }
16527           s/.*/./; q'`
16528     done
16529     test ! -n "$as_dirs" || mkdir $as_dirs
16530   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16531 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16532    { (exit 1); exit 1; }; }; }
16533
16534     ac_builddir=.
16535
16536 if test "$ac_dir" != .; then
16537   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16538   # A "../" for each directory in $ac_dir_suffix.
16539   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16540 else
16541   ac_dir_suffix= ac_top_builddir=
16542 fi
16543
16544 case $srcdir in
16545   .)  # No --srcdir option.  We are building in place.
16546     ac_srcdir=.
16547     if test -z "$ac_top_builddir"; then
16548        ac_top_srcdir=.
16549     else
16550        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16551     fi ;;
16552   [\\/]* | ?:[\\/]* )  # Absolute path.
16553     ac_srcdir=$srcdir$ac_dir_suffix;
16554     ac_top_srcdir=$srcdir ;;
16555   *) # Relative path.
16556     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16557     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16558 esac
16559
16560 # Do not use `cd foo && pwd` to compute absolute paths, because
16561 # the directories may not exist.
16562 case `pwd` in
16563 .) ac_abs_builddir="$ac_dir";;
16564 *)
16565   case "$ac_dir" in
16566   .) ac_abs_builddir=`pwd`;;
16567   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16568   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16569   esac;;
16570 esac
16571 case $ac_abs_builddir in
16572 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16573 *)
16574   case ${ac_top_builddir}. in
16575   .) ac_abs_top_builddir=$ac_abs_builddir;;
16576   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16577   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16578   esac;;
16579 esac
16580 case $ac_abs_builddir in
16581 .) ac_abs_srcdir=$ac_srcdir;;
16582 *)
16583   case $ac_srcdir in
16584   .) ac_abs_srcdir=$ac_abs_builddir;;
16585   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16586   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16587   esac;;
16588 esac
16589 case $ac_abs_builddir in
16590 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16591 *)
16592   case $ac_top_srcdir in
16593   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16594   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16595   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16596   esac;;
16597 esac
16598
16599
16600     cd $ac_dir
16601
16602     # Check for guested configure; otherwise get Cygnus style configure.
16603     if test -f $ac_srcdir/configure.gnu; then
16604       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16605     elif test -f $ac_srcdir/configure; then
16606       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16607     elif test -f $ac_srcdir/configure.in; then
16608       ac_sub_configure=$ac_configure
16609     else
16610       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16612       ac_sub_configure=
16613     fi
16614
16615     # The recursion is here.
16616     if test -n "$ac_sub_configure"; then
16617       # Make the cache file name correct relative to the subdirectory.
16618       case $cache_file in
16619       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16620       *) # Relative path.
16621         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
16622       esac
16623
16624       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16625 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16626       # The eval makes quoting arguments work.
16627       eval $ac_sub_configure $ac_sub_configure_args \
16628            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16629         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16630 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16631    { (exit 1); exit 1; }; }
16632     fi
16633
16634     cd $ac_popdir
16635   done
16636 fi
16637