OSDN Git Service

2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com>
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --disable-dependency-tracking  speeds up one-time build
857   --enable-dependency-tracking   do not reject slow dependency extractors
858   --enable-maintainer-mode  enable make rules and dependencies not useful
859                           (and sometimes confusing) to the casual installer
860   --enable-shared=PKGS  build shared libraries default=yes
861   --enable-static=PKGS  build static libraries default=yes
862   --enable-fast-install=PKGS  optimize for fast installation default=yes
863   --disable-libtool-lock  avoid locking (might break parallel builds)
864   --disable-getenv-properties
865                           don't set system properties from GCJ_PROPERTIES
866   --enable-hash-synchronization
867                           use global hash table for monitor locks
868   --enable-libgcj-multifile
869                  allow compilation of several files at once
870
871   --enable-libgcj-debug   enable runtime debugging code
872   --enable-gc-debug       include full support for pointer backtracing etc.
873   --enable-interpreter    enable interpreter
874   --enable-sjlj-exceptions
875                           force use of builtin_setjmp for exceptions
876   --disable-java-net      disable java.net
877   --disable-jvmpi         disable JVMPI support
878   --enable-java-awt       list of AWT peer implementations to be built
879   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881   --disable-rpath         do not hardcode runtime library paths
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886   --with-target-subdir=SUBDIR
887                           configure in a subdirectory
888   --with-cross-host=HOST  configure with a cross compiler from HOST
889   --with-newlib           configure with newlib
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-pic              try to use only PIC/non-PIC objects default=use both
892   --with-java-home=DIRECTORY
893                           value of java.home system property
894   --with-win32-nlsapi=ansi or unicows or unicode
895                           native MinGW libgcj Win32 OS API (default is ansi)
896   --without-libffi        don't use libffi
897   --with-ecos             enable runtime eCos target support
898   --with-system-zlib      use installed libz
899   --with-x                use the X Window System
900   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
901   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
902
903 Some influential environment variables:
904   CC          C compiler command
905   CFLAGS      C compiler flags
906   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
907               nonstandard directory <lib dir>
908   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
909               headers in a nonstandard directory <include dir>
910   CXX         C++ compiler command
911   CXXFLAGS    C++ compiler flags
912   CXXCPP      C++ preprocessor
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957   case "$ac_dir" in
958   .) ac_abs_builddir=`pwd`;;
959   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960   *) ac_abs_builddir=`pwd`/"$ac_dir";;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966   case ${ac_top_builddir}. in
967   .) ac_abs_top_builddir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975   case $ac_srcdir in
976   .) ac_abs_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979   esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984   case $ac_top_srcdir in
985   .) ac_abs_top_srcdir=$ac_abs_builddir;;
986   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988   esac;;
989 esac
990
991     cd $ac_dir
992     # Check for guested configure; otherwise get Cygnus style configure.
993     if test -f $ac_srcdir/configure.gnu; then
994       echo
995       $SHELL $ac_srcdir/configure.gnu  --help=recursive
996     elif test -f $ac_srcdir/configure; then
997       echo
998       $SHELL $ac_srcdir/configure  --help=recursive
999     elif test -f $ac_srcdir/configure.ac ||
1000            test -f $ac_srcdir/configure.in; then
1001       echo
1002       $ac_configure --help
1003     else
1004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005     fi
1006     cd $ac_popdir
1007   done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012   cat <<\_ACEOF
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1015
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ac_aux_dir=
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368   if test -f $ac_dir/install-sh; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/install-sh -c"
1371     break
1372   elif test -f $ac_dir/install.sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install.sh -c"
1375     break
1376   elif test -f $ac_dir/shtool; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/shtool install -c"
1379     break
1380   fi
1381 done
1382 if test -z "$ac_aux_dir"; then
1383   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404   ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408    { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1417 build=$ac_cv_build
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423  case ${build_alias} in
1424   "") build_noncanonical=${build} ;;
1425   *) build_noncanonical=${build_alias} ;;
1426 esac
1427
1428  case ${host_alias} in
1429   "") host_noncanonical=${build_noncanonical} ;;
1430   *) host_noncanonical=${host_alias} ;;
1431 esac
1432
1433  case ${target_alias} in
1434   "") target_noncanonical=${host_noncanonical} ;;
1435   *) target_noncanonical=${target_alias} ;;
1436 esac
1437
1438   # Prefix 'build-' so this never conflicts with target_subdir.
1439 build_subdir="build-${build_noncanonical}"
1440 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1441 if ( test $srcdir = . && test -d gcc ) \
1442    || test -d $srcdir/../host-${host_noncanonical}; then
1443   host_subdir="host-${host_noncanonical}"
1444 else
1445   host_subdir=.
1446 fi
1447 # No prefix.
1448 target_subdir=${target_noncanonical}
1449
1450
1451 # We use these options to decide which functions to include.
1452
1453 # Check whether --with-target-subdir or --without-target-subdir was given.
1454 if test "${with_target_subdir+set}" = set; then
1455   withval="$with_target_subdir"
1456
1457 fi;
1458
1459 # We may get other options which we don't document:
1460 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461
1462 # When building with srcdir == objdir, links to the source files will
1463 # be created in directories within the target_subdir.  We have to
1464 # adjust toplevel_srcdir accordingly, so that configure finds
1465 # install-sh and other auxiliary files that live in the top-level
1466 # source directory.
1467 if test "${srcdir}" = "."; then
1468   if test -z "${with_target_subdir}"; then
1469     toprel=".."
1470   else
1471     if test "${with_target_subdir}" != "."; then
1472       toprel="${with_multisrctop}../.."
1473     else
1474       toprel="${with_multisrctop}.."
1475     fi
1476   fi
1477 else
1478   toprel=".."
1479 fi
1480
1481 libgcj_basedir=$srcdir/$toprel/./libjava
1482
1483
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491   ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1500 host=$ac_cv_host
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513   ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531   test "$program_prefix$program_suffix$program_transform_name" = \
1532     NONENONEs,x,x, &&
1533   program_prefix=${target_alias}-
1534  case ${build_alias} in
1535   "") build_noncanonical=${build} ;;
1536   *) build_noncanonical=${build_alias} ;;
1537 esac
1538
1539  case ${target_alias} in
1540   "") target_noncanonical=${host_noncanonical} ;;
1541   *) target_noncanonical=${target_alias} ;;
1542 esac
1543
1544
1545
1546
1547 # This works around the fact that libtool configuration may change LD
1548 # for this particular configuration, but some shells, instead of
1549 # keeping the changes in LD private, export them just because LD is
1550 # exported.
1551 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552
1553 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1555 LN_S=$as_ln_s
1556 if test "$LN_S" = "ln -s"; then
1557   echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1561 echo "${ECHO_T}no, using $LN_S" >&6
1562 fi
1563
1564
1565 # This works around an automake problem.
1566 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567
1568
1569
1570 # Check whether --with-cross-host or --without-cross-host was given.
1571 if test "${with_cross_host+set}" = set; then
1572   withval="$with_cross_host"
1573
1574 fi;
1575
1576
1577 # Check whether --with-newlib or --without-newlib was given.
1578 if test "${with_newlib+set}" = set; then
1579   withval="$with_newlib"
1580
1581 fi;
1582
1583 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1584 if test "${enable_version_specific_runtime_libs+set}" = set; then
1585   enableval="$enable_version_specific_runtime_libs"
1586   case "$enableval" in
1587       yes) version_specific_libs=yes ;;
1588       no)  version_specific_libs=no ;;
1589       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1590 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1591    { (exit 1); exit 1; }; };;
1592      esac
1593 else
1594   version_specific_libs=no
1595
1596 fi;
1597
1598 # Default to --enable-multilib
1599 # Check whether --enable-multilib or --disable-multilib was given.
1600 if test "${enable_multilib+set}" = set; then
1601   enableval="$enable_multilib"
1602   case "${enableval}" in
1603   yes) multilib=yes ;;
1604   no)  multilib=no ;;
1605   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1606 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1607    { (exit 1); exit 1; }; } ;;
1608  esac
1609 else
1610   multilib=yes
1611 fi;
1612 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1613
1614
1615 # (1) We use an abnormal CXX (without library references), so we
1616 # must cache it under a different name.
1617 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1618 # the non-multilib-adjusted value will be used in multilibs.
1619 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1620 # (4) As another side effect, automake doesn't automatically include them
1621 # in Makefile.in.
1622 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1623 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1624 # used in later tests.  This may not be necessary in libjava; I don't know.
1625
1626
1627
1628 save_CXXFLAGS="$CXXFLAGS"
1629 CXXFLAGS="$CXXFLAGS -fno-builtin"
1630 ac_ext=c
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$CC"; then
1644   ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 fi
1672 if test -z "$ac_cv_prog_CC"; then
1673   ac_ct_CC=$CC
1674   # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$ac_ct_CC"; then
1682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_ac_ct_CC="gcc"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709   CC=$ac_ct_CC
1710 else
1711   CC="$ac_cv_prog_CC"
1712 fi
1713
1714 if test -z "$CC"; then
1715   if test -n "$ac_tool_prefix"; then
1716   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729   IFS=$as_save_IFS
1730   test -z "$as_dir" && as_dir=.
1731   for ac_exec_ext in '' $ac_executable_extensions; do
1732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733     ac_cv_prog_CC="${ac_tool_prefix}cc"
1734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735     break 2
1736   fi
1737 done
1738 done
1739
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$ac_cv_prog_CC"; then
1753   ac_ct_CC=$CC
1754   # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   if test -n "$ac_ct_CC"; then
1762   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767   IFS=$as_save_IFS
1768   test -z "$as_dir" && as_dir=.
1769   for ac_exec_ext in '' $ac_executable_extensions; do
1770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771     ac_cv_prog_ac_ct_CC="cc"
1772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773     break 2
1774   fi
1775 done
1776 done
1777
1778 fi
1779 fi
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1784 else
1785   echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 fi
1788
1789   CC=$ac_ct_CC
1790 else
1791   CC="$ac_cv_prog_CC"
1792 fi
1793
1794 fi
1795 if test -z "$CC"; then
1796   # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$CC"; then
1804   ac_cv_prog_CC="$CC" # Let the user override the test.
1805 else
1806   ac_prog_rejected=no
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815        ac_prog_rejected=yes
1816        continue
1817      fi
1818     ac_cv_prog_CC="cc"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 if test $ac_prog_rejected = yes; then
1826   # We found a bogon in the path, so make sure we never use it.
1827   set dummy $ac_cv_prog_CC
1828   shift
1829   if test $# != 0; then
1830     # We chose a different compiler from the bogus one.
1831     # However, it has the same basename, so the bogon will be chosen
1832     # first if we set CC to just the basename; use the full file name.
1833     shift
1834     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1835   fi
1836 fi
1837 fi
1838 fi
1839 CC=$ac_cv_prog_CC
1840 if test -n "$CC"; then
1841   echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 fi
1849 if test -z "$CC"; then
1850   if test -n "$ac_tool_prefix"; then
1851   for ac_prog in cl
1852   do
1853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$CC"; then
1861   ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 CC=$ac_cv_prog_CC
1880 if test -n "$CC"; then
1881   echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888     test -n "$CC" && break
1889   done
1890 fi
1891 if test -z "$CC"; then
1892   ac_ct_CC=$CC
1893   for ac_prog in cl
1894 do
1895   # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$ac_ct_CC"; then
1903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_ac_ct_CC="$ac_prog"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930   test -n "$ac_ct_CC" && break
1931 done
1932
1933   CC=$ac_ct_CC
1934 fi
1935
1936 fi
1937
1938
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943    { (exit 1); exit 1; }; }
1944
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947      "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950   (eval $ac_compiler --version </dev/null >&5) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955   (eval $ac_compiler -v </dev/null >&5) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960   (eval $ac_compiler -V </dev/null >&5) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }
1964
1965 cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 # FIXME: Cleanup?
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982   (eval $ac_link) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   gcc_no_link=no
1987 else
1988   gcc_no_link=yes
1989 fi
1990
1991 if test x$gcc_no_link = xyes; then
1992   # Setting cross_compile will disable run tests; it will
1993   # also disable AC_CHECK_FILE but that's generally
1994   # correct if we can't link.
1995   cross_compiling=yes
1996   EXEEXT=
1997 else
1998   cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h.  */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h.  */
2004
2005 int
2006 main ()
2007 {
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 ac_clean_files_save=$ac_clean_files
2014 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2015 # Try to create an executable without -o first, disregard a.out.
2016 # It will help us diagnose broken compilers, and finding out an intuition
2017 # of exeext.
2018 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2019 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2020 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2021 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2022   (eval $ac_link_default) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   # Find the output, starting from the most likely.  This scheme is
2027 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2028 # resort.
2029
2030 # Be careful to initialize this variable, since it used to be cached.
2031 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2032 ac_cv_exeext=
2033 # b.out is created by i960 compilers.
2034 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 do
2036   test -f "$ac_file" || continue
2037   case $ac_file in
2038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039         ;;
2040     conftest.$ac_ext )
2041         # This is the source file.
2042         ;;
2043     [ab].out )
2044         # We found the default executable, but exeext='' is most
2045         # certainly right.
2046         break;;
2047     *.* )
2048         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049         # FIXME: I believe we export ac_cv_exeext for Libtool,
2050         # but it would be cool to find out if it's true.  Does anybody
2051         # maintain Libtool? --akim.
2052         export ac_cv_exeext
2053         break;;
2054     * )
2055         break;;
2056   esac
2057 done
2058 else
2059   echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&2;}
2066    { (exit 77); exit 77; }; }
2067 fi
2068
2069 ac_exeext=$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_file" >&5
2071 echo "${ECHO_T}$ac_file" >&6
2072
2073 # Check the compiler produces executables we can run.  If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2078 # If not cross compiling, check that we can run a simple program.
2079 if test "$cross_compiling" != yes; then
2080   if { ac_try='./$ac_file'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086     cross_compiling=no
2087   else
2088     if test "$cross_compiling" = maybe; then
2089         cross_compiling=yes
2090     else
2091         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098     fi
2099   fi
2100 fi
2101 echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6
2103
2104 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2105 ac_clean_files=$ac_clean_files_save
2106 # Check the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2109 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2110 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2111 echo "${ECHO_T}$cross_compiling" >&6
2112
2113 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2114 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116   (eval $ac_link) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; then
2120   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2121 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2122 # work properly (i.e., refer to `conftest.exe'), while it won't with
2123 # `rm'.
2124 for ac_file in conftest.exe conftest conftest.*; do
2125   test -f "$ac_file" || continue
2126   case $ac_file in
2127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2128     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129           export ac_cv_exeext
2130           break;;
2131     * ) break;;
2132   esac
2133 done
2134 else
2135   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&2;}
2139    { (exit 1); exit 1; }; }
2140 fi
2141
2142 rm -f conftest$ac_cv_exeext
2143 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2144 echo "${ECHO_T}$ac_cv_exeext" >&6
2145
2146 rm -f conftest.$ac_ext
2147 EXEEXT=$ac_cv_exeext
2148 ac_exeext=$EXEEXT
2149 fi
2150 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152 if test "${ac_cv_objext+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172   (eval $ac_compile) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180        break;;
2181   esac
2182 done
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190 See \`config.log' for more details." >&2;}
2191    { (exit 1); exit 1; }; }
2192 fi
2193
2194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 fi
2196 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197 echo "${ECHO_T}$ac_cv_objext" >&6
2198 OBJEXT=$ac_cv_objext
2199 ac_objext=$OBJEXT
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211
2212 int
2213 main ()
2214 {
2215 #ifndef __GNUC__
2216        choke me
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>conftest.er1
2226   ac_status=$?
2227   grep -v '^ *+' conftest.er1 >conftest.err
2228   rm -f conftest.er1
2229   cat conftest.err >&5
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); } &&
2232          { ac_try='test -z "$ac_c_werror_flag"
2233                          || test ! -s conftest.err'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; } &&
2239          { ac_try='test -s conftest.$ac_objext'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245   ac_compiler_gnu=yes
2246 else
2247   echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_compiler_gnu=no
2251 fi
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2254
2255 fi
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2261 CFLAGS="-g"
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265   echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267   cat >conftest.$ac_ext <<_ACEOF
2268 /* confdefs.h.  */
2269 _ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h.  */
2273
2274 int
2275 main ()
2276 {
2277
2278   ;
2279   return 0;
2280 }
2281 _ACEOF
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284   (eval $ac_compile) 2>conftest.er1
2285   ac_status=$?
2286   grep -v '^ *+' conftest.er1 >conftest.err
2287   rm -f conftest.er1
2288   cat conftest.err >&5
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); } &&
2291          { ac_try='test -z "$ac_c_werror_flag"
2292                          || test ! -s conftest.err'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; } &&
2298          { ac_try='test -s conftest.$ac_objext'
2299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300   (eval $ac_try) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); }; }; then
2304   ac_cv_prog_cc_g=yes
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 ac_cv_prog_cc_g=no
2310 fi
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312 fi
2313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315 if test "$ac_test_CFLAGS" = set; then
2316   CFLAGS=$ac_save_CFLAGS
2317 elif test $ac_cv_prog_cc_g = yes; then
2318   if test "$GCC" = yes; then
2319     CFLAGS="-g -O2"
2320   else
2321     CFLAGS="-g"
2322   fi
2323 else
2324   if test "$GCC" = yes; then
2325     CFLAGS="-O2"
2326   else
2327     CFLAGS=
2328   fi
2329 fi
2330 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333   echo $ECHO_N "(cached) $ECHO_C" >&6
2334 else
2335   ac_cv_prog_cc_stdc=no
2336 ac_save_CC=$CC
2337 cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343 #include <stdarg.h>
2344 #include <stdio.h>
2345 #include <sys/types.h>
2346 #include <sys/stat.h>
2347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2348 struct buf { int x; };
2349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350 static char *e (p, i)
2351      char **p;
2352      int i;
2353 {
2354   return p[i];
2355 }
2356 static char *f (char * (*g) (char **, int), char **p, ...)
2357 {
2358   char *s;
2359   va_list v;
2360   va_start (v,p);
2361   s = g (p, va_arg (v,int));
2362   va_end (v);
2363   return s;
2364 }
2365
2366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2367    function prototypes and stuff, but not '\xHH' hex character constants.
2368    These don't provoke an error unfortunately, instead are silently treated
2369    as 'x'.  The following induces an error, until -std1 is added to get
2370    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2371    array size at least.  It's necessary to write '\x00'==0 to get something
2372    that's true only with -std1.  */
2373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2374
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2379 int argc;
2380 char **argv;
2381 int
2382 main ()
2383 {
2384 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2385   ;
2386   return 0;
2387 }
2388 _ACEOF
2389 # Don't try gcc -ansi; that turns off useful extensions and
2390 # breaks some systems' header files.
2391 # AIX                   -qlanglvl=ansi
2392 # Ultrix and OSF/1      -std1
2393 # HP-UX 10.20 and later -Ae
2394 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2395 # SVR4                  -Xc -D__EXTENSIONS__
2396 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2397 do
2398   CC="$ac_save_CC $ac_arg"
2399   rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401   (eval $ac_compile) 2>conftest.er1
2402   ac_status=$?
2403   grep -v '^ *+' conftest.er1 >conftest.err
2404   rm -f conftest.er1
2405   cat conftest.err >&5
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); } &&
2408          { ac_try='test -z "$ac_c_werror_flag"
2409                          || test ! -s conftest.err'
2410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411   (eval $ac_try) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_prog_cc_stdc=$ac_arg
2422 break
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 fi
2428 rm -f conftest.err conftest.$ac_objext
2429 done
2430 rm -f conftest.$ac_ext conftest.$ac_objext
2431 CC=$ac_save_CC
2432
2433 fi
2434
2435 case "x$ac_cv_prog_cc_stdc" in
2436   x|xno)
2437     echo "$as_me:$LINENO: result: none needed" >&5
2438 echo "${ECHO_T}none needed" >&6 ;;
2439   *)
2440     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442     CC="$CC $ac_cv_prog_cc_stdc" ;;
2443 esac
2444
2445 # Some people use a C++ compiler to compile C.  Since we use `exit',
2446 # in C++ we need to declare it.  In case someone uses the same compiler
2447 # for both compiling C and C++ we need to have the C++ compiler decide
2448 # the declaration of exit, since it's the most demanding environment.
2449 cat >conftest.$ac_ext <<_ACEOF
2450 #ifndef __cplusplus
2451   choke me
2452 #endif
2453 _ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456   (eval $ac_compile) 2>conftest.er1
2457   ac_status=$?
2458   grep -v '^ *+' conftest.er1 >conftest.err
2459   rm -f conftest.er1
2460   cat conftest.err >&5
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); } &&
2463          { ac_try='test -z "$ac_c_werror_flag"
2464                          || test ! -s conftest.err'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; }; then
2476   for ac_declaration in \
2477    '' \
2478    'extern "C" void std::exit (int) throw (); using std::exit;' \
2479    'extern "C" void std::exit (int); using std::exit;' \
2480    'extern "C" void exit (int) throw ();' \
2481    'extern "C" void exit (int);' \
2482    'void exit (int);'
2483 do
2484   cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h.  */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h.  */
2490 $ac_declaration
2491 #include <stdlib.h>
2492 int
2493 main ()
2494 {
2495 exit (42);
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502   (eval $ac_compile) 2>conftest.er1
2503   ac_status=$?
2504   grep -v '^ *+' conftest.er1 >conftest.err
2505   rm -f conftest.er1
2506   cat conftest.err >&5
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); } &&
2509          { ac_try='test -z "$ac_c_werror_flag"
2510                          || test ! -s conftest.err'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; } &&
2516          { ac_try='test -s conftest.$ac_objext'
2517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518   (eval $ac_try) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; }; then
2522   :
2523 else
2524   echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2526
2527 continue
2528 fi
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530   cat >conftest.$ac_ext <<_ACEOF
2531 /* confdefs.h.  */
2532 _ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h.  */
2536 $ac_declaration
2537 int
2538 main ()
2539 {
2540 exit (42);
2541   ;
2542   return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547   (eval $ac_compile) 2>conftest.er1
2548   ac_status=$?
2549   grep -v '^ *+' conftest.er1 >conftest.err
2550   rm -f conftest.er1
2551   cat conftest.err >&5
2552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553   (exit $ac_status); } &&
2554          { ac_try='test -z "$ac_c_werror_flag"
2555                          || test ! -s conftest.err'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; } &&
2561          { ac_try='test -s conftest.$ac_objext'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567   break
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 done
2575 rm -f conftest*
2576 if test -n "$ac_declaration"; then
2577   echo '#ifdef __cplusplus' >>confdefs.h
2578   echo $ac_declaration      >>confdefs.h
2579   echo '#endif'             >>confdefs.h
2580 fi
2581
2582 else
2583   echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2585
2586 fi
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593
2594 ac_ext=cc
2595 ac_cpp='$CXXCPP $CPPFLAGS'
2596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601   do
2602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2607   echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609   if test -n "$CXX"; then
2610   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615   IFS=$as_save_IFS
2616   test -z "$as_dir" && as_dir=.
2617   for ac_exec_ext in '' $ac_executable_extensions; do
2618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621     break 2
2622   fi
2623 done
2624 done
2625
2626 fi
2627 fi
2628 CXX=$glibcxx_cv_prog_CXX
2629 if test -n "$CXX"; then
2630   echo "$as_me:$LINENO: result: $CXX" >&5
2631 echo "${ECHO_T}$CXX" >&6
2632 else
2633   echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2635 fi
2636
2637     test -n "$CXX" && break
2638   done
2639 fi
2640 if test -z "$CXX"; then
2641   ac_ct_CXX=$CXX
2642   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2643 do
2644   # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   if test -n "$ac_ct_CXX"; then
2652   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657   IFS=$as_save_IFS
2658   test -z "$as_dir" && as_dir=.
2659   for ac_exec_ext in '' $ac_executable_extensions; do
2660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661     ac_cv_prog_ac_ct_CXX="$ac_prog"
2662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663     break 2
2664   fi
2665 done
2666 done
2667
2668 fi
2669 fi
2670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2671 if test -n "$ac_ct_CXX"; then
2672   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2673 echo "${ECHO_T}$ac_ct_CXX" >&6
2674 else
2675   echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2677 fi
2678
2679   test -n "$ac_ct_CXX" && break
2680 done
2681 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2682
2683   CXX=$ac_ct_CXX
2684 fi
2685
2686
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO:" \
2689      "checking for C++ compiler version" >&5
2690 ac_compiler=`set X $ac_compile; echo $2`
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2692   (eval $ac_compiler --version </dev/null >&5) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2697   (eval $ac_compiler -v </dev/null >&5) 2>&5
2698   ac_status=$?
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); }
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2702   (eval $ac_compiler -V </dev/null >&5) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }
2706
2707 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h.  */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h.  */
2718
2719 int
2720 main ()
2721 {
2722 #ifndef __GNUC__
2723        choke me
2724 #endif
2725
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732   (eval $ac_compile) 2>conftest.er1
2733   ac_status=$?
2734   grep -v '^ *+' conftest.er1 >conftest.err
2735   rm -f conftest.er1
2736   cat conftest.err >&5
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); } &&
2739          { ac_try='test -z "$ac_cxx_werror_flag"
2740                          || test ! -s conftest.err'
2741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742   (eval $ac_try) 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; }; then
2752   ac_compiler_gnu=yes
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757 ac_compiler_gnu=no
2758 fi
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2761
2762 fi
2763 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2765 GXX=`test $ac_compiler_gnu = yes && echo yes`
2766 ac_test_CXXFLAGS=${CXXFLAGS+set}
2767 ac_save_CXXFLAGS=$CXXFLAGS
2768 CXXFLAGS="-g"
2769 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2771 if test "${ac_cv_prog_cxx_g+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780
2781 int
2782 main ()
2783 {
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791   (eval $ac_compile) 2>conftest.er1
2792   ac_status=$?
2793   grep -v '^ *+' conftest.er1 >conftest.err
2794   rm -f conftest.er1
2795   cat conftest.err >&5
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -z "$ac_cxx_werror_flag"
2799                          || test ! -s conftest.err'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; } &&
2805          { ac_try='test -s conftest.$ac_objext'
2806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807   (eval $ac_try) 2>&5
2808   ac_status=$?
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); }; }; then
2811   ac_cv_prog_cxx_g=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816 ac_cv_prog_cxx_g=no
2817 fi
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 fi
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2822 if test "$ac_test_CXXFLAGS" = set; then
2823   CXXFLAGS=$ac_save_CXXFLAGS
2824 elif test $ac_cv_prog_cxx_g = yes; then
2825   if test "$GXX" = yes; then
2826     CXXFLAGS="-g -O2"
2827   else
2828     CXXFLAGS="-g"
2829   fi
2830 else
2831   if test "$GXX" = yes; then
2832     CXXFLAGS="-O2"
2833   else
2834     CXXFLAGS=
2835   fi
2836 fi
2837 for ac_declaration in \
2838    '' \
2839    'extern "C" void std::exit (int) throw (); using std::exit;' \
2840    'extern "C" void std::exit (int); using std::exit;' \
2841    'extern "C" void exit (int) throw ();' \
2842    'extern "C" void exit (int);' \
2843    'void exit (int);'
2844 do
2845   cat >conftest.$ac_ext <<_ACEOF
2846 /* confdefs.h.  */
2847 _ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h.  */
2851 $ac_declaration
2852 #include <stdlib.h>
2853 int
2854 main ()
2855 {
2856 exit (42);
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_cxx_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   :
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 continue
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891   cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897 $ac_declaration
2898 int
2899 main ()
2900 {
2901 exit (42);
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908   (eval $ac_compile) 2>conftest.er1
2909   ac_status=$?
2910   grep -v '^ *+' conftest.er1 >conftest.err
2911   rm -f conftest.er1
2912   cat conftest.err >&5
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -z "$ac_cxx_werror_flag"
2916                          || test ! -s conftest.err'
2917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918   (eval $ac_try) 2>&5
2919   ac_status=$?
2920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921   (exit $ac_status); }; } &&
2922          { ac_try='test -s conftest.$ac_objext'
2923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924   (eval $ac_try) 2>&5
2925   ac_status=$?
2926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927   (exit $ac_status); }; }; then
2928   break
2929 else
2930   echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2932
2933 fi
2934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936 rm -f conftest*
2937 if test -n "$ac_declaration"; then
2938   echo '#ifdef __cplusplus' >>confdefs.h
2939   echo $ac_declaration      >>confdefs.h
2940   echo '#endif'             >>confdefs.h
2941 fi
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949 CXXFLAGS="$save_CXXFLAGS"
2950
2951
2952
2953
2954
2955 am__api_version="1.9"
2956 # Find a good install program.  We prefer a C program (faster),
2957 # so one script is as good as another.  But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2962 # AIX /bin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2971 if test -z "$INSTALL"; then
2972 if test "${ac_cv_path_install+set}" = set; then
2973   echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2977 do
2978   IFS=$as_save_IFS
2979   test -z "$as_dir" && as_dir=.
2980   # Account for people who put trailing slashes in PATH elements.
2981 case $as_dir/ in
2982   ./ | .// | /cC/* | \
2983   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2984   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2985   /usr/ucb/* ) ;;
2986   *)
2987     # OSF1 and SCO ODT 3.0 have their own names for install.
2988     # Don't use installbsd from OSF since it installs stuff as root
2989     # by default.
2990     for ac_prog in ginstall scoinst install; do
2991       for ac_exec_ext in '' $ac_executable_extensions; do
2992         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2993           if test $ac_prog = install &&
2994             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995             # AIX install.  It has an incompatible calling convention.
2996             :
2997           elif test $ac_prog = install &&
2998             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999             # program-specific install script used by HP pwplus--don't use.
3000             :
3001           else
3002             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003             break 3
3004           fi
3005         fi
3006       done
3007     done
3008     ;;
3009 esac
3010 done
3011
3012
3013 fi
3014   if test "${ac_cv_path_install+set}" = set; then
3015     INSTALL=$ac_cv_path_install
3016   else
3017     # As a last resort, use the slow shell script.  We don't cache a
3018     # path for INSTALL within a source directory, because that will
3019     # break other packages using the cache if that directory is
3020     # removed, or if the path is relative.
3021     INSTALL=$ac_install_sh
3022   fi
3023 fi
3024 echo "$as_me:$LINENO: result: $INSTALL" >&5
3025 echo "${ECHO_T}$INSTALL" >&6
3026
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3030
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3032
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3034
3035 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3036 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3037 # Just in case
3038 sleep 1
3039 echo timestamp > conftest.file
3040 # Do `set' in a subshell so we don't clobber the current shell's
3041 # arguments.  Must try -L first in case configure is actually a
3042 # symlink; some systems play weird games with the mod time of symlinks
3043 # (eg FreeBSD returns the mod time of the symlink's containing
3044 # directory).
3045 if (
3046    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3047    if test "$*" = "X"; then
3048       # -L didn't work.
3049       set X `ls -t $srcdir/configure conftest.file`
3050    fi
3051    rm -f conftest.file
3052    if test "$*" != "X $srcdir/configure conftest.file" \
3053       && test "$*" != "X conftest.file $srcdir/configure"; then
3054
3055       # If neither matched, then we have a broken ls.  This can happen
3056       # if, for instance, CONFIG_SHELL is bash and it inherits a
3057       # broken ls alias from the environment.  This has actually
3058       # happened.  Such a system could not be considered "sane".
3059       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3060 alias in your environment" >&5
3061 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3062 alias in your environment" >&2;}
3063    { (exit 1); exit 1; }; }
3064    fi
3065
3066    test "$2" = conftest.file
3067    )
3068 then
3069    # Ok.
3070    :
3071 else
3072    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3073 Check your system clock" >&5
3074 echo "$as_me: error: newly created file is older than distributed files!
3075 Check your system clock" >&2;}
3076    { (exit 1); exit 1; }; }
3077 fi
3078 echo "$as_me:$LINENO: result: yes" >&5
3079 echo "${ECHO_T}yes" >&6
3080 test "$program_prefix" != NONE &&
3081   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3085 # Double any \ or $.  echo might interpret backslashes.
3086 # By default was `s,x,x', remove it if useless.
3087 cat <<\_ACEOF >conftest.sed
3088 s/[\\$]/&&/g;s/;s,x,x,$//
3089 _ACEOF
3090 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3091 rm conftest.sed
3092
3093 # expand $ac_aux_dir to an absolute path
3094 am_aux_dir=`cd $ac_aux_dir && pwd`
3095
3096 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3097 # Use eval to expand $SHELL
3098 if eval "$MISSING --run true"; then
3099   am_missing_run="$MISSING --run "
3100 else
3101   am_missing_run=
3102   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3103 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3104 fi
3105
3106 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3107   # We used to keeping the `.' as first argument, in order to
3108   # allow $(mkdir_p) to be used without argument.  As in
3109   #   $(mkdir_p) $(somedir)
3110   # where $(somedir) is conditionally defined.  However this is wrong
3111   # for two reasons:
3112   #  1. if the package is installed by a user who cannot write `.'
3113   #     make install will fail,
3114   #  2. the above comment should most certainly read
3115   #     $(mkdir_p) $(DESTDIR)$(somedir)
3116   #     so it does not work when $(somedir) is undefined and
3117   #     $(DESTDIR) is not.
3118   #  To support the latter case, we have to write
3119   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3120   #  so the `.' trick is pointless.
3121   mkdir_p='mkdir -p --'
3122 else
3123   # On NextStep and OpenStep, the `mkdir' command does not
3124   # recognize any option.  It will interpret all options as
3125   # directories to create, and then abort because `.' already
3126   # exists.
3127   for d in ./-p ./--version;
3128   do
3129     test -d $d && rmdir $d
3130   done
3131   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3132   if test -f "$ac_aux_dir/mkinstalldirs"; then
3133     mkdir_p='$(mkinstalldirs)'
3134   else
3135     mkdir_p='$(install_sh) -d'
3136   fi
3137 fi
3138
3139 for ac_prog in gawk mawk nawk awk
3140 do
3141   # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_AWK+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if test -n "$AWK"; then
3149   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156   for ac_exec_ext in '' $ac_executable_extensions; do
3157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158     ac_cv_prog_AWK="$ac_prog"
3159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163 done
3164
3165 fi
3166 fi
3167 AWK=$ac_cv_prog_AWK
3168 if test -n "$AWK"; then
3169   echo "$as_me:$LINENO: result: $AWK" >&5
3170 echo "${ECHO_T}$AWK" >&6
3171 else
3172   echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175
3176   test -n "$AWK" && break
3177 done
3178
3179 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3181 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3182 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   cat >conftest.make <<\_ACEOF
3186 all:
3187         @echo 'ac_maketemp="$(MAKE)"'
3188 _ACEOF
3189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3190 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3191 if test -n "$ac_maketemp"; then
3192   eval ac_cv_prog_make_${ac_make}_set=yes
3193 else
3194   eval ac_cv_prog_make_${ac_make}_set=no
3195 fi
3196 rm -f conftest.make
3197 fi
3198 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3199   echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201   SET_MAKE=
3202 else
3203   echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205   SET_MAKE="MAKE=${MAKE-make}"
3206 fi
3207
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3211   am__leading_dot=.
3212 else
3213   am__leading_dot=_
3214 fi
3215 rmdir .tst 2>/dev/null
3216
3217 DEPDIR="${am__leading_dot}deps"
3218
3219           ac_config_commands="$ac_config_commands depfiles"
3220
3221
3222 am_make=${MAKE-make}
3223 cat > confinc << 'END'
3224 am__doit:
3225         @echo done
3226 .PHONY: am__doit
3227 END
3228 # If we don't find an include directive, just comment out the code.
3229 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3230 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3231 am__include="#"
3232 am__quote=
3233 _am_result=none
3234 # First try GNU make style include.
3235 echo "include confinc" > confmf
3236 # We grep out `Entering directory' and `Leaving directory'
3237 # messages which can occur if `w' ends up in MAKEFLAGS.
3238 # In particular we don't look at `^make:' because GNU make might
3239 # be invoked under some other name (usually "gmake"), in which
3240 # case it prints its new name instead of `make'.
3241 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3242    am__include=include
3243    am__quote=
3244    _am_result=GNU
3245 fi
3246 # Now try BSD make style include.
3247 if test "$am__include" = "#"; then
3248    echo '.include "confinc"' > confmf
3249    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3250       am__include=.include
3251       am__quote="\""
3252       _am_result=BSD
3253    fi
3254 fi
3255
3256
3257 echo "$as_me:$LINENO: result: $_am_result" >&5
3258 echo "${ECHO_T}$_am_result" >&6
3259 rm -f confinc confmf
3260
3261 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3262 if test "${enable_dependency_tracking+set}" = set; then
3263   enableval="$enable_dependency_tracking"
3264
3265 fi;
3266 if test "x$enable_dependency_tracking" != xno; then
3267   am_depcomp="$ac_aux_dir/depcomp"
3268   AMDEPBACKSLASH='\'
3269 fi
3270
3271
3272 if test "x$enable_dependency_tracking" != xno; then
3273   AMDEP_TRUE=
3274   AMDEP_FALSE='#'
3275 else
3276   AMDEP_TRUE='#'
3277   AMDEP_FALSE=
3278 fi
3279
3280
3281
3282 # test to see if srcdir already configured
3283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3284    test -f $srcdir/config.status; then
3285   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3287    { (exit 1); exit 1; }; }
3288 fi
3289
3290 # test whether we have cygpath
3291 if test -z "$CYGPATH_W"; then
3292   if (cygpath --version) >/dev/null 2>/dev/null; then
3293     CYGPATH_W='cygpath -w'
3294   else
3295     CYGPATH_W=echo
3296   fi
3297 fi
3298
3299
3300 # Define the identity of the package.
3301  PACKAGE='libjava'
3302  VERSION='version-unused'
3303
3304
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE "$PACKAGE"
3307 _ACEOF
3308
3309
3310 cat >>confdefs.h <<_ACEOF
3311 #define VERSION "$VERSION"
3312 _ACEOF
3313
3314 # Some tools Automake needs.
3315
3316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3317
3318
3319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3320
3321
3322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3323
3324
3325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3326
3327
3328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3329
3330 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3331
3332 # Installed binaries are usually stripped using `strip' when the user
3333 # run `make install-strip'.  However `strip' might not be the right
3334 # tool to use in cross-compilation environments, therefore Automake
3335 # will honor the `STRIP' environment variable to overrule this program.
3336 if test "$cross_compiling" != no; then
3337   if test -n "$ac_tool_prefix"; then
3338   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}strip; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_STRIP+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   if test -n "$STRIP"; then
3346   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353   for ac_exec_ext in '' $ac_executable_extensions; do
3354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360 done
3361
3362 fi
3363 fi
3364 STRIP=$ac_cv_prog_STRIP
3365 if test -n "$STRIP"; then
3366   echo "$as_me:$LINENO: result: $STRIP" >&5
3367 echo "${ECHO_T}$STRIP" >&6
3368 else
3369   echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3371 fi
3372
3373 fi
3374 if test -z "$ac_cv_prog_STRIP"; then
3375   ac_ct_STRIP=$STRIP
3376   # Extract the first word of "strip", so it can be a program name with args.
3377 set dummy strip; ac_word=$2
3378 echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if test -n "$ac_ct_STRIP"; then
3384   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_prog_ac_ct_STRIP="strip"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3401 fi
3402 fi
3403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3404 if test -n "$ac_ct_STRIP"; then
3405   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3406 echo "${ECHO_T}$ac_ct_STRIP" >&6
3407 else
3408   echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3410 fi
3411
3412   STRIP=$ac_ct_STRIP
3413 else
3414   STRIP="$ac_cv_prog_STRIP"
3415 fi
3416
3417 fi
3418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3419
3420 # We need awk for the "check" target.  The system "awk" is bad on
3421 # some platforms.
3422 # Always define AMTAR for backward compatibility.
3423
3424 AMTAR=${AMTAR-"${am_missing_run}tar"}
3425
3426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3427
3428
3429
3430
3431 depcc="$CC"   am_compiler_list=
3432
3433 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3434 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3435 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3439   # We make a subdir and do the tests there.  Otherwise we can end up
3440   # making bogus files that we don't know about and never remove.  For
3441   # instance it was reported that on HP-UX the gcc test will end up
3442   # making a dummy file named `D' -- because `-MD' means `put the output
3443   # in D'.
3444   mkdir conftest.dir
3445   # Copy depcomp to subdir because otherwise we won't find it if we're
3446   # using a relative directory.
3447   cp "$am_depcomp" conftest.dir
3448   cd conftest.dir
3449   # We will build objects and dependencies in a subdirectory because
3450   # it helps to detect inapplicable dependency modes.  For instance
3451   # both Tru64's cc and ICC support -MD to output dependencies as a
3452   # side effect of compilation, but ICC will put the dependencies in
3453   # the current directory while Tru64 will put them in the object
3454   # directory.
3455   mkdir sub
3456
3457   am_cv_CC_dependencies_compiler_type=none
3458   if test "$am_compiler_list" = ""; then
3459      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3460   fi
3461   for depmode in $am_compiler_list; do
3462     # Setup a source with many dependencies, because some compilers
3463     # like to wrap large dependency lists on column 80 (with \), and
3464     # we should not choose a depcomp mode which is confused by this.
3465     #
3466     # We need to recreate these files for each test, as the compiler may
3467     # overwrite some of them when testing with obscure command lines.
3468     # This happens at least with the AIX C compiler.
3469     : > sub/conftest.c
3470     for i in 1 2 3 4 5 6; do
3471       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3472       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3473       # Solaris 8's {/usr,}/bin/sh.
3474       touch sub/conftst$i.h
3475     done
3476     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477
3478     case $depmode in
3479     nosideeffect)
3480       # after this tag, mechanisms are not by side-effect, so they'll
3481       # only be used when explicitly requested
3482       if test "x$enable_dependency_tracking" = xyes; then
3483         continue
3484       else
3485         break
3486       fi
3487       ;;
3488     none) break ;;
3489     esac
3490     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3491     # mode.  It turns out that the SunPro C++ compiler does not properly
3492     # handle `-M -o', and we need to detect this.
3493     if depmode=$depmode \
3494        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3495        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3496        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3497          >/dev/null 2>conftest.err &&
3498        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3499        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3500        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3501       # icc doesn't choke on unknown options, it will just issue warnings
3502       # or remarks (even with -Werror).  So we grep stderr for any message
3503       # that says an option was ignored or not supported.
3504       # When given -MP, icc 7.0 and 7.1 complain thusly:
3505       #   icc: Command line warning: ignoring option '-M'; no argument required
3506       # The diagnosis changed in icc 8.0:
3507       #   icc: Command line remark: option '-MP' not supported
3508       if (grep 'ignoring option' conftest.err ||
3509           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3510         am_cv_CC_dependencies_compiler_type=$depmode
3511         break
3512       fi
3513     fi
3514   done
3515
3516   cd ..
3517   rm -rf conftest.dir
3518 else
3519   am_cv_CC_dependencies_compiler_type=none
3520 fi
3521
3522 fi
3523 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3526
3527
3528
3529 if
3530   test "x$enable_dependency_tracking" != xno \
3531   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3532   am__fastdepCC_TRUE=
3533   am__fastdepCC_FALSE='#'
3534 else
3535   am__fastdepCC_TRUE='#'
3536   am__fastdepCC_FALSE=
3537 fi
3538
3539
3540 depcc="$CXX"  am_compiler_list=
3541
3542 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3543 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3544 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3545   echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548   # We make a subdir and do the tests there.  Otherwise we can end up
3549   # making bogus files that we don't know about and never remove.  For
3550   # instance it was reported that on HP-UX the gcc test will end up
3551   # making a dummy file named `D' -- because `-MD' means `put the output
3552   # in D'.
3553   mkdir conftest.dir
3554   # Copy depcomp to subdir because otherwise we won't find it if we're
3555   # using a relative directory.
3556   cp "$am_depcomp" conftest.dir
3557   cd conftest.dir
3558   # We will build objects and dependencies in a subdirectory because
3559   # it helps to detect inapplicable dependency modes.  For instance
3560   # both Tru64's cc and ICC support -MD to output dependencies as a
3561   # side effect of compilation, but ICC will put the dependencies in
3562   # the current directory while Tru64 will put them in the object
3563   # directory.
3564   mkdir sub
3565
3566   am_cv_CXX_dependencies_compiler_type=none
3567   if test "$am_compiler_list" = ""; then
3568      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3569   fi
3570   for depmode in $am_compiler_list; do
3571     # Setup a source with many dependencies, because some compilers
3572     # like to wrap large dependency lists on column 80 (with \), and
3573     # we should not choose a depcomp mode which is confused by this.
3574     #
3575     # We need to recreate these files for each test, as the compiler may
3576     # overwrite some of them when testing with obscure command lines.
3577     # This happens at least with the AIX C compiler.
3578     : > sub/conftest.c
3579     for i in 1 2 3 4 5 6; do
3580       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3581       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3582       # Solaris 8's {/usr,}/bin/sh.
3583       touch sub/conftst$i.h
3584     done
3585     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586
3587     case $depmode in
3588     nosideeffect)
3589       # after this tag, mechanisms are not by side-effect, so they'll
3590       # only be used when explicitly requested
3591       if test "x$enable_dependency_tracking" = xyes; then
3592         continue
3593       else
3594         break
3595       fi
3596       ;;
3597     none) break ;;
3598     esac
3599     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600     # mode.  It turns out that the SunPro C++ compiler does not properly
3601     # handle `-M -o', and we need to detect this.
3602     if depmode=$depmode \
3603        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3606          >/dev/null 2>conftest.err &&
3607        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3609        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610       # icc doesn't choke on unknown options, it will just issue warnings
3611       # or remarks (even with -Werror).  So we grep stderr for any message
3612       # that says an option was ignored or not supported.
3613       # When given -MP, icc 7.0 and 7.1 complain thusly:
3614       #   icc: Command line warning: ignoring option '-M'; no argument required
3615       # The diagnosis changed in icc 8.0:
3616       #   icc: Command line remark: option '-MP' not supported
3617       if (grep 'ignoring option' conftest.err ||
3618           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619         am_cv_CXX_dependencies_compiler_type=$depmode
3620         break
3621       fi
3622     fi
3623   done
3624
3625   cd ..
3626   rm -rf conftest.dir
3627 else
3628   am_cv_CXX_dependencies_compiler_type=none
3629 fi
3630
3631 fi
3632 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3633 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3634 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3635
3636
3637
3638 if
3639   test "x$enable_dependency_tracking" != xno \
3640   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3641   am__fastdepCXX_TRUE=
3642   am__fastdepCXX_FALSE='#'
3643 else
3644   am__fastdepCXX_TRUE='#'
3645   am__fastdepCXX_FALSE=
3646 fi
3647
3648
3649
3650
3651 if test -n "$ac_tool_prefix"; then
3652   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}as; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_AS+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   if test -n "$AS"; then
3660   ac_cv_prog_AS="$AS" # Let the user override the test.
3661 else
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667   for ac_exec_ext in '' $ac_executable_extensions; do
3668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669     ac_cv_prog_AS="${ac_tool_prefix}as"
3670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3671     break 2
3672   fi
3673 done
3674 done
3675
3676 fi
3677 fi
3678 AS=$ac_cv_prog_AS
3679 if test -n "$AS"; then
3680   echo "$as_me:$LINENO: result: $AS" >&5
3681 echo "${ECHO_T}$AS" >&6
3682 else
3683   echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3685 fi
3686
3687 fi
3688 if test -z "$ac_cv_prog_AS"; then
3689   ac_ct_AS=$AS
3690   # Extract the first word of "as", so it can be a program name with args.
3691 set dummy as; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3695   echo $ECHO_N "(cached) $ECHO_C" >&6
3696 else
3697   if test -n "$ac_ct_AS"; then
3698   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   for ac_exec_ext in '' $ac_executable_extensions; do
3706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707     ac_cv_prog_ac_ct_AS="as"
3708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712 done
3713
3714 fi
3715 fi
3716 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3717 if test -n "$ac_ct_AS"; then
3718   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3719 echo "${ECHO_T}$ac_ct_AS" >&6
3720 else
3721   echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3723 fi
3724
3725   AS=$ac_ct_AS
3726 else
3727   AS="$ac_cv_prog_AS"
3728 fi
3729
3730 if test -n "$ac_tool_prefix"; then
3731   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ar; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_AR+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   if test -n "$AR"; then
3739   ac_cv_prog_AR="$AR" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_exec_ext in '' $ac_executable_extensions; do
3747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748     ac_cv_prog_AR="${ac_tool_prefix}ar"
3749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3750     break 2
3751   fi
3752 done
3753 done
3754
3755 fi
3756 fi
3757 AR=$ac_cv_prog_AR
3758 if test -n "$AR"; then
3759   echo "$as_me:$LINENO: result: $AR" >&5
3760 echo "${ECHO_T}$AR" >&6
3761 else
3762   echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 fi
3765
3766 fi
3767 if test -z "$ac_cv_prog_AR"; then
3768   ac_ct_AR=$AR
3769   # Extract the first word of "ar", so it can be a program name with args.
3770 set dummy ar; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if test -n "$ac_ct_AR"; then
3777   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3778 else
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_exec_ext in '' $ac_executable_extensions; do
3785   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786     ac_cv_prog_ac_ct_AR="ar"
3787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788     break 2
3789   fi
3790 done
3791 done
3792
3793 fi
3794 fi
3795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3796 if test -n "$ac_ct_AR"; then
3797   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3798 echo "${ECHO_T}$ac_ct_AR" >&6
3799 else
3800   echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3802 fi
3803
3804   AR=$ac_ct_AR
3805 else
3806   AR="$ac_cv_prog_AR"
3807 fi
3808
3809 if test -n "$ac_tool_prefix"; then
3810   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_RANLIB+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -n "$RANLIB"; then
3818   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   for ac_exec_ext in '' $ac_executable_extensions; do
3826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829     break 2
3830   fi
3831 done
3832 done
3833
3834 fi
3835 fi
3836 RANLIB=$ac_cv_prog_RANLIB
3837 if test -n "$RANLIB"; then
3838   echo "$as_me:$LINENO: result: $RANLIB" >&5
3839 echo "${ECHO_T}$RANLIB" >&6
3840 else
3841   echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3843 fi
3844
3845 fi
3846 if test -z "$ac_cv_prog_RANLIB"; then
3847   ac_ct_RANLIB=$RANLIB
3848   # Extract the first word of "ranlib", so it can be a program name with args.
3849 set dummy ranlib; ac_word=$2
3850 echo "$as_me:$LINENO: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3853   echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855   if test -n "$ac_ct_RANLIB"; then
3856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863   for ac_exec_ext in '' $ac_executable_extensions; do
3864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865     ac_cv_prog_ac_ct_RANLIB="ranlib"
3866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870 done
3871
3872   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3873 fi
3874 fi
3875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3876 if test -n "$ac_ct_RANLIB"; then
3877   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3878 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3879 else
3880   echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3882 fi
3883
3884   RANLIB=$ac_ct_RANLIB
3885 else
3886   RANLIB="$ac_cv_prog_RANLIB"
3887 fi
3888
3889
3890 # Find a good install program.  We prefer a C program (faster),
3891 # so one script is as good as another.  But avoid the broken or
3892 # incompatible versions:
3893 # SysV /etc/install, /usr/sbin/install
3894 # SunOS /usr/etc/install
3895 # IRIX /sbin/install
3896 # AIX /bin/install
3897 # AmigaOS /C/install, which installs bootblocks on floppy discs
3898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901 # OS/2's system install, which has a completely different semantic
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   # Account for people who put trailing slashes in PATH elements.
3915 case $as_dir/ in
3916   ./ | .// | /cC/* | \
3917   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3919   /usr/ucb/* ) ;;
3920   *)
3921     # OSF1 and SCO ODT 3.0 have their own names for install.
3922     # Don't use installbsd from OSF since it installs stuff as root
3923     # by default.
3924     for ac_prog in ginstall scoinst install; do
3925       for ac_exec_ext in '' $ac_executable_extensions; do
3926         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3927           if test $ac_prog = install &&
3928             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929             # AIX install.  It has an incompatible calling convention.
3930             :
3931           elif test $ac_prog = install &&
3932             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933             # program-specific install script used by HP pwplus--don't use.
3934             :
3935           else
3936             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3937             break 3
3938           fi
3939         fi
3940       done
3941     done
3942     ;;
3943 esac
3944 done
3945
3946
3947 fi
3948   if test "${ac_cv_path_install+set}" = set; then
3949     INSTALL=$ac_cv_path_install
3950   else
3951     # As a last resort, use the slow shell script.  We don't cache a
3952     # path for INSTALL within a source directory, because that will
3953     # break other packages using the cache if that directory is
3954     # removed, or if the path is relative.
3955     INSTALL=$ac_install_sh
3956   fi
3957 fi
3958 echo "$as_me:$LINENO: result: $INSTALL" >&5
3959 echo "${ECHO_T}$INSTALL" >&6
3960
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968
3969
3970 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3971 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3972     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3973 if test "${enable_maintainer_mode+set}" = set; then
3974   enableval="$enable_maintainer_mode"
3975   USE_MAINTAINER_MODE=$enableval
3976 else
3977   USE_MAINTAINER_MODE=no
3978 fi;
3979   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3980 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3981
3982
3983 if test $USE_MAINTAINER_MODE = yes; then
3984   MAINTAINER_MODE_TRUE=
3985   MAINTAINER_MODE_FALSE='#'
3986 else
3987   MAINTAINER_MODE_TRUE='#'
3988   MAINTAINER_MODE_FALSE=
3989 fi
3990
3991   MAINT=$MAINTAINER_MODE_TRUE
3992
3993
3994
3995
3996
3997 # configure.host sets the following important variables
3998 #       libgcj_cflags    - host specific C compiler flags
3999 #       libgcj_cxxflags  - host specific C++ compiler flags
4000 #       libgcj_javaflags - host specific Java compiler flags
4001
4002 libgcj_cflags=
4003 libgcj_cxxflags=
4004 libgcj_javaflags=
4005
4006 . ${srcdir}/configure.host
4007
4008 LIBGCJ_CFLAGS="${libgcj_cflags}"
4009 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4010 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4011 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4012
4013
4014
4015
4016
4017                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018
4019
4020 # Only use libltdl for non-newlib builds.
4021 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4022      case $enable_ltdl_convenience in
4023   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4024 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4025    { (exit 1); exit 1; }; } ;;
4026   "") enable_ltdl_convenience=yes
4027       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4028   esac
4029   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4030   INCLTDL='-I${top_srcdir}/''libltdl'
4031
4032
4033    DIRLTDL=libltdl
4034
4035 cat >>confdefs.h <<\_ACEOF
4036 #define USE_LTDL 1
4037 _ACEOF
4038
4039    # Sigh.  Libtool's macro doesn't do the right thing.
4040    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4041    # FIXME: this is a hack.
4042    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4043    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4044 fi
4045
4046
4047
4048 # Check whether --enable-shared or --disable-shared was given.
4049 if test "${enable_shared+set}" = set; then
4050   enableval="$enable_shared"
4051   p=${PACKAGE-default}
4052 case $enableval in
4053 yes) enable_shared=yes ;;
4054 no) enable_shared=no ;;
4055 *)
4056   enable_shared=no
4057   # Look at the argument we got.  We use all the common list separators.
4058   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4059   for pkg in $enableval; do
4060     if test "X$pkg" = "X$p"; then
4061       enable_shared=yes
4062     fi
4063   done
4064   IFS="$ac_save_ifs"
4065   ;;
4066 esac
4067 else
4068   enable_shared=yes
4069 fi;
4070 # Check whether --enable-static or --disable-static was given.
4071 if test "${enable_static+set}" = set; then
4072   enableval="$enable_static"
4073   p=${PACKAGE-default}
4074 case $enableval in
4075 yes) enable_static=yes ;;
4076 no) enable_static=no ;;
4077 *)
4078   enable_static=no
4079   # Look at the argument we got.  We use all the common list separators.
4080   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4081   for pkg in $enableval; do
4082     if test "X$pkg" = "X$p"; then
4083       enable_static=yes
4084     fi
4085   done
4086   IFS="$ac_save_ifs"
4087   ;;
4088 esac
4089 else
4090   enable_static=yes
4091 fi;
4092 # Check whether --enable-fast-install or --disable-fast-install was given.
4093 if test "${enable_fast_install+set}" = set; then
4094   enableval="$enable_fast_install"
4095   p=${PACKAGE-default}
4096 case $enableval in
4097 yes) enable_fast_install=yes ;;
4098 no) enable_fast_install=no ;;
4099 *)
4100   enable_fast_install=no
4101   # Look at the argument we got.  We use all the common list separators.
4102   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4103   for pkg in $enableval; do
4104     if test "X$pkg" = "X$p"; then
4105       enable_fast_install=yes
4106     fi
4107   done
4108   IFS="$ac_save_ifs"
4109   ;;
4110 esac
4111 else
4112   enable_fast_install=yes
4113 fi;
4114
4115 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4116 if test "${with_gnu_ld+set}" = set; then
4117   withval="$with_gnu_ld"
4118   test "$withval" = no || with_gnu_ld=yes
4119 else
4120   with_gnu_ld=no
4121 fi;
4122 ac_prog=ld
4123 if test "$GCC" = yes; then
4124   # Check if gcc -print-prog-name=ld gives a path.
4125   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4126 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4127   case $host in
4128   *-*-mingw*)
4129     # gcc leaves a trailing carriage return which upsets mingw
4130     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4131   *)
4132     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4133   esac
4134   case $ac_prog in
4135     # Accept absolute paths.
4136     [\\/]* | [A-Za-z]:[\\/]*)
4137       re_direlt='/[^/][^/]*/\.\./'
4138       # Canonicalize the path of ld
4139       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4140       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4141         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4142       done
4143       test -z "$LD" && LD="$ac_prog"
4144       ;;
4145   "")
4146     # If it fails, then pretend we aren't using GCC.
4147     ac_prog=ld
4148     ;;
4149   *)
4150     # If it is relative, then search for the first ld in PATH.
4151     with_gnu_ld=unknown
4152     ;;
4153   esac
4154 elif test "$with_gnu_ld" = yes; then
4155   echo "$as_me:$LINENO: checking for GNU ld" >&5
4156 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4157 else
4158   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4159 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4160 fi
4161 if test "${lt_cv_path_LD+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   if test -z "$LD"; then
4165   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166   for ac_dir in $PATH; do
4167     test -z "$ac_dir" && ac_dir=.
4168     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4169       lt_cv_path_LD="$ac_dir/$ac_prog"
4170       # Check to see if the program is GNU ld.  I'd rather use --version,
4171       # but apparently some GNU ld's only accept -v.
4172       # Break only if it was the GNU/non-GNU ld that we prefer.
4173       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4174         test "$with_gnu_ld" != no && break
4175       else
4176         test "$with_gnu_ld" != yes && break
4177       fi
4178     fi
4179   done
4180   IFS="$ac_save_ifs"
4181 else
4182   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4183 fi
4184 fi
4185
4186 LD="$lt_cv_path_LD"
4187 if test -n "$LD"; then
4188   echo "$as_me:$LINENO: result: $LD" >&5
4189 echo "${ECHO_T}$LD" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4196    { (exit 1); exit 1; }; }
4197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4203 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4204   lt_cv_prog_gnu_ld=yes
4205 else
4206   lt_cv_prog_gnu_ld=no
4207 fi
4208 fi
4209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4211 with_gnu_ld=$lt_cv_prog_gnu_ld
4212
4213
4214 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4216 if test "${lt_cv_ld_reload_flag+set}" = set; then
4217   echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219   lt_cv_ld_reload_flag='-r'
4220 fi
4221 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4223 reload_flag=$lt_cv_ld_reload_flag
4224 test -n "$reload_flag" && reload_flag=" $reload_flag"
4225
4226 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4227 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4228 if test "${lt_cv_path_NM+set}" = set; then
4229   echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231   if test -n "$NM"; then
4232   # Let the user override the test.
4233   lt_cv_path_NM="$NM"
4234 else
4235   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4236   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4237     test -z "$ac_dir" && ac_dir=.
4238     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4239     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4240       # Check to see if the nm accepts a BSD-compat flag.
4241       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242       #   nm: unknown option "B" ignored
4243       # Tru64's nm complains that /dev/null is an invalid object file
4244       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4245         lt_cv_path_NM="$tmp_nm -B"
4246         break
4247       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4248         lt_cv_path_NM="$tmp_nm -p"
4249         break
4250       else
4251         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4252         continue # so that we can try to find one that supports BSD flags
4253       fi
4254     fi
4255   done
4256   IFS="$ac_save_ifs"
4257   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4258 fi
4259 fi
4260
4261 NM="$lt_cv_path_NM"
4262 echo "$as_me:$LINENO: result: $NM" >&5
4263 echo "${ECHO_T}$NM" >&6
4264
4265 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4266 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4267 if test "${lt_cv_deplibs_check_method+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   lt_cv_file_magic_cmd='$MAGIC_CMD'
4271 lt_cv_file_magic_test_file=
4272 lt_cv_deplibs_check_method='unknown'
4273 # Need to set the preceding variable on all platforms that support
4274 # interlibrary dependencies.
4275 # 'none' -- dependencies not supported.
4276 # `unknown' -- same as none, but documents that we really don't know.
4277 # 'pass_all' -- all dependencies passed with no checks.
4278 # 'test_compile' -- check by making test program.
4279 # 'file_magic [regex]' -- check by looking for files in library path
4280 # which responds to the $file_magic_cmd with a given egrep regex.
4281 # If you have `file' or equivalent on your system and you're not sure
4282 # whether `pass_all' will *always* work, you probably want this one.
4283
4284 case $host_os in
4285 aix*)
4286   lt_cv_deplibs_check_method=pass_all
4287   ;;
4288
4289 beos*)
4290   lt_cv_deplibs_check_method=pass_all
4291   ;;
4292
4293 bsdi4*)
4294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4295   lt_cv_file_magic_cmd='/usr/bin/file -L'
4296   lt_cv_file_magic_test_file=/shlib/libc.so
4297   ;;
4298
4299 cygwin* | mingw* |pw32*)
4300   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4301   lt_cv_file_magic_cmd='$OBJDUMP -f'
4302   ;;
4303
4304 darwin* | rhapsody*)
4305   # this will be overwritten by pass_all, but leave it in just in case
4306   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4307   lt_cv_file_magic_cmd='/usr/bin/file -L'
4308   case "$host_os" in
4309   rhapsody* | darwin1.012)
4310     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4311     ;;
4312   *) # Darwin 1.3 on
4313     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4314     ;;
4315   esac
4316   lt_cv_deplibs_check_method=pass_all
4317   ;;
4318
4319 freebsd* | kfreebsd*-gnu)
4320   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321     case $host_cpu in
4322     i*86 )
4323       # Not sure whether the presence of OpenBSD here was a mistake.
4324       # Let's accept both of them until this is cleared up.
4325       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4326       lt_cv_file_magic_cmd=/usr/bin/file
4327       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4328       ;;
4329     esac
4330   else
4331     lt_cv_deplibs_check_method=pass_all
4332   fi
4333   ;;
4334
4335 gnu*)
4336   lt_cv_deplibs_check_method=pass_all
4337   ;;
4338
4339 hpux10.20*|hpux11*)
4340   case $host_cpu in
4341   hppa*)
4342     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343     lt_cv_file_magic_cmd=/usr/bin/file
4344     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4345     ;;
4346   ia64*)
4347     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4348     lt_cv_file_magic_cmd=/usr/bin/file
4349     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4350     ;;
4351   esac
4352   ;;
4353
4354 irix5* | irix6*)
4355   case $host_os in
4356   irix5*)
4357     # this will be overridden with pass_all, but let us keep it just in case
4358     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4359     ;;
4360   *)
4361     case $LD in
4362     *-32|*"-32 ") libmagic=32-bit;;
4363     *-n32|*"-n32 ") libmagic=N32;;
4364     *-64|*"-64 ") libmagic=64-bit;;
4365     *) libmagic=never-match;;
4366     esac
4367     # this will be overridden with pass_all, but let us keep it just in case
4368     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4369     ;;
4370   esac
4371   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4372   lt_cv_deplibs_check_method=pass_all
4373   ;;
4374
4375 # This must be Linux ELF.
4376 linux-gnu*)
4377   lt_cv_deplibs_check_method=pass_all
4378   ;;
4379
4380 netbsd* | knetbsd*-gnu)
4381   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4382     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4383   else
4384     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4385   fi
4386   ;;
4387
4388 newsos6)
4389   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4390   lt_cv_file_magic_cmd=/usr/bin/file
4391   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4392   ;;
4393
4394 osf3* | osf4* | osf5*)
4395   # this will be overridden with pass_all, but let us keep it just in case
4396   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4397   lt_cv_file_magic_test_file=/shlib/libc.so
4398   lt_cv_deplibs_check_method=pass_all
4399   ;;
4400
4401 sco3.2v5*)
4402   lt_cv_deplibs_check_method=pass_all
4403   ;;
4404
4405 solaris*)
4406   lt_cv_deplibs_check_method=pass_all
4407   lt_cv_file_magic_test_file=/lib/libc.so
4408   ;;
4409
4410 sysv5uw[78]* | sysv4*uw2*)
4411   lt_cv_deplibs_check_method=pass_all
4412   ;;
4413
4414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4415   case $host_vendor in
4416   ncr)
4417     lt_cv_deplibs_check_method=pass_all
4418     ;;
4419   motorola)
4420     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]'
4421     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4422     ;;
4423   esac
4424   ;;
4425 esac
4426
4427 fi
4428 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4430 file_magic_cmd=$lt_cv_file_magic_cmd
4431 deplibs_check_method=$lt_cv_deplibs_check_method
4432
4433
4434
4435
4436 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4437
4438 # Only perform the check for file, if the check method requires it
4439 case $deplibs_check_method in
4440 file_magic*)
4441   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4442     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4443 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   case $MAGIC_CMD in
4448   /*)
4449   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4450   ;;
4451   ?:/*)
4452   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4453   ;;
4454   *)
4455   ac_save_MAGIC_CMD="$MAGIC_CMD"
4456   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4457   ac_dummy="/usr/bin:$PATH"
4458   for ac_dir in $ac_dummy; do
4459     test -z "$ac_dir" && ac_dir=.
4460     if test -f $ac_dir/${ac_tool_prefix}file; then
4461       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4462       if test -n "$file_magic_test_file"; then
4463         case $deplibs_check_method in
4464         "file_magic "*)
4465           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4466           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4468             egrep "$file_magic_regex" > /dev/null; then
4469             :
4470           else
4471             cat <<EOF 1>&2
4472
4473 *** Warning: the command libtool uses to detect shared libraries,
4474 *** $file_magic_cmd, produces output that libtool cannot recognize.
4475 *** The result is that libtool may fail to recognize shared libraries
4476 *** as such.  This will affect the creation of libtool libraries that
4477 *** depend on shared libraries, but programs linked with such libtool
4478 *** libraries will work regardless of this problem.  Nevertheless, you
4479 *** may want to report the problem to your system manager and/or to
4480 *** bug-libtool@gnu.org
4481
4482 EOF
4483           fi ;;
4484         esac
4485       fi
4486       break
4487     fi
4488   done
4489   IFS="$ac_save_ifs"
4490   MAGIC_CMD="$ac_save_MAGIC_CMD"
4491   ;;
4492 esac
4493 fi
4494
4495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4496 if test -n "$MAGIC_CMD"; then
4497   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4498 echo "${ECHO_T}$MAGIC_CMD" >&6
4499 else
4500   echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4502 fi
4503
4504 if test -z "$lt_cv_path_MAGIC_CMD"; then
4505   if test -n "$ac_tool_prefix"; then
4506     echo "$as_me:$LINENO: checking for file" >&5
4507 echo $ECHO_N "checking for file... $ECHO_C" >&6
4508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   case $MAGIC_CMD in
4512   /*)
4513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4514   ;;
4515   ?:/*)
4516   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4517   ;;
4518   *)
4519   ac_save_MAGIC_CMD="$MAGIC_CMD"
4520   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4521   ac_dummy="/usr/bin:$PATH"
4522   for ac_dir in $ac_dummy; do
4523     test -z "$ac_dir" && ac_dir=.
4524     if test -f $ac_dir/file; then
4525       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4526       if test -n "$file_magic_test_file"; then
4527         case $deplibs_check_method in
4528         "file_magic "*)
4529           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4530           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4531           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4532             egrep "$file_magic_regex" > /dev/null; then
4533             :
4534           else
4535             cat <<EOF 1>&2
4536
4537 *** Warning: the command libtool uses to detect shared libraries,
4538 *** $file_magic_cmd, produces output that libtool cannot recognize.
4539 *** The result is that libtool may fail to recognize shared libraries
4540 *** as such.  This will affect the creation of libtool libraries that
4541 *** depend on shared libraries, but programs linked with such libtool
4542 *** libraries will work regardless of this problem.  Nevertheless, you
4543 *** may want to report the problem to your system manager and/or to
4544 *** bug-libtool@gnu.org
4545
4546 EOF
4547           fi ;;
4548         esac
4549       fi
4550       break
4551     fi
4552   done
4553   IFS="$ac_save_ifs"
4554   MAGIC_CMD="$ac_save_MAGIC_CMD"
4555   ;;
4556 esac
4557 fi
4558
4559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4560 if test -n "$MAGIC_CMD"; then
4561   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4562 echo "${ECHO_T}$MAGIC_CMD" >&6
4563 else
4564   echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4566 fi
4567
4568   else
4569     MAGIC_CMD=:
4570   fi
4571 fi
4572
4573   fi
4574   ;;
4575 esac
4576
4577 if test -n "$ac_tool_prefix"; then
4578   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_prog_RANLIB+set}" = set; then
4583   echo $ECHO_N "(cached) $ECHO_C" >&6
4584 else
4585   if test -n "$RANLIB"; then
4586   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4587 else
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH
4590 do
4591   IFS=$as_save_IFS
4592   test -z "$as_dir" && as_dir=.
4593   for ac_exec_ext in '' $ac_executable_extensions; do
4594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600 done
4601
4602 fi
4603 fi
4604 RANLIB=$ac_cv_prog_RANLIB
4605 if test -n "$RANLIB"; then
4606   echo "$as_me:$LINENO: result: $RANLIB" >&5
4607 echo "${ECHO_T}$RANLIB" >&6
4608 else
4609   echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4611 fi
4612
4613 fi
4614 if test -z "$ac_cv_prog_RANLIB"; then
4615   ac_ct_RANLIB=$RANLIB
4616   # Extract the first word of "ranlib", so it can be a program name with args.
4617 set dummy ranlib; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if test -n "$ac_ct_RANLIB"; then
4624   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633     ac_cv_prog_ac_ct_RANLIB="ranlib"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639
4640   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4641 fi
4642 fi
4643 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4644 if test -n "$ac_ct_RANLIB"; then
4645   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4646 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4647 else
4648   echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6
4650 fi
4651
4652   RANLIB=$ac_ct_RANLIB
4653 else
4654   RANLIB="$ac_cv_prog_RANLIB"
4655 fi
4656
4657 if test -n "$ac_tool_prefix"; then
4658   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4659 set dummy ${ac_tool_prefix}strip; ac_word=$2
4660 echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662 if test "${ac_cv_prog_STRIP+set}" = set; then
4663   echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665   if test -n "$STRIP"; then
4666   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673   for ac_exec_ext in '' $ac_executable_extensions; do
4674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4675     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680 done
4681
4682 fi
4683 fi
4684 STRIP=$ac_cv_prog_STRIP
4685 if test -n "$STRIP"; then
4686   echo "$as_me:$LINENO: result: $STRIP" >&5
4687 echo "${ECHO_T}$STRIP" >&6
4688 else
4689   echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4691 fi
4692
4693 fi
4694 if test -z "$ac_cv_prog_STRIP"; then
4695   ac_ct_STRIP=$STRIP
4696   # Extract the first word of "strip", so it can be a program name with args.
4697 set dummy strip; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   if test -n "$ac_ct_STRIP"; then
4704   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713     ac_cv_prog_ac_ct_STRIP="strip"
4714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719
4720   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4721 fi
4722 fi
4723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4724 if test -n "$ac_ct_STRIP"; then
4725   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4726 echo "${ECHO_T}$ac_ct_STRIP" >&6
4727 else
4728   echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6
4730 fi
4731
4732   STRIP=$ac_ct_STRIP
4733 else
4734   STRIP="$ac_cv_prog_STRIP"
4735 fi
4736
4737
4738 # Check for any special flags to pass to ltconfig.
4739 libtool_flags="--cache-file=$cache_file"
4740 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4741 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4742 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4743 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4744 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4745
4746
4747 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4748 if test "${enable_libtool_lock+set}" = set; then
4749   enableval="$enable_libtool_lock"
4750
4751 fi;
4752 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4753 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4754
4755
4756 # Check whether --with-pic or --without-pic was given.
4757 if test "${with_pic+set}" = set; then
4758   withval="$with_pic"
4759   pic_mode="$withval"
4760 else
4761   pic_mode=default
4762 fi;
4763 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4764 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4765
4766 # Some flags need to be propagated to the compiler or linker for good
4767 # libtool support.
4768 case $host in
4769 *-*-irix6*)
4770   # Find out which ABI we are using.
4771   echo '#line 4771 "configure"' > conftest.$ac_ext
4772   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773   (eval $ac_compile) 2>&5
4774   ac_status=$?
4775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776   (exit $ac_status); }; then
4777    if test "$lt_cv_prog_gnu_ld" = yes; then
4778     case `/usr/bin/file conftest.$ac_objext` in
4779     *32-bit*)
4780       LD="${LD-ld} -melf32bsmip"
4781       ;;
4782     *N32*)
4783       LD="${LD-ld} -melf32bmipn32"
4784       ;;
4785     *64-bit*)
4786       LD="${LD-ld} -melf64bmip"
4787       ;;
4788     esac
4789    else
4790     case `/usr/bin/file conftest.$ac_objext` in
4791     *32-bit*)
4792       LD="${LD-ld} -32"
4793       ;;
4794     *N32*)
4795       LD="${LD-ld} -n32"
4796       ;;
4797     *64-bit*)
4798       LD="${LD-ld} -64"
4799       ;;
4800     esac
4801    fi
4802   fi
4803   rm -rf conftest*
4804   ;;
4805
4806 ia64-*-hpux*)
4807   # Find out which ABI we are using.
4808   echo 'int i;' > conftest.$ac_ext
4809   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810   (eval $ac_compile) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; then
4814     case "`/usr/bin/file conftest.o`" in
4815     *ELF-32*)
4816       HPUX_IA64_MODE="32"
4817       ;;
4818     *ELF-64*)
4819       HPUX_IA64_MODE="64"
4820       ;;
4821     esac
4822   fi
4823   rm -rf conftest*
4824   ;;
4825
4826 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4827   # Find out which ABI we are using.
4828   echo 'int i;' > conftest.$ac_ext
4829   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830   (eval $ac_compile) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; then
4834     case "`/usr/bin/file conftest.o`" in
4835     *32-bit*)
4836       case $host in
4837         x86_64-*linux*)
4838           LD="${LD-ld} -m elf_i386"
4839           ;;
4840         ppc64-*linux*|powerpc64-*linux*)
4841           LD="${LD-ld} -m elf32ppclinux"
4842           ;;
4843         s390x-*linux*)
4844           LD="${LD-ld} -m elf_s390"
4845           ;;
4846         sparc64-*linux*)
4847           LD="${LD-ld} -m elf32_sparc"
4848           ;;
4849       esac
4850       ;;
4851     *64-bit*)
4852       case $host in
4853         x86_64-*linux*)
4854           LD="${LD-ld} -m elf_x86_64"
4855           ;;
4856         ppc*-*linux*|powerpc*-*linux*)
4857           LD="${LD-ld} -m elf64ppc"
4858           ;;
4859         s390*-*linux*)
4860           LD="${LD-ld} -m elf64_s390"
4861           ;;
4862         sparc*-*linux*)
4863           LD="${LD-ld} -m elf64_sparc"
4864           ;;
4865       esac
4866       ;;
4867     esac
4868   fi
4869   rm -rf conftest*
4870   ;;
4871
4872 *-*-sco3.2v5*)
4873   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4874   SAVE_CFLAGS="$CFLAGS"
4875   CFLAGS="$CFLAGS -belf"
4876   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4877 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4878 if test "${lt_cv_cc_needs_belf+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881
4882
4883      ac_ext=c
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888
4889      if test x$gcc_no_link = xyes; then
4890   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4892    { (exit 1); exit 1; }; }
4893 fi
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h.  */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h.  */
4900
4901 int
4902 main ()
4903 {
4904
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 rm -f conftest.$ac_objext conftest$ac_exeext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4911   (eval $ac_link) 2>conftest.er1
4912   ac_status=$?
4913   grep -v '^ *+' conftest.er1 >conftest.err
4914   rm -f conftest.er1
4915   cat conftest.err >&5
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } &&
4918          { ac_try='test -z "$ac_c_werror_flag"
4919                          || test ! -s conftest.err'
4920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921   (eval $ac_try) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); }; } &&
4925          { ac_try='test -s conftest$ac_exeext'
4926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927   (eval $ac_try) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; }; then
4931   lt_cv_cc_needs_belf=yes
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4935
4936 lt_cv_cc_needs_belf=no
4937 fi
4938 rm -f conftest.err conftest.$ac_objext \
4939       conftest$ac_exeext conftest.$ac_ext
4940      ac_ext=c
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945
4946 fi
4947 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4948 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4949   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4950     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4951     CFLAGS="$SAVE_CFLAGS"
4952   fi
4953   ;;
4954
4955
4956 esac
4957
4958
4959 # Save cache, so that ltconfig can load it
4960 cat >confcache <<\_ACEOF
4961 # This file is a shell script that caches the results of configure
4962 # tests run on this system so they can be shared between configure
4963 # scripts and configure runs, see configure's option --config-cache.
4964 # It is not useful on other systems.  If it contains results you don't
4965 # want to keep, you may remove or edit it.
4966 #
4967 # config.status only pays attention to the cache file if you give it
4968 # the --recheck option to rerun configure.
4969 #
4970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4972 # following values.
4973
4974 _ACEOF
4975
4976 # The following way of writing the cache mishandles newlines in values,
4977 # but we know of no workaround that is simple, portable, and efficient.
4978 # So, don't put newlines in cache variables' values.
4979 # Ultrix sh set writes to stderr and can't be redirected directly,
4980 # and sets the high bit in the cache file unless we assign to the vars.
4981 {
4982   (set) 2>&1 |
4983     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4984     *ac_space=\ *)
4985       # `set' does not quote correctly, so add quotes (double-quote
4986       # substitution turns \\\\ into \\, and sed turns \\ into \).
4987       sed -n \
4988         "s/'/'\\\\''/g;
4989           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4990       ;;
4991     *)
4992       # `set' quotes correctly as required by POSIX, so do not add quotes.
4993       sed -n \
4994         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4995       ;;
4996     esac;
4997 } |
4998   sed '
4999      t clear
5000      : clear
5001      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5002      t end
5003      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5004      : end' >>confcache
5005 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5006   if test -w $cache_file; then
5007     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5008     cat confcache >$cache_file
5009   else
5010     echo "not updating unwritable cache $cache_file"
5011   fi
5012 fi
5013 rm -f confcache
5014
5015 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5016 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5017 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5018 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5019 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5020 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5021 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5022 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5023 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5024 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5025 echo "$as_me: error: libtool configure failed" >&2;}
5026    { (exit 1); exit 1; }; }
5027
5028 # Reload cache, that may have been modified by ltconfig
5029 if test -r "$cache_file"; then
5030   # Some versions of bash will fail to source /dev/null (special
5031   # files actually), so we avoid doing that.
5032   if test -f "$cache_file"; then
5033     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5034 echo "$as_me: loading cache $cache_file" >&6;}
5035     case $cache_file in
5036       [\\/]* | ?:[\\/]* ) . $cache_file;;
5037       *)                      . ./$cache_file;;
5038     esac
5039   fi
5040 else
5041   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5042 echo "$as_me: creating cache $cache_file" >&6;}
5043   >$cache_file
5044 fi
5045
5046
5047 # This can be used to rebuild libtool when needed
5048 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5049
5050 # Always use our own libtool.
5051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5052
5053 # Redirect the config.log output again, so that the ltconfig log is not
5054 # clobbered by the next message.
5055 exec 5>>./config.log
5056
5057 ac_ext=cc
5058 ac_cpp='$CXXCPP $CPPFLAGS'
5059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5062 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5063 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5064 if test -z "$CXXCPP"; then
5065   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068       # Double quotes because CXXCPP needs to be expanded
5069     for CXXCPP in "$CXX -E" "/lib/cpp"
5070     do
5071       ac_preproc_ok=false
5072 for ac_cxx_preproc_warn_flag in '' yes
5073 do
5074   # Use a header file that comes with gcc, so configuring glibc
5075   # with a fresh cross-compiler works.
5076   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5077   # <limits.h> exists even on freestanding compilers.
5078   # On the NeXT, cc -E runs the code through the compiler's parser,
5079   # not just through cpp. "Syntax error" is here to catch this case.
5080   cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h.  */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h.  */
5086 #ifdef __STDC__
5087 # include <limits.h>
5088 #else
5089 # include <assert.h>
5090 #endif
5091                      Syntax error
5092 _ACEOF
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5095   ac_status=$?
5096   grep -v '^ *+' conftest.er1 >conftest.err
5097   rm -f conftest.er1
5098   cat conftest.err >&5
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); } >/dev/null; then
5101   if test -s conftest.err; then
5102     ac_cpp_err=$ac_cxx_preproc_warn_flag
5103     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5104   else
5105     ac_cpp_err=
5106   fi
5107 else
5108   ac_cpp_err=yes
5109 fi
5110 if test -z "$ac_cpp_err"; then
5111   :
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116   # Broken: fails on valid input.
5117 continue
5118 fi
5119 rm -f conftest.err conftest.$ac_ext
5120
5121   # OK, works on sane cases.  Now check whether non-existent headers
5122   # can be detected and how.
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #include <ac_nonexistent.h>
5130 _ACEOF
5131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133   ac_status=$?
5134   grep -v '^ *+' conftest.er1 >conftest.err
5135   rm -f conftest.er1
5136   cat conftest.err >&5
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } >/dev/null; then
5139   if test -s conftest.err; then
5140     ac_cpp_err=$ac_cxx_preproc_warn_flag
5141     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5142   else
5143     ac_cpp_err=
5144   fi
5145 else
5146   ac_cpp_err=yes
5147 fi
5148 if test -z "$ac_cpp_err"; then
5149   # Broken: success on invalid input.
5150 continue
5151 else
5152   echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5154
5155   # Passes both tests.
5156 ac_preproc_ok=:
5157 break
5158 fi
5159 rm -f conftest.err conftest.$ac_ext
5160
5161 done
5162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5163 rm -f conftest.err conftest.$ac_ext
5164 if $ac_preproc_ok; then
5165   break
5166 fi
5167
5168     done
5169     ac_cv_prog_CXXCPP=$CXXCPP
5170
5171 fi
5172   CXXCPP=$ac_cv_prog_CXXCPP
5173 else
5174   ac_cv_prog_CXXCPP=$CXXCPP
5175 fi
5176 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5177 echo "${ECHO_T}$CXXCPP" >&6
5178 ac_preproc_ok=false
5179 for ac_cxx_preproc_warn_flag in '' yes
5180 do
5181   # Use a header file that comes with gcc, so configuring glibc
5182   # with a fresh cross-compiler works.
5183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5184   # <limits.h> exists even on freestanding compilers.
5185   # On the NeXT, cc -E runs the code through the compiler's parser,
5186   # not just through cpp. "Syntax error" is here to catch this case.
5187   cat >conftest.$ac_ext <<_ACEOF
5188 /* confdefs.h.  */
5189 _ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h.  */
5193 #ifdef __STDC__
5194 # include <limits.h>
5195 #else
5196 # include <assert.h>
5197 #endif
5198                      Syntax error
5199 _ACEOF
5200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5202   ac_status=$?
5203   grep -v '^ *+' conftest.er1 >conftest.err
5204   rm -f conftest.er1
5205   cat conftest.err >&5
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); } >/dev/null; then
5208   if test -s conftest.err; then
5209     ac_cpp_err=$ac_cxx_preproc_warn_flag
5210     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5211   else
5212     ac_cpp_err=
5213   fi
5214 else
5215   ac_cpp_err=yes
5216 fi
5217 if test -z "$ac_cpp_err"; then
5218   :
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223   # Broken: fails on valid input.
5224 continue
5225 fi
5226 rm -f conftest.err conftest.$ac_ext
5227
5228   # OK, works on sane cases.  Now check whether non-existent headers
5229   # can be detected and how.
5230   cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h.  */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h.  */
5236 #include <ac_nonexistent.h>
5237 _ACEOF
5238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5240   ac_status=$?
5241   grep -v '^ *+' conftest.er1 >conftest.err
5242   rm -f conftest.er1
5243   cat conftest.err >&5
5244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245   (exit $ac_status); } >/dev/null; then
5246   if test -s conftest.err; then
5247     ac_cpp_err=$ac_cxx_preproc_warn_flag
5248     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5249   else
5250     ac_cpp_err=
5251   fi
5252 else
5253   ac_cpp_err=yes
5254 fi
5255 if test -z "$ac_cpp_err"; then
5256   # Broken: success on invalid input.
5257 continue
5258 else
5259   echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262   # Passes both tests.
5263 ac_preproc_ok=:
5264 break
5265 fi
5266 rm -f conftest.err conftest.$ac_ext
5267
5268 done
5269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5270 rm -f conftest.err conftest.$ac_ext
5271 if $ac_preproc_ok; then
5272   :
5273 else
5274   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5275 See \`config.log' for more details." >&5
5276 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5277 See \`config.log' for more details." >&2;}
5278    { (exit 1); exit 1; }; }
5279 fi
5280
5281 ac_ext=c
5282 ac_cpp='$CPP $CPPFLAGS'
5283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286
5287
5288
5289 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5290 lt_save_CC="$CC"
5291 lt_save_CFLAGS="$CFLAGS"
5292 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5293 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5294 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5295 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5296 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5297 deplibs_check_method="$deplibs_check_method" \
5298 file_magic_cmd="$file_magic_cmd" \
5299 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5300 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5301 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5302 echo "$as_me: error: libtool tag configuration failed" >&2;}
5303    { (exit 1); exit 1; }; }
5304 CC="$lt_save_CC"
5305 CFLAGS="$lt_save_CFLAGS"
5306
5307 # Redirect the config.log output again, so that the ltconfig log is not
5308 # clobbered by the next message.
5309 exec 5>>./config.log
5310
5311
5312
5313
5314
5315
5316
5317 for ac_prog in gcj
5318 do
5319   # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_GCJ+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   if test -n "$GCJ"; then
5327   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334   for ac_exec_ext in '' $ac_executable_extensions; do
5335   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336     ac_cv_prog_GCJ="$ac_prog"
5337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341 done
5342
5343 fi
5344 fi
5345 GCJ=$ac_cv_prog_GCJ
5346 if test -n "$GCJ"; then
5347   echo "$as_me:$LINENO: result: $GCJ" >&5
5348 echo "${ECHO_T}$GCJ" >&6
5349 else
5350   echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6
5352 fi
5353
5354   test -n "$GCJ" && break
5355 done
5356 test -n "$GCJ" || GCJ="gcj"
5357
5358 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5359 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5360    { (exit 1); exit 1; }; }
5361 if test "x${GCJFLAGS-unset}" = xunset; then
5362    GCJFLAGS="-g -O2"
5363 fi
5364
5365
5366 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5367
5368 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5369 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5370 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5374   # We make a subdir and do the tests there.  Otherwise we can end up
5375   # making bogus files that we don't know about and never remove.  For
5376   # instance it was reported that on HP-UX the gcc test will end up
5377   # making a dummy file named `D' -- because `-MD' means `put the output
5378   # in D'.
5379   mkdir conftest.dir
5380   # Copy depcomp to subdir because otherwise we won't find it if we're
5381   # using a relative directory.
5382   cp "$am_depcomp" conftest.dir
5383   cd conftest.dir
5384   # We will build objects and dependencies in a subdirectory because
5385   # it helps to detect inapplicable dependency modes.  For instance
5386   # both Tru64's cc and ICC support -MD to output dependencies as a
5387   # side effect of compilation, but ICC will put the dependencies in
5388   # the current directory while Tru64 will put them in the object
5389   # directory.
5390   mkdir sub
5391
5392   am_cv_GCJ_dependencies_compiler_type=none
5393   if test "$am_compiler_list" = ""; then
5394      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5395   fi
5396   for depmode in $am_compiler_list; do
5397     # Setup a source with many dependencies, because some compilers
5398     # like to wrap large dependency lists on column 80 (with \), and
5399     # we should not choose a depcomp mode which is confused by this.
5400     #
5401     # We need to recreate these files for each test, as the compiler may
5402     # overwrite some of them when testing with obscure command lines.
5403     # This happens at least with the AIX C compiler.
5404     : > sub/conftest.c
5405     for i in 1 2 3 4 5 6; do
5406       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5407       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5408       # Solaris 8's {/usr,}/bin/sh.
5409       touch sub/conftst$i.h
5410     done
5411     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5412
5413     case $depmode in
5414     nosideeffect)
5415       # after this tag, mechanisms are not by side-effect, so they'll
5416       # only be used when explicitly requested
5417       if test "x$enable_dependency_tracking" = xyes; then
5418         continue
5419       else
5420         break
5421       fi
5422       ;;
5423     none) break ;;
5424     esac
5425     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5426     # mode.  It turns out that the SunPro C++ compiler does not properly
5427     # handle `-M -o', and we need to detect this.
5428     if depmode=$depmode \
5429        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5430        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5431        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5432          >/dev/null 2>conftest.err &&
5433        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5434        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5435        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5436       # icc doesn't choke on unknown options, it will just issue warnings
5437       # or remarks (even with -Werror).  So we grep stderr for any message
5438       # that says an option was ignored or not supported.
5439       # When given -MP, icc 7.0 and 7.1 complain thusly:
5440       #   icc: Command line warning: ignoring option '-M'; no argument required
5441       # The diagnosis changed in icc 8.0:
5442       #   icc: Command line remark: option '-MP' not supported
5443       if (grep 'ignoring option' conftest.err ||
5444           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5445         am_cv_GCJ_dependencies_compiler_type=$depmode
5446         break
5447       fi
5448     fi
5449   done
5450
5451   cd ..
5452   rm -rf conftest.dir
5453 else
5454   am_cv_GCJ_dependencies_compiler_type=none
5455 fi
5456
5457 fi
5458 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5459 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5460 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5461
5462
5463
5464 if
5465   test "x$enable_dependency_tracking" != xno \
5466   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5467   am__fastdepGCJ_TRUE=
5468   am__fastdepGCJ_FALSE='#'
5469 else
5470   am__fastdepGCJ_TRUE='#'
5471   am__fastdepGCJ_FALSE=
5472 fi
5473
5474
5475
5476
5477 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5478 lt_save_CC="$CC"
5479 lt_save_CFLAGS="$CFLAGS"
5480 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5481 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5482 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5483 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5484 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5485 deplibs_check_method="$deplibs_check_method" \
5486 file_magic_cmd="$file_magic_cmd" \
5487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5488 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5489 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5490 echo "$as_me: error: libtool tag configuration failed" >&2;}
5491    { (exit 1); exit 1; }; }
5492 CC="$lt_save_CC"
5493 CFLAGS="$lt_save_CFLAGS"
5494
5495 # Redirect the config.log output again, so that the ltconfig log is not
5496 # clobbered by the next message.
5497 exec 5>>./config.log
5498
5499
5500
5501 if test "x$CC" != xcc; then
5502   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5503 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5504 else
5505   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5506 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5507 fi
5508 set dummy $CC; ac_cc=`echo $2 |
5509                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5510 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5511   echo $ECHO_N "(cached) $ECHO_C" >&6
5512 else
5513   cat >conftest.$ac_ext <<_ACEOF
5514 /* confdefs.h.  */
5515 _ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h.  */
5519
5520 int
5521 main ()
5522 {
5523
5524   ;
5525   return 0;
5526 }
5527 _ACEOF
5528 # Make sure it works both with $CC and with simple cc.
5529 # We do the test twice because some compilers refuse to overwrite an
5530 # existing .o file with -o, though they will create one.
5531 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5532 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5533   (eval $ac_try) 2>&5
5534   ac_status=$?
5535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536   (exit $ac_status); } &&
5537    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); };
5542 then
5543   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5544   if test "x$CC" != xcc; then
5545     # Test first that cc exists at all.
5546     if { ac_try='cc -c conftest.$ac_ext >&5'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; }; then
5552       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5553       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); } &&
5558          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5559   (eval $ac_try) 2>&5
5560   ac_status=$?
5561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562   (exit $ac_status); };
5563       then
5564         # cc works too.
5565         :
5566       else
5567         # cc exists but doesn't like -o.
5568         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5569       fi
5570     fi
5571   fi
5572 else
5573   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5574 fi
5575 rm -f conftest*
5576
5577 fi
5578 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5579   echo "$as_me:$LINENO: result: yes" >&5
5580 echo "${ECHO_T}yes" >&6
5581 else
5582   echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5584
5585 cat >>confdefs.h <<\_ACEOF
5586 #define NO_MINUS_C_MINUS_O 1
5587 _ACEOF
5588
5589 fi
5590
5591 # FIXME: we rely on the cache variable name because
5592 # there is no other way.
5593 set dummy $CC
5594 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5595 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5596    # Losing compiler, so override with the script.
5597    # FIXME: It is wrong to rewrite CC.
5598    # But if we don't then we get into trouble of one sort or another.
5599    # A longer-term fix would be to have automake use am__CC in this case,
5600    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5601    CC="$am_aux_dir/compile $CC"
5602 fi
5603
5604
5605
5606 subdirs="$subdirs libltdl"
5607
5608
5609 # The -no-testsuite modules omit the test subdir.
5610
5611
5612 if test -d $srcdir/testsuite; then
5613   TESTSUBDIR_TRUE=
5614   TESTSUBDIR_FALSE='#'
5615 else
5616   TESTSUBDIR_TRUE='#'
5617   TESTSUBDIR_FALSE=
5618 fi
5619
5620
5621 # Should the runtime set system properties by examining the
5622 # environment variable GCJ_PROPERTIES?
5623 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5624 if test "${enable_getenv_properties+set}" = set; then
5625   enableval="$enable_getenv_properties"
5626
5627 fi;
5628
5629 # Whether GCJ_PROPERTIES is used depends on the target.
5630 if test -z "$enable_getenv_properties"; then
5631    enable_getenv_properties=${enable_getenv_properties_default-yes}
5632 fi
5633 if test "$enable_getenv_properties" = no; then
5634
5635 cat >>confdefs.h <<\_ACEOF
5636 #define DISABLE_GETENV_PROPERTIES 1
5637 _ACEOF
5638
5639 fi
5640
5641 # Whether we should use arguments to main()
5642 if test -z "$enable_main_args"; then
5643    enable_main_args=${enable_main_args_default-yes}
5644 fi
5645 if test "$enable_main_args" = no; then
5646
5647 cat >>confdefs.h <<\_ACEOF
5648 #define DISABLE_MAIN_ARGS 1
5649 _ACEOF
5650
5651 fi
5652
5653
5654 # Should we use hashtable-based synchronization?
5655 # Currently works only for Linux X86/ia64
5656 # Typically faster and more space-efficient
5657 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5658 if test "${enable_hash_synchronization+set}" = set; then
5659   enableval="$enable_hash_synchronization"
5660
5661 fi;
5662
5663 if test -z "$enable_hash_synchronization"; then
5664    enable_hash_synchronization=$enable_hash_synchronization_default
5665 fi
5666
5667 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5668 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5669 if test "${enable_libgcj_multifile+set}" = set; then
5670   enableval="$enable_libgcj_multifile"
5671   case "${enableval}" in
5672   yes) enable_libgcj_multifile=yes ;;
5673   no)  enable_libgcj_multifile=no ;;
5674   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5675 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5676    { (exit 1); exit 1; }; } ;;
5677 esac
5678 else
5679   enable_libgcj_multifile=no
5680 fi;
5681
5682
5683 if test "$enable_libgcj_multifile" = yes; then
5684   ONESTEP_TRUE=
5685   ONESTEP_FALSE='#'
5686 else
5687   ONESTEP_TRUE='#'
5688   ONESTEP_FALSE=
5689 fi
5690
5691
5692
5693 # Check whether --with-java-home or --without-java-home was given.
5694 if test "${with_java_home+set}" = set; then
5695   withval="$with_java_home"
5696   JAVA_HOME="${withval}"
5697 else
5698   JAVA_HOME=""
5699 fi;
5700
5701
5702 if test ! -z "$JAVA_HOME"; then
5703   JAVA_HOME_SET_TRUE=
5704   JAVA_HOME_SET_FALSE='#'
5705 else
5706   JAVA_HOME_SET_TRUE='#'
5707   JAVA_HOME_SET_FALSE=
5708 fi
5709
5710
5711
5712 # What is the native OS API for MinGW?
5713
5714 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5715 if test "${with_win32_nlsapi+set}" = set; then
5716   withval="$with_win32_nlsapi"
5717   case "${withval}" in
5718   ansi) with_win32_nlsapi=ansi ;;
5719   unicows) with_win32_nlsapi=unicows ;;
5720   unicode) with_win32_nlsapi=unicode ;;
5721   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5722 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5723    { (exit 1); exit 1; }; } ;;
5724 esac
5725 else
5726   with_win32_nlsapi=ansi
5727 fi;
5728
5729 case "${with_win32_nlsapi}" in
5730   unicows | unicode)
5731
5732 cat >>confdefs.h <<\_ACEOF
5733 #define MINGW_LIBGCJ_UNICODE 1
5734 _ACEOF
5735
5736     ;;
5737 esac
5738
5739 # configure.host sets slow_pthread_self if the synchronization code should
5740 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5741 if test "${slow_pthread_self}" = "yes"; then
5742
5743 cat >>confdefs.h <<\_ACEOF
5744 #define SLOW_PTHREAD_SELF 1
5745 _ACEOF
5746
5747 fi
5748
5749
5750 # See if the user has requested runtime debugging.
5751 LIBGCJDEBUG="false"
5752
5753 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5754 if test "${enable_libgcj_debug+set}" = set; then
5755   enableval="$enable_libgcj_debug"
5756   if test "$enable_libgcj_debug" = yes; then
5757
5758 cat >>confdefs.h <<\_ACEOF
5759 #define DEBUG 1
5760 _ACEOF
5761
5762     LIBGCJDEBUG="true"
5763   fi
5764 fi;
5765
5766 # Check for gc debugging.  This option is handled both here and in the GC.
5767 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5768 if test "${enable_gc_debug+set}" = set; then
5769   enableval="$enable_gc_debug"
5770    if test "$enable_gc_debug" = "yes"; then
5771
5772 cat >>confdefs.h <<\_ACEOF
5773 #define LIBGCJ_GC_DEBUG 1
5774 _ACEOF
5775
5776   fi
5777 fi;
5778
5779 # See if the user has the interpreter included.
5780 # Check whether --enable-interpreter or --disable-interpreter was given.
5781 if test "${enable_interpreter+set}" = set; then
5782   enableval="$enable_interpreter"
5783   if test "$enable_interpreter" = yes; then
5784     # This can also be set in configure.host.
5785     libgcj_interpreter=yes
5786   elif test "$enable_interpreter" = no; then
5787     libgcj_interpreter=no
5788   fi
5789 fi;
5790
5791 if test "$libgcj_interpreter" = yes; then
5792
5793 cat >>confdefs.h <<\_ACEOF
5794 #define INTERPRETER 1
5795 _ACEOF
5796
5797 fi
5798 INTERPRETER="$libgcj_interpreter"
5799
5800
5801 echo "$as_me:$LINENO: checking for exception model to use" >&5
5802 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5803 ac_ext=cc
5804 ac_cpp='$CXXCPP $CPPFLAGS'
5805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5808
5809 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5810 if test "${enable_sjlj_exceptions+set}" = set; then
5811   enableval="$enable_sjlj_exceptions"
5812   :
5813 else
5814   cat > conftest.$ac_ext << EOF
5815 #line 5815 "configure"
5816 struct S { ~S(); };
5817 void bar();
5818 void foo()
5819 {
5820   S s;
5821   bar();
5822 }
5823 EOF
5824 old_CXXFLAGS="$CXXFLAGS"
5825 CXXFLAGS=-S
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827   (eval $ac_compile) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); }; then
5831   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5832     enable_sjlj_exceptions=yes
5833   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5834     enable_sjlj_exceptions=no
5835   fi
5836 fi
5837 CXXFLAGS="$old_CXXFLAGS"
5838 rm -f conftest*
5839 fi;
5840 if test x$enable_sjlj_exceptions = xyes; then
5841
5842 cat >>confdefs.h <<\_ACEOF
5843 #define SJLJ_EXCEPTIONS 1
5844 _ACEOF
5845
5846   ac_exception_model_name=sjlj
5847 elif test x$enable_sjlj_exceptions = xno; then
5848   ac_exception_model_name="call frame"
5849 else
5850   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5851 echo "$as_me: error: unable to detect exception model" >&2;}
5852    { (exit 1); exit 1; }; }
5853 fi
5854 ac_ext=c
5855 ac_cpp='$CPP $CPPFLAGS'
5856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859
5860 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5861 echo "${ECHO_T}$ac_exception_model_name" >&6
5862
5863 # If we are non using SJLJ exceptions, and this host does not have support
5864 # for unwinding from a signal handler, enable checked dereferences and divides.
5865 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5866   CHECKREFSPEC=-fcheck-references
5867   DIVIDESPEC=-fuse-divide-subroutine
5868   EXCEPTIONSPEC=
5869 fi
5870
5871 # See if the user wants to disable java.net.  This is the mildly
5872 # ugly way that we admit that target-side configuration sucks.
5873 # Check whether --enable-java-net or --disable-java-net was given.
5874 if test "${enable_java_net+set}" = set; then
5875   enableval="$enable_java_net"
5876
5877 fi;
5878
5879 # Whether java.net is built by default can depend on the target.
5880 if test -z "$enable_java_net"; then
5881    enable_java_net=${enable_java_net_default-yes}
5882 fi
5883 if test "$enable_java_net" = no; then
5884
5885 cat >>confdefs.h <<\_ACEOF
5886 #define DISABLE_JAVA_NET 1
5887 _ACEOF
5888
5889 fi
5890
5891 # See if the user wants to configure without libffi.  Some
5892 # architectures don't support it, and default values are set in
5893 # configure.host.
5894
5895 # Check whether --with-libffi or --without-libffi was given.
5896 if test "${with_libffi+set}" = set; then
5897   withval="$with_libffi"
5898   :
5899 else
5900   with_libffi=${with_libffi_default-yes}
5901 fi;
5902
5903 LIBFFI=
5904 LIBFFIINCS=
5905 if test "$with_libffi" != no; then
5906
5907 cat >>confdefs.h <<\_ACEOF
5908 #define USE_LIBFFI 1
5909 _ACEOF
5910
5911    LIBFFI=../libffi/libffi_convenience.la
5912    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5913 fi
5914
5915
5916
5917 # See if the user wants to disable JVMPI support.
5918 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5919 if test "${enable_jvmpi+set}" = set; then
5920   enableval="$enable_jvmpi"
5921
5922 fi;
5923
5924 if test "$enable_jvmpi" != no; then
5925
5926 cat >>confdefs.h <<\_ACEOF
5927 #define ENABLE_JVMPI 1
5928 _ACEOF
5929
5930 fi
5931
5932 # If the target is an eCos system, use the appropriate eCos
5933 # I/O routines.
5934 # FIXME: this should not be a local option but a global target
5935 # system; at present there is no eCos target.
5936 TARGET_ECOS=${PROCESS-"no"}
5937
5938 # Check whether --with-ecos or --without-ecos was given.
5939 if test "${with_ecos+set}" = set; then
5940   withval="$with_ecos"
5941   TARGET_ECOS="$with_ecos"
5942
5943 fi;
5944
5945 supply_backtrace=no
5946
5947 PLATFORM_INNER_NAT_HDRS=
5948 case "$TARGET_ECOS" in
5949    no) case "$host" in
5950       *mingw*)
5951             PLATFORM=Win32
5952             PLATFORMNET=Win32
5953             PLATFORMH=win32.h
5954
5955 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5956 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5957 LD_PROG=`$CC --print-prog-name=ld`
5958 LD_VERSION=`$LD_PROG --version`
5959 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5960 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5961 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5962   LD_OK="ok"
5963 else
5964   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5965     LD_OK="ok"
5966   fi
5967 fi
5968 if test "x$LD_OK" != x; then
5969   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5970 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5971 else
5972   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5973 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5974   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5975 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5976
5977 cat >>confdefs.h <<\_ACEOF
5978 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5979 _ACEOF
5980
5981 fi
5982       ;;
5983       *)
5984             PLATFORM=Posix
5985             PLATFORMNET=Posix
5986             PLATFORMH=posix.h
5987             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5988       ;;
5989       esac
5990       ;;
5991    *)
5992       PLATFORM=Ecos
5993       PLATFORMNET=NoNet
5994
5995 cat >>confdefs.h <<\_ACEOF
5996 #define ECOS 1
5997 _ACEOF
5998
5999       PLATFORMH=posix.h
6000       ;;
6001 esac
6002
6003           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6004
6005
6006 ac_ext=c
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6012 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6013 # On Suns, sometimes $CPP names a directory.
6014 if test -n "$CPP" && test -d "$CPP"; then
6015   CPP=
6016 fi
6017 if test -z "$CPP"; then
6018   if test "${ac_cv_prog_CPP+set}" = set; then
6019   echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021       # Double quotes because CPP needs to be expanded
6022     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6023     do
6024       ac_preproc_ok=false
6025 for ac_c_preproc_warn_flag in '' yes
6026 do
6027   # Use a header file that comes with gcc, so configuring glibc
6028   # with a fresh cross-compiler works.
6029   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030   # <limits.h> exists even on freestanding compilers.
6031   # On the NeXT, cc -E runs the code through the compiler's parser,
6032   # not just through cpp. "Syntax error" is here to catch this case.
6033   cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h.  */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h.  */
6039 #ifdef __STDC__
6040 # include <limits.h>
6041 #else
6042 # include <assert.h>
6043 #endif
6044                      Syntax error
6045 _ACEOF
6046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } >/dev/null; then
6054   if test -s conftest.err; then
6055     ac_cpp_err=$ac_c_preproc_warn_flag
6056     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6057   else
6058     ac_cpp_err=
6059   fi
6060 else
6061   ac_cpp_err=yes
6062 fi
6063 if test -z "$ac_cpp_err"; then
6064   :
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069   # Broken: fails on valid input.
6070 continue
6071 fi
6072 rm -f conftest.err conftest.$ac_ext
6073
6074   # OK, works on sane cases.  Now check whether non-existent headers
6075   # can be detected and how.
6076   cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082 #include <ac_nonexistent.h>
6083 _ACEOF
6084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } >/dev/null; then
6092   if test -s conftest.err; then
6093     ac_cpp_err=$ac_c_preproc_warn_flag
6094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6095   else
6096     ac_cpp_err=
6097   fi
6098 else
6099   ac_cpp_err=yes
6100 fi
6101 if test -z "$ac_cpp_err"; then
6102   # Broken: success on invalid input.
6103 continue
6104 else
6105   echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108   # Passes both tests.
6109 ac_preproc_ok=:
6110 break
6111 fi
6112 rm -f conftest.err conftest.$ac_ext
6113
6114 done
6115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6116 rm -f conftest.err conftest.$ac_ext
6117 if $ac_preproc_ok; then
6118   break
6119 fi
6120
6121     done
6122     ac_cv_prog_CPP=$CPP
6123
6124 fi
6125   CPP=$ac_cv_prog_CPP
6126 else
6127   ac_cv_prog_CPP=$CPP
6128 fi
6129 echo "$as_me:$LINENO: result: $CPP" >&5
6130 echo "${ECHO_T}$CPP" >&6
6131 ac_preproc_ok=false
6132 for ac_c_preproc_warn_flag in '' yes
6133 do
6134   # Use a header file that comes with gcc, so configuring glibc
6135   # with a fresh cross-compiler works.
6136   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6137   # <limits.h> exists even on freestanding compilers.
6138   # On the NeXT, cc -E runs the code through the compiler's parser,
6139   # not just through cpp. "Syntax error" is here to catch this case.
6140   cat >conftest.$ac_ext <<_ACEOF
6141 /* confdefs.h.  */
6142 _ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h.  */
6146 #ifdef __STDC__
6147 # include <limits.h>
6148 #else
6149 # include <assert.h>
6150 #endif
6151                      Syntax error
6152 _ACEOF
6153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6155   ac_status=$?
6156   grep -v '^ *+' conftest.er1 >conftest.err
6157   rm -f conftest.er1
6158   cat conftest.err >&5
6159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160   (exit $ac_status); } >/dev/null; then
6161   if test -s conftest.err; then
6162     ac_cpp_err=$ac_c_preproc_warn_flag
6163     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6164   else
6165     ac_cpp_err=
6166   fi
6167 else
6168   ac_cpp_err=yes
6169 fi
6170 if test -z "$ac_cpp_err"; then
6171   :
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176   # Broken: fails on valid input.
6177 continue
6178 fi
6179 rm -f conftest.err conftest.$ac_ext
6180
6181   # OK, works on sane cases.  Now check whether non-existent headers
6182   # can be detected and how.
6183   cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h.  */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h.  */
6189 #include <ac_nonexistent.h>
6190 _ACEOF
6191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } >/dev/null; then
6199   if test -s conftest.err; then
6200     ac_cpp_err=$ac_c_preproc_warn_flag
6201     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6202   else
6203     ac_cpp_err=
6204   fi
6205 else
6206   ac_cpp_err=yes
6207 fi
6208 if test -z "$ac_cpp_err"; then
6209   # Broken: success on invalid input.
6210 continue
6211 else
6212   echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6214
6215   # Passes both tests.
6216 ac_preproc_ok=:
6217 break
6218 fi
6219 rm -f conftest.err conftest.$ac_ext
6220
6221 done
6222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6223 rm -f conftest.err conftest.$ac_ext
6224 if $ac_preproc_ok; then
6225   :
6226 else
6227   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6228 See \`config.log' for more details." >&5
6229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6230 See \`config.log' for more details." >&2;}
6231    { (exit 1); exit 1; }; }
6232 fi
6233
6234 ac_ext=c
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239
6240
6241 echo "$as_me:$LINENO: checking for egrep" >&5
6242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6243 if test "${ac_cv_prog_egrep+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6247     then ac_cv_prog_egrep='grep -E'
6248     else ac_cv_prog_egrep='egrep'
6249     fi
6250 fi
6251 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6252 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6253  EGREP=$ac_cv_prog_egrep
6254
6255
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 #include <stdint.h>
6263
6264 _ACEOF
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266   $EGREP "uint32_t" >/dev/null 2>&1; then
6267
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_INT32_DEFINED 1
6270 _ACEOF
6271
6272 fi
6273 rm -f conftest*
6274
6275 cat >conftest.$ac_ext <<_ACEOF
6276 /* confdefs.h.  */
6277 _ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h.  */
6281 #include <inttypes.h>
6282
6283 _ACEOF
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285   $EGREP "uint32_t" >/dev/null 2>&1; then
6286
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_INT32_DEFINED 1
6289 _ACEOF
6290
6291 fi
6292 rm -f conftest*
6293
6294 cat >conftest.$ac_ext <<_ACEOF
6295 /* confdefs.h.  */
6296 _ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h.  */
6300 #include <sys/types.h>
6301
6302 _ACEOF
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304   $EGREP "u_int32_t" >/dev/null 2>&1; then
6305
6306 cat >>confdefs.h <<\_ACEOF
6307 #define HAVE_BSD_INT32_DEFINED 1
6308 _ACEOF
6309
6310 fi
6311 rm -f conftest*
6312
6313 cat >conftest.$ac_ext <<_ACEOF
6314 /* confdefs.h.  */
6315 _ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h.  */
6319 #include <sys/config.h>
6320
6321 _ACEOF
6322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323   $EGREP "u_int32_t" >/dev/null 2>&1; then
6324
6325 cat >>confdefs.h <<\_ACEOF
6326 #define HAVE_BSD_INT32_DEFINED 1
6327 _ACEOF
6328
6329 fi
6330 rm -f conftest*
6331
6332
6333
6334
6335 if test "$PLATFORM" = Win32; then
6336   USING_WIN32_PLATFORM_TRUE=
6337   USING_WIN32_PLATFORM_FALSE='#'
6338 else
6339   USING_WIN32_PLATFORM_TRUE='#'
6340   USING_WIN32_PLATFORM_FALSE=
6341 fi
6342
6343
6344
6345 if test "$PLATFORM" = Posix; then
6346   USING_POSIX_PLATFORM_TRUE=
6347   USING_POSIX_PLATFORM_FALSE='#'
6348 else
6349   USING_POSIX_PLATFORM_TRUE='#'
6350   USING_POSIX_PLATFORM_FALSE=
6351 fi
6352
6353
6354
6355 if test "$PLATFORM" = Ecos; then
6356   USING_ECOS_PLATFORM_TRUE=
6357   USING_ECOS_PLATFORM_FALSE='#'
6358 else
6359   USING_ECOS_PLATFORM_TRUE='#'
6360   USING_ECOS_PLATFORM_FALSE=
6361 fi
6362
6363
6364 case "$host" in
6365   *-darwin*) DARWIN_CRT=true ;;
6366   *) DARWIN_CRT=false ;;
6367 esac
6368
6369
6370 if $DARWIN_CRT; then
6371   USING_DARWIN_CRT_TRUE=
6372   USING_DARWIN_CRT_FALSE='#'
6373 else
6374   USING_DARWIN_CRT_TRUE='#'
6375   USING_DARWIN_CRT_FALSE=
6376 fi
6377
6378
6379 # These may not be defined in a non-ANS conformant embedded system.
6380 # FIXME: Should these case a runtime exception in that case?
6381 cat >conftest.$ac_ext <<_ACEOF
6382 /* confdefs.h.  */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h.  */
6387 #include <time.h>
6388
6389 _ACEOF
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391   $EGREP "mktime" >/dev/null 2>&1; then
6392
6393 cat >>confdefs.h <<\_ACEOF
6394 #define HAVE_MKTIME 1
6395 _ACEOF
6396
6397 fi
6398 rm -f conftest*
6399
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 #include <time.h>
6407
6408 _ACEOF
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410   $EGREP "localtime" >/dev/null 2>&1; then
6411
6412 cat >>confdefs.h <<\_ACEOF
6413 #define HAVE_LOCALTIME 1
6414 _ACEOF
6415
6416 fi
6417 rm -f conftest*
6418
6419
6420 # Create the subdirectory for natFile.cc, or the attempt
6421 # to create the link will fail.
6422 test -d java || mkdir java
6423 test -d java/io || mkdir java/io
6424 test -d gnu || mkdir gnu
6425           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6426
6427
6428 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6429 test -d java/lang || mkdir java/lang
6430           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6431
6432           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6433
6434
6435 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6436 test -d java/net || mkdir java/net
6437           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6438
6439           ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6440
6441
6442 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6443 test -d gnu/java || mkdir gnu/java
6444 test -d gnu/java/net || mkdir gnu/java/net
6445           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6446
6447           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6448
6449
6450 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6451 test -d gnu/java/nio || mkdir gnu/java/nio
6452           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6453
6454           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6455
6456 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6457           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6458
6459
6460 case "${host}" in
6461     *mingw*)
6462       SYSTEMSPEC="-lgdi32 -lws2_32"
6463       if test "${with_win32_nlsapi}" = "unicows"; then
6464         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6465       fi
6466     ;;
6467     *)
6468       SYSTEMSPEC=
6469     ;;
6470 esac
6471
6472
6473 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6474
6475
6476
6477 # Check whether --with-system-zlib or --without-system-zlib was given.
6478 if test "${with_system_zlib+set}" = set; then
6479   withval="$with_system_zlib"
6480
6481 fi;
6482 ZLIBSPEC=
6483
6484 ZLIBTESTSPEC=
6485
6486
6487 echo "$as_me:$LINENO: checking for X" >&5
6488 echo $ECHO_N "checking for X... $ECHO_C" >&6
6489
6490
6491 # Check whether --with-x or --without-x was given.
6492 if test "${with_x+set}" = set; then
6493   withval="$with_x"
6494
6495 fi;
6496 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6497 if test "x$with_x" = xno; then
6498   # The user explicitly disabled X.
6499   have_x=disabled
6500 else
6501   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6502     # Both variables are already set.
6503     have_x=yes
6504   else
6505     if test "${ac_cv_have_x+set}" = set; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   # One or both of the vars are not set, and there is no cached value.
6509 ac_x_includes=no ac_x_libraries=no
6510 rm -fr conftest.dir
6511 if mkdir conftest.dir; then
6512   cd conftest.dir
6513   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6514   cat >Imakefile <<'_ACEOF'
6515 acfindx:
6516         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6517 _ACEOF
6518   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6519     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6520     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6521     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6522     for ac_extension in a so sl; do
6523       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6524          test -f $ac_im_libdir/libX11.$ac_extension; then
6525         ac_im_usrlibdir=$ac_im_libdir; break
6526       fi
6527     done
6528     # Screen out bogus values from the imake configuration.  They are
6529     # bogus both because they are the default anyway, and because
6530     # using them would break gcc on systems where it needs fixed includes.
6531     case $ac_im_incroot in
6532         /usr/include) ;;
6533         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6534     esac
6535     case $ac_im_usrlibdir in
6536         /usr/lib | /lib) ;;
6537         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6538     esac
6539   fi
6540   cd ..
6541   rm -fr conftest.dir
6542 fi
6543
6544 # Standard set of common directories for X headers.
6545 # Check X11 before X11Rn because it is often a symlink to the current release.
6546 ac_x_header_dirs='
6547 /usr/X11/include
6548 /usr/X11R6/include
6549 /usr/X11R5/include
6550 /usr/X11R4/include
6551
6552 /usr/include/X11
6553 /usr/include/X11R6
6554 /usr/include/X11R5
6555 /usr/include/X11R4
6556
6557 /usr/local/X11/include
6558 /usr/local/X11R6/include
6559 /usr/local/X11R5/include
6560 /usr/local/X11R4/include
6561
6562 /usr/local/include/X11
6563 /usr/local/include/X11R6
6564 /usr/local/include/X11R5
6565 /usr/local/include/X11R4
6566
6567 /usr/X386/include
6568 /usr/x386/include
6569 /usr/XFree86/include/X11
6570
6571 /usr/include
6572 /usr/local/include
6573 /usr/unsupported/include
6574 /usr/athena/include
6575 /usr/local/x11r5/include
6576 /usr/lpp/Xamples/include
6577
6578 /usr/openwin/include
6579 /usr/openwin/share/include'
6580
6581 if test "$ac_x_includes" = no; then
6582   # Guess where to find include files, by looking for Intrinsic.h.
6583   # First, try using that file with no special directory specified.
6584   cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 #include <X11/Intrinsic.h>
6591 _ACEOF
6592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } >/dev/null; then
6600   if test -s conftest.err; then
6601     ac_cpp_err=$ac_c_preproc_warn_flag
6602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6603   else
6604     ac_cpp_err=
6605   fi
6606 else
6607   ac_cpp_err=yes
6608 fi
6609 if test -z "$ac_cpp_err"; then
6610   # We can compile using X headers with no special include directory.
6611 ac_x_includes=
6612 else
6613   echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6615
6616   for ac_dir in $ac_x_header_dirs; do
6617   if test -r "$ac_dir/X11/Intrinsic.h"; then
6618     ac_x_includes=$ac_dir
6619     break
6620   fi
6621 done
6622 fi
6623 rm -f conftest.err conftest.$ac_ext
6624 fi # $ac_x_includes = no
6625
6626 if test "$ac_x_libraries" = no; then
6627   # Check for the libraries.
6628   # See if we find them without any special options.
6629   # Don't add to $LIBS permanently.
6630   ac_save_LIBS=$LIBS
6631   LIBS="-lXt $LIBS"
6632   if test x$gcc_no_link = xyes; then
6633   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6635    { (exit 1); exit 1; }; }
6636 fi
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643 #include <X11/Intrinsic.h>
6644 int
6645 main ()
6646 {
6647 XtMalloc (0)
6648   ;
6649   return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654   (eval $ac_link) 2>conftest.er1
6655   ac_status=$?
6656   grep -v '^ *+' conftest.er1 >conftest.err
6657   rm -f conftest.er1
6658   cat conftest.err >&5
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } &&
6661          { ac_try='test -z "$ac_c_werror_flag"
6662                          || test ! -s conftest.err'
6663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664   (eval $ac_try) 2>&5
6665   ac_status=$?
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); }; } &&
6668          { ac_try='test -s conftest$ac_exeext'
6669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6670   (eval $ac_try) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); }; }; then
6674   LIBS=$ac_save_LIBS
6675 # We can link X programs with no special library path.
6676 ac_x_libraries=
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6680
6681 LIBS=$ac_save_LIBS
6682 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6683 do
6684   # Don't even attempt the hair of trying to link an X program!
6685   for ac_extension in a so sl; do
6686     if test -r $ac_dir/libXt.$ac_extension; then
6687       ac_x_libraries=$ac_dir
6688       break 2
6689     fi
6690   done
6691 done
6692 fi
6693 rm -f conftest.err conftest.$ac_objext \
6694       conftest$ac_exeext conftest.$ac_ext
6695 fi # $ac_x_libraries = no
6696
6697 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6698   # Didn't find X anywhere.  Cache the known absence of X.
6699   ac_cv_have_x="have_x=no"
6700 else
6701   # Record where we found X for the cache.
6702   ac_cv_have_x="have_x=yes \
6703                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6704 fi
6705 fi
6706
6707   fi
6708   eval "$ac_cv_have_x"
6709 fi # $with_x != no
6710
6711 if test "$have_x" != yes; then
6712   echo "$as_me:$LINENO: result: $have_x" >&5
6713 echo "${ECHO_T}$have_x" >&6
6714   no_x=yes
6715 else
6716   # If each of the values was on the command line, it overrides each guess.
6717   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6718   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6719   # Update the cache value to reflect the command line values.
6720   ac_cv_have_x="have_x=yes \
6721                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6722   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6723 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6724 fi
6725
6726 if test "$no_x" = yes; then
6727   # Not all programs may use this symbol, but it does not hurt to define it.
6728
6729 cat >>confdefs.h <<\_ACEOF
6730 #define X_DISPLAY_MISSING 1
6731 _ACEOF
6732
6733   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6734 else
6735   if test -n "$x_includes"; then
6736     X_CFLAGS="$X_CFLAGS -I$x_includes"
6737   fi
6738
6739   # It would also be nice to do this for all -L options, not just this one.
6740   if test -n "$x_libraries"; then
6741     X_LIBS="$X_LIBS -L$x_libraries"
6742     # For Solaris; some versions of Sun CC require a space after -R and
6743     # others require no space.  Words are not sufficient . . . .
6744     case `(uname -sr) 2>/dev/null` in
6745     "SunOS 5"*)
6746       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6748       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6749       if test x$gcc_no_link = xyes; then
6750   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6751 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6752    { (exit 1); exit 1; }; }
6753 fi
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760
6761 int
6762 main ()
6763 {
6764
6765   ;
6766   return 0;
6767 }
6768 _ACEOF
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771   (eval $ac_link) 2>conftest.er1
6772   ac_status=$?
6773   grep -v '^ *+' conftest.er1 >conftest.err
6774   rm -f conftest.er1
6775   cat conftest.err >&5
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -z "$ac_c_werror_flag"
6779                          || test ! -s conftest.err'
6780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781   (eval $ac_try) 2>&5
6782   ac_status=$?
6783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784   (exit $ac_status); }; } &&
6785          { ac_try='test -s conftest$ac_exeext'
6786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787   (eval $ac_try) 2>&5
6788   ac_status=$?
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); }; }; then
6791   ac_R_nospace=yes
6792 else
6793   echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 ac_R_nospace=no
6797 fi
6798 rm -f conftest.err conftest.$ac_objext \
6799       conftest$ac_exeext conftest.$ac_ext
6800       if test $ac_R_nospace = yes; then
6801         echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6
6803         X_LIBS="$X_LIBS -R$x_libraries"
6804       else
6805         LIBS="$ac_xsave_LIBS -R $x_libraries"
6806         if test x$gcc_no_link = xyes; then
6807   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6809    { (exit 1); exit 1; }; }
6810 fi
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817
6818 int
6819 main ()
6820 {
6821
6822   ;
6823   return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828   (eval $ac_link) 2>conftest.er1
6829   ac_status=$?
6830   grep -v '^ *+' conftest.er1 >conftest.err
6831   rm -f conftest.er1
6832   cat conftest.err >&5
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); } &&
6835          { ac_try='test -z "$ac_c_werror_flag"
6836                          || test ! -s conftest.err'
6837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838   (eval $ac_try) 2>&5
6839   ac_status=$?
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); }; } &&
6842          { ac_try='test -s conftest$ac_exeext'
6843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844   (eval $ac_try) 2>&5
6845   ac_status=$?
6846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847   (exit $ac_status); }; }; then
6848   ac_R_space=yes
6849 else
6850   echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ac_R_space=no
6854 fi
6855 rm -f conftest.err conftest.$ac_objext \
6856       conftest$ac_exeext conftest.$ac_ext
6857         if test $ac_R_space = yes; then
6858           echo "$as_me:$LINENO: result: yes" >&5
6859 echo "${ECHO_T}yes" >&6
6860           X_LIBS="$X_LIBS -R $x_libraries"
6861         else
6862           echo "$as_me:$LINENO: result: neither works" >&5
6863 echo "${ECHO_T}neither works" >&6
6864         fi
6865       fi
6866       LIBS=$ac_xsave_LIBS
6867     esac
6868   fi
6869
6870   # Check for system-dependent libraries X programs must link with.
6871   # Do this before checking for the system-independent R6 libraries
6872   # (-lICE), since we may need -lsocket or whatever for X linking.
6873
6874   if test "$ISC" = yes; then
6875     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6876   else
6877     # Martyn Johnson says this is needed for Ultrix, if the X
6878     # libraries were built with DECnet support.  And Karl Berry says
6879     # the Alpha needs dnet_stub (dnet does not exist).
6880     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6881     if test x$gcc_no_link = xyes; then
6882   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6884    { (exit 1); exit 1; }; }
6885 fi
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892
6893 /* Override any gcc2 internal prototype to avoid an error.  */
6894 #ifdef __cplusplus
6895 extern "C"
6896 #endif
6897 /* We use char because int might match the return type of a gcc2
6898    builtin and then its argument prototype would still apply.  */
6899 char XOpenDisplay ();
6900 int
6901 main ()
6902 {
6903 XOpenDisplay ();
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910   (eval $ac_link) 2>conftest.er1
6911   ac_status=$?
6912   grep -v '^ *+' conftest.er1 >conftest.err
6913   rm -f conftest.er1
6914   cat conftest.err >&5
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } &&
6917          { ac_try='test -z "$ac_c_werror_flag"
6918                          || test ! -s conftest.err'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; } &&
6924          { ac_try='test -s conftest$ac_exeext'
6925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926   (eval $ac_try) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); }; }; then
6930   :
6931 else
6932   echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6936 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6937 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   ac_check_lib_save_LIBS=$LIBS
6941 LIBS="-ldnet  $LIBS"
6942 if test x$gcc_no_link = xyes; then
6943   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6945    { (exit 1); exit 1; }; }
6946 fi
6947 cat >conftest.$ac_ext <<_ACEOF
6948 /* confdefs.h.  */
6949 _ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h.  */
6953
6954 /* Override any gcc2 internal prototype to avoid an error.  */
6955 #ifdef __cplusplus
6956 extern "C"
6957 #endif
6958 /* We use char because int might match the return type of a gcc2
6959    builtin and then its argument prototype would still apply.  */
6960 char dnet_ntoa ();
6961 int
6962 main ()
6963 {
6964 dnet_ntoa ();
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971   (eval $ac_link) 2>conftest.er1
6972   ac_status=$?
6973   grep -v '^ *+' conftest.er1 >conftest.err
6974   rm -f conftest.er1
6975   cat conftest.err >&5
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); } &&
6978          { ac_try='test -z "$ac_c_werror_flag"
6979                          || test ! -s conftest.err'
6980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981   (eval $ac_try) 2>&5
6982   ac_status=$?
6983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984   (exit $ac_status); }; } &&
6985          { ac_try='test -s conftest$ac_exeext'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; }; then
6991   ac_cv_lib_dnet_dnet_ntoa=yes
6992 else
6993   echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_lib_dnet_dnet_ntoa=no
6997 fi
6998 rm -f conftest.err conftest.$ac_objext \
6999       conftest$ac_exeext conftest.$ac_ext
7000 LIBS=$ac_check_lib_save_LIBS
7001 fi
7002 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7003 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7004 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7005   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7006 fi
7007
7008     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7009       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7010 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7011 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7012   echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014   ac_check_lib_save_LIBS=$LIBS
7015 LIBS="-ldnet_stub  $LIBS"
7016 if test x$gcc_no_link = xyes; then
7017   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7018 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7019    { (exit 1); exit 1; }; }
7020 fi
7021 cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h.  */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h.  */
7027
7028 /* Override any gcc2 internal prototype to avoid an error.  */
7029 #ifdef __cplusplus
7030 extern "C"
7031 #endif
7032 /* We use char because int might match the return type of a gcc2
7033    builtin and then its argument prototype would still apply.  */
7034 char dnet_ntoa ();
7035 int
7036 main ()
7037 {
7038 dnet_ntoa ();
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045   (eval $ac_link) 2>conftest.er1
7046   ac_status=$?
7047   grep -v '^ *+' conftest.er1 >conftest.err
7048   rm -f conftest.er1
7049   cat conftest.err >&5
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } &&
7052          { ac_try='test -z "$ac_c_werror_flag"
7053                          || test ! -s conftest.err'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; } &&
7059          { ac_try='test -s conftest$ac_exeext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7066 else
7067   echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7069
7070 ac_cv_lib_dnet_stub_dnet_ntoa=no
7071 fi
7072 rm -f conftest.err conftest.$ac_objext \
7073       conftest$ac_exeext conftest.$ac_ext
7074 LIBS=$ac_check_lib_save_LIBS
7075 fi
7076 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7077 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7078 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7079   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7080 fi
7081
7082     fi
7083 fi
7084 rm -f conftest.err conftest.$ac_objext \
7085       conftest$ac_exeext conftest.$ac_ext
7086     LIBS="$ac_xsave_LIBS"
7087
7088     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7089     # to get the SysV transport functions.
7090     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7091     # needs -lnsl.
7092     # The nsl library prevents programs from opening the X display
7093     # on Irix 5.2, according to T.E. Dickey.
7094     # The functions gethostbyname, getservbyname, and inet_addr are
7095     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7096     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7097 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7098 if test "${ac_cv_func_gethostbyname+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   if test x$gcc_no_link = xyes; then
7102   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7104    { (exit 1); exit 1; }; }
7105 fi
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7114 #define gethostbyname innocuous_gethostbyname
7115
7116 /* System header to define __stub macros and hopefully few prototypes,
7117     which can conflict with char gethostbyname (); below.
7118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7119     <limits.h> exists even on freestanding compilers.  */
7120
7121 #ifdef __STDC__
7122 # include <limits.h>
7123 #else
7124 # include <assert.h>
7125 #endif
7126
7127 #undef gethostbyname
7128
7129 /* Override any gcc2 internal prototype to avoid an error.  */
7130 #ifdef __cplusplus
7131 extern "C"
7132 {
7133 #endif
7134 /* We use char because int might match the return type of a gcc2
7135    builtin and then its argument prototype would still apply.  */
7136 char gethostbyname ();
7137 /* The GNU C library defines this for functions which it implements
7138     to always fail with ENOSYS.  Some functions are actually named
7139     something starting with __ and the normal name is an alias.  */
7140 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7141 choke me
7142 #else
7143 char (*f) () = gethostbyname;
7144 #endif
7145 #ifdef __cplusplus
7146 }
7147 #endif
7148
7149 int
7150 main ()
7151 {
7152 return f != gethostbyname;
7153   ;
7154   return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159   (eval $ac_link) 2>conftest.er1
7160   ac_status=$?
7161   grep -v '^ *+' conftest.er1 >conftest.err
7162   rm -f conftest.er1
7163   cat conftest.err >&5
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } &&
7166          { ac_try='test -z "$ac_c_werror_flag"
7167                          || test ! -s conftest.err'
7168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169   (eval $ac_try) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }; } &&
7173          { ac_try='test -s conftest$ac_exeext'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; }; then
7179   ac_cv_func_gethostbyname=yes
7180 else
7181   echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_cv_func_gethostbyname=no
7185 fi
7186 rm -f conftest.err conftest.$ac_objext \
7187       conftest$ac_exeext conftest.$ac_ext
7188 fi
7189 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7190 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7191
7192     if test $ac_cv_func_gethostbyname = no; then
7193       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7194 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7195 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   ac_check_lib_save_LIBS=$LIBS
7199 LIBS="-lnsl  $LIBS"
7200 if test x$gcc_no_link = xyes; then
7201   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7203    { (exit 1); exit 1; }; }
7204 fi
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211
7212 /* Override any gcc2 internal prototype to avoid an error.  */
7213 #ifdef __cplusplus
7214 extern "C"
7215 #endif
7216 /* We use char because int might match the return type of a gcc2
7217    builtin and then its argument prototype would still apply.  */
7218 char gethostbyname ();
7219 int
7220 main ()
7221 {
7222 gethostbyname ();
7223   ;
7224   return 0;
7225 }
7226 _ACEOF
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229   (eval $ac_link) 2>conftest.er1
7230   ac_status=$?
7231   grep -v '^ *+' conftest.er1 >conftest.err
7232   rm -f conftest.er1
7233   cat conftest.err >&5
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); } &&
7236          { ac_try='test -z "$ac_c_werror_flag"
7237                          || test ! -s conftest.err'
7238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239   (eval $ac_try) 2>&5
7240   ac_status=$?
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); }; } &&
7243          { ac_try='test -s conftest$ac_exeext'
7244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245   (eval $ac_try) 2>&5
7246   ac_status=$?
7247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); }; }; then
7249   ac_cv_lib_nsl_gethostbyname=yes
7250 else
7251   echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254 ac_cv_lib_nsl_gethostbyname=no
7255 fi
7256 rm -f conftest.err conftest.$ac_objext \
7257       conftest$ac_exeext conftest.$ac_ext
7258 LIBS=$ac_check_lib_save_LIBS
7259 fi
7260 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7261 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7262 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7263   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7264 fi
7265
7266       if test $ac_cv_lib_nsl_gethostbyname = no; then
7267         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7268 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7269 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   ac_check_lib_save_LIBS=$LIBS
7273 LIBS="-lbsd  $LIBS"
7274 if test x$gcc_no_link = xyes; then
7275   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7276 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7277    { (exit 1); exit 1; }; }
7278 fi
7279 cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h.  */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h.  */
7285
7286 /* Override any gcc2 internal prototype to avoid an error.  */
7287 #ifdef __cplusplus
7288 extern "C"
7289 #endif
7290 /* We use char because int might match the return type of a gcc2
7291    builtin and then its argument prototype would still apply.  */
7292 char gethostbyname ();
7293 int
7294 main ()
7295 {
7296 gethostbyname ();
7297   ;
7298   return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303   (eval $ac_link) 2>conftest.er1
7304   ac_status=$?
7305   grep -v '^ *+' conftest.er1 >conftest.err
7306   rm -f conftest.er1
7307   cat conftest.err >&5
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } &&
7310          { ac_try='test -z "$ac_c_werror_flag"
7311                          || test ! -s conftest.err'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; } &&
7317          { ac_try='test -s conftest$ac_exeext'
7318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319   (eval $ac_try) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; }; then
7323   ac_cv_lib_bsd_gethostbyname=yes
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328 ac_cv_lib_bsd_gethostbyname=no
7329 fi
7330 rm -f conftest.err conftest.$ac_objext \
7331       conftest$ac_exeext conftest.$ac_ext
7332 LIBS=$ac_check_lib_save_LIBS
7333 fi
7334 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7335 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7336 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7337   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7338 fi
7339
7340       fi
7341     fi
7342
7343     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7344     # socket/setsockopt and other routines are undefined under SCO ODT
7345     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7346     # on later versions), says Simon Leinen: it contains gethostby*
7347     # variants that don't use the name server (or something).  -lsocket
7348     # must be given before -lnsl if both are needed.  We assume that
7349     # if connect needs -lnsl, so does gethostbyname.
7350     echo "$as_me:$LINENO: checking for connect" >&5
7351 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7352 if test "${ac_cv_func_connect+set}" = set; then
7353   echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355   if test x$gcc_no_link = xyes; then
7356   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7358    { (exit 1); exit 1; }; }
7359 fi
7360 cat >conftest.$ac_ext <<_ACEOF
7361 /* confdefs.h.  */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h.  */
7366 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7368 #define connect innocuous_connect
7369
7370 /* System header to define __stub macros and hopefully few prototypes,
7371     which can conflict with char connect (); below.
7372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7373     <limits.h> exists even on freestanding compilers.  */
7374
7375 #ifdef __STDC__
7376 # include <limits.h>
7377 #else
7378 # include <assert.h>
7379 #endif
7380
7381 #undef connect
7382
7383 /* Override any gcc2 internal prototype to avoid an error.  */
7384 #ifdef __cplusplus
7385 extern "C"
7386 {
7387 #endif
7388 /* We use char because int might match the return type of a gcc2
7389    builtin and then its argument prototype would still apply.  */
7390 char connect ();
7391 /* The GNU C library defines this for functions which it implements
7392     to always fail with ENOSYS.  Some functions are actually named
7393     something starting with __ and the normal name is an alias.  */
7394 #if defined (__stub_connect) || defined (__stub___connect)
7395 choke me
7396 #else
7397 char (*f) () = connect;
7398 #endif
7399 #ifdef __cplusplus
7400 }
7401 #endif
7402
7403 int
7404 main ()
7405 {
7406 return f != connect;
7407   ;
7408   return 0;
7409 }
7410 _ACEOF
7411 rm -f conftest.$ac_objext conftest$ac_exeext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413   (eval $ac_link) 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } &&
7420          { ac_try='test -z "$ac_c_werror_flag"
7421                          || test ! -s conftest.err'
7422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423   (eval $ac_try) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); }; } &&
7427          { ac_try='test -s conftest$ac_exeext'
7428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7429   (eval $ac_try) 2>&5
7430   ac_status=$?
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); }; }; then
7433   ac_cv_func_connect=yes
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438 ac_cv_func_connect=no
7439 fi
7440 rm -f conftest.err conftest.$ac_objext \
7441       conftest$ac_exeext conftest.$ac_ext
7442 fi
7443 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7444 echo "${ECHO_T}$ac_cv_func_connect" >&6
7445
7446     if test $ac_cv_func_connect = no; then
7447       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7448 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7449 if test "${ac_cv_lib_socket_connect+set}" = set; then
7450   echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452   ac_check_lib_save_LIBS=$LIBS
7453 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7454 if test x$gcc_no_link = xyes; then
7455   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7457    { (exit 1); exit 1; }; }
7458 fi
7459 cat >conftest.$ac_ext <<_ACEOF
7460 /* confdefs.h.  */
7461 _ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h.  */
7465
7466 /* Override any gcc2 internal prototype to avoid an error.  */
7467 #ifdef __cplusplus
7468 extern "C"
7469 #endif
7470 /* We use char because int might match the return type of a gcc2
7471    builtin and then its argument prototype would still apply.  */
7472 char connect ();
7473 int
7474 main ()
7475 {
7476 connect ();
7477   ;
7478   return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483   (eval $ac_link) 2>conftest.er1
7484   ac_status=$?
7485   grep -v '^ *+' conftest.er1 >conftest.err
7486   rm -f conftest.er1
7487   cat conftest.err >&5
7488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489   (exit $ac_status); } &&
7490          { ac_try='test -z "$ac_c_werror_flag"
7491                          || test ! -s conftest.err'
7492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493   (eval $ac_try) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); }; } &&
7497          { ac_try='test -s conftest$ac_exeext'
7498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499   (eval $ac_try) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); }; }; then
7503   ac_cv_lib_socket_connect=yes
7504 else
7505   echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 ac_cv_lib_socket_connect=no
7509 fi
7510 rm -f conftest.err conftest.$ac_objext \
7511       conftest$ac_exeext conftest.$ac_ext
7512 LIBS=$ac_check_lib_save_LIBS
7513 fi
7514 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7515 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7516 if test $ac_cv_lib_socket_connect = yes; then
7517   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7518 fi
7519
7520     fi
7521
7522     # Guillermo Gomez says -lposix is necessary on A/UX.
7523     echo "$as_me:$LINENO: checking for remove" >&5
7524 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7525 if test "${ac_cv_func_remove+set}" = set; then
7526   echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528   if test x$gcc_no_link = xyes; then
7529   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7531    { (exit 1); exit 1; }; }
7532 fi
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h.  */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h.  */
7539 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7541 #define remove innocuous_remove
7542
7543 /* System header to define __stub macros and hopefully few prototypes,
7544     which can conflict with char remove (); below.
7545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7546     <limits.h> exists even on freestanding compilers.  */
7547
7548 #ifdef __STDC__
7549 # include <limits.h>
7550 #else
7551 # include <assert.h>
7552 #endif
7553
7554 #undef remove
7555
7556 /* Override any gcc2 internal prototype to avoid an error.  */
7557 #ifdef __cplusplus
7558 extern "C"
7559 {
7560 #endif
7561 /* We use char because int might match the return type of a gcc2
7562    builtin and then its argument prototype would still apply.  */
7563 char remove ();
7564 /* The GNU C library defines this for functions which it implements
7565     to always fail with ENOSYS.  Some functions are actually named
7566     something starting with __ and the normal name is an alias.  */
7567 #if defined (__stub_remove) || defined (__stub___remove)
7568 choke me
7569 #else
7570 char (*f) () = remove;
7571 #endif
7572 #ifdef __cplusplus
7573 }
7574 #endif
7575
7576 int
7577 main ()
7578 {
7579 return f != remove;
7580   ;
7581   return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586   (eval $ac_link) 2>conftest.er1
7587   ac_status=$?
7588   grep -v '^ *+' conftest.er1 >conftest.err
7589   rm -f conftest.er1
7590   cat conftest.err >&5
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -z "$ac_c_werror_flag"
7594                          || test ! -s conftest.err'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   ac_cv_func_remove=yes
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_cv_func_remove=no
7612 fi
7613 rm -f conftest.err conftest.$ac_objext \
7614       conftest$ac_exeext conftest.$ac_ext
7615 fi
7616 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7617 echo "${ECHO_T}$ac_cv_func_remove" >&6
7618
7619     if test $ac_cv_func_remove = no; then
7620       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7621 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7622 if test "${ac_cv_lib_posix_remove+set}" = set; then
7623   echo $ECHO_N "(cached) $ECHO_C" >&6
7624 else
7625   ac_check_lib_save_LIBS=$LIBS
7626 LIBS="-lposix  $LIBS"
7627 if test x$gcc_no_link = xyes; then
7628   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7630    { (exit 1); exit 1; }; }
7631 fi
7632 cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h.  */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h.  */
7638
7639 /* Override any gcc2 internal prototype to avoid an error.  */
7640 #ifdef __cplusplus
7641 extern "C"
7642 #endif
7643 /* We use char because int might match the return type of a gcc2
7644    builtin and then its argument prototype would still apply.  */
7645 char remove ();
7646 int
7647 main ()
7648 {
7649 remove ();
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656   (eval $ac_link) 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -z "$ac_c_werror_flag"
7664                          || test ! -s conftest.err'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; } &&
7670          { ac_try='test -s conftest$ac_exeext'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   ac_cv_lib_posix_remove=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_cv_lib_posix_remove=no
7682 fi
7683 rm -f conftest.err conftest.$ac_objext \
7684       conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7686 fi
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7688 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7689 if test $ac_cv_lib_posix_remove = yes; then
7690   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7691 fi
7692
7693     fi
7694
7695     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7696     echo "$as_me:$LINENO: checking for shmat" >&5
7697 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7698 if test "${ac_cv_func_shmat+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701   if test x$gcc_no_link = xyes; then
7702   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7704    { (exit 1); exit 1; }; }
7705 fi
7706 cat >conftest.$ac_ext <<_ACEOF
7707 /* confdefs.h.  */
7708 _ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h.  */
7712 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7714 #define shmat innocuous_shmat
7715
7716 /* System header to define __stub macros and hopefully few prototypes,
7717     which can conflict with char shmat (); below.
7718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7719     <limits.h> exists even on freestanding compilers.  */
7720
7721 #ifdef __STDC__
7722 # include <limits.h>
7723 #else
7724 # include <assert.h>
7725 #endif
7726
7727 #undef shmat
7728
7729 /* Override any gcc2 internal prototype to avoid an error.  */
7730 #ifdef __cplusplus
7731 extern "C"
7732 {
7733 #endif
7734 /* We use char because int might match the return type of a gcc2
7735    builtin and then its argument prototype would still apply.  */
7736 char shmat ();
7737 /* The GNU C library defines this for functions which it implements
7738     to always fail with ENOSYS.  Some functions are actually named
7739     something starting with __ and the normal name is an alias.  */
7740 #if defined (__stub_shmat) || defined (__stub___shmat)
7741 choke me
7742 #else
7743 char (*f) () = shmat;
7744 #endif
7745 #ifdef __cplusplus
7746 }
7747 #endif
7748
7749 int
7750 main ()
7751 {
7752 return f != shmat;
7753   ;
7754   return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759   (eval $ac_link) 2>conftest.er1
7760   ac_status=$?
7761   grep -v '^ *+' conftest.er1 >conftest.err
7762   rm -f conftest.er1
7763   cat conftest.err >&5
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } &&
7766          { ac_try='test -z "$ac_c_werror_flag"
7767                          || test ! -s conftest.err'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; } &&
7773          { ac_try='test -s conftest$ac_exeext'
7774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775   (eval $ac_try) 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; }; then
7779   ac_cv_func_shmat=yes
7780 else
7781   echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7783
7784 ac_cv_func_shmat=no
7785 fi
7786 rm -f conftest.err conftest.$ac_objext \
7787       conftest$ac_exeext conftest.$ac_ext
7788 fi
7789 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7790 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7791
7792     if test $ac_cv_func_shmat = no; then
7793       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7794 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7795 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   ac_check_lib_save_LIBS=$LIBS
7799 LIBS="-lipc  $LIBS"
7800 if test x$gcc_no_link = xyes; then
7801   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7803    { (exit 1); exit 1; }; }
7804 fi
7805 cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811
7812 /* Override any gcc2 internal prototype to avoid an error.  */
7813 #ifdef __cplusplus
7814 extern "C"
7815 #endif
7816 /* We use char because int might match the return type of a gcc2
7817    builtin and then its argument prototype would still apply.  */
7818 char shmat ();
7819 int
7820 main ()
7821 {
7822 shmat ();
7823   ;
7824   return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829   (eval $ac_link) 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag"
7837                          || test ! -s conftest.err'
7838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839   (eval $ac_try) 2>&5
7840   ac_status=$?
7841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842   (exit $ac_status); }; } &&
7843          { ac_try='test -s conftest$ac_exeext'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; }; then
7849   ac_cv_lib_ipc_shmat=yes
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 ac_cv_lib_ipc_shmat=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext \
7857       conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7859 fi
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7861 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7862 if test $ac_cv_lib_ipc_shmat = yes; then
7863   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7864 fi
7865
7866     fi
7867   fi
7868
7869   # Check for libraries that X11R6 Xt/Xaw programs need.
7870   ac_save_LDFLAGS=$LDFLAGS
7871   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7872   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7873   # check for ICE first), but we must link in the order -lSM -lICE or
7874   # we get undefined symbols.  So assume we have SM if we have ICE.
7875   # These have to be linked with before -lX11, unlike the other
7876   # libraries we check for below, so use a different variable.
7877   # John Interrante, Karl Berry
7878   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7879 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7880 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7881   echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883   ac_check_lib_save_LIBS=$LIBS
7884 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7885 if test x$gcc_no_link = xyes; then
7886   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7888    { (exit 1); exit 1; }; }
7889 fi
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896
7897 /* Override any gcc2 internal prototype to avoid an error.  */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 /* We use char because int might match the return type of a gcc2
7902    builtin and then its argument prototype would still apply.  */
7903 char IceConnectionNumber ();
7904 int
7905 main ()
7906 {
7907 IceConnectionNumber ();
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914   (eval $ac_link) 2>conftest.er1
7915   ac_status=$?
7916   grep -v '^ *+' conftest.er1 >conftest.err
7917   rm -f conftest.er1
7918   cat conftest.err >&5
7919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920   (exit $ac_status); } &&
7921          { ac_try='test -z "$ac_c_werror_flag"
7922                          || test ! -s conftest.err'
7923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924   (eval $ac_try) 2>&5
7925   ac_status=$?
7926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927   (exit $ac_status); }; } &&
7928          { ac_try='test -s conftest$ac_exeext'
7929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930   (eval $ac_try) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; }; then
7934   ac_cv_lib_ICE_IceConnectionNumber=yes
7935 else
7936   echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7938
7939 ac_cv_lib_ICE_IceConnectionNumber=no
7940 fi
7941 rm -f conftest.err conftest.$ac_objext \
7942       conftest$ac_exeext conftest.$ac_ext
7943 LIBS=$ac_check_lib_save_LIBS
7944 fi
7945 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7946 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7947 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7948   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7949 fi
7950
7951   LDFLAGS=$ac_save_LDFLAGS
7952
7953 fi
7954
7955
7956 # Determine which AWT peer libraries to build
7957 # Check whether --enable-java-awt or --disable-java-awt was given.
7958 if test "${enable_java_awt+set}" = set; then
7959   enableval="$enable_java_awt"
7960
7961 fi;
7962
7963 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7964 use_xlib_awt=""
7965 use_gtk_awt=""
7966 # The default toolkit to use is the first one specified.
7967 TOOLKIT=
7968
7969
7970 for peer in $peerlibs ; do
7971   case $peer in
7972     xlib)
7973       if test "$no_x" = yes; then
7974         echo "*** xlib peers requested but no X library available" 1>&2
7975         exit 1
7976       else
7977         use_xlib_awt="yes"
7978         if test -z "$TOOLKIT"; then
7979            TOOLKIT=gnu.awt.xlib.XToolkit
7980         fi
7981       fi
7982       ;;
7983     gtk)
7984       if test "$no_x" = yes; then
7985          echo "*** xlib peers requested but no X library available" 1>&2
7986          exit 1
7987       else
7988          use_gtk_awt=yes
7989          if test -z "$TOOLKIT"; then
7990             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7991          fi
7992          test -d jniinclude || mkdir jniinclude
7993       fi
7994       ;;
7995     no)
7996       use_xlib_awt=
7997       use_gtk_awt=
7998       break
7999       ;;
8000     *)
8001       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8002       exit 1
8003   esac
8004 done
8005
8006
8007
8008 if test "$use_xlib_awt" = yes; then
8009   XLIB_AWT_TRUE=
8010   XLIB_AWT_FALSE='#'
8011 else
8012   XLIB_AWT_TRUE='#'
8013   XLIB_AWT_FALSE=
8014 fi
8015
8016
8017
8018 if test "$use_gtk_awt" = yes; then
8019   GTK_AWT_TRUE=
8020   GTK_AWT_FALSE='#'
8021 else
8022   GTK_AWT_TRUE='#'
8023   GTK_AWT_FALSE=
8024 fi
8025
8026
8027 # determine whether to enable the cairo GTK Graphics2D backend
8028 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8029 if test "${enable_gtk_cairo+set}" = set; then
8030   enableval="$enable_gtk_cairo"
8031
8032 fi;
8033
8034
8035 if test "x${enable_gtk_cairo}" = xyes; then
8036   GTK_CAIRO_TRUE=
8037   GTK_CAIRO_FALSE='#'
8038 else
8039   GTK_CAIRO_TRUE='#'
8040   GTK_CAIRO_FALSE=
8041 fi
8042
8043 if test "x${enable_gtk_cairo}" = xyes
8044 then
8045
8046   succeeded=no
8047
8048   if test -z "$PKG_CONFIG"; then
8049     # Extract the first word of "pkg-config", so it can be a program name with args.
8050 set dummy pkg-config; ac_word=$2
8051 echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   case $PKG_CONFIG in
8057   [\\/]* | ?:[\\/]*)
8058   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8059   ;;
8060   *)
8061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8063 do
8064   IFS=$as_save_IFS
8065   test -z "$as_dir" && as_dir=.
8066   for ac_exec_ext in '' $ac_executable_extensions; do
8067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8070     break 2
8071   fi
8072 done
8073 done
8074
8075   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8076   ;;
8077 esac
8078 fi
8079 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8080
8081 if test -n "$PKG_CONFIG"; then
8082   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8083 echo "${ECHO_T}$PKG_CONFIG" >&6
8084 else
8085   echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6
8087 fi
8088
8089   fi
8090
8091   if test "$PKG_CONFIG" = "no" ; then
8092      echo "*** The pkg-config script could not be found. Make sure it is"
8093      echo "*** in your path, or set the PKG_CONFIG environment variable"
8094      echo "*** to the full path to pkg-config."
8095      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8096   else
8097      PKG_CONFIG_MIN_VERSION=0.9.0
8098      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8099         echo "$as_me:$LINENO: checking for cairo" >&5
8100 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8101
8102         if $PKG_CONFIG --exists "cairo" ; then
8103             echo "$as_me:$LINENO: result: yes" >&5
8104 echo "${ECHO_T}yes" >&6
8105             succeeded=yes
8106
8107             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8108 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8109             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8110             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8111 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8112
8113             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8114 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8115             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8116             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8117 echo "${ECHO_T}$CAIRO_LIBS" >&6
8118         else
8119             CAIRO_CFLAGS=""
8120             CAIRO_LIBS=""
8121             ## If we have a custom action on failure, don't print errors, but
8122             ## do set a variable so people can do so.
8123             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8124             echo $CAIRO_PKG_ERRORS
8125         fi
8126
8127
8128
8129      else
8130         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8131         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8132      fi
8133   fi
8134
8135   if test $succeeded = yes; then
8136      :
8137   else
8138      { { 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
8139 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;}
8140    { (exit 1); exit 1; }; }
8141   fi
8142
8143
8144   succeeded=no
8145
8146   if test -z "$PKG_CONFIG"; then
8147     # Extract the first word of "pkg-config", so it can be a program name with args.
8148 set dummy pkg-config; ac_word=$2
8149 echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154   case $PKG_CONFIG in
8155   [\\/]* | ?:[\\/]*)
8156   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8157   ;;
8158   *)
8159   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162   IFS=$as_save_IFS
8163   test -z "$as_dir" && as_dir=.
8164   for ac_exec_ext in '' $ac_executable_extensions; do
8165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168     break 2
8169   fi
8170 done
8171 done
8172
8173   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8174   ;;
8175 esac
8176 fi
8177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8178
8179 if test -n "$PKG_CONFIG"; then
8180   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8181 echo "${ECHO_T}$PKG_CONFIG" >&6
8182 else
8183   echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8185 fi
8186
8187   fi
8188
8189   if test "$PKG_CONFIG" = "no" ; then
8190      echo "*** The pkg-config script could not be found. Make sure it is"
8191      echo "*** in your path, or set the PKG_CONFIG environment variable"
8192      echo "*** to the full path to pkg-config."
8193      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8194   else
8195      PKG_CONFIG_MIN_VERSION=0.9.0
8196      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8197         echo "$as_me:$LINENO: checking for pangoft2" >&5
8198 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8199
8200         if $PKG_CONFIG --exists "pangoft2" ; then
8201             echo "$as_me:$LINENO: result: yes" >&5
8202 echo "${ECHO_T}yes" >&6
8203             succeeded=yes
8204
8205             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8206 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8207             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8208             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8209 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8210
8211             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8212 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8213             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8214             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8215 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8216         else
8217             PANGOFT2_CFLAGS=""
8218             PANGOFT2_LIBS=""
8219             ## If we have a custom action on failure, don't print errors, but
8220             ## do set a variable so people can do so.
8221             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8222             echo $PANGOFT2_PKG_ERRORS
8223         fi
8224
8225
8226
8227      else
8228         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8229         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8230      fi
8231   fi
8232
8233   if test $succeeded = yes; then
8234      :
8235   else
8236      { { 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
8237 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;}
8238    { (exit 1); exit 1; }; }
8239   fi
8240
8241 fi
8242
8243
8244
8245
8246
8247 # FIXME: this should be _libs on some hosts.
8248 libsubdir=.libs
8249
8250 # Allow the GC to be disabled.  Can be useful when debugging.
8251 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8252 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8253 # Check whether --enable-java-gc or --disable-java-gc was given.
8254 if test "${enable_java_gc+set}" = set; then
8255   enableval="$enable_java_gc"
8256   GC=$enableval
8257 else
8258   GC=boehm
8259 fi;
8260 GCLIBS=
8261 GCINCS=
8262 GCDEPS=
8263 GCSPEC=
8264 JC1GCSPEC=
8265 GCTESTSPEC=
8266 case "$GC" in
8267  boehm)
8268     echo "$as_me:$LINENO: result: boehm" >&5
8269 echo "${ECHO_T}boehm" >&6
8270     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8271     JC1GCSPEC='-fuse-boehm-gc'
8272     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8273     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8274     GCOBJS=boehm.lo
8275     GCHDR=boehm-gc.h
8276     # The POSIX thread support needs to know this.
8277
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_BOEHM_GC 1
8280 _ACEOF
8281
8282     ;;
8283  no)
8284     echo "$as_me:$LINENO: result: none" >&5
8285 echo "${ECHO_T}none" >&6
8286     GCHDR=no-gc.h
8287     ;;
8288  *)
8289     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8290 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8291    { (exit 1); exit 1; }; }
8292     ;;
8293 esac
8294
8295
8296
8297
8298
8299
8300           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8301
8302
8303
8304 if test "$GC" = boehm; then
8305   USING_BOEHMGC_TRUE=
8306   USING_BOEHMGC_FALSE='#'
8307 else
8308   USING_BOEHMGC_TRUE='#'
8309   USING_BOEHMGC_FALSE=
8310 fi
8311
8312
8313
8314 if test "$GC" = no; then
8315   USING_NOGC_TRUE=
8316   USING_NOGC_FALSE='#'
8317 else
8318   USING_NOGC_TRUE='#'
8319   USING_NOGC_FALSE=
8320 fi
8321
8322
8323
8324 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8325 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8326 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8327 echo "$as_me:$LINENO: result: $THREADS" >&5
8328 echo "${ECHO_T}$THREADS" >&6
8329
8330 case "$THREADS" in
8331  no | none | single)
8332     THREADS=none
8333     ;;
8334  posix | posix95 | pthreads)
8335     THREADS=posix
8336     case "$host" in
8337      *-*-linux*)
8338
8339 cat >>confdefs.h <<\_ACEOF
8340 #define LINUX_THREADS 1
8341 _ACEOF
8342
8343         ;;
8344     esac
8345     ;;
8346  win32)
8347     ;;
8348  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8349     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8350 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8351    { (exit 1); exit 1; }; }
8352     ;;
8353  *)
8354     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8355 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8356    { (exit 1); exit 1; }; }
8357     ;;
8358 esac
8359
8360 THREADCXXFLAGS=
8361 THREADLDFLAGS=
8362 THREADLIBS=
8363 THREADINCS=
8364 THREADDEPS=
8365 THREADH=
8366 THREADSPEC=
8367 case "$THREADS" in
8368  posix)
8369     case "$host" in
8370      *-*-cygwin*)
8371         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8372         ;;
8373      *-*-freebsd[1234]*)
8374         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8375         # merely adds pthread_* functions) but it does have a -pthread switch
8376         # which is required at link-time to select -lc_r *instead* of -lc.
8377         THREADLDFLAGS=-pthread
8378         # Don't set THREADSPEC here as might be expected since -pthread is
8379         # not processed when found within a spec file, it must come from
8380         # the command line.  For now, the user must provide the -pthread
8381         # switch to link code compiled with gcj.  In future, consider adding
8382         # support for weak references to pthread_* functions ala gthr.h API.
8383         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8384         ;;
8385      *-*-freebsd*)
8386         # FreeBSD 5 implements a model much closer to other modern UNIX
8387         # which support threads.  However, it still does not support
8388         # -lpthread.
8389         THREADLDFLAGS=-pthread
8390         THREADSPEC=-lc_r
8391         ;;
8392      alpha*-dec-osf*)
8393         THREADCXXFLAGS=-pthread
8394         # boehm-gc needs some functions from librt, so link that too.
8395         THREADLIBS='-lpthread -lrt'
8396         THREADSPEC='-lpthread -lrt'
8397         ;;
8398      *)
8399         THREADLIBS=-lpthread
8400         THREADSPEC=-lpthread
8401         ;;
8402     esac
8403     THREADH=posix-threads.h
8404     # MIT pthreads doesn't seem to have the mutexattr functions.
8405     # But for now we don't check for it.  We just assume you aren't
8406     # using MIT pthreads.
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8410 _ACEOF
8411
8412
8413     # If we're using the Boehm GC, then we happen to know that it
8414     # defines _REENTRANT, so we don't bother.  Eww.
8415     if test "$GC" != boehm; then
8416
8417 cat >>confdefs.h <<\_ACEOF
8418 #define _REENTRANT 1
8419 _ACEOF
8420
8421     fi
8422
8423 cat >>confdefs.h <<\_ACEOF
8424 #define _POSIX_PTHREAD_SEMANTICS 1
8425 _ACEOF
8426
8427     ;;
8428
8429  win32)
8430     THREADH=win32-threads.h
8431     ;;
8432
8433  none)
8434     THREADH=no-threads.h
8435     ;;
8436 esac
8437           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447 if test "$THREADS" = posix; then
8448   USING_POSIX_THREADS_TRUE=
8449   USING_POSIX_THREADS_FALSE='#'
8450 else
8451   USING_POSIX_THREADS_TRUE='#'
8452   USING_POSIX_THREADS_FALSE=
8453 fi
8454
8455
8456
8457 if test "$THREADS" = win32; then
8458   USING_WIN32_THREADS_TRUE=
8459   USING_WIN32_THREADS_FALSE='#'
8460 else
8461   USING_WIN32_THREADS_TRUE='#'
8462   USING_WIN32_THREADS_FALSE=
8463 fi
8464
8465
8466
8467 if test "$THREADS" = none; then
8468   USING_NO_THREADS_TRUE=
8469   USING_NO_THREADS_FALSE='#'
8470 else
8471   USING_NO_THREADS_TRUE='#'
8472   USING_NO_THREADS_FALSE=
8473 fi
8474
8475
8476 if test -d sysdep; then true; else mkdir sysdep; fi
8477           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8478
8479           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8480
8481
8482 HASH_SYNC_SPEC=
8483 # Hash synchronization is only useful with posix threads right now.
8484 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8485    HASH_SYNC_SPEC=-fhash-synchronization
8486
8487 cat >>confdefs.h <<\_ACEOF
8488 #define JV_HASH_SYNCHRONIZATION 1
8489 _ACEOF
8490
8491 fi
8492
8493
8494
8495
8496 if test "$GCC" = yes; then
8497   USING_GCC_TRUE=
8498   USING_GCC_FALSE='#'
8499 else
8500   USING_GCC_TRUE='#'
8501   USING_GCC_FALSE=
8502 fi
8503
8504
8505 # We're in the tree with gcc, and need to include some of its headers.
8506 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8507
8508 if test "x${with_newlib}" = "xyes"; then
8509    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8510    # may not work correctly, because the compiler may not be able to
8511    # link executables.
8512
8513    # We assume newlib.  This lets us hard-code the functions we know
8514    # we'll have.
8515
8516 cat >>confdefs.h <<\_ACEOF
8517 #define HAVE_MEMMOVE 1
8518 _ACEOF
8519
8520
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_MEMCPY 1
8523 _ACEOF
8524
8525
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_STRERROR 1
8528 _ACEOF
8529
8530
8531 cat >>confdefs.h <<\_ACEOF
8532 #define HAVE_TIME 1
8533 _ACEOF
8534
8535
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_GMTIME_R 1
8538 _ACEOF
8539
8540
8541 cat >>confdefs.h <<\_ACEOF
8542 #define HAVE_LOCALTIME_R 1
8543 _ACEOF
8544
8545
8546 cat >>confdefs.h <<\_ACEOF
8547 #define HAVE_USLEEP_DECL 1
8548 _ACEOF
8549
8550    # This is only for POSIX threads.
8551
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8554 _ACEOF
8555
8556    # We also assume we are using gcc, which provides alloca.
8557    cat >>confdefs.h <<\_ACEOF
8558 #define HAVE_ALLOCA 1
8559 _ACEOF
8560
8561
8562    # Assume we do not have getuid and friends.
8563
8564 cat >>confdefs.h <<\_ACEOF
8565 #define NO_GETUID 1
8566 _ACEOF
8567
8568    PLATFORMNET=NoNet
8569 else
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8603                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8604                    access stat mkdir rename rmdir unlink realpath utime chmod \
8605                    nl_langinfo setlocale \
8606                    inet_pton uname inet_ntoa \
8607                    fork execvp pipe sigaction ftruncate
8608 do
8609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610 echo "$as_me:$LINENO: checking for $ac_func" >&5
8611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8612 if eval "test \"\${$as_ac_var+set}\" = set"; then
8613   echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615   if test x$gcc_no_link = xyes; then
8616   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8618    { (exit 1); exit 1; }; }
8619 fi
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8628 #define $ac_func innocuous_$ac_func
8629
8630 /* System header to define __stub macros and hopefully few prototypes,
8631     which can conflict with char $ac_func (); below.
8632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8633     <limits.h> exists even on freestanding compilers.  */
8634
8635 #ifdef __STDC__
8636 # include <limits.h>
8637 #else
8638 # include <assert.h>
8639 #endif
8640
8641 #undef $ac_func
8642
8643 /* Override any gcc2 internal prototype to avoid an error.  */
8644 #ifdef __cplusplus
8645 extern "C"
8646 {
8647 #endif
8648 /* We use char because int might match the return type of a gcc2
8649    builtin and then its argument prototype would still apply.  */
8650 char $ac_func ();
8651 /* The GNU C library defines this for functions which it implements
8652     to always fail with ENOSYS.  Some functions are actually named
8653     something starting with __ and the normal name is an alias.  */
8654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8655 choke me
8656 #else
8657 char (*f) () = $ac_func;
8658 #endif
8659 #ifdef __cplusplus
8660 }
8661 #endif
8662
8663 int
8664 main ()
8665 {
8666 return f != $ac_func;
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673   (eval $ac_link) 2>conftest.er1
8674   ac_status=$?
8675   grep -v '^ *+' conftest.er1 >conftest.err
8676   rm -f conftest.er1
8677   cat conftest.err >&5
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); } &&
8680          { ac_try='test -z "$ac_c_werror_flag"
8681                          || test ! -s conftest.err'
8682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683   (eval $ac_try) 2>&5
8684   ac_status=$?
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); }; } &&
8687          { ac_try='test -s conftest$ac_exeext'
8688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689   (eval $ac_try) 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; }; then
8693   eval "$as_ac_var=yes"
8694 else
8695   echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 eval "$as_ac_var=no"
8699 fi
8700 rm -f conftest.err conftest.$ac_objext \
8701       conftest$ac_exeext conftest.$ac_ext
8702 fi
8703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8705 if test `eval echo '${'$as_ac_var'}'` = yes; then
8706   cat >>confdefs.h <<_ACEOF
8707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8708 _ACEOF
8709
8710 fi
8711 done
8712
8713
8714
8715 for ac_func in inet_aton inet_addr
8716 do
8717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8718 echo "$as_me:$LINENO: checking for $ac_func" >&5
8719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8720 if eval "test \"\${$as_ac_var+set}\" = set"; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   if test x$gcc_no_link = xyes; then
8724   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8726    { (exit 1); exit 1; }; }
8727 fi
8728 cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8736 #define $ac_func innocuous_$ac_func
8737
8738 /* System header to define __stub macros and hopefully few prototypes,
8739     which can conflict with char $ac_func (); below.
8740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8741     <limits.h> exists even on freestanding compilers.  */
8742
8743 #ifdef __STDC__
8744 # include <limits.h>
8745 #else
8746 # include <assert.h>
8747 #endif
8748
8749 #undef $ac_func
8750
8751 /* Override any gcc2 internal prototype to avoid an error.  */
8752 #ifdef __cplusplus
8753 extern "C"
8754 {
8755 #endif
8756 /* We use char because int might match the return type of a gcc2
8757    builtin and then its argument prototype would still apply.  */
8758 char $ac_func ();
8759 /* The GNU C library defines this for functions which it implements
8760     to always fail with ENOSYS.  Some functions are actually named
8761     something starting with __ and the normal name is an alias.  */
8762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8763 choke me
8764 #else
8765 char (*f) () = $ac_func;
8766 #endif
8767 #ifdef __cplusplus
8768 }
8769 #endif
8770
8771 int
8772 main ()
8773 {
8774 return f != $ac_func;
8775   ;
8776   return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781   (eval $ac_link) 2>conftest.er1
8782   ac_status=$?
8783   grep -v '^ *+' conftest.er1 >conftest.err
8784   rm -f conftest.er1
8785   cat conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } &&
8788          { ac_try='test -z "$ac_c_werror_flag"
8789                          || test ! -s conftest.err'
8790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8791   (eval $ac_try) 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); }; } &&
8795          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8801   eval "$as_ac_var=yes"
8802 else
8803   echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8805
8806 eval "$as_ac_var=no"
8807 fi
8808 rm -f conftest.err conftest.$ac_objext \
8809       conftest$ac_exeext conftest.$ac_ext
8810 fi
8811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8813 if test `eval echo '${'$as_ac_var'}'` = yes; then
8814   cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8816 _ACEOF
8817  break
8818 fi
8819 done
8820
8821    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8823 if test "${ac_cv_header_stdc+set}" = set; then
8824   echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826   cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h.  */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h.  */
8832 #include <stdlib.h>
8833 #include <stdarg.h>
8834 #include <string.h>
8835 #include <float.h>
8836
8837 int
8838 main ()
8839 {
8840
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847   (eval $ac_compile) 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } &&
8854          { ac_try='test -z "$ac_c_werror_flag"
8855                          || test ! -s conftest.err'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; } &&
8861          { ac_try='test -s conftest.$ac_objext'
8862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863   (eval $ac_try) 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); }; }; then
8867   ac_cv_header_stdc=yes
8868 else
8869   echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872 ac_cv_header_stdc=no
8873 fi
8874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8875
8876 if test $ac_cv_header_stdc = yes; then
8877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8878   cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884 #include <string.h>
8885
8886 _ACEOF
8887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8888   $EGREP "memchr" >/dev/null 2>&1; then
8889   :
8890 else
8891   ac_cv_header_stdc=no
8892 fi
8893 rm -f conftest*
8894
8895 fi
8896
8897 if test $ac_cv_header_stdc = yes; then
8898   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8899   cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905 #include <stdlib.h>
8906
8907 _ACEOF
8908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909   $EGREP "free" >/dev/null 2>&1; then
8910   :
8911 else
8912   ac_cv_header_stdc=no
8913 fi
8914 rm -f conftest*
8915
8916 fi
8917
8918 if test $ac_cv_header_stdc = yes; then
8919   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8920   if test "$cross_compiling" = yes; then
8921   :
8922 else
8923   cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h.  */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h.  */
8929 #include <ctype.h>
8930 #if ((' ' & 0x0FF) == 0x020)
8931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8933 #else
8934 # define ISLOWER(c) \
8935                    (('a' <= (c) && (c) <= 'i') \
8936                      || ('j' <= (c) && (c) <= 'r') \
8937                      || ('s' <= (c) && (c) <= 'z'))
8938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8939 #endif
8940
8941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8942 int
8943 main ()
8944 {
8945   int i;
8946   for (i = 0; i < 256; i++)
8947     if (XOR (islower (i), ISLOWER (i))
8948         || toupper (i) != TOUPPER (i))
8949       exit(2);
8950   exit (0);
8951 }
8952 _ACEOF
8953 rm -f conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955   (eval $ac_link) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   :
8965 else
8966   echo "$as_me: program exited with status $ac_status" >&5
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8969
8970 ( exit $ac_status )
8971 ac_cv_header_stdc=no
8972 fi
8973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8974 fi
8975 fi
8976 fi
8977 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8978 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8979 if test $ac_cv_header_stdc = yes; then
8980
8981 cat >>confdefs.h <<\_ACEOF
8982 #define STDC_HEADERS 1
8983 _ACEOF
8984
8985 fi
8986
8987 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8998                   inttypes.h stdint.h unistd.h
8999 do
9000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9001 echo "$as_me:$LINENO: checking for $ac_header" >&5
9002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9004   echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006   cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012 $ac_includes_default
9013
9014 #include <$ac_header>
9015 _ACEOF
9016 rm -f conftest.$ac_objext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018   (eval $ac_compile) 2>conftest.er1
9019   ac_status=$?
9020   grep -v '^ *+' conftest.er1 >conftest.err
9021   rm -f conftest.er1
9022   cat conftest.err >&5
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); } &&
9025          { ac_try='test -z "$ac_c_werror_flag"
9026                          || test ! -s conftest.err'
9027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9028   (eval $ac_try) 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); }; } &&
9032          { ac_try='test -s conftest.$ac_objext'
9033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034   (eval $ac_try) 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); }; }; then
9038   eval "$as_ac_Header=yes"
9039 else
9040   echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 eval "$as_ac_Header=no"
9044 fi
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9046 fi
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9050   cat >>confdefs.h <<_ACEOF
9051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9052 _ACEOF
9053
9054 fi
9055
9056 done
9057
9058
9059
9060
9061
9062 for ac_header in execinfo.h unistd.h dlfcn.h
9063 do
9064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066   echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9069   echo $ECHO_N "(cached) $ECHO_C" >&6
9070 fi
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9073 else
9074   # Is the header compilable?
9075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9077 cat >conftest.$ac_ext <<_ACEOF
9078 /* confdefs.h.  */
9079 _ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h.  */
9083 $ac_includes_default
9084 #include <$ac_header>
9085 _ACEOF
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088   (eval $ac_compile) 2>conftest.er1
9089   ac_status=$?
9090   grep -v '^ *+' conftest.er1 >conftest.err
9091   rm -f conftest.er1
9092   cat conftest.err >&5
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } &&
9095          { ac_try='test -z "$ac_c_werror_flag"
9096                          || test ! -s conftest.err'
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); }; } &&
9102          { ac_try='test -s conftest.$ac_objext'
9103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104   (eval $ac_try) 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; }; then
9108   ac_header_compiler=yes
9109 else
9110   echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9112
9113 ac_header_compiler=no
9114 fi
9115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9117 echo "${ECHO_T}$ac_header_compiler" >&6
9118
9119 # Is the header present?
9120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128 #include <$ac_header>
9129 _ACEOF
9130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9132   ac_status=$?
9133   grep -v '^ *+' conftest.er1 >conftest.err
9134   rm -f conftest.er1
9135   cat conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } >/dev/null; then
9138   if test -s conftest.err; then
9139     ac_cpp_err=$ac_c_preproc_warn_flag
9140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9141   else
9142     ac_cpp_err=
9143   fi
9144 else
9145   ac_cpp_err=yes
9146 fi
9147 if test -z "$ac_cpp_err"; then
9148   ac_header_preproc=yes
9149 else
9150   echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9152
9153   ac_header_preproc=no
9154 fi
9155 rm -f conftest.err conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9157 echo "${ECHO_T}$ac_header_preproc" >&6
9158
9159 # So?  What about this header?
9160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9161   yes:no: )
9162     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9164     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9166     ac_header_preproc=yes
9167     ;;
9168   no:yes:* )
9169     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9171     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9172 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9176 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9179     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9181     (
9182       cat <<\_ASBOX
9183 ## ---------------------------------- ##
9184 ## Report this to the libjava lists.  ##
9185 ## ---------------------------------- ##
9186 _ASBOX
9187     ) |
9188       sed "s/^/$as_me: WARNING:     /" >&2
9189     ;;
9190 esac
9191 echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194   echo $ECHO_N "(cached) $ECHO_C" >&6
9195 else
9196   eval "$as_ac_Header=\$ac_header_preproc"
9197 fi
9198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9200
9201 fi
9202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9203   cat >>confdefs.h <<_ACEOF
9204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9205 _ACEOF
9206
9207 fi
9208
9209 done
9210
9211    echo "$as_me:$LINENO: checking for backtrace" >&5
9212 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9213 if test "${ac_cv_func_backtrace+set}" = set; then
9214   echo $ECHO_N "(cached) $ECHO_C" >&6
9215 else
9216   if test x$gcc_no_link = xyes; then
9217   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9219    { (exit 1); exit 1; }; }
9220 fi
9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h.  */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h.  */
9227 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9229 #define backtrace innocuous_backtrace
9230
9231 /* System header to define __stub macros and hopefully few prototypes,
9232     which can conflict with char backtrace (); below.
9233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234     <limits.h> exists even on freestanding compilers.  */
9235
9236 #ifdef __STDC__
9237 # include <limits.h>
9238 #else
9239 # include <assert.h>
9240 #endif
9241
9242 #undef backtrace
9243
9244 /* Override any gcc2 internal prototype to avoid an error.  */
9245 #ifdef __cplusplus
9246 extern "C"
9247 {
9248 #endif
9249 /* We use char because int might match the return type of a gcc2
9250    builtin and then its argument prototype would still apply.  */
9251 char backtrace ();
9252 /* The GNU C library defines this for functions which it implements
9253     to always fail with ENOSYS.  Some functions are actually named
9254     something starting with __ and the normal name is an alias.  */
9255 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9256 choke me
9257 #else
9258 char (*f) () = backtrace;
9259 #endif
9260 #ifdef __cplusplus
9261 }
9262 #endif
9263
9264 int
9265 main ()
9266 {
9267 return f != backtrace;
9268   ;
9269   return 0;
9270 }
9271 _ACEOF
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274   (eval $ac_link) 2>conftest.er1
9275   ac_status=$?
9276   grep -v '^ *+' conftest.er1 >conftest.err
9277   rm -f conftest.er1
9278   cat conftest.err >&5
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); } &&
9281          { ac_try='test -z "$ac_c_werror_flag"
9282                          || test ! -s conftest.err'
9283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284   (eval $ac_try) 2>&5
9285   ac_status=$?
9286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287   (exit $ac_status); }; } &&
9288          { ac_try='test -s conftest$ac_exeext'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; }; then
9294   ac_cv_func_backtrace=yes
9295 else
9296   echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 ac_cv_func_backtrace=no
9300 fi
9301 rm -f conftest.err conftest.$ac_objext \
9302       conftest$ac_exeext conftest.$ac_ext
9303 fi
9304 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9305 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9306 if test $ac_cv_func_backtrace = yes; then
9307
9308      case "$host" in
9309        ia64-*-linux*)
9310          # Has broken backtrace()
9311          ;;
9312        mips*-*-linux*)
9313          # Has broken backtrace(), but we supply our own.
9314          if test -d sysdep; then true; else mkdir -p sysdep; fi
9315          supply_backtrace=yes
9316
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_BACKTRACE 1
9319 _ACEOF
9320
9321          ;;
9322        *)
9323
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_BACKTRACE 1
9326 _ACEOF
9327
9328          ;;
9329      esac
9330
9331 else
9332
9333      case "$host" in
9334        *mingw*)
9335          # Has backtrace() defined in libgcj itself
9336
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_BACKTRACE 1
9339 _ACEOF
9340
9341          ;;
9342      esac
9343
9344 fi
9345
9346
9347    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9348 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9349 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352   ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-ldl  $LIBS"
9354 if test x$gcc_no_link = xyes; then
9355   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357    { (exit 1); exit 1; }; }
9358 fi
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h.  */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h.  */
9365
9366 /* Override any gcc2 internal prototype to avoid an error.  */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 /* We use char because int might match the return type of a gcc2
9371    builtin and then its argument prototype would still apply.  */
9372 char dladdr ();
9373 int
9374 main ()
9375 {
9376 dladdr ();
9377   ;
9378   return 0;
9379 }
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383   (eval $ac_link) 2>conftest.er1
9384   ac_status=$?
9385   grep -v '^ *+' conftest.er1 >conftest.err
9386   rm -f conftest.er1
9387   cat conftest.err >&5
9388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389   (exit $ac_status); } &&
9390          { ac_try='test -z "$ac_c_werror_flag"
9391                          || test ! -s conftest.err'
9392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393   (eval $ac_try) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); }; } &&
9397          { ac_try='test -s conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_lib_dl_dladdr=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_lib_dl_dladdr=no
9409 fi
9410 rm -f conftest.err conftest.$ac_objext \
9411       conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9413 fi
9414 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9415 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9416 if test $ac_cv_lib_dl_dladdr = yes; then
9417
9418      if test "x${disable_dladdr}" = "xyes"; then
9419        #Broken dladdr().
9420        true
9421      else
9422
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_DLADDR 1
9425 _ACEOF
9426
9427      fi
9428
9429 fi
9430
9431    if test x"$build" = x"$host"; then
9432      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9433 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9434 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 else
9437   test "$cross_compiling" = yes &&
9438   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9439 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9440    { (exit 1); exit 1; }; }
9441 if test -r "/proc/self/exe"; then
9442   ac_cv_file__proc_self_exe=yes
9443 else
9444   ac_cv_file__proc_self_exe=no
9445 fi
9446 fi
9447 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9448 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9449 if test $ac_cv_file__proc_self_exe = yes; then
9450
9451 cat >>confdefs.h <<_ACEOF
9452 #define HAVE__PROC_SELF_EXE 1
9453 _ACEOF
9454
9455
9456
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_PROC_SELF_EXE 1
9459 _ACEOF
9460
9461 fi
9462
9463    else
9464      case $host in
9465      *-linux*)
9466
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_PROC_SELF_EXE 1
9469 _ACEOF
9470
9471        ;;
9472      esac
9473    fi
9474
9475
9476       if test "X$prefix" = "XNONE"; then
9477     acl_final_prefix="$ac_default_prefix"
9478   else
9479     acl_final_prefix="$prefix"
9480   fi
9481   if test "X$exec_prefix" = "XNONE"; then
9482     acl_final_exec_prefix='${prefix}'
9483   else
9484     acl_final_exec_prefix="$exec_prefix"
9485   fi
9486   acl_save_prefix="$prefix"
9487   prefix="$acl_final_prefix"
9488   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9489   prefix="$acl_save_prefix"
9490
9491
9492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9493 if test "${with_gnu_ld+set}" = set; then
9494   withval="$with_gnu_ld"
9495   test "$withval" = no || with_gnu_ld=yes
9496 else
9497   with_gnu_ld=no
9498 fi;
9499 # Prepare PATH_SEPARATOR.
9500 # The user is always right.
9501 if test "${PATH_SEPARATOR+set}" != set; then
9502   echo "#! /bin/sh" >conf$$.sh
9503   echo  "exit 0"   >>conf$$.sh
9504   chmod +x conf$$.sh
9505   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9506     PATH_SEPARATOR=';'
9507   else
9508     PATH_SEPARATOR=:
9509   fi
9510   rm -f conf$$.sh
9511 fi
9512 ac_prog=ld
9513 if test "$GCC" = yes; then
9514   # Check if gcc -print-prog-name=ld gives a path.
9515   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9516 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9517   case $host in
9518   *-*-mingw*)
9519     # gcc leaves a trailing carriage return which upsets mingw
9520     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9521   *)
9522     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9523   esac
9524   case $ac_prog in
9525     # Accept absolute paths.
9526     [\\/]* | [A-Za-z]:[\\/]*)
9527       re_direlt='/[^/][^/]*/\.\./'
9528       # Canonicalize the path of ld
9529       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9530       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9532       done
9533       test -z "$LD" && LD="$ac_prog"
9534       ;;
9535   "")
9536     # If it fails, then pretend we aren't using GCC.
9537     ac_prog=ld
9538     ;;
9539   *)
9540     # If it is relative, then search for the first ld in PATH.
9541     with_gnu_ld=unknown
9542     ;;
9543   esac
9544 elif test "$with_gnu_ld" = yes; then
9545   echo "$as_me:$LINENO: checking for GNU ld" >&5
9546 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9547 else
9548   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9549 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9550 fi
9551 if test "${acl_cv_path_LD+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554   if test -z "$LD"; then
9555   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9556   for ac_dir in $PATH; do
9557     test -z "$ac_dir" && ac_dir=.
9558     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559       acl_cv_path_LD="$ac_dir/$ac_prog"
9560       # Check to see if the program is GNU ld.  I'd rather use --version,
9561       # but apparently some GNU ld's only accept -v.
9562       # Break only if it was the GNU/non-GNU ld that we prefer.
9563       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9564         test "$with_gnu_ld" != no && break
9565       else
9566         test "$with_gnu_ld" != yes && break
9567       fi
9568     fi
9569   done
9570   IFS="$ac_save_ifs"
9571 else
9572   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9573 fi
9574 fi
9575
9576 LD="$acl_cv_path_LD"
9577 if test -n "$LD"; then
9578   echo "$as_me:$LINENO: result: $LD" >&5
9579 echo "${ECHO_T}$LD" >&6
9580 else
9581   echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6
9583 fi
9584 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9585 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9586    { (exit 1); exit 1; }; }
9587 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9588 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9589 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9590   echo $ECHO_N "(cached) $ECHO_C" >&6
9591 else
9592   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9593 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9594   acl_cv_prog_gnu_ld=yes
9595 else
9596   acl_cv_prog_gnu_ld=no
9597 fi
9598 fi
9599 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9600 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9601 with_gnu_ld=$acl_cv_prog_gnu_ld
9602
9603
9604
9605                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9606 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9607 if test "${acl_cv_rpath+set}" = set; then
9608   echo $ECHO_N "(cached) $ECHO_C" >&6
9609 else
9610
9611     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9612     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9613     . ./conftest.sh
9614     rm -f ./conftest.sh
9615     acl_cv_rpath=done
9616
9617 fi
9618 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9619 echo "${ECHO_T}$acl_cv_rpath" >&6
9620   wl="$acl_cv_wl"
9621   libext="$acl_cv_libext"
9622   shlibext="$acl_cv_shlibext"
9623   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9624   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9625   hardcode_direct="$acl_cv_hardcode_direct"
9626   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9627     # Check whether --enable-rpath or --disable-rpath was given.
9628 if test "${enable_rpath+set}" = set; then
9629   enableval="$enable_rpath"
9630   :
9631 else
9632   enable_rpath=yes
9633 fi;
9634
9635
9636
9637
9638
9639
9640
9641     use_additional=yes
9642
9643   acl_save_prefix="$prefix"
9644   prefix="$acl_final_prefix"
9645   acl_save_exec_prefix="$exec_prefix"
9646   exec_prefix="$acl_final_exec_prefix"
9647
9648     eval additional_includedir=\"$includedir\"
9649     eval additional_libdir=\"$libdir\"
9650
9651   exec_prefix="$acl_save_exec_prefix"
9652   prefix="$acl_save_prefix"
9653
9654
9655 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9656 if test "${with_libiconv_prefix+set}" = set; then
9657   withval="$with_libiconv_prefix"
9658
9659     if test "X$withval" = "Xno"; then
9660       use_additional=no
9661     else
9662       if test "X$withval" = "X"; then
9663
9664   acl_save_prefix="$prefix"
9665   prefix="$acl_final_prefix"
9666   acl_save_exec_prefix="$exec_prefix"
9667   exec_prefix="$acl_final_exec_prefix"
9668
9669           eval additional_includedir=\"$includedir\"
9670           eval additional_libdir=\"$libdir\"
9671
9672   exec_prefix="$acl_save_exec_prefix"
9673   prefix="$acl_save_prefix"
9674
9675       else
9676         additional_includedir="$withval/include"
9677         additional_libdir="$withval/lib"
9678       fi
9679     fi
9680
9681 fi;
9682       LIBICONV=
9683   LTLIBICONV=
9684   INCICONV=
9685   rpathdirs=
9686   ltrpathdirs=
9687   names_already_handled=
9688   names_next_round='iconv '
9689   while test -n "$names_next_round"; do
9690     names_this_round="$names_next_round"
9691     names_next_round=
9692     for name in $names_this_round; do
9693       already_handled=
9694       for n in $names_already_handled; do
9695         if test "$n" = "$name"; then
9696           already_handled=yes
9697           break
9698         fi
9699       done
9700       if test -z "$already_handled"; then
9701         names_already_handled="$names_already_handled $name"
9702                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9703         eval value=\"\$HAVE_LIB$uppername\"
9704         if test -n "$value"; then
9705           if test "$value" = yes; then
9706             eval value=\"\$LIB$uppername\"
9707             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9708             eval value=\"\$LTLIB$uppername\"
9709             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9710           else
9711                                     :
9712           fi
9713         else
9714                               found_dir=
9715           found_la=
9716           found_so=
9717           found_a=
9718           if test $use_additional = yes; then
9719             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9720               found_dir="$additional_libdir"
9721               found_so="$additional_libdir/lib$name.$shlibext"
9722               if test -f "$additional_libdir/lib$name.la"; then
9723                 found_la="$additional_libdir/lib$name.la"
9724               fi
9725             else
9726               if test -f "$additional_libdir/lib$name.$libext"; then
9727                 found_dir="$additional_libdir"
9728                 found_a="$additional_libdir/lib$name.$libext"
9729                 if test -f "$additional_libdir/lib$name.la"; then
9730                   found_la="$additional_libdir/lib$name.la"
9731                 fi
9732               fi
9733             fi
9734           fi
9735           if test "X$found_dir" = "X"; then
9736             for x in $LDFLAGS $LTLIBICONV; do
9737
9738   acl_save_prefix="$prefix"
9739   prefix="$acl_final_prefix"
9740   acl_save_exec_prefix="$exec_prefix"
9741   exec_prefix="$acl_final_exec_prefix"
9742   eval x=\"$x\"
9743   exec_prefix="$acl_save_exec_prefix"
9744   prefix="$acl_save_prefix"
9745
9746               case "$x" in
9747                 -L*)
9748                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9749                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9750                     found_dir="$dir"
9751                     found_so="$dir/lib$name.$shlibext"
9752                     if test -f "$dir/lib$name.la"; then
9753                       found_la="$dir/lib$name.la"
9754                     fi
9755                   else
9756                     if test -f "$dir/lib$name.$libext"; then
9757                       found_dir="$dir"
9758                       found_a="$dir/lib$name.$libext"
9759                       if test -f "$dir/lib$name.la"; then
9760                         found_la="$dir/lib$name.la"
9761                       fi
9762                     fi
9763                   fi
9764                   ;;
9765               esac
9766               if test "X$found_dir" != "X"; then
9767                 break
9768               fi
9769             done
9770           fi
9771           if test "X$found_dir" != "X"; then
9772                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9773             if test "X$found_so" != "X"; then
9774                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9775                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9776               else
9777                                                                                 haveit=
9778                 for x in $ltrpathdirs; do
9779                   if test "X$x" = "X$found_dir"; then
9780                     haveit=yes
9781                     break
9782                   fi
9783                 done
9784                 if test -z "$haveit"; then
9785                   ltrpathdirs="$ltrpathdirs $found_dir"
9786                 fi
9787                                 if test "$hardcode_direct" = yes; then
9788                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9789                 else
9790                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9791                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9792                                                             haveit=
9793                     for x in $rpathdirs; do
9794                       if test "X$x" = "X$found_dir"; then
9795                         haveit=yes
9796                         break
9797                       fi
9798                     done
9799                     if test -z "$haveit"; then
9800                       rpathdirs="$rpathdirs $found_dir"
9801                     fi
9802                   else
9803                                                                                 haveit=
9804                     for x in $LDFLAGS $LIBICONV; do
9805
9806   acl_save_prefix="$prefix"
9807   prefix="$acl_final_prefix"
9808   acl_save_exec_prefix="$exec_prefix"
9809   exec_prefix="$acl_final_exec_prefix"
9810   eval x=\"$x\"
9811   exec_prefix="$acl_save_exec_prefix"
9812   prefix="$acl_save_prefix"
9813
9814                       if test "X$x" = "X-L$found_dir"; then
9815                         haveit=yes
9816                         break
9817                       fi
9818                     done
9819                     if test -z "$haveit"; then
9820                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9821                     fi
9822                     if test "$hardcode_minus_L" != no; then
9823                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9824                     else
9825                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9826                     fi
9827                   fi
9828                 fi
9829               fi
9830             else
9831               if test "X$found_a" != "X"; then
9832                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9833               else
9834                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9835               fi
9836             fi
9837                         additional_includedir=
9838             case "$found_dir" in
9839               */lib | */lib/)
9840                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9841                 additional_includedir="$basedir/include"
9842                 ;;
9843             esac
9844             if test "X$additional_includedir" != "X"; then
9845                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9846                 haveit=
9847                 if test "X$additional_includedir" = "X/usr/local/include"; then
9848                   if test -n "$GCC"; then
9849                     case $host_os in
9850                       linux*) haveit=yes;;
9851                     esac
9852                   fi
9853                 fi
9854                 if test -z "$haveit"; then
9855                   for x in $CPPFLAGS $INCICONV; do
9856
9857   acl_save_prefix="$prefix"
9858   prefix="$acl_final_prefix"
9859   acl_save_exec_prefix="$exec_prefix"
9860   exec_prefix="$acl_final_exec_prefix"
9861   eval x=\"$x\"
9862   exec_prefix="$acl_save_exec_prefix"
9863   prefix="$acl_save_prefix"
9864
9865                     if test "X$x" = "X-I$additional_includedir"; then
9866                       haveit=yes
9867                       break
9868                     fi
9869                   done
9870                   if test -z "$haveit"; then
9871                     if test -d "$additional_includedir"; then
9872                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9873                     fi
9874                   fi
9875                 fi
9876               fi
9877             fi
9878                         if test -n "$found_la"; then
9879                                                         save_libdir="$libdir"
9880               case "$found_la" in
9881                 */* | *\\*) . "$found_la" ;;
9882                 *) . "./$found_la" ;;
9883               esac
9884               libdir="$save_libdir"
9885                             for dep in $dependency_libs; do
9886                 case "$dep" in
9887                   -L*)
9888                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9889                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9890                       haveit=
9891                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9892                         if test -n "$GCC"; then
9893                           case $host_os in
9894                             linux*) haveit=yes;;
9895                           esac
9896                         fi
9897                       fi
9898                       if test -z "$haveit"; then
9899                         haveit=
9900                         for x in $LDFLAGS $LIBICONV; do
9901
9902   acl_save_prefix="$prefix"
9903   prefix="$acl_final_prefix"
9904   acl_save_exec_prefix="$exec_prefix"
9905   exec_prefix="$acl_final_exec_prefix"
9906   eval x=\"$x\"
9907   exec_prefix="$acl_save_exec_prefix"
9908   prefix="$acl_save_prefix"
9909
9910                           if test "X$x" = "X-L$additional_libdir"; then
9911                             haveit=yes
9912                             break
9913                           fi
9914                         done
9915                         if test -z "$haveit"; then
9916                           if test -d "$additional_libdir"; then
9917                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9918                           fi
9919                         fi
9920                         haveit=
9921                         for x in $LDFLAGS $LTLIBICONV; do
9922
9923   acl_save_prefix="$prefix"
9924   prefix="$acl_final_prefix"
9925   acl_save_exec_prefix="$exec_prefix"
9926   exec_prefix="$acl_final_exec_prefix"
9927   eval x=\"$x\"
9928   exec_prefix="$acl_save_exec_prefix"
9929   prefix="$acl_save_prefix"
9930
9931                           if test "X$x" = "X-L$additional_libdir"; then
9932                             haveit=yes
9933                             break
9934                           fi
9935                         done
9936                         if test -z "$haveit"; then
9937                           if test -d "$additional_libdir"; then
9938                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9939                           fi
9940                         fi
9941                       fi
9942                     fi
9943                     ;;
9944                   -R*)
9945                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9946                     if test "$enable_rpath" != no; then
9947                                                                   haveit=
9948                       for x in $rpathdirs; do
9949                         if test "X$x" = "X$dir"; then
9950                           haveit=yes
9951                           break
9952                         fi
9953                       done
9954                       if test -z "$haveit"; then
9955                         rpathdirs="$rpathdirs $dir"
9956                       fi
9957                                                                   haveit=
9958                       for x in $ltrpathdirs; do
9959                         if test "X$x" = "X$dir"; then
9960                           haveit=yes
9961                           break
9962                         fi
9963                       done
9964                       if test -z "$haveit"; then
9965                         ltrpathdirs="$ltrpathdirs $dir"
9966                       fi
9967                     fi
9968                     ;;
9969                   -l*)
9970                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9971                     ;;
9972                   *.la)
9973                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9974                     ;;
9975                   *)
9976                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9977                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9978                     ;;
9979                 esac
9980               done
9981             fi
9982           else
9983                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9984             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9985           fi
9986         fi
9987       fi
9988     done
9989   done
9990   if test "X$rpathdirs" != "X"; then
9991     if test -n "$hardcode_libdir_separator"; then
9992                         alldirs=
9993       for found_dir in $rpathdirs; do
9994         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9995       done
9996             acl_save_libdir="$libdir"
9997       libdir="$alldirs"
9998       eval flag=\"$hardcode_libdir_flag_spec\"
9999       libdir="$acl_save_libdir"
10000       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10001     else
10002             for found_dir in $rpathdirs; do
10003         acl_save_libdir="$libdir"
10004         libdir="$found_dir"
10005         eval flag=\"$hardcode_libdir_flag_spec\"
10006         libdir="$acl_save_libdir"
10007         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10008       done
10009     fi
10010   fi
10011   if test "X$ltrpathdirs" != "X"; then
10012             for found_dir in $ltrpathdirs; do
10013       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10014     done
10015   fi
10016
10017
10018
10019
10020
10021
10022
10023           am_save_CPPFLAGS="$CPPFLAGS"
10024
10025   for element in $INCICONV; do
10026     haveit=
10027     for x in $CPPFLAGS; do
10028
10029   acl_save_prefix="$prefix"
10030   prefix="$acl_final_prefix"
10031   acl_save_exec_prefix="$exec_prefix"
10032   exec_prefix="$acl_final_exec_prefix"
10033   eval x=\"$x\"
10034   exec_prefix="$acl_save_exec_prefix"
10035   prefix="$acl_save_prefix"
10036
10037       if test "X$x" = "X$element"; then
10038         haveit=yes
10039         break
10040       fi
10041     done
10042     if test -z "$haveit"; then
10043       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10044     fi
10045   done
10046
10047
10048   echo "$as_me:$LINENO: checking for iconv" >&5
10049 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10050 if test "${am_cv_func_iconv+set}" = set; then
10051   echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053
10054     am_cv_func_iconv="no, consider installing GNU libiconv"
10055     am_cv_lib_iconv=no
10056     if test x$gcc_no_link = xyes; then
10057   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10059    { (exit 1); exit 1; }; }
10060 fi
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h.  */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h.  */
10067 #include <stdlib.h>
10068 #include <iconv.h>
10069 int
10070 main ()
10071 {
10072 iconv_t cd = iconv_open("","");
10073        iconv(cd,NULL,NULL,NULL,NULL);
10074        iconv_close(cd);
10075   ;
10076   return 0;
10077 }
10078 _ACEOF
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081   (eval $ac_link) 2>conftest.er1
10082   ac_status=$?
10083   grep -v '^ *+' conftest.er1 >conftest.err
10084   rm -f conftest.er1
10085   cat conftest.err >&5
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); } &&
10088          { ac_try='test -z "$ac_c_werror_flag"
10089                          || test ! -s conftest.err'
10090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091   (eval $ac_try) 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; } &&
10095          { ac_try='test -s conftest$ac_exeext'
10096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097   (eval $ac_try) 2>&5
10098   ac_status=$?
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); }; }; then
10101   am_cv_func_iconv=yes
10102 else
10103   echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10105
10106 fi
10107 rm -f conftest.err conftest.$ac_objext \
10108       conftest$ac_exeext conftest.$ac_ext
10109     if test "$am_cv_func_iconv" != yes; then
10110       am_save_LIBS="$LIBS"
10111       LIBS="$LIBS $LIBICONV"
10112       if test x$gcc_no_link = xyes; then
10113   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10115    { (exit 1); exit 1; }; }
10116 fi
10117 cat >conftest.$ac_ext <<_ACEOF
10118 /* confdefs.h.  */
10119 _ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h.  */
10123 #include <stdlib.h>
10124 #include <iconv.h>
10125 int
10126 main ()
10127 {
10128 iconv_t cd = iconv_open("","");
10129          iconv(cd,NULL,NULL,NULL,NULL);
10130          iconv_close(cd);
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137   (eval $ac_link) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest$ac_exeext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   am_cv_lib_iconv=yes
10158         am_cv_func_iconv=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 fi
10164 rm -f conftest.err conftest.$ac_objext \
10165       conftest$ac_exeext conftest.$ac_ext
10166       LIBS="$am_save_LIBS"
10167     fi
10168
10169 fi
10170 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10171 echo "${ECHO_T}$am_cv_func_iconv" >&6
10172   if test "$am_cv_func_iconv" = yes; then
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_ICONV 1
10176 _ACEOF
10177
10178   fi
10179   if test "$am_cv_lib_iconv" = yes; then
10180     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10181 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10182     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10183 echo "${ECHO_T}$LIBICONV" >&6
10184   else
10185             CPPFLAGS="$am_save_CPPFLAGS"
10186     LIBICONV=
10187     LTLIBICONV=
10188   fi
10189
10190
10191
10192   if test "$am_cv_func_iconv" = yes; then
10193     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10194 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10195     if test "${am_cv_proto_iconv+set}" = set; then
10196   echo $ECHO_N "(cached) $ECHO_C" >&6
10197 else
10198
10199       cat >conftest.$ac_ext <<_ACEOF
10200 /* confdefs.h.  */
10201 _ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h.  */
10205
10206 #include <stdlib.h>
10207 #include <iconv.h>
10208 extern
10209 #ifdef __cplusplus
10210 "C"
10211 #endif
10212 #if defined(__STDC__) || defined(__cplusplus)
10213 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10214 #else
10215 size_t iconv();
10216 #endif
10217
10218 int
10219 main ()
10220 {
10221
10222   ;
10223   return 0;
10224 }
10225 _ACEOF
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228   (eval $ac_compile) 2>conftest.er1
10229   ac_status=$?
10230   grep -v '^ *+' conftest.er1 >conftest.err
10231   rm -f conftest.er1
10232   cat conftest.err >&5
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -z "$ac_c_werror_flag"
10236                          || test ! -s conftest.err'
10237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238   (eval $ac_try) 2>&5
10239   ac_status=$?
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); }; } &&
10242          { ac_try='test -s conftest.$ac_objext'
10243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244   (eval $ac_try) 2>&5
10245   ac_status=$?
10246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247   (exit $ac_status); }; }; then
10248   am_cv_proto_iconv_arg1=""
10249 else
10250   echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10252
10253 am_cv_proto_iconv_arg1="const"
10254 fi
10255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10256       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);"
10257 fi
10258
10259     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10260     echo "$as_me:$LINENO: result: ${ac_t:-
10261          }$am_cv_proto_iconv" >&5
10262 echo "${ECHO_T}${ac_t:-
10263          }$am_cv_proto_iconv" >&6
10264
10265 cat >>confdefs.h <<_ACEOF
10266 #define ICONV_CONST $am_cv_proto_iconv_arg1
10267 _ACEOF
10268
10269   fi
10270
10271
10272   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10273 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10274 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10275   echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277   if test x$gcc_no_link = xyes; then
10278   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10280    { (exit 1); exit 1; }; }
10281 fi
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288 #include <locale.h>
10289 int
10290 main ()
10291 {
10292 return LC_MESSAGES
10293   ;
10294   return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299   (eval $ac_link) 2>conftest.er1
10300   ac_status=$?
10301   grep -v '^ *+' conftest.er1 >conftest.err
10302   rm -f conftest.er1
10303   cat conftest.err >&5
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } &&
10306          { ac_try='test -z "$ac_c_werror_flag"
10307                          || test ! -s conftest.err'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; } &&
10313          { ac_try='test -s conftest$ac_exeext'
10314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315   (eval $ac_try) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; }; then
10319   am_cv_val_LC_MESSAGES=yes
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 am_cv_val_LC_MESSAGES=no
10325 fi
10326 rm -f conftest.err conftest.$ac_objext \
10327       conftest$ac_exeext conftest.$ac_ext
10328 fi
10329 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10330 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10331   if test $am_cv_val_LC_MESSAGES = yes; then
10332
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_LC_MESSAGES 1
10335 _ACEOF
10336
10337   fi
10338
10339    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10340 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10341 if test "${ac_cv_struct_tm+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350 #include <sys/types.h>
10351 #include <time.h>
10352
10353 int
10354 main ()
10355 {
10356 struct tm *tp; tp->tm_sec;
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363   (eval $ac_compile) 2>conftest.er1
10364   ac_status=$?
10365   grep -v '^ *+' conftest.er1 >conftest.err
10366   rm -f conftest.er1
10367   cat conftest.err >&5
10368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369   (exit $ac_status); } &&
10370          { ac_try='test -z "$ac_c_werror_flag"
10371                          || test ! -s conftest.err'
10372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373   (eval $ac_try) 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; } &&
10377          { ac_try='test -s conftest.$ac_objext'
10378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379   (eval $ac_try) 2>&5
10380   ac_status=$?
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); }; }; then
10383   ac_cv_struct_tm=time.h
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_cv_struct_tm=sys/time.h
10389 fi
10390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10391 fi
10392 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10393 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10394 if test $ac_cv_struct_tm = sys/time.h; then
10395
10396 cat >>confdefs.h <<\_ACEOF
10397 #define TM_IN_SYS_TIME 1
10398 _ACEOF
10399
10400 fi
10401
10402 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10403 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10404 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 #include <sys/types.h>
10414 #include <$ac_cv_struct_tm>
10415
10416
10417 int
10418 main ()
10419 {
10420 static struct tm ac_aggr;
10421 if (ac_aggr.tm_zone)
10422 return 0;
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 rm -f conftest.$ac_objext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429   (eval $ac_compile) 2>conftest.er1
10430   ac_status=$?
10431   grep -v '^ *+' conftest.er1 >conftest.err
10432   rm -f conftest.er1
10433   cat conftest.err >&5
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } &&
10436          { ac_try='test -z "$ac_c_werror_flag"
10437                          || test ! -s conftest.err'
10438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439   (eval $ac_try) 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); }; } &&
10443          { ac_try='test -s conftest.$ac_objext'
10444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445   (eval $ac_try) 2>&5
10446   ac_status=$?
10447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448   (exit $ac_status); }; }; then
10449   ac_cv_member_struct_tm_tm_zone=yes
10450 else
10451   echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10453
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h.  */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h.  */
10460 #include <sys/types.h>
10461 #include <$ac_cv_struct_tm>
10462
10463
10464 int
10465 main ()
10466 {
10467 static struct tm ac_aggr;
10468 if (sizeof ac_aggr.tm_zone)
10469 return 0;
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476   (eval $ac_compile) 2>conftest.er1
10477   ac_status=$?
10478   grep -v '^ *+' conftest.er1 >conftest.err
10479   rm -f conftest.er1
10480   cat conftest.err >&5
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -z "$ac_c_werror_flag"
10484                          || test ! -s conftest.err'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; } &&
10490          { ac_try='test -s conftest.$ac_objext'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; }; then
10496   ac_cv_member_struct_tm_tm_zone=yes
10497 else
10498   echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 ac_cv_member_struct_tm_tm_zone=no
10502 fi
10503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10504 fi
10505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10508 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10509 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10510
10511 cat >>confdefs.h <<_ACEOF
10512 #define HAVE_STRUCT_TM_TM_ZONE 1
10513 _ACEOF
10514
10515
10516 fi
10517
10518 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10519
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_TM_ZONE 1
10522 _ACEOF
10523
10524 else
10525   echo "$as_me:$LINENO: checking for tzname" >&5
10526 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10527 if test "${ac_cv_var_tzname+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   if test x$gcc_no_link = xyes; then
10531   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10533    { (exit 1); exit 1; }; }
10534 fi
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541 #include <time.h>
10542 #ifndef tzname /* For SGI.  */
10543 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10544 #endif
10545
10546 int
10547 main ()
10548 {
10549 atoi(*tzname);
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556   (eval $ac_link) 2>conftest.er1
10557   ac_status=$?
10558   grep -v '^ *+' conftest.er1 >conftest.err
10559   rm -f conftest.er1
10560   cat conftest.err >&5
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); } &&
10563          { ac_try='test -z "$ac_c_werror_flag"
10564                          || test ! -s conftest.err'
10565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566   (eval $ac_try) 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; } &&
10570          { ac_try='test -s conftest$ac_exeext'
10571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572   (eval $ac_try) 2>&5
10573   ac_status=$?
10574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575   (exit $ac_status); }; }; then
10576   ac_cv_var_tzname=yes
10577 else
10578   echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10580
10581 ac_cv_var_tzname=no
10582 fi
10583 rm -f conftest.err conftest.$ac_objext \
10584       conftest$ac_exeext conftest.$ac_ext
10585 fi
10586 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10587 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10588   if test $ac_cv_var_tzname = yes; then
10589
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_TZNAME 1
10592 _ACEOF
10593
10594   fi
10595 fi
10596
10597
10598
10599
10600 for ac_func in gethostbyname_r
10601 do
10602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10603 echo "$as_me:$LINENO: checking for $ac_func" >&5
10604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_var+set}\" = set"; then
10606   echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608   if test x$gcc_no_link = xyes; then
10609   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10611    { (exit 1); exit 1; }; }
10612 fi
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10621 #define $ac_func innocuous_$ac_func
10622
10623 /* System header to define __stub macros and hopefully few prototypes,
10624     which can conflict with char $ac_func (); below.
10625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626     <limits.h> exists even on freestanding compilers.  */
10627
10628 #ifdef __STDC__
10629 # include <limits.h>
10630 #else
10631 # include <assert.h>
10632 #endif
10633
10634 #undef $ac_func
10635
10636 /* Override any gcc2 internal prototype to avoid an error.  */
10637 #ifdef __cplusplus
10638 extern "C"
10639 {
10640 #endif
10641 /* We use char because int might match the return type of a gcc2
10642    builtin and then its argument prototype would still apply.  */
10643 char $ac_func ();
10644 /* The GNU C library defines this for functions which it implements
10645     to always fail with ENOSYS.  Some functions are actually named
10646     something starting with __ and the normal name is an alias.  */
10647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10648 choke me
10649 #else
10650 char (*f) () = $ac_func;
10651 #endif
10652 #ifdef __cplusplus
10653 }
10654 #endif
10655
10656 int
10657 main ()
10658 {
10659 return f != $ac_func;
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666   (eval $ac_link) 2>conftest.er1
10667   ac_status=$?
10668   grep -v '^ *+' conftest.er1 >conftest.err
10669   rm -f conftest.er1
10670   cat conftest.err >&5
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); } &&
10673          { ac_try='test -z "$ac_c_werror_flag"
10674                          || test ! -s conftest.err'
10675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676   (eval $ac_try) 2>&5
10677   ac_status=$?
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; } &&
10680          { ac_try='test -s conftest$ac_exeext'
10681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682   (eval $ac_try) 2>&5
10683   ac_status=$?
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); }; }; then
10686   eval "$as_ac_var=yes"
10687 else
10688   echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 eval "$as_ac_var=no"
10692 fi
10693 rm -f conftest.err conftest.$ac_objext \
10694       conftest$ac_exeext conftest.$ac_ext
10695 fi
10696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10698 if test `eval echo '${'$as_ac_var'}'` = yes; then
10699   cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10701 _ACEOF
10702
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define HAVE_GETHOSTBYNAME_R 1
10706 _ACEOF
10707
10708      # There are two different kinds of gethostbyname_r.
10709      # We look for the one that returns `int'.
10710      # Hopefully this check is robust enough.
10711      cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h.  */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h.  */
10717 #include <netdb.h>
10718
10719 _ACEOF
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10722
10723
10724 cat >>confdefs.h <<\_ACEOF
10725 #define GETHOSTBYNAME_R_RETURNS_INT 1
10726 _ACEOF
10727
10728 fi
10729 rm -f conftest*
10730
10731
10732      case " $GCINCS " in
10733      *" -D_REENTRANT "*) ;;
10734      *)
10735                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10736 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10737 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10738   echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740    ac_ext=cc
10741 ac_cpp='$CXXCPP $CPPFLAGS'
10742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10745
10746           cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752 #include <netdb.h>
10753 int
10754 main ()
10755 {
10756 gethostbyname_r("", 0, 0);
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763   (eval $ac_compile) 2>conftest.er1
10764   ac_status=$?
10765   grep -v '^ *+' conftest.er1 >conftest.err
10766   rm -f conftest.er1
10767   cat conftest.err >&5
10768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769   (exit $ac_status); } &&
10770          { ac_try='test -z "$ac_cxx_werror_flag"
10771                          || test ! -s conftest.err'
10772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773   (eval $ac_try) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); }; } &&
10777          { ac_try='test -s conftest.$ac_objext'
10778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779   (eval $ac_try) 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; }; then
10783   libjava_cv_gethostbyname_r_needs_reentrant=no
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788                 CPPFLAGS_SAVE="$CPPFLAGS"
10789                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10790                 cat >conftest.$ac_ext <<_ACEOF
10791 /* confdefs.h.  */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h.  */
10796 #include <netdb.h>
10797 int
10798 main ()
10799 {
10800 gethostbyname_r("", 0, 0);
10801   ;
10802   return 0;
10803 }
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10807   (eval $ac_compile) 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } &&
10814          { ac_try='test -z "$ac_cxx_werror_flag"
10815                          || test ! -s conftest.err'
10816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817   (eval $ac_try) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; } &&
10821          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10827   libjava_cv_gethostbyname_r_needs_reentrant=yes
10828 else
10829   echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 libjava_cv_gethostbyname_r_needs_reentrant=fail
10833 fi
10834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835                 CPPFLAGS="$CPPFLAGS_SAVE"
10836
10837 fi
10838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10839           ac_ext=c
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10844
10845
10846 fi
10847 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10848 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10849         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define _REENTRANT 1
10853 _ACEOF
10854
10855         fi
10856      ;;
10857      esac
10858
10859      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10860 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10861 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10862   echo $ECHO_N "(cached) $ECHO_C" >&6
10863 else
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 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10872 # define _REENTRANT 1
10873 #endif
10874 #include <netdb.h>
10875 int
10876 main ()
10877 {
10878 struct hostent_data data;
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885   (eval $ac_compile) 2>conftest.er1
10886   ac_status=$?
10887   grep -v '^ *+' conftest.er1 >conftest.err
10888   rm -f conftest.er1
10889   cat conftest.err >&5
10890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891   (exit $ac_status); } &&
10892          { ac_try='test -z "$ac_c_werror_flag"
10893                          || test ! -s conftest.err'
10894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895   (eval $ac_try) 2>&5
10896   ac_status=$?
10897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898   (exit $ac_status); }; } &&
10899          { ac_try='test -s conftest.$ac_objext'
10900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901   (eval $ac_try) 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905   libjava_cv_struct_hostent_data=yes
10906 else
10907   echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10909
10910 libjava_cv_struct_hostent_data=no
10911 fi
10912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10913 fi
10914 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10915 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10916      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10917
10918 cat >>confdefs.h <<\_ACEOF
10919 #define HAVE_STRUCT_HOSTENT_DATA 1
10920 _ACEOF
10921
10922      fi
10923
10924 fi
10925 done
10926
10927
10928    # FIXME: libjava source code expects to find a prototype for
10929    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10930    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10931    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10932    # linkage check is enough, yet C++ code requires proper prototypes.)
10933    cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h.  */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h.  */
10939 #include <netdb.h>
10940
10941 _ACEOF
10942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10943   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10944
10945
10946 for ac_func in gethostbyaddr_r
10947 do
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10951 if eval "test \"\${$as_ac_var+set}\" = set"; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954   if test x$gcc_no_link = xyes; then
10955   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10957    { (exit 1); exit 1; }; }
10958 fi
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10967 #define $ac_func innocuous_$ac_func
10968
10969 /* System header to define __stub macros and hopefully few prototypes,
10970     which can conflict with char $ac_func (); below.
10971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10972     <limits.h> exists even on freestanding compilers.  */
10973
10974 #ifdef __STDC__
10975 # include <limits.h>
10976 #else
10977 # include <assert.h>
10978 #endif
10979
10980 #undef $ac_func
10981
10982 /* Override any gcc2 internal prototype to avoid an error.  */
10983 #ifdef __cplusplus
10984 extern "C"
10985 {
10986 #endif
10987 /* We use char because int might match the return type of a gcc2
10988    builtin and then its argument prototype would still apply.  */
10989 char $ac_func ();
10990 /* The GNU C library defines this for functions which it implements
10991     to always fail with ENOSYS.  Some functions are actually named
10992     something starting with __ and the normal name is an alias.  */
10993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10994 choke me
10995 #else
10996 char (*f) () = $ac_func;
10997 #endif
10998 #ifdef __cplusplus
10999 }
11000 #endif
11001
11002 int
11003 main ()
11004 {
11005 return f != $ac_func;
11006   ;
11007   return 0;
11008 }
11009 _ACEOF
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012   (eval $ac_link) 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } &&
11019          { ac_try='test -z "$ac_c_werror_flag"
11020                          || test ! -s conftest.err'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; } &&
11026          { ac_try='test -s conftest$ac_exeext'
11027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028   (eval $ac_try) 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; }; then
11032   eval "$as_ac_var=yes"
11033 else
11034   echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11036
11037 eval "$as_ac_var=no"
11038 fi
11039 rm -f conftest.err conftest.$ac_objext \
11040       conftest$ac_exeext conftest.$ac_ext
11041 fi
11042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11044 if test `eval echo '${'$as_ac_var'}'` = yes; then
11045   cat >>confdefs.h <<_ACEOF
11046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11047 _ACEOF
11048
11049
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_GETHOSTBYADDR_R 1
11052 _ACEOF
11053
11054      # There are two different kinds of gethostbyaddr_r.
11055      # We look for the one that returns `int'.
11056      # Hopefully this check is robust enough.
11057      cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063 #include <netdb.h>
11064
11065 _ACEOF
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11068
11069
11070 cat >>confdefs.h <<\_ACEOF
11071 #define GETHOSTBYADDR_R_RETURNS_INT 1
11072 _ACEOF
11073
11074 fi
11075 rm -f conftest*
11076
11077 fi
11078 done
11079
11080 fi
11081 rm -f conftest*
11082
11083
11084
11085 for ac_func in gethostname
11086 do
11087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088 echo "$as_me:$LINENO: checking for $ac_func" >&5
11089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11090 if eval "test \"\${$as_ac_var+set}\" = set"; then
11091   echo $ECHO_N "(cached) $ECHO_C" >&6
11092 else
11093   if test x$gcc_no_link = xyes; then
11094   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11096    { (exit 1); exit 1; }; }
11097 fi
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h.  */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h.  */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11106 #define $ac_func innocuous_$ac_func
11107
11108 /* System header to define __stub macros and hopefully few prototypes,
11109     which can conflict with char $ac_func (); below.
11110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111     <limits.h> exists even on freestanding compilers.  */
11112
11113 #ifdef __STDC__
11114 # include <limits.h>
11115 #else
11116 # include <assert.h>
11117 #endif
11118
11119 #undef $ac_func
11120
11121 /* Override any gcc2 internal prototype to avoid an error.  */
11122 #ifdef __cplusplus
11123 extern "C"
11124 {
11125 #endif
11126 /* We use char because int might match the return type of a gcc2
11127    builtin and then its argument prototype would still apply.  */
11128 char $ac_func ();
11129 /* The GNU C library defines this for functions which it implements
11130     to always fail with ENOSYS.  Some functions are actually named
11131     something starting with __ and the normal name is an alias.  */
11132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11133 choke me
11134 #else
11135 char (*f) () = $ac_func;
11136 #endif
11137 #ifdef __cplusplus
11138 }
11139 #endif
11140
11141 int
11142 main ()
11143 {
11144 return f != $ac_func;
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151   (eval $ac_link) 2>conftest.er1
11152   ac_status=$?
11153   grep -v '^ *+' conftest.er1 >conftest.err
11154   rm -f conftest.er1
11155   cat conftest.err >&5
11156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157   (exit $ac_status); } &&
11158          { ac_try='test -z "$ac_c_werror_flag"
11159                          || test ! -s conftest.err'
11160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161   (eval $ac_try) 2>&5
11162   ac_status=$?
11163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164   (exit $ac_status); }; } &&
11165          { ac_try='test -s conftest$ac_exeext'
11166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167   (eval $ac_try) 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; }; then
11171   eval "$as_ac_var=yes"
11172 else
11173   echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 eval "$as_ac_var=no"
11177 fi
11178 rm -f conftest.err conftest.$ac_objext \
11179       conftest$ac_exeext conftest.$ac_ext
11180 fi
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184   cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11186 _ACEOF
11187
11188
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_GETHOSTNAME 1
11191 _ACEOF
11192
11193      cat >conftest.$ac_ext <<_ACEOF
11194 /* confdefs.h.  */
11195 _ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h.  */
11199 #include <unistd.h>
11200
11201 _ACEOF
11202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11203   $EGREP "gethostname" >/dev/null 2>&1; then
11204
11205
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_GETHOSTNAME_DECL 1
11208 _ACEOF
11209
11210 fi
11211 rm -f conftest*
11212
11213 fi
11214 done
11215
11216
11217
11218 for ac_func in usleep
11219 do
11220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11223 if eval "test \"\${$as_ac_var+set}\" = set"; then
11224   echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226   if test x$gcc_no_link = xyes; then
11227   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11229    { (exit 1); exit 1; }; }
11230 fi
11231 cat >conftest.$ac_ext <<_ACEOF
11232 /* confdefs.h.  */
11233 _ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h.  */
11237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11239 #define $ac_func innocuous_$ac_func
11240
11241 /* System header to define __stub macros and hopefully few prototypes,
11242     which can conflict with char $ac_func (); below.
11243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244     <limits.h> exists even on freestanding compilers.  */
11245
11246 #ifdef __STDC__
11247 # include <limits.h>
11248 #else
11249 # include <assert.h>
11250 #endif
11251
11252 #undef $ac_func
11253
11254 /* Override any gcc2 internal prototype to avoid an error.  */
11255 #ifdef __cplusplus
11256 extern "C"
11257 {
11258 #endif
11259 /* We use char because int might match the return type of a gcc2
11260    builtin and then its argument prototype would still apply.  */
11261 char $ac_func ();
11262 /* The GNU C library defines this for functions which it implements
11263     to always fail with ENOSYS.  Some functions are actually named
11264     something starting with __ and the normal name is an alias.  */
11265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11266 choke me
11267 #else
11268 char (*f) () = $ac_func;
11269 #endif
11270 #ifdef __cplusplus
11271 }
11272 #endif
11273
11274 int
11275 main ()
11276 {
11277 return f != $ac_func;
11278   ;
11279   return 0;
11280 }
11281 _ACEOF
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284   (eval $ac_link) 2>conftest.er1
11285   ac_status=$?
11286   grep -v '^ *+' conftest.er1 >conftest.err
11287   rm -f conftest.er1
11288   cat conftest.err >&5
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); } &&
11291          { ac_try='test -z "$ac_c_werror_flag"
11292                          || test ! -s conftest.err'
11293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294   (eval $ac_try) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; } &&
11298          { ac_try='test -s conftest$ac_exeext'
11299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300   (eval $ac_try) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; }; then
11304   eval "$as_ac_var=yes"
11305 else
11306   echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309 eval "$as_ac_var=no"
11310 fi
11311 rm -f conftest.err conftest.$ac_objext \
11312       conftest$ac_exeext conftest.$ac_ext
11313 fi
11314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317   cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 _ACEOF
11320
11321      cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h.  */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h.  */
11327 #include <unistd.h>
11328
11329 _ACEOF
11330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11331   $EGREP "usleep" >/dev/null 2>&1; then
11332
11333
11334 cat >>confdefs.h <<\_ACEOF
11335 #define HAVE_USLEEP_DECL 1
11336 _ACEOF
11337
11338 fi
11339 rm -f conftest*
11340
11341 fi
11342 done
11343
11344
11345    # Look for these functions in the thread library, but only bother
11346    # if using POSIX threads.
11347    if test "$THREADS" = posix; then
11348       save_LIBS="$LIBS"
11349       LIBS="$LIBS $THREADLIBS"
11350       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11351       # E.g., Solaris.
11352
11353
11354 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11355 do
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360   echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362   if test x$gcc_no_link = xyes; then
11363   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11365    { (exit 1); exit 1; }; }
11366 fi
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h.  */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h.  */
11373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11375 #define $ac_func innocuous_$ac_func
11376
11377 /* System header to define __stub macros and hopefully few prototypes,
11378     which can conflict with char $ac_func (); below.
11379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380     <limits.h> exists even on freestanding compilers.  */
11381
11382 #ifdef __STDC__
11383 # include <limits.h>
11384 #else
11385 # include <assert.h>
11386 #endif
11387
11388 #undef $ac_func
11389
11390 /* Override any gcc2 internal prototype to avoid an error.  */
11391 #ifdef __cplusplus
11392 extern "C"
11393 {
11394 #endif
11395 /* We use char because int might match the return type of a gcc2
11396    builtin and then its argument prototype would still apply.  */
11397 char $ac_func ();
11398 /* The GNU C library defines this for functions which it implements
11399     to always fail with ENOSYS.  Some functions are actually named
11400     something starting with __ and the normal name is an alias.  */
11401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11402 choke me
11403 #else
11404 char (*f) () = $ac_func;
11405 #endif
11406 #ifdef __cplusplus
11407 }
11408 #endif
11409
11410 int
11411 main ()
11412 {
11413 return f != $ac_func;
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11420   (eval $ac_link) 2>conftest.er1
11421   ac_status=$?
11422   grep -v '^ *+' conftest.er1 >conftest.err
11423   rm -f conftest.er1
11424   cat conftest.err >&5
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); } &&
11427          { ac_try='test -z "$ac_c_werror_flag"
11428                          || test ! -s conftest.err'
11429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430   (eval $ac_try) 2>&5
11431   ac_status=$?
11432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433   (exit $ac_status); }; } &&
11434          { ac_try='test -s conftest$ac_exeext'
11435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436   (eval $ac_try) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }; }; then
11440   eval "$as_ac_var=yes"
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 eval "$as_ac_var=no"
11446 fi
11447 rm -f conftest.err conftest.$ac_objext \
11448       conftest$ac_exeext conftest.$ac_ext
11449 fi
11450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11452 if test `eval echo '${'$as_ac_var'}'` = yes; then
11453   cat >>confdefs.h <<_ACEOF
11454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 _ACEOF
11456
11457 fi
11458 done
11459
11460
11461       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11462       # Solaris 7 the name librt is preferred.
11463
11464 for ac_func in sched_yield
11465 do
11466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11467 echo "$as_me:$LINENO: checking for $ac_func" >&5
11468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11469 if eval "test \"\${$as_ac_var+set}\" = set"; then
11470   echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472   if test x$gcc_no_link = xyes; then
11473   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11475    { (exit 1); exit 1; }; }
11476 fi
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h.  */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h.  */
11483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11485 #define $ac_func innocuous_$ac_func
11486
11487 /* System header to define __stub macros and hopefully few prototypes,
11488     which can conflict with char $ac_func (); below.
11489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11490     <limits.h> exists even on freestanding compilers.  */
11491
11492 #ifdef __STDC__
11493 # include <limits.h>
11494 #else
11495 # include <assert.h>
11496 #endif
11497
11498 #undef $ac_func
11499
11500 /* Override any gcc2 internal prototype to avoid an error.  */
11501 #ifdef __cplusplus
11502 extern "C"
11503 {
11504 #endif
11505 /* We use char because int might match the return type of a gcc2
11506    builtin and then its argument prototype would still apply.  */
11507 char $ac_func ();
11508 /* The GNU C library defines this for functions which it implements
11509     to always fail with ENOSYS.  Some functions are actually named
11510     something starting with __ and the normal name is an alias.  */
11511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11512 choke me
11513 #else
11514 char (*f) () = $ac_func;
11515 #endif
11516 #ifdef __cplusplus
11517 }
11518 #endif
11519
11520 int
11521 main ()
11522 {
11523 return f != $ac_func;
11524   ;
11525   return 0;
11526 }
11527 _ACEOF
11528 rm -f conftest.$ac_objext conftest$ac_exeext
11529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11530   (eval $ac_link) 2>conftest.er1
11531   ac_status=$?
11532   grep -v '^ *+' conftest.er1 >conftest.err
11533   rm -f conftest.er1
11534   cat conftest.err >&5
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } &&
11537          { ac_try='test -z "$ac_c_werror_flag"
11538                          || test ! -s conftest.err'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; } &&
11544          { ac_try='test -s conftest$ac_exeext'
11545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546   (eval $ac_try) 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; }; then
11550   eval "$as_ac_var=yes"
11551 else
11552   echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555 eval "$as_ac_var=no"
11556 fi
11557 rm -f conftest.err conftest.$ac_objext \
11558       conftest$ac_exeext conftest.$ac_ext
11559 fi
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563   cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11565 _ACEOF
11566
11567 else
11568
11569         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11570 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11571 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   ac_check_lib_save_LIBS=$LIBS
11575 LIBS="-lrt  $LIBS"
11576 if test x$gcc_no_link = xyes; then
11577   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11579    { (exit 1); exit 1; }; }
11580 fi
11581 cat >conftest.$ac_ext <<_ACEOF
11582 /* confdefs.h.  */
11583 _ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h.  */
11587
11588 /* Override any gcc2 internal prototype to avoid an error.  */
11589 #ifdef __cplusplus
11590 extern "C"
11591 #endif
11592 /* We use char because int might match the return type of a gcc2
11593    builtin and then its argument prototype would still apply.  */
11594 char sched_yield ();
11595 int
11596 main ()
11597 {
11598 sched_yield ();
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11605   (eval $ac_link) 2>conftest.er1
11606   ac_status=$?
11607   grep -v '^ *+' conftest.er1 >conftest.err
11608   rm -f conftest.er1
11609   cat conftest.err >&5
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } &&
11612          { ac_try='test -z "$ac_c_werror_flag"
11613                          || test ! -s conftest.err'
11614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615   (eval $ac_try) 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); }; } &&
11619          { ac_try='test -s conftest$ac_exeext'
11620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621   (eval $ac_try) 2>&5
11622   ac_status=$?
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); }; }; then
11625   ac_cv_lib_rt_sched_yield=yes
11626 else
11627   echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_cv_lib_rt_sched_yield=no
11631 fi
11632 rm -f conftest.err conftest.$ac_objext \
11633       conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11635 fi
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11637 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11638 if test $ac_cv_lib_rt_sched_yield = yes; then
11639
11640           cat >>confdefs.h <<\_ACEOF
11641 #define HAVE_SCHED_YIELD 1
11642 _ACEOF
11643
11644           THREADLIBS="$THREADLIBS -lrt"
11645           THREADSPEC="$THREADSPEC -lrt"
11646 else
11647
11648           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11649 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11650 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lposix4  $LIBS"
11655 if test x$gcc_no_link = xyes; then
11656   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11658    { (exit 1); exit 1; }; }
11659 fi
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666
11667 /* Override any gcc2 internal prototype to avoid an error.  */
11668 #ifdef __cplusplus
11669 extern "C"
11670 #endif
11671 /* We use char because int might match the return type of a gcc2
11672    builtin and then its argument prototype would still apply.  */
11673 char sched_yield ();
11674 int
11675 main ()
11676 {
11677 sched_yield ();
11678   ;
11679   return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684   (eval $ac_link) 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } &&
11691          { ac_try='test -z "$ac_c_werror_flag"
11692                          || test ! -s conftest.err'
11693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694   (eval $ac_try) 2>&5
11695   ac_status=$?
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); }; } &&
11698          { ac_try='test -s conftest$ac_exeext'
11699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700   (eval $ac_try) 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; }; then
11704   ac_cv_lib_posix4_sched_yield=yes
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 ac_cv_lib_posix4_sched_yield=no
11710 fi
11711 rm -f conftest.err conftest.$ac_objext \
11712       conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11714 fi
11715 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11716 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11717 if test $ac_cv_lib_posix4_sched_yield = yes; then
11718
11719             cat >>confdefs.h <<\_ACEOF
11720 #define HAVE_SCHED_YIELD 1
11721 _ACEOF
11722
11723             THREADLIBS="$THREADLIBS -lposix4"
11724             THREADSPEC="$THREADSPEC -lposix4"
11725 fi
11726
11727 fi
11728
11729 fi
11730 done
11731
11732       LIBS="$save_LIBS"
11733
11734       # We can save a little space at runtime if the mutex has m_count
11735       # or __m_count.  This is a nice hack for Linux.
11736       cat >conftest.$ac_ext <<_ACEOF
11737 /* confdefs.h.  */
11738 _ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h.  */
11742 #include <pthread.h>
11743 int
11744 main ()
11745 {
11746
11747           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11748
11749   ;
11750   return 0;
11751 }
11752 _ACEOF
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755   (eval $ac_compile) 2>conftest.er1
11756   ac_status=$?
11757   grep -v '^ *+' conftest.er1 >conftest.err
11758   rm -f conftest.er1
11759   cat conftest.err >&5
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); } &&
11762          { ac_try='test -z "$ac_c_werror_flag"
11763                          || test ! -s conftest.err'
11764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765   (eval $ac_try) 2>&5
11766   ac_status=$?
11767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768   (exit $ac_status); }; } &&
11769          { ac_try='test -s conftest.$ac_objext'
11770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771   (eval $ac_try) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); }; }; then
11775
11776 cat >>confdefs.h <<\_ACEOF
11777 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11778 _ACEOF
11779
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784
11785         cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h.  */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h.  */
11791 #include <pthread.h>
11792 int
11793 main ()
11794 {
11795
11796             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11797
11798   ;
11799   return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804   (eval $ac_compile) 2>conftest.er1
11805   ac_status=$?
11806   grep -v '^ *+' conftest.er1 >conftest.err
11807   rm -f conftest.er1
11808   cat conftest.err >&5
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); } &&
11811          { ac_try='test -z "$ac_c_werror_flag"
11812                          || test ! -s conftest.err'
11813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814   (eval $ac_try) 2>&5
11815   ac_status=$?
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); }; } &&
11818          { ac_try='test -s conftest.$ac_objext'
11819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820   (eval $ac_try) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); }; }; then
11824
11825 cat >>confdefs.h <<\_ACEOF
11826 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11827 _ACEOF
11828
11829 else
11830   echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11832
11833 fi
11834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11835 fi
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11837    fi
11838
11839    # We require a way to get the time.
11840    time_found=no
11841
11842
11843
11844 for ac_func in gettimeofday time ftime
11845 do
11846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847 echo "$as_me:$LINENO: checking for $ac_func" >&5
11848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11849 if eval "test \"\${$as_ac_var+set}\" = set"; then
11850   echo $ECHO_N "(cached) $ECHO_C" >&6
11851 else
11852   if test x$gcc_no_link = xyes; then
11853   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11855    { (exit 1); exit 1; }; }
11856 fi
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11865 #define $ac_func innocuous_$ac_func
11866
11867 /* System header to define __stub macros and hopefully few prototypes,
11868     which can conflict with char $ac_func (); below.
11869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870     <limits.h> exists even on freestanding compilers.  */
11871
11872 #ifdef __STDC__
11873 # include <limits.h>
11874 #else
11875 # include <assert.h>
11876 #endif
11877
11878 #undef $ac_func
11879
11880 /* Override any gcc2 internal prototype to avoid an error.  */
11881 #ifdef __cplusplus
11882 extern "C"
11883 {
11884 #endif
11885 /* We use char because int might match the return type of a gcc2
11886    builtin and then its argument prototype would still apply.  */
11887 char $ac_func ();
11888 /* The GNU C library defines this for functions which it implements
11889     to always fail with ENOSYS.  Some functions are actually named
11890     something starting with __ and the normal name is an alias.  */
11891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11892 choke me
11893 #else
11894 char (*f) () = $ac_func;
11895 #endif
11896 #ifdef __cplusplus
11897 }
11898 #endif
11899
11900 int
11901 main ()
11902 {
11903 return f != $ac_func;
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910   (eval $ac_link) 2>conftest.er1
11911   ac_status=$?
11912   grep -v '^ *+' conftest.er1 >conftest.err
11913   rm -f conftest.er1
11914   cat conftest.err >&5
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); } &&
11917          { ac_try='test -z "$ac_c_werror_flag"
11918                          || test ! -s conftest.err'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; } &&
11924          { ac_try='test -s conftest$ac_exeext'
11925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926   (eval $ac_try) 2>&5
11927   ac_status=$?
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); }; }; then
11930   eval "$as_ac_var=yes"
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935 eval "$as_ac_var=no"
11936 fi
11937 rm -f conftest.err conftest.$ac_objext \
11938       conftest$ac_exeext conftest.$ac_ext
11939 fi
11940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943   cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 _ACEOF
11946  time_found=yes
11947 fi
11948 done
11949
11950    if test "$time_found" = no; then
11951       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11952 echo "$as_me: error: no function found to get the time" >&2;}
11953    { (exit 1); exit 1; }; }
11954    fi
11955
11956
11957 for ac_func in memmove
11958 do
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11962 if eval "test \"\${$as_ac_var+set}\" = set"; then
11963   echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965   if test x$gcc_no_link = xyes; then
11966   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11968    { (exit 1); exit 1; }; }
11969 fi
11970 cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11978 #define $ac_func innocuous_$ac_func
11979
11980 /* System header to define __stub macros and hopefully few prototypes,
11981     which can conflict with char $ac_func (); below.
11982     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983     <limits.h> exists even on freestanding compilers.  */
11984
11985 #ifdef __STDC__
11986 # include <limits.h>
11987 #else
11988 # include <assert.h>
11989 #endif
11990
11991 #undef $ac_func
11992
11993 /* Override any gcc2 internal prototype to avoid an error.  */
11994 #ifdef __cplusplus
11995 extern "C"
11996 {
11997 #endif
11998 /* We use char because int might match the return type of a gcc2
11999    builtin and then its argument prototype would still apply.  */
12000 char $ac_func ();
12001 /* The GNU C library defines this for functions which it implements
12002     to always fail with ENOSYS.  Some functions are actually named
12003     something starting with __ and the normal name is an alias.  */
12004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12005 choke me
12006 #else
12007 char (*f) () = $ac_func;
12008 #endif
12009 #ifdef __cplusplus
12010 }
12011 #endif
12012
12013 int
12014 main ()
12015 {
12016 return f != $ac_func;
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023   (eval $ac_link) 2>conftest.er1
12024   ac_status=$?
12025   grep -v '^ *+' conftest.er1 >conftest.err
12026   rm -f conftest.er1
12027   cat conftest.err >&5
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -z "$ac_c_werror_flag"
12031                          || test ! -s conftest.err'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest$ac_exeext'
12038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039   (eval $ac_try) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043   eval "$as_ac_var=yes"
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 eval "$as_ac_var=no"
12049 fi
12050 rm -f conftest.err conftest.$ac_objext \
12051       conftest$ac_exeext conftest.$ac_ext
12052 fi
12053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12055 if test `eval echo '${'$as_ac_var'}'` = yes; then
12056   cat >>confdefs.h <<_ACEOF
12057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12058 _ACEOF
12059
12060 fi
12061 done
12062
12063
12064    # We require memcpy.
12065    memcpy_found=no
12066
12067 for ac_func in memcpy
12068 do
12069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_var+set}\" = set"; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   if test x$gcc_no_link = xyes; then
12076   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12078    { (exit 1); exit 1; }; }
12079 fi
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h.  */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h.  */
12086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12088 #define $ac_func innocuous_$ac_func
12089
12090 /* System header to define __stub macros and hopefully few prototypes,
12091     which can conflict with char $ac_func (); below.
12092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12093     <limits.h> exists even on freestanding compilers.  */
12094
12095 #ifdef __STDC__
12096 # include <limits.h>
12097 #else
12098 # include <assert.h>
12099 #endif
12100
12101 #undef $ac_func
12102
12103 /* Override any gcc2 internal prototype to avoid an error.  */
12104 #ifdef __cplusplus
12105 extern "C"
12106 {
12107 #endif
12108 /* We use char because int might match the return type of a gcc2
12109    builtin and then its argument prototype would still apply.  */
12110 char $ac_func ();
12111 /* The GNU C library defines this for functions which it implements
12112     to always fail with ENOSYS.  Some functions are actually named
12113     something starting with __ and the normal name is an alias.  */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12115 choke me
12116 #else
12117 char (*f) () = $ac_func;
12118 #endif
12119 #ifdef __cplusplus
12120 }
12121 #endif
12122
12123 int
12124 main ()
12125 {
12126 return f != $ac_func;
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133   (eval $ac_link) 2>conftest.er1
12134   ac_status=$?
12135   grep -v '^ *+' conftest.er1 >conftest.err
12136   rm -f conftest.er1
12137   cat conftest.err >&5
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); } &&
12140          { ac_try='test -z "$ac_c_werror_flag"
12141                          || test ! -s conftest.err'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; } &&
12147          { ac_try='test -s conftest$ac_exeext'
12148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149   (eval $ac_try) 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); }; }; then
12153   eval "$as_ac_var=yes"
12154 else
12155   echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 eval "$as_ac_var=no"
12159 fi
12160 rm -f conftest.err conftest.$ac_objext \
12161       conftest$ac_exeext conftest.$ac_ext
12162 fi
12163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12165 if test `eval echo '${'$as_ac_var'}'` = yes; then
12166   cat >>confdefs.h <<_ACEOF
12167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12168 _ACEOF
12169  memcpy_found=yes
12170 fi
12171 done
12172
12173    if test "$memcpy_found" = no; then
12174       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12175 echo "$as_me: error: memcpy is required" >&2;}
12176    { (exit 1); exit 1; }; }
12177    fi
12178
12179    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12180 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldl  $LIBS"
12186 if test x$gcc_no_link = xyes; then
12187   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12189    { (exit 1); exit 1; }; }
12190 fi
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197
12198 /* Override any gcc2 internal prototype to avoid an error.  */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 /* We use char because int might match the return type of a gcc2
12203    builtin and then its argument prototype would still apply.  */
12204 char dlopen ();
12205 int
12206 main ()
12207 {
12208 dlopen ();
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215   (eval $ac_link) 2>conftest.er1
12216   ac_status=$?
12217   grep -v '^ *+' conftest.er1 >conftest.err
12218   rm -f conftest.er1
12219   cat conftest.err >&5
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -z "$ac_c_werror_flag"
12223                          || test ! -s conftest.err'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; } &&
12229          { ac_try='test -s conftest$ac_exeext'
12230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231   (eval $ac_try) 2>&5
12232   ac_status=$?
12233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234   (exit $ac_status); }; }; then
12235   ac_cv_lib_dl_dlopen=yes
12236 else
12237   echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 ac_cv_lib_dl_dlopen=no
12241 fi
12242 rm -f conftest.err conftest.$ac_objext \
12243       conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12245 fi
12246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12248 if test $ac_cv_lib_dl_dlopen = yes; then
12249
12250
12251 cat >>confdefs.h <<\_ACEOF
12252 #define HAVE_DLOPEN 1
12253 _ACEOF
12254
12255 fi
12256
12257
12258    # Some library-finding code we stole from Tcl.
12259    #--------------------------------------------------------------------
12260    #    Check for the existence of the -lsocket and -lnsl libraries.
12261    #    The order here is important, so that they end up in the right
12262    #    order in the command line generated by make.  Here are some
12263    #    special considerations:
12264    #    1. Use "connect" and "accept" to check for -lsocket, and
12265    #       "gethostbyname" to check for -lnsl.
12266    #    2. Use each function name only once:  can't redo a check because
12267    #       autoconf caches the results of the last check and won't redo it.
12268    #    3. Use -lnsl and -lsocket only if they supply procedures that
12269    #       aren't already present in the normal libraries.  This is because
12270    #       IRIX 5.2 has libraries, but they aren't needed and they're
12271    #       bogus:  they goof up name resolution if used.
12272    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12273    #       To get around this problem, check for both libraries together
12274    #       if -lsocket doesn't work by itself.
12275    #--------------------------------------------------------------------
12276
12277    echo "$as_me:$LINENO: checking for socket libraries" >&5
12278 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12279 if test "${gcj_cv_lib_sockets+set}" = set; then
12280   echo $ECHO_N "(cached) $ECHO_C" >&6
12281 else
12282   gcj_cv_lib_sockets=
12283      gcj_checkBoth=0
12284      unset ac_cv_func_connect
12285      echo "$as_me:$LINENO: checking for connect" >&5
12286 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12287 if test "${ac_cv_func_connect+set}" = set; then
12288   echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290   if test x$gcc_no_link = xyes; then
12291   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12293    { (exit 1); exit 1; }; }
12294 fi
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12303 #define connect innocuous_connect
12304
12305 /* System header to define __stub macros and hopefully few prototypes,
12306     which can conflict with char connect (); below.
12307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12308     <limits.h> exists even on freestanding compilers.  */
12309
12310 #ifdef __STDC__
12311 # include <limits.h>
12312 #else
12313 # include <assert.h>
12314 #endif
12315
12316 #undef connect
12317
12318 /* Override any gcc2 internal prototype to avoid an error.  */
12319 #ifdef __cplusplus
12320 extern "C"
12321 {
12322 #endif
12323 /* We use char because int might match the return type of a gcc2
12324    builtin and then its argument prototype would still apply.  */
12325 char connect ();
12326 /* The GNU C library defines this for functions which it implements
12327     to always fail with ENOSYS.  Some functions are actually named
12328     something starting with __ and the normal name is an alias.  */
12329 #if defined (__stub_connect) || defined (__stub___connect)
12330 choke me
12331 #else
12332 char (*f) () = connect;
12333 #endif
12334 #ifdef __cplusplus
12335 }
12336 #endif
12337
12338 int
12339 main ()
12340 {
12341 return f != connect;
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348   (eval $ac_link) 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } &&
12355          { ac_try='test -z "$ac_c_werror_flag"
12356                          || test ! -s conftest.err'
12357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); }; } &&
12362          { ac_try='test -s conftest$ac_exeext'
12363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364   (eval $ac_try) 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; }; then
12368   ac_cv_func_connect=yes
12369 else
12370   echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373 ac_cv_func_connect=no
12374 fi
12375 rm -f conftest.err conftest.$ac_objext \
12376       conftest$ac_exeext conftest.$ac_ext
12377 fi
12378 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12379 echo "${ECHO_T}$ac_cv_func_connect" >&6
12380 if test $ac_cv_func_connect = yes; then
12381   gcj_checkSocket=0
12382 else
12383   gcj_checkSocket=1
12384 fi
12385
12386      if test "$gcj_checkSocket" = 1; then
12387          unset ac_cv_func_connect
12388          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12389 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12390 if test "${ac_cv_lib_socket_main+set}" = set; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   ac_check_lib_save_LIBS=$LIBS
12394 LIBS="-lsocket  $LIBS"
12395 if test x$gcc_no_link = xyes; then
12396   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12398    { (exit 1); exit 1; }; }
12399 fi
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h.  */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h.  */
12406
12407
12408 int
12409 main ()
12410 {
12411 main ();
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418   (eval $ac_link) 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_c_werror_flag"
12426                          || test ! -s conftest.err'
12427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428   (eval $ac_try) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; } &&
12432          { ac_try='test -s conftest$ac_exeext'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   ac_cv_lib_socket_main=yes
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_cv_lib_socket_main=no
12444 fi
12445 rm -f conftest.err conftest.$ac_objext \
12446       conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12448 fi
12449 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12450 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12451 if test $ac_cv_lib_socket_main = yes; then
12452   gcj_cv_lib_sockets="-lsocket"
12453 else
12454   gcj_checkBoth=1
12455 fi
12456
12457      fi
12458      if test "$gcj_checkBoth" = 1; then
12459          gcj_oldLibs=$LIBS
12460          LIBS="$LIBS -lsocket -lnsl"
12461          unset ac_cv_func_accept
12462          echo "$as_me:$LINENO: checking for accept" >&5
12463 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12464 if test "${ac_cv_func_accept+set}" = set; then
12465   echo $ECHO_N "(cached) $ECHO_C" >&6
12466 else
12467   if test x$gcc_no_link = xyes; then
12468   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12470    { (exit 1); exit 1; }; }
12471 fi
12472 cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h.  */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h.  */
12478 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12480 #define accept innocuous_accept
12481
12482 /* System header to define __stub macros and hopefully few prototypes,
12483     which can conflict with char accept (); below.
12484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485     <limits.h> exists even on freestanding compilers.  */
12486
12487 #ifdef __STDC__
12488 # include <limits.h>
12489 #else
12490 # include <assert.h>
12491 #endif
12492
12493 #undef accept
12494
12495 /* Override any gcc2 internal prototype to avoid an error.  */
12496 #ifdef __cplusplus
12497 extern "C"
12498 {
12499 #endif
12500 /* We use char because int might match the return type of a gcc2
12501    builtin and then its argument prototype would still apply.  */
12502 char accept ();
12503 /* The GNU C library defines this for functions which it implements
12504     to always fail with ENOSYS.  Some functions are actually named
12505     something starting with __ and the normal name is an alias.  */
12506 #if defined (__stub_accept) || defined (__stub___accept)
12507 choke me
12508 #else
12509 char (*f) () = accept;
12510 #endif
12511 #ifdef __cplusplus
12512 }
12513 #endif
12514
12515 int
12516 main ()
12517 {
12518 return f != accept;
12519   ;
12520   return 0;
12521 }
12522 _ACEOF
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525   (eval $ac_link) 2>conftest.er1
12526   ac_status=$?
12527   grep -v '^ *+' conftest.er1 >conftest.err
12528   rm -f conftest.er1
12529   cat conftest.err >&5
12530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531   (exit $ac_status); } &&
12532          { ac_try='test -z "$ac_c_werror_flag"
12533                          || test ! -s conftest.err'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; } &&
12539          { ac_try='test -s conftest$ac_exeext'
12540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541   (eval $ac_try) 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; }; then
12545   ac_cv_func_accept=yes
12546 else
12547   echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 ac_cv_func_accept=no
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554 fi
12555 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12556 echo "${ECHO_T}$ac_cv_func_accept" >&6
12557 if test $ac_cv_func_accept = yes; then
12558   gcj_checkNsl=0
12559                         gcj_cv_lib_sockets="-lsocket -lnsl"
12560 fi
12561
12562          unset ac_cv_func_accept
12563          LIBS=$gcj_oldLibs
12564      fi
12565      unset ac_cv_func_gethostbyname
12566      gcj_oldLibs=$LIBS
12567      LIBS="$LIBS $gcj_cv_lib_sockets"
12568      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12569 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12570 if test "${ac_cv_func_gethostbyname+set}" = set; then
12571   echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573   if test x$gcc_no_link = xyes; then
12574   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12576    { (exit 1); exit 1; }; }
12577 fi
12578 cat >conftest.$ac_ext <<_ACEOF
12579 /* confdefs.h.  */
12580 _ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h.  */
12584 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12586 #define gethostbyname innocuous_gethostbyname
12587
12588 /* System header to define __stub macros and hopefully few prototypes,
12589     which can conflict with char gethostbyname (); below.
12590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591     <limits.h> exists even on freestanding compilers.  */
12592
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12598
12599 #undef gethostbyname
12600
12601 /* Override any gcc2 internal prototype to avoid an error.  */
12602 #ifdef __cplusplus
12603 extern "C"
12604 {
12605 #endif
12606 /* We use char because int might match the return type of a gcc2
12607    builtin and then its argument prototype would still apply.  */
12608 char gethostbyname ();
12609 /* The GNU C library defines this for functions which it implements
12610     to always fail with ENOSYS.  Some functions are actually named
12611     something starting with __ and the normal name is an alias.  */
12612 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12613 choke me
12614 #else
12615 char (*f) () = gethostbyname;
12616 #endif
12617 #ifdef __cplusplus
12618 }
12619 #endif
12620
12621 int
12622 main ()
12623 {
12624 return f != gethostbyname;
12625   ;
12626   return 0;
12627 }
12628 _ACEOF
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631   (eval $ac_link) 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } &&
12638          { ac_try='test -z "$ac_c_werror_flag"
12639                          || test ! -s conftest.err'
12640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641   (eval $ac_try) 2>&5
12642   ac_status=$?
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); }; } &&
12645          { ac_try='test -s conftest$ac_exeext'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; }; then
12651   ac_cv_func_gethostbyname=yes
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 ac_cv_func_gethostbyname=no
12657 fi
12658 rm -f conftest.err conftest.$ac_objext \
12659       conftest$ac_exeext conftest.$ac_ext
12660 fi
12661 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12662 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12663 if test $ac_cv_func_gethostbyname = yes; then
12664   :
12665 else
12666   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12667 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12668 if test "${ac_cv_lib_nsl_main+set}" = set; then
12669   echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671   ac_check_lib_save_LIBS=$LIBS
12672 LIBS="-lnsl  $LIBS"
12673 if test x$gcc_no_link = xyes; then
12674   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12675 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12676    { (exit 1); exit 1; }; }
12677 fi
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h.  */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h.  */
12684
12685
12686 int
12687 main ()
12688 {
12689 main ();
12690   ;
12691   return 0;
12692 }
12693 _ACEOF
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696   (eval $ac_link) 2>conftest.er1
12697   ac_status=$?
12698   grep -v '^ *+' conftest.er1 >conftest.err
12699   rm -f conftest.er1
12700   cat conftest.err >&5
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); } &&
12703          { ac_try='test -z "$ac_c_werror_flag"
12704                          || test ! -s conftest.err'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; } &&
12710          { ac_try='test -s conftest$ac_exeext'
12711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712   (eval $ac_try) 2>&5
12713   ac_status=$?
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); }; }; then
12716   ac_cv_lib_nsl_main=yes
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721 ac_cv_lib_nsl_main=no
12722 fi
12723 rm -f conftest.err conftest.$ac_objext \
12724       conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12728 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12729 if test $ac_cv_lib_nsl_main = yes; then
12730   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12731 fi
12732
12733 fi
12734
12735      unset ac_cv_func_gethostbyname
12736      LIBS=$gcj_oldLIBS
12737
12738 fi
12739 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12740 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12741    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12742
12743    if test "$with_system_zlib" = yes; then
12744       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12745 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12746 if test "${ac_cv_lib_z_deflate+set}" = set; then
12747   echo $ECHO_N "(cached) $ECHO_C" >&6
12748 else
12749   ac_check_lib_save_LIBS=$LIBS
12750 LIBS="-lz  $LIBS"
12751 if test x$gcc_no_link = xyes; then
12752   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12754    { (exit 1); exit 1; }; }
12755 fi
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762
12763 /* Override any gcc2 internal prototype to avoid an error.  */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 /* We use char because int might match the return type of a gcc2
12768    builtin and then its argument prototype would still apply.  */
12769 char deflate ();
12770 int
12771 main ()
12772 {
12773 deflate ();
12774   ;
12775   return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780   (eval $ac_link) 2>conftest.er1
12781   ac_status=$?
12782   grep -v '^ *+' conftest.er1 >conftest.err
12783   rm -f conftest.er1
12784   cat conftest.err >&5
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); } &&
12787          { ac_try='test -z "$ac_c_werror_flag"
12788                          || test ! -s conftest.err'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; } &&
12794          { ac_try='test -s conftest$ac_exeext'
12795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796   (eval $ac_try) 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; }; then
12800   ac_cv_lib_z_deflate=yes
12801 else
12802   echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12804
12805 ac_cv_lib_z_deflate=no
12806 fi
12807 rm -f conftest.err conftest.$ac_objext \
12808       conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12810 fi
12811 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12812 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12813 if test $ac_cv_lib_z_deflate = yes; then
12814   ZLIBSPEC=-lz
12815 else
12816   ZLIBSPEC=
12817 fi
12818
12819    fi
12820
12821    # Test for Gtk stuff, if asked for.
12822    if test "$use_gtk_awt" = yes; then
12823
12824   succeeded=no
12825
12826   if test -z "$PKG_CONFIG"; then
12827     # Extract the first word of "pkg-config", so it can be a program name with args.
12828 set dummy pkg-config; ac_word=$2
12829 echo "$as_me:$LINENO: checking for $ac_word" >&5
12830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12831 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12832   echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834   case $PKG_CONFIG in
12835   [\\/]* | ?:[\\/]*)
12836   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12837   ;;
12838   *)
12839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12841 do
12842   IFS=$as_save_IFS
12843   test -z "$as_dir" && as_dir=.
12844   for ac_exec_ext in '' $ac_executable_extensions; do
12845   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12846     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12848     break 2
12849   fi
12850 done
12851 done
12852
12853   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12854   ;;
12855 esac
12856 fi
12857 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12858
12859 if test -n "$PKG_CONFIG"; then
12860   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12861 echo "${ECHO_T}$PKG_CONFIG" >&6
12862 else
12863   echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6
12865 fi
12866
12867   fi
12868
12869   if test "$PKG_CONFIG" = "no" ; then
12870      echo "*** The pkg-config script could not be found. Make sure it is"
12871      echo "*** in your path, or set the PKG_CONFIG environment variable"
12872      echo "*** to the full path to pkg-config."
12873      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12874   else
12875      PKG_CONFIG_MIN_VERSION=0.9.0
12876      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12877         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12878 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12879
12880         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12881             echo "$as_me:$LINENO: result: yes" >&5
12882 echo "${ECHO_T}yes" >&6
12883             succeeded=yes
12884
12885             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12886 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12887             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12888             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12889 echo "${ECHO_T}$GTK_CFLAGS" >&6
12890
12891             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12892 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12893             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12894             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12895 echo "${ECHO_T}$GTK_LIBS" >&6
12896         else
12897             GTK_CFLAGS=""
12898             GTK_LIBS=""
12899             ## If we have a custom action on failure, don't print errors, but
12900             ## do set a variable so people can do so.
12901             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12902             echo $GTK_PKG_ERRORS
12903         fi
12904
12905
12906
12907      else
12908         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12909         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12910      fi
12911   fi
12912
12913   if test $succeeded = yes; then
12914      :
12915   else
12916      { { 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
12917 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;}
12918    { (exit 1); exit 1; }; }
12919   fi
12920
12921
12922
12923
12924
12925   succeeded=no
12926
12927   if test -z "$PKG_CONFIG"; then
12928     # Extract the first word of "pkg-config", so it can be a program name with args.
12929 set dummy pkg-config; ac_word=$2
12930 echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   case $PKG_CONFIG in
12936   [\\/]* | ?:[\\/]*)
12937   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12938   ;;
12939   *)
12940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12942 do
12943   IFS=$as_save_IFS
12944   test -z "$as_dir" && as_dir=.
12945   for ac_exec_ext in '' $ac_executable_extensions; do
12946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12949     break 2
12950   fi
12951 done
12952 done
12953
12954   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12955   ;;
12956 esac
12957 fi
12958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12959
12960 if test -n "$PKG_CONFIG"; then
12961   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12962 echo "${ECHO_T}$PKG_CONFIG" >&6
12963 else
12964   echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6
12966 fi
12967
12968   fi
12969
12970   if test "$PKG_CONFIG" = "no" ; then
12971      echo "*** The pkg-config script could not be found. Make sure it is"
12972      echo "*** in your path, or set the PKG_CONFIG environment variable"
12973      echo "*** to the full path to pkg-config."
12974      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12975   else
12976      PKG_CONFIG_MIN_VERSION=0.9.0
12977      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12978         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12979 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12980
12981         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12982             echo "$as_me:$LINENO: result: yes" >&5
12983 echo "${ECHO_T}yes" >&6
12984             succeeded=yes
12985
12986             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12987 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12988             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12989             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12990 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12991
12992             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12993 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12994             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12995             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12996 echo "${ECHO_T}$GLIB_LIBS" >&6
12997         else
12998             GLIB_CFLAGS=""
12999             GLIB_LIBS=""
13000             ## If we have a custom action on failure, don't print errors, but
13001             ## do set a variable so people can do so.
13002             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13003             echo $GLIB_PKG_ERRORS
13004         fi
13005
13006
13007
13008      else
13009         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13010         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13011      fi
13012   fi
13013
13014   if test $succeeded = yes; then
13015      :
13016   else
13017      { { 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
13018 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;}
13019    { (exit 1); exit 1; }; }
13020   fi
13021
13022
13023
13024
13025
13026   succeeded=no
13027
13028   if test -z "$PKG_CONFIG"; then
13029     # Extract the first word of "pkg-config", so it can be a program name with args.
13030 set dummy pkg-config; ac_word=$2
13031 echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   case $PKG_CONFIG in
13037   [\\/]* | ?:[\\/]*)
13038   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13039   ;;
13040   *)
13041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13043 do
13044   IFS=$as_save_IFS
13045   test -z "$as_dir" && as_dir=.
13046   for ac_exec_ext in '' $ac_executable_extensions; do
13047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13050     break 2
13051   fi
13052 done
13053 done
13054
13055   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13056   ;;
13057 esac
13058 fi
13059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13060
13061 if test -n "$PKG_CONFIG"; then
13062   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13063 echo "${ECHO_T}$PKG_CONFIG" >&6
13064 else
13065   echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6
13067 fi
13068
13069   fi
13070
13071   if test "$PKG_CONFIG" = "no" ; then
13072      echo "*** The pkg-config script could not be found. Make sure it is"
13073      echo "*** in your path, or set the PKG_CONFIG environment variable"
13074      echo "*** to the full path to pkg-config."
13075      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13076   else
13077      PKG_CONFIG_MIN_VERSION=0.9.0
13078      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13079         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13080 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13081
13082         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13083             echo "$as_me:$LINENO: result: yes" >&5
13084 echo "${ECHO_T}yes" >&6
13085             succeeded=yes
13086
13087             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13088 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13089             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13090             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13091 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13092
13093             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13094 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13095             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13096             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13097 echo "${ECHO_T}$LIBART_LIBS" >&6
13098         else
13099             LIBART_CFLAGS=""
13100             LIBART_LIBS=""
13101             ## If we have a custom action on failure, don't print errors, but
13102             ## do set a variable so people can do so.
13103             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13104             echo $LIBART_PKG_ERRORS
13105         fi
13106
13107
13108
13109      else
13110         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13111         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13112      fi
13113   fi
13114
13115   if test $succeeded = yes; then
13116      :
13117   else
13118      { { 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
13119 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;}
13120    { (exit 1); exit 1; }; }
13121   fi
13122
13123
13124
13125
13126       # We require the XTest Extension to support java.awt.Robot.
13127       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13128 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13129 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13130   echo $ECHO_N "(cached) $ECHO_C" >&6
13131 else
13132   ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXtst ${X_LIBS} $LIBS"
13134 if test x$gcc_no_link = xyes; then
13135   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13137    { (exit 1); exit 1; }; }
13138 fi
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h.  */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h.  */
13145
13146 /* Override any gcc2 internal prototype to avoid an error.  */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 /* We use char because int might match the return type of a gcc2
13151    builtin and then its argument prototype would still apply.  */
13152 char XTestQueryExtension ();
13153 int
13154 main ()
13155 {
13156 XTestQueryExtension ();
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163   (eval $ac_link) 2>conftest.er1
13164   ac_status=$?
13165   grep -v '^ *+' conftest.er1 >conftest.err
13166   rm -f conftest.er1
13167   cat conftest.err >&5
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } &&
13170          { ac_try='test -z "$ac_c_werror_flag"
13171                          || test ! -s conftest.err'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; } &&
13177          { ac_try='test -s conftest$ac_exeext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   ac_cv_lib_Xtst_XTestQueryExtension=yes
13184 else
13185   echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13187
13188 ac_cv_lib_Xtst_XTestQueryExtension=no
13189 fi
13190 rm -f conftest.err conftest.$ac_objext \
13191       conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13193 fi
13194 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13195 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13196 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13197   true
13198 else
13199   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13200 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13201    { (exit 1); exit 1; }; }
13202 fi
13203
13204    fi
13205
13206    # On Solaris, and maybe other architectures, the Boehm collector
13207    # requires -ldl.
13208    if test "$GC" = boehm; then
13209       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13210 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13211 if test "${ac_cv_lib_dl_main+set}" = set; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-ldl  $LIBS"
13216 if test x$gcc_no_link = xyes; then
13217   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13219    { (exit 1); exit 1; }; }
13220 fi
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227
13228
13229 int
13230 main ()
13231 {
13232 main ();
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239   (eval $ac_link) 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_c_werror_flag"
13247                          || test ! -s conftest.err'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; } &&
13253          { ac_try='test -s conftest$ac_exeext'
13254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255   (eval $ac_try) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   ac_cv_lib_dl_main=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_cv_lib_dl_main=no
13265 fi
13266 rm -f conftest.err conftest.$ac_objext \
13267       conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13269 fi
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13271 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13272 if test $ac_cv_lib_dl_main = yes; then
13273   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13274 fi
13275
13276    fi
13277 fi
13278
13279
13280 if test "$supply_backtrace" = yes; then
13281   SUPPLY_BACKTRACE_TRUE=
13282   SUPPLY_BACKTRACE_FALSE='#'
13283 else
13284   SUPPLY_BACKTRACE_TRUE='#'
13285   SUPPLY_BACKTRACE_FALSE=
13286 fi
13287
13288
13289 if test -z "${with_multisubdir}"; then
13290    builddotdot=.
13291 else
13292    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13293 fi
13294
13295 NATIVE=yes
13296
13297 # Which gcj do we use?
13298 which_gcj=default
13299 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13300 if test -n "${with_cross_host}"; then
13301   # We are being configured with a cross compiler. We can't
13302   # use ac_exeext, because that is for the target platform.
13303   NATIVE=no
13304   cross_host_exeext=
13305   case "${with_cross_host}" in
13306      *mingw* | *cygwin*)
13307          cross_host_exeext=.exe
13308      ;;
13309   esac
13310   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13311      if test x"$build_noncanonical" = x"$with_cross_host"; then
13312         # Ordinary cross (host!=target and host=build)
13313         which_gcj=built
13314      else
13315         # Canadian cross (host!=target and host!=build)
13316         which_gcj=cross
13317      fi
13318   else
13319      which_gcj=cross
13320   fi
13321 else
13322   # We are being configured with a native or crossed-native compiler
13323   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13324      if test x"$build" = x"$host"; then
13325         # True native build (host=target and host=build)
13326         which_gcj=built
13327      else
13328         # Crossed-native build (host=target and host!=build)
13329         which_gcj=cross
13330      fi
13331   else
13332      which_gcj=path
13333   fi
13334 fi
13335 case "${which_gcj}" in
13336    built)
13337       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13338       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13339       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13340    ;;
13341    cross)
13342       if test "x${with_newlib}" = "xyes"; then
13343          # FIXME (comment): Why is this needed?
13344          GCC_UNWIND_INCLUDE=
13345          GCJ="${target_noncanonical}-gcj"
13346       else
13347          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13348       fi
13349       ZIP='$(target_noncanonical)-fastjar'
13350       GCJH='$(target_noncanonical)-gcjh'
13351    ;;
13352    path)
13353       GCJ="gcj -B`${PWDCMD-pwd}`/"
13354       ## In this case, gcj is found outside the build tree.  However, zip is
13355       ## found in the build tree.
13356       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13357       GCJH=gcjh
13358    ;;
13359 esac
13360
13361
13362
13363
13364 # Create it, so that compile/link tests don't fail
13365 test -f libgcj.spec || touch libgcj.spec
13366
13367 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13368 case $build in
13369     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13370     *)         CLASSPATH_SEPARATOR=':' ;;
13371 esac
13372
13373
13374 # We must search the source tree for java.lang, since we still don't
13375 # have libgcj.jar nor java/lang/*.class
13376 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13377 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13378
13379 # Since some classes depend on this one, we need its source available
13380 # before we can do any GCJ compilation test :-(
13381 if test ! -f gnu/classpath/Configuration.java; then
13382   test -d gnu || mkdir gnu
13383   test -d gnu/classpath || mkdir gnu/classpath
13384   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13385       -e 's,@TOOLKIT@,$TOOLKIT,' \
13386         < $srcdir/gnu/classpath/Configuration.java.in \
13387         > gnu/classpath/Configuration.java
13388   # We do not want to redirect the output of the grep below to /dev/null,
13389   # but we add /dev/null to the input list so that grep will print the
13390   # filename of Configuration.java in case it finds any matches.
13391   if grep @ gnu/classpath/Configuration.java /dev/null; then
13392     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13393 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13394    { (exit 1); exit 1; }; }
13395   fi
13396 fi
13397
13398 if test -n "$ac_tool_prefix"; then
13399   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13400 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13401 echo "$as_me:$LINENO: checking for $ac_word" >&5
13402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13403 if test "${ac_cv_prog_GCJ+set}" = set; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   if test -n "$GCJ"; then
13407   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13408 else
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13411 do
13412   IFS=$as_save_IFS
13413   test -z "$as_dir" && as_dir=.
13414   for ac_exec_ext in '' $ac_executable_extensions; do
13415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13418     break 2
13419   fi
13420 done
13421 done
13422
13423 fi
13424 fi
13425 GCJ=$ac_cv_prog_GCJ
13426 if test -n "$GCJ"; then
13427   echo "$as_me:$LINENO: result: $GCJ" >&5
13428 echo "${ECHO_T}$GCJ" >&6
13429 else
13430   echo "$as_me:$LINENO: result: no" >&5
13431 echo "${ECHO_T}no" >&6
13432 fi
13433
13434 fi
13435 if test -z "$ac_cv_prog_GCJ"; then
13436   ac_ct_GCJ=$GCJ
13437   # Extract the first word of "gcj", so it can be a program name with args.
13438 set dummy gcj; ac_word=$2
13439 echo "$as_me:$LINENO: checking for $ac_word" >&5
13440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13441 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13442   echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444   if test -n "$ac_ct_GCJ"; then
13445   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13446 else
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13449 do
13450   IFS=$as_save_IFS
13451   test -z "$as_dir" && as_dir=.
13452   for ac_exec_ext in '' $ac_executable_extensions; do
13453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454     ac_cv_prog_ac_ct_GCJ="gcj"
13455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13456     break 2
13457   fi
13458 done
13459 done
13460
13461   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13462 fi
13463 fi
13464 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13465 if test -n "$ac_ct_GCJ"; then
13466   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13467 echo "${ECHO_T}$ac_ct_GCJ" >&6
13468 else
13469   echo "$as_me:$LINENO: result: no" >&5
13470 echo "${ECHO_T}no" >&6
13471 fi
13472
13473   GCJ=$ac_ct_GCJ
13474 else
13475   GCJ="$ac_cv_prog_GCJ"
13476 fi
13477
13478   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13479
13480
13481
13482
13483 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13484
13485 echo "$as_me:$LINENO: checking size of void *" >&5
13486 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13487 if test "${ac_cv_sizeof_void_p+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13491   cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 #include "confdefs.h"
13498 #include <sys/types.h>
13499
13500
13501 int
13502 main ()
13503 {
13504 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511   (eval $ac_compile) 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag"
13519                          || test ! -s conftest.err'
13520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521   (eval $ac_try) 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest.$ac_objext'
13526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527   (eval $ac_try) 2>&5
13528   ac_status=$?
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); }; }; then
13531   ac_cv_sizeof_void_p=$ac_size
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 fi
13537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13538   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13539 done
13540
13541 fi
13542
13543 if test x$ac_cv_sizeof_void_p = x ; then
13544   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13545 echo "$as_me: error: cannot determine a size for void *" >&2;}
13546    { (exit 1); exit 1; }; }
13547 fi
13548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13549 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13550
13551 cat >>confdefs.h <<_ACEOF
13552 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13553 _ACEOF
13554
13555
13556
13557 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13558 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13559 if test "${ac_cv_c_bigendian+set}" = set; then
13560   echo $ECHO_N "(cached) $ECHO_C" >&6
13561 else
13562   ac_cv_c_bigendian=unknown
13563 # See if sys/param.h defines the BYTE_ORDER macro.
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570 #include <sys/types.h>
13571 #include <sys/param.h>
13572 int
13573 main ()
13574 {
13575
13576 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13577  bogus endian macros
13578 #endif
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585   (eval $ac_compile) 2>conftest.er1
13586   ac_status=$?
13587   grep -v '^ *+' conftest.er1 >conftest.err
13588   rm -f conftest.er1
13589   cat conftest.err >&5
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } &&
13592          { ac_try='test -z "$ac_c_werror_flag"
13593                          || test ! -s conftest.err'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; } &&
13599          { ac_try='test -s conftest.$ac_objext'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; }; then
13605   # It does; now see whether it defined to BIG_ENDIAN or not.
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h.  */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h.  */
13612 #include <sys/types.h>
13613 #include <sys/param.h>
13614 int
13615 main ()
13616 {
13617
13618 #if BYTE_ORDER != BIG_ENDIAN
13619  not big endian
13620 #endif
13621   ;
13622   return 0;
13623 }
13624 _ACEOF
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627   (eval $ac_compile) 2>conftest.er1
13628   ac_status=$?
13629   grep -v '^ *+' conftest.er1 >conftest.err
13630   rm -f conftest.er1
13631   cat conftest.err >&5
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); } &&
13634          { ac_try='test -z "$ac_c_werror_flag"
13635                          || test ! -s conftest.err'
13636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637   (eval $ac_try) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; } &&
13641          { ac_try='test -s conftest.$ac_objext'
13642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643   (eval $ac_try) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; }; then
13647   ac_cv_c_bigendian=yes
13648 else
13649   echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13651
13652 ac_cv_c_bigendian=no
13653 fi
13654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 fi
13660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13661 if test $ac_cv_c_bigendian = unknown; then
13662 if test "$cross_compiling" = yes; then
13663    echo $ac_n "cross-compiling... " 2>&6
13664 else
13665   cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671 main () {
13672   /* Are we little or big endian?  From Harbison&Steele.  */
13673   union
13674   {
13675     long l;
13676     char c[sizeof (long)];
13677   } u;
13678   u.l = 1;
13679   exit (u.c[sizeof (long) - 1] == 1);
13680 }
13681 _ACEOF
13682 rm -f conftest$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684   (eval $ac_link) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689   (eval $ac_try) 2>&5
13690   ac_status=$?
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); }; }; then
13693   ac_cv_c_bigendian=no
13694 else
13695   echo "$as_me: program exited with status $ac_status" >&5
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13698
13699 ( exit $ac_status )
13700 ac_cv_c_bigendian=yes
13701 fi
13702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13703 fi
13704 fi
13705 fi
13706 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13707 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13708 if test $ac_cv_c_bigendian = unknown; then
13709 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13710 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13711
13712 cat >conftest.c <<EOF
13713 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13714 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13715 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13716 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13717 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13718 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13719 int main() { _ascii (); _ebcdic (); return 0; }
13720 EOF
13721  if test -f conftest.c ; then
13722      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13723         if test `grep -l BIGenDianSyS conftest.o` ; then
13724            echo $ac_n ' big endian probe OK, ' 1>&6
13725            ac_cv_c_bigendian=yes
13726         fi
13727         if test `grep -l LiTTleEnDian conftest.o` ; then
13728            echo $ac_n ' little endian probe OK, ' 1>&6
13729            if test $ac_cv_c_bigendian = yes ; then
13730             ac_cv_c_bigendian=unknown;
13731            else
13732             ac_cv_c_bigendian=no
13733            fi
13734         fi
13735         echo $ac_n 'guessing bigendian ...  ' >&6
13736      fi
13737   fi
13738 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13739 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13740 fi
13741 if test $ac_cv_c_bigendian = yes; then
13742
13743 cat >>confdefs.h <<\_ACEOF
13744 #define WORDS_BIGENDIAN 1
13745 _ACEOF
13746
13747
13748 cat >>confdefs.h <<\_ACEOF
13749 #define HOST_WORDS_BIG_ENDIAN 1
13750 _ACEOF
13751
13752   BYTEORDER=4321
13753 else
13754   BYTEORDER=1234
13755 fi
13756
13757 cat >>confdefs.h <<_ACEOF
13758 #define BYTEORDER $BYTEORDER
13759 _ACEOF
13760
13761 if test $ac_cv_c_bigendian = unknown; then
13762   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13763 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13764    { (exit 1); exit 1; }; }
13765 fi
13766
13767
13768 ZLIBS=
13769 SYS_ZLIBS=
13770 ZINCS=
13771
13772 if test -z "$ZLIBSPEC"; then
13773    # Use zlib from the GCC tree.
13774    ZINCS='-I$(top_srcdir)/../zlib'
13775    ZLIBS=../zlib/libzgcj_convenience.la
13776 else
13777    # System's zlib.
13778    SYS_ZLIBS="$ZLIBSPEC"
13779 fi
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790 if test "$NATIVE" = yes; then
13791   NATIVE_TRUE=
13792   NATIVE_FALSE='#'
13793 else
13794   NATIVE_TRUE='#'
13795   NATIVE_FALSE=
13796 fi
13797
13798
13799
13800 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13801   NEEDS_DATA_START_TRUE=
13802   NEEDS_DATA_START_FALSE='#'
13803 else
13804   NEEDS_DATA_START_TRUE='#'
13805   NEEDS_DATA_START_FALSE=
13806 fi
13807
13808
13809
13810 # Process the option "--enable-version-specific-runtime-libs"
13811 # Calculate toolexeclibdir
13812 case ${version_specific_libs} in
13813   yes)
13814     # Need the gcc compiler version to know where to install libraries
13815     # and header files if --enable-version-specific-runtime-libs option
13816     # is selected.
13817     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13818     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13819     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13820     toolexeclibdir=$toolexecmainlibdir
13821     ;;
13822   no)
13823     if test -n "$with_cross_host" &&
13824        test x"$with_cross_host" != x"no"; then
13825       # Install a library built with a cross compiler in tooldir, not libdir.
13826       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13827       toolexecmainlibdir='$(toolexecdir)/lib'
13828     else
13829       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13830       toolexecmainlibdir='$(libdir)'
13831     fi
13832     multi_os_directory=`$CC -print-multi-os-directory`
13833     case $multi_os_directory in
13834       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13835       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13836     esac
13837     ;;
13838 esac
13839
13840
13841
13842
13843 # Determine gcj version number.
13844 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13845 GCJVERSION=$gcjversion
13846
13847
13848 cat >>confdefs.h <<_ACEOF
13849 #define GCJVERSION "$GCJVERSION"
13850 _ACEOF
13851
13852
13853
13854 cat >>confdefs.h <<\_ACEOF
13855 #define JV_VERSION "1.4.2"
13856 _ACEOF
13857
13858
13859 cat >>confdefs.h <<\_ACEOF
13860 #define JV_API_VERSION "1.4"
13861 _ACEOF
13862
13863
13864
13865 case "${with_gxx_include_dir}" in
13866   yes)
13867     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13868 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13869    { (exit 1); exit 1; }; }
13870     ;;
13871   no | "")
13872     case "${enable_version_specific_runtime_libs}" in
13873       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
13874       *)
13875         libstdcxx_incdir='c++/$(gcc_version)'
13876         gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
13877     esac ;;
13878   *) gxx_include_dir=${with_gxx_include_dir} ;;
13879 esac
13880
13881
13882
13883
13884 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13885 # On that system, sys/ioctl.h will not include sys/filio.h unless
13886 # BSD_COMP is defined; just including sys/filio.h is simpler.
13887 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13888 # for now.  If you change this, you also must update natFile.cc.
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13910                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13911                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13912                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
13913                   dirent.h
13914 do
13915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917   echo "$as_me:$LINENO: checking for $ac_header" >&5
13918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13920   echo $ECHO_N "(cached) $ECHO_C" >&6
13921 fi
13922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13924 else
13925   # Is the header compilable?
13926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13928 cat >conftest.$ac_ext <<_ACEOF
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 $ac_includes_default
13935 #include <$ac_header>
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939   (eval $ac_compile) 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } &&
13946          { ac_try='test -z "$ac_c_werror_flag"
13947                          || test ! -s conftest.err'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; } &&
13953          { ac_try='test -s conftest.$ac_objext'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959   ac_header_compiler=yes
13960 else
13961   echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964 ac_header_compiler=no
13965 fi
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13968 echo "${ECHO_T}$ac_header_compiler" >&6
13969
13970 # Is the header present?
13971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979 #include <$ac_header>
13980 _ACEOF
13981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13983   ac_status=$?
13984   grep -v '^ *+' conftest.er1 >conftest.err
13985   rm -f conftest.er1
13986   cat conftest.err >&5
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } >/dev/null; then
13989   if test -s conftest.err; then
13990     ac_cpp_err=$ac_c_preproc_warn_flag
13991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13992   else
13993     ac_cpp_err=
13994   fi
13995 else
13996   ac_cpp_err=yes
13997 fi
13998 if test -z "$ac_cpp_err"; then
13999   ac_header_preproc=yes
14000 else
14001   echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14003
14004   ac_header_preproc=no
14005 fi
14006 rm -f conftest.err conftest.$ac_ext
14007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6
14009
14010 # So?  What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14012   yes:no: )
14013     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14017     ac_header_preproc=yes
14018     ;;
14019   no:yes:* )
14020     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14030     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14032     (
14033       cat <<\_ASBOX
14034 ## ---------------------------------- ##
14035 ## Report this to the libjava lists.  ##
14036 ## ---------------------------------- ##
14037 _ASBOX
14038     ) |
14039       sed "s/^/$as_me: WARNING:     /" >&2
14040     ;;
14041 esac
14042 echo "$as_me:$LINENO: checking for $ac_header" >&5
14043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14045   echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047   eval "$as_ac_Header=\$ac_header_preproc"
14048 fi
14049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14051
14052 fi
14053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14054   cat >>confdefs.h <<_ACEOF
14055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14056 _ACEOF
14057
14058 fi
14059
14060 done
14061
14062
14063 for ac_header in inttypes.h
14064 do
14065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14067   echo "$as_me:$LINENO: checking for $ac_header" >&5
14068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070   echo $ECHO_N "(cached) $ECHO_C" >&6
14071 fi
14072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074 else
14075   # Is the header compilable?
14076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084 $ac_includes_default
14085 #include <$ac_header>
14086 _ACEOF
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089   (eval $ac_compile) 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -z "$ac_c_werror_flag"
14097                          || test ! -s conftest.err'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; } &&
14103          { ac_try='test -s conftest.$ac_objext'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109   ac_header_compiler=yes
14110 else
14111   echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 ac_header_compiler=no
14115 fi
14116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14118 echo "${ECHO_T}$ac_header_compiler" >&6
14119
14120 # Is the header present?
14121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 #include <$ac_header>
14130 _ACEOF
14131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } >/dev/null; then
14139   if test -s conftest.err; then
14140     ac_cpp_err=$ac_c_preproc_warn_flag
14141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14142   else
14143     ac_cpp_err=
14144   fi
14145 else
14146   ac_cpp_err=yes
14147 fi
14148 if test -z "$ac_cpp_err"; then
14149   ac_header_preproc=yes
14150 else
14151   echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154   ac_header_preproc=no
14155 fi
14156 rm -f conftest.err conftest.$ac_ext
14157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14158 echo "${ECHO_T}$ac_header_preproc" >&6
14159
14160 # So?  What about this header?
14161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14162   yes:no: )
14163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14167     ac_header_preproc=yes
14168     ;;
14169   no:yes:* )
14170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14182     (
14183       cat <<\_ASBOX
14184 ## ---------------------------------- ##
14185 ## Report this to the libjava lists.  ##
14186 ## ---------------------------------- ##
14187 _ASBOX
14188     ) |
14189       sed "s/^/$as_me: WARNING:     /" >&2
14190     ;;
14191 esac
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   eval "$as_ac_Header=\$ac_header_preproc"
14198 fi
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14201
14202 fi
14203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14204   cat >>confdefs.h <<_ACEOF
14205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14206 _ACEOF
14207
14208
14209 cat >>confdefs.h <<\_ACEOF
14210 #define HAVE_INTTYPES_H 1
14211 _ACEOF
14212
14213
14214 cat >>confdefs.h <<\_ACEOF
14215 #define JV_HAVE_INTTYPES_H 1
14216 _ACEOF
14217
14218
14219 fi
14220
14221 done
14222
14223 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14224 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14225 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14226   echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228   cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h.  */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h.  */
14234 #include <sys/types.h>
14235 #include <sys/wait.h>
14236 #ifndef WEXITSTATUS
14237 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14238 #endif
14239 #ifndef WIFEXITED
14240 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14241 #endif
14242
14243 int
14244 main ()
14245 {
14246   int s;
14247   wait (&s);
14248   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255   (eval $ac_compile) 2>conftest.er1
14256   ac_status=$?
14257   grep -v '^ *+' conftest.er1 >conftest.err
14258   rm -f conftest.er1
14259   cat conftest.err >&5
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); } &&
14262          { ac_try='test -z "$ac_c_werror_flag"
14263                          || test ! -s conftest.err'
14264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265   (eval $ac_try) 2>&5
14266   ac_status=$?
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); }; } &&
14269          { ac_try='test -s conftest.$ac_objext'
14270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271   (eval $ac_try) 2>&5
14272   ac_status=$?
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); }; }; then
14275   ac_cv_header_sys_wait_h=yes
14276 else
14277   echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14279
14280 ac_cv_header_sys_wait_h=no
14281 fi
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14283 fi
14284 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14285 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14286 if test $ac_cv_header_sys_wait_h = yes; then
14287
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_SYS_WAIT_H 1
14290 _ACEOF
14291
14292 fi
14293
14294
14295 echo "$as_me:$LINENO: checking for ssize_t" >&5
14296 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14297 if test "${ac_cv_type_ssize_t+set}" = set; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300   cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h.  */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h.  */
14306 $ac_includes_default
14307 int
14308 main ()
14309 {
14310 if ((ssize_t *) 0)
14311   return 0;
14312 if (sizeof (ssize_t))
14313   return 0;
14314   ;
14315   return 0;
14316 }
14317 _ACEOF
14318 rm -f conftest.$ac_objext
14319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14320   (eval $ac_compile) 2>conftest.er1
14321   ac_status=$?
14322   grep -v '^ *+' conftest.er1 >conftest.err
14323   rm -f conftest.er1
14324   cat conftest.err >&5
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); } &&
14327          { ac_try='test -z "$ac_c_werror_flag"
14328                          || test ! -s conftest.err'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; } &&
14334          { ac_try='test -s conftest.$ac_objext'
14335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336   (eval $ac_try) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; }; then
14340   ac_cv_type_ssize_t=yes
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345 ac_cv_type_ssize_t=no
14346 fi
14347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14348 fi
14349 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14350 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14351 if test $ac_cv_type_ssize_t = yes; then
14352   :
14353 else
14354
14355 cat >>confdefs.h <<_ACEOF
14356 #define ssize_t int
14357 _ACEOF
14358
14359 fi
14360
14361
14362 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14363 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h.  */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h.  */
14370 #include <sys/types.h>
14371 #if STDC_HEADERS
14372 #include <stdlib.h>
14373 #include <stddef.h>
14374 #endif
14375 #if HAVE_NETINET_IN_H
14376 #include <netinet/in.h>
14377 #endif
14378 int
14379 main ()
14380 {
14381 in_addr_t foo;
14382   ;
14383   return 0;
14384 }
14385 _ACEOF
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388   (eval $ac_compile) 2>conftest.er1
14389   ac_status=$?
14390   grep -v '^ *+' conftest.er1 >conftest.err
14391   rm -f conftest.er1
14392   cat conftest.err >&5
14393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394   (exit $ac_status); } &&
14395          { ac_try='test -z "$ac_c_werror_flag"
14396                          || test ! -s conftest.err'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; } &&
14402          { ac_try='test -s conftest.$ac_objext'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_IN_ADDR_T 1
14411 _ACEOF
14412
14413    echo "$as_me:$LINENO: result: yes" >&5
14414 echo "${ECHO_T}yes" >&6
14415 else
14416   echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14418
14419 echo "$as_me:$LINENO: result: no" >&5
14420 echo "${ECHO_T}no" >&6
14421 fi
14422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14423
14424 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14425 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14426 cat >conftest.$ac_ext <<_ACEOF
14427 /* confdefs.h.  */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h.  */
14432 #include <netinet/in.h>
14433 int
14434 main ()
14435 {
14436 struct ip_mreq mreq;
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443   (eval $ac_compile) 2>conftest.er1
14444   ac_status=$?
14445   grep -v '^ *+' conftest.er1 >conftest.err
14446   rm -f conftest.er1
14447   cat conftest.err >&5
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); } &&
14450          { ac_try='test -z "$ac_c_werror_flag"
14451                          || test ! -s conftest.err'
14452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453   (eval $ac_try) 2>&5
14454   ac_status=$?
14455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456   (exit $ac_status); }; } &&
14457          { ac_try='test -s conftest.$ac_objext'
14458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459   (eval $ac_try) 2>&5
14460   ac_status=$?
14461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462   (exit $ac_status); }; }; then
14463
14464 cat >>confdefs.h <<\_ACEOF
14465 #define HAVE_STRUCT_IP_MREQ 1
14466 _ACEOF
14467
14468    echo "$as_me:$LINENO: result: yes" >&5
14469 echo "${ECHO_T}yes" >&6
14470 else
14471   echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14473
14474 echo "$as_me:$LINENO: result: no" >&5
14475 echo "${ECHO_T}no" >&6
14476 fi
14477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14478
14479 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14480 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h.  */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h.  */
14487 #include <netinet/in.h>
14488 int
14489 main ()
14490 {
14491 struct ipv6_mreq mreq6;
14492   ;
14493   return 0;
14494 }
14495 _ACEOF
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498   (eval $ac_compile) 2>conftest.er1
14499   ac_status=$?
14500   grep -v '^ *+' conftest.er1 >conftest.err
14501   rm -f conftest.er1
14502   cat conftest.err >&5
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } &&
14505          { ac_try='test -z "$ac_c_werror_flag"
14506                          || test ! -s conftest.err'
14507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508   (eval $ac_try) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); }; } &&
14512          { ac_try='test -s conftest.$ac_objext'
14513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514   (eval $ac_try) 2>&5
14515   ac_status=$?
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); }; }; then
14518
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_STRUCT_IPV6_MREQ 1
14521 _ACEOF
14522
14523    echo "$as_me:$LINENO: result: yes" >&5
14524 echo "${ECHO_T}yes" >&6
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529 echo "$as_me:$LINENO: result: no" >&5
14530 echo "${ECHO_T}no" >&6
14531 fi
14532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14533
14534 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14535 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542 #include <netinet/in.h>
14543 int
14544 main ()
14545 {
14546 struct sockaddr_in6 addr6;
14547   ;
14548   return 0;
14549 }
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553   (eval $ac_compile) 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } &&
14560          { ac_try='test -z "$ac_c_werror_flag"
14561                          || test ! -s conftest.err'
14562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563   (eval $ac_try) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; } &&
14567          { ac_try='test -s conftest.$ac_objext'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573
14574 cat >>confdefs.h <<\_ACEOF
14575 #define HAVE_INET6 1
14576 _ACEOF
14577
14578    echo "$as_me:$LINENO: result: yes" >&5
14579 echo "${ECHO_T}yes" >&6
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 echo "$as_me:$LINENO: result: no" >&5
14585 echo "${ECHO_T}no" >&6
14586 fi
14587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14588
14589 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14590 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h.  */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h.  */
14597 #define _POSIX_PII_SOCKET
14598 #include <sys/types.h>
14599 #include <sys/socket.h>
14600 int
14601 main ()
14602 {
14603 socklen_t x = 5;
14604   ;
14605   return 0;
14606 }
14607 _ACEOF
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610   (eval $ac_compile) 2>conftest.er1
14611   ac_status=$?
14612   grep -v '^ *+' conftest.er1 >conftest.err
14613   rm -f conftest.er1
14614   cat conftest.err >&5
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -z "$ac_c_werror_flag"
14618                          || test ! -s conftest.err'
14619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620   (eval $ac_try) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); }; } &&
14624          { ac_try='test -s conftest.$ac_objext'
14625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626   (eval $ac_try) 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; }; then
14630
14631 cat >>confdefs.h <<\_ACEOF
14632 #define HAVE_SOCKLEN_T 1
14633 _ACEOF
14634
14635    echo "$as_me:$LINENO: result: yes" >&5
14636 echo "${ECHO_T}yes" >&6
14637 else
14638   echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 echo "$as_me:$LINENO: result: no" >&5
14642 echo "${ECHO_T}no" >&6
14643 fi
14644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14645
14646 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14647 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 #include <time.h>
14655 int
14656 main ()
14657 {
14658 struct tm tim; tim.tm_gmtoff = 0;
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665   (eval $ac_compile) 2>conftest.er1
14666   ac_status=$?
14667   grep -v '^ *+' conftest.er1 >conftest.err
14668   rm -f conftest.er1
14669   cat conftest.err >&5
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -z "$ac_c_werror_flag"
14673                          || test ! -s conftest.err'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; } &&
14679          { ac_try='test -s conftest.$ac_objext'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }; then
14685
14686 cat >>confdefs.h <<\_ACEOF
14687 #define STRUCT_TM_HAS_GMTOFF 1
14688 _ACEOF
14689
14690    echo "$as_me:$LINENO: result: yes" >&5
14691 echo "${ECHO_T}yes" >&6
14692 else
14693   echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696 echo "$as_me:$LINENO: result: no" >&5
14697 echo "${ECHO_T}no" >&6
14698    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14699 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14700                cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 #include <time.h>
14707 int
14708 main ()
14709 {
14710 void i(){long z2 = 2*timezone;}
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717   (eval $ac_compile) 2>conftest.er1
14718   ac_status=$?
14719   grep -v '^ *+' conftest.er1 >conftest.err
14720   rm -f conftest.er1
14721   cat conftest.err >&5
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); } &&
14724          { ac_try='test -z "$ac_c_werror_flag"
14725                          || test ! -s conftest.err'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; } &&
14731          { ac_try='test -s conftest.$ac_objext'
14732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733   (eval $ac_try) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; }; then
14737
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_TIMEZONE 1
14740 _ACEOF
14741
14742       echo "$as_me:$LINENO: result: yes" >&5
14743 echo "${ECHO_T}yes" >&6
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 echo "$as_me:$LINENO: result: no" >&5
14749 echo "${ECHO_T}no" >&6
14750        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14751 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14752               cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h.  */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h.  */
14758 #include <time.h>
14759 int
14760 main ()
14761 {
14762 long z2 = _timezone;
14763   ;
14764   return 0;
14765 }
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769   (eval $ac_compile) 2>conftest.er1
14770   ac_status=$?
14771   grep -v '^ *+' conftest.er1 >conftest.err
14772   rm -f conftest.er1
14773   cat conftest.err >&5
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } &&
14776          { ac_try='test -z "$ac_c_werror_flag"
14777                          || test ! -s conftest.err'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; } &&
14783          { ac_try='test -s conftest.$ac_objext'
14784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785   (eval $ac_try) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); }; }; then
14789
14790 cat >>confdefs.h <<\_ACEOF
14791 #define HAVE_UNDERSCORE_TIMEZONE 1
14792 _ACEOF
14793
14794           echo "$as_me:$LINENO: result: yes" >&5
14795 echo "${ECHO_T}yes" >&6
14796 else
14797   echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800 echo "$as_me:$LINENO: result: no" >&5
14801 echo "${ECHO_T}no" >&6
14802 fi
14803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14804 fi
14805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14808
14809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14810 # for constant arguments.  Useless!
14811 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14812 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14813 if test "${ac_cv_working_alloca_h+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   if test x$gcc_no_link = xyes; then
14817   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14819    { (exit 1); exit 1; }; }
14820 fi
14821 cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 #include <alloca.h>
14828 int
14829 main ()
14830 {
14831 char *p = (char *) alloca (2 * sizeof (int));
14832   ;
14833   return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838   (eval $ac_link) 2>conftest.er1
14839   ac_status=$?
14840   grep -v '^ *+' conftest.er1 >conftest.err
14841   rm -f conftest.er1
14842   cat conftest.err >&5
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); } &&
14845          { ac_try='test -z "$ac_c_werror_flag"
14846                          || test ! -s conftest.err'
14847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848   (eval $ac_try) 2>&5
14849   ac_status=$?
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); }; } &&
14852          { ac_try='test -s conftest$ac_exeext'
14853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854   (eval $ac_try) 2>&5
14855   ac_status=$?
14856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857   (exit $ac_status); }; }; then
14858   ac_cv_working_alloca_h=yes
14859 else
14860   echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14862
14863 ac_cv_working_alloca_h=no
14864 fi
14865 rm -f conftest.err conftest.$ac_objext \
14866       conftest$ac_exeext conftest.$ac_ext
14867 fi
14868 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14869 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14870 if test $ac_cv_working_alloca_h = yes; then
14871
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_ALLOCA_H 1
14874 _ACEOF
14875
14876 fi
14877
14878 echo "$as_me:$LINENO: checking for alloca" >&5
14879 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14880 if test "${ac_cv_func_alloca_works+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883   if test x$gcc_no_link = xyes; then
14884   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14886    { (exit 1); exit 1; }; }
14887 fi
14888 cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h.  */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h.  */
14894 #ifdef __GNUC__
14895 # define alloca __builtin_alloca
14896 #else
14897 # ifdef _MSC_VER
14898 #  include <malloc.h>
14899 #  define alloca _alloca
14900 # else
14901 #  if HAVE_ALLOCA_H
14902 #   include <alloca.h>
14903 #  else
14904 #   ifdef _AIX
14905  #pragma alloca
14906 #   else
14907 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14908 char *alloca ();
14909 #    endif
14910 #   endif
14911 #  endif
14912 # endif
14913 #endif
14914
14915 int
14916 main ()
14917 {
14918 char *p = (char *) alloca (1);
14919   ;
14920   return 0;
14921 }
14922 _ACEOF
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14925   (eval $ac_link) 2>conftest.er1
14926   ac_status=$?
14927   grep -v '^ *+' conftest.er1 >conftest.err
14928   rm -f conftest.er1
14929   cat conftest.err >&5
14930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931   (exit $ac_status); } &&
14932          { ac_try='test -z "$ac_c_werror_flag"
14933                          || test ! -s conftest.err'
14934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935   (eval $ac_try) 2>&5
14936   ac_status=$?
14937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938   (exit $ac_status); }; } &&
14939          { ac_try='test -s conftest$ac_exeext'
14940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941   (eval $ac_try) 2>&5
14942   ac_status=$?
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); }; }; then
14945   ac_cv_func_alloca_works=yes
14946 else
14947   echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ac_cv_func_alloca_works=no
14951 fi
14952 rm -f conftest.err conftest.$ac_objext \
14953       conftest$ac_exeext conftest.$ac_ext
14954 fi
14955 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14956 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14957
14958 if test $ac_cv_func_alloca_works = yes; then
14959
14960 cat >>confdefs.h <<\_ACEOF
14961 #define HAVE_ALLOCA 1
14962 _ACEOF
14963
14964 else
14965   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14966 # that cause trouble.  Some versions do not even contain alloca or
14967 # contain a buggy version.  If you still want to use their alloca,
14968 # use ar to extract alloca.o from them instead of compiling alloca.c.
14969
14970 ALLOCA=alloca.$ac_objext
14971
14972 cat >>confdefs.h <<\_ACEOF
14973 #define C_ALLOCA 1
14974 _ACEOF
14975
14976
14977 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14978 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14979 if test "${ac_cv_os_cray+set}" = set; then
14980   echo $ECHO_N "(cached) $ECHO_C" >&6
14981 else
14982   cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h.  */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h.  */
14988 #if defined(CRAY) && ! defined(CRAY2)
14989 webecray
14990 #else
14991 wenotbecray
14992 #endif
14993
14994 _ACEOF
14995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14996   $EGREP "webecray" >/dev/null 2>&1; then
14997   ac_cv_os_cray=yes
14998 else
14999   ac_cv_os_cray=no
15000 fi
15001 rm -f conftest*
15002
15003 fi
15004 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15005 echo "${ECHO_T}$ac_cv_os_cray" >&6
15006 if test $ac_cv_os_cray = yes; then
15007   for ac_func in _getb67 GETB67 getb67; do
15008     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15009 echo "$as_me:$LINENO: checking for $ac_func" >&5
15010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15011 if eval "test \"\${$as_ac_var+set}\" = set"; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014   if test x$gcc_no_link = xyes; then
15015   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15016 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15017    { (exit 1); exit 1; }; }
15018 fi
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15026    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15027 #define $ac_func innocuous_$ac_func
15028
15029 /* System header to define __stub macros and hopefully few prototypes,
15030     which can conflict with char $ac_func (); below.
15031     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15032     <limits.h> exists even on freestanding compilers.  */
15033
15034 #ifdef __STDC__
15035 # include <limits.h>
15036 #else
15037 # include <assert.h>
15038 #endif
15039
15040 #undef $ac_func
15041
15042 /* Override any gcc2 internal prototype to avoid an error.  */
15043 #ifdef __cplusplus
15044 extern "C"
15045 {
15046 #endif
15047 /* We use char because int might match the return type of a gcc2
15048    builtin and then its argument prototype would still apply.  */
15049 char $ac_func ();
15050 /* The GNU C library defines this for functions which it implements
15051     to always fail with ENOSYS.  Some functions are actually named
15052     something starting with __ and the normal name is an alias.  */
15053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15054 choke me
15055 #else
15056 char (*f) () = $ac_func;
15057 #endif
15058 #ifdef __cplusplus
15059 }
15060 #endif
15061
15062 int
15063 main ()
15064 {
15065 return f != $ac_func;
15066   ;
15067   return 0;
15068 }
15069 _ACEOF
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15072   (eval $ac_link) 2>conftest.er1
15073   ac_status=$?
15074   grep -v '^ *+' conftest.er1 >conftest.err
15075   rm -f conftest.er1
15076   cat conftest.err >&5
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } &&
15079          { ac_try='test -z "$ac_c_werror_flag"
15080                          || test ! -s conftest.err'
15081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082   (eval $ac_try) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; } &&
15086          { ac_try='test -s conftest$ac_exeext'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; }; then
15092   eval "$as_ac_var=yes"
15093 else
15094   echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15096
15097 eval "$as_ac_var=no"
15098 fi
15099 rm -f conftest.err conftest.$ac_objext \
15100       conftest$ac_exeext conftest.$ac_ext
15101 fi
15102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15104 if test `eval echo '${'$as_ac_var'}'` = yes; then
15105
15106 cat >>confdefs.h <<_ACEOF
15107 #define CRAY_STACKSEG_END $ac_func
15108 _ACEOF
15109
15110     break
15111 fi
15112
15113   done
15114 fi
15115
15116 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15117 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15118 if test "${ac_cv_c_stack_direction+set}" = set; then
15119   echo $ECHO_N "(cached) $ECHO_C" >&6
15120 else
15121   if test "$cross_compiling" = yes; then
15122   ac_cv_c_stack_direction=0
15123 else
15124   cat >conftest.$ac_ext <<_ACEOF
15125 /* confdefs.h.  */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h.  */
15130 int
15131 find_stack_direction ()
15132 {
15133   static char *addr = 0;
15134   auto char dummy;
15135   if (addr == 0)
15136     {
15137       addr = &dummy;
15138       return find_stack_direction ();
15139     }
15140   else
15141     return (&dummy > addr) ? 1 : -1;
15142 }
15143
15144 int
15145 main ()
15146 {
15147   exit (find_stack_direction () < 0);
15148 }
15149 _ACEOF
15150 rm -f conftest$ac_exeext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15152   (eval $ac_link) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157   (eval $ac_try) 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; }; then
15161   ac_cv_c_stack_direction=1
15162 else
15163   echo "$as_me: program exited with status $ac_status" >&5
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167 ( exit $ac_status )
15168 ac_cv_c_stack_direction=-1
15169 fi
15170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15171 fi
15172 fi
15173 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15174 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15175
15176 cat >>confdefs.h <<_ACEOF
15177 #define STACK_DIRECTION $ac_cv_c_stack_direction
15178 _ACEOF
15179
15180
15181 fi
15182
15183 if test x$gcc_no_link = xyes; then
15184   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15185     ac_cv_func_mmap_fixed_mapped=no
15186   fi
15187 fi
15188 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15189
15190
15191 for ac_header in stdlib.h unistd.h
15192 do
15193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15195   echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 fi
15200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15202 else
15203   # Is the header compilable?
15204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h.  */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h.  */
15212 $ac_includes_default
15213 #include <$ac_header>
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217   (eval $ac_compile) 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -z "$ac_c_werror_flag"
15225                          || test ! -s conftest.err'
15226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227   (eval $ac_try) 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; } &&
15231          { ac_try='test -s conftest.$ac_objext'
15232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233   (eval $ac_try) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; }; then
15237   ac_header_compiler=yes
15238 else
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 ac_header_compiler=no
15243 fi
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15246 echo "${ECHO_T}$ac_header_compiler" >&6
15247
15248 # Is the header present?
15249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15251 cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h.  */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h.  */
15257 #include <$ac_header>
15258 _ACEOF
15259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15261   ac_status=$?
15262   grep -v '^ *+' conftest.er1 >conftest.err
15263   rm -f conftest.er1
15264   cat conftest.err >&5
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   (exit $ac_status); } >/dev/null; then
15267   if test -s conftest.err; then
15268     ac_cpp_err=$ac_c_preproc_warn_flag
15269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15270   else
15271     ac_cpp_err=
15272   fi
15273 else
15274   ac_cpp_err=yes
15275 fi
15276 if test -z "$ac_cpp_err"; then
15277   ac_header_preproc=yes
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282   ac_header_preproc=no
15283 fi
15284 rm -f conftest.err conftest.$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15286 echo "${ECHO_T}$ac_header_preproc" >&6
15287
15288 # So?  What about this header?
15289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15290   yes:no: )
15291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15295     ac_header_preproc=yes
15296     ;;
15297   no:yes:* )
15298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15310     (
15311       cat <<\_ASBOX
15312 ## ---------------------------------- ##
15313 ## Report this to the libjava lists.  ##
15314 ## ---------------------------------- ##
15315 _ASBOX
15316     ) |
15317       sed "s/^/$as_me: WARNING:     /" >&2
15318     ;;
15319 esac
15320 echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   eval "$as_ac_Header=\$ac_header_preproc"
15326 fi
15327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15329
15330 fi
15331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15332   cat >>confdefs.h <<_ACEOF
15333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15334 _ACEOF
15335
15336 fi
15337
15338 done
15339
15340
15341 for ac_func in getpagesize
15342 do
15343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15344 echo "$as_me:$LINENO: checking for $ac_func" >&5
15345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15346 if eval "test \"\${$as_ac_var+set}\" = set"; then
15347   echo $ECHO_N "(cached) $ECHO_C" >&6
15348 else
15349   if test x$gcc_no_link = xyes; then
15350   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15352    { (exit 1); exit 1; }; }
15353 fi
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15361    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15362 #define $ac_func innocuous_$ac_func
15363
15364 /* System header to define __stub macros and hopefully few prototypes,
15365     which can conflict with char $ac_func (); below.
15366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15367     <limits.h> exists even on freestanding compilers.  */
15368
15369 #ifdef __STDC__
15370 # include <limits.h>
15371 #else
15372 # include <assert.h>
15373 #endif
15374
15375 #undef $ac_func
15376
15377 /* Override any gcc2 internal prototype to avoid an error.  */
15378 #ifdef __cplusplus
15379 extern "C"
15380 {
15381 #endif
15382 /* We use char because int might match the return type of a gcc2
15383    builtin and then its argument prototype would still apply.  */
15384 char $ac_func ();
15385 /* The GNU C library defines this for functions which it implements
15386     to always fail with ENOSYS.  Some functions are actually named
15387     something starting with __ and the normal name is an alias.  */
15388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15389 choke me
15390 #else
15391 char (*f) () = $ac_func;
15392 #endif
15393 #ifdef __cplusplus
15394 }
15395 #endif
15396
15397 int
15398 main ()
15399 {
15400 return f != $ac_func;
15401   ;
15402   return 0;
15403 }
15404 _ACEOF
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15407   (eval $ac_link) 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -z "$ac_c_werror_flag"
15415                          || test ! -s conftest.err'
15416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417   (eval $ac_try) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; } &&
15421          { ac_try='test -s conftest$ac_exeext'
15422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423   (eval $ac_try) 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); }; }; then
15427   eval "$as_ac_var=yes"
15428 else
15429   echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15431
15432 eval "$as_ac_var=no"
15433 fi
15434 rm -f conftest.err conftest.$ac_objext \
15435       conftest$ac_exeext conftest.$ac_ext
15436 fi
15437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15439 if test `eval echo '${'$as_ac_var'}'` = yes; then
15440   cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15442 _ACEOF
15443
15444 fi
15445 done
15446
15447 echo "$as_me:$LINENO: checking for working mmap" >&5
15448 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15449 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   if test "$cross_compiling" = yes; then
15453   ac_cv_func_mmap_fixed_mapped=no
15454 else
15455   cat >conftest.$ac_ext <<_ACEOF
15456 /* confdefs.h.  */
15457 _ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h.  */
15461 $ac_includes_default
15462 /* malloc might have been renamed as rpl_malloc. */
15463 #undef malloc
15464
15465 /* Thanks to Mike Haertel and Jim Avera for this test.
15466    Here is a matrix of mmap possibilities:
15467         mmap private not fixed
15468         mmap private fixed at somewhere currently unmapped
15469         mmap private fixed at somewhere already mapped
15470         mmap shared not fixed
15471         mmap shared fixed at somewhere currently unmapped
15472         mmap shared fixed at somewhere already mapped
15473    For private mappings, we should verify that changes cannot be read()
15474    back from the file, nor mmap's back from the file at a different
15475    address.  (There have been systems where private was not correctly
15476    implemented like the infamous i386 svr4.0, and systems where the
15477    VM page cache was not coherent with the file system buffer cache
15478    like early versions of FreeBSD and possibly contemporary NetBSD.)
15479    For shared mappings, we should conversely verify that changes get
15480    propagated back to all the places they're supposed to be.
15481
15482    Grep wants private fixed already mapped.
15483    The main things grep needs to know about mmap are:
15484    * does it exist and is it safe to write into the mmap'd area
15485    * how to use it (BSD variants)  */
15486
15487 #include <fcntl.h>
15488 #include <sys/mman.h>
15489
15490 #if !STDC_HEADERS && !HAVE_STDLIB_H
15491 char *malloc ();
15492 #endif
15493
15494 /* This mess was copied from the GNU getpagesize.h.  */
15495 #if !HAVE_GETPAGESIZE
15496 /* Assume that all systems that can run configure have sys/param.h.  */
15497 # if !HAVE_SYS_PARAM_H
15498 #  define HAVE_SYS_PARAM_H 1
15499 # endif
15500
15501 # ifdef _SC_PAGESIZE
15502 #  define getpagesize() sysconf(_SC_PAGESIZE)
15503 # else /* no _SC_PAGESIZE */
15504 #  if HAVE_SYS_PARAM_H
15505 #   include <sys/param.h>
15506 #   ifdef EXEC_PAGESIZE
15507 #    define getpagesize() EXEC_PAGESIZE
15508 #   else /* no EXEC_PAGESIZE */
15509 #    ifdef NBPG
15510 #     define getpagesize() NBPG * CLSIZE
15511 #     ifndef CLSIZE
15512 #      define CLSIZE 1
15513 #     endif /* no CLSIZE */
15514 #    else /* no NBPG */
15515 #     ifdef NBPC
15516 #      define getpagesize() NBPC
15517 #     else /* no NBPC */
15518 #      ifdef PAGESIZE
15519 #       define getpagesize() PAGESIZE
15520 #      endif /* PAGESIZE */
15521 #     endif /* no NBPC */
15522 #    endif /* no NBPG */
15523 #   endif /* no EXEC_PAGESIZE */
15524 #  else /* no HAVE_SYS_PARAM_H */
15525 #   define getpagesize() 8192   /* punt totally */
15526 #  endif /* no HAVE_SYS_PARAM_H */
15527 # endif /* no _SC_PAGESIZE */
15528
15529 #endif /* no HAVE_GETPAGESIZE */
15530
15531 int
15532 main ()
15533 {
15534   char *data, *data2, *data3;
15535   int i, pagesize;
15536   int fd;
15537
15538   pagesize = getpagesize ();
15539
15540   /* First, make a file with some known garbage in it. */
15541   data = (char *) malloc (pagesize);
15542   if (!data)
15543     exit (1);
15544   for (i = 0; i < pagesize; ++i)
15545     *(data + i) = rand ();
15546   umask (0);
15547   fd = creat ("conftest.mmap", 0600);
15548   if (fd < 0)
15549     exit (1);
15550   if (write (fd, data, pagesize) != pagesize)
15551     exit (1);
15552   close (fd);
15553
15554   /* Next, try to mmap the file at a fixed address which already has
15555      something else allocated at it.  If we can, also make sure that
15556      we see the same garbage.  */
15557   fd = open ("conftest.mmap", O_RDWR);
15558   if (fd < 0)
15559     exit (1);
15560   data2 = (char *) malloc (2 * pagesize);
15561   if (!data2)
15562     exit (1);
15563   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15564   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15565                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15566     exit (1);
15567   for (i = 0; i < pagesize; ++i)
15568     if (*(data + i) != *(data2 + i))
15569       exit (1);
15570
15571   /* Finally, make sure that changes to the mapped area do not
15572      percolate back to the file as seen by read().  (This is a bug on
15573      some variants of i386 svr4.0.)  */
15574   for (i = 0; i < pagesize; ++i)
15575     *(data2 + i) = *(data2 + i) + 1;
15576   data3 = (char *) malloc (pagesize);
15577   if (!data3)
15578     exit (1);
15579   if (read (fd, data3, pagesize) != pagesize)
15580     exit (1);
15581   for (i = 0; i < pagesize; ++i)
15582     if (*(data + i) != *(data3 + i))
15583       exit (1);
15584   close (fd);
15585   exit (0);
15586 }
15587 _ACEOF
15588 rm -f conftest$ac_exeext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590   (eval $ac_link) 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595   (eval $ac_try) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599   ac_cv_func_mmap_fixed_mapped=yes
15600 else
15601   echo "$as_me: program exited with status $ac_status" >&5
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15604
15605 ( exit $ac_status )
15606 ac_cv_func_mmap_fixed_mapped=no
15607 fi
15608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609 fi
15610 fi
15611 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15612 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15613 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15614
15615 cat >>confdefs.h <<\_ACEOF
15616 #define HAVE_MMAP 1
15617 _ACEOF
15618
15619 fi
15620 rm -f conftest.mmap
15621
15622 fi
15623
15624 for ac_prog in perl
15625 do
15626   # Extract the first word of "$ac_prog", so it can be a program name with args.
15627 set dummy $ac_prog; ac_word=$2
15628 echo "$as_me:$LINENO: checking for $ac_word" >&5
15629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15630 if test "${ac_cv_prog_PERL+set}" = set; then
15631   echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633   if test -n "$PERL"; then
15634   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15635 else
15636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 for as_dir in $PATH
15638 do
15639   IFS=$as_save_IFS
15640   test -z "$as_dir" && as_dir=.
15641   for ac_exec_ext in '' $ac_executable_extensions; do
15642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15643     ac_cv_prog_PERL="$ac_prog"
15644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15645     break 2
15646   fi
15647 done
15648 done
15649
15650 fi
15651 fi
15652 PERL=$ac_cv_prog_PERL
15653 if test -n "$PERL"; then
15654   echo "$as_me:$LINENO: result: $PERL" >&5
15655 echo "${ECHO_T}$PERL" >&6
15656 else
15657   echo "$as_me:$LINENO: result: no" >&5
15658 echo "${ECHO_T}no" >&6
15659 fi
15660
15661   test -n "$PERL" && break
15662 done
15663 test -n "$PERL" || PERL="false"
15664
15665
15666 SYSDEP_SOURCES=
15667 SIGNAL_HANDLER_AUX=
15668
15669 case "${host}" in
15670  i?86-*-linux*)
15671     SIGNAL_HANDLER=include/i386-signal.h
15672     ;;
15673  sparc*-sun-solaris*)
15674     SIGNAL_HANDLER=include/sparc-signal.h
15675     ;;
15676 # ia64-*)
15677 #    SYSDEP_SOURCES=sysdep/ia64.c
15678 #    test -d sysdep || mkdir sysdep
15679 #    ;;
15680  hppa*-*-linux*)
15681     SIGNAL_HANDLER=include/pa-signal.h
15682     ;;
15683  ia64-*-linux*)
15684     SIGNAL_HANDLER=include/dwarf2-signal.h
15685     ;;
15686  powerpc*-*-linux*)
15687     SIGNAL_HANDLER=include/powerpc-signal.h
15688     ;;
15689  alpha*-*-linux*)
15690     SIGNAL_HANDLER=include/dwarf2-signal.h
15691     ;;
15692  s390*-*-linux*)
15693     SIGNAL_HANDLER=include/s390-signal.h
15694     ;;
15695  x86_64*-*-linux*)
15696     SIGNAL_HANDLER=include/x86_64-signal.h
15697     SIGNAL_HANDLER_AUX=include/i386-signal.h
15698     ;;
15699  sparc*-*-linux*)
15700     SIGNAL_HANDLER=include/dwarf2-signal.h
15701     ;;
15702  sh*-*-linux*)
15703     SIGNAL_HANDLER=include/sh-signal.h
15704     ;;
15705  *mingw*)
15706     SIGNAL_HANDLER=include/win32-signal.h
15707     ;;
15708  mips*-*-linux*)
15709     SIGNAL_HANDLER=include/mips-signal.h
15710     ;;
15711  *-*-darwin*)
15712     SIGNAL_HANDLER=include/darwin-signal.h
15713     ;;
15714  *)
15715     SIGNAL_HANDLER=include/default-signal.h
15716     ;;
15717 esac
15718
15719 # If we're using sjlj exceptions, forget what we just learned.
15720 if test "$enable_sjlj_exceptions" = yes; then
15721    SIGNAL_HANDLER=include/default-signal.h
15722    SIGNAL_HANDLER_AUX=
15723 fi
15724
15725 # Define here any compiler flags that you need in order to make backtrace() work.
15726 BACKTRACESPEC=
15727 case "${host}" in
15728  x86_64*-*-linux*|i?86-*)
15729     BACKTRACESPEC=-fno-omit-frame-pointer
15730     ;;
15731 esac
15732
15733
15734
15735
15736 if test -z "$SIGNAL_HANDLER_AUX"; then
15737   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15738 fi
15739
15740                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15741
15742
15743 if test "${multilib}" = "yes"; then
15744   multilib_arg="--enable-multilib"
15745 else
15746   multilib_arg=
15747 fi
15748
15749
15750
15751 here=`${PWDCMD-pwd}`
15752
15753
15754 # We get this from the environment.
15755
15756
15757                                                                                                               ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15758
15759
15760           ac_config_commands="$ac_config_commands default"
15761
15762
15763 cat >confcache <<\_ACEOF
15764 # This file is a shell script that caches the results of configure
15765 # tests run on this system so they can be shared between configure
15766 # scripts and configure runs, see configure's option --config-cache.
15767 # It is not useful on other systems.  If it contains results you don't
15768 # want to keep, you may remove or edit it.
15769 #
15770 # config.status only pays attention to the cache file if you give it
15771 # the --recheck option to rerun configure.
15772 #
15773 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15774 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15775 # following values.
15776
15777 _ACEOF
15778
15779 # The following way of writing the cache mishandles newlines in values,
15780 # but we know of no workaround that is simple, portable, and efficient.
15781 # So, don't put newlines in cache variables' values.
15782 # Ultrix sh set writes to stderr and can't be redirected directly,
15783 # and sets the high bit in the cache file unless we assign to the vars.
15784 {
15785   (set) 2>&1 |
15786     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15787     *ac_space=\ *)
15788       # `set' does not quote correctly, so add quotes (double-quote
15789       # substitution turns \\\\ into \\, and sed turns \\ into \).
15790       sed -n \
15791         "s/'/'\\\\''/g;
15792           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15793       ;;
15794     *)
15795       # `set' quotes correctly as required by POSIX, so do not add quotes.
15796       sed -n \
15797         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15798       ;;
15799     esac;
15800 } |
15801   sed '
15802      t clear
15803      : clear
15804      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15805      t end
15806      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15807      : end' >>confcache
15808 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15809   if test -w $cache_file; then
15810     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15811     cat confcache >$cache_file
15812   else
15813     echo "not updating unwritable cache $cache_file"
15814   fi
15815 fi
15816 rm -f confcache
15817
15818 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15819 # Let make expand exec_prefix.
15820 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15821
15822 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15823 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15824 # trailing colons and then remove the whole line if VPATH becomes empty
15825 # (actually we leave an empty line to preserve line numbers).
15826 if test "x$srcdir" = x.; then
15827   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15828 s/:*\$(srcdir):*/:/;
15829 s/:*\${srcdir}:*/:/;
15830 s/:*@srcdir@:*/:/;
15831 s/^\([^=]*=[     ]*\):*/\1/;
15832 s/:*$//;
15833 s/^[^=]*=[       ]*$//;
15834 }'
15835 fi
15836
15837 DEFS=-DHAVE_CONFIG_H
15838
15839 ac_libobjs=
15840 ac_ltlibobjs=
15841 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15842   # 1. Remove the extension, and $U if already installed.
15843   ac_i=`echo "$ac_i" |
15844          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15845   # 2. Add them.
15846   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15847   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15848 done
15849 LIBOBJS=$ac_libobjs
15850
15851 LTLIBOBJS=$ac_ltlibobjs
15852
15853
15854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15855   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15856 Usually this means the macro was only invoked conditionally." >&5
15857 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15858 Usually this means the macro was only invoked conditionally." >&2;}
15859    { (exit 1); exit 1; }; }
15860 fi
15861 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15862   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15863 Usually this means the macro was only invoked conditionally." >&5
15864 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15865 Usually this means the macro was only invoked conditionally." >&2;}
15866    { (exit 1); exit 1; }; }
15867 fi
15868 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15869   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15870 Usually this means the macro was only invoked conditionally." >&5
15871 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15872 Usually this means the macro was only invoked conditionally." >&2;}
15873    { (exit 1); exit 1; }; }
15874 fi
15875 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15876   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15877 Usually this means the macro was only invoked conditionally." >&5
15878 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15879 Usually this means the macro was only invoked conditionally." >&2;}
15880    { (exit 1); exit 1; }; }
15881 fi
15882 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15883   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15884 Usually this means the macro was only invoked conditionally." >&5
15885 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15886 Usually this means the macro was only invoked conditionally." >&2;}
15887    { (exit 1); exit 1; }; }
15888 fi
15889 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15890   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15891 Usually this means the macro was only invoked conditionally." >&5
15892 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15893 Usually this means the macro was only invoked conditionally." >&2;}
15894    { (exit 1); exit 1; }; }
15895 fi
15896 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15897   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15898 Usually this means the macro was only invoked conditionally." >&5
15899 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15900 Usually this means the macro was only invoked conditionally." >&2;}
15901    { (exit 1); exit 1; }; }
15902 fi
15903 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15904   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15905 Usually this means the macro was only invoked conditionally." >&5
15906 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15907 Usually this means the macro was only invoked conditionally." >&2;}
15908    { (exit 1); exit 1; }; }
15909 fi
15910 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15911   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15912 Usually this means the macro was only invoked conditionally." >&5
15913 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15914 Usually this means the macro was only invoked conditionally." >&2;}
15915    { (exit 1); exit 1; }; }
15916 fi
15917 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15918   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15919 Usually this means the macro was only invoked conditionally." >&5
15920 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15921 Usually this means the macro was only invoked conditionally." >&2;}
15922    { (exit 1); exit 1; }; }
15923 fi
15924 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15925   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15926 Usually this means the macro was only invoked conditionally." >&5
15927 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15928 Usually this means the macro was only invoked conditionally." >&2;}
15929    { (exit 1); exit 1; }; }
15930 fi
15931 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15932   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15933 Usually this means the macro was only invoked conditionally." >&5
15934 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15935 Usually this means the macro was only invoked conditionally." >&2;}
15936    { (exit 1); exit 1; }; }
15937 fi
15938 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15939   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15940 Usually this means the macro was only invoked conditionally." >&5
15941 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15942 Usually this means the macro was only invoked conditionally." >&2;}
15943    { (exit 1); exit 1; }; }
15944 fi
15945 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15946   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15947 Usually this means the macro was only invoked conditionally." >&5
15948 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15949 Usually this means the macro was only invoked conditionally." >&2;}
15950    { (exit 1); exit 1; }; }
15951 fi
15952 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15953   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15954 Usually this means the macro was only invoked conditionally." >&5
15955 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15956 Usually this means the macro was only invoked conditionally." >&2;}
15957    { (exit 1); exit 1; }; }
15958 fi
15959 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15960   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15961 Usually this means the macro was only invoked conditionally." >&5
15962 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15963 Usually this means the macro was only invoked conditionally." >&2;}
15964    { (exit 1); exit 1; }; }
15965 fi
15966 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15967   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15968 Usually this means the macro was only invoked conditionally." >&5
15969 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15970 Usually this means the macro was only invoked conditionally." >&2;}
15971    { (exit 1); exit 1; }; }
15972 fi
15973 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15974   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15975 Usually this means the macro was only invoked conditionally." >&5
15976 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15977 Usually this means the macro was only invoked conditionally." >&2;}
15978    { (exit 1); exit 1; }; }
15979 fi
15980 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15981   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15982 Usually this means the macro was only invoked conditionally." >&5
15983 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15984 Usually this means the macro was only invoked conditionally." >&2;}
15985    { (exit 1); exit 1; }; }
15986 fi
15987 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15988   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15989 Usually this means the macro was only invoked conditionally." >&5
15990 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15991 Usually this means the macro was only invoked conditionally." >&2;}
15992    { (exit 1); exit 1; }; }
15993 fi
15994 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15995   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15996 Usually this means the macro was only invoked conditionally." >&5
15997 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15998 Usually this means the macro was only invoked conditionally." >&2;}
15999    { (exit 1); exit 1; }; }
16000 fi
16001 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16002   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16003 Usually this means the macro was only invoked conditionally." >&5
16004 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16005 Usually this means the macro was only invoked conditionally." >&2;}
16006    { (exit 1); exit 1; }; }
16007 fi
16008 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16009   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16010 Usually this means the macro was only invoked conditionally." >&5
16011 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16012 Usually this means the macro was only invoked conditionally." >&2;}
16013    { (exit 1); exit 1; }; }
16014 fi
16015 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16016   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16017 Usually this means the macro was only invoked conditionally." >&5
16018 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16019 Usually this means the macro was only invoked conditionally." >&2;}
16020    { (exit 1); exit 1; }; }
16021 fi
16022
16023 : ${CONFIG_STATUS=./config.status}
16024 ac_clean_files_save=$ac_clean_files
16025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16026 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16027 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16028 cat >$CONFIG_STATUS <<_ACEOF
16029 #! $SHELL
16030 # Generated by $as_me.
16031 # Run this file to recreate the current configuration.
16032 # Compiler output produced by configure, useful for debugging
16033 # configure, is in config.log if it exists.
16034
16035 debug=false
16036 ac_cs_recheck=false
16037 ac_cs_silent=false
16038 SHELL=\${CONFIG_SHELL-$SHELL}
16039 _ACEOF
16040
16041 cat >>$CONFIG_STATUS <<\_ACEOF
16042 ## --------------------- ##
16043 ## M4sh Initialization.  ##
16044 ## --------------------- ##
16045
16046 # Be Bourne compatible
16047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16048   emulate sh
16049   NULLCMD=:
16050   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16051   # is contrary to our usage.  Disable this feature.
16052   alias -g '${1+"$@"}'='"$@"'
16053 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16054   set -o posix
16055 fi
16056 DUALCASE=1; export DUALCASE # for MKS sh
16057
16058 # Support unset when possible.
16059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16060   as_unset=unset
16061 else
16062   as_unset=false
16063 fi
16064
16065
16066 # Work around bugs in pre-3.0 UWIN ksh.
16067 $as_unset ENV MAIL MAILPATH
16068 PS1='$ '
16069 PS2='> '
16070 PS4='+ '
16071
16072 # NLS nuisances.
16073 for as_var in \
16074   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16075   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16076   LC_TELEPHONE LC_TIME
16077 do
16078   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16079     eval $as_var=C; export $as_var
16080   else
16081     $as_unset $as_var
16082   fi
16083 done
16084
16085 # Required to use basename.
16086 if expr a : '\(a\)' >/dev/null 2>&1; then
16087   as_expr=expr
16088 else
16089   as_expr=false
16090 fi
16091
16092 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16093   as_basename=basename
16094 else
16095   as_basename=false
16096 fi
16097
16098
16099 # Name of the executable.
16100 as_me=`$as_basename "$0" ||
16101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16102          X"$0" : 'X\(//\)$' \| \
16103          X"$0" : 'X\(/\)$' \| \
16104          .     : '\(.\)' 2>/dev/null ||
16105 echo X/"$0" |
16106     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16107           /^X\/\(\/\/\)$/{ s//\1/; q; }
16108           /^X\/\(\/\).*/{ s//\1/; q; }
16109           s/.*/./; q'`
16110
16111
16112 # PATH needs CR, and LINENO needs CR and PATH.
16113 # Avoid depending upon Character Ranges.
16114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16117 as_cr_digits='0123456789'
16118 as_cr_alnum=$as_cr_Letters$as_cr_digits
16119
16120 # The user is always right.
16121 if test "${PATH_SEPARATOR+set}" != set; then
16122   echo "#! /bin/sh" >conf$$.sh
16123   echo  "exit 0"   >>conf$$.sh
16124   chmod +x conf$$.sh
16125   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16126     PATH_SEPARATOR=';'
16127   else
16128     PATH_SEPARATOR=:
16129   fi
16130   rm -f conf$$.sh
16131 fi
16132
16133
16134   as_lineno_1=$LINENO
16135   as_lineno_2=$LINENO
16136   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16137   test "x$as_lineno_1" != "x$as_lineno_2" &&
16138   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16139   # Find who we are.  Look in the path if we contain no path at all
16140   # relative or not.
16141   case $0 in
16142     *[\\/]* ) as_myself=$0 ;;
16143     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144 for as_dir in $PATH
16145 do
16146   IFS=$as_save_IFS
16147   test -z "$as_dir" && as_dir=.
16148   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16149 done
16150
16151        ;;
16152   esac
16153   # We did not find ourselves, most probably we were run as `sh COMMAND'
16154   # in which case we are not to be found in the path.
16155   if test "x$as_myself" = x; then
16156     as_myself=$0
16157   fi
16158   if test ! -f "$as_myself"; then
16159     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16160 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16161    { (exit 1); exit 1; }; }
16162   fi
16163   case $CONFIG_SHELL in
16164   '')
16165     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16167 do
16168   IFS=$as_save_IFS
16169   test -z "$as_dir" && as_dir=.
16170   for as_base in sh bash ksh sh5; do
16171          case $as_dir in
16172          /*)
16173            if ("$as_dir/$as_base" -c '
16174   as_lineno_1=$LINENO
16175   as_lineno_2=$LINENO
16176   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16177   test "x$as_lineno_1" != "x$as_lineno_2" &&
16178   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16179              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16180              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16181              CONFIG_SHELL=$as_dir/$as_base
16182              export CONFIG_SHELL
16183              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16184            fi;;
16185          esac
16186        done
16187 done
16188 ;;
16189   esac
16190
16191   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16192   # uniformly replaced by the line number.  The first 'sed' inserts a
16193   # line-number line before each line; the second 'sed' does the real
16194   # work.  The second script uses 'N' to pair each line-number line
16195   # with the numbered line, and appends trailing '-' during
16196   # substitution so that $LINENO is not a special case at line end.
16197   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16198   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16199   sed '=' <$as_myself |
16200     sed '
16201       N
16202       s,$,-,
16203       : loop
16204       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16205       t loop
16206       s,-$,,
16207       s,^['$as_cr_digits']*\n,,
16208     ' >$as_me.lineno &&
16209   chmod +x $as_me.lineno ||
16210     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16211 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16212    { (exit 1); exit 1; }; }
16213
16214   # Don't try to exec as it changes $[0], causing all sort of problems
16215   # (the dirname of $[0] is not the place where we might find the
16216   # original and so on.  Autoconf is especially sensible to this).
16217   . ./$as_me.lineno
16218   # Exit status is that of the last command.
16219   exit
16220 }
16221
16222
16223 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16224   *c*,-n*) ECHO_N= ECHO_C='
16225 ' ECHO_T='      ' ;;
16226   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16227   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16228 esac
16229
16230 if expr a : '\(a\)' >/dev/null 2>&1; then
16231   as_expr=expr
16232 else
16233   as_expr=false
16234 fi
16235
16236 rm -f conf$$ conf$$.exe conf$$.file
16237 echo >conf$$.file
16238 if ln -s conf$$.file conf$$ 2>/dev/null; then
16239   # We could just check for DJGPP; but this test a) works b) is more generic
16240   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16241   if test -f conf$$.exe; then
16242     # Don't use ln at all; we don't have any links
16243     as_ln_s='cp -p'
16244   else
16245     as_ln_s='ln -s'
16246   fi
16247 elif ln conf$$.file conf$$ 2>/dev/null; then
16248   as_ln_s=ln
16249 else
16250   as_ln_s='cp -p'
16251 fi
16252 rm -f conf$$ conf$$.exe conf$$.file
16253
16254 if mkdir -p . 2>/dev/null; then
16255   as_mkdir_p=:
16256 else
16257   test -d ./-p && rmdir ./-p
16258   as_mkdir_p=false
16259 fi
16260
16261 as_executable_p="test -f"
16262
16263 # Sed expression to map a string onto a valid CPP name.
16264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16265
16266 # Sed expression to map a string onto a valid variable name.
16267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16268
16269
16270 # IFS
16271 # We need space, tab and new line, in precisely that order.
16272 as_nl='
16273 '
16274 IFS="   $as_nl"
16275
16276 # CDPATH.
16277 $as_unset CDPATH
16278
16279 exec 6>&1
16280
16281 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16282 # report actual input values of CONFIG_FILES etc. instead of their
16283 # values after options handling.  Logging --version etc. is OK.
16284 exec 5>>config.log
16285 {
16286   echo
16287   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16288 ## Running $as_me. ##
16289 _ASBOX
16290 } >&5
16291 cat >&5 <<_CSEOF
16292
16293 This file was extended by libjava $as_me version-unused, which was
16294 generated by GNU Autoconf 2.59.  Invocation command line was
16295
16296   CONFIG_FILES    = $CONFIG_FILES
16297   CONFIG_HEADERS  = $CONFIG_HEADERS
16298   CONFIG_LINKS    = $CONFIG_LINKS
16299   CONFIG_COMMANDS = $CONFIG_COMMANDS
16300   $ $0 $@
16301
16302 _CSEOF
16303 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16304 echo >&5
16305 _ACEOF
16306
16307 # Files that config.status was made for.
16308 if test -n "$ac_config_files"; then
16309   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16310 fi
16311
16312 if test -n "$ac_config_headers"; then
16313   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16314 fi
16315
16316 if test -n "$ac_config_links"; then
16317   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16318 fi
16319
16320 if test -n "$ac_config_commands"; then
16321   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16322 fi
16323
16324 cat >>$CONFIG_STATUS <<\_ACEOF
16325
16326 ac_cs_usage="\
16327 \`$as_me' instantiates files from templates according to the
16328 current configuration.
16329
16330 Usage: $0 [OPTIONS] [FILE]...
16331
16332   -h, --help       print this help, then exit
16333   -V, --version    print version number, then exit
16334   -q, --quiet      do not print progress messages
16335   -d, --debug      don't remove temporary files
16336       --recheck    update $as_me by reconfiguring in the same conditions
16337   --file=FILE[:TEMPLATE]
16338                    instantiate the configuration file FILE
16339   --header=FILE[:TEMPLATE]
16340                    instantiate the configuration header FILE
16341
16342 Configuration files:
16343 $config_files
16344
16345 Configuration headers:
16346 $config_headers
16347
16348 Configuration links:
16349 $config_links
16350
16351 Configuration commands:
16352 $config_commands
16353
16354 Report bugs to <bug-autoconf@gnu.org>."
16355 _ACEOF
16356
16357 cat >>$CONFIG_STATUS <<_ACEOF
16358 ac_cs_version="\\
16359 libjava config.status version-unused
16360 configured by $0, generated by GNU Autoconf 2.59,
16361   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16362
16363 Copyright (C) 2003 Free Software Foundation, Inc.
16364 This config.status script is free software; the Free Software Foundation
16365 gives unlimited permission to copy, distribute and modify it."
16366 srcdir=$srcdir
16367 INSTALL="$INSTALL"
16368 _ACEOF
16369
16370 cat >>$CONFIG_STATUS <<\_ACEOF
16371 # If no file are specified by the user, then we need to provide default
16372 # value.  By we need to know if files were specified by the user.
16373 ac_need_defaults=:
16374 while test $# != 0
16375 do
16376   case $1 in
16377   --*=*)
16378     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16379     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16380     ac_shift=:
16381     ;;
16382   -*)
16383     ac_option=$1
16384     ac_optarg=$2
16385     ac_shift=shift
16386     ;;
16387   *) # This is not an option, so the user has probably given explicit
16388      # arguments.
16389      ac_option=$1
16390      ac_need_defaults=false;;
16391   esac
16392
16393   case $ac_option in
16394   # Handling of the options.
16395 _ACEOF
16396 cat >>$CONFIG_STATUS <<\_ACEOF
16397   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16398     ac_cs_recheck=: ;;
16399   --version | --vers* | -V )
16400     echo "$ac_cs_version"; exit 0 ;;
16401   --he | --h)
16402     # Conflict between --help and --header
16403     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16404 Try \`$0 --help' for more information." >&5
16405 echo "$as_me: error: ambiguous option: $1
16406 Try \`$0 --help' for more information." >&2;}
16407    { (exit 1); exit 1; }; };;
16408   --help | --hel | -h )
16409     echo "$ac_cs_usage"; exit 0 ;;
16410   --debug | --d* | -d )
16411     debug=: ;;
16412   --file | --fil | --fi | --f )
16413     $ac_shift
16414     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16415     ac_need_defaults=false;;
16416   --header | --heade | --head | --hea )
16417     $ac_shift
16418     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16419     ac_need_defaults=false;;
16420   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16421   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16422     ac_cs_silent=: ;;
16423
16424   # This is an error.
16425   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16426 Try \`$0 --help' for more information." >&5
16427 echo "$as_me: error: unrecognized option: $1
16428 Try \`$0 --help' for more information." >&2;}
16429    { (exit 1); exit 1; }; } ;;
16430
16431   *) ac_config_targets="$ac_config_targets $1" ;;
16432
16433   esac
16434   shift
16435 done
16436
16437 ac_configure_extra_args=
16438
16439 if $ac_cs_silent; then
16440   exec 6>/dev/null
16441   ac_configure_extra_args="$ac_configure_extra_args --silent"
16442 fi
16443
16444 _ACEOF
16445 cat >>$CONFIG_STATUS <<_ACEOF
16446 if \$ac_cs_recheck; then
16447   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16448   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16449 fi
16450
16451 _ACEOF
16452
16453 cat >>$CONFIG_STATUS <<_ACEOF
16454 #
16455 # INIT-COMMANDS section.
16456 #
16457
16458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16459 srcdir=${srcdir}
16460 host=${host}
16461 target=${target}
16462 with_multisubdir=${with_multisubdir}
16463 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16464 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16465 libgcj_basedir=${libgcj_basedir}
16466 CC="${CC}"
16467 CXX="${CXX}"
16468 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16469
16470
16471 _ACEOF
16472
16473
16474
16475 cat >>$CONFIG_STATUS <<\_ACEOF
16476 for ac_config_target in $ac_config_targets
16477 do
16478   case "$ac_config_target" in
16479   # Handling of arguments.
16480   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16481   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16482   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16483   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16484   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16485   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16486   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16487   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16488   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16489   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16490   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16491   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16492   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16493   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16494   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16495   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16496   "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16497   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16498   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16499   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16500   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16501   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16502   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16503   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16504   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16505   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16506   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16507   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16508   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16509   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16510   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16511   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16512   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16514    { (exit 1); exit 1; }; };;
16515   esac
16516 done
16517
16518 # If the user did not use the arguments to specify the items to instantiate,
16519 # then the envvar interface is used.  Set only those that are not.
16520 # We use the long form for the default assignment because of an extremely
16521 # bizarre bug on SunOS 4.1.3.
16522 if $ac_need_defaults; then
16523   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16524   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16525   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16526   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16527 fi
16528
16529 # Have a temporary directory for convenience.  Make it in the build tree
16530 # simply because there is no reason to put it here, and in addition,
16531 # creating and moving files from /tmp can sometimes cause problems.
16532 # Create a temporary directory, and hook for its removal unless debugging.
16533 $debug ||
16534 {
16535   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16536   trap '{ (exit 1); exit 1; }' 1 2 13 15
16537 }
16538
16539 # Create a (secure) tmp directory for tmp files.
16540
16541 {
16542   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16543   test -n "$tmp" && test -d "$tmp"
16544 }  ||
16545 {
16546   tmp=./confstat$$-$RANDOM
16547   (umask 077 && mkdir $tmp)
16548 } ||
16549 {
16550    echo "$me: cannot create a temporary directory in ." >&2
16551    { (exit 1); exit 1; }
16552 }
16553
16554 _ACEOF
16555
16556 cat >>$CONFIG_STATUS <<_ACEOF
16557
16558 #
16559 # CONFIG_FILES section.
16560 #
16561
16562 # No need to generate the scripts if there are no CONFIG_FILES.
16563 # This happens for instance when ./config.status config.h
16564 if test -n "\$CONFIG_FILES"; then
16565   # Protect against being on the right side of a sed subst in config.status.
16566   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16567    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16568 s,@SHELL@,$SHELL,;t t
16569 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16570 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16571 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16572 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16573 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16574 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16575 s,@exec_prefix@,$exec_prefix,;t t
16576 s,@prefix@,$prefix,;t t
16577 s,@program_transform_name@,$program_transform_name,;t t
16578 s,@bindir@,$bindir,;t t
16579 s,@sbindir@,$sbindir,;t t
16580 s,@libexecdir@,$libexecdir,;t t
16581 s,@datadir@,$datadir,;t t
16582 s,@sysconfdir@,$sysconfdir,;t t
16583 s,@sharedstatedir@,$sharedstatedir,;t t
16584 s,@localstatedir@,$localstatedir,;t t
16585 s,@libdir@,$libdir,;t t
16586 s,@includedir@,$includedir,;t t
16587 s,@oldincludedir@,$oldincludedir,;t t
16588 s,@infodir@,$infodir,;t t
16589 s,@mandir@,$mandir,;t t
16590 s,@build_alias@,$build_alias,;t t
16591 s,@host_alias@,$host_alias,;t t
16592 s,@target_alias@,$target_alias,;t t
16593 s,@DEFS@,$DEFS,;t t
16594 s,@ECHO_C@,$ECHO_C,;t t
16595 s,@ECHO_N@,$ECHO_N,;t t
16596 s,@ECHO_T@,$ECHO_T,;t t
16597 s,@LIBS@,$LIBS,;t t
16598 s,@build@,$build,;t t
16599 s,@build_cpu@,$build_cpu,;t t
16600 s,@build_vendor@,$build_vendor,;t t
16601 s,@build_os@,$build_os,;t t
16602 s,@build_subdir@,$build_subdir,;t t
16603 s,@host_subdir@,$host_subdir,;t t
16604 s,@target_subdir@,$target_subdir,;t t
16605 s,@libgcj_basedir@,$libgcj_basedir,;t t
16606 s,@host@,$host,;t t
16607 s,@host_cpu@,$host_cpu,;t t
16608 s,@host_vendor@,$host_vendor,;t t
16609 s,@host_os@,$host_os,;t t
16610 s,@target@,$target,;t t
16611 s,@target_cpu@,$target_cpu,;t t
16612 s,@target_vendor@,$target_vendor,;t t
16613 s,@target_os@,$target_os,;t t
16614 s,@target_noncanonical@,$target_noncanonical,;t t
16615 s,@LN_S@,$LN_S,;t t
16616 s,@mkinstalldirs@,$mkinstalldirs,;t t
16617 s,@CC@,$CC,;t t
16618 s,@ac_ct_CC@,$ac_ct_CC,;t t
16619 s,@EXEEXT@,$EXEEXT,;t t
16620 s,@OBJEXT@,$OBJEXT,;t t
16621 s,@CXX@,$CXX,;t t
16622 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16623 s,@CFLAGS@,$CFLAGS,;t t
16624 s,@CXXFLAGS@,$CXXFLAGS,;t t
16625 s,@LDFLAGS@,$LDFLAGS,;t t
16626 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16627 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16628 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16629 s,@CYGPATH_W@,$CYGPATH_W,;t t
16630 s,@PACKAGE@,$PACKAGE,;t t
16631 s,@VERSION@,$VERSION,;t t
16632 s,@ACLOCAL@,$ACLOCAL,;t t
16633 s,@AUTOCONF@,$AUTOCONF,;t t
16634 s,@AUTOMAKE@,$AUTOMAKE,;t t
16635 s,@AUTOHEADER@,$AUTOHEADER,;t t
16636 s,@MAKEINFO@,$MAKEINFO,;t t
16637 s,@install_sh@,$install_sh,;t t
16638 s,@STRIP@,$STRIP,;t t
16639 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16640 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16641 s,@mkdir_p@,$mkdir_p,;t t
16642 s,@AWK@,$AWK,;t t
16643 s,@SET_MAKE@,$SET_MAKE,;t t
16644 s,@am__leading_dot@,$am__leading_dot,;t t
16645 s,@AMTAR@,$AMTAR,;t t
16646 s,@am__tar@,$am__tar,;t t
16647 s,@am__untar@,$am__untar,;t t
16648 s,@DEPDIR@,$DEPDIR,;t t
16649 s,@am__include@,$am__include,;t t
16650 s,@am__quote@,$am__quote,;t t
16651 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16652 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16653 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16654 s,@CCDEPMODE@,$CCDEPMODE,;t t
16655 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16656 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16657 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16658 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16659 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16660 s,@AS@,$AS,;t t
16661 s,@ac_ct_AS@,$ac_ct_AS,;t t
16662 s,@AR@,$AR,;t t
16663 s,@ac_ct_AR@,$ac_ct_AR,;t t
16664 s,@RANLIB@,$RANLIB,;t t
16665 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16666 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16667 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16668 s,@MAINT@,$MAINT,;t t
16669 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16670 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16671 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16672 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16673 s,@INCLTDL@,$INCLTDL,;t t
16674 s,@LIBLTDL@,$LIBLTDL,;t t
16675 s,@DIRLTDL@,$DIRLTDL,;t t
16676 s,@LIBTOOL@,$LIBTOOL,;t t
16677 s,@CXXCPP@,$CXXCPP,;t t
16678 s,@CPPFLAGS@,$CPPFLAGS,;t t
16679 s,@GCJ@,$GCJ,;t t
16680 s,@GCJFLAGS@,$GCJFLAGS,;t t
16681 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16682 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16683 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16684 s,@subdirs@,$subdirs,;t t
16685 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16686 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16687 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16688 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16689 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16690 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16691 s,@JAVA_HOME@,$JAVA_HOME,;t t
16692 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16693 s,@INTERPRETER@,$INTERPRETER,;t t
16694 s,@LIBFFI@,$LIBFFI,;t t
16695 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16696 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16697 s,@CPP@,$CPP,;t t
16698 s,@EGREP@,$EGREP,;t t
16699 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16700 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16701 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16702 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16703 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16704 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16705 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16706 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16707 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16708 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16709 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16710 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16711 s,@X_CFLAGS@,$X_CFLAGS,;t t
16712 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16713 s,@X_LIBS@,$X_LIBS,;t t
16714 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16715 s,@TOOLKIT@,$TOOLKIT,;t t
16716 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16717 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16718 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16719 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16720 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16721 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16722 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16723 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16724 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16725 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16726 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16727 s,@GCLIBS@,$GCLIBS,;t t
16728 s,@GCINCS@,$GCINCS,;t t
16729 s,@GCDEPS@,$GCDEPS,;t t
16730 s,@GCSPEC@,$GCSPEC,;t t
16731 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16732 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16733 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16734 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16735 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16736 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16737 s,@THREADLIBS@,$THREADLIBS,;t t
16738 s,@THREADINCS@,$THREADINCS,;t t
16739 s,@THREADDEPS@,$THREADDEPS,;t t
16740 s,@THREADSPEC@,$THREADSPEC,;t t
16741 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16742 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16743 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16744 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16745 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16746 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16747 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16748 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16749 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16750 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16751 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16752 s,@LIBICONV@,$LIBICONV,;t t
16753 s,@LTLIBICONV@,$LTLIBICONV,;t t
16754 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16755 s,@GTK_LIBS@,$GTK_LIBS,;t t
16756 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16757 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16758 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16759 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16760 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16761 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16762 s,@GCJH@,$GCJH,;t t
16763 s,@ZIP@,$ZIP,;t t
16764 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16765 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16766 s,@ZLIBS@,$ZLIBS,;t t
16767 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16768 s,@ZINCS@,$ZINCS,;t t
16769 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16770 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16771 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16772 s,@IEEESPEC@,$IEEESPEC,;t t
16773 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16774 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16775 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16776 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16777 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16778 s,@toolexecdir@,$toolexecdir,;t t
16779 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16780 s,@toolexeclibdir@,$toolexeclibdir,;t t
16781 s,@GCJVERSION@,$GCJVERSION,;t t
16782 s,@gxx_include_dir@,$gxx_include_dir,;t t
16783 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16784 s,@ALLOCA@,$ALLOCA,;t t
16785 s,@PERL@,$PERL,;t t
16786 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16787 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16788 s,@here@,$here,;t t
16789 s,@LIBOBJS@,$LIBOBJS,;t t
16790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16791 CEOF
16792
16793 _ACEOF
16794
16795   cat >>$CONFIG_STATUS <<\_ACEOF
16796   # Split the substitutions into bite-sized pieces for seds with
16797   # small command number limits, like on Digital OSF/1 and HP-UX.
16798   ac_max_sed_lines=48
16799   ac_sed_frag=1 # Number of current file.
16800   ac_beg=1 # First line for current file.
16801   ac_end=$ac_max_sed_lines # Line after last line for current file.
16802   ac_more_lines=:
16803   ac_sed_cmds=
16804   while $ac_more_lines; do
16805     if test $ac_beg -gt 1; then
16806       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16807     else
16808       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16809     fi
16810     if test ! -s $tmp/subs.frag; then
16811       ac_more_lines=false
16812     else
16813       # The purpose of the label and of the branching condition is to
16814       # speed up the sed processing (if there are no `@' at all, there
16815       # is no need to browse any of the substitutions).
16816       # These are the two extra sed commands mentioned above.
16817       (echo ':t
16818   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16819       if test -z "$ac_sed_cmds"; then
16820         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16821       else
16822         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16823       fi
16824       ac_sed_frag=`expr $ac_sed_frag + 1`
16825       ac_beg=$ac_end
16826       ac_end=`expr $ac_end + $ac_max_sed_lines`
16827     fi
16828   done
16829   if test -z "$ac_sed_cmds"; then
16830     ac_sed_cmds=cat
16831   fi
16832 fi # test -n "$CONFIG_FILES"
16833
16834 _ACEOF
16835 cat >>$CONFIG_STATUS <<\_ACEOF
16836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16837   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16838   case $ac_file in
16839   - | *:- | *:-:* ) # input from stdin
16840         cat >$tmp/stdin
16841         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16842         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16843   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16844         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16845   * )   ac_file_in=$ac_file.in ;;
16846   esac
16847
16848   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16849   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16851          X"$ac_file" : 'X\(//\)[^/]' \| \
16852          X"$ac_file" : 'X\(//\)$' \| \
16853          X"$ac_file" : 'X\(/\)' \| \
16854          .     : '\(.\)' 2>/dev/null ||
16855 echo X"$ac_file" |
16856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16857           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16858           /^X\(\/\/\)$/{ s//\1/; q; }
16859           /^X\(\/\).*/{ s//\1/; q; }
16860           s/.*/./; q'`
16861   { if $as_mkdir_p; then
16862     mkdir -p "$ac_dir"
16863   else
16864     as_dir="$ac_dir"
16865     as_dirs=
16866     while test ! -d "$as_dir"; do
16867       as_dirs="$as_dir $as_dirs"
16868       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16870          X"$as_dir" : 'X\(//\)[^/]' \| \
16871          X"$as_dir" : 'X\(//\)$' \| \
16872          X"$as_dir" : 'X\(/\)' \| \
16873          .     : '\(.\)' 2>/dev/null ||
16874 echo X"$as_dir" |
16875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16877           /^X\(\/\/\)$/{ s//\1/; q; }
16878           /^X\(\/\).*/{ s//\1/; q; }
16879           s/.*/./; q'`
16880     done
16881     test ! -n "$as_dirs" || mkdir $as_dirs
16882   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16884    { (exit 1); exit 1; }; }; }
16885
16886   ac_builddir=.
16887
16888 if test "$ac_dir" != .; then
16889   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16890   # A "../" for each directory in $ac_dir_suffix.
16891   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16892 else
16893   ac_dir_suffix= ac_top_builddir=
16894 fi
16895
16896 case $srcdir in
16897   .)  # No --srcdir option.  We are building in place.
16898     ac_srcdir=.
16899     if test -z "$ac_top_builddir"; then
16900        ac_top_srcdir=.
16901     else
16902        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16903     fi ;;
16904   [\\/]* | ?:[\\/]* )  # Absolute path.
16905     ac_srcdir=$srcdir$ac_dir_suffix;
16906     ac_top_srcdir=$srcdir ;;
16907   *) # Relative path.
16908     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16909     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16910 esac
16911
16912 # Do not use `cd foo && pwd` to compute absolute paths, because
16913 # the directories may not exist.
16914 case `pwd` in
16915 .) ac_abs_builddir="$ac_dir";;
16916 *)
16917   case "$ac_dir" in
16918   .) ac_abs_builddir=`pwd`;;
16919   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16920   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16921   esac;;
16922 esac
16923 case $ac_abs_builddir in
16924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16925 *)
16926   case ${ac_top_builddir}. in
16927   .) ac_abs_top_builddir=$ac_abs_builddir;;
16928   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16929   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16930   esac;;
16931 esac
16932 case $ac_abs_builddir in
16933 .) ac_abs_srcdir=$ac_srcdir;;
16934 *)
16935   case $ac_srcdir in
16936   .) ac_abs_srcdir=$ac_abs_builddir;;
16937   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16938   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16939   esac;;
16940 esac
16941 case $ac_abs_builddir in
16942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16943 *)
16944   case $ac_top_srcdir in
16945   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16946   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16947   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16948   esac;;
16949 esac
16950
16951
16952   case $INSTALL in
16953   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16954   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16955   esac
16956
16957   if test x"$ac_file" != x-; then
16958     { echo "$as_me:$LINENO: creating $ac_file" >&5
16959 echo "$as_me: creating $ac_file" >&6;}
16960     rm -f "$ac_file"
16961   fi
16962   # Let's still pretend it is `configure' which instantiates (i.e., don't
16963   # use $as_me), people would be surprised to read:
16964   #    /* config.h.  Generated by config.status.  */
16965   if test x"$ac_file" = x-; then
16966     configure_input=
16967   else
16968     configure_input="$ac_file.  "
16969   fi
16970   configure_input=$configure_input"Generated from `echo $ac_file_in |
16971                                      sed 's,.*/,,'` by configure."
16972
16973   # First look for the input files in the build tree, otherwise in the
16974   # src tree.
16975   ac_file_inputs=`IFS=:
16976     for f in $ac_file_in; do
16977       case $f in
16978       -) echo $tmp/stdin ;;
16979       [\\/$]*)
16980          # Absolute (can't be DOS-style, as IFS=:)
16981          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16982 echo "$as_me: error: cannot find input file: $f" >&2;}
16983    { (exit 1); exit 1; }; }
16984          echo "$f";;
16985       *) # Relative
16986          if test -f "$f"; then
16987            # Build tree
16988            echo "$f"
16989          elif test -f "$srcdir/$f"; then
16990            # Source tree
16991            echo "$srcdir/$f"
16992          else
16993            # /dev/null tree
16994            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16995 echo "$as_me: error: cannot find input file: $f" >&2;}
16996    { (exit 1); exit 1; }; }
16997          fi;;
16998       esac
16999     done` || { (exit 1); exit 1; }
17000 _ACEOF
17001 cat >>$CONFIG_STATUS <<_ACEOF
17002   sed "$ac_vpsub
17003 $extrasub
17004 _ACEOF
17005 cat >>$CONFIG_STATUS <<\_ACEOF
17006 :t
17007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17008 s,@configure_input@,$configure_input,;t t
17009 s,@srcdir@,$ac_srcdir,;t t
17010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17011 s,@top_srcdir@,$ac_top_srcdir,;t t
17012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17013 s,@builddir@,$ac_builddir,;t t
17014 s,@abs_builddir@,$ac_abs_builddir,;t t
17015 s,@top_builddir@,$ac_top_builddir,;t t
17016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17017 s,@INSTALL@,$ac_INSTALL,;t t
17018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17019   rm -f $tmp/stdin
17020   if test x"$ac_file" != x-; then
17021     mv $tmp/out $ac_file
17022   else
17023     cat $tmp/out
17024     rm -f $tmp/out
17025   fi
17026
17027 done
17028 _ACEOF
17029 cat >>$CONFIG_STATUS <<\_ACEOF
17030
17031 #
17032 # CONFIG_HEADER section.
17033 #
17034
17035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17037 #
17038 # ac_d sets the value in "#define NAME VALUE" lines.
17039 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17040 ac_dB='[         ].*$,\1#\2'
17041 ac_dC=' '
17042 ac_dD=',;t'
17043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17044 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17045 ac_uB='$,\1#\2define\3'
17046 ac_uC=' '
17047 ac_uD=',;t'
17048
17049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17050   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17051   case $ac_file in
17052   - | *:- | *:-:* ) # input from stdin
17053         cat >$tmp/stdin
17054         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17055         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17056   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17057         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17058   * )   ac_file_in=$ac_file.in ;;
17059   esac
17060
17061   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17062 echo "$as_me: creating $ac_file" >&6;}
17063
17064   # First look for the input files in the build tree, otherwise in the
17065   # src tree.
17066   ac_file_inputs=`IFS=:
17067     for f in $ac_file_in; do
17068       case $f in
17069       -) echo $tmp/stdin ;;
17070       [\\/$]*)
17071          # Absolute (can't be DOS-style, as IFS=:)
17072          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17073 echo "$as_me: error: cannot find input file: $f" >&2;}
17074    { (exit 1); exit 1; }; }
17075          # Do quote $f, to prevent DOS paths from being IFS'd.
17076          echo "$f";;
17077       *) # Relative
17078          if test -f "$f"; then
17079            # Build tree
17080            echo "$f"
17081          elif test -f "$srcdir/$f"; then
17082            # Source tree
17083            echo "$srcdir/$f"
17084          else
17085            # /dev/null tree
17086            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17087 echo "$as_me: error: cannot find input file: $f" >&2;}
17088    { (exit 1); exit 1; }; }
17089          fi;;
17090       esac
17091     done` || { (exit 1); exit 1; }
17092   # Remove the trailing spaces.
17093   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17094
17095 _ACEOF
17096
17097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17098 # `conftest.undefs', that substitutes the proper values into
17099 # config.h.in to produce config.h.  The first handles `#define'
17100 # templates, and the second `#undef' templates.
17101 # And first: Protect against being on the right side of a sed subst in
17102 # config.status.  Protect against being in an unquoted here document
17103 # in config.status.
17104 rm -f conftest.defines conftest.undefs
17105 # Using a here document instead of a string reduces the quoting nightmare.
17106 # Putting comments in sed scripts is not portable.
17107 #
17108 # `end' is used to avoid that the second main sed command (meant for
17109 # 0-ary CPP macros) applies to n-ary macro definitions.
17110 # See the Autoconf documentation for `clear'.
17111 cat >confdef2sed.sed <<\_ACEOF
17112 s/[\\&,]/\\&/g
17113 s,[\\$`],\\&,g
17114 t clear
17115 : clear
17116 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17117 t end
17118 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17119 : end
17120 _ACEOF
17121 # If some macros were called several times there might be several times
17122 # the same #defines, which is useless.  Nevertheless, we may not want to
17123 # sort them, since we want the *last* AC-DEFINE to be honored.
17124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17126 rm -f confdef2sed.sed
17127
17128 # This sed command replaces #undef with comments.  This is necessary, for
17129 # example, in the case of _POSIX_SOURCE, which is predefined and required
17130 # on some systems where configure will not decide to define it.
17131 cat >>conftest.undefs <<\_ACEOF
17132 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17133 _ACEOF
17134
17135 # Break up conftest.defines because some shells have a limit on the size
17136 # of here documents, and old seds have small limits too (100 cmds).
17137 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17138 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17139 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17140 echo '  :' >>$CONFIG_STATUS
17141 rm -f conftest.tail
17142 while grep . conftest.defines >/dev/null
17143 do
17144   # Write a limited-size here document to $tmp/defines.sed.
17145   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17146   # Speed up: don't consider the non `#define' lines.
17147   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17148   # Work around the forget-to-reset-the-flag bug.
17149   echo 't clr' >>$CONFIG_STATUS
17150   echo ': clr' >>$CONFIG_STATUS
17151   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17152   echo 'CEOF
17153   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17154   rm -f $tmp/in
17155   mv $tmp/out $tmp/in
17156 ' >>$CONFIG_STATUS
17157   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17158   rm -f conftest.defines
17159   mv conftest.tail conftest.defines
17160 done
17161 rm -f conftest.defines
17162 echo '  fi # grep' >>$CONFIG_STATUS
17163 echo >>$CONFIG_STATUS
17164
17165 # Break up conftest.undefs because some shells have a limit on the size
17166 # of here documents, and old seds have small limits too (100 cmds).
17167 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17168 rm -f conftest.tail
17169 while grep . conftest.undefs >/dev/null
17170 do
17171   # Write a limited-size here document to $tmp/undefs.sed.
17172   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17173   # Speed up: don't consider the non `#undef'
17174   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17175   # Work around the forget-to-reset-the-flag bug.
17176   echo 't clr' >>$CONFIG_STATUS
17177   echo ': clr' >>$CONFIG_STATUS
17178   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17179   echo 'CEOF
17180   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17181   rm -f $tmp/in
17182   mv $tmp/out $tmp/in
17183 ' >>$CONFIG_STATUS
17184   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17185   rm -f conftest.undefs
17186   mv conftest.tail conftest.undefs
17187 done
17188 rm -f conftest.undefs
17189
17190 cat >>$CONFIG_STATUS <<\_ACEOF
17191   # Let's still pretend it is `configure' which instantiates (i.e., don't
17192   # use $as_me), people would be surprised to read:
17193   #    /* config.h.  Generated by config.status.  */
17194   if test x"$ac_file" = x-; then
17195     echo "/* Generated by configure.  */" >$tmp/config.h
17196   else
17197     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17198   fi
17199   cat $tmp/in >>$tmp/config.h
17200   rm -f $tmp/in
17201   if test x"$ac_file" != x-; then
17202     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17203       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17204 echo "$as_me: $ac_file is unchanged" >&6;}
17205     else
17206       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17208          X"$ac_file" : 'X\(//\)[^/]' \| \
17209          X"$ac_file" : 'X\(//\)$' \| \
17210          X"$ac_file" : 'X\(/\)' \| \
17211          .     : '\(.\)' 2>/dev/null ||
17212 echo X"$ac_file" |
17213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17215           /^X\(\/\/\)$/{ s//\1/; q; }
17216           /^X\(\/\).*/{ s//\1/; q; }
17217           s/.*/./; q'`
17218       { if $as_mkdir_p; then
17219     mkdir -p "$ac_dir"
17220   else
17221     as_dir="$ac_dir"
17222     as_dirs=
17223     while test ! -d "$as_dir"; do
17224       as_dirs="$as_dir $as_dirs"
17225       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17227          X"$as_dir" : 'X\(//\)[^/]' \| \
17228          X"$as_dir" : 'X\(//\)$' \| \
17229          X"$as_dir" : 'X\(/\)' \| \
17230          .     : '\(.\)' 2>/dev/null ||
17231 echo X"$as_dir" |
17232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17233           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17234           /^X\(\/\/\)$/{ s//\1/; q; }
17235           /^X\(\/\).*/{ s//\1/; q; }
17236           s/.*/./; q'`
17237     done
17238     test ! -n "$as_dirs" || mkdir $as_dirs
17239   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17241    { (exit 1); exit 1; }; }; }
17242
17243       rm -f $ac_file
17244       mv $tmp/config.h $ac_file
17245     fi
17246   else
17247     cat $tmp/config.h
17248     rm -f $tmp/config.h
17249   fi
17250 # Compute $ac_file's index in $config_headers.
17251 _am_stamp_count=1
17252 for _am_header in $config_headers :; do
17253   case $_am_header in
17254     $ac_file | $ac_file:* )
17255       break ;;
17256     * )
17257       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17258   esac
17259 done
17260 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17261 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17262          X$ac_file : 'X\(//\)[^/]' \| \
17263          X$ac_file : 'X\(//\)$' \| \
17264          X$ac_file : 'X\(/\)' \| \
17265          .     : '\(.\)' 2>/dev/null ||
17266 echo X$ac_file |
17267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17269           /^X\(\/\/\)$/{ s//\1/; q; }
17270           /^X\(\/\).*/{ s//\1/; q; }
17271           s/.*/./; q'`/stamp-h$_am_stamp_count
17272 done
17273 _ACEOF
17274 cat >>$CONFIG_STATUS <<\_ACEOF
17275
17276 #
17277 # CONFIG_LINKS section.
17278 #
17279
17280 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17281   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17282   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17283
17284   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17285 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17286
17287   if test ! -r $srcdir/$ac_source; then
17288     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17289 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17290    { (exit 1); exit 1; }; }
17291   fi
17292   rm -f $ac_dest
17293
17294   # Make relative symlinks.
17295   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17296 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17297          X"$ac_dest" : 'X\(//\)[^/]' \| \
17298          X"$ac_dest" : 'X\(//\)$' \| \
17299          X"$ac_dest" : 'X\(/\)' \| \
17300          .     : '\(.\)' 2>/dev/null ||
17301 echo X"$ac_dest" |
17302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17304           /^X\(\/\/\)$/{ s//\1/; q; }
17305           /^X\(\/\).*/{ s//\1/; q; }
17306           s/.*/./; q'`
17307   { if $as_mkdir_p; then
17308     mkdir -p "$ac_dest_dir"
17309   else
17310     as_dir="$ac_dest_dir"
17311     as_dirs=
17312     while test ! -d "$as_dir"; do
17313       as_dirs="$as_dir $as_dirs"
17314       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17316          X"$as_dir" : 'X\(//\)[^/]' \| \
17317          X"$as_dir" : 'X\(//\)$' \| \
17318          X"$as_dir" : 'X\(/\)' \| \
17319          .     : '\(.\)' 2>/dev/null ||
17320 echo X"$as_dir" |
17321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17323           /^X\(\/\/\)$/{ s//\1/; q; }
17324           /^X\(\/\).*/{ s//\1/; q; }
17325           s/.*/./; q'`
17326     done
17327     test ! -n "$as_dirs" || mkdir $as_dirs
17328   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17329 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17330    { (exit 1); exit 1; }; }; }
17331
17332   ac_builddir=.
17333
17334 if test "$ac_dest_dir" != .; then
17335   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17336   # A "../" for each directory in $ac_dir_suffix.
17337   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17338 else
17339   ac_dir_suffix= ac_top_builddir=
17340 fi
17341
17342 case $srcdir in
17343   .)  # No --srcdir option.  We are building in place.
17344     ac_srcdir=.
17345     if test -z "$ac_top_builddir"; then
17346        ac_top_srcdir=.
17347     else
17348        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17349     fi ;;
17350   [\\/]* | ?:[\\/]* )  # Absolute path.
17351     ac_srcdir=$srcdir$ac_dir_suffix;
17352     ac_top_srcdir=$srcdir ;;
17353   *) # Relative path.
17354     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17355     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17356 esac
17357
17358 # Do not use `cd foo && pwd` to compute absolute paths, because
17359 # the directories may not exist.
17360 case `pwd` in
17361 .) ac_abs_builddir="$ac_dest_dir";;
17362 *)
17363   case "$ac_dest_dir" in
17364   .) ac_abs_builddir=`pwd`;;
17365   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17366   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17367   esac;;
17368 esac
17369 case $ac_abs_builddir in
17370 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17371 *)
17372   case ${ac_top_builddir}. in
17373   .) ac_abs_top_builddir=$ac_abs_builddir;;
17374   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17375   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17376   esac;;
17377 esac
17378 case $ac_abs_builddir in
17379 .) ac_abs_srcdir=$ac_srcdir;;
17380 *)
17381   case $ac_srcdir in
17382   .) ac_abs_srcdir=$ac_abs_builddir;;
17383   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17384   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17385   esac;;
17386 esac
17387 case $ac_abs_builddir in
17388 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17389 *)
17390   case $ac_top_srcdir in
17391   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17392   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17393   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17394   esac;;
17395 esac
17396
17397
17398   case $srcdir in
17399   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17400       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17401   esac
17402
17403   # Try a symlink, then a hard link, then a copy.
17404   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17405     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17406     cp -p $srcdir/$ac_source $ac_dest ||
17407     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17408 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17409    { (exit 1); exit 1; }; }
17410 done
17411 _ACEOF
17412 cat >>$CONFIG_STATUS <<\_ACEOF
17413
17414 #
17415 # CONFIG_COMMANDS section.
17416 #
17417 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17418   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17419   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17420   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17421 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17422          X"$ac_dest" : 'X\(//\)[^/]' \| \
17423          X"$ac_dest" : 'X\(//\)$' \| \
17424          X"$ac_dest" : 'X\(/\)' \| \
17425          .     : '\(.\)' 2>/dev/null ||
17426 echo X"$ac_dest" |
17427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17428           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17429           /^X\(\/\/\)$/{ s//\1/; q; }
17430           /^X\(\/\).*/{ s//\1/; q; }
17431           s/.*/./; q'`
17432   { if $as_mkdir_p; then
17433     mkdir -p "$ac_dir"
17434   else
17435     as_dir="$ac_dir"
17436     as_dirs=
17437     while test ! -d "$as_dir"; do
17438       as_dirs="$as_dir $as_dirs"
17439       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17441          X"$as_dir" : 'X\(//\)[^/]' \| \
17442          X"$as_dir" : 'X\(//\)$' \| \
17443          X"$as_dir" : 'X\(/\)' \| \
17444          .     : '\(.\)' 2>/dev/null ||
17445 echo X"$as_dir" |
17446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17447           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17448           /^X\(\/\/\)$/{ s//\1/; q; }
17449           /^X\(\/\).*/{ s//\1/; q; }
17450           s/.*/./; q'`
17451     done
17452     test ! -n "$as_dirs" || mkdir $as_dirs
17453   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17454 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17455    { (exit 1); exit 1; }; }; }
17456
17457   ac_builddir=.
17458
17459 if test "$ac_dir" != .; then
17460   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17461   # A "../" for each directory in $ac_dir_suffix.
17462   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17463 else
17464   ac_dir_suffix= ac_top_builddir=
17465 fi
17466
17467 case $srcdir in
17468   .)  # No --srcdir option.  We are building in place.
17469     ac_srcdir=.
17470     if test -z "$ac_top_builddir"; then
17471        ac_top_srcdir=.
17472     else
17473        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17474     fi ;;
17475   [\\/]* | ?:[\\/]* )  # Absolute path.
17476     ac_srcdir=$srcdir$ac_dir_suffix;
17477     ac_top_srcdir=$srcdir ;;
17478   *) # Relative path.
17479     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17480     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17481 esac
17482
17483 # Do not use `cd foo && pwd` to compute absolute paths, because
17484 # the directories may not exist.
17485 case `pwd` in
17486 .) ac_abs_builddir="$ac_dir";;
17487 *)
17488   case "$ac_dir" in
17489   .) ac_abs_builddir=`pwd`;;
17490   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17491   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17492   esac;;
17493 esac
17494 case $ac_abs_builddir in
17495 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17496 *)
17497   case ${ac_top_builddir}. in
17498   .) ac_abs_top_builddir=$ac_abs_builddir;;
17499   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17500   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17501   esac;;
17502 esac
17503 case $ac_abs_builddir in
17504 .) ac_abs_srcdir=$ac_srcdir;;
17505 *)
17506   case $ac_srcdir in
17507   .) ac_abs_srcdir=$ac_abs_builddir;;
17508   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17509   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17510   esac;;
17511 esac
17512 case $ac_abs_builddir in
17513 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17514 *)
17515   case $ac_top_srcdir in
17516   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17517   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17518   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17519   esac;;
17520 esac
17521
17522
17523   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17524 echo "$as_me: executing $ac_dest commands" >&6;}
17525   case $ac_dest in
17526     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17527   # Strip MF so we end up with the name of the file.
17528   mf=`echo "$mf" | sed -e 's/:.*$//'`
17529   # Check whether this is an Automake generated Makefile or not.
17530   # We used to match only the files named `Makefile.in', but
17531   # some people rename them; so instead we look at the file content.
17532   # Grep'ing the first line is not enough: some people post-process
17533   # each Makefile.in and add a new line on top of each file to say so.
17534   # So let's grep whole file.
17535   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17536     dirpart=`(dirname "$mf") 2>/dev/null ||
17537 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17538          X"$mf" : 'X\(//\)[^/]' \| \
17539          X"$mf" : 'X\(//\)$' \| \
17540          X"$mf" : 'X\(/\)' \| \
17541          .     : '\(.\)' 2>/dev/null ||
17542 echo X"$mf" |
17543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17544           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17545           /^X\(\/\/\)$/{ s//\1/; q; }
17546           /^X\(\/\).*/{ s//\1/; q; }
17547           s/.*/./; q'`
17548   else
17549     continue
17550   fi
17551   # Extract the definition of DEPDIR, am__include, and am__quote
17552   # from the Makefile without running `make'.
17553   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17554   test -z "$DEPDIR" && continue
17555   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17556   test -z "am__include" && continue
17557   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17558   # When using ansi2knr, U may be empty or an underscore; expand it
17559   U=`sed -n 's/^U = //p' < "$mf"`
17560   # Find all dependency output files, they are included files with
17561   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17562   # simplest approach to changing $(DEPDIR) to its actual value in the
17563   # expansion.
17564   for file in `sed -n "
17565     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17566        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17567     # Make sure the directory exists.
17568     test -f "$dirpart/$file" && continue
17569     fdir=`(dirname "$file") 2>/dev/null ||
17570 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17571          X"$file" : 'X\(//\)[^/]' \| \
17572          X"$file" : 'X\(//\)$' \| \
17573          X"$file" : 'X\(/\)' \| \
17574          .     : '\(.\)' 2>/dev/null ||
17575 echo X"$file" |
17576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17578           /^X\(\/\/\)$/{ s//\1/; q; }
17579           /^X\(\/\).*/{ s//\1/; q; }
17580           s/.*/./; q'`
17581     { if $as_mkdir_p; then
17582     mkdir -p $dirpart/$fdir
17583   else
17584     as_dir=$dirpart/$fdir
17585     as_dirs=
17586     while test ! -d "$as_dir"; do
17587       as_dirs="$as_dir $as_dirs"
17588       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590          X"$as_dir" : 'X\(//\)[^/]' \| \
17591          X"$as_dir" : 'X\(//\)$' \| \
17592          X"$as_dir" : 'X\(/\)' \| \
17593          .     : '\(.\)' 2>/dev/null ||
17594 echo X"$as_dir" |
17595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17597           /^X\(\/\/\)$/{ s//\1/; q; }
17598           /^X\(\/\).*/{ s//\1/; q; }
17599           s/.*/./; q'`
17600     done
17601     test ! -n "$as_dirs" || mkdir $as_dirs
17602   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17603 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17604    { (exit 1); exit 1; }; }; }
17605
17606     # echo "creating $dirpart/$file"
17607     echo '# dummy' > "$dirpart/$file"
17608   done
17609 done
17610  ;;
17611     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17612 case " $CONFIG_FILES " in
17613  *" Makefile "*)
17614    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17615    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17616    ;;
17617 esac
17618 for ac_multi_file in $CONFIG_FILES; do
17619   case $ac_multi_file in
17620   */Makefile)
17621     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17622   esac
17623 done
17624  ;;
17625   esac
17626 done
17627 _ACEOF
17628
17629 cat >>$CONFIG_STATUS <<\_ACEOF
17630
17631 { (exit 0); exit 0; }
17632 _ACEOF
17633 chmod +x $CONFIG_STATUS
17634 ac_clean_files=$ac_clean_files_save
17635
17636
17637 # configure is writing to config.log, and then calls config.status.
17638 # config.status does its own redirection, appending to config.log.
17639 # Unfortunately, on DOS this fails, as config.log is still kept open
17640 # by configure, so config.status won't be able to write to it; its
17641 # output is simply discarded.  So we exec the FD to /dev/null,
17642 # effectively closing config.log, so it can be properly (re)opened and
17643 # appended to by config.status.  When coming back to configure, we
17644 # need to make the FD available again.
17645 if test "$no_create" != yes; then
17646   ac_cs_success=:
17647   ac_config_status_args=
17648   test "$silent" = yes &&
17649     ac_config_status_args="$ac_config_status_args --quiet"
17650   exec 5>/dev/null
17651   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17652   exec 5>>config.log
17653   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17654   # would make configure fail if this is the last instruction.
17655   $ac_cs_success || { (exit 1); exit 1; }
17656 fi
17657
17658 #
17659 # CONFIG_SUBDIRS section.
17660 #
17661 if test "$no_recursion" != yes; then
17662
17663   # Remove --cache-file and --srcdir arguments so they do not pile up.
17664   ac_sub_configure_args=
17665   ac_prev=
17666   for ac_arg in $ac_configure_args; do
17667     if test -n "$ac_prev"; then
17668       ac_prev=
17669       continue
17670     fi
17671     case $ac_arg in
17672     -cache-file | --cache-file | --cache-fil | --cache-fi \
17673     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17674       ac_prev=cache_file ;;
17675     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17676     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17677     | --c=*)
17678       ;;
17679     --config-cache | -C)
17680       ;;
17681     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17682       ac_prev=srcdir ;;
17683     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17684       ;;
17685     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17686       ac_prev=prefix ;;
17687     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17688       ;;
17689     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17690     esac
17691   done
17692
17693   # Always prepend --prefix to ensure using the same prefix
17694   # in subdir configurations.
17695   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17696
17697   ac_popdir=`pwd`
17698   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17699
17700     # Do not complain, so a configure script can configure whichever
17701     # parts of a large source tree are present.
17702     test -d $srcdir/$ac_dir || continue
17703
17704     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17705 echo "$as_me: configuring in $ac_dir" >&6;}
17706     { if $as_mkdir_p; then
17707     mkdir -p "$ac_dir"
17708   else
17709     as_dir="$ac_dir"
17710     as_dirs=
17711     while test ! -d "$as_dir"; do
17712       as_dirs="$as_dir $as_dirs"
17713       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17715          X"$as_dir" : 'X\(//\)[^/]' \| \
17716          X"$as_dir" : 'X\(//\)$' \| \
17717          X"$as_dir" : 'X\(/\)' \| \
17718          .     : '\(.\)' 2>/dev/null ||
17719 echo X"$as_dir" |
17720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17722           /^X\(\/\/\)$/{ s//\1/; q; }
17723           /^X\(\/\).*/{ s//\1/; q; }
17724           s/.*/./; q'`
17725     done
17726     test ! -n "$as_dirs" || mkdir $as_dirs
17727   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17729    { (exit 1); exit 1; }; }; }
17730
17731     ac_builddir=.
17732
17733 if test "$ac_dir" != .; then
17734   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17735   # A "../" for each directory in $ac_dir_suffix.
17736   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17737 else
17738   ac_dir_suffix= ac_top_builddir=
17739 fi
17740
17741 case $srcdir in
17742   .)  # No --srcdir option.  We are building in place.
17743     ac_srcdir=.
17744     if test -z "$ac_top_builddir"; then
17745        ac_top_srcdir=.
17746     else
17747        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17748     fi ;;
17749   [\\/]* | ?:[\\/]* )  # Absolute path.
17750     ac_srcdir=$srcdir$ac_dir_suffix;
17751     ac_top_srcdir=$srcdir ;;
17752   *) # Relative path.
17753     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17754     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17755 esac
17756
17757 # Do not use `cd foo && pwd` to compute absolute paths, because
17758 # the directories may not exist.
17759 case `pwd` in
17760 .) ac_abs_builddir="$ac_dir";;
17761 *)
17762   case "$ac_dir" in
17763   .) ac_abs_builddir=`pwd`;;
17764   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17765   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17766   esac;;
17767 esac
17768 case $ac_abs_builddir in
17769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17770 *)
17771   case ${ac_top_builddir}. in
17772   .) ac_abs_top_builddir=$ac_abs_builddir;;
17773   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17774   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17775   esac;;
17776 esac
17777 case $ac_abs_builddir in
17778 .) ac_abs_srcdir=$ac_srcdir;;
17779 *)
17780   case $ac_srcdir in
17781   .) ac_abs_srcdir=$ac_abs_builddir;;
17782   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17783   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17784   esac;;
17785 esac
17786 case $ac_abs_builddir in
17787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17788 *)
17789   case $ac_top_srcdir in
17790   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17791   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17792   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17793   esac;;
17794 esac
17795
17796
17797     cd $ac_dir
17798
17799     # Check for guested configure; otherwise get Cygnus style configure.
17800     if test -f $ac_srcdir/configure.gnu; then
17801       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17802     elif test -f $ac_srcdir/configure; then
17803       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17804     elif test -f $ac_srcdir/configure.in; then
17805       ac_sub_configure=$ac_configure
17806     else
17807       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17808 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17809       ac_sub_configure=
17810     fi
17811
17812     # The recursion is here.
17813     if test -n "$ac_sub_configure"; then
17814       # Make the cache file name correct relative to the subdirectory.
17815       case $cache_file in
17816       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17817       *) # Relative path.
17818         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17819       esac
17820
17821       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17822 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17823       # The eval makes quoting arguments work.
17824       eval $ac_sub_configure $ac_sub_configure_args \
17825            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17826         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17827 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17828    { (exit 1); exit 1; }; }
17829     fi
17830
17831     cd $ac_popdir
17832   done
17833 fi
17834