OSDN Git Service

a8afc704214ffcacb509fb391909886f12337091
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE QT_AWT_TRUE QT_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC 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 CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --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-libgcj-debug   enable runtime debugging code
861   --enable-java-awt       list of AWT peer implementations to be built
862   --enable-shared=PKGS  build shared libraries default=yes
863   --enable-static=PKGS  build static libraries default=yes
864   --enable-fast-install=PKGS  optimize for fast installation default=yes
865   --disable-libtool-lock  avoid locking (might break parallel builds)
866   --disable-getenv-properties
867                           don't set system properties from GCJ_PROPERTIES
868   --enable-hash-synchronization
869                           use global hash table for monitor locks
870   --enable-gc-debug       include full support for pointer backtracing etc.
871   --enable-interpreter    enable interpreter
872   --enable-sjlj-exceptions
873                           force use of builtin_setjmp for exceptions
874   --disable-java-net      disable java.net
875   --disable-jvmpi         disable JVMPI support
876   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
877   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
878   --disable-rpath         do not hardcode runtime library paths
879   _g_switchUse thread-local storage
880                           [default=yes]
881
882 Optional Packages:
883   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
884   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
885   --with-target-subdir=SUBDIR
886                           configure in a subdirectory
887   --with-cross-host=HOST  configure with a cross compiler from HOST
888   --with-newlib           configure with newlib
889   --with-gnu-ld           assume the C compiler uses GNU ld default=no
890   --with-pic              try to use only PIC/non-PIC objects default=use both
891   --with-java-home=DIRECTORY
892                           value of java.home system property
893   --with-win32-nlsapi=ansi or unicows or unicode
894                           native MinGW libgcj Win32 OS API (default is ansi)
895   --without-libffi        don't use libffi
896   --with-ecos             enable runtime eCos target support
897   --with-system-zlib      use installed libz
898   --with-x                use the X Window System
899   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
900   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
901
902 Some influential environment variables:
903   CC          C compiler command
904   CFLAGS      C compiler flags
905   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
906               nonstandard directory <lib dir>
907   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
908               headers in a nonstandard directory <include dir>
909   CXX         C++ compiler command
910   CXXFLAGS    C++ compiler flags
911   CXXCPP      C++ preprocessor
912   CPP         C preprocessor
913
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
916
917 _ACEOF
918 fi
919
920 if test "$ac_init_help" = "recursive"; then
921   # If there are subdirs, report their specific --help.
922   ac_popdir=`pwd`
923   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924     test -d $ac_dir || continue
925     ac_builddir=.
926
927 if test "$ac_dir" != .; then
928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929   # A "../" for each directory in $ac_dir_suffix.
930   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932   ac_dir_suffix= ac_top_builddir=
933 fi
934
935 case $srcdir in
936   .)  # No --srcdir option.  We are building in place.
937     ac_srcdir=.
938     if test -z "$ac_top_builddir"; then
939        ac_top_srcdir=.
940     else
941        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942     fi ;;
943   [\\/]* | ?:[\\/]* )  # Absolute path.
944     ac_srcdir=$srcdir$ac_dir_suffix;
945     ac_top_srcdir=$srcdir ;;
946   *) # Relative path.
947     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948     ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
950
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
955 *)
956   case "$ac_dir" in
957   .) ac_abs_builddir=`pwd`;;
958   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959   *) ac_abs_builddir=`pwd`/"$ac_dir";;
960   esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *)
965   case ${ac_top_builddir}. in
966   .) ac_abs_top_builddir=$ac_abs_builddir;;
967   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969   esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
973 *)
974   case $ac_srcdir in
975   .) ac_abs_srcdir=$ac_abs_builddir;;
976   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978   esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *)
983   case $ac_top_srcdir in
984   .) ac_abs_top_srcdir=$ac_abs_builddir;;
985   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987   esac;;
988 esac
989
990     cd $ac_dir
991     # Check for guested configure; otherwise get Cygnus style configure.
992     if test -f $ac_srcdir/configure.gnu; then
993       echo
994       $SHELL $ac_srcdir/configure.gnu  --help=recursive
995     elif test -f $ac_srcdir/configure; then
996       echo
997       $SHELL $ac_srcdir/configure  --help=recursive
998     elif test -f $ac_srcdir/configure.ac ||
999            test -f $ac_srcdir/configure.in; then
1000       echo
1001       $ac_configure --help
1002     else
1003       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004     fi
1005     cd $ac_popdir
1006   done
1007 fi
1008
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011   cat <<\_ACEOF
1012 libjava configure version-unused
1013 generated by GNU Autoconf 2.59
1014
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019   exit 0
1020 fi
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1025
1026 It was created by libjava $as_me version-unused, which was
1027 generated by GNU Autoconf 2.59.  Invocation command line was
1028
1029   $ $0 $@
1030
1031 _ACEOF
1032 {
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1037
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1046
1047 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1048 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1051 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1052 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1053 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1054
1055 _ASUNAME
1056
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1059 do
1060   IFS=$as_save_IFS
1061   test -z "$as_dir" && as_dir=.
1062   echo "PATH: $as_dir"
1063 done
1064
1065 } >&5
1066
1067 cat >&5 <<_ACEOF
1068
1069
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1073
1074 _ACEOF
1075
1076
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1088 do
1089   for ac_arg
1090   do
1091     case $ac_arg in
1092     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094     | -silent | --silent | --silen | --sile | --sil)
1095       continue ;;
1096     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098     esac
1099     case $ac_pass in
1100     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101     2)
1102       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103       if test $ac_must_keep_next = true; then
1104         ac_must_keep_next=false # Got value, back to normal.
1105       else
1106         case $ac_arg in
1107           *=* | --config-cache | -C | -disable-* | --disable-* \
1108           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110           | -with-* | --with-* | -without-* | --without-* | --x)
1111             case "$ac_configure_args0 " in
1112               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113             esac
1114             ;;
1115           -* ) ac_must_keep_next=true ;;
1116         esac
1117       fi
1118       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119       # Get rid of the leading space.
1120       ac_sep=" "
1121       ;;
1122     esac
1123   done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log.  We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134   # Save into config.log some information that might help in debugging.
1135   {
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143     echo
1144     # The following way of writing the cache mishandles newlines in values,
1145 {
1146   (set) 2>&1 |
1147     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148     *ac_space=\ *)
1149       sed -n \
1150         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152       ;;
1153     *)
1154       sed -n \
1155         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156       ;;
1157     esac;
1158 }
1159     echo
1160
1161     cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166     echo
1167     for ac_var in $ac_subst_vars
1168     do
1169       eval ac_val=$`echo $ac_var`
1170       echo "$ac_var='"'"'$ac_val'"'"'"
1171     done | sort
1172     echo
1173
1174     if test -n "$ac_subst_files"; then
1175       cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180       echo
1181       for ac_var in $ac_subst_files
1182       do
1183         eval ac_val=$`echo $ac_var`
1184         echo "$ac_var='"'"'$ac_val'"'"'"
1185       done | sort
1186       echo
1187     fi
1188
1189     if test -s confdefs.h; then
1190       cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195       echo
1196       sed "/^$/d" confdefs.h | sort
1197       echo
1198     fi
1199     test "$ac_signal" != 0 &&
1200       echo "$as_me: caught signal $ac_signal"
1201     echo "$as_me: exit $exit_status"
1202   } >&5
1203   rm -f core *.core &&
1204   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205     exit $exit_status
1206      ' 0
1207 for ac_signal in 1 2 13 15; do
1208   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1211
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1216
1217 # Predefined preprocessor variables.
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1242
1243
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247   if test "x$prefix" != xNONE; then
1248     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249   else
1250     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251   fi
1252 fi
1253 for ac_site_file in $CONFIG_SITE; do
1254   if test -r "$ac_site_file"; then
1255     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257     sed 's/^/| /' "$ac_site_file" >&5
1258     . "$ac_site_file"
1259   fi
1260 done
1261
1262 if test -r "$cache_file"; then
1263   # Some versions of bash will fail to source /dev/null (special
1264   # files actually), so we avoid doing that.
1265   if test -f "$cache_file"; then
1266     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1267 echo "$as_me: loading cache $cache_file" >&6;}
1268     case $cache_file in
1269       [\\/]* | ?:[\\/]* ) . $cache_file;;
1270       *)                      . ./$cache_file;;
1271     esac
1272   fi
1273 else
1274   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1275 echo "$as_me: creating cache $cache_file" >&6;}
1276   >$cache_file
1277 fi
1278
1279 # Check that the precious variables saved in the cache have kept the same
1280 # value.
1281 ac_cache_corrupted=false
1282 for ac_var in `(set) 2>&1 |
1283                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1284   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1285   eval ac_new_set=\$ac_env_${ac_var}_set
1286   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1287   eval ac_new_val="\$ac_env_${ac_var}_value"
1288   case $ac_old_set,$ac_new_set in
1289     set,)
1290       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1292       ac_cache_corrupted=: ;;
1293     ,set)
1294       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1295 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1296       ac_cache_corrupted=: ;;
1297     ,);;
1298     *)
1299       if test "x$ac_old_val" != "x$ac_new_val"; then
1300         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1303 echo "$as_me:   former value:  $ac_old_val" >&2;}
1304         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1305 echo "$as_me:   current value: $ac_new_val" >&2;}
1306         ac_cache_corrupted=:
1307       fi;;
1308   esac
1309   # Pass precious variables to config.status.
1310   if test "$ac_new_set" = set; then
1311     case $ac_new_val in
1312     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1314     *) ac_arg=$ac_var=$ac_new_val ;;
1315     esac
1316     case " $ac_configure_args " in
1317       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1318       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1319     esac
1320   fi
1321 done
1322 if $ac_cache_corrupted; then
1323   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1324 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1325   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1326 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1327    { (exit 1); exit 1; }; }
1328 fi
1329
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365 ac_aux_dir=
1366 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1367   if test -f $ac_dir/install-sh; then
1368     ac_aux_dir=$ac_dir
1369     ac_install_sh="$ac_aux_dir/install-sh -c"
1370     break
1371   elif test -f $ac_dir/install.sh; then
1372     ac_aux_dir=$ac_dir
1373     ac_install_sh="$ac_aux_dir/install.sh -c"
1374     break
1375   elif test -f $ac_dir/shtool; then
1376     ac_aux_dir=$ac_dir
1377     ac_install_sh="$ac_aux_dir/shtool install -c"
1378     break
1379   fi
1380 done
1381 if test -z "$ac_aux_dir"; then
1382   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1383 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1384    { (exit 1); exit 1; }; }
1385 fi
1386 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1387 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1388 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1389
1390 # Make sure we can run config.sub.
1391 $ac_config_sub sun4 >/dev/null 2>&1 ||
1392   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1393 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1394    { (exit 1); exit 1; }; }
1395
1396 echo "$as_me:$LINENO: checking build system type" >&5
1397 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1398 if test "${ac_cv_build+set}" = set; then
1399   echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401   ac_cv_build_alias=$build_alias
1402 test -z "$ac_cv_build_alias" &&
1403   ac_cv_build_alias=`$ac_config_guess`
1404 test -z "$ac_cv_build_alias" &&
1405   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1406 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1407    { (exit 1); exit 1; }; }
1408 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1409   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1411    { (exit 1); exit 1; }; }
1412
1413 fi
1414 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1415 echo "${ECHO_T}$ac_cv_build" >&6
1416 build=$ac_cv_build
1417 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420
1421
1422  case ${build_alias} in
1423   "") build_noncanonical=${build} ;;
1424   *) build_noncanonical=${build_alias} ;;
1425 esac
1426
1427  case ${host_alias} in
1428   "") host_noncanonical=${build_noncanonical} ;;
1429   *) host_noncanonical=${host_alias} ;;
1430 esac
1431
1432  case ${target_alias} in
1433   "") target_noncanonical=${host_noncanonical} ;;
1434   *) target_noncanonical=${target_alias} ;;
1435 esac
1436
1437   # Prefix 'build-' so this never conflicts with target_subdir.
1438 build_subdir="build-${build_noncanonical}"
1439 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1440 if ( test $srcdir = . && test -d gcc ) \
1441    || test -d $srcdir/../host-${host_noncanonical}; then
1442   host_subdir="host-${host_noncanonical}"
1443 else
1444   host_subdir=.
1445 fi
1446 # No prefix.
1447 target_subdir=${target_noncanonical}
1448
1449
1450 # We use these options to decide which functions to include.
1451
1452 # Check whether --with-target-subdir or --without-target-subdir was given.
1453 if test "${with_target_subdir+set}" = set; then
1454   withval="$with_target_subdir"
1455
1456 fi;
1457
1458 # We may get other options which we don't document:
1459 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1460
1461 # When building with srcdir == objdir, links to the source files will
1462 # be created in directories within the target_subdir.  We have to
1463 # adjust toplevel_srcdir accordingly, so that configure finds
1464 # install-sh and other auxiliary files that live in the top-level
1465 # source directory.
1466 if test "${srcdir}" = "."; then
1467   if test -z "${with_target_subdir}"; then
1468     toprel=".."
1469   else
1470     if test "${with_target_subdir}" != "."; then
1471       toprel="${with_multisrctop}../.."
1472     else
1473       toprel="${with_multisrctop}.."
1474     fi
1475   fi
1476 else
1477   toprel=".."
1478 fi
1479
1480 libgcj_basedir=$srcdir/$toprel/./libjava
1481
1482
1483 echo "$as_me:$LINENO: checking host system type" >&5
1484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1485 if test "${ac_cv_host+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   ac_cv_host_alias=$host_alias
1489 test -z "$ac_cv_host_alias" &&
1490   ac_cv_host_alias=$ac_cv_build_alias
1491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1492   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1494    { (exit 1); exit 1; }; }
1495
1496 fi
1497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1498 echo "${ECHO_T}$ac_cv_host" >&6
1499 host=$ac_cv_host
1500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503
1504
1505 echo "$as_me:$LINENO: checking target system type" >&5
1506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1507 if test "${ac_cv_target+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   ac_cv_target_alias=$target_alias
1511 test "x$ac_cv_target_alias" = "x" &&
1512   ac_cv_target_alias=$ac_cv_host_alias
1513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1514   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1516    { (exit 1); exit 1; }; }
1517
1518 fi
1519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1520 echo "${ECHO_T}$ac_cv_target" >&6
1521 target=$ac_cv_target
1522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525
1526
1527 # The aliases save the names the user supplied, while $host etc.
1528 # will get canonicalized.
1529 test -n "$target_alias" &&
1530   test "$program_prefix$program_suffix$program_transform_name" = \
1531     NONENONEs,x,x, &&
1532   program_prefix=${target_alias}-
1533  case ${build_alias} in
1534   "") build_noncanonical=${build} ;;
1535   *) build_noncanonical=${build_alias} ;;
1536 esac
1537
1538  case ${target_alias} in
1539   "") target_noncanonical=${host_noncanonical} ;;
1540   *) target_noncanonical=${target_alias} ;;
1541 esac
1542
1543
1544
1545
1546 # This works around the fact that libtool configuration may change LD
1547 # for this particular configuration, but some shells, instead of
1548 # keeping the changes in LD private, export them just because LD is
1549 # exported.
1550 ORIGINAL_LD_FOR_MULTILIBS=$LD
1551
1552 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1553 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1554 LN_S=$as_ln_s
1555 if test "$LN_S" = "ln -s"; then
1556   echo "$as_me:$LINENO: result: yes" >&5
1557 echo "${ECHO_T}yes" >&6
1558 else
1559   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1560 echo "${ECHO_T}no, using $LN_S" >&6
1561 fi
1562
1563
1564 # This works around an automake problem.
1565 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1566
1567
1568
1569 # Check whether --with-cross-host or --without-cross-host was given.
1570 if test "${with_cross_host+set}" = set; then
1571   withval="$with_cross_host"
1572
1573 fi;
1574
1575
1576 # Check whether --with-newlib or --without-newlib was given.
1577 if test "${with_newlib+set}" = set; then
1578   withval="$with_newlib"
1579
1580 fi;
1581
1582 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1583 if test "${enable_version_specific_runtime_libs+set}" = set; then
1584   enableval="$enable_version_specific_runtime_libs"
1585   case "$enableval" in
1586       yes) version_specific_libs=yes ;;
1587       no)  version_specific_libs=no ;;
1588       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1589 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1590    { (exit 1); exit 1; }; };;
1591      esac
1592 else
1593   version_specific_libs=no
1594
1595 fi;
1596
1597 # Default to --enable-multilib
1598 # Check whether --enable-multilib or --disable-multilib was given.
1599 if test "${enable_multilib+set}" = set; then
1600   enableval="$enable_multilib"
1601   case "${enableval}" in
1602   yes) multilib=yes ;;
1603   no)  multilib=no ;;
1604   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1605 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1606    { (exit 1); exit 1; }; } ;;
1607  esac
1608 else
1609   multilib=yes
1610 fi;
1611 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612
1613
1614 # (1) We use an abnormal CXX (without library references), so we
1615 # must cache it under a different name.
1616 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1617 # the non-multilib-adjusted value will be used in multilibs.
1618 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1619 # (4) As another side effect, automake doesn't automatically include them
1620 # in Makefile.in.
1621 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1622 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1623 # used in later tests.  This may not be necessary in libjava; I don't know.
1624
1625
1626
1627 save_CXXFLAGS="$CXXFLAGS"
1628 CXXFLAGS="$CXXFLAGS -fno-builtin"
1629 ac_ext=c
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654     break 2
1655   fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 CC=$ac_cv_prog_CC
1662 if test -n "$CC"; then
1663   echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1665 else
1666   echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670 fi
1671 if test -z "$ac_cv_prog_CC"; then
1672   ac_ct_CC=$CC
1673   # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678   echo $ECHO_N "(cached) $ECHO_C" >&6
1679 else
1680   if test -n "$ac_ct_CC"; then
1681   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1682 else
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
1687   test -z "$as_dir" && as_dir=.
1688   for ac_exec_ext in '' $ac_executable_extensions; do
1689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690     ac_cv_prog_ac_ct_CC="gcc"
1691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1692     break 2
1693   fi
1694 done
1695 done
1696
1697 fi
1698 fi
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1703 else
1704   echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1706 fi
1707
1708   CC=$ac_ct_CC
1709 else
1710   CC="$ac_cv_prog_CC"
1711 fi
1712
1713 if test -z "$CC"; then
1714   if test -n "$ac_tool_prefix"; then
1715   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720   echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722   if test -n "$CC"; then
1723   ac_cv_prog_CC="$CC" # Let the user override the test.
1724 else
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 for as_dir in $PATH
1727 do
1728   IFS=$as_save_IFS
1729   test -z "$as_dir" && as_dir=.
1730   for ac_exec_ext in '' $ac_executable_extensions; do
1731   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732     ac_cv_prog_CC="${ac_tool_prefix}cc"
1733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734     break 2
1735   fi
1736 done
1737 done
1738
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$ac_cv_prog_CC"; then
1752   ac_ct_CC=$CC
1753   # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$ac_ct_CC"; then
1761   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_ac_ct_CC="cc"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788   CC=$ac_ct_CC
1789 else
1790   CC="$ac_cv_prog_CC"
1791 fi
1792
1793 fi
1794 if test -z "$CC"; then
1795   # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$CC"; then
1803   ac_cv_prog_CC="$CC" # Let the user override the test.
1804 else
1805   ac_prog_rejected=no
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814        ac_prog_rejected=yes
1815        continue
1816      fi
1817     ac_cv_prog_CC="cc"
1818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819     break 2
1820   fi
1821 done
1822 done
1823
1824 if test $ac_prog_rejected = yes; then
1825   # We found a bogon in the path, so make sure we never use it.
1826   set dummy $ac_cv_prog_CC
1827   shift
1828   if test $# != 0; then
1829     # We chose a different compiler from the bogus one.
1830     # However, it has the same basename, so the bogon will be chosen
1831     # first if we set CC to just the basename; use the full file name.
1832     shift
1833     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1834   fi
1835 fi
1836 fi
1837 fi
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840   echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843   echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1845 fi
1846
1847 fi
1848 if test -z "$CC"; then
1849   if test -n "$ac_tool_prefix"; then
1850   for ac_prog in cl
1851   do
1852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$CC"; then
1860   ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876 fi
1877 fi
1878 CC=$ac_cv_prog_CC
1879 if test -n "$CC"; then
1880   echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1882 else
1883   echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1885 fi
1886
1887     test -n "$CC" && break
1888   done
1889 fi
1890 if test -z "$CC"; then
1891   ac_ct_CC=$CC
1892   for ac_prog in cl
1893 do
1894   # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899   echo $ECHO_N "(cached) $ECHO_C" >&6
1900 else
1901   if test -n "$ac_ct_CC"; then
1902   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1903 else
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 for as_dir in $PATH
1906 do
1907   IFS=$as_save_IFS
1908   test -z "$as_dir" && as_dir=.
1909   for ac_exec_ext in '' $ac_executable_extensions; do
1910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911     ac_cv_prog_ac_ct_CC="$ac_prog"
1912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1913     break 2
1914   fi
1915 done
1916 done
1917
1918 fi
1919 fi
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1924 else
1925   echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1927 fi
1928
1929   test -n "$ac_ct_CC" && break
1930 done
1931
1932   CC=$ac_ct_CC
1933 fi
1934
1935 fi
1936
1937
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942    { (exit 1); exit 1; }; }
1943
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946      "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949   (eval $ac_compiler --version </dev/null >&5) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954   (eval $ac_compiler -v </dev/null >&5) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959   (eval $ac_compiler -V </dev/null >&5) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }
1963
1964 cat >conftest.$ac_ext <<_ACEOF
1965 /* confdefs.h.  */
1966 _ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h.  */
1970
1971 int
1972 main ()
1973 {
1974
1975   ;
1976   return 0;
1977 }
1978 _ACEOF
1979 # FIXME: Cleanup?
1980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1981   (eval $ac_link) 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }; then
1985   gcc_no_link=no
1986 else
1987   gcc_no_link=yes
1988 fi
1989
1990 if test x$gcc_no_link = xyes; then
1991   # Setting cross_compile will disable run tests; it will
1992   # also disable AC_CHECK_FILE but that's generally
1993   # correct if we can't link.
1994   cross_compiling=yes
1995   EXEEXT=
1996 else
1997   cat >conftest.$ac_ext <<_ACEOF
1998 /* confdefs.h.  */
1999 _ACEOF
2000 cat confdefs.h >>conftest.$ac_ext
2001 cat >>conftest.$ac_ext <<_ACEOF
2002 /* end confdefs.h.  */
2003
2004 int
2005 main ()
2006 {
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 ac_clean_files_save=$ac_clean_files
2013 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2014 # Try to create an executable without -o first, disregard a.out.
2015 # It will help us diagnose broken compilers, and finding out an intuition
2016 # of exeext.
2017 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2018 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2019 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021   (eval $ac_link_default) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; then
2025   # Find the output, starting from the most likely.  This scheme is
2026 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # resort.
2028
2029 # Be careful to initialize this variable, since it used to be cached.
2030 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031 ac_cv_exeext=
2032 # b.out is created by i960 compilers.
2033 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034 do
2035   test -f "$ac_file" || continue
2036   case $ac_file in
2037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038         ;;
2039     conftest.$ac_ext )
2040         # This is the source file.
2041         ;;
2042     [ab].out )
2043         # We found the default executable, but exeext='' is most
2044         # certainly right.
2045         break;;
2046     *.* )
2047         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048         # FIXME: I believe we export ac_cv_exeext for Libtool,
2049         # but it would be cool to find out if it's true.  Does anybody
2050         # maintain Libtool? --akim.
2051         export ac_cv_exeext
2052         break;;
2053     * )
2054         break;;
2055   esac
2056 done
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&5
2063 echo "$as_me: error: C compiler cannot create executables
2064 See \`config.log' for more details." >&2;}
2065    { (exit 77); exit 77; }; }
2066 fi
2067
2068 ac_exeext=$ac_cv_exeext
2069 echo "$as_me:$LINENO: result: $ac_file" >&5
2070 echo "${ECHO_T}$ac_file" >&6
2071
2072 # Check the compiler produces executables we can run.  If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077 # If not cross compiling, check that we can run a simple program.
2078 if test "$cross_compiling" != yes; then
2079   if { ac_try='./$ac_file'
2080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081   (eval $ac_try) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); }; }; then
2085     cross_compiling=no
2086   else
2087     if test "$cross_compiling" = maybe; then
2088         cross_compiling=yes
2089     else
2090         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091 If you meant to cross compile, use \`--host'.
2092 See \`config.log' for more details." >&5
2093 echo "$as_me: error: cannot run C compiled programs.
2094 If you meant to cross compile, use \`--host'.
2095 See \`config.log' for more details." >&2;}
2096    { (exit 1); exit 1; }; }
2097     fi
2098   fi
2099 fi
2100 echo "$as_me:$LINENO: result: yes" >&5
2101 echo "${ECHO_T}yes" >&6
2102
2103 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2104 ac_clean_files=$ac_clean_files_save
2105 # Check the compiler produces executables we can run.  If not, either
2106 # the compiler is broken, or we cross compile.
2107 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110 echo "${ECHO_T}$cross_compiling" >&6
2111
2112 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115   (eval $ac_link) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }; then
2119   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2121 # work properly (i.e., refer to `conftest.exe'), while it won't with
2122 # `rm'.
2123 for ac_file in conftest.exe conftest conftest.*; do
2124   test -f "$ac_file" || continue
2125   case $ac_file in
2126     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2127     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2128           export ac_cv_exeext
2129           break;;
2130     * ) break;;
2131   esac
2132 done
2133 else
2134   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137 See \`config.log' for more details." >&2;}
2138    { (exit 1); exit 1; }; }
2139 fi
2140
2141 rm -f conftest$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143 echo "${ECHO_T}$ac_cv_exeext" >&6
2144
2145 rm -f conftest.$ac_ext
2146 EXEEXT=$ac_cv_exeext
2147 ac_exeext=$EXEEXT
2148 fi
2149 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2150 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2151 if test "${ac_cv_objext+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   cat >conftest.$ac_ext <<_ACEOF
2155 /* confdefs.h.  */
2156 _ACEOF
2157 cat confdefs.h >>conftest.$ac_ext
2158 cat >>conftest.$ac_ext <<_ACEOF
2159 /* end confdefs.h.  */
2160
2161 int
2162 main ()
2163 {
2164
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 rm -f conftest.o conftest.obj
2170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171   (eval $ac_compile) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; then
2175   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176   case $ac_file in
2177     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2178     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179        break;;
2180   esac
2181 done
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189 See \`config.log' for more details." >&2;}
2190    { (exit 1); exit 1; }; }
2191 fi
2192
2193 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194 fi
2195 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196 echo "${ECHO_T}$ac_cv_objext" >&6
2197 OBJEXT=$ac_cv_objext
2198 ac_objext=$OBJEXT
2199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h.  */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h.  */
2210
2211 int
2212 main ()
2213 {
2214 #ifndef __GNUC__
2215        choke me
2216 #endif
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224   (eval $ac_compile) 2>conftest.er1
2225   ac_status=$?
2226   grep -v '^ *+' conftest.er1 >conftest.err
2227   rm -f conftest.er1
2228   cat conftest.err >&5
2229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230   (exit $ac_status); } &&
2231          { ac_try='test -z "$ac_c_werror_flag"
2232                          || test ! -s conftest.err'
2233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234   (eval $ac_try) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; } &&
2238          { ac_try='test -s conftest.$ac_objext'
2239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240   (eval $ac_try) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; }; then
2244   ac_compiler_gnu=yes
2245 else
2246   echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249 ac_compiler_gnu=no
2250 fi
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2260 CFLAGS="-g"
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272
2273 int
2274 main ()
2275 {
2276
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>conftest.er1
2284   ac_status=$?
2285   grep -v '^ *+' conftest.er1 >conftest.err
2286   rm -f conftest.er1
2287   cat conftest.err >&5
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); } &&
2290          { ac_try='test -z "$ac_c_werror_flag"
2291                          || test ! -s conftest.err'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; } &&
2297          { ac_try='test -s conftest.$ac_objext'
2298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299   (eval $ac_try) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); }; }; then
2303   ac_cv_prog_cc_g=yes
2304 else
2305   echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2307
2308 ac_cv_prog_cc_g=no
2309 fi
2310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 fi
2312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2314 if test "$ac_test_CFLAGS" = set; then
2315   CFLAGS=$ac_save_CFLAGS
2316 elif test $ac_cv_prog_cc_g = yes; then
2317   if test "$GCC" = yes; then
2318     CFLAGS="-g -O2"
2319   else
2320     CFLAGS="-g"
2321   fi
2322 else
2323   if test "$GCC" = yes; then
2324     CFLAGS="-O2"
2325   else
2326     CFLAGS=
2327   fi
2328 fi
2329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2332   echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334   ac_cv_prog_cc_stdc=no
2335 ac_save_CC=$CC
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350      char **p;
2351      int i;
2352 {
2353   return p[i];
2354 }
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2356 {
2357   char *s;
2358   va_list v;
2359   va_start (v,p);
2360   s = g (p, va_arg (v,int));
2361   va_end (v);
2362   return s;
2363 }
2364
2365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2366    function prototypes and stuff, but not '\xHH' hex character constants.
2367    These don't provoke an error unfortunately, instead are silently treated
2368    as 'x'.  The following induces an error, until -std1 is added to get
2369    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2370    array size at least.  It's necessary to write '\x00'==0 to get something
2371    that's true only with -std1.  */
2372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2373
2374 int test (int i, double x);
2375 struct s1 {int (*f) (int a);};
2376 struct s2 {int (*f) (double a);};
2377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2378 int argc;
2379 char **argv;
2380 int
2381 main ()
2382 {
2383 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 # Don't try gcc -ansi; that turns off useful extensions and
2389 # breaks some systems' header files.
2390 # AIX                   -qlanglvl=ansi
2391 # Ultrix and OSF/1      -std1
2392 # HP-UX 10.20 and later -Ae
2393 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2394 # SVR4                  -Xc -D__EXTENSIONS__
2395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2396 do
2397   CC="$ac_save_CC $ac_arg"
2398   rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400   (eval $ac_compile) 2>conftest.er1
2401   ac_status=$?
2402   grep -v '^ *+' conftest.er1 >conftest.err
2403   rm -f conftest.er1
2404   cat conftest.err >&5
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -z "$ac_c_werror_flag"
2408                          || test ! -s conftest.err'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   ac_cv_prog_cc_stdc=$ac_arg
2421 break
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 fi
2427 rm -f conftest.err conftest.$ac_objext
2428 done
2429 rm -f conftest.$ac_ext conftest.$ac_objext
2430 CC=$ac_save_CC
2431
2432 fi
2433
2434 case "x$ac_cv_prog_cc_stdc" in
2435   x|xno)
2436     echo "$as_me:$LINENO: result: none needed" >&5
2437 echo "${ECHO_T}none needed" >&6 ;;
2438   *)
2439     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2441     CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 esac
2443
2444 # Some people use a C++ compiler to compile C.  Since we use `exit',
2445 # in C++ we need to declare it.  In case someone uses the same compiler
2446 # for both compiling C and C++ we need to have the C++ compiler decide
2447 # the declaration of exit, since it's the most demanding environment.
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #ifndef __cplusplus
2450   choke me
2451 #endif
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455   (eval $ac_compile) 2>conftest.er1
2456   ac_status=$?
2457   grep -v '^ *+' conftest.er1 >conftest.err
2458   rm -f conftest.er1
2459   cat conftest.err >&5
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); } &&
2462          { ac_try='test -z "$ac_c_werror_flag"
2463                          || test ! -s conftest.err'
2464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465   (eval $ac_try) 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; } &&
2469          { ac_try='test -s conftest.$ac_objext'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; }; then
2475   for ac_declaration in \
2476    '' \
2477    'extern "C" void std::exit (int) throw (); using std::exit;' \
2478    'extern "C" void std::exit (int); using std::exit;' \
2479    'extern "C" void exit (int) throw ();' \
2480    'extern "C" void exit (int);' \
2481    'void exit (int);'
2482 do
2483   cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h.  */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h.  */
2489 $ac_declaration
2490 #include <stdlib.h>
2491 int
2492 main ()
2493 {
2494 exit (42);
2495   ;
2496   return 0;
2497 }
2498 _ACEOF
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501   (eval $ac_compile) 2>conftest.er1
2502   ac_status=$?
2503   grep -v '^ *+' conftest.er1 >conftest.err
2504   rm -f conftest.er1
2505   cat conftest.err >&5
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); } &&
2508          { ac_try='test -z "$ac_c_werror_flag"
2509                          || test ! -s conftest.err'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; } &&
2515          { ac_try='test -s conftest.$ac_objext'
2516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517   (eval $ac_try) 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; }; then
2521   :
2522 else
2523   echo "$as_me: failed program was:" >&5
2524 sed 's/^/| /' conftest.$ac_ext >&5
2525
2526 continue
2527 fi
2528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2529   cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h.  */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h.  */
2535 $ac_declaration
2536 int
2537 main ()
2538 {
2539 exit (42);
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546   (eval $ac_compile) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   break
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 fi
2572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574 rm -f conftest*
2575 if test -n "$ac_declaration"; then
2576   echo '#ifdef __cplusplus' >>confdefs.h
2577   echo $ac_declaration      >>confdefs.h
2578   echo '#endif'             >>confdefs.h
2579 fi
2580
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 fi
2586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592
2593 ac_ext=cc
2594 ac_cpp='$CXXCPP $CPPFLAGS'
2595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2598 if test -n "$ac_tool_prefix"; then
2599   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2600   do
2601     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2603 echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2606   echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608   if test -n "$CXX"; then
2609   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614   IFS=$as_save_IFS
2615   test -z "$as_dir" && as_dir=.
2616   for ac_exec_ext in '' $ac_executable_extensions; do
2617   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620     break 2
2621   fi
2622 done
2623 done
2624
2625 fi
2626 fi
2627 CXX=$glibcxx_cv_prog_CXX
2628 if test -n "$CXX"; then
2629   echo "$as_me:$LINENO: result: $CXX" >&5
2630 echo "${ECHO_T}$CXX" >&6
2631 else
2632   echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6
2634 fi
2635
2636     test -n "$CXX" && break
2637   done
2638 fi
2639 if test -z "$CXX"; then
2640   ac_ct_CXX=$CXX
2641   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2642 do
2643   # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   if test -n "$ac_ct_CXX"; then
2651   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658   for ac_exec_ext in '' $ac_executable_extensions; do
2659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660     ac_cv_prog_ac_ct_CXX="$ac_prog"
2661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665 done
2666
2667 fi
2668 fi
2669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2670 if test -n "$ac_ct_CXX"; then
2671   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2672 echo "${ECHO_T}$ac_ct_CXX" >&6
2673 else
2674   echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6
2676 fi
2677
2678   test -n "$ac_ct_CXX" && break
2679 done
2680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2681
2682   CXX=$ac_ct_CXX
2683 fi
2684
2685
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO:" \
2688      "checking for C++ compiler version" >&5
2689 ac_compiler=`set X $ac_compile; echo $2`
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2691   (eval $ac_compiler --version </dev/null >&5) 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2696   (eval $ac_compiler -v </dev/null >&5) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }
2700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2701   (eval $ac_compiler -V </dev/null >&5) 2>&5
2702   ac_status=$?
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); }
2705
2706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2709   echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717
2718 int
2719 main ()
2720 {
2721 #ifndef __GNUC__
2722        choke me
2723 #endif
2724
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_cxx_werror_flag"
2739                          || test ! -s conftest.err'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   ac_compiler_gnu=yes
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 ac_compiler_gnu=no
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760
2761 fi
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2767 CXXFLAGS="-g"
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771   echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773   cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h.  */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h.  */
2779
2780 int
2781 main ()
2782 {
2783
2784   ;
2785   return 0;
2786 }
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790   (eval $ac_compile) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } &&
2797          { ac_try='test -z "$ac_cxx_werror_flag"
2798                          || test ! -s conftest.err'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; } &&
2804          { ac_try='test -s conftest.$ac_objext'
2805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806   (eval $ac_try) 2>&5
2807   ac_status=$?
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); }; }; then
2810   ac_cv_prog_cxx_g=yes
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815 ac_cv_prog_cxx_g=no
2816 fi
2817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 fi
2819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2821 if test "$ac_test_CXXFLAGS" = set; then
2822   CXXFLAGS=$ac_save_CXXFLAGS
2823 elif test $ac_cv_prog_cxx_g = yes; then
2824   if test "$GXX" = yes; then
2825     CXXFLAGS="-g -O2"
2826   else
2827     CXXFLAGS="-g"
2828   fi
2829 else
2830   if test "$GXX" = yes; then
2831     CXXFLAGS="-O2"
2832   else
2833     CXXFLAGS=
2834   fi
2835 fi
2836 for ac_declaration in \
2837    '' \
2838    'extern "C" void std::exit (int) throw (); using std::exit;' \
2839    'extern "C" void std::exit (int); using std::exit;' \
2840    'extern "C" void exit (int) throw ();' \
2841    'extern "C" void exit (int);' \
2842    'void exit (int);'
2843 do
2844   cat >conftest.$ac_ext <<_ACEOF
2845 /* confdefs.h.  */
2846 _ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h.  */
2850 $ac_declaration
2851 #include <stdlib.h>
2852 int
2853 main ()
2854 {
2855 exit (42);
2856   ;
2857   return 0;
2858 }
2859 _ACEOF
2860 rm -f conftest.$ac_objext
2861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862   (eval $ac_compile) 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } &&
2869          { ac_try='test -z "$ac_cxx_werror_flag"
2870                          || test ! -s conftest.err'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; } &&
2876          { ac_try='test -s conftest.$ac_objext'
2877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; }; then
2882   :
2883 else
2884   echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887 continue
2888 fi
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890   cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 $ac_declaration
2897 int
2898 main ()
2899 {
2900 exit (42);
2901   ;
2902   return 0;
2903 }
2904 _ACEOF
2905 rm -f conftest.$ac_objext
2906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907   (eval $ac_compile) 2>conftest.er1
2908   ac_status=$?
2909   grep -v '^ *+' conftest.er1 >conftest.err
2910   rm -f conftest.er1
2911   cat conftest.err >&5
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); } &&
2914          { ac_try='test -z "$ac_cxx_werror_flag"
2915                          || test ! -s conftest.err'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; } &&
2921          { ac_try='test -s conftest.$ac_objext'
2922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923   (eval $ac_try) 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   break
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932 fi
2933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 done
2935 rm -f conftest*
2936 if test -n "$ac_declaration"; then
2937   echo '#ifdef __cplusplus' >>confdefs.h
2938   echo $ac_declaration      >>confdefs.h
2939   echo '#endif'             >>confdefs.h
2940 fi
2941
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
2948 CXXFLAGS="$save_CXXFLAGS"
2949
2950
2951
2952
2953
2954 am__api_version="1.9"
2955 # Find a good install program.  We prefer a C program (faster),
2956 # so one script is as good as another.  But avoid the broken or
2957 # incompatible versions:
2958 # SysV /etc/install, /usr/sbin/install
2959 # SunOS /usr/etc/install
2960 # IRIX /sbin/install
2961 # AIX /bin/install
2962 # AmigaOS /C/install, which installs bootblocks on floppy discs
2963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2966 # OS/2's system install, which has a completely different semantic
2967 # ./install, which can be erroneously created by make from ./install.sh.
2968 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2970 if test -z "$INSTALL"; then
2971 if test "${ac_cv_path_install+set}" = set; then
2972   echo $ECHO_N "(cached) $ECHO_C" >&6
2973 else
2974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979   # Account for people who put trailing slashes in PATH elements.
2980 case $as_dir/ in
2981   ./ | .// | /cC/* | \
2982   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2983   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984   /usr/ucb/* ) ;;
2985   *)
2986     # OSF1 and SCO ODT 3.0 have their own names for install.
2987     # Don't use installbsd from OSF since it installs stuff as root
2988     # by default.
2989     for ac_prog in ginstall scoinst install; do
2990       for ac_exec_ext in '' $ac_executable_extensions; do
2991         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2992           if test $ac_prog = install &&
2993             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2994             # AIX install.  It has an incompatible calling convention.
2995             :
2996           elif test $ac_prog = install &&
2997             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2998             # program-specific install script used by HP pwplus--don't use.
2999             :
3000           else
3001             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002             break 3
3003           fi
3004         fi
3005       done
3006     done
3007     ;;
3008 esac
3009 done
3010
3011
3012 fi
3013   if test "${ac_cv_path_install+set}" = set; then
3014     INSTALL=$ac_cv_path_install
3015   else
3016     # As a last resort, use the slow shell script.  We don't cache a
3017     # path for INSTALL within a source directory, because that will
3018     # break other packages using the cache if that directory is
3019     # removed, or if the path is relative.
3020     INSTALL=$ac_install_sh
3021   fi
3022 fi
3023 echo "$as_me:$LINENO: result: $INSTALL" >&5
3024 echo "${ECHO_T}$INSTALL" >&6
3025
3026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3027 # It thinks the first close brace ends the variable substitution.
3028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029
3030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031
3032 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033
3034 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3035 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 # Just in case
3037 sleep 1
3038 echo timestamp > conftest.file
3039 # Do `set' in a subshell so we don't clobber the current shell's
3040 # arguments.  Must try -L first in case configure is actually a
3041 # symlink; some systems play weird games with the mod time of symlinks
3042 # (eg FreeBSD returns the mod time of the symlink's containing
3043 # directory).
3044 if (
3045    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3046    if test "$*" = "X"; then
3047       # -L didn't work.
3048       set X `ls -t $srcdir/configure conftest.file`
3049    fi
3050    rm -f conftest.file
3051    if test "$*" != "X $srcdir/configure conftest.file" \
3052       && test "$*" != "X conftest.file $srcdir/configure"; then
3053
3054       # If neither matched, then we have a broken ls.  This can happen
3055       # if, for instance, CONFIG_SHELL is bash and it inherits a
3056       # broken ls alias from the environment.  This has actually
3057       # happened.  Such a system could not be considered "sane".
3058       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3059 alias in your environment" >&5
3060 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3061 alias in your environment" >&2;}
3062    { (exit 1); exit 1; }; }
3063    fi
3064
3065    test "$2" = conftest.file
3066    )
3067 then
3068    # Ok.
3069    :
3070 else
3071    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3072 Check your system clock" >&5
3073 echo "$as_me: error: newly created file is older than distributed files!
3074 Check your system clock" >&2;}
3075    { (exit 1); exit 1; }; }
3076 fi
3077 echo "$as_me:$LINENO: result: yes" >&5
3078 echo "${ECHO_T}yes" >&6
3079 test "$program_prefix" != NONE &&
3080   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3081 # Use a double $ so make ignores it.
3082 test "$program_suffix" != NONE &&
3083   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3084 # Double any \ or $.  echo might interpret backslashes.
3085 # By default was `s,x,x', remove it if useless.
3086 cat <<\_ACEOF >conftest.sed
3087 s/[\\$]/&&/g;s/;s,x,x,$//
3088 _ACEOF
3089 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 rm conftest.sed
3091
3092 # expand $ac_aux_dir to an absolute path
3093 am_aux_dir=`cd $ac_aux_dir && pwd`
3094
3095 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3096 # Use eval to expand $SHELL
3097 if eval "$MISSING --run true"; then
3098   am_missing_run="$MISSING --run "
3099 else
3100   am_missing_run=
3101   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3102 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 fi
3104
3105 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3106   # We used to keeping the `.' as first argument, in order to
3107   # allow $(mkdir_p) to be used without argument.  As in
3108   #   $(mkdir_p) $(somedir)
3109   # where $(somedir) is conditionally defined.  However this is wrong
3110   # for two reasons:
3111   #  1. if the package is installed by a user who cannot write `.'
3112   #     make install will fail,
3113   #  2. the above comment should most certainly read
3114   #     $(mkdir_p) $(DESTDIR)$(somedir)
3115   #     so it does not work when $(somedir) is undefined and
3116   #     $(DESTDIR) is not.
3117   #  To support the latter case, we have to write
3118   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3119   #  so the `.' trick is pointless.
3120   mkdir_p='mkdir -p --'
3121 else
3122   # On NextStep and OpenStep, the `mkdir' command does not
3123   # recognize any option.  It will interpret all options as
3124   # directories to create, and then abort because `.' already
3125   # exists.
3126   for d in ./-p ./--version;
3127   do
3128     test -d $d && rmdir $d
3129   done
3130   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3131   if test -f "$ac_aux_dir/mkinstalldirs"; then
3132     mkdir_p='$(mkinstalldirs)'
3133   else
3134     mkdir_p='$(install_sh) -d'
3135   fi
3136 fi
3137
3138 for ac_prog in gawk mawk nawk awk
3139 do
3140   # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy $ac_prog; ac_word=$2
3142 echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144 if test "${ac_cv_prog_AWK+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   if test -n "$AWK"; then
3148   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155   for ac_exec_ext in '' $ac_executable_extensions; do
3156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157     ac_cv_prog_AWK="$ac_prog"
3158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162 done
3163
3164 fi
3165 fi
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168   echo "$as_me:$LINENO: result: $AWK" >&5
3169 echo "${ECHO_T}$AWK" >&6
3170 else
3171   echo "$as_me:$LINENO: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3173 fi
3174
3175   test -n "$AWK" && break
3176 done
3177
3178 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   cat >conftest.make <<\_ACEOF
3185 all:
3186         @echo 'ac_maketemp="$(MAKE)"'
3187 _ACEOF
3188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3189 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3190 if test -n "$ac_maketemp"; then
3191   eval ac_cv_prog_make_${ac_make}_set=yes
3192 else
3193   eval ac_cv_prog_make_${ac_make}_set=no
3194 fi
3195 rm -f conftest.make
3196 fi
3197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3198   echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6
3200   SET_MAKE=
3201 else
3202   echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204   SET_MAKE="MAKE=${MAKE-make}"
3205 fi
3206
3207 rm -rf .tst 2>/dev/null
3208 mkdir .tst 2>/dev/null
3209 if test -d .tst; then
3210   am__leading_dot=.
3211 else
3212   am__leading_dot=_
3213 fi
3214 rmdir .tst 2>/dev/null
3215
3216 DEPDIR="${am__leading_dot}deps"
3217
3218           ac_config_commands="$ac_config_commands depfiles"
3219
3220
3221 am_make=${MAKE-make}
3222 cat > confinc << 'END'
3223 am__doit:
3224         @echo done
3225 .PHONY: am__doit
3226 END
3227 # If we don't find an include directive, just comment out the code.
3228 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3229 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3230 am__include="#"
3231 am__quote=
3232 _am_result=none
3233 # First try GNU make style include.
3234 echo "include confinc" > confmf
3235 # We grep out `Entering directory' and `Leaving directory'
3236 # messages which can occur if `w' ends up in MAKEFLAGS.
3237 # In particular we don't look at `^make:' because GNU make might
3238 # be invoked under some other name (usually "gmake"), in which
3239 # case it prints its new name instead of `make'.
3240 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3241    am__include=include
3242    am__quote=
3243    _am_result=GNU
3244 fi
3245 # Now try BSD make style include.
3246 if test "$am__include" = "#"; then
3247    echo '.include "confinc"' > confmf
3248    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3249       am__include=.include
3250       am__quote="\""
3251       _am_result=BSD
3252    fi
3253 fi
3254
3255
3256 echo "$as_me:$LINENO: result: $_am_result" >&5
3257 echo "${ECHO_T}$_am_result" >&6
3258 rm -f confinc confmf
3259
3260 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3261 if test "${enable_dependency_tracking+set}" = set; then
3262   enableval="$enable_dependency_tracking"
3263
3264 fi;
3265 if test "x$enable_dependency_tracking" != xno; then
3266   am_depcomp="$ac_aux_dir/depcomp"
3267   AMDEPBACKSLASH='\'
3268 fi
3269
3270
3271 if test "x$enable_dependency_tracking" != xno; then
3272   AMDEP_TRUE=
3273   AMDEP_FALSE='#'
3274 else
3275   AMDEP_TRUE='#'
3276   AMDEP_FALSE=
3277 fi
3278
3279
3280
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283    test -f $srcdir/config.status; then
3284   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3286    { (exit 1); exit 1; }; }
3287 fi
3288
3289 # test whether we have cygpath
3290 if test -z "$CYGPATH_W"; then
3291   if (cygpath --version) >/dev/null 2>/dev/null; then
3292     CYGPATH_W='cygpath -w'
3293   else
3294     CYGPATH_W=echo
3295   fi
3296 fi
3297
3298
3299 # Define the identity of the package.
3300  PACKAGE='libjava'
3301  VERSION='version-unused'
3302
3303
3304 cat >>confdefs.h <<_ACEOF
3305 #define PACKAGE "$PACKAGE"
3306 _ACEOF
3307
3308
3309 cat >>confdefs.h <<_ACEOF
3310 #define VERSION "$VERSION"
3311 _ACEOF
3312
3313 # Some tools Automake needs.
3314
3315 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316
3317
3318 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319
3320
3321 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322
3323
3324 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325
3326
3327 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3328
3329 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3330
3331 # Installed binaries are usually stripped using `strip' when the user
3332 # run `make install-strip'.  However `strip' might not be the right
3333 # tool to use in cross-compilation environments, therefore Automake
3334 # will honor the `STRIP' environment variable to overrule this program.
3335 if test "$cross_compiling" != no; then
3336   if test -n "$ac_tool_prefix"; then
3337   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}strip; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_STRIP+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   if test -n "$STRIP"; then
3345   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361 fi
3362 fi
3363 STRIP=$ac_cv_prog_STRIP
3364 if test -n "$STRIP"; then
3365   echo "$as_me:$LINENO: result: $STRIP" >&5
3366 echo "${ECHO_T}$STRIP" >&6
3367 else
3368   echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372 fi
3373 if test -z "$ac_cv_prog_STRIP"; then
3374   ac_ct_STRIP=$STRIP
3375   # Extract the first word of "strip", so it can be a program name with args.
3376 set dummy strip; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$ac_ct_STRIP"; then
3383   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_ac_ct_STRIP="strip"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400 fi
3401 fi
3402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3403 if test -n "$ac_ct_STRIP"; then
3404   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3405 echo "${ECHO_T}$ac_ct_STRIP" >&6
3406 else
3407   echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3409 fi
3410
3411   STRIP=$ac_ct_STRIP
3412 else
3413   STRIP="$ac_cv_prog_STRIP"
3414 fi
3415
3416 fi
3417 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3418
3419 # We need awk for the "check" target.  The system "awk" is bad on
3420 # some platforms.
3421 # Always define AMTAR for backward compatibility.
3422
3423 AMTAR=${AMTAR-"${am_missing_run}tar"}
3424
3425 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3426
3427
3428
3429
3430 depcc="$CC"   am_compiler_list=
3431
3432 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3433 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3434 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3438   # We make a subdir and do the tests there.  Otherwise we can end up
3439   # making bogus files that we don't know about and never remove.  For
3440   # instance it was reported that on HP-UX the gcc test will end up
3441   # making a dummy file named `D' -- because `-MD' means `put the output
3442   # in D'.
3443   mkdir conftest.dir
3444   # Copy depcomp to subdir because otherwise we won't find it if we're
3445   # using a relative directory.
3446   cp "$am_depcomp" conftest.dir
3447   cd conftest.dir
3448   # We will build objects and dependencies in a subdirectory because
3449   # it helps to detect inapplicable dependency modes.  For instance
3450   # both Tru64's cc and ICC support -MD to output dependencies as a
3451   # side effect of compilation, but ICC will put the dependencies in
3452   # the current directory while Tru64 will put them in the object
3453   # directory.
3454   mkdir sub
3455
3456   am_cv_CC_dependencies_compiler_type=none
3457   if test "$am_compiler_list" = ""; then
3458      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3459   fi
3460   for depmode in $am_compiler_list; do
3461     # Setup a source with many dependencies, because some compilers
3462     # like to wrap large dependency lists on column 80 (with \), and
3463     # we should not choose a depcomp mode which is confused by this.
3464     #
3465     # We need to recreate these files for each test, as the compiler may
3466     # overwrite some of them when testing with obscure command lines.
3467     # This happens at least with the AIX C compiler.
3468     : > sub/conftest.c
3469     for i in 1 2 3 4 5 6; do
3470       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3471       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3472       # Solaris 8's {/usr,}/bin/sh.
3473       touch sub/conftst$i.h
3474     done
3475     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3476
3477     case $depmode in
3478     nosideeffect)
3479       # after this tag, mechanisms are not by side-effect, so they'll
3480       # only be used when explicitly requested
3481       if test "x$enable_dependency_tracking" = xyes; then
3482         continue
3483       else
3484         break
3485       fi
3486       ;;
3487     none) break ;;
3488     esac
3489     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3490     # mode.  It turns out that the SunPro C++ compiler does not properly
3491     # handle `-M -o', and we need to detect this.
3492     if depmode=$depmode \
3493        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3494        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3495        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3496          >/dev/null 2>conftest.err &&
3497        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3498        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3499        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3500       # icc doesn't choke on unknown options, it will just issue warnings
3501       # or remarks (even with -Werror).  So we grep stderr for any message
3502       # that says an option was ignored or not supported.
3503       # When given -MP, icc 7.0 and 7.1 complain thusly:
3504       #   icc: Command line warning: ignoring option '-M'; no argument required
3505       # The diagnosis changed in icc 8.0:
3506       #   icc: Command line remark: option '-MP' not supported
3507       if (grep 'ignoring option' conftest.err ||
3508           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3509         am_cv_CC_dependencies_compiler_type=$depmode
3510         break
3511       fi
3512     fi
3513   done
3514
3515   cd ..
3516   rm -rf conftest.dir
3517 else
3518   am_cv_CC_dependencies_compiler_type=none
3519 fi
3520
3521 fi
3522 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3523 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3524 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3525
3526
3527
3528 if
3529   test "x$enable_dependency_tracking" != xno \
3530   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3531   am__fastdepCC_TRUE=
3532   am__fastdepCC_FALSE='#'
3533 else
3534   am__fastdepCC_TRUE='#'
3535   am__fastdepCC_FALSE=
3536 fi
3537
3538
3539 depcc="$CXX"  am_compiler_list=
3540
3541 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3542 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3543 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3544   echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3547   # We make a subdir and do the tests there.  Otherwise we can end up
3548   # making bogus files that we don't know about and never remove.  For
3549   # instance it was reported that on HP-UX the gcc test will end up
3550   # making a dummy file named `D' -- because `-MD' means `put the output
3551   # in D'.
3552   mkdir conftest.dir
3553   # Copy depcomp to subdir because otherwise we won't find it if we're
3554   # using a relative directory.
3555   cp "$am_depcomp" conftest.dir
3556   cd conftest.dir
3557   # We will build objects and dependencies in a subdirectory because
3558   # it helps to detect inapplicable dependency modes.  For instance
3559   # both Tru64's cc and ICC support -MD to output dependencies as a
3560   # side effect of compilation, but ICC will put the dependencies in
3561   # the current directory while Tru64 will put them in the object
3562   # directory.
3563   mkdir sub
3564
3565   am_cv_CXX_dependencies_compiler_type=none
3566   if test "$am_compiler_list" = ""; then
3567      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3568   fi
3569   for depmode in $am_compiler_list; do
3570     # Setup a source with many dependencies, because some compilers
3571     # like to wrap large dependency lists on column 80 (with \), and
3572     # we should not choose a depcomp mode which is confused by this.
3573     #
3574     # We need to recreate these files for each test, as the compiler may
3575     # overwrite some of them when testing with obscure command lines.
3576     # This happens at least with the AIX C compiler.
3577     : > sub/conftest.c
3578     for i in 1 2 3 4 5 6; do
3579       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581       # Solaris 8's {/usr,}/bin/sh.
3582       touch sub/conftst$i.h
3583     done
3584     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3585
3586     case $depmode in
3587     nosideeffect)
3588       # after this tag, mechanisms are not by side-effect, so they'll
3589       # only be used when explicitly requested
3590       if test "x$enable_dependency_tracking" = xyes; then
3591         continue
3592       else
3593         break
3594       fi
3595       ;;
3596     none) break ;;
3597     esac
3598     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3599     # mode.  It turns out that the SunPro C++ compiler does not properly
3600     # handle `-M -o', and we need to detect this.
3601     if depmode=$depmode \
3602        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3603        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3604        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3605          >/dev/null 2>conftest.err &&
3606        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3607        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3608        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3609       # icc doesn't choke on unknown options, it will just issue warnings
3610       # or remarks (even with -Werror).  So we grep stderr for any message
3611       # that says an option was ignored or not supported.
3612       # When given -MP, icc 7.0 and 7.1 complain thusly:
3613       #   icc: Command line warning: ignoring option '-M'; no argument required
3614       # The diagnosis changed in icc 8.0:
3615       #   icc: Command line remark: option '-MP' not supported
3616       if (grep 'ignoring option' conftest.err ||
3617           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3618         am_cv_CXX_dependencies_compiler_type=$depmode
3619         break
3620       fi
3621     fi
3622   done
3623
3624   cd ..
3625   rm -rf conftest.dir
3626 else
3627   am_cv_CXX_dependencies_compiler_type=none
3628 fi
3629
3630 fi
3631 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3632 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3633 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3634
3635
3636
3637 if
3638   test "x$enable_dependency_tracking" != xno \
3639   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3640   am__fastdepCXX_TRUE=
3641   am__fastdepCXX_FALSE='#'
3642 else
3643   am__fastdepCXX_TRUE='#'
3644   am__fastdepCXX_FALSE=
3645 fi
3646
3647
3648
3649
3650 if test -n "$ac_tool_prefix"; then
3651   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3652 set dummy ${ac_tool_prefix}as; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_AS+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   if test -n "$AS"; then
3659   ac_cv_prog_AS="$AS" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664   IFS=$as_save_IFS
3665   test -z "$as_dir" && as_dir=.
3666   for ac_exec_ext in '' $ac_executable_extensions; do
3667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668     ac_cv_prog_AS="${ac_tool_prefix}as"
3669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670     break 2
3671   fi
3672 done
3673 done
3674
3675 fi
3676 fi
3677 AS=$ac_cv_prog_AS
3678 if test -n "$AS"; then
3679   echo "$as_me:$LINENO: result: $AS" >&5
3680 echo "${ECHO_T}$AS" >&6
3681 else
3682   echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686 fi
3687 if test -z "$ac_cv_prog_AS"; then
3688   ac_ct_AS=$AS
3689   # Extract the first word of "as", so it can be a program name with args.
3690 set dummy as; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   if test -n "$ac_ct_AS"; then
3697   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for ac_exec_ext in '' $ac_executable_extensions; do
3705   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706     ac_cv_prog_ac_ct_AS="as"
3707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711 done
3712
3713 fi
3714 fi
3715 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3716 if test -n "$ac_ct_AS"; then
3717   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3718 echo "${ECHO_T}$ac_ct_AS" >&6
3719 else
3720   echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3722 fi
3723
3724   AS=$ac_ct_AS
3725 else
3726   AS="$ac_cv_prog_AS"
3727 fi
3728
3729 if test -n "$ac_tool_prefix"; then
3730   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ld; ac_word=$2
3732 echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3734 if test "${ac_cv_prog_LD+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   if test -n "$LD"; then
3738   ac_cv_prog_LD="$LD" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747     ac_cv_prog_LD="${ac_tool_prefix}ld"
3748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753
3754 fi
3755 fi
3756 LD=$ac_cv_prog_LD
3757 if test -n "$LD"; then
3758   echo "$as_me:$LINENO: result: $LD" >&5
3759 echo "${ECHO_T}$LD" >&6
3760 else
3761   echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 fi
3764
3765 fi
3766 if test -z "$ac_cv_prog_LD"; then
3767   ac_ct_LD=$LD
3768   # Extract the first word of "ld", so it can be a program name with args.
3769 set dummy ld; ac_word=$2
3770 echo "$as_me:$LINENO: checking for $ac_word" >&5
3771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3772 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3773   echo $ECHO_N "(cached) $ECHO_C" >&6
3774 else
3775   if test -n "$ac_ct_LD"; then
3776   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3777 else
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 for as_dir in $PATH
3780 do
3781   IFS=$as_save_IFS
3782   test -z "$as_dir" && as_dir=.
3783   for ac_exec_ext in '' $ac_executable_extensions; do
3784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3785     ac_cv_prog_ac_ct_LD="ld"
3786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787     break 2
3788   fi
3789 done
3790 done
3791
3792 fi
3793 fi
3794 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3795 if test -n "$ac_ct_LD"; then
3796   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3797 echo "${ECHO_T}$ac_ct_LD" >&6
3798 else
3799   echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803   LD=$ac_ct_LD
3804 else
3805   LD="$ac_cv_prog_LD"
3806 fi
3807
3808 if test -n "$ac_tool_prefix"; then
3809   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3810 set dummy ${ac_tool_prefix}ar; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_prog_AR+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   if test -n "$AR"; then
3817   ac_cv_prog_AR="$AR" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824   for ac_exec_ext in '' $ac_executable_extensions; do
3825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3826     ac_cv_prog_AR="${ac_tool_prefix}ar"
3827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828     break 2
3829   fi
3830 done
3831 done
3832
3833 fi
3834 fi
3835 AR=$ac_cv_prog_AR
3836 if test -n "$AR"; then
3837   echo "$as_me:$LINENO: result: $AR" >&5
3838 echo "${ECHO_T}$AR" >&6
3839 else
3840   echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843
3844 fi
3845 if test -z "$ac_cv_prog_AR"; then
3846   ac_ct_AR=$AR
3847   # Extract the first word of "ar", so it can be a program name with args.
3848 set dummy ar; ac_word=$2
3849 echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3851 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3852   echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854   if test -n "$ac_ct_AR"; then
3855   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3859 do
3860   IFS=$as_save_IFS
3861   test -z "$as_dir" && as_dir=.
3862   for ac_exec_ext in '' $ac_executable_extensions; do
3863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864     ac_cv_prog_ac_ct_AR="ar"
3865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866     break 2
3867   fi
3868 done
3869 done
3870
3871 fi
3872 fi
3873 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3874 if test -n "$ac_ct_AR"; then
3875   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3876 echo "${ECHO_T}$ac_ct_AR" >&6
3877 else
3878   echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3880 fi
3881
3882   AR=$ac_ct_AR
3883 else
3884   AR="$ac_cv_prog_AR"
3885 fi
3886
3887 if test -n "$ac_tool_prefix"; then
3888   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3890 echo "$as_me:$LINENO: checking for $ac_word" >&5
3891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3892 if test "${ac_cv_prog_RANLIB+set}" = set; then
3893   echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895   if test -n "$RANLIB"; then
3896   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903   for ac_exec_ext in '' $ac_executable_extensions; do
3904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3905     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907     break 2
3908   fi
3909 done
3910 done
3911
3912 fi
3913 fi
3914 RANLIB=$ac_cv_prog_RANLIB
3915 if test -n "$RANLIB"; then
3916   echo "$as_me:$LINENO: result: $RANLIB" >&5
3917 echo "${ECHO_T}$RANLIB" >&6
3918 else
3919   echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923 fi
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925   ac_ct_RANLIB=$RANLIB
3926   # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib; ac_word=$2
3928 echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if test -n "$ac_ct_RANLIB"; then
3934   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941   for ac_exec_ext in '' $ac_executable_extensions; do
3942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_ac_ct_RANLIB="ranlib"
3944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948 done
3949
3950   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3951 fi
3952 fi
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3957 else
3958   echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6
3960 fi
3961
3962   RANLIB=$ac_ct_RANLIB
3963 else
3964   RANLIB="$ac_cv_prog_RANLIB"
3965 fi
3966
3967 for ac_prog in jar fastjar
3968 do
3969   # Extract the first word of "$ac_prog", so it can be a program name with args.
3970 set dummy $ac_prog; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_JAR+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if test -n "$JAR"; then
3977   ac_cv_prog_JAR="$JAR" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986     ac_cv_prog_JAR="$ac_prog"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991 done
3992
3993 fi
3994 fi
3995 JAR=$ac_cv_prog_JAR
3996 if test -n "$JAR"; then
3997   echo "$as_me:$LINENO: result: $JAR" >&5
3998 echo "${ECHO_T}$JAR" >&6
3999 else
4000   echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4002 fi
4003
4004   test -n "$JAR" && break
4005 done
4006 test -n "$JAR" || JAR="false"
4007
4008 if test "$JAR" = false; then
4009   { { echo "$as_me:$LINENO: error: jar program not found" >&5
4010 echo "$as_me: error: jar program not found" >&2;}
4011    { (exit 1); exit 1; }; }
4012 fi
4013
4014 # Find a good install program.  We prefer a C program (faster),
4015 # so one script is as good as another.  But avoid the broken or
4016 # incompatible versions:
4017 # SysV /etc/install, /usr/sbin/install
4018 # SunOS /usr/etc/install
4019 # IRIX /sbin/install
4020 # AIX /bin/install
4021 # AmigaOS /C/install, which installs bootblocks on floppy discs
4022 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4023 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4024 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4025 # OS/2's system install, which has a completely different semantic
4026 # ./install, which can be erroneously created by make from ./install.sh.
4027 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4028 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4029 if test -z "$INSTALL"; then
4030 if test "${ac_cv_path_install+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038   # Account for people who put trailing slashes in PATH elements.
4039 case $as_dir/ in
4040   ./ | .// | /cC/* | \
4041   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4042   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4043   /usr/ucb/* ) ;;
4044   *)
4045     # OSF1 and SCO ODT 3.0 have their own names for install.
4046     # Don't use installbsd from OSF since it installs stuff as root
4047     # by default.
4048     for ac_prog in ginstall scoinst install; do
4049       for ac_exec_ext in '' $ac_executable_extensions; do
4050         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4051           if test $ac_prog = install &&
4052             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4053             # AIX install.  It has an incompatible calling convention.
4054             :
4055           elif test $ac_prog = install &&
4056             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057             # program-specific install script used by HP pwplus--don't use.
4058             :
4059           else
4060             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4061             break 3
4062           fi
4063         fi
4064       done
4065     done
4066     ;;
4067 esac
4068 done
4069
4070
4071 fi
4072   if test "${ac_cv_path_install+set}" = set; then
4073     INSTALL=$ac_cv_path_install
4074   else
4075     # As a last resort, use the slow shell script.  We don't cache a
4076     # path for INSTALL within a source directory, because that will
4077     # break other packages using the cache if that directory is
4078     # removed, or if the path is relative.
4079     INSTALL=$ac_install_sh
4080   fi
4081 fi
4082 echo "$as_me:$LINENO: result: $INSTALL" >&5
4083 echo "${ECHO_T}$INSTALL" >&6
4084
4085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4086 # It thinks the first close brace ends the variable substitution.
4087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4088
4089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4090
4091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4092
4093
4094 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4095 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4096     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4097 if test "${enable_maintainer_mode+set}" = set; then
4098   enableval="$enable_maintainer_mode"
4099   USE_MAINTAINER_MODE=$enableval
4100 else
4101   USE_MAINTAINER_MODE=no
4102 fi;
4103   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4104 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4105
4106
4107 if test $USE_MAINTAINER_MODE = yes; then
4108   MAINTAINER_MODE_TRUE=
4109   MAINTAINER_MODE_FALSE='#'
4110 else
4111   MAINTAINER_MODE_TRUE='#'
4112   MAINTAINER_MODE_FALSE=
4113 fi
4114
4115   MAINT=$MAINTAINER_MODE_TRUE
4116
4117
4118
4119
4120
4121 # configure.host sets the following important variables
4122 #       libgcj_cflags    - host specific C compiler flags
4123 #       libgcj_cxxflags  - host specific C++ compiler flags
4124 #       libgcj_javaflags - host specific Java compiler flags
4125
4126 libgcj_cflags=
4127 libgcj_cxxflags=
4128 libgcj_javaflags=
4129
4130 . ${srcdir}/configure.host
4131
4132 LIBGCJ_CFLAGS="${libgcj_cflags}"
4133 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4134 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4135 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4136
4137
4138
4139
4140
4141 # Only use libltdl for non-newlib builds.
4142 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4143    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4144 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4145 library_names_spec=
4146 libname_spec='lib$name'
4147 soname_spec=
4148 shrext=".so"
4149 postinstall_cmds=
4150 postuninstall_cmds=
4151 finish_cmds=
4152 finish_eval=
4153 shlibpath_var=
4154 shlibpath_overrides_runpath=unknown
4155 version_type=none
4156 dynamic_linker="$host_os ld.so"
4157 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4158 if test "$GCC" = yes; then
4159   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4160   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4161     # if the path contains ";" then we assume it to be the separator
4162     # otherwise default to the standard path separator (i.e. ":") - it is
4163     # assumed that no part of a normal pathname contains ";" but that should
4164     # okay in the real world where ";" in dirpaths is itself problematic.
4165     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4166   else
4167     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4168   fi
4169 else
4170   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4171 fi
4172 need_lib_prefix=unknown
4173 hardcode_into_libs=no
4174
4175 # when you set need_version to no, make sure it does not cause -set_version
4176 # flags to be left without arguments
4177 need_version=unknown
4178
4179 case $host_os in
4180 aix3*)
4181   version_type=linux
4182   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4183   shlibpath_var=LIBPATH
4184
4185   # AIX 3 has no versioning support, so we append a major version to the name.
4186   soname_spec='${libname}${release}${shared_ext}$major'
4187   ;;
4188
4189 aix4* | aix5*)
4190   version_type=linux
4191   need_lib_prefix=no
4192   need_version=no
4193   hardcode_into_libs=yes
4194   if test "$host_cpu" = ia64; then
4195     # AIX 5 supports IA64
4196     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4197     shlibpath_var=LD_LIBRARY_PATH
4198   else
4199     # With GCC up to 2.95.x, collect2 would create an import file
4200     # for dependence libraries.  The import file would start with
4201     # the line `#! .'.  This would cause the generated library to
4202     # depend on `.', always an invalid library.  This was fixed in
4203     # development snapshots of GCC prior to 3.0.
4204     case $host_os in
4205       aix4 | aix4.[01] | aix4.[01].*)
4206       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4207            echo ' yes '
4208            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4209         :
4210       else
4211         can_build_shared=no
4212       fi
4213       ;;
4214     esac
4215     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4216     # soname into executable. Probably we can add versioning support to
4217     # collect2, so additional links can be useful in future.
4218     if test "$aix_use_runtimelinking" = yes; then
4219       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4220       # instead of lib<name>.a to let people know that these are not
4221       # typical AIX shared libraries.
4222       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4223     else
4224       # We preserve .a as extension for shared libraries through AIX4.2
4225       # and later when we are not doing run time linking.
4226       library_names_spec='${libname}${release}.a $libname.a'
4227       soname_spec='${libname}${release}${shared_ext}$major'
4228     fi
4229     shlibpath_var=LIBPATH
4230   fi
4231   ;;
4232
4233 amigaos*)
4234   library_names_spec='$libname.ixlibrary $libname.a'
4235   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4236   finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4237   ;;
4238
4239 beos*)
4240   library_names_spec='${libname}${shared_ext}'
4241   dynamic_linker="$host_os ld.so"
4242   shlibpath_var=LIBRARY_PATH
4243   ;;
4244
4245 bsdi4*)
4246   version_type=linux
4247   need_version=no
4248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4249   soname_spec='${libname}${release}${shared_ext}$major'
4250   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4251   shlibpath_var=LD_LIBRARY_PATH
4252   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4253   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4254   # the default ld.so.conf also contains /usr/contrib/lib and
4255   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4256   # libtool to hard-code these into programs
4257   ;;
4258
4259 cygwin* | mingw* | pw32*)
4260   version_type=windows
4261   shrext=".dll"
4262   need_version=no
4263   need_lib_prefix=no
4264
4265   case $GCC,$host_os in
4266   yes,cygwin* | yes,mingw* | yes,pw32*)
4267     library_names_spec='$libname.dll.a'
4268     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4269     postinstall_cmds='base_file=`basename \${file}`~
4270       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4271       dldir=$destdir/`dirname \$dlpath`~
4272       test -d \$dldir || mkdir -p \$dldir~
4273       $install_prog $dir/$dlname \$dldir/$dlname'
4274     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4275       dlpath=$dir/\$dldll~
4276        $rm \$dlpath'
4277     shlibpath_overrides_runpath=yes
4278
4279     case $host_os in
4280     cygwin*)
4281       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4282       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4283       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4284       ;;
4285     mingw*)
4286       # MinGW DLLs use traditional 'lib' prefix
4287       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4288       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4289       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4290         # It is most probably a Windows format PATH printed by
4291         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4292         # path with ; separators, and with drive letters. We can handle the
4293         # drive letters (cygwin fileutils understands them), so leave them,
4294         # especially as we might pass files found there to a mingw objdump,
4295         # which wouldn't understand a cygwinified path. Ahh.
4296         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4297       else
4298         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4299       fi
4300       ;;
4301     pw32*)
4302       # pw32 DLLs use 'pw' prefix rather than 'lib'
4303       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4304       ;;
4305     esac
4306     ;;
4307
4308   *)
4309     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4310     ;;
4311   esac
4312   dynamic_linker='Win32 ld.exe'
4313   # FIXME: first we should search . and the directory the executable is in
4314   shlibpath_var=PATH
4315   ;;
4316
4317 darwin* | rhapsody*)
4318   dynamic_linker="$host_os dyld"
4319   version_type=darwin
4320   need_lib_prefix=no
4321   need_version=no
4322   # FIXME: Relying on posixy $() will cause problems for
4323   #        cross-compilation, but unfortunately the echo tests do not
4324   #        yet detect zsh echo's removal of \ escapes.
4325   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4326   soname_spec='${libname}${release}${major}$shared_ext'
4327   shlibpath_overrides_runpath=yes
4328   shlibpath_var=DYLD_LIBRARY_PATH
4329   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4330   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4331   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4332   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4333   fi
4334   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4335   ;;
4336
4337 dgux*)
4338   version_type=linux
4339   need_lib_prefix=no
4340   need_version=no
4341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4342   soname_spec='${libname}${release}${shared_ext}$major'
4343   shlibpath_var=LD_LIBRARY_PATH
4344   ;;
4345
4346 freebsd1*)
4347   dynamic_linker=no
4348   ;;
4349
4350 freebsd*)
4351   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4352   version_type=freebsd-$objformat
4353   case $version_type in
4354     freebsd-elf*)
4355       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4356       need_version=no
4357       need_lib_prefix=no
4358       ;;
4359     freebsd-*)
4360       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4361       need_version=yes
4362       ;;
4363   esac
4364   shlibpath_var=LD_LIBRARY_PATH
4365   case $host_os in
4366   freebsd2*)
4367     shlibpath_overrides_runpath=yes
4368     ;;
4369   freebsd3.01* | freebsdelf3.01*)
4370     shlibpath_overrides_runpath=yes
4371     hardcode_into_libs=yes
4372     ;;
4373   *) # from 3.2 on
4374     shlibpath_overrides_runpath=no
4375     hardcode_into_libs=yes
4376     ;;
4377   esac
4378   ;;
4379
4380 gnu*)
4381   version_type=linux
4382   need_lib_prefix=no
4383   need_version=no
4384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4385   soname_spec='${libname}${release}${shared_ext}$major'
4386   shlibpath_var=LD_LIBRARY_PATH
4387   hardcode_into_libs=yes
4388   ;;
4389
4390 hpux9* | hpux10* | hpux11*)
4391   # Give a soname corresponding to the major version so that dld.sl refuses to
4392   # link against other versions.
4393   version_type=sunos
4394   need_lib_prefix=no
4395   need_version=no
4396   case "$host_cpu" in
4397   ia64*)
4398     shrext='.so'
4399     hardcode_into_libs=yes
4400     dynamic_linker="$host_os dld.so"
4401     shlibpath_var=LD_LIBRARY_PATH
4402     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4403     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4404     soname_spec='${libname}${release}${shared_ext}$major'
4405     if test "X$HPUX_IA64_MODE" = X32; then
4406       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4407     else
4408       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4409     fi
4410     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4411     ;;
4412    hppa*64*)
4413      shrext='.sl'
4414      hardcode_into_libs=yes
4415      dynamic_linker="$host_os dld.sl"
4416      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4417      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4418      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4419      soname_spec='${libname}${release}${shared_ext}$major'
4420      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4421      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4422      ;;
4423    *)
4424     shrext='.sl'
4425     dynamic_linker="$host_os dld.sl"
4426     shlibpath_var=SHLIB_PATH
4427     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4428     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4429     soname_spec='${libname}${release}${shared_ext}$major'
4430     ;;
4431   esac
4432   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4433   postinstall_cmds='chmod 555 $lib'
4434   ;;
4435
4436 irix5* | irix6* | nonstopux*)
4437   case $host_os in
4438     nonstopux*) version_type=nonstopux ;;
4439     *)
4440         if test "$lt_cv_prog_gnu_ld" = yes; then
4441                 version_type=linux
4442         else
4443                 version_type=irix
4444         fi ;;
4445   esac
4446   need_lib_prefix=no
4447   need_version=no
4448   soname_spec='${libname}${release}${shared_ext}$major'
4449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4450   case $host_os in
4451   irix5* | nonstopux*)
4452     libsuff= shlibsuff=
4453     ;;
4454   *)
4455     case $LD in # libtool.m4 will add one of these switches to LD
4456     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4457       libsuff= shlibsuff= libmagic=32-bit;;
4458     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4459       libsuff=32 shlibsuff=N32 libmagic=N32;;
4460     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4461       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4462     *) libsuff= shlibsuff= libmagic=never-match;;
4463     esac
4464     ;;
4465   esac
4466   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4467   shlibpath_overrides_runpath=no
4468   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4469   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4470   hardcode_into_libs=yes
4471   ;;
4472
4473 # No shared lib support for Linux oldld, aout, or coff.
4474 linux*oldld* | linux*aout* | linux*coff*)
4475   dynamic_linker=no
4476   ;;
4477
4478 # This must be Linux ELF.
4479 linux*)
4480   version_type=linux
4481   need_lib_prefix=no
4482   need_version=no
4483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4484   soname_spec='${libname}${release}${shared_ext}$major'
4485   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4486   shlibpath_var=LD_LIBRARY_PATH
4487   shlibpath_overrides_runpath=no
4488   # This implies no fast_install, which is unacceptable.
4489   # Some rework will be needed to allow for fast_install
4490   # before this can be enabled.
4491   hardcode_into_libs=yes
4492
4493   # We used to test for /lib/ld.so.1 and disable shared libraries on
4494   # powerpc, because MkLinux only supported shared libraries with the
4495   # GNU dynamic linker.  Since this was broken with cross compilers,
4496   # most powerpc-linux boxes support dynamic linking these days and
4497   # people can always --disable-shared, the test was removed, and we
4498   # assume the GNU/Linux dynamic linker is in use.
4499   dynamic_linker='GNU/Linux ld.so'
4500   ;;
4501
4502 netbsd*)
4503   version_type=sunos
4504   need_lib_prefix=no
4505   need_version=no
4506   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4507     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4508     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4509     dynamic_linker='NetBSD (a.out) ld.so'
4510   else
4511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4512     soname_spec='${libname}${release}${shared_ext}$major'
4513     dynamic_linker='NetBSD ld.elf_so'
4514   fi
4515   shlibpath_var=LD_LIBRARY_PATH
4516   shlibpath_overrides_runpath=yes
4517   hardcode_into_libs=yes
4518   ;;
4519
4520 newsos6)
4521   version_type=linux
4522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4523   shlibpath_var=LD_LIBRARY_PATH
4524   shlibpath_overrides_runpath=yes
4525   ;;
4526
4527 nto-qnx)
4528   version_type=linux
4529   need_lib_prefix=no
4530   need_version=no
4531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4532   soname_spec='${libname}${release}${shared_ext}$major'
4533   shlibpath_var=LD_LIBRARY_PATH
4534   shlibpath_overrides_runpath=yes
4535   ;;
4536
4537 openbsd*)
4538   version_type=sunos
4539   need_lib_prefix=no
4540   need_version=no
4541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4542   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4543   shlibpath_var=LD_LIBRARY_PATH
4544   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4545     case $host_os in
4546       openbsd2.[89] | openbsd2.[89].*)
4547         shlibpath_overrides_runpath=no
4548         ;;
4549       *)
4550         shlibpath_overrides_runpath=yes
4551         ;;
4552       esac
4553   else
4554     shlibpath_overrides_runpath=yes
4555   fi
4556   ;;
4557
4558 os2*)
4559   libname_spec='$name'
4560   shrext=".dll"
4561   need_lib_prefix=no
4562   library_names_spec='$libname${shared_ext} $libname.a'
4563   dynamic_linker='OS/2 ld.exe'
4564   shlibpath_var=LIBPATH
4565   ;;
4566
4567 osf3* | osf4* | osf5*)
4568   version_type=osf
4569   need_lib_prefix=no
4570   need_version=no
4571   soname_spec='${libname}${release}${shared_ext}$major'
4572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4573   shlibpath_var=LD_LIBRARY_PATH
4574   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4575   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4576   ;;
4577
4578 sco3.2v5*)
4579   version_type=osf
4580   soname_spec='${libname}${release}${shared_ext}$major'
4581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4582   shlibpath_var=LD_LIBRARY_PATH
4583   ;;
4584
4585 solaris*)
4586   version_type=linux
4587   need_lib_prefix=no
4588   need_version=no
4589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4590   soname_spec='${libname}${release}${shared_ext}$major'
4591   shlibpath_var=LD_LIBRARY_PATH
4592   shlibpath_overrides_runpath=yes
4593   hardcode_into_libs=yes
4594   # ldd complains unless libraries are executable
4595   postinstall_cmds='chmod +x $lib'
4596   ;;
4597
4598 sunos4*)
4599   version_type=sunos
4600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4601   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4602   shlibpath_var=LD_LIBRARY_PATH
4603   shlibpath_overrides_runpath=yes
4604   if test "$with_gnu_ld" = yes; then
4605     need_lib_prefix=no
4606   fi
4607   need_version=yes
4608   ;;
4609
4610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4611   version_type=linux
4612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4613   soname_spec='${libname}${release}${shared_ext}$major'
4614   shlibpath_var=LD_LIBRARY_PATH
4615   case $host_vendor in
4616     sni)
4617       shlibpath_overrides_runpath=no
4618       need_lib_prefix=no
4619       export_dynamic_flag_spec='${wl}-Blargedynsym'
4620       runpath_var=LD_RUN_PATH
4621       ;;
4622     siemens)
4623       need_lib_prefix=no
4624       ;;
4625     motorola)
4626       need_lib_prefix=no
4627       need_version=no
4628       shlibpath_overrides_runpath=no
4629       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4630       ;;
4631   esac
4632   ;;
4633
4634 sysv4*MP*)
4635   if test -d /usr/nec ;then
4636     version_type=linux
4637     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4638     soname_spec='$libname${shared_ext}.$major'
4639     shlibpath_var=LD_LIBRARY_PATH
4640   fi
4641   ;;
4642
4643 uts4*)
4644   version_type=linux
4645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4646   soname_spec='${libname}${release}${shared_ext}$major'
4647   shlibpath_var=LD_LIBRARY_PATH
4648   ;;
4649
4650 *)
4651   dynamic_linker=no
4652   ;;
4653 esac
4654 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4655 echo "${ECHO_T}$dynamic_linker" >&6
4656 test "$dynamic_linker" = no && can_build_shared=no
4657
4658
4659 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4660 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4661 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   libltdl_cv_shlibpath_var="$shlibpath_var"
4665 fi
4666 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4667 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4668 if test -n "$libltdl_cv_shlibpath_var"; then
4669
4670 cat >>confdefs.h <<_ACEOF
4671 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4672 _ACEOF
4673
4674 fi
4675
4676 fi
4677
4678                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4679
4680
4681 # See if the user has requested runtime debugging.
4682 LIBGCJDEBUG="disable"
4683
4684 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4685 if test "${enable_libgcj_debug+set}" = set; then
4686   enableval="$enable_libgcj_debug"
4687   if test "$enable_libgcj_debug" = yes; then
4688
4689 cat >>confdefs.h <<\_ACEOF
4690 #define DEBUG 1
4691 _ACEOF
4692
4693     LIBGCJDEBUG="enable"
4694   fi
4695 fi;
4696
4697 # Determine which AWT peer libraries to build
4698 # Check whether --enable-java-awt or --disable-java-awt was given.
4699 if test "${enable_java_awt+set}" = set; then
4700   enableval="$enable_java_awt"
4701
4702 fi;
4703
4704 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4705 use_xlib_awt=""
4706 use_gtk_awt=""
4707 use_qt_awt=""
4708 # The default toolkit to use is the first one specified.
4709 TOOLKIT=
4710
4711
4712 for peer in $peerlibs ; do
4713   case $peer in
4714     xlib)
4715       if test "$no_x" = yes; then
4716         echo "*** xlib peers requested but no X library available" 1>&2
4717         exit 1
4718       else
4719         use_xlib_awt="yes"
4720         if test -z "$TOOLKIT"; then
4721            TOOLKIT=gnu.awt.xlib.XToolkit
4722         fi
4723       fi
4724       ;;
4725     gtk)
4726       if test "$no_x" = yes; then
4727          echo "*** gtk peers requested but no X library available" 1>&2
4728          exit 1
4729       else
4730          use_gtk_awt=yes
4731          if test -z "$TOOLKIT"; then
4732             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4733          fi
4734       fi
4735       ;;
4736     qt)
4737       if test "$no_x" = yes; then
4738          # Perhaps we should admit the possibility of embedded Qt.
4739          echo "*** Qt peers requested but no X library available" 1>&2
4740          exit 1
4741       else
4742          use_qt_awt=yes
4743          if test -z "$TOOLKIT"; then
4744             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4745          fi
4746       fi
4747       ;;
4748     no)
4749       use_xlib_awt=
4750       use_gtk_awt=
4751       use_qt_awt=
4752       break
4753       ;;
4754     *)
4755       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4756       exit 1
4757   esac
4758 done
4759
4760
4761
4762 if test "$use_xlib_awt" = yes; then
4763   XLIB_AWT_TRUE=
4764   XLIB_AWT_FALSE='#'
4765 else
4766   XLIB_AWT_TRUE='#'
4767   XLIB_AWT_FALSE=
4768 fi
4769
4770
4771
4772 if test "$use_gtk_awt" = yes; then
4773   GTK_AWT_TRUE=
4774   GTK_AWT_FALSE='#'
4775 else
4776   GTK_AWT_TRUE='#'
4777   GTK_AWT_FALSE=
4778 fi
4779
4780
4781
4782 if test "$use_qt_awt" = yes; then
4783   QT_AWT_TRUE=
4784   QT_AWT_FALSE='#'
4785 else
4786   QT_AWT_TRUE='#'
4787   QT_AWT_FALSE=
4788 fi
4789
4790
4791 # Create standard.omit based on decisions we just made.
4792 cp $srcdir/standard.omit.in standard.omit
4793 if test "$use_xlib_awt" != yes; then
4794    echo gnu/awt/xlib >> standard.omit
4795    echo gnu/gcj/xlib >> standard.omit
4796 fi
4797 if test "$use_gtk_awt" != yes; then
4798    echo gnu/java/awt/peer/gtk >> standard.omit
4799 fi
4800 if test "$use_qt_awt" != yes; then
4801    echo gnu/java/awt/peer/qt >> standard.omit
4802 fi
4803
4804 if test -z "${with_multisubdir}"; then
4805    builddotdot=.
4806 else
4807    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4808 fi
4809
4810 NATIVE=yes
4811
4812 # Which gcj do we use?
4813 which_gcj=default
4814 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4815 if test -n "${with_cross_host}"; then
4816   # We are being configured with a cross compiler. We can't
4817   # use ac_exeext, because that is for the target platform.
4818   NATIVE=no
4819   cross_host_exeext=
4820   case "${with_cross_host}" in
4821      *mingw* | *cygwin*)
4822          cross_host_exeext=.exe
4823      ;;
4824   esac
4825   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4826      if test x"$build_noncanonical" = x"$with_cross_host"; then
4827         # Ordinary cross (host!=target and host=build)
4828         which_gcj=built
4829      else
4830         # Canadian cross (host!=target and host!=build)
4831         which_gcj=cross
4832      fi
4833   else
4834      which_gcj=cross
4835   fi
4836 else
4837   # We are being configured with a native or crossed-native compiler
4838   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4839      if test x"$build" = x"$host"; then
4840         # True native build (host=target and host=build)
4841         which_gcj=built
4842      else
4843         # Crossed-native build (host=target and host!=build)
4844         which_gcj=cross
4845      fi
4846   else
4847      which_gcj=path
4848   fi
4849 fi
4850 case "${which_gcj}" in
4851    built)
4852       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4853       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4854    ;;
4855    cross)
4856       if test "x${with_newlib}" = "xyes"; then
4857          # FIXME (comment): Why is this needed?
4858          GCC_UNWIND_INCLUDE=
4859          GCJ="${target_noncanonical}-gcj"
4860       else
4861          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4862       fi
4863       GCJH='$(target_noncanonical)-gcjh'
4864    ;;
4865    path)
4866       GCJ="gcj -B`${PWDCMD-pwd}`/"
4867       GCJH=gcjh
4868    ;;
4869 esac
4870
4871
4872
4873 # Create it, so that compile/link tests don't fail
4874 test -f libgcj.spec || touch libgcj.spec
4875
4876
4877
4878 # Set up to configure Classpath.
4879 # FIXME: no supported way to pass args in autoconf.
4880 ac_configure_args="$ac_configure_args --disable-load-library"
4881 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4882 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4883 dir1=`cd $srcdir && pwd`
4884 dir2=`pwd`
4885 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4886 ac_configure_args="$ac_configure_args --disable-core-jni"
4887 ac_configure_args="$ac_configure_args --disable-examples"
4888 ac_configure_args="$ac_configure_args --with-glibj=build"
4889 if test "$use_gtk_awt" != yes; then
4890   ac_configure_args="$ac_configure_args --disable-gtk-peer"
4891 fi
4892 if test "$use_qt_awt" != yes; then
4893   ac_configure_args="$ac_configure_args --disable-qt-peer"
4894 else
4895   # We need this as qt is disabled by default in classpath.
4896   ac_configure_args="$ac_configure_args --enable-qt-peer"
4897 fi
4898
4899 # Only use libltdl for non-newlib builds.
4900 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4901      case $enable_ltdl_convenience in
4902   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4903 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4904    { (exit 1); exit 1; }; } ;;
4905   "") enable_ltdl_convenience=yes
4906       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4907   esac
4908   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4909   INCLTDL='-I${top_srcdir}/''libltdl'
4910
4911
4912    DIRLTDL=libltdl
4913
4914 cat >>confdefs.h <<\_ACEOF
4915 #define USE_LTDL 1
4916 _ACEOF
4917
4918    # Sigh.  Libtool's macro doesn't do the right thing.
4919    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4920    # FIXME: this is a hack.
4921    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4922    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4923 fi
4924
4925
4926
4927 # Check whether --enable-shared or --disable-shared was given.
4928 if test "${enable_shared+set}" = set; then
4929   enableval="$enable_shared"
4930   p=${PACKAGE-default}
4931 case $enableval in
4932 yes) enable_shared=yes ;;
4933 no) enable_shared=no ;;
4934 *)
4935   enable_shared=no
4936   # Look at the argument we got.  We use all the common list separators.
4937   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4938   for pkg in $enableval; do
4939     if test "X$pkg" = "X$p"; then
4940       enable_shared=yes
4941     fi
4942   done
4943   IFS="$ac_save_ifs"
4944   ;;
4945 esac
4946 else
4947   enable_shared=yes
4948 fi;
4949 # Check whether --enable-static or --disable-static was given.
4950 if test "${enable_static+set}" = set; then
4951   enableval="$enable_static"
4952   p=${PACKAGE-default}
4953 case $enableval in
4954 yes) enable_static=yes ;;
4955 no) enable_static=no ;;
4956 *)
4957   enable_static=no
4958   # Look at the argument we got.  We use all the common list separators.
4959   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4960   for pkg in $enableval; do
4961     if test "X$pkg" = "X$p"; then
4962       enable_static=yes
4963     fi
4964   done
4965   IFS="$ac_save_ifs"
4966   ;;
4967 esac
4968 else
4969   enable_static=yes
4970 fi;
4971 # Check whether --enable-fast-install or --disable-fast-install was given.
4972 if test "${enable_fast_install+set}" = set; then
4973   enableval="$enable_fast_install"
4974   p=${PACKAGE-default}
4975 case $enableval in
4976 yes) enable_fast_install=yes ;;
4977 no) enable_fast_install=no ;;
4978 *)
4979   enable_fast_install=no
4980   # Look at the argument we got.  We use all the common list separators.
4981   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4982   for pkg in $enableval; do
4983     if test "X$pkg" = "X$p"; then
4984       enable_fast_install=yes
4985     fi
4986   done
4987   IFS="$ac_save_ifs"
4988   ;;
4989 esac
4990 else
4991   enable_fast_install=yes
4992 fi;
4993
4994 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4995 if test "${with_gnu_ld+set}" = set; then
4996   withval="$with_gnu_ld"
4997   test "$withval" = no || with_gnu_ld=yes
4998 else
4999   with_gnu_ld=no
5000 fi;
5001 ac_prog=ld
5002 if test "$GCC" = yes; then
5003   # Check if gcc -print-prog-name=ld gives a path.
5004   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5005 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5006   case $host in
5007   *-*-mingw*)
5008     # gcc leaves a trailing carriage return which upsets mingw
5009     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5010   *)
5011     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5012   esac
5013   case $ac_prog in
5014     # Accept absolute paths.
5015     [\\/]* | [A-Za-z]:[\\/]*)
5016       re_direlt='/[^/][^/]*/\.\./'
5017       # Canonicalize the path of ld
5018       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5019       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5020         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5021       done
5022       test -z "$LD" && LD="$ac_prog"
5023       ;;
5024   "")
5025     # If it fails, then pretend we aren't using GCC.
5026     ac_prog=ld
5027     ;;
5028   *)
5029     # If it is relative, then search for the first ld in PATH.
5030     with_gnu_ld=unknown
5031     ;;
5032   esac
5033 elif test "$with_gnu_ld" = yes; then
5034   echo "$as_me:$LINENO: checking for GNU ld" >&5
5035 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5036 else
5037   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5038 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5039 fi
5040 if test "${lt_cv_path_LD+set}" = set; then
5041   echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043   if test -z "$LD"; then
5044   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5045   for ac_dir in $PATH; do
5046     test -z "$ac_dir" && ac_dir=.
5047     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5048       lt_cv_path_LD="$ac_dir/$ac_prog"
5049       # Check to see if the program is GNU ld.  I'd rather use --version,
5050       # but apparently some GNU ld's only accept -v.
5051       # Break only if it was the GNU/non-GNU ld that we prefer.
5052       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5053         test "$with_gnu_ld" != no && break
5054       else
5055         test "$with_gnu_ld" != yes && break
5056       fi
5057     fi
5058   done
5059   IFS="$ac_save_ifs"
5060 else
5061   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5062 fi
5063 fi
5064
5065 LD="$lt_cv_path_LD"
5066 if test -n "$LD"; then
5067   echo "$as_me:$LINENO: result: $LD" >&5
5068 echo "${ECHO_T}$LD" >&6
5069 else
5070   echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6
5072 fi
5073 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5074 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5075    { (exit 1); exit 1; }; }
5076 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5077 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5078 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5082 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5083   lt_cv_prog_gnu_ld=yes
5084 else
5085   lt_cv_prog_gnu_ld=no
5086 fi
5087 fi
5088 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5089 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5090 with_gnu_ld=$lt_cv_prog_gnu_ld
5091
5092
5093 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5094 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5095 if test "${lt_cv_ld_reload_flag+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   lt_cv_ld_reload_flag='-r'
5099 fi
5100 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5101 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5102 reload_flag=$lt_cv_ld_reload_flag
5103 test -n "$reload_flag" && reload_flag=" $reload_flag"
5104
5105 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5106 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5107 if test "${lt_cv_path_NM+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   if test -n "$NM"; then
5111   # Let the user override the test.
5112   lt_cv_path_NM="$NM"
5113 else
5114   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5115   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5116     test -z "$ac_dir" && ac_dir=.
5117     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5118     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5119       # Check to see if the nm accepts a BSD-compat flag.
5120       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5121       #   nm: unknown option "B" ignored
5122       # Tru64's nm complains that /dev/null is an invalid object file
5123       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5124         lt_cv_path_NM="$tmp_nm -B"
5125         break
5126       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5127         lt_cv_path_NM="$tmp_nm -p"
5128         break
5129       else
5130         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5131         continue # so that we can try to find one that supports BSD flags
5132       fi
5133     fi
5134   done
5135   IFS="$ac_save_ifs"
5136   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5137 fi
5138 fi
5139
5140 NM="$lt_cv_path_NM"
5141 echo "$as_me:$LINENO: result: $NM" >&5
5142 echo "${ECHO_T}$NM" >&6
5143
5144 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5145 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5146 if test "${lt_cv_deplibs_check_method+set}" = set; then
5147   echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149   lt_cv_file_magic_cmd='$MAGIC_CMD'
5150 lt_cv_file_magic_test_file=
5151 lt_cv_deplibs_check_method='unknown'
5152 # Need to set the preceding variable on all platforms that support
5153 # interlibrary dependencies.
5154 # 'none' -- dependencies not supported.
5155 # `unknown' -- same as none, but documents that we really don't know.
5156 # 'pass_all' -- all dependencies passed with no checks.
5157 # 'test_compile' -- check by making test program.
5158 # 'file_magic [regex]' -- check by looking for files in library path
5159 # which responds to the $file_magic_cmd with a given egrep regex.
5160 # If you have `file' or equivalent on your system and you're not sure
5161 # whether `pass_all' will *always* work, you probably want this one.
5162
5163 case $host_os in
5164 aix*)
5165   lt_cv_deplibs_check_method=pass_all
5166   ;;
5167
5168 beos*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 bsdi4*)
5173   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5174   lt_cv_file_magic_cmd='/usr/bin/file -L'
5175   lt_cv_file_magic_test_file=/shlib/libc.so
5176   ;;
5177
5178 cygwin* | mingw* |pw32*)
5179   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5180   lt_cv_file_magic_cmd='$OBJDUMP -f'
5181   ;;
5182
5183 darwin* | rhapsody*)
5184   # this will be overwritten by pass_all, but leave it in just in case
5185   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5186   lt_cv_file_magic_cmd='/usr/bin/file -L'
5187   case "$host_os" in
5188   rhapsody* | darwin1.012)
5189     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5190     ;;
5191   *) # Darwin 1.3 on
5192     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5193     ;;
5194   esac
5195   lt_cv_deplibs_check_method=pass_all
5196   ;;
5197
5198 freebsd* | kfreebsd*-gnu)
5199   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5200     case $host_cpu in
5201     i*86 )
5202       # Not sure whether the presence of OpenBSD here was a mistake.
5203       # Let's accept both of them until this is cleared up.
5204       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5205       lt_cv_file_magic_cmd=/usr/bin/file
5206       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5207       ;;
5208     esac
5209   else
5210     lt_cv_deplibs_check_method=pass_all
5211   fi
5212   ;;
5213
5214 gnu*)
5215   lt_cv_deplibs_check_method=pass_all
5216   ;;
5217
5218 hpux10.20*|hpux11*)
5219   case $host_cpu in
5220   hppa*)
5221     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5222     lt_cv_file_magic_cmd=/usr/bin/file
5223     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5224     ;;
5225   ia64*)
5226     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5227     lt_cv_file_magic_cmd=/usr/bin/file
5228     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5229     ;;
5230   esac
5231   ;;
5232
5233 irix5* | irix6*)
5234   case $host_os in
5235   irix5*)
5236     # this will be overridden with pass_all, but let us keep it just in case
5237     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5238     ;;
5239   *)
5240     case $LD in
5241     *-32|*"-32 ") libmagic=32-bit;;
5242     *-n32|*"-n32 ") libmagic=N32;;
5243     *-64|*"-64 ") libmagic=64-bit;;
5244     *) libmagic=never-match;;
5245     esac
5246     # this will be overridden with pass_all, but let us keep it just in case
5247     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5248     ;;
5249   esac
5250   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5251   lt_cv_deplibs_check_method=pass_all
5252   ;;
5253
5254 # This must be Linux ELF.
5255 linux-gnu*)
5256   lt_cv_deplibs_check_method=pass_all
5257   ;;
5258
5259 netbsd* | knetbsd*-gnu)
5260   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5261     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5262   else
5263     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5264   fi
5265   ;;
5266
5267 newsos6)
5268   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5269   lt_cv_file_magic_cmd=/usr/bin/file
5270   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5271   ;;
5272
5273 osf3* | osf4* | osf5*)
5274   # this will be overridden with pass_all, but let us keep it just in case
5275   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5276   lt_cv_file_magic_test_file=/shlib/libc.so
5277   lt_cv_deplibs_check_method=pass_all
5278   ;;
5279
5280 sco3.2v5*)
5281   lt_cv_deplibs_check_method=pass_all
5282   ;;
5283
5284 solaris*)
5285   lt_cv_deplibs_check_method=pass_all
5286   lt_cv_file_magic_test_file=/lib/libc.so
5287   ;;
5288
5289 sysv5uw[78]* | sysv4*uw2*)
5290   lt_cv_deplibs_check_method=pass_all
5291   ;;
5292
5293 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5294   case $host_vendor in
5295   ncr)
5296     lt_cv_deplibs_check_method=pass_all
5297     ;;
5298   motorola)
5299     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]'
5300     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5301     ;;
5302   esac
5303   ;;
5304 esac
5305
5306 fi
5307 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5308 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5309 file_magic_cmd=$lt_cv_file_magic_cmd
5310 deplibs_check_method=$lt_cv_deplibs_check_method
5311
5312
5313
5314
5315 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5316
5317 # find the maximum length of command line arguments
5318 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5319 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5320 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5321   echo $ECHO_N "(cached) $ECHO_C" >&6
5322 else
5323     i=0
5324   teststring="ABCD"
5325
5326   case $build_os in
5327   msdosdjgpp*)
5328     # On DJGPP, this test can blow up pretty badly due to problems in libc
5329     # (any single argument exceeding 2000 bytes causes a buffer overrun
5330     # during glob expansion).  Even if it were fixed, the result of this
5331     # check would be larger than it should be.
5332     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5333     ;;
5334
5335   cygwin* | mingw*)
5336     # On Win9x/ME, this test blows up -- it succeeds, but takes
5337     # about 5 minutes as the teststring grows exponentially.
5338     # Worse, since 9x/ME are not pre-emptively multitasking,
5339     # you end up with a "frozen" computer, even though with patience
5340     # the test eventually succeeds (with a max line length of 256k).
5341     # Instead, let's just punt: use the minimum linelength reported by
5342     # all of the supported platforms: 8192 (on NT/2K/XP).
5343     lt_cv_sys_max_cmd_len=8192;
5344     ;;
5345
5346   amigaos*)
5347     # On AmigaOS with pdksh, this test takes hours, literally.
5348     # So we just punt and use a minimum line length of 8192.
5349     lt_cv_sys_max_cmd_len=8192;
5350     ;;
5351
5352   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5353     # This has been around since 386BSD, at least.  Likely further.
5354     if test -x /sbin/sysctl; then
5355       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5356     elif test -x /usr/sbin/sysctl; then
5357       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5358     else
5359       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5360     fi
5361     # And add a safety zone
5362     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5363     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5364     ;;
5365   esac
5366
5367 fi
5368
5369 if test -n "$lt_cv_sys_max_cmd_len" ; then
5370   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5371 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5372 else
5373   echo "$as_me:$LINENO: result: none" >&5
5374 echo "${ECHO_T}none" >&6
5375 fi
5376
5377
5378 # Only perform the check for file, if the check method requires it
5379 case $deplibs_check_method in
5380 file_magic*)
5381   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5382     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5383 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5384 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   case $MAGIC_CMD in
5388   /*)
5389   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5390   ;;
5391   ?:/*)
5392   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5393   ;;
5394   *)
5395   ac_save_MAGIC_CMD="$MAGIC_CMD"
5396   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5397   ac_dummy="/usr/bin:$PATH"
5398   for ac_dir in $ac_dummy; do
5399     test -z "$ac_dir" && ac_dir=.
5400     if test -f $ac_dir/${ac_tool_prefix}file; then
5401       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5402       if test -n "$file_magic_test_file"; then
5403         case $deplibs_check_method in
5404         "file_magic "*)
5405           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5406           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5407           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5408             egrep "$file_magic_regex" > /dev/null; then
5409             :
5410           else
5411             cat <<EOF 1>&2
5412
5413 *** Warning: the command libtool uses to detect shared libraries,
5414 *** $file_magic_cmd, produces output that libtool cannot recognize.
5415 *** The result is that libtool may fail to recognize shared libraries
5416 *** as such.  This will affect the creation of libtool libraries that
5417 *** depend on shared libraries, but programs linked with such libtool
5418 *** libraries will work regardless of this problem.  Nevertheless, you
5419 *** may want to report the problem to your system manager and/or to
5420 *** bug-libtool@gnu.org
5421
5422 EOF
5423           fi ;;
5424         esac
5425       fi
5426       break
5427     fi
5428   done
5429   IFS="$ac_save_ifs"
5430   MAGIC_CMD="$ac_save_MAGIC_CMD"
5431   ;;
5432 esac
5433 fi
5434
5435 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5436 if test -n "$MAGIC_CMD"; then
5437   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5438 echo "${ECHO_T}$MAGIC_CMD" >&6
5439 else
5440   echo "$as_me:$LINENO: result: no" >&5
5441 echo "${ECHO_T}no" >&6
5442 fi
5443
5444 if test -z "$lt_cv_path_MAGIC_CMD"; then
5445   if test -n "$ac_tool_prefix"; then
5446     echo "$as_me:$LINENO: checking for file" >&5
5447 echo $ECHO_N "checking for file... $ECHO_C" >&6
5448 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   case $MAGIC_CMD in
5452   /*)
5453   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5454   ;;
5455   ?:/*)
5456   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5457   ;;
5458   *)
5459   ac_save_MAGIC_CMD="$MAGIC_CMD"
5460   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5461   ac_dummy="/usr/bin:$PATH"
5462   for ac_dir in $ac_dummy; do
5463     test -z "$ac_dir" && ac_dir=.
5464     if test -f $ac_dir/file; then
5465       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5466       if test -n "$file_magic_test_file"; then
5467         case $deplibs_check_method in
5468         "file_magic "*)
5469           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5470           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5471           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5472             egrep "$file_magic_regex" > /dev/null; then
5473             :
5474           else
5475             cat <<EOF 1>&2
5476
5477 *** Warning: the command libtool uses to detect shared libraries,
5478 *** $file_magic_cmd, produces output that libtool cannot recognize.
5479 *** The result is that libtool may fail to recognize shared libraries
5480 *** as such.  This will affect the creation of libtool libraries that
5481 *** depend on shared libraries, but programs linked with such libtool
5482 *** libraries will work regardless of this problem.  Nevertheless, you
5483 *** may want to report the problem to your system manager and/or to
5484 *** bug-libtool@gnu.org
5485
5486 EOF
5487           fi ;;
5488         esac
5489       fi
5490       break
5491     fi
5492   done
5493   IFS="$ac_save_ifs"
5494   MAGIC_CMD="$ac_save_MAGIC_CMD"
5495   ;;
5496 esac
5497 fi
5498
5499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5500 if test -n "$MAGIC_CMD"; then
5501   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5502 echo "${ECHO_T}$MAGIC_CMD" >&6
5503 else
5504   echo "$as_me:$LINENO: result: no" >&5
5505 echo "${ECHO_T}no" >&6
5506 fi
5507
5508   else
5509     MAGIC_CMD=:
5510   fi
5511 fi
5512
5513   fi
5514   ;;
5515 esac
5516
5517 if test -n "$ac_tool_prefix"; then
5518   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5519 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5520 echo "$as_me:$LINENO: checking for $ac_word" >&5
5521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5522 if test "${ac_cv_prog_RANLIB+set}" = set; then
5523   echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525   if test -n "$RANLIB"; then
5526   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531   IFS=$as_save_IFS
5532   test -z "$as_dir" && as_dir=.
5533   for ac_exec_ext in '' $ac_executable_extensions; do
5534   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537     break 2
5538   fi
5539 done
5540 done
5541
5542 fi
5543 fi
5544 RANLIB=$ac_cv_prog_RANLIB
5545 if test -n "$RANLIB"; then
5546   echo "$as_me:$LINENO: result: $RANLIB" >&5
5547 echo "${ECHO_T}$RANLIB" >&6
5548 else
5549   echo "$as_me:$LINENO: result: no" >&5
5550 echo "${ECHO_T}no" >&6
5551 fi
5552
5553 fi
5554 if test -z "$ac_cv_prog_RANLIB"; then
5555   ac_ct_RANLIB=$RANLIB
5556   # Extract the first word of "ranlib", so it can be a program name with args.
5557 set dummy ranlib; ac_word=$2
5558 echo "$as_me:$LINENO: checking for $ac_word" >&5
5559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   if test -n "$ac_ct_RANLIB"; then
5564   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571   for ac_exec_ext in '' $ac_executable_extensions; do
5572   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_prog_ac_ct_RANLIB="ranlib"
5574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578 done
5579
5580   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5581 fi
5582 fi
5583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5584 if test -n "$ac_ct_RANLIB"; then
5585   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5586 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5587 else
5588   echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590 fi
5591
5592   RANLIB=$ac_ct_RANLIB
5593 else
5594   RANLIB="$ac_cv_prog_RANLIB"
5595 fi
5596
5597 if test -n "$ac_tool_prefix"; then
5598   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5599 set dummy ${ac_tool_prefix}strip; ac_word=$2
5600 echo "$as_me:$LINENO: checking for $ac_word" >&5
5601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5602 if test "${ac_cv_prog_STRIP+set}" = set; then
5603   echo $ECHO_N "(cached) $ECHO_C" >&6
5604 else
5605   if test -n "$STRIP"; then
5606   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613   for ac_exec_ext in '' $ac_executable_extensions; do
5614   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5616     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620 done
5621
5622 fi
5623 fi
5624 STRIP=$ac_cv_prog_STRIP
5625 if test -n "$STRIP"; then
5626   echo "$as_me:$LINENO: result: $STRIP" >&5
5627 echo "${ECHO_T}$STRIP" >&6
5628 else
5629   echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5631 fi
5632
5633 fi
5634 if test -z "$ac_cv_prog_STRIP"; then
5635   ac_ct_STRIP=$STRIP
5636   # Extract the first word of "strip", so it can be a program name with args.
5637 set dummy strip; ac_word=$2
5638 echo "$as_me:$LINENO: checking for $ac_word" >&5
5639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5640 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   if test -n "$ac_ct_STRIP"; then
5644   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5645 else
5646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 for as_dir in $PATH
5648 do
5649   IFS=$as_save_IFS
5650   test -z "$as_dir" && as_dir=.
5651   for ac_exec_ext in '' $ac_executable_extensions; do
5652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5653     ac_cv_prog_ac_ct_STRIP="strip"
5654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655     break 2
5656   fi
5657 done
5658 done
5659
5660   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5661 fi
5662 fi
5663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5664 if test -n "$ac_ct_STRIP"; then
5665   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5666 echo "${ECHO_T}$ac_ct_STRIP" >&6
5667 else
5668   echo "$as_me:$LINENO: result: no" >&5
5669 echo "${ECHO_T}no" >&6
5670 fi
5671
5672   STRIP=$ac_ct_STRIP
5673 else
5674   STRIP="$ac_cv_prog_STRIP"
5675 fi
5676
5677
5678 # Check for any special flags to pass to ltconfig.
5679 libtool_flags="--cache-file=$cache_file"
5680 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5681 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5682 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5683 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5684 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5685
5686
5687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5688 if test "${enable_libtool_lock+set}" = set; then
5689   enableval="$enable_libtool_lock"
5690
5691 fi;
5692 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5693 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5694
5695
5696 # Check whether --with-pic or --without-pic was given.
5697 if test "${with_pic+set}" = set; then
5698   withval="$with_pic"
5699   pic_mode="$withval"
5700 else
5701   pic_mode=default
5702 fi;
5703 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5704 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5705
5706 # Some flags need to be propagated to the compiler or linker for good
5707 # libtool support.
5708 case $host in
5709 *-*-irix6*)
5710   # Find out which ABI we are using.
5711   echo '#line 5711 "configure"' > conftest.$ac_ext
5712   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5713   (eval $ac_compile) 2>&5
5714   ac_status=$?
5715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716   (exit $ac_status); }; then
5717    if test "$lt_cv_prog_gnu_ld" = yes; then
5718     case `/usr/bin/file conftest.$ac_objext` in
5719     *32-bit*)
5720       LD="${LD-ld} -melf32bsmip"
5721       ;;
5722     *N32*)
5723       LD="${LD-ld} -melf32bmipn32"
5724       ;;
5725     *64-bit*)
5726       LD="${LD-ld} -melf64bmip"
5727       ;;
5728     esac
5729    else
5730     case `/usr/bin/file conftest.$ac_objext` in
5731     *32-bit*)
5732       LD="${LD-ld} -32"
5733       ;;
5734     *N32*)
5735       LD="${LD-ld} -n32"
5736       ;;
5737     *64-bit*)
5738       LD="${LD-ld} -64"
5739       ;;
5740     esac
5741    fi
5742   fi
5743   rm -rf conftest*
5744   ;;
5745
5746 ia64-*-hpux*)
5747   # Find out which ABI we are using.
5748   echo 'int i;' > conftest.$ac_ext
5749   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750   (eval $ac_compile) 2>&5
5751   ac_status=$?
5752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753   (exit $ac_status); }; then
5754     case "`/usr/bin/file conftest.o`" in
5755     *ELF-32*)
5756       HPUX_IA64_MODE="32"
5757       ;;
5758     *ELF-64*)
5759       HPUX_IA64_MODE="64"
5760       ;;
5761     esac
5762   fi
5763   rm -rf conftest*
5764   ;;
5765
5766 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5767   # Find out which ABI we are using.
5768   echo 'int i;' > conftest.$ac_ext
5769   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5770   (eval $ac_compile) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; then
5774     case "`/usr/bin/file conftest.o`" in
5775     *32-bit*)
5776       case $host in
5777         x86_64-*linux*)
5778           LD="${LD-ld} -m elf_i386"
5779           ;;
5780         ppc64-*linux*|powerpc64-*linux*)
5781           LD="${LD-ld} -m elf32ppclinux"
5782           ;;
5783         s390x-*linux*)
5784           LD="${LD-ld} -m elf_s390"
5785           ;;
5786         sparc64-*linux*)
5787           LD="${LD-ld} -m elf32_sparc"
5788           ;;
5789       esac
5790       ;;
5791     *64-bit*)
5792       case $host in
5793         x86_64-*linux*)
5794           LD="${LD-ld} -m elf_x86_64"
5795           ;;
5796         ppc*-*linux*|powerpc*-*linux*)
5797           LD="${LD-ld} -m elf64ppc"
5798           ;;
5799         s390*-*linux*)
5800           LD="${LD-ld} -m elf64_s390"
5801           ;;
5802         sparc*-*linux*)
5803           LD="${LD-ld} -m elf64_sparc"
5804           ;;
5805       esac
5806       ;;
5807     esac
5808   fi
5809   rm -rf conftest*
5810   ;;
5811
5812 *-*-sco3.2v5*)
5813   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5814   SAVE_CFLAGS="$CFLAGS"
5815   CFLAGS="$CFLAGS -belf"
5816   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5817 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5818 if test "${lt_cv_cc_needs_belf+set}" = set; then
5819   echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821
5822
5823      ac_ext=c
5824 ac_cpp='$CPP $CPPFLAGS'
5825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828
5829      if test x$gcc_no_link = xyes; then
5830   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5832    { (exit 1); exit 1; }; }
5833 fi
5834 cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840
5841 int
5842 main ()
5843 {
5844
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851   (eval $ac_link) 2>conftest.er1
5852   ac_status=$?
5853   grep -v '^ *+' conftest.er1 >conftest.err
5854   rm -f conftest.er1
5855   cat conftest.err >&5
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } &&
5858          { ac_try='test -z "$ac_c_werror_flag"
5859                          || test ! -s conftest.err'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; } &&
5865          { ac_try='test -s conftest$ac_exeext'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; }; then
5871   lt_cv_cc_needs_belf=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876 lt_cv_cc_needs_belf=no
5877 fi
5878 rm -f conftest.err conftest.$ac_objext \
5879       conftest$ac_exeext conftest.$ac_ext
5880      ac_ext=c
5881 ac_cpp='$CPP $CPPFLAGS'
5882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5885
5886 fi
5887 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5888 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5889   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5890     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5891     CFLAGS="$SAVE_CFLAGS"
5892   fi
5893   ;;
5894
5895
5896 esac
5897
5898
5899 # Save cache, so that ltconfig can load it
5900 cat >confcache <<\_ACEOF
5901 # This file is a shell script that caches the results of configure
5902 # tests run on this system so they can be shared between configure
5903 # scripts and configure runs, see configure's option --config-cache.
5904 # It is not useful on other systems.  If it contains results you don't
5905 # want to keep, you may remove or edit it.
5906 #
5907 # config.status only pays attention to the cache file if you give it
5908 # the --recheck option to rerun configure.
5909 #
5910 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5911 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5912 # following values.
5913
5914 _ACEOF
5915
5916 # The following way of writing the cache mishandles newlines in values,
5917 # but we know of no workaround that is simple, portable, and efficient.
5918 # So, don't put newlines in cache variables' values.
5919 # Ultrix sh set writes to stderr and can't be redirected directly,
5920 # and sets the high bit in the cache file unless we assign to the vars.
5921 {
5922   (set) 2>&1 |
5923     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5924     *ac_space=\ *)
5925       # `set' does not quote correctly, so add quotes (double-quote
5926       # substitution turns \\\\ into \\, and sed turns \\ into \).
5927       sed -n \
5928         "s/'/'\\\\''/g;
5929           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5930       ;;
5931     *)
5932       # `set' quotes correctly as required by POSIX, so do not add quotes.
5933       sed -n \
5934         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5935       ;;
5936     esac;
5937 } |
5938   sed '
5939      t clear
5940      : clear
5941      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5942      t end
5943      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5944      : end' >>confcache
5945 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5946   if test -w $cache_file; then
5947     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5948     cat confcache >$cache_file
5949   else
5950     echo "not updating unwritable cache $cache_file"
5951   fi
5952 fi
5953 rm -f confcache
5954
5955 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5956 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5957 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5958 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5959 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5960 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5961 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5962 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5963 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5964 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5965 echo "$as_me: error: libtool configure failed" >&2;}
5966    { (exit 1); exit 1; }; }
5967
5968 # Reload cache, that may have been modified by ltconfig
5969 if test -r "$cache_file"; then
5970   # Some versions of bash will fail to source /dev/null (special
5971   # files actually), so we avoid doing that.
5972   if test -f "$cache_file"; then
5973     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5974 echo "$as_me: loading cache $cache_file" >&6;}
5975     case $cache_file in
5976       [\\/]* | ?:[\\/]* ) . $cache_file;;
5977       *)                      . ./$cache_file;;
5978     esac
5979   fi
5980 else
5981   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5982 echo "$as_me: creating cache $cache_file" >&6;}
5983   >$cache_file
5984 fi
5985
5986
5987 # This can be used to rebuild libtool when needed
5988 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5989
5990 # Always use our own libtool.
5991 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5992
5993 # Redirect the config.log output again, so that the ltconfig log is not
5994 # clobbered by the next message.
5995 exec 5>>./config.log
5996
5997 ac_ext=cc
5998 ac_cpp='$CXXCPP $CPPFLAGS'
5999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6002 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6003 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6004 if test -z "$CXXCPP"; then
6005   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6006   echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008       # Double quotes because CXXCPP needs to be expanded
6009     for CXXCPP in "$CXX -E" "/lib/cpp"
6010     do
6011       ac_preproc_ok=false
6012 for ac_cxx_preproc_warn_flag in '' yes
6013 do
6014   # Use a header file that comes with gcc, so configuring glibc
6015   # with a fresh cross-compiler works.
6016   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6017   # <limits.h> exists even on freestanding compilers.
6018   # On the NeXT, cc -E runs the code through the compiler's parser,
6019   # not just through cpp. "Syntax error" is here to catch this case.
6020   cat >conftest.$ac_ext <<_ACEOF
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026 #ifdef __STDC__
6027 # include <limits.h>
6028 #else
6029 # include <assert.h>
6030 #endif
6031                      Syntax error
6032 _ACEOF
6033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6034   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6035   ac_status=$?
6036   grep -v '^ *+' conftest.er1 >conftest.err
6037   rm -f conftest.er1
6038   cat conftest.err >&5
6039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040   (exit $ac_status); } >/dev/null; then
6041   if test -s conftest.err; then
6042     ac_cpp_err=$ac_cxx_preproc_warn_flag
6043     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6044   else
6045     ac_cpp_err=
6046   fi
6047 else
6048   ac_cpp_err=yes
6049 fi
6050 if test -z "$ac_cpp_err"; then
6051   :
6052 else
6053   echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6055
6056   # Broken: fails on valid input.
6057 continue
6058 fi
6059 rm -f conftest.err conftest.$ac_ext
6060
6061   # OK, works on sane cases.  Now check whether non-existent headers
6062   # can be detected and how.
6063   cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069 #include <ac_nonexistent.h>
6070 _ACEOF
6071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6072   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6073   ac_status=$?
6074   grep -v '^ *+' conftest.er1 >conftest.err
6075   rm -f conftest.er1
6076   cat conftest.err >&5
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } >/dev/null; then
6079   if test -s conftest.err; then
6080     ac_cpp_err=$ac_cxx_preproc_warn_flag
6081     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6082   else
6083     ac_cpp_err=
6084   fi
6085 else
6086   ac_cpp_err=yes
6087 fi
6088 if test -z "$ac_cpp_err"; then
6089   # Broken: success on invalid input.
6090 continue
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095   # Passes both tests.
6096 ac_preproc_ok=:
6097 break
6098 fi
6099 rm -f conftest.err conftest.$ac_ext
6100
6101 done
6102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6103 rm -f conftest.err conftest.$ac_ext
6104 if $ac_preproc_ok; then
6105   break
6106 fi
6107
6108     done
6109     ac_cv_prog_CXXCPP=$CXXCPP
6110
6111 fi
6112   CXXCPP=$ac_cv_prog_CXXCPP
6113 else
6114   ac_cv_prog_CXXCPP=$CXXCPP
6115 fi
6116 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6117 echo "${ECHO_T}$CXXCPP" >&6
6118 ac_preproc_ok=false
6119 for ac_cxx_preproc_warn_flag in '' yes
6120 do
6121   # Use a header file that comes with gcc, so configuring glibc
6122   # with a fresh cross-compiler works.
6123   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6124   # <limits.h> exists even on freestanding compilers.
6125   # On the NeXT, cc -E runs the code through the compiler's parser,
6126   # not just through cpp. "Syntax error" is here to catch this case.
6127   cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h.  */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h.  */
6133 #ifdef __STDC__
6134 # include <limits.h>
6135 #else
6136 # include <assert.h>
6137 #endif
6138                      Syntax error
6139 _ACEOF
6140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6142   ac_status=$?
6143   grep -v '^ *+' conftest.er1 >conftest.err
6144   rm -f conftest.er1
6145   cat conftest.err >&5
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); } >/dev/null; then
6148   if test -s conftest.err; then
6149     ac_cpp_err=$ac_cxx_preproc_warn_flag
6150     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6151   else
6152     ac_cpp_err=
6153   fi
6154 else
6155   ac_cpp_err=yes
6156 fi
6157 if test -z "$ac_cpp_err"; then
6158   :
6159 else
6160   echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6162
6163   # Broken: fails on valid input.
6164 continue
6165 fi
6166 rm -f conftest.err conftest.$ac_ext
6167
6168   # OK, works on sane cases.  Now check whether non-existent headers
6169   # can be detected and how.
6170   cat >conftest.$ac_ext <<_ACEOF
6171 /* confdefs.h.  */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h.  */
6176 #include <ac_nonexistent.h>
6177 _ACEOF
6178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } >/dev/null; then
6186   if test -s conftest.err; then
6187     ac_cpp_err=$ac_cxx_preproc_warn_flag
6188     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6189   else
6190     ac_cpp_err=
6191   fi
6192 else
6193   ac_cpp_err=yes
6194 fi
6195 if test -z "$ac_cpp_err"; then
6196   # Broken: success on invalid input.
6197 continue
6198 else
6199   echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202   # Passes both tests.
6203 ac_preproc_ok=:
6204 break
6205 fi
6206 rm -f conftest.err conftest.$ac_ext
6207
6208 done
6209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6210 rm -f conftest.err conftest.$ac_ext
6211 if $ac_preproc_ok; then
6212   :
6213 else
6214   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6215 See \`config.log' for more details." >&5
6216 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6217 See \`config.log' for more details." >&2;}
6218    { (exit 1); exit 1; }; }
6219 fi
6220
6221 ac_ext=c
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6226
6227
6228
6229 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6230 lt_save_CC="$CC"
6231 lt_save_CFLAGS="$CFLAGS"
6232 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6233 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6234 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6235 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6236 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6237 deplibs_check_method="$deplibs_check_method" \
6238 file_magic_cmd="$file_magic_cmd" \
6239 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6240 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6241 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6242 echo "$as_me: error: libtool tag configuration failed" >&2;}
6243    { (exit 1); exit 1; }; }
6244 CC="$lt_save_CC"
6245 CFLAGS="$lt_save_CFLAGS"
6246
6247 # Redirect the config.log output again, so that the ltconfig log is not
6248 # clobbered by the next message.
6249 exec 5>>./config.log
6250
6251
6252
6253
6254
6255
6256
6257 for ac_prog in gcj
6258 do
6259   # Extract the first word of "$ac_prog", so it can be a program name with args.
6260 set dummy $ac_prog; ac_word=$2
6261 echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263 if test "${ac_cv_prog_GCJ+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   if test -n "$GCJ"; then
6267   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276     ac_cv_prog_GCJ="$ac_prog"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282
6283 fi
6284 fi
6285 GCJ=$ac_cv_prog_GCJ
6286 if test -n "$GCJ"; then
6287   echo "$as_me:$LINENO: result: $GCJ" >&5
6288 echo "${ECHO_T}$GCJ" >&6
6289 else
6290   echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6292 fi
6293
6294   test -n "$GCJ" && break
6295 done
6296 test -n "$GCJ" || GCJ="gcj"
6297
6298 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6299 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6300    { (exit 1); exit 1; }; }
6301 if test "x${GCJFLAGS-unset}" = xunset; then
6302    GCJFLAGS="-g -O2"
6303 fi
6304
6305
6306 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6307
6308 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6309 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6310 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6314   # We make a subdir and do the tests there.  Otherwise we can end up
6315   # making bogus files that we don't know about and never remove.  For
6316   # instance it was reported that on HP-UX the gcc test will end up
6317   # making a dummy file named `D' -- because `-MD' means `put the output
6318   # in D'.
6319   mkdir conftest.dir
6320   # Copy depcomp to subdir because otherwise we won't find it if we're
6321   # using a relative directory.
6322   cp "$am_depcomp" conftest.dir
6323   cd conftest.dir
6324   # We will build objects and dependencies in a subdirectory because
6325   # it helps to detect inapplicable dependency modes.  For instance
6326   # both Tru64's cc and ICC support -MD to output dependencies as a
6327   # side effect of compilation, but ICC will put the dependencies in
6328   # the current directory while Tru64 will put them in the object
6329   # directory.
6330   mkdir sub
6331
6332   am_cv_GCJ_dependencies_compiler_type=none
6333   if test "$am_compiler_list" = ""; then
6334      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6335   fi
6336   for depmode in $am_compiler_list; do
6337     # Setup a source with many dependencies, because some compilers
6338     # like to wrap large dependency lists on column 80 (with \), and
6339     # we should not choose a depcomp mode which is confused by this.
6340     #
6341     # We need to recreate these files for each test, as the compiler may
6342     # overwrite some of them when testing with obscure command lines.
6343     # This happens at least with the AIX C compiler.
6344     : > sub/conftest.c
6345     for i in 1 2 3 4 5 6; do
6346       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6347       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6348       # Solaris 8's {/usr,}/bin/sh.
6349       touch sub/conftst$i.h
6350     done
6351     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6352
6353     case $depmode in
6354     nosideeffect)
6355       # after this tag, mechanisms are not by side-effect, so they'll
6356       # only be used when explicitly requested
6357       if test "x$enable_dependency_tracking" = xyes; then
6358         continue
6359       else
6360         break
6361       fi
6362       ;;
6363     none) break ;;
6364     esac
6365     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6366     # mode.  It turns out that the SunPro C++ compiler does not properly
6367     # handle `-M -o', and we need to detect this.
6368     if depmode=$depmode \
6369        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6370        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6371        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6372          >/dev/null 2>conftest.err &&
6373        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6374        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6375        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6376       # icc doesn't choke on unknown options, it will just issue warnings
6377       # or remarks (even with -Werror).  So we grep stderr for any message
6378       # that says an option was ignored or not supported.
6379       # When given -MP, icc 7.0 and 7.1 complain thusly:
6380       #   icc: Command line warning: ignoring option '-M'; no argument required
6381       # The diagnosis changed in icc 8.0:
6382       #   icc: Command line remark: option '-MP' not supported
6383       if (grep 'ignoring option' conftest.err ||
6384           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6385         am_cv_GCJ_dependencies_compiler_type=$depmode
6386         break
6387       fi
6388     fi
6389   done
6390
6391   cd ..
6392   rm -rf conftest.dir
6393 else
6394   am_cv_GCJ_dependencies_compiler_type=none
6395 fi
6396
6397 fi
6398 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6399 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6400 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6401
6402
6403
6404 if
6405   test "x$enable_dependency_tracking" != xno \
6406   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6407   am__fastdepGCJ_TRUE=
6408   am__fastdepGCJ_FALSE='#'
6409 else
6410   am__fastdepGCJ_TRUE='#'
6411   am__fastdepGCJ_FALSE=
6412 fi
6413
6414
6415
6416
6417 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6418 lt_save_CC="$CC"
6419 lt_save_CFLAGS="$CFLAGS"
6420 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6421 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6422 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6423 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6424 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6425 deplibs_check_method="$deplibs_check_method" \
6426 file_magic_cmd="$file_magic_cmd" \
6427 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6428 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6429 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6430 echo "$as_me: error: libtool tag configuration failed" >&2;}
6431    { (exit 1); exit 1; }; }
6432 CC="$lt_save_CC"
6433 CFLAGS="$lt_save_CFLAGS"
6434
6435 # Redirect the config.log output again, so that the ltconfig log is not
6436 # clobbered by the next message.
6437 exec 5>>./config.log
6438
6439
6440
6441 if test "x$CC" != xcc; then
6442   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6443 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6444 else
6445   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6446 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6447 fi
6448 set dummy $CC; ac_cc=`echo $2 |
6449                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6450 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6451   echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453   cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459
6460 int
6461 main ()
6462 {
6463
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 # Make sure it works both with $CC and with simple cc.
6469 # We do the test twice because some compilers refuse to overwrite an
6470 # existing .o file with -o, though they will create one.
6471 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6472 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473   (eval $ac_try) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478   (eval $ac_try) 2>&5
6479   ac_status=$?
6480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); };
6482 then
6483   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6484   if test "x$CC" != xcc; then
6485     # Test first that cc exists at all.
6486     if { ac_try='cc -c conftest.$ac_ext >&5'
6487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488   (eval $ac_try) 2>&5
6489   ac_status=$?
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); }; }; then
6492       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6493       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494   (eval $ac_try) 2>&5
6495   ac_status=$?
6496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } &&
6498          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499   (eval $ac_try) 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); };
6503       then
6504         # cc works too.
6505         :
6506       else
6507         # cc exists but doesn't like -o.
6508         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6509       fi
6510     fi
6511   fi
6512 else
6513   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6514 fi
6515 rm -f conftest*
6516
6517 fi
6518 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6519   echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6
6521 else
6522   echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6524
6525 cat >>confdefs.h <<\_ACEOF
6526 #define NO_MINUS_C_MINUS_O 1
6527 _ACEOF
6528
6529 fi
6530
6531 # FIXME: we rely on the cache variable name because
6532 # there is no other way.
6533 set dummy $CC
6534 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6535 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6536    # Losing compiler, so override with the script.
6537    # FIXME: It is wrong to rewrite CC.
6538    # But if we don't then we get into trouble of one sort or another.
6539    # A longer-term fix would be to have automake use am__CC in this case,
6540    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6541    CC="$am_aux_dir/compile $CC"
6542 fi
6543
6544
6545
6546
6547 subdirs="$subdirs classpath libltdl"
6548
6549
6550 # The -no-testsuite modules omit the test subdir.
6551
6552
6553 if test -d $srcdir/testsuite; then
6554   TESTSUBDIR_TRUE=
6555   TESTSUBDIR_FALSE='#'
6556 else
6557   TESTSUBDIR_TRUE='#'
6558   TESTSUBDIR_FALSE=
6559 fi
6560
6561
6562 # Should the runtime set system properties by examining the
6563 # environment variable GCJ_PROPERTIES?
6564 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6565 if test "${enable_getenv_properties+set}" = set; then
6566   enableval="$enable_getenv_properties"
6567
6568 fi;
6569
6570 # Whether GCJ_PROPERTIES is used depends on the target.
6571 if test -z "$enable_getenv_properties"; then
6572    enable_getenv_properties=${enable_getenv_properties_default-yes}
6573 fi
6574 if test "$enable_getenv_properties" = no; then
6575
6576 cat >>confdefs.h <<\_ACEOF
6577 #define DISABLE_GETENV_PROPERTIES 1
6578 _ACEOF
6579
6580 fi
6581
6582 # Whether we should use arguments to main()
6583 if test -z "$enable_main_args"; then
6584    enable_main_args=${enable_main_args_default-yes}
6585 fi
6586 if test "$enable_main_args" = no; then
6587
6588 cat >>confdefs.h <<\_ACEOF
6589 #define DISABLE_MAIN_ARGS 1
6590 _ACEOF
6591
6592 fi
6593
6594
6595 # Should we use hashtable-based synchronization?
6596 # Currently works only for Linux X86/ia64
6597 # Typically faster and more space-efficient
6598 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6599 if test "${enable_hash_synchronization+set}" = set; then
6600   enableval="$enable_hash_synchronization"
6601
6602 fi;
6603
6604 if test -z "$enable_hash_synchronization"; then
6605    enable_hash_synchronization=$enable_hash_synchronization_default
6606 fi
6607
6608
6609 # Check whether --with-java-home or --without-java-home was given.
6610 if test "${with_java_home+set}" = set; then
6611   withval="$with_java_home"
6612   JAVA_HOME="${withval}"
6613 else
6614   JAVA_HOME=""
6615 fi;
6616
6617
6618 if test ! -z "$JAVA_HOME"; then
6619   JAVA_HOME_SET_TRUE=
6620   JAVA_HOME_SET_FALSE='#'
6621 else
6622   JAVA_HOME_SET_TRUE='#'
6623   JAVA_HOME_SET_FALSE=
6624 fi
6625
6626
6627
6628 # What is the native OS API for MinGW?
6629
6630 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6631 if test "${with_win32_nlsapi+set}" = set; then
6632   withval="$with_win32_nlsapi"
6633   case "${withval}" in
6634   ansi) with_win32_nlsapi=ansi ;;
6635   unicows) with_win32_nlsapi=unicows ;;
6636   unicode) with_win32_nlsapi=unicode ;;
6637   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6638 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6639    { (exit 1); exit 1; }; } ;;
6640 esac
6641 else
6642   with_win32_nlsapi=ansi
6643 fi;
6644
6645 case "${with_win32_nlsapi}" in
6646   unicows | unicode)
6647
6648 cat >>confdefs.h <<\_ACEOF
6649 #define MINGW_LIBGCJ_UNICODE 1
6650 _ACEOF
6651
6652     ;;
6653 esac
6654
6655 # configure.host sets slow_pthread_self if the synchronization code should
6656 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6657 if test "${slow_pthread_self}" = "yes"; then
6658
6659 cat >>confdefs.h <<\_ACEOF
6660 #define SLOW_PTHREAD_SELF 1
6661 _ACEOF
6662
6663 fi
6664
6665 # Check for gc debugging.  This option is handled both here and in the GC.
6666 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6667 if test "${enable_gc_debug+set}" = set; then
6668   enableval="$enable_gc_debug"
6669    if test "$enable_gc_debug" = "yes"; then
6670
6671 cat >>confdefs.h <<\_ACEOF
6672 #define LIBGCJ_GC_DEBUG 1
6673 _ACEOF
6674
6675   fi
6676 fi;
6677
6678 # See if the user has the interpreter included.
6679 # Check whether --enable-interpreter or --disable-interpreter was given.
6680 if test "${enable_interpreter+set}" = set; then
6681   enableval="$enable_interpreter"
6682   if test "$enable_interpreter" = yes; then
6683     # This can also be set in configure.host.
6684     libgcj_interpreter=yes
6685   elif test "$enable_interpreter" = no; then
6686     libgcj_interpreter=no
6687   fi
6688 fi;
6689
6690 if test "$libgcj_interpreter" = yes; then
6691
6692 cat >>confdefs.h <<\_ACEOF
6693 #define INTERPRETER 1
6694 _ACEOF
6695
6696 fi
6697 INTERPRETER="$libgcj_interpreter"
6698
6699
6700 echo "$as_me:$LINENO: checking for exception model to use" >&5
6701 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6702 ac_ext=cc
6703 ac_cpp='$CXXCPP $CPPFLAGS'
6704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6707
6708 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6709 if test "${enable_sjlj_exceptions+set}" = set; then
6710   enableval="$enable_sjlj_exceptions"
6711   :
6712 else
6713   cat > conftest.$ac_ext << EOF
6714 #line 6714 "configure"
6715 struct S { ~S(); };
6716 void bar();
6717 void foo()
6718 {
6719   S s;
6720   bar();
6721 }
6722 EOF
6723 old_CXXFLAGS="$CXXFLAGS"
6724 CXXFLAGS=-S
6725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726   (eval $ac_compile) 2>&5
6727   ac_status=$?
6728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); }; then
6730   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6731     enable_sjlj_exceptions=yes
6732   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6733     enable_sjlj_exceptions=no
6734   fi
6735 fi
6736 CXXFLAGS="$old_CXXFLAGS"
6737 rm -f conftest*
6738 fi;
6739 if test x$enable_sjlj_exceptions = xyes; then
6740
6741 cat >>confdefs.h <<\_ACEOF
6742 #define SJLJ_EXCEPTIONS 1
6743 _ACEOF
6744
6745   ac_exception_model_name=sjlj
6746 elif test x$enable_sjlj_exceptions = xno; then
6747   ac_exception_model_name="call frame"
6748 else
6749   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6750 echo "$as_me: error: unable to detect exception model" >&2;}
6751    { (exit 1); exit 1; }; }
6752 fi
6753 ac_ext=c
6754 ac_cpp='$CPP $CPPFLAGS'
6755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6760 echo "${ECHO_T}$ac_exception_model_name" >&6
6761
6762 # If we are non using SJLJ exceptions, and this host does not have support
6763 # for unwinding from a signal handler, enable checked dereferences and divides.
6764 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6765   CHECKREFSPEC=-fcheck-references
6766   DIVIDESPEC=-fuse-divide-subroutine
6767   EXCEPTIONSPEC=
6768 fi
6769
6770 # See if the user wants to disable java.net.  This is the mildly
6771 # ugly way that we admit that target-side configuration sucks.
6772 # Check whether --enable-java-net or --disable-java-net was given.
6773 if test "${enable_java_net+set}" = set; then
6774   enableval="$enable_java_net"
6775
6776 fi;
6777
6778 # Whether java.net is built by default can depend on the target.
6779 if test -z "$enable_java_net"; then
6780    enable_java_net=${enable_java_net_default-yes}
6781 fi
6782 if test "$enable_java_net" = no; then
6783
6784 cat >>confdefs.h <<\_ACEOF
6785 #define DISABLE_JAVA_NET 1
6786 _ACEOF
6787
6788 fi
6789
6790 # See if the user wants to configure without libffi.  Some
6791 # architectures don't support it, and default values are set in
6792 # configure.host.
6793
6794 # Check whether --with-libffi or --without-libffi was given.
6795 if test "${with_libffi+set}" = set; then
6796   withval="$with_libffi"
6797   :
6798 else
6799   with_libffi=${with_libffi_default-yes}
6800 fi;
6801
6802 LIBFFI=
6803 LIBFFIINCS=
6804 if test "$with_libffi" != no; then
6805
6806 cat >>confdefs.h <<\_ACEOF
6807 #define USE_LIBFFI 1
6808 _ACEOF
6809
6810    LIBFFI=../libffi/libffi_convenience.la
6811    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6812 fi
6813
6814
6815
6816 # See if the user wants to disable JVMPI support.
6817 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6818 if test "${enable_jvmpi+set}" = set; then
6819   enableval="$enable_jvmpi"
6820
6821 fi;
6822
6823 if test "$enable_jvmpi" != no; then
6824
6825 cat >>confdefs.h <<\_ACEOF
6826 #define ENABLE_JVMPI 1
6827 _ACEOF
6828
6829 fi
6830
6831 # If the target is an eCos system, use the appropriate eCos
6832 # I/O routines.
6833 # FIXME: this should not be a local option but a global target
6834 # system; at present there is no eCos target.
6835 TARGET_ECOS=${PROCESS-"no"}
6836
6837 # Check whether --with-ecos or --without-ecos was given.
6838 if test "${with_ecos+set}" = set; then
6839   withval="$with_ecos"
6840   TARGET_ECOS="$with_ecos"
6841
6842 fi;
6843
6844 PLATFORM_INNER_NAT_HDRS=
6845 case "$TARGET_ECOS" in
6846    no) case "$host" in
6847       *mingw*)
6848             PLATFORM=Win32
6849             PLATFORMNET=Win32
6850             PLATFORMH=win32.h
6851
6852 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6853 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6854 LD_PROG=`$CC --print-prog-name=ld`
6855 LD_VERSION=`$LD_PROG --version`
6856 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6857 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6858 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6859   LD_OK="ok"
6860 else
6861   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6862     LD_OK="ok"
6863   fi
6864 fi
6865 if test "x$LD_OK" != x; then
6866   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6867 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6868 else
6869   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6870 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6871   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6872 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6873
6874 cat >>confdefs.h <<\_ACEOF
6875 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6876 _ACEOF
6877
6878 fi
6879       ;;
6880       *)
6881             PLATFORM=Posix
6882             PLATFORMNET=Posix
6883             PLATFORMH=posix.h
6884             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6885       ;;
6886       esac
6887       ;;
6888    *)
6889       PLATFORM=Ecos
6890       PLATFORMNET=NoNet
6891
6892 cat >>confdefs.h <<\_ACEOF
6893 #define ECOS 1
6894 _ACEOF
6895
6896       PLATFORMH=posix.h
6897       ;;
6898 esac
6899
6900           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6901
6902
6903 ac_ext=c
6904 ac_cpp='$CPP $CPPFLAGS'
6905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6908 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6909 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6910 # On Suns, sometimes $CPP names a directory.
6911 if test -n "$CPP" && test -d "$CPP"; then
6912   CPP=
6913 fi
6914 if test -z "$CPP"; then
6915   if test "${ac_cv_prog_CPP+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918       # Double quotes because CPP needs to be expanded
6919     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6920     do
6921       ac_preproc_ok=false
6922 for ac_c_preproc_warn_flag in '' yes
6923 do
6924   # Use a header file that comes with gcc, so configuring glibc
6925   # with a fresh cross-compiler works.
6926   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927   # <limits.h> exists even on freestanding compilers.
6928   # On the NeXT, cc -E runs the code through the compiler's parser,
6929   # not just through cpp. "Syntax error" is here to catch this case.
6930   cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936 #ifdef __STDC__
6937 # include <limits.h>
6938 #else
6939 # include <assert.h>
6940 #endif
6941                      Syntax error
6942 _ACEOF
6943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } >/dev/null; then
6951   if test -s conftest.err; then
6952     ac_cpp_err=$ac_c_preproc_warn_flag
6953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6954   else
6955     ac_cpp_err=
6956   fi
6957 else
6958   ac_cpp_err=yes
6959 fi
6960 if test -z "$ac_cpp_err"; then
6961   :
6962 else
6963   echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6965
6966   # Broken: fails on valid input.
6967 continue
6968 fi
6969 rm -f conftest.err conftest.$ac_ext
6970
6971   # OK, works on sane cases.  Now check whether non-existent headers
6972   # can be detected and how.
6973   cat >conftest.$ac_ext <<_ACEOF
6974 /* confdefs.h.  */
6975 _ACEOF
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h.  */
6979 #include <ac_nonexistent.h>
6980 _ACEOF
6981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6983   ac_status=$?
6984   grep -v '^ *+' conftest.er1 >conftest.err
6985   rm -f conftest.er1
6986   cat conftest.err >&5
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); } >/dev/null; then
6989   if test -s conftest.err; then
6990     ac_cpp_err=$ac_c_preproc_warn_flag
6991     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6992   else
6993     ac_cpp_err=
6994   fi
6995 else
6996   ac_cpp_err=yes
6997 fi
6998 if test -z "$ac_cpp_err"; then
6999   # Broken: success on invalid input.
7000 continue
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005   # Passes both tests.
7006 ac_preproc_ok=:
7007 break
7008 fi
7009 rm -f conftest.err conftest.$ac_ext
7010
7011 done
7012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7013 rm -f conftest.err conftest.$ac_ext
7014 if $ac_preproc_ok; then
7015   break
7016 fi
7017
7018     done
7019     ac_cv_prog_CPP=$CPP
7020
7021 fi
7022   CPP=$ac_cv_prog_CPP
7023 else
7024   ac_cv_prog_CPP=$CPP
7025 fi
7026 echo "$as_me:$LINENO: result: $CPP" >&5
7027 echo "${ECHO_T}$CPP" >&6
7028 ac_preproc_ok=false
7029 for ac_c_preproc_warn_flag in '' yes
7030 do
7031   # Use a header file that comes with gcc, so configuring glibc
7032   # with a fresh cross-compiler works.
7033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7034   # <limits.h> exists even on freestanding compilers.
7035   # On the NeXT, cc -E runs the code through the compiler's parser,
7036   # not just through cpp. "Syntax error" is here to catch this case.
7037   cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h.  */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h.  */
7043 #ifdef __STDC__
7044 # include <limits.h>
7045 #else
7046 # include <assert.h>
7047 #endif
7048                      Syntax error
7049 _ACEOF
7050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } >/dev/null; then
7058   if test -s conftest.err; then
7059     ac_cpp_err=$ac_c_preproc_warn_flag
7060     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7061   else
7062     ac_cpp_err=
7063   fi
7064 else
7065   ac_cpp_err=yes
7066 fi
7067 if test -z "$ac_cpp_err"; then
7068   :
7069 else
7070   echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7072
7073   # Broken: fails on valid input.
7074 continue
7075 fi
7076 rm -f conftest.err conftest.$ac_ext
7077
7078   # OK, works on sane cases.  Now check whether non-existent headers
7079   # can be detected and how.
7080   cat >conftest.$ac_ext <<_ACEOF
7081 /* confdefs.h.  */
7082 _ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h.  */
7086 #include <ac_nonexistent.h>
7087 _ACEOF
7088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7089   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7090   ac_status=$?
7091   grep -v '^ *+' conftest.er1 >conftest.err
7092   rm -f conftest.er1
7093   cat conftest.err >&5
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } >/dev/null; then
7096   if test -s conftest.err; then
7097     ac_cpp_err=$ac_c_preproc_warn_flag
7098     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7099   else
7100     ac_cpp_err=
7101   fi
7102 else
7103   ac_cpp_err=yes
7104 fi
7105 if test -z "$ac_cpp_err"; then
7106   # Broken: success on invalid input.
7107 continue
7108 else
7109   echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7111
7112   # Passes both tests.
7113 ac_preproc_ok=:
7114 break
7115 fi
7116 rm -f conftest.err conftest.$ac_ext
7117
7118 done
7119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7120 rm -f conftest.err conftest.$ac_ext
7121 if $ac_preproc_ok; then
7122   :
7123 else
7124   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7125 See \`config.log' for more details." >&5
7126 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7127 See \`config.log' for more details." >&2;}
7128    { (exit 1); exit 1; }; }
7129 fi
7130
7131 ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136
7137
7138 echo "$as_me:$LINENO: checking for egrep" >&5
7139 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7140 if test "${ac_cv_prog_egrep+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7144     then ac_cv_prog_egrep='grep -E'
7145     else ac_cv_prog_egrep='egrep'
7146     fi
7147 fi
7148 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7149 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7150  EGREP=$ac_cv_prog_egrep
7151
7152
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h.  */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h.  */
7159 #include <stdint.h>
7160
7161 _ACEOF
7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163   $EGREP "uint32_t" >/dev/null 2>&1; then
7164
7165 cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_INT32_DEFINED 1
7167 _ACEOF
7168
7169 fi
7170 rm -f conftest*
7171
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h.  */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h.  */
7178 #include <inttypes.h>
7179
7180 _ACEOF
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182   $EGREP "uint32_t" >/dev/null 2>&1; then
7183
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_INT32_DEFINED 1
7186 _ACEOF
7187
7188 fi
7189 rm -f conftest*
7190
7191 cat >conftest.$ac_ext <<_ACEOF
7192 /* confdefs.h.  */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h.  */
7197 #include <sys/types.h>
7198
7199 _ACEOF
7200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7201   $EGREP "u_int32_t" >/dev/null 2>&1; then
7202
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_BSD_INT32_DEFINED 1
7205 _ACEOF
7206
7207 fi
7208 rm -f conftest*
7209
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h.  */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h.  */
7216 #include <sys/config.h>
7217
7218 _ACEOF
7219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7220   $EGREP "u_int32_t" >/dev/null 2>&1; then
7221
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_BSD_INT32_DEFINED 1
7224 _ACEOF
7225
7226 fi
7227 rm -f conftest*
7228
7229
7230
7231
7232 if test "$PLATFORM" = Win32; then
7233   USING_WIN32_PLATFORM_TRUE=
7234   USING_WIN32_PLATFORM_FALSE='#'
7235 else
7236   USING_WIN32_PLATFORM_TRUE='#'
7237   USING_WIN32_PLATFORM_FALSE=
7238 fi
7239
7240
7241
7242 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7243   USING_POSIX_PLATFORM_TRUE=
7244   USING_POSIX_PLATFORM_FALSE='#'
7245 else
7246   USING_POSIX_PLATFORM_TRUE='#'
7247   USING_POSIX_PLATFORM_FALSE=
7248 fi
7249
7250
7251 case "$host" in
7252   *-darwin*) DARWIN_CRT=true ;;
7253   *) DARWIN_CRT=false ;;
7254 esac
7255
7256
7257 if $DARWIN_CRT; then
7258   USING_DARWIN_CRT_TRUE=
7259   USING_DARWIN_CRT_FALSE='#'
7260 else
7261   USING_DARWIN_CRT_TRUE='#'
7262   USING_DARWIN_CRT_FALSE=
7263 fi
7264
7265
7266 # These may not be defined in a non-ANS conformant embedded system.
7267 # FIXME: Should these case a runtime exception in that case?
7268 cat >conftest.$ac_ext <<_ACEOF
7269 /* confdefs.h.  */
7270 _ACEOF
7271 cat confdefs.h >>conftest.$ac_ext
7272 cat >>conftest.$ac_ext <<_ACEOF
7273 /* end confdefs.h.  */
7274 #include <time.h>
7275
7276 _ACEOF
7277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278   $EGREP "mktime" >/dev/null 2>&1; then
7279
7280 cat >>confdefs.h <<\_ACEOF
7281 #define HAVE_MKTIME 1
7282 _ACEOF
7283
7284 fi
7285 rm -f conftest*
7286
7287 cat >conftest.$ac_ext <<_ACEOF
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <time.h>
7294
7295 _ACEOF
7296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7297   $EGREP "localtime" >/dev/null 2>&1; then
7298
7299 cat >>confdefs.h <<\_ACEOF
7300 #define HAVE_LOCALTIME 1
7301 _ACEOF
7302
7303 fi
7304 rm -f conftest*
7305
7306
7307 # Create the subdirectory for natFile.cc, or the attempt
7308 # to create the link will fail.
7309 test -d java || mkdir java
7310 test -d java/io || mkdir java/io
7311 test -d gnu || mkdir gnu
7312           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7313
7314
7315 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7316 test -d java/lang || mkdir java/lang
7317           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7318
7319           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7320
7321
7322 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7323 test -d java/net || mkdir java/net
7324           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7325
7326           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7327
7328
7329 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7330 test -d gnu/java || mkdir gnu/java
7331 test -d gnu/java/net || mkdir gnu/java/net
7332           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7333
7334           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7335
7336
7337 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7338 test -d gnu/java/nio || mkdir gnu/java/nio
7339           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7340
7341           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7342
7343 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7344           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7345
7346
7347 case "${host}" in
7348     *mingw*)
7349       SYSTEMSPEC="-lgdi32 -lws2_32"
7350       if test "${with_win32_nlsapi}" = "unicows"; then
7351         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7352       fi
7353     ;;
7354     *)
7355       SYSTEMSPEC=
7356     ;;
7357 esac
7358
7359
7360 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7361
7362
7363
7364 # Check whether --with-system-zlib or --without-system-zlib was given.
7365 if test "${with_system_zlib+set}" = set; then
7366   withval="$with_system_zlib"
7367
7368 fi;
7369 ZLIBSPEC=
7370
7371 ZLIBTESTSPEC=
7372
7373
7374 echo "$as_me:$LINENO: checking for X" >&5
7375 echo $ECHO_N "checking for X... $ECHO_C" >&6
7376
7377
7378 # Check whether --with-x or --without-x was given.
7379 if test "${with_x+set}" = set; then
7380   withval="$with_x"
7381
7382 fi;
7383 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7384 if test "x$with_x" = xno; then
7385   # The user explicitly disabled X.
7386   have_x=disabled
7387 else
7388   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7389     # Both variables are already set.
7390     have_x=yes
7391   else
7392     if test "${ac_cv_have_x+set}" = set; then
7393   echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395   # One or both of the vars are not set, and there is no cached value.
7396 ac_x_includes=no ac_x_libraries=no
7397 rm -fr conftest.dir
7398 if mkdir conftest.dir; then
7399   cd conftest.dir
7400   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7401   cat >Imakefile <<'_ACEOF'
7402 acfindx:
7403         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7404 _ACEOF
7405   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7406     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7407     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7408     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7409     for ac_extension in a so sl; do
7410       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7411          test -f $ac_im_libdir/libX11.$ac_extension; then
7412         ac_im_usrlibdir=$ac_im_libdir; break
7413       fi
7414     done
7415     # Screen out bogus values from the imake configuration.  They are
7416     # bogus both because they are the default anyway, and because
7417     # using them would break gcc on systems where it needs fixed includes.
7418     case $ac_im_incroot in
7419         /usr/include) ;;
7420         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7421     esac
7422     case $ac_im_usrlibdir in
7423         /usr/lib | /lib) ;;
7424         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7425     esac
7426   fi
7427   cd ..
7428   rm -fr conftest.dir
7429 fi
7430
7431 # Standard set of common directories for X headers.
7432 # Check X11 before X11Rn because it is often a symlink to the current release.
7433 ac_x_header_dirs='
7434 /usr/X11/include
7435 /usr/X11R6/include
7436 /usr/X11R5/include
7437 /usr/X11R4/include
7438
7439 /usr/include/X11
7440 /usr/include/X11R6
7441 /usr/include/X11R5
7442 /usr/include/X11R4
7443
7444 /usr/local/X11/include
7445 /usr/local/X11R6/include
7446 /usr/local/X11R5/include
7447 /usr/local/X11R4/include
7448
7449 /usr/local/include/X11
7450 /usr/local/include/X11R6
7451 /usr/local/include/X11R5
7452 /usr/local/include/X11R4
7453
7454 /usr/X386/include
7455 /usr/x386/include
7456 /usr/XFree86/include/X11
7457
7458 /usr/include
7459 /usr/local/include
7460 /usr/unsupported/include
7461 /usr/athena/include
7462 /usr/local/x11r5/include
7463 /usr/lpp/Xamples/include
7464
7465 /usr/openwin/include
7466 /usr/openwin/share/include'
7467
7468 if test "$ac_x_includes" = no; then
7469   # Guess where to find include files, by looking for Intrinsic.h.
7470   # First, try using that file with no special directory specified.
7471   cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 #include <X11/Intrinsic.h>
7478 _ACEOF
7479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7480   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7481   ac_status=$?
7482   grep -v '^ *+' conftest.er1 >conftest.err
7483   rm -f conftest.er1
7484   cat conftest.err >&5
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); } >/dev/null; then
7487   if test -s conftest.err; then
7488     ac_cpp_err=$ac_c_preproc_warn_flag
7489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7490   else
7491     ac_cpp_err=
7492   fi
7493 else
7494   ac_cpp_err=yes
7495 fi
7496 if test -z "$ac_cpp_err"; then
7497   # We can compile using X headers with no special include directory.
7498 ac_x_includes=
7499 else
7500   echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7502
7503   for ac_dir in $ac_x_header_dirs; do
7504   if test -r "$ac_dir/X11/Intrinsic.h"; then
7505     ac_x_includes=$ac_dir
7506     break
7507   fi
7508 done
7509 fi
7510 rm -f conftest.err conftest.$ac_ext
7511 fi # $ac_x_includes = no
7512
7513 if test "$ac_x_libraries" = no; then
7514   # Check for the libraries.
7515   # See if we find them without any special options.
7516   # Don't add to $LIBS permanently.
7517   ac_save_LIBS=$LIBS
7518   LIBS="-lXt $LIBS"
7519   if test x$gcc_no_link = xyes; then
7520   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7522    { (exit 1); exit 1; }; }
7523 fi
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7530 #include <X11/Intrinsic.h>
7531 int
7532 main ()
7533 {
7534 XtMalloc (0)
7535   ;
7536   return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7541   (eval $ac_link) 2>conftest.er1
7542   ac_status=$?
7543   grep -v '^ *+' conftest.er1 >conftest.err
7544   rm -f conftest.er1
7545   cat conftest.err >&5
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); } &&
7548          { ac_try='test -z "$ac_c_werror_flag"
7549                          || test ! -s conftest.err'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; } &&
7555          { ac_try='test -s conftest$ac_exeext'
7556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7557   (eval $ac_try) 2>&5
7558   ac_status=$?
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); }; }; then
7561   LIBS=$ac_save_LIBS
7562 # We can link X programs with no special library path.
7563 ac_x_libraries=
7564 else
7565   echo "$as_me: failed program was:" >&5
7566 sed 's/^/| /' conftest.$ac_ext >&5
7567
7568 LIBS=$ac_save_LIBS
7569 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7570 do
7571   # Don't even attempt the hair of trying to link an X program!
7572   for ac_extension in a so sl; do
7573     if test -r $ac_dir/libXt.$ac_extension; then
7574       ac_x_libraries=$ac_dir
7575       break 2
7576     fi
7577   done
7578 done
7579 fi
7580 rm -f conftest.err conftest.$ac_objext \
7581       conftest$ac_exeext conftest.$ac_ext
7582 fi # $ac_x_libraries = no
7583
7584 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7585   # Didn't find X anywhere.  Cache the known absence of X.
7586   ac_cv_have_x="have_x=no"
7587 else
7588   # Record where we found X for the cache.
7589   ac_cv_have_x="have_x=yes \
7590                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7591 fi
7592 fi
7593
7594   fi
7595   eval "$ac_cv_have_x"
7596 fi # $with_x != no
7597
7598 if test "$have_x" != yes; then
7599   echo "$as_me:$LINENO: result: $have_x" >&5
7600 echo "${ECHO_T}$have_x" >&6
7601   no_x=yes
7602 else
7603   # If each of the values was on the command line, it overrides each guess.
7604   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7605   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7606   # Update the cache value to reflect the command line values.
7607   ac_cv_have_x="have_x=yes \
7608                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7609   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7610 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7611 fi
7612
7613 if test "$no_x" = yes; then
7614   # Not all programs may use this symbol, but it does not hurt to define it.
7615
7616 cat >>confdefs.h <<\_ACEOF
7617 #define X_DISPLAY_MISSING 1
7618 _ACEOF
7619
7620   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7621 else
7622   if test -n "$x_includes"; then
7623     X_CFLAGS="$X_CFLAGS -I$x_includes"
7624   fi
7625
7626   # It would also be nice to do this for all -L options, not just this one.
7627   if test -n "$x_libraries"; then
7628     X_LIBS="$X_LIBS -L$x_libraries"
7629     # For Solaris; some versions of Sun CC require a space after -R and
7630     # others require no space.  Words are not sufficient . . . .
7631     case `(uname -sr) 2>/dev/null` in
7632     "SunOS 5"*)
7633       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7634 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7635       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7636       if test x$gcc_no_link = xyes; then
7637   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7639    { (exit 1); exit 1; }; }
7640 fi
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h.  */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h.  */
7647
7648 int
7649 main ()
7650 {
7651
7652   ;
7653   return 0;
7654 }
7655 _ACEOF
7656 rm -f conftest.$ac_objext conftest$ac_exeext
7657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7658   (eval $ac_link) 2>conftest.er1
7659   ac_status=$?
7660   grep -v '^ *+' conftest.er1 >conftest.err
7661   rm -f conftest.er1
7662   cat conftest.err >&5
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); } &&
7665          { ac_try='test -z "$ac_c_werror_flag"
7666                          || test ! -s conftest.err'
7667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668   (eval $ac_try) 2>&5
7669   ac_status=$?
7670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671   (exit $ac_status); }; } &&
7672          { ac_try='test -s conftest$ac_exeext'
7673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674   (eval $ac_try) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; }; then
7678   ac_R_nospace=yes
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683 ac_R_nospace=no
7684 fi
7685 rm -f conftest.err conftest.$ac_objext \
7686       conftest$ac_exeext conftest.$ac_ext
7687       if test $ac_R_nospace = yes; then
7688         echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6
7690         X_LIBS="$X_LIBS -R$x_libraries"
7691       else
7692         LIBS="$ac_xsave_LIBS -R $x_libraries"
7693         if test x$gcc_no_link = xyes; then
7694   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7696    { (exit 1); exit 1; }; }
7697 fi
7698 cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704
7705 int
7706 main ()
7707 {
7708
7709   ;
7710   return 0;
7711 }
7712 _ACEOF
7713 rm -f conftest.$ac_objext conftest$ac_exeext
7714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715   (eval $ac_link) 2>conftest.er1
7716   ac_status=$?
7717   grep -v '^ *+' conftest.er1 >conftest.err
7718   rm -f conftest.er1
7719   cat conftest.err >&5
7720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721   (exit $ac_status); } &&
7722          { ac_try='test -z "$ac_c_werror_flag"
7723                          || test ! -s conftest.err'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; } &&
7729          { ac_try='test -s conftest$ac_exeext'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; }; then
7735   ac_R_space=yes
7736 else
7737   echo "$as_me: failed program was:" >&5
7738 sed 's/^/| /' conftest.$ac_ext >&5
7739
7740 ac_R_space=no
7741 fi
7742 rm -f conftest.err conftest.$ac_objext \
7743       conftest$ac_exeext conftest.$ac_ext
7744         if test $ac_R_space = yes; then
7745           echo "$as_me:$LINENO: result: yes" >&5
7746 echo "${ECHO_T}yes" >&6
7747           X_LIBS="$X_LIBS -R $x_libraries"
7748         else
7749           echo "$as_me:$LINENO: result: neither works" >&5
7750 echo "${ECHO_T}neither works" >&6
7751         fi
7752       fi
7753       LIBS=$ac_xsave_LIBS
7754     esac
7755   fi
7756
7757   # Check for system-dependent libraries X programs must link with.
7758   # Do this before checking for the system-independent R6 libraries
7759   # (-lICE), since we may need -lsocket or whatever for X linking.
7760
7761   if test "$ISC" = yes; then
7762     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7763   else
7764     # Martyn Johnson says this is needed for Ultrix, if the X
7765     # libraries were built with DECnet support.  And Karl Berry says
7766     # the Alpha needs dnet_stub (dnet does not exist).
7767     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7768     if test x$gcc_no_link = xyes; then
7769   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7771    { (exit 1); exit 1; }; }
7772 fi
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h.  */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h.  */
7779
7780 /* Override any gcc2 internal prototype to avoid an error.  */
7781 #ifdef __cplusplus
7782 extern "C"
7783 #endif
7784 /* We use char because int might match the return type of a gcc2
7785    builtin and then its argument prototype would still apply.  */
7786 char XOpenDisplay ();
7787 int
7788 main ()
7789 {
7790 XOpenDisplay ();
7791   ;
7792   return 0;
7793 }
7794 _ACEOF
7795 rm -f conftest.$ac_objext conftest$ac_exeext
7796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7797   (eval $ac_link) 2>conftest.er1
7798   ac_status=$?
7799   grep -v '^ *+' conftest.er1 >conftest.err
7800   rm -f conftest.er1
7801   cat conftest.err >&5
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); } &&
7804          { ac_try='test -z "$ac_c_werror_flag"
7805                          || test ! -s conftest.err'
7806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807   (eval $ac_try) 2>&5
7808   ac_status=$?
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); }; } &&
7811          { ac_try='test -s conftest$ac_exeext'
7812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813   (eval $ac_try) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); }; }; then
7817   :
7818 else
7819   echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7823 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7824 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   ac_check_lib_save_LIBS=$LIBS
7828 LIBS="-ldnet  $LIBS"
7829 if test x$gcc_no_link = xyes; then
7830   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7832    { (exit 1); exit 1; }; }
7833 fi
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840
7841 /* Override any gcc2 internal prototype to avoid an error.  */
7842 #ifdef __cplusplus
7843 extern "C"
7844 #endif
7845 /* We use char because int might match the return type of a gcc2
7846    builtin and then its argument prototype would still apply.  */
7847 char dnet_ntoa ();
7848 int
7849 main ()
7850 {
7851 dnet_ntoa ();
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext conftest$ac_exeext
7857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7858   (eval $ac_link) 2>conftest.er1
7859   ac_status=$?
7860   grep -v '^ *+' conftest.er1 >conftest.err
7861   rm -f conftest.er1
7862   cat conftest.err >&5
7863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864   (exit $ac_status); } &&
7865          { ac_try='test -z "$ac_c_werror_flag"
7866                          || test ! -s conftest.err'
7867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7868   (eval $ac_try) 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; } &&
7872          { ac_try='test -s conftest$ac_exeext'
7873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874   (eval $ac_try) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   ac_cv_lib_dnet_dnet_ntoa=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 ac_cv_lib_dnet_dnet_ntoa=no
7884 fi
7885 rm -f conftest.err conftest.$ac_objext \
7886       conftest$ac_exeext conftest.$ac_ext
7887 LIBS=$ac_check_lib_save_LIBS
7888 fi
7889 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7890 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7891 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7892   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7893 fi
7894
7895     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7896       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7897 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7898 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901   ac_check_lib_save_LIBS=$LIBS
7902 LIBS="-ldnet_stub  $LIBS"
7903 if test x$gcc_no_link = xyes; then
7904   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7905 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7906    { (exit 1); exit 1; }; }
7907 fi
7908 cat >conftest.$ac_ext <<_ACEOF
7909 /* confdefs.h.  */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h.  */
7914
7915 /* Override any gcc2 internal prototype to avoid an error.  */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 /* We use char because int might match the return type of a gcc2
7920    builtin and then its argument prototype would still apply.  */
7921 char dnet_ntoa ();
7922 int
7923 main ()
7924 {
7925 dnet_ntoa ();
7926   ;
7927   return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932   (eval $ac_link) 2>conftest.er1
7933   ac_status=$?
7934   grep -v '^ *+' conftest.er1 >conftest.err
7935   rm -f conftest.er1
7936   cat conftest.err >&5
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); } &&
7939          { ac_try='test -z "$ac_c_werror_flag"
7940                          || test ! -s conftest.err'
7941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942   (eval $ac_try) 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); }; } &&
7946          { ac_try='test -s conftest$ac_exeext'
7947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948   (eval $ac_try) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); }; }; then
7952   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7953 else
7954   echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 ac_cv_lib_dnet_stub_dnet_ntoa=no
7958 fi
7959 rm -f conftest.err conftest.$ac_objext \
7960       conftest$ac_exeext conftest.$ac_ext
7961 LIBS=$ac_check_lib_save_LIBS
7962 fi
7963 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7964 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7965 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7966   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7967 fi
7968
7969     fi
7970 fi
7971 rm -f conftest.err conftest.$ac_objext \
7972       conftest$ac_exeext conftest.$ac_ext
7973     LIBS="$ac_xsave_LIBS"
7974
7975     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7976     # to get the SysV transport functions.
7977     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7978     # needs -lnsl.
7979     # The nsl library prevents programs from opening the X display
7980     # on Irix 5.2, according to T.E. Dickey.
7981     # The functions gethostbyname, getservbyname, and inet_addr are
7982     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7983     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7984 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7985 if test "${ac_cv_func_gethostbyname+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   if test x$gcc_no_link = xyes; then
7989   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7990 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7991    { (exit 1); exit 1; }; }
7992 fi
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8000    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8001 #define gethostbyname innocuous_gethostbyname
8002
8003 /* System header to define __stub macros and hopefully few prototypes,
8004     which can conflict with char gethostbyname (); below.
8005     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8006     <limits.h> exists even on freestanding compilers.  */
8007
8008 #ifdef __STDC__
8009 # include <limits.h>
8010 #else
8011 # include <assert.h>
8012 #endif
8013
8014 #undef gethostbyname
8015
8016 /* Override any gcc2 internal prototype to avoid an error.  */
8017 #ifdef __cplusplus
8018 extern "C"
8019 {
8020 #endif
8021 /* We use char because int might match the return type of a gcc2
8022    builtin and then its argument prototype would still apply.  */
8023 char gethostbyname ();
8024 /* The GNU C library defines this for functions which it implements
8025     to always fail with ENOSYS.  Some functions are actually named
8026     something starting with __ and the normal name is an alias.  */
8027 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8028 choke me
8029 #else
8030 char (*f) () = gethostbyname;
8031 #endif
8032 #ifdef __cplusplus
8033 }
8034 #endif
8035
8036 int
8037 main ()
8038 {
8039 return f != gethostbyname;
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 rm -f conftest.$ac_objext conftest$ac_exeext
8045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046   (eval $ac_link) 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -z "$ac_c_werror_flag"
8054                          || test ! -s conftest.err'
8055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056   (eval $ac_try) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; } &&
8060          { ac_try='test -s conftest$ac_exeext'
8061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062   (eval $ac_try) 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   ac_cv_func_gethostbyname=yes
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 ac_cv_func_gethostbyname=no
8072 fi
8073 rm -f conftest.err conftest.$ac_objext \
8074       conftest$ac_exeext conftest.$ac_ext
8075 fi
8076 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8077 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8078
8079     if test $ac_cv_func_gethostbyname = no; then
8080       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8081 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8082 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   ac_check_lib_save_LIBS=$LIBS
8086 LIBS="-lnsl  $LIBS"
8087 if test x$gcc_no_link = xyes; then
8088   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8090    { (exit 1); exit 1; }; }
8091 fi
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098
8099 /* Override any gcc2 internal prototype to avoid an error.  */
8100 #ifdef __cplusplus
8101 extern "C"
8102 #endif
8103 /* We use char because int might match the return type of a gcc2
8104    builtin and then its argument prototype would still apply.  */
8105 char gethostbyname ();
8106 int
8107 main ()
8108 {
8109 gethostbyname ();
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8116   (eval $ac_link) 2>conftest.er1
8117   ac_status=$?
8118   grep -v '^ *+' conftest.er1 >conftest.err
8119   rm -f conftest.er1
8120   cat conftest.err >&5
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } &&
8123          { ac_try='test -z "$ac_c_werror_flag"
8124                          || test ! -s conftest.err'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; } &&
8130          { ac_try='test -s conftest$ac_exeext'
8131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132   (eval $ac_try) 2>&5
8133   ac_status=$?
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); }; }; then
8136   ac_cv_lib_nsl_gethostbyname=yes
8137 else
8138   echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 ac_cv_lib_nsl_gethostbyname=no
8142 fi
8143 rm -f conftest.err conftest.$ac_objext \
8144       conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8146 fi
8147 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8148 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8149 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8150   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8151 fi
8152
8153       if test $ac_cv_lib_nsl_gethostbyname = no; then
8154         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8155 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8156 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   ac_check_lib_save_LIBS=$LIBS
8160 LIBS="-lbsd  $LIBS"
8161 if test x$gcc_no_link = xyes; then
8162   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8163 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8164    { (exit 1); exit 1; }; }
8165 fi
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 /* Override any gcc2 internal prototype to avoid an error.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 /* We use char because int might match the return type of a gcc2
8178    builtin and then its argument prototype would still apply.  */
8179 char gethostbyname ();
8180 int
8181 main ()
8182 {
8183 gethostbyname ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -z "$ac_c_werror_flag"
8198                          || test ! -s conftest.err'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; } &&
8204          { ac_try='test -s conftest$ac_exeext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   ac_cv_lib_bsd_gethostbyname=yes
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 ac_cv_lib_bsd_gethostbyname=no
8216 fi
8217 rm -f conftest.err conftest.$ac_objext \
8218       conftest$ac_exeext conftest.$ac_ext
8219 LIBS=$ac_check_lib_save_LIBS
8220 fi
8221 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8222 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8223 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8224   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8225 fi
8226
8227       fi
8228     fi
8229
8230     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8231     # socket/setsockopt and other routines are undefined under SCO ODT
8232     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8233     # on later versions), says Simon Leinen: it contains gethostby*
8234     # variants that don't use the name server (or something).  -lsocket
8235     # must be given before -lnsl if both are needed.  We assume that
8236     # if connect needs -lnsl, so does gethostbyname.
8237     echo "$as_me:$LINENO: checking for connect" >&5
8238 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8239 if test "${ac_cv_func_connect+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   if test x$gcc_no_link = xyes; then
8243   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8245    { (exit 1); exit 1; }; }
8246 fi
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8255 #define connect innocuous_connect
8256
8257 /* System header to define __stub macros and hopefully few prototypes,
8258     which can conflict with char connect (); below.
8259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8260     <limits.h> exists even on freestanding compilers.  */
8261
8262 #ifdef __STDC__
8263 # include <limits.h>
8264 #else
8265 # include <assert.h>
8266 #endif
8267
8268 #undef connect
8269
8270 /* Override any gcc2 internal prototype to avoid an error.  */
8271 #ifdef __cplusplus
8272 extern "C"
8273 {
8274 #endif
8275 /* We use char because int might match the return type of a gcc2
8276    builtin and then its argument prototype would still apply.  */
8277 char connect ();
8278 /* The GNU C library defines this for functions which it implements
8279     to always fail with ENOSYS.  Some functions are actually named
8280     something starting with __ and the normal name is an alias.  */
8281 #if defined (__stub_connect) || defined (__stub___connect)
8282 choke me
8283 #else
8284 char (*f) () = connect;
8285 #endif
8286 #ifdef __cplusplus
8287 }
8288 #endif
8289
8290 int
8291 main ()
8292 {
8293 return f != connect;
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300   (eval $ac_link) 2>conftest.er1
8301   ac_status=$?
8302   grep -v '^ *+' conftest.er1 >conftest.err
8303   rm -f conftest.er1
8304   cat conftest.err >&5
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } &&
8307          { ac_try='test -z "$ac_c_werror_flag"
8308                          || test ! -s conftest.err'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest$ac_exeext'
8315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316   (eval $ac_try) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   ac_cv_func_connect=yes
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 ac_cv_func_connect=no
8326 fi
8327 rm -f conftest.err conftest.$ac_objext \
8328       conftest$ac_exeext conftest.$ac_ext
8329 fi
8330 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8331 echo "${ECHO_T}$ac_cv_func_connect" >&6
8332
8333     if test $ac_cv_func_connect = no; then
8334       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8335 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8336 if test "${ac_cv_lib_socket_connect+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   ac_check_lib_save_LIBS=$LIBS
8340 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8341 if test x$gcc_no_link = xyes; then
8342   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8343 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8344    { (exit 1); exit 1; }; }
8345 fi
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h.  */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h.  */
8352
8353 /* Override any gcc2 internal prototype to avoid an error.  */
8354 #ifdef __cplusplus
8355 extern "C"
8356 #endif
8357 /* We use char because int might match the return type of a gcc2
8358    builtin and then its argument prototype would still apply.  */
8359 char connect ();
8360 int
8361 main ()
8362 {
8363 connect ();
8364   ;
8365   return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370   (eval $ac_link) 2>conftest.er1
8371   ac_status=$?
8372   grep -v '^ *+' conftest.er1 >conftest.err
8373   rm -f conftest.er1
8374   cat conftest.err >&5
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } &&
8377          { ac_try='test -z "$ac_c_werror_flag"
8378                          || test ! -s conftest.err'
8379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8380   (eval $ac_try) 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; } &&
8384          { ac_try='test -s conftest$ac_exeext'
8385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386   (eval $ac_try) 2>&5
8387   ac_status=$?
8388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389   (exit $ac_status); }; }; then
8390   ac_cv_lib_socket_connect=yes
8391 else
8392   echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395 ac_cv_lib_socket_connect=no
8396 fi
8397 rm -f conftest.err conftest.$ac_objext \
8398       conftest$ac_exeext conftest.$ac_ext
8399 LIBS=$ac_check_lib_save_LIBS
8400 fi
8401 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8402 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8403 if test $ac_cv_lib_socket_connect = yes; then
8404   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8405 fi
8406
8407     fi
8408
8409     # Guillermo Gomez says -lposix is necessary on A/UX.
8410     echo "$as_me:$LINENO: checking for remove" >&5
8411 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8412 if test "${ac_cv_func_remove+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   if test x$gcc_no_link = xyes; then
8416   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8417 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8418    { (exit 1); exit 1; }; }
8419 fi
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8428 #define remove innocuous_remove
8429
8430 /* System header to define __stub macros and hopefully few prototypes,
8431     which can conflict with char remove (); below.
8432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8433     <limits.h> exists even on freestanding compilers.  */
8434
8435 #ifdef __STDC__
8436 # include <limits.h>
8437 #else
8438 # include <assert.h>
8439 #endif
8440
8441 #undef remove
8442
8443 /* Override any gcc2 internal prototype to avoid an error.  */
8444 #ifdef __cplusplus
8445 extern "C"
8446 {
8447 #endif
8448 /* We use char because int might match the return type of a gcc2
8449    builtin and then its argument prototype would still apply.  */
8450 char remove ();
8451 /* The GNU C library defines this for functions which it implements
8452     to always fail with ENOSYS.  Some functions are actually named
8453     something starting with __ and the normal name is an alias.  */
8454 #if defined (__stub_remove) || defined (__stub___remove)
8455 choke me
8456 #else
8457 char (*f) () = remove;
8458 #endif
8459 #ifdef __cplusplus
8460 }
8461 #endif
8462
8463 int
8464 main ()
8465 {
8466 return f != remove;
8467   ;
8468   return 0;
8469 }
8470 _ACEOF
8471 rm -f conftest.$ac_objext conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473   (eval $ac_link) 2>conftest.er1
8474   ac_status=$?
8475   grep -v '^ *+' conftest.er1 >conftest.err
8476   rm -f conftest.er1
8477   cat conftest.err >&5
8478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479   (exit $ac_status); } &&
8480          { ac_try='test -z "$ac_c_werror_flag"
8481                          || test ! -s conftest.err'
8482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483   (eval $ac_try) 2>&5
8484   ac_status=$?
8485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486   (exit $ac_status); }; } &&
8487          { ac_try='test -s conftest$ac_exeext'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; }; then
8493   ac_cv_func_remove=yes
8494 else
8495   echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 ac_cv_func_remove=no
8499 fi
8500 rm -f conftest.err conftest.$ac_objext \
8501       conftest$ac_exeext conftest.$ac_ext
8502 fi
8503 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8504 echo "${ECHO_T}$ac_cv_func_remove" >&6
8505
8506     if test $ac_cv_func_remove = no; then
8507       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8508 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8509 if test "${ac_cv_lib_posix_remove+set}" = set; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   ac_check_lib_save_LIBS=$LIBS
8513 LIBS="-lposix  $LIBS"
8514 if test x$gcc_no_link = xyes; then
8515   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8517    { (exit 1); exit 1; }; }
8518 fi
8519 cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525
8526 /* Override any gcc2 internal prototype to avoid an error.  */
8527 #ifdef __cplusplus
8528 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531    builtin and then its argument prototype would still apply.  */
8532 char remove ();
8533 int
8534 main ()
8535 {
8536 remove ();
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8543   (eval $ac_link) 2>conftest.er1
8544   ac_status=$?
8545   grep -v '^ *+' conftest.er1 >conftest.err
8546   rm -f conftest.er1
8547   cat conftest.err >&5
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -z "$ac_c_werror_flag"
8551                          || test ! -s conftest.err'
8552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553   (eval $ac_try) 2>&5
8554   ac_status=$?
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); }; } &&
8557          { ac_try='test -s conftest$ac_exeext'
8558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559   (eval $ac_try) 2>&5
8560   ac_status=$?
8561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; }; then
8563   ac_cv_lib_posix_remove=yes
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568 ac_cv_lib_posix_remove=no
8569 fi
8570 rm -f conftest.err conftest.$ac_objext \
8571       conftest$ac_exeext conftest.$ac_ext
8572 LIBS=$ac_check_lib_save_LIBS
8573 fi
8574 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8575 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8576 if test $ac_cv_lib_posix_remove = yes; then
8577   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8578 fi
8579
8580     fi
8581
8582     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8583     echo "$as_me:$LINENO: checking for shmat" >&5
8584 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8585 if test "${ac_cv_func_shmat+set}" = set; then
8586   echo $ECHO_N "(cached) $ECHO_C" >&6
8587 else
8588   if test x$gcc_no_link = xyes; then
8589   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8590 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8591    { (exit 1); exit 1; }; }
8592 fi
8593 cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8601 #define shmat innocuous_shmat
8602
8603 /* System header to define __stub macros and hopefully few prototypes,
8604     which can conflict with char shmat (); below.
8605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606     <limits.h> exists even on freestanding compilers.  */
8607
8608 #ifdef __STDC__
8609 # include <limits.h>
8610 #else
8611 # include <assert.h>
8612 #endif
8613
8614 #undef shmat
8615
8616 /* Override any gcc2 internal prototype to avoid an error.  */
8617 #ifdef __cplusplus
8618 extern "C"
8619 {
8620 #endif
8621 /* We use char because int might match the return type of a gcc2
8622    builtin and then its argument prototype would still apply.  */
8623 char shmat ();
8624 /* The GNU C library defines this for functions which it implements
8625     to always fail with ENOSYS.  Some functions are actually named
8626     something starting with __ and the normal name is an alias.  */
8627 #if defined (__stub_shmat) || defined (__stub___shmat)
8628 choke me
8629 #else
8630 char (*f) () = shmat;
8631 #endif
8632 #ifdef __cplusplus
8633 }
8634 #endif
8635
8636 int
8637 main ()
8638 {
8639 return f != shmat;
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646   (eval $ac_link) 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_c_werror_flag"
8654                          || test ! -s conftest.err'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; } &&
8660          { ac_try='test -s conftest$ac_exeext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_cv_func_shmat=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_func_shmat=no
8672 fi
8673 rm -f conftest.err conftest.$ac_objext \
8674       conftest$ac_exeext conftest.$ac_ext
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8677 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8678
8679     if test $ac_cv_func_shmat = no; then
8680       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8681 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8682 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8683   echo $ECHO_N "(cached) $ECHO_C" >&6
8684 else
8685   ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lipc  $LIBS"
8687 if test x$gcc_no_link = xyes; then
8688   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8690    { (exit 1); exit 1; }; }
8691 fi
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698
8699 /* Override any gcc2 internal prototype to avoid an error.  */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704    builtin and then its argument prototype would still apply.  */
8705 char shmat ();
8706 int
8707 main ()
8708 {
8709 shmat ();
8710   ;
8711   return 0;
8712 }
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716   (eval $ac_link) 2>conftest.er1
8717   ac_status=$?
8718   grep -v '^ *+' conftest.er1 >conftest.err
8719   rm -f conftest.er1
8720   cat conftest.err >&5
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -z "$ac_c_werror_flag"
8724                          || test ! -s conftest.err'
8725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726   (eval $ac_try) 2>&5
8727   ac_status=$?
8728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); }; } &&
8730          { ac_try='test -s conftest$ac_exeext'
8731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732   (eval $ac_try) 2>&5
8733   ac_status=$?
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); }; }; then
8736   ac_cv_lib_ipc_shmat=yes
8737 else
8738   echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741 ac_cv_lib_ipc_shmat=no
8742 fi
8743 rm -f conftest.err conftest.$ac_objext \
8744       conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8746 fi
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8748 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8749 if test $ac_cv_lib_ipc_shmat = yes; then
8750   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8751 fi
8752
8753     fi
8754   fi
8755
8756   # Check for libraries that X11R6 Xt/Xaw programs need.
8757   ac_save_LDFLAGS=$LDFLAGS
8758   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8759   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8760   # check for ICE first), but we must link in the order -lSM -lICE or
8761   # we get undefined symbols.  So assume we have SM if we have ICE.
8762   # These have to be linked with before -lX11, unlike the other
8763   # libraries we check for below, so use a different variable.
8764   # John Interrante, Karl Berry
8765   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8766 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8767 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8772 if test x$gcc_no_link = xyes; then
8773   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8775    { (exit 1); exit 1; }; }
8776 fi
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783
8784 /* Override any gcc2 internal prototype to avoid an error.  */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789    builtin and then its argument prototype would still apply.  */
8790 char IceConnectionNumber ();
8791 int
8792 main ()
8793 {
8794 IceConnectionNumber ();
8795   ;
8796   return 0;
8797 }
8798 _ACEOF
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801   (eval $ac_link) 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } &&
8808          { ac_try='test -z "$ac_c_werror_flag"
8809                          || test ! -s conftest.err'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; } &&
8815          { ac_try='test -s conftest$ac_exeext'
8816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817   (eval $ac_try) 2>&5
8818   ac_status=$?
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); }; }; then
8821   ac_cv_lib_ICE_IceConnectionNumber=yes
8822 else
8823   echo "$as_me: failed program was:" >&5
8824 sed 's/^/| /' conftest.$ac_ext >&5
8825
8826 ac_cv_lib_ICE_IceConnectionNumber=no
8827 fi
8828 rm -f conftest.err conftest.$ac_objext \
8829       conftest$ac_exeext conftest.$ac_ext
8830 LIBS=$ac_check_lib_save_LIBS
8831 fi
8832 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8833 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8834 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8835   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8836 fi
8837
8838   LDFLAGS=$ac_save_LDFLAGS
8839
8840 fi
8841
8842
8843 # determine whether to enable the cairo GTK Graphics2D backend
8844 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8845 if test "${enable_gtk_cairo+set}" = set; then
8846   enableval="$enable_gtk_cairo"
8847
8848 fi;
8849
8850
8851 if test "x${enable_gtk_cairo}" = xyes; then
8852   GTK_CAIRO_TRUE=
8853   GTK_CAIRO_FALSE='#'
8854 else
8855   GTK_CAIRO_TRUE='#'
8856   GTK_CAIRO_FALSE=
8857 fi
8858
8859 if test "x${enable_gtk_cairo}" = xyes
8860 then
8861
8862   succeeded=no
8863
8864   if test -z "$PKG_CONFIG"; then
8865     # Extract the first word of "pkg-config", so it can be a program name with args.
8866 set dummy pkg-config; ac_word=$2
8867 echo "$as_me:$LINENO: checking for $ac_word" >&5
8868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8869 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   case $PKG_CONFIG in
8873   [\\/]* | ?:[\\/]*)
8874   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8875   ;;
8876   *)
8877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $PATH
8879 do
8880   IFS=$as_save_IFS
8881   test -z "$as_dir" && as_dir=.
8882   for ac_exec_ext in '' $ac_executable_extensions; do
8883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8886     break 2
8887   fi
8888 done
8889 done
8890
8891   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8892   ;;
8893 esac
8894 fi
8895 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8896
8897 if test -n "$PKG_CONFIG"; then
8898   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8899 echo "${ECHO_T}$PKG_CONFIG" >&6
8900 else
8901   echo "$as_me:$LINENO: result: no" >&5
8902 echo "${ECHO_T}no" >&6
8903 fi
8904
8905   fi
8906
8907   if test "$PKG_CONFIG" = "no" ; then
8908      echo "*** The pkg-config script could not be found. Make sure it is"
8909      echo "*** in your path, or set the PKG_CONFIG environment variable"
8910      echo "*** to the full path to pkg-config."
8911      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8912   else
8913      PKG_CONFIG_MIN_VERSION=0.9.0
8914      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8915         echo "$as_me:$LINENO: checking for cairo" >&5
8916 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8917
8918         if $PKG_CONFIG --exists "cairo" ; then
8919             echo "$as_me:$LINENO: result: yes" >&5
8920 echo "${ECHO_T}yes" >&6
8921             succeeded=yes
8922
8923             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8924 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8925             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8926             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8927 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8928
8929             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8930 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8931             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8932             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8933 echo "${ECHO_T}$CAIRO_LIBS" >&6
8934         else
8935             CAIRO_CFLAGS=""
8936             CAIRO_LIBS=""
8937             ## If we have a custom action on failure, don't print errors, but
8938             ## do set a variable so people can do so.
8939             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8940             echo $CAIRO_PKG_ERRORS
8941         fi
8942
8943
8944
8945      else
8946         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8947         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8948      fi
8949   fi
8950
8951   if test $succeeded = yes; then
8952      :
8953   else
8954      { { 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
8955 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;}
8956    { (exit 1); exit 1; }; }
8957   fi
8958
8959
8960   succeeded=no
8961
8962   if test -z "$PKG_CONFIG"; then
8963     # Extract the first word of "pkg-config", so it can be a program name with args.
8964 set dummy pkg-config; ac_word=$2
8965 echo "$as_me:$LINENO: checking for $ac_word" >&5
8966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8967 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970   case $PKG_CONFIG in
8971   [\\/]* | ?:[\\/]*)
8972   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8973   ;;
8974   *)
8975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8976 for as_dir in $PATH
8977 do
8978   IFS=$as_save_IFS
8979   test -z "$as_dir" && as_dir=.
8980   for ac_exec_ext in '' $ac_executable_extensions; do
8981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8982     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8984     break 2
8985   fi
8986 done
8987 done
8988
8989   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8990   ;;
8991 esac
8992 fi
8993 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8994
8995 if test -n "$PKG_CONFIG"; then
8996   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8997 echo "${ECHO_T}$PKG_CONFIG" >&6
8998 else
8999   echo "$as_me:$LINENO: result: no" >&5
9000 echo "${ECHO_T}no" >&6
9001 fi
9002
9003   fi
9004
9005   if test "$PKG_CONFIG" = "no" ; then
9006      echo "*** The pkg-config script could not be found. Make sure it is"
9007      echo "*** in your path, or set the PKG_CONFIG environment variable"
9008      echo "*** to the full path to pkg-config."
9009      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9010   else
9011      PKG_CONFIG_MIN_VERSION=0.9.0
9012      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9013         echo "$as_me:$LINENO: checking for pangoft2" >&5
9014 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
9015
9016         if $PKG_CONFIG --exists "pangoft2" ; then
9017             echo "$as_me:$LINENO: result: yes" >&5
9018 echo "${ECHO_T}yes" >&6
9019             succeeded=yes
9020
9021             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
9022 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
9023             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
9024             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
9025 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
9026
9027             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
9028 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
9029             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
9030             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
9031 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
9032         else
9033             PANGOFT2_CFLAGS=""
9034             PANGOFT2_LIBS=""
9035             ## If we have a custom action on failure, don't print errors, but
9036             ## do set a variable so people can do so.
9037             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
9038             echo $PANGOFT2_PKG_ERRORS
9039         fi
9040
9041
9042
9043      else
9044         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9045         echo "*** See http://www.freedesktop.org/software/pkgconfig"
9046      fi
9047   fi
9048
9049   if test $succeeded = yes; then
9050      :
9051   else
9052      { { 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
9053 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;}
9054    { (exit 1); exit 1; }; }
9055   fi
9056
9057 fi
9058
9059
9060
9061
9062
9063 # FIXME: this should be _libs on some hosts.
9064 libsubdir=.libs
9065
9066 # extra LD Flags which are required for targets
9067 case "${host}" in
9068 *-*-darwin[0-7].*)
9069     # For now we have to disable it on darwin[8-9] because it slows down
9070     # the linking phase. A possible bug in ld?
9071     # on Darwin -single_module speeds up loading of the dynamic libraries.
9072     extra_ldflags_libjava=-Wl,-single_module
9073     ;;
9074 esac
9075
9076
9077 # Allow the GC to be disabled.  Can be useful when debugging.
9078 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9079 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9080 # Check whether --enable-java-gc or --disable-java-gc was given.
9081 if test "${enable_java_gc+set}" = set; then
9082   enableval="$enable_java_gc"
9083   GC=$enableval
9084 else
9085   GC=boehm
9086 fi;
9087 GCLIBS=
9088 GCINCS=
9089 GCDEPS=
9090 GCSPEC=
9091 JC1GCSPEC=
9092 GCTESTSPEC=
9093 case "$GC" in
9094  boehm)
9095     echo "$as_me:$LINENO: result: boehm" >&5
9096 echo "${ECHO_T}boehm" >&6
9097     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9098     JC1GCSPEC='-fuse-boehm-gc'
9099     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9100     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9101     GCOBJS=boehm.lo
9102     GCHDR=boehm-gc.h
9103     # The POSIX thread support needs to know this.
9104
9105 cat >>confdefs.h <<\_ACEOF
9106 #define HAVE_BOEHM_GC 1
9107 _ACEOF
9108
9109     ;;
9110  no)
9111     echo "$as_me:$LINENO: result: none" >&5
9112 echo "${ECHO_T}none" >&6
9113     GCHDR=no-gc.h
9114     ;;
9115  *)
9116     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9117 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9118    { (exit 1); exit 1; }; }
9119     ;;
9120 esac
9121
9122
9123
9124
9125
9126
9127           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9128
9129
9130
9131 if test "$GC" = boehm; then
9132   USING_BOEHMGC_TRUE=
9133   USING_BOEHMGC_FALSE='#'
9134 else
9135   USING_BOEHMGC_TRUE='#'
9136   USING_BOEHMGC_FALSE=
9137 fi
9138
9139
9140
9141 if test "$GC" = no; then
9142   USING_NOGC_TRUE=
9143   USING_NOGC_FALSE='#'
9144 else
9145   USING_NOGC_TRUE='#'
9146   USING_NOGC_FALSE=
9147 fi
9148
9149
9150
9151 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9152 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9153 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9154 echo "$as_me:$LINENO: result: $THREADS" >&5
9155 echo "${ECHO_T}$THREADS" >&6
9156
9157 case "$THREADS" in
9158  no | none | single)
9159     THREADS=none
9160     ;;
9161  posix | posix95 | pthreads)
9162     THREADS=posix
9163     case "$host" in
9164      *-*-linux*)
9165
9166 cat >>confdefs.h <<\_ACEOF
9167 #define LINUX_THREADS 1
9168 _ACEOF
9169
9170         ;;
9171     esac
9172     ;;
9173  win32)
9174     ;;
9175  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9176     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9177 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9178    { (exit 1); exit 1; }; }
9179     ;;
9180  *)
9181     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9182 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9183    { (exit 1); exit 1; }; }
9184     ;;
9185 esac
9186
9187 THREADCXXFLAGS=
9188 THREADLDFLAGS=
9189 THREADLIBS=
9190 THREADINCS=
9191 THREADDEPS=
9192 THREADH=
9193 THREADSPEC=
9194 case "$THREADS" in
9195  posix)
9196     case "$host" in
9197      *-*-cygwin*)
9198         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9199         ;;
9200      *-*-freebsd[1234]*)
9201         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9202         # merely adds pthread_* functions) but it does have a -pthread switch
9203         # which is required at link-time to select -lc_r *instead* of -lc.
9204         THREADLDFLAGS=-pthread
9205         # Don't set THREADSPEC here as might be expected since -pthread is
9206         # not processed when found within a spec file, it must come from
9207         # the command line.  For now, the user must provide the -pthread
9208         # switch to link code compiled with gcj.  In future, consider adding
9209         # support for weak references to pthread_* functions ala gthr.h API.
9210         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9211         ;;
9212      *-*-freebsd*)
9213         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9214         # systems which support threads and -lpthread.
9215         THREADLDFLAGS=-pthread
9216         THREADSPEC=-lpthread
9217         ;;
9218      alpha*-dec-osf*)
9219         THREADCXXFLAGS=-pthread
9220         # boehm-gc needs some functions from librt, so link that too.
9221         THREADLIBS='-lpthread -lrt'
9222         THREADSPEC='-lpthread -lrt'
9223         ;;
9224      *)
9225         THREADLIBS=-lpthread
9226         THREADSPEC=-lpthread
9227         ;;
9228     esac
9229     THREADH=posix-threads.h
9230     # MIT pthreads doesn't seem to have the mutexattr functions.
9231     # But for now we don't check for it.  We just assume you aren't
9232     # using MIT pthreads.
9233
9234 cat >>confdefs.h <<\_ACEOF
9235 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9236 _ACEOF
9237
9238
9239     # If we're using the Boehm GC, then we happen to know that it
9240     # defines _REENTRANT, so we don't bother.  Eww.
9241     if test "$GC" != boehm; then
9242
9243 cat >>confdefs.h <<\_ACEOF
9244 #define _REENTRANT 1
9245 _ACEOF
9246
9247     fi
9248
9249 cat >>confdefs.h <<\_ACEOF
9250 #define _POSIX_PTHREAD_SEMANTICS 1
9251 _ACEOF
9252
9253     ;;
9254
9255  win32)
9256     THREADH=win32-threads.h
9257     ;;
9258
9259  none)
9260     THREADH=no-threads.h
9261     ;;
9262 esac
9263           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273 if test "$THREADS" = posix; then
9274   USING_POSIX_THREADS_TRUE=
9275   USING_POSIX_THREADS_FALSE='#'
9276 else
9277   USING_POSIX_THREADS_TRUE='#'
9278   USING_POSIX_THREADS_FALSE=
9279 fi
9280
9281
9282
9283 if test "$THREADS" = win32; then
9284   USING_WIN32_THREADS_TRUE=
9285   USING_WIN32_THREADS_FALSE='#'
9286 else
9287   USING_WIN32_THREADS_TRUE='#'
9288   USING_WIN32_THREADS_FALSE=
9289 fi
9290
9291
9292
9293 if test "$THREADS" = none; then
9294   USING_NO_THREADS_TRUE=
9295   USING_NO_THREADS_FALSE='#'
9296 else
9297   USING_NO_THREADS_TRUE='#'
9298   USING_NO_THREADS_FALSE=
9299 fi
9300
9301
9302 if test -d sysdep; then true; else mkdir sysdep; fi
9303           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9304
9305           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9306
9307           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9308
9309
9310 HASH_SYNC_SPEC=
9311 # Hash synchronization is only useful with posix threads right now.
9312 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9313    HASH_SYNC_SPEC=-fhash-synchronization
9314
9315 cat >>confdefs.h <<\_ACEOF
9316 #define JV_HASH_SYNCHRONIZATION 1
9317 _ACEOF
9318
9319 fi
9320
9321
9322
9323
9324 if test "$GCC" = yes; then
9325   USING_GCC_TRUE=
9326   USING_GCC_FALSE='#'
9327 else
9328   USING_GCC_TRUE='#'
9329   USING_GCC_FALSE=
9330 fi
9331
9332
9333 # We're in the tree with gcc, and need to include some of its headers.
9334 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9335
9336 if test "x${with_newlib}" = "xyes"; then
9337    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9338    # may not work correctly, because the compiler may not be able to
9339    # link executables.
9340
9341    # We assume newlib.  This lets us hard-code the functions we know
9342    # we'll have.
9343
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_MEMMOVE 1
9346 _ACEOF
9347
9348
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_MEMCPY 1
9351 _ACEOF
9352
9353
9354 cat >>confdefs.h <<\_ACEOF
9355 #define HAVE_STRERROR 1
9356 _ACEOF
9357
9358
9359 cat >>confdefs.h <<\_ACEOF
9360 #define HAVE_TIME 1
9361 _ACEOF
9362
9363
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_GMTIME_R 1
9366 _ACEOF
9367
9368
9369 cat >>confdefs.h <<\_ACEOF
9370 #define HAVE_LOCALTIME_R 1
9371 _ACEOF
9372
9373
9374 cat >>confdefs.h <<\_ACEOF
9375 #define HAVE_USLEEP_DECL 1
9376 _ACEOF
9377
9378    # This is only for POSIX threads.
9379
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9382 _ACEOF
9383
9384    # We also assume we are using gcc, which provides alloca.
9385    cat >>confdefs.h <<\_ACEOF
9386 #define HAVE_ALLOCA 1
9387 _ACEOF
9388
9389
9390    # Assume we do not have getuid and friends.
9391
9392 cat >>confdefs.h <<\_ACEOF
9393 #define NO_GETUID 1
9394 _ACEOF
9395
9396    PLATFORMNET=NoNet
9397 else
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9431                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9432                    access stat mkdir rename rmdir unlink realpath utime chmod \
9433                    nl_langinfo setlocale \
9434                    inet_pton uname inet_ntoa \
9435                    fork execvp pipe sigaction ftruncate
9436 do
9437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9438 echo "$as_me:$LINENO: checking for $ac_func" >&5
9439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9440 if eval "test \"\${$as_ac_var+set}\" = set"; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   if test x$gcc_no_link = xyes; then
9444   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9445 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9446    { (exit 1); exit 1; }; }
9447 fi
9448 cat >conftest.$ac_ext <<_ACEOF
9449 /* confdefs.h.  */
9450 _ACEOF
9451 cat confdefs.h >>conftest.$ac_ext
9452 cat >>conftest.$ac_ext <<_ACEOF
9453 /* end confdefs.h.  */
9454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9456 #define $ac_func innocuous_$ac_func
9457
9458 /* System header to define __stub macros and hopefully few prototypes,
9459     which can conflict with char $ac_func (); below.
9460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461     <limits.h> exists even on freestanding compilers.  */
9462
9463 #ifdef __STDC__
9464 # include <limits.h>
9465 #else
9466 # include <assert.h>
9467 #endif
9468
9469 #undef $ac_func
9470
9471 /* Override any gcc2 internal prototype to avoid an error.  */
9472 #ifdef __cplusplus
9473 extern "C"
9474 {
9475 #endif
9476 /* We use char because int might match the return type of a gcc2
9477    builtin and then its argument prototype would still apply.  */
9478 char $ac_func ();
9479 /* The GNU C library defines this for functions which it implements
9480     to always fail with ENOSYS.  Some functions are actually named
9481     something starting with __ and the normal name is an alias.  */
9482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9483 choke me
9484 #else
9485 char (*f) () = $ac_func;
9486 #endif
9487 #ifdef __cplusplus
9488 }
9489 #endif
9490
9491 int
9492 main ()
9493 {
9494 return f != $ac_func;
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501   (eval $ac_link) 2>conftest.er1
9502   ac_status=$?
9503   grep -v '^ *+' conftest.er1 >conftest.err
9504   rm -f conftest.er1
9505   cat conftest.err >&5
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); } &&
9508          { ac_try='test -z "$ac_c_werror_flag"
9509                          || test ! -s conftest.err'
9510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511   (eval $ac_try) 2>&5
9512   ac_status=$?
9513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514   (exit $ac_status); }; } &&
9515          { ac_try='test -s conftest$ac_exeext'
9516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517   (eval $ac_try) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; }; then
9521   eval "$as_ac_var=yes"
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 eval "$as_ac_var=no"
9527 fi
9528 rm -f conftest.err conftest.$ac_objext \
9529       conftest$ac_exeext conftest.$ac_ext
9530 fi
9531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533 if test `eval echo '${'$as_ac_var'}'` = yes; then
9534   cat >>confdefs.h <<_ACEOF
9535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9536 _ACEOF
9537
9538 fi
9539 done
9540
9541
9542
9543 for ac_func in inet_aton inet_addr
9544 do
9545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546 echo "$as_me:$LINENO: checking for $ac_func" >&5
9547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9548 if eval "test \"\${$as_ac_var+set}\" = set"; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551   if test x$gcc_no_link = xyes; then
9552   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9554    { (exit 1); exit 1; }; }
9555 fi
9556 cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9564 #define $ac_func innocuous_$ac_func
9565
9566 /* System header to define __stub macros and hopefully few prototypes,
9567     which can conflict with char $ac_func (); below.
9568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9569     <limits.h> exists even on freestanding compilers.  */
9570
9571 #ifdef __STDC__
9572 # include <limits.h>
9573 #else
9574 # include <assert.h>
9575 #endif
9576
9577 #undef $ac_func
9578
9579 /* Override any gcc2 internal prototype to avoid an error.  */
9580 #ifdef __cplusplus
9581 extern "C"
9582 {
9583 #endif
9584 /* We use char because int might match the return type of a gcc2
9585    builtin and then its argument prototype would still apply.  */
9586 char $ac_func ();
9587 /* The GNU C library defines this for functions which it implements
9588     to always fail with ENOSYS.  Some functions are actually named
9589     something starting with __ and the normal name is an alias.  */
9590 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9591 choke me
9592 #else
9593 char (*f) () = $ac_func;
9594 #endif
9595 #ifdef __cplusplus
9596 }
9597 #endif
9598
9599 int
9600 main ()
9601 {
9602 return f != $ac_func;
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>conftest.er1
9610   ac_status=$?
9611   grep -v '^ *+' conftest.er1 >conftest.err
9612   rm -f conftest.er1
9613   cat conftest.err >&5
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); } &&
9616          { ac_try='test -z "$ac_c_werror_flag"
9617                          || test ! -s conftest.err'
9618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619   (eval $ac_try) 2>&5
9620   ac_status=$?
9621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622   (exit $ac_status); }; } &&
9623          { ac_try='test -s conftest$ac_exeext'
9624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9625   (eval $ac_try) 2>&5
9626   ac_status=$?
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); }; }; then
9629   eval "$as_ac_var=yes"
9630 else
9631   echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9633
9634 eval "$as_ac_var=no"
9635 fi
9636 rm -f conftest.err conftest.$ac_objext \
9637       conftest$ac_exeext conftest.$ac_ext
9638 fi
9639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9640 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9641 if test `eval echo '${'$as_ac_var'}'` = yes; then
9642   cat >>confdefs.h <<_ACEOF
9643 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9644 _ACEOF
9645  break
9646 fi
9647 done
9648
9649    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9650 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9651 if test "${ac_cv_header_stdc+set}" = set; then
9652   echo $ECHO_N "(cached) $ECHO_C" >&6
9653 else
9654   cat >conftest.$ac_ext <<_ACEOF
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 #include <stdlib.h>
9661 #include <stdarg.h>
9662 #include <string.h>
9663 #include <float.h>
9664
9665 int
9666 main ()
9667 {
9668
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9675   (eval $ac_compile) 2>conftest.er1
9676   ac_status=$?
9677   grep -v '^ *+' conftest.er1 >conftest.err
9678   rm -f conftest.er1
9679   cat conftest.err >&5
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } &&
9682          { ac_try='test -z "$ac_c_werror_flag"
9683                          || test ! -s conftest.err'
9684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9685   (eval $ac_try) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); }; } &&
9689          { ac_try='test -s conftest.$ac_objext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_header_stdc=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_header_stdc=no
9701 fi
9702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9703
9704 if test $ac_cv_header_stdc = yes; then
9705   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9706   cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712 #include <string.h>
9713
9714 _ACEOF
9715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9716   $EGREP "memchr" >/dev/null 2>&1; then
9717   :
9718 else
9719   ac_cv_header_stdc=no
9720 fi
9721 rm -f conftest*
9722
9723 fi
9724
9725 if test $ac_cv_header_stdc = yes; then
9726   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9727   cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 #include <stdlib.h>
9734
9735 _ACEOF
9736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9737   $EGREP "free" >/dev/null 2>&1; then
9738   :
9739 else
9740   ac_cv_header_stdc=no
9741 fi
9742 rm -f conftest*
9743
9744 fi
9745
9746 if test $ac_cv_header_stdc = yes; then
9747   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9748   if test "$cross_compiling" = yes; then
9749   :
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757 #include <ctype.h>
9758 #if ((' ' & 0x0FF) == 0x020)
9759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9761 #else
9762 # define ISLOWER(c) \
9763                    (('a' <= (c) && (c) <= 'i') \
9764                      || ('j' <= (c) && (c) <= 'r') \
9765                      || ('s' <= (c) && (c) <= 'z'))
9766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9767 #endif
9768
9769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9770 int
9771 main ()
9772 {
9773   int i;
9774   for (i = 0; i < 256; i++)
9775     if (XOR (islower (i), ISLOWER (i))
9776         || toupper (i) != TOUPPER (i))
9777       exit(2);
9778   exit (0);
9779 }
9780 _ACEOF
9781 rm -f conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783   (eval $ac_link) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9788   (eval $ac_try) 2>&5
9789   ac_status=$?
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); }; }; then
9792   :
9793 else
9794   echo "$as_me: program exited with status $ac_status" >&5
9795 echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 ( exit $ac_status )
9799 ac_cv_header_stdc=no
9800 fi
9801 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9802 fi
9803 fi
9804 fi
9805 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9806 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9807 if test $ac_cv_header_stdc = yes; then
9808
9809 cat >>confdefs.h <<\_ACEOF
9810 #define STDC_HEADERS 1
9811 _ACEOF
9812
9813 fi
9814
9815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9826                   inttypes.h stdint.h unistd.h
9827 do
9828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9829 echo "$as_me:$LINENO: checking for $ac_header" >&5
9830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9832   echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834   cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h.  */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h.  */
9840 $ac_includes_default
9841
9842 #include <$ac_header>
9843 _ACEOF
9844 rm -f conftest.$ac_objext
9845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846   (eval $ac_compile) 2>conftest.er1
9847   ac_status=$?
9848   grep -v '^ *+' conftest.er1 >conftest.err
9849   rm -f conftest.er1
9850   cat conftest.err >&5
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); } &&
9853          { ac_try='test -z "$ac_c_werror_flag"
9854                          || test ! -s conftest.err'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; } &&
9860          { ac_try='test -s conftest.$ac_objext'
9861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862   (eval $ac_try) 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   eval "$as_ac_Header=yes"
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 eval "$as_ac_Header=no"
9872 fi
9873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9874 fi
9875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9878   cat >>confdefs.h <<_ACEOF
9879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9880 _ACEOF
9881
9882 fi
9883
9884 done
9885
9886
9887
9888
9889
9890 for ac_header in execinfo.h unistd.h dlfcn.h
9891 do
9892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9894   echo "$as_me:$LINENO: checking for $ac_header" >&5
9895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 fi
9899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9901 else
9902   # Is the header compilable?
9903 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9905 cat >conftest.$ac_ext <<_ACEOF
9906 /* confdefs.h.  */
9907 _ACEOF
9908 cat confdefs.h >>conftest.$ac_ext
9909 cat >>conftest.$ac_ext <<_ACEOF
9910 /* end confdefs.h.  */
9911 $ac_includes_default
9912 #include <$ac_header>
9913 _ACEOF
9914 rm -f conftest.$ac_objext
9915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9916   (eval $ac_compile) 2>conftest.er1
9917   ac_status=$?
9918   grep -v '^ *+' conftest.er1 >conftest.err
9919   rm -f conftest.er1
9920   cat conftest.err >&5
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } &&
9923          { ac_try='test -z "$ac_c_werror_flag"
9924                          || test ! -s conftest.err'
9925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926   (eval $ac_try) 2>&5
9927   ac_status=$?
9928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929   (exit $ac_status); }; } &&
9930          { ac_try='test -s conftest.$ac_objext'
9931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932   (eval $ac_try) 2>&5
9933   ac_status=$?
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); }; }; then
9936   ac_header_compiler=yes
9937 else
9938   echo "$as_me: failed program was:" >&5
9939 sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 ac_header_compiler=no
9942 fi
9943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9945 echo "${ECHO_T}$ac_header_compiler" >&6
9946
9947 # Is the header present?
9948 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h.  */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h.  */
9956 #include <$ac_header>
9957 _ACEOF
9958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } >/dev/null; then
9966   if test -s conftest.err; then
9967     ac_cpp_err=$ac_c_preproc_warn_flag
9968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9969   else
9970     ac_cpp_err=
9971   fi
9972 else
9973   ac_cpp_err=yes
9974 fi
9975 if test -z "$ac_cpp_err"; then
9976   ac_header_preproc=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981   ac_header_preproc=no
9982 fi
9983 rm -f conftest.err conftest.$ac_ext
9984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9985 echo "${ECHO_T}$ac_header_preproc" >&6
9986
9987 # So?  What about this header?
9988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9989   yes:no: )
9990     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9991 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9994     ac_header_preproc=yes
9995     ;;
9996   no:yes:* )
9997     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9998 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9999     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10000 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10001     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10002 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10003     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10004 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10007     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10008 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10009     (
10010       cat <<\_ASBOX
10011 ## ---------------------------------- ##
10012 ## Report this to the libjava lists.  ##
10013 ## ---------------------------------- ##
10014 _ASBOX
10015     ) |
10016       sed "s/^/$as_me: WARNING:     /" >&2
10017     ;;
10018 esac
10019 echo "$as_me:$LINENO: checking for $ac_header" >&5
10020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10021 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10022   echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024   eval "$as_ac_Header=\$ac_header_preproc"
10025 fi
10026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10028
10029 fi
10030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10031   cat >>confdefs.h <<_ACEOF
10032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10033 _ACEOF
10034
10035 fi
10036
10037 done
10038
10039    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10040 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10041 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10042   echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044   ac_check_lib_save_LIBS=$LIBS
10045 LIBS="-ldl  $LIBS"
10046 if test x$gcc_no_link = xyes; then
10047   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10049    { (exit 1); exit 1; }; }
10050 fi
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h.  */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h.  */
10057
10058 /* Override any gcc2 internal prototype to avoid an error.  */
10059 #ifdef __cplusplus
10060 extern "C"
10061 #endif
10062 /* We use char because int might match the return type of a gcc2
10063    builtin and then its argument prototype would still apply.  */
10064 char dladdr ();
10065 int
10066 main ()
10067 {
10068 dladdr ();
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075   (eval $ac_link) 2>conftest.er1
10076   ac_status=$?
10077   grep -v '^ *+' conftest.er1 >conftest.err
10078   rm -f conftest.er1
10079   cat conftest.err >&5
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); } &&
10082          { ac_try='test -z "$ac_c_werror_flag"
10083                          || test ! -s conftest.err'
10084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085   (eval $ac_try) 2>&5
10086   ac_status=$?
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); }; } &&
10089          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10095   ac_cv_lib_dl_dladdr=yes
10096 else
10097   echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10099
10100 ac_cv_lib_dl_dladdr=no
10101 fi
10102 rm -f conftest.err conftest.$ac_objext \
10103       conftest$ac_exeext conftest.$ac_ext
10104 LIBS=$ac_check_lib_save_LIBS
10105 fi
10106 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10107 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10108 if test $ac_cv_lib_dl_dladdr = yes; then
10109
10110
10111 cat >>confdefs.h <<\_ACEOF
10112 #define HAVE_DLADDR 1
10113 _ACEOF
10114
10115 fi
10116
10117
10118    if test x"$build" = x"$host"; then
10119      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10120 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10121 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   test "$cross_compiling" = yes &&
10125   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10126 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10127    { (exit 1); exit 1; }; }
10128 if test -r "/proc/self/exe"; then
10129   ac_cv_file__proc_self_exe=yes
10130 else
10131   ac_cv_file__proc_self_exe=no
10132 fi
10133 fi
10134 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10135 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10136 if test $ac_cv_file__proc_self_exe = yes; then
10137
10138 cat >>confdefs.h <<_ACEOF
10139 #define HAVE__PROC_SELF_EXE 1
10140 _ACEOF
10141
10142
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_PROC_SELF_EXE 1
10146 _ACEOF
10147
10148 fi
10149
10150    else
10151      case $host in
10152      *-linux*)
10153
10154 cat >>confdefs.h <<\_ACEOF
10155 #define HAVE_PROC_SELF_EXE 1
10156 _ACEOF
10157
10158        ;;
10159      esac
10160    fi
10161
10162
10163       if test "X$prefix" = "XNONE"; then
10164     acl_final_prefix="$ac_default_prefix"
10165   else
10166     acl_final_prefix="$prefix"
10167   fi
10168   if test "X$exec_prefix" = "XNONE"; then
10169     acl_final_exec_prefix='${prefix}'
10170   else
10171     acl_final_exec_prefix="$exec_prefix"
10172   fi
10173   acl_save_prefix="$prefix"
10174   prefix="$acl_final_prefix"
10175   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10176   prefix="$acl_save_prefix"
10177
10178
10179 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10180 if test "${with_gnu_ld+set}" = set; then
10181   withval="$with_gnu_ld"
10182   test "$withval" = no || with_gnu_ld=yes
10183 else
10184   with_gnu_ld=no
10185 fi;
10186 # Prepare PATH_SEPARATOR.
10187 # The user is always right.
10188 if test "${PATH_SEPARATOR+set}" != set; then
10189   echo "#! /bin/sh" >conf$$.sh
10190   echo  "exit 0"   >>conf$$.sh
10191   chmod +x conf$$.sh
10192   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10193     PATH_SEPARATOR=';'
10194   else
10195     PATH_SEPARATOR=:
10196   fi
10197   rm -f conf$$.sh
10198 fi
10199 ac_prog=ld
10200 if test "$GCC" = yes; then
10201   # Check if gcc -print-prog-name=ld gives a path.
10202   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10203 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10204   case $host in
10205   *-*-mingw*)
10206     # gcc leaves a trailing carriage return which upsets mingw
10207     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10208   *)
10209     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10210   esac
10211   case $ac_prog in
10212     # Accept absolute paths.
10213     [\\/]* | [A-Za-z]:[\\/]*)
10214       re_direlt='/[^/][^/]*/\.\./'
10215       # Canonicalize the path of ld
10216       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10217       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10218         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10219       done
10220       test -z "$LD" && LD="$ac_prog"
10221       ;;
10222   "")
10223     # If it fails, then pretend we aren't using GCC.
10224     ac_prog=ld
10225     ;;
10226   *)
10227     # If it is relative, then search for the first ld in PATH.
10228     with_gnu_ld=unknown
10229     ;;
10230   esac
10231 elif test "$with_gnu_ld" = yes; then
10232   echo "$as_me:$LINENO: checking for GNU ld" >&5
10233 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10234 else
10235   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10236 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10237 fi
10238 if test "${acl_cv_path_LD+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   if test -z "$LD"; then
10242   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10243   for ac_dir in $PATH; do
10244     test -z "$ac_dir" && ac_dir=.
10245     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10246       acl_cv_path_LD="$ac_dir/$ac_prog"
10247       # Check to see if the program is GNU ld.  I'd rather use --version,
10248       # but apparently some GNU ld's only accept -v.
10249       # Break only if it was the GNU/non-GNU ld that we prefer.
10250       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10251         test "$with_gnu_ld" != no && break
10252       else
10253         test "$with_gnu_ld" != yes && break
10254       fi
10255     fi
10256   done
10257   IFS="$ac_save_ifs"
10258 else
10259   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10260 fi
10261 fi
10262
10263 LD="$acl_cv_path_LD"
10264 if test -n "$LD"; then
10265   echo "$as_me:$LINENO: result: $LD" >&5
10266 echo "${ECHO_T}$LD" >&6
10267 else
10268   echo "$as_me:$LINENO: result: no" >&5
10269 echo "${ECHO_T}no" >&6
10270 fi
10271 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10272 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10273    { (exit 1); exit 1; }; }
10274 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10275 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10276 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10280 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10281   acl_cv_prog_gnu_ld=yes
10282 else
10283   acl_cv_prog_gnu_ld=no
10284 fi
10285 fi
10286 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10287 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10288 with_gnu_ld=$acl_cv_prog_gnu_ld
10289
10290
10291
10292                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10293 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10294 if test "${acl_cv_rpath+set}" = set; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297
10298     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10299     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10300     . ./conftest.sh
10301     rm -f ./conftest.sh
10302     acl_cv_rpath=done
10303
10304 fi
10305 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10306 echo "${ECHO_T}$acl_cv_rpath" >&6
10307   wl="$acl_cv_wl"
10308   libext="$acl_cv_libext"
10309   shlibext="$acl_cv_shlibext"
10310   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10311   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10312   hardcode_direct="$acl_cv_hardcode_direct"
10313   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10314     # Check whether --enable-rpath or --disable-rpath was given.
10315 if test "${enable_rpath+set}" = set; then
10316   enableval="$enable_rpath"
10317   :
10318 else
10319   enable_rpath=yes
10320 fi;
10321
10322
10323
10324
10325
10326
10327
10328     use_additional=yes
10329
10330   acl_save_prefix="$prefix"
10331   prefix="$acl_final_prefix"
10332   acl_save_exec_prefix="$exec_prefix"
10333   exec_prefix="$acl_final_exec_prefix"
10334
10335     eval additional_includedir=\"$includedir\"
10336     eval additional_libdir=\"$libdir\"
10337
10338   exec_prefix="$acl_save_exec_prefix"
10339   prefix="$acl_save_prefix"
10340
10341
10342 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10343 if test "${with_libiconv_prefix+set}" = set; then
10344   withval="$with_libiconv_prefix"
10345
10346     if test "X$withval" = "Xno"; then
10347       use_additional=no
10348     else
10349       if test "X$withval" = "X"; then
10350
10351   acl_save_prefix="$prefix"
10352   prefix="$acl_final_prefix"
10353   acl_save_exec_prefix="$exec_prefix"
10354   exec_prefix="$acl_final_exec_prefix"
10355
10356           eval additional_includedir=\"$includedir\"
10357           eval additional_libdir=\"$libdir\"
10358
10359   exec_prefix="$acl_save_exec_prefix"
10360   prefix="$acl_save_prefix"
10361
10362       else
10363         additional_includedir="$withval/include"
10364         additional_libdir="$withval/lib"
10365       fi
10366     fi
10367
10368 fi;
10369       LIBICONV=
10370   LTLIBICONV=
10371   INCICONV=
10372   rpathdirs=
10373   ltrpathdirs=
10374   names_already_handled=
10375   names_next_round='iconv '
10376   while test -n "$names_next_round"; do
10377     names_this_round="$names_next_round"
10378     names_next_round=
10379     for name in $names_this_round; do
10380       already_handled=
10381       for n in $names_already_handled; do
10382         if test "$n" = "$name"; then
10383           already_handled=yes
10384           break
10385         fi
10386       done
10387       if test -z "$already_handled"; then
10388         names_already_handled="$names_already_handled $name"
10389                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10390         eval value=\"\$HAVE_LIB$uppername\"
10391         if test -n "$value"; then
10392           if test "$value" = yes; then
10393             eval value=\"\$LIB$uppername\"
10394             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10395             eval value=\"\$LTLIB$uppername\"
10396             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10397           else
10398                                     :
10399           fi
10400         else
10401                               found_dir=
10402           found_la=
10403           found_so=
10404           found_a=
10405           if test $use_additional = yes; then
10406             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10407               found_dir="$additional_libdir"
10408               found_so="$additional_libdir/lib$name.$shlibext"
10409               if test -f "$additional_libdir/lib$name.la"; then
10410                 found_la="$additional_libdir/lib$name.la"
10411               fi
10412             else
10413               if test -f "$additional_libdir/lib$name.$libext"; then
10414                 found_dir="$additional_libdir"
10415                 found_a="$additional_libdir/lib$name.$libext"
10416                 if test -f "$additional_libdir/lib$name.la"; then
10417                   found_la="$additional_libdir/lib$name.la"
10418                 fi
10419               fi
10420             fi
10421           fi
10422           if test "X$found_dir" = "X"; then
10423             for x in $LDFLAGS $LTLIBICONV; do
10424
10425   acl_save_prefix="$prefix"
10426   prefix="$acl_final_prefix"
10427   acl_save_exec_prefix="$exec_prefix"
10428   exec_prefix="$acl_final_exec_prefix"
10429   eval x=\"$x\"
10430   exec_prefix="$acl_save_exec_prefix"
10431   prefix="$acl_save_prefix"
10432
10433               case "$x" in
10434                 -L*)
10435                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10436                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10437                     found_dir="$dir"
10438                     found_so="$dir/lib$name.$shlibext"
10439                     if test -f "$dir/lib$name.la"; then
10440                       found_la="$dir/lib$name.la"
10441                     fi
10442                   else
10443                     if test -f "$dir/lib$name.$libext"; then
10444                       found_dir="$dir"
10445                       found_a="$dir/lib$name.$libext"
10446                       if test -f "$dir/lib$name.la"; then
10447                         found_la="$dir/lib$name.la"
10448                       fi
10449                     fi
10450                   fi
10451                   ;;
10452               esac
10453               if test "X$found_dir" != "X"; then
10454                 break
10455               fi
10456             done
10457           fi
10458           if test "X$found_dir" != "X"; then
10459                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10460             if test "X$found_so" != "X"; then
10461                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10462                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10463               else
10464                                                                                 haveit=
10465                 for x in $ltrpathdirs; do
10466                   if test "X$x" = "X$found_dir"; then
10467                     haveit=yes
10468                     break
10469                   fi
10470                 done
10471                 if test -z "$haveit"; then
10472                   ltrpathdirs="$ltrpathdirs $found_dir"
10473                 fi
10474                                 if test "$hardcode_direct" = yes; then
10475                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10476                 else
10477                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10478                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10479                                                             haveit=
10480                     for x in $rpathdirs; do
10481                       if test "X$x" = "X$found_dir"; then
10482                         haveit=yes
10483                         break
10484                       fi
10485                     done
10486                     if test -z "$haveit"; then
10487                       rpathdirs="$rpathdirs $found_dir"
10488                     fi
10489                   else
10490                                                                                 haveit=
10491                     for x in $LDFLAGS $LIBICONV; do
10492
10493   acl_save_prefix="$prefix"
10494   prefix="$acl_final_prefix"
10495   acl_save_exec_prefix="$exec_prefix"
10496   exec_prefix="$acl_final_exec_prefix"
10497   eval x=\"$x\"
10498   exec_prefix="$acl_save_exec_prefix"
10499   prefix="$acl_save_prefix"
10500
10501                       if test "X$x" = "X-L$found_dir"; then
10502                         haveit=yes
10503                         break
10504                       fi
10505                     done
10506                     if test -z "$haveit"; then
10507                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10508                     fi
10509                     if test "$hardcode_minus_L" != no; then
10510                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10511                     else
10512                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10513                     fi
10514                   fi
10515                 fi
10516               fi
10517             else
10518               if test "X$found_a" != "X"; then
10519                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10520               else
10521                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10522               fi
10523             fi
10524                         additional_includedir=
10525             case "$found_dir" in
10526               */lib | */lib/)
10527                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10528                 additional_includedir="$basedir/include"
10529                 ;;
10530             esac
10531             if test "X$additional_includedir" != "X"; then
10532                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10533                 haveit=
10534                 if test "X$additional_includedir" = "X/usr/local/include"; then
10535                   if test -n "$GCC"; then
10536                     case $host_os in
10537                       linux*) haveit=yes;;
10538                     esac
10539                   fi
10540                 fi
10541                 if test -z "$haveit"; then
10542                   for x in $CPPFLAGS $INCICONV; do
10543
10544   acl_save_prefix="$prefix"
10545   prefix="$acl_final_prefix"
10546   acl_save_exec_prefix="$exec_prefix"
10547   exec_prefix="$acl_final_exec_prefix"
10548   eval x=\"$x\"
10549   exec_prefix="$acl_save_exec_prefix"
10550   prefix="$acl_save_prefix"
10551
10552                     if test "X$x" = "X-I$additional_includedir"; then
10553                       haveit=yes
10554                       break
10555                     fi
10556                   done
10557                   if test -z "$haveit"; then
10558                     if test -d "$additional_includedir"; then
10559                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10560                     fi
10561                   fi
10562                 fi
10563               fi
10564             fi
10565                         if test -n "$found_la"; then
10566                                                         save_libdir="$libdir"
10567               case "$found_la" in
10568                 */* | *\\*) . "$found_la" ;;
10569                 *) . "./$found_la" ;;
10570               esac
10571               libdir="$save_libdir"
10572                             for dep in $dependency_libs; do
10573                 case "$dep" in
10574                   -L*)
10575                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10576                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10577                       haveit=
10578                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10579                         if test -n "$GCC"; then
10580                           case $host_os in
10581                             linux*) haveit=yes;;
10582                           esac
10583                         fi
10584                       fi
10585                       if test -z "$haveit"; then
10586                         haveit=
10587                         for x in $LDFLAGS $LIBICONV; do
10588
10589   acl_save_prefix="$prefix"
10590   prefix="$acl_final_prefix"
10591   acl_save_exec_prefix="$exec_prefix"
10592   exec_prefix="$acl_final_exec_prefix"
10593   eval x=\"$x\"
10594   exec_prefix="$acl_save_exec_prefix"
10595   prefix="$acl_save_prefix"
10596
10597                           if test "X$x" = "X-L$additional_libdir"; then
10598                             haveit=yes
10599                             break
10600                           fi
10601                         done
10602                         if test -z "$haveit"; then
10603                           if test -d "$additional_libdir"; then
10604                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10605                           fi
10606                         fi
10607                         haveit=
10608                         for x in $LDFLAGS $LTLIBICONV; do
10609
10610   acl_save_prefix="$prefix"
10611   prefix="$acl_final_prefix"
10612   acl_save_exec_prefix="$exec_prefix"
10613   exec_prefix="$acl_final_exec_prefix"
10614   eval x=\"$x\"
10615   exec_prefix="$acl_save_exec_prefix"
10616   prefix="$acl_save_prefix"
10617
10618                           if test "X$x" = "X-L$additional_libdir"; then
10619                             haveit=yes
10620                             break
10621                           fi
10622                         done
10623                         if test -z "$haveit"; then
10624                           if test -d "$additional_libdir"; then
10625                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10626                           fi
10627                         fi
10628                       fi
10629                     fi
10630                     ;;
10631                   -R*)
10632                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10633                     if test "$enable_rpath" != no; then
10634                                                                   haveit=
10635                       for x in $rpathdirs; do
10636                         if test "X$x" = "X$dir"; then
10637                           haveit=yes
10638                           break
10639                         fi
10640                       done
10641                       if test -z "$haveit"; then
10642                         rpathdirs="$rpathdirs $dir"
10643                       fi
10644                                                                   haveit=
10645                       for x in $ltrpathdirs; do
10646                         if test "X$x" = "X$dir"; then
10647                           haveit=yes
10648                           break
10649                         fi
10650                       done
10651                       if test -z "$haveit"; then
10652                         ltrpathdirs="$ltrpathdirs $dir"
10653                       fi
10654                     fi
10655                     ;;
10656                   -l*)
10657                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10658                     ;;
10659                   *.la)
10660                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10661                     ;;
10662                   *)
10663                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10664                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10665                     ;;
10666                 esac
10667               done
10668             fi
10669           else
10670                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10671             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10672           fi
10673         fi
10674       fi
10675     done
10676   done
10677   if test "X$rpathdirs" != "X"; then
10678     if test -n "$hardcode_libdir_separator"; then
10679                         alldirs=
10680       for found_dir in $rpathdirs; do
10681         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10682       done
10683             acl_save_libdir="$libdir"
10684       libdir="$alldirs"
10685       eval flag=\"$hardcode_libdir_flag_spec\"
10686       libdir="$acl_save_libdir"
10687       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10688     else
10689             for found_dir in $rpathdirs; do
10690         acl_save_libdir="$libdir"
10691         libdir="$found_dir"
10692         eval flag=\"$hardcode_libdir_flag_spec\"
10693         libdir="$acl_save_libdir"
10694         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10695       done
10696     fi
10697   fi
10698   if test "X$ltrpathdirs" != "X"; then
10699             for found_dir in $ltrpathdirs; do
10700       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10701     done
10702   fi
10703
10704
10705
10706
10707
10708
10709
10710           am_save_CPPFLAGS="$CPPFLAGS"
10711
10712   for element in $INCICONV; do
10713     haveit=
10714     for x in $CPPFLAGS; do
10715
10716   acl_save_prefix="$prefix"
10717   prefix="$acl_final_prefix"
10718   acl_save_exec_prefix="$exec_prefix"
10719   exec_prefix="$acl_final_exec_prefix"
10720   eval x=\"$x\"
10721   exec_prefix="$acl_save_exec_prefix"
10722   prefix="$acl_save_prefix"
10723
10724       if test "X$x" = "X$element"; then
10725         haveit=yes
10726         break
10727       fi
10728     done
10729     if test -z "$haveit"; then
10730       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10731     fi
10732   done
10733
10734
10735   echo "$as_me:$LINENO: checking for iconv" >&5
10736 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10737 if test "${am_cv_func_iconv+set}" = set; then
10738   echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740
10741     am_cv_func_iconv="no, consider installing GNU libiconv"
10742     am_cv_lib_iconv=no
10743     if test x$gcc_no_link = xyes; then
10744   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10746    { (exit 1); exit 1; }; }
10747 fi
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h.  */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h.  */
10754 #include <stdlib.h>
10755 #include <iconv.h>
10756 int
10757 main ()
10758 {
10759 iconv_t cd = iconv_open("","");
10760        iconv(cd,NULL,NULL,NULL,NULL);
10761        iconv_close(cd);
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768   (eval $ac_link) 2>conftest.er1
10769   ac_status=$?
10770   grep -v '^ *+' conftest.er1 >conftest.err
10771   rm -f conftest.er1
10772   cat conftest.err >&5
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); } &&
10775          { ac_try='test -z "$ac_c_werror_flag"
10776                          || test ! -s conftest.err'
10777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778   (eval $ac_try) 2>&5
10779   ac_status=$?
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); }; } &&
10782          { ac_try='test -s conftest$ac_exeext'
10783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784   (eval $ac_try) 2>&5
10785   ac_status=$?
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   (exit $ac_status); }; }; then
10788   am_cv_func_iconv=yes
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 fi
10794 rm -f conftest.err conftest.$ac_objext \
10795       conftest$ac_exeext conftest.$ac_ext
10796     if test "$am_cv_func_iconv" != yes; then
10797       am_save_LIBS="$LIBS"
10798       LIBS="$LIBS $LIBICONV"
10799       if test x$gcc_no_link = xyes; then
10800   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10801 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10802    { (exit 1); exit 1; }; }
10803 fi
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h.  */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h.  */
10810 #include <stdlib.h>
10811 #include <iconv.h>
10812 int
10813 main ()
10814 {
10815 iconv_t cd = iconv_open("","");
10816          iconv(cd,NULL,NULL,NULL,NULL);
10817          iconv_close(cd);
10818   ;
10819   return 0;
10820 }
10821 _ACEOF
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10824   (eval $ac_link) 2>conftest.er1
10825   ac_status=$?
10826   grep -v '^ *+' conftest.er1 >conftest.err
10827   rm -f conftest.er1
10828   cat conftest.err >&5
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); } &&
10831          { ac_try='test -z "$ac_c_werror_flag"
10832                          || test ! -s conftest.err'
10833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834   (eval $ac_try) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; } &&
10838          { ac_try='test -s conftest$ac_exeext'
10839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840   (eval $ac_try) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); }; }; then
10844   am_cv_lib_iconv=yes
10845         am_cv_func_iconv=yes
10846 else
10847   echo "$as_me: failed program was:" >&5
10848 sed 's/^/| /' conftest.$ac_ext >&5
10849
10850 fi
10851 rm -f conftest.err conftest.$ac_objext \
10852       conftest$ac_exeext conftest.$ac_ext
10853       LIBS="$am_save_LIBS"
10854     fi
10855
10856 fi
10857 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10858 echo "${ECHO_T}$am_cv_func_iconv" >&6
10859   if test "$am_cv_func_iconv" = yes; then
10860
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_ICONV 1
10863 _ACEOF
10864
10865   fi
10866   if test "$am_cv_lib_iconv" = yes; then
10867     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10868 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10869     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10870 echo "${ECHO_T}$LIBICONV" >&6
10871   else
10872             CPPFLAGS="$am_save_CPPFLAGS"
10873     LIBICONV=
10874     LTLIBICONV=
10875   fi
10876
10877
10878
10879   if test "$am_cv_func_iconv" = yes; then
10880     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10881 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10882     if test "${am_cv_proto_iconv+set}" = set; then
10883   echo $ECHO_N "(cached) $ECHO_C" >&6
10884 else
10885
10886       cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h.  */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h.  */
10892
10893 #include <stdlib.h>
10894 #include <iconv.h>
10895 extern
10896 #ifdef __cplusplus
10897 "C"
10898 #endif
10899 #if defined(__STDC__) || defined(__cplusplus)
10900 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10901 #else
10902 size_t iconv();
10903 #endif
10904
10905 int
10906 main ()
10907 {
10908
10909   ;
10910   return 0;
10911 }
10912 _ACEOF
10913 rm -f conftest.$ac_objext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915   (eval $ac_compile) 2>conftest.er1
10916   ac_status=$?
10917   grep -v '^ *+' conftest.er1 >conftest.err
10918   rm -f conftest.er1
10919   cat conftest.err >&5
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); } &&
10922          { ac_try='test -z "$ac_c_werror_flag"
10923                          || test ! -s conftest.err'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; } &&
10929          { ac_try='test -s conftest.$ac_objext'
10930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931   (eval $ac_try) 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; }; then
10935   am_cv_proto_iconv_arg1=""
10936 else
10937   echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940 am_cv_proto_iconv_arg1="const"
10941 fi
10942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10943       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);"
10944 fi
10945
10946     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10947     echo "$as_me:$LINENO: result: ${ac_t:-
10948          }$am_cv_proto_iconv" >&5
10949 echo "${ECHO_T}${ac_t:-
10950          }$am_cv_proto_iconv" >&6
10951
10952 cat >>confdefs.h <<_ACEOF
10953 #define ICONV_CONST $am_cv_proto_iconv_arg1
10954 _ACEOF
10955
10956   fi
10957
10958
10959   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10960 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10961 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10962   echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964   if test x$gcc_no_link = xyes; then
10965   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10966 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10967    { (exit 1); exit 1; }; }
10968 fi
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975 #include <locale.h>
10976 int
10977 main ()
10978 {
10979 return LC_MESSAGES
10980   ;
10981   return 0;
10982 }
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986   (eval $ac_link) 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } &&
10993          { ac_try='test -z "$ac_c_werror_flag"
10994                          || test ! -s conftest.err'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; } &&
11000          { ac_try='test -s conftest$ac_exeext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   am_cv_val_LC_MESSAGES=yes
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 am_cv_val_LC_MESSAGES=no
11012 fi
11013 rm -f conftest.err conftest.$ac_objext \
11014       conftest$ac_exeext conftest.$ac_ext
11015 fi
11016 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11017 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11018   if test $am_cv_val_LC_MESSAGES = yes; then
11019
11020 cat >>confdefs.h <<\_ACEOF
11021 #define HAVE_LC_MESSAGES 1
11022 _ACEOF
11023
11024   fi
11025
11026    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11027 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11028 if test "${ac_cv_struct_tm+set}" = set; then
11029   echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031   cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h.  */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h.  */
11037 #include <sys/types.h>
11038 #include <time.h>
11039
11040 int
11041 main ()
11042 {
11043 struct tm *tp; tp->tm_sec;
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11050   (eval $ac_compile) 2>conftest.er1
11051   ac_status=$?
11052   grep -v '^ *+' conftest.er1 >conftest.err
11053   rm -f conftest.er1
11054   cat conftest.err >&5
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); } &&
11057          { ac_try='test -z "$ac_c_werror_flag"
11058                          || test ! -s conftest.err'
11059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060   (eval $ac_try) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); }; } &&
11064          { ac_try='test -s conftest.$ac_objext'
11065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066   (eval $ac_try) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   ac_cv_struct_tm=time.h
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 ac_cv_struct_tm=sys/time.h
11076 fi
11077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11078 fi
11079 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11080 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11081 if test $ac_cv_struct_tm = sys/time.h; then
11082
11083 cat >>confdefs.h <<\_ACEOF
11084 #define TM_IN_SYS_TIME 1
11085 _ACEOF
11086
11087 fi
11088
11089 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11090 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11091 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11092   echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094   cat >conftest.$ac_ext <<_ACEOF
11095 /* confdefs.h.  */
11096 _ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h.  */
11100 #include <sys/types.h>
11101 #include <$ac_cv_struct_tm>
11102
11103
11104 int
11105 main ()
11106 {
11107 static struct tm ac_aggr;
11108 if (ac_aggr.tm_zone)
11109 return 0;
11110   ;
11111   return 0;
11112 }
11113 _ACEOF
11114 rm -f conftest.$ac_objext
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116   (eval $ac_compile) 2>conftest.er1
11117   ac_status=$?
11118   grep -v '^ *+' conftest.er1 >conftest.err
11119   rm -f conftest.er1
11120   cat conftest.err >&5
11121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122   (exit $ac_status); } &&
11123          { ac_try='test -z "$ac_c_werror_flag"
11124                          || test ! -s conftest.err'
11125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126   (eval $ac_try) 2>&5
11127   ac_status=$?
11128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129   (exit $ac_status); }; } &&
11130          { ac_try='test -s conftest.$ac_objext'
11131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132   (eval $ac_try) 2>&5
11133   ac_status=$?
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); }; }; then
11136   ac_cv_member_struct_tm_tm_zone=yes
11137 else
11138   echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11140
11141 cat >conftest.$ac_ext <<_ACEOF
11142 /* confdefs.h.  */
11143 _ACEOF
11144 cat confdefs.h >>conftest.$ac_ext
11145 cat >>conftest.$ac_ext <<_ACEOF
11146 /* end confdefs.h.  */
11147 #include <sys/types.h>
11148 #include <$ac_cv_struct_tm>
11149
11150
11151 int
11152 main ()
11153 {
11154 static struct tm ac_aggr;
11155 if (sizeof ac_aggr.tm_zone)
11156 return 0;
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest.$ac_objext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11163   (eval $ac_compile) 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag"
11171                          || test ! -s conftest.err'
11172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173   (eval $ac_try) 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; } &&
11177          { ac_try='test -s conftest.$ac_objext'
11178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179   (eval $ac_try) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   ac_cv_member_struct_tm_tm_zone=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 ac_cv_member_struct_tm_tm_zone=no
11189 fi
11190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11191 fi
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193 fi
11194 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11195 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11196 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11197
11198 cat >>confdefs.h <<_ACEOF
11199 #define HAVE_STRUCT_TM_TM_ZONE 1
11200 _ACEOF
11201
11202
11203 fi
11204
11205 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11206
11207 cat >>confdefs.h <<\_ACEOF
11208 #define HAVE_TM_ZONE 1
11209 _ACEOF
11210
11211 else
11212   echo "$as_me:$LINENO: checking for tzname" >&5
11213 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11214 if test "${ac_cv_var_tzname+set}" = set; then
11215   echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217   if test x$gcc_no_link = xyes; then
11218   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11219 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11220    { (exit 1); exit 1; }; }
11221 fi
11222 cat >conftest.$ac_ext <<_ACEOF
11223 /* confdefs.h.  */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h.  */
11228 #include <time.h>
11229 #ifndef tzname /* For SGI.  */
11230 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11231 #endif
11232
11233 int
11234 main ()
11235 {
11236 atoi(*tzname);
11237   ;
11238   return 0;
11239 }
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243   (eval $ac_link) 2>conftest.er1
11244   ac_status=$?
11245   grep -v '^ *+' conftest.er1 >conftest.err
11246   rm -f conftest.er1
11247   cat conftest.err >&5
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); } &&
11250          { ac_try='test -z "$ac_c_werror_flag"
11251                          || test ! -s conftest.err'
11252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253   (eval $ac_try) 2>&5
11254   ac_status=$?
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); }; } &&
11257          { ac_try='test -s conftest$ac_exeext'
11258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259   (eval $ac_try) 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; }; then
11263   ac_cv_var_tzname=yes
11264 else
11265   echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11267
11268 ac_cv_var_tzname=no
11269 fi
11270 rm -f conftest.err conftest.$ac_objext \
11271       conftest$ac_exeext conftest.$ac_ext
11272 fi
11273 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11274 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11275   if test $ac_cv_var_tzname = yes; then
11276
11277 cat >>confdefs.h <<\_ACEOF
11278 #define HAVE_TZNAME 1
11279 _ACEOF
11280
11281   fi
11282 fi
11283
11284
11285
11286
11287 for ac_func in gethostbyname_r
11288 do
11289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11290 echo "$as_me:$LINENO: checking for $ac_func" >&5
11291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11292 if eval "test \"\${$as_ac_var+set}\" = set"; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   if test x$gcc_no_link = xyes; then
11296   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11298    { (exit 1); exit 1; }; }
11299 fi
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11308 #define $ac_func innocuous_$ac_func
11309
11310 /* System header to define __stub macros and hopefully few prototypes,
11311     which can conflict with char $ac_func (); below.
11312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11313     <limits.h> exists even on freestanding compilers.  */
11314
11315 #ifdef __STDC__
11316 # include <limits.h>
11317 #else
11318 # include <assert.h>
11319 #endif
11320
11321 #undef $ac_func
11322
11323 /* Override any gcc2 internal prototype to avoid an error.  */
11324 #ifdef __cplusplus
11325 extern "C"
11326 {
11327 #endif
11328 /* We use char because int might match the return type of a gcc2
11329    builtin and then its argument prototype would still apply.  */
11330 char $ac_func ();
11331 /* The GNU C library defines this for functions which it implements
11332     to always fail with ENOSYS.  Some functions are actually named
11333     something starting with __ and the normal name is an alias.  */
11334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11335 choke me
11336 #else
11337 char (*f) () = $ac_func;
11338 #endif
11339 #ifdef __cplusplus
11340 }
11341 #endif
11342
11343 int
11344 main ()
11345 {
11346 return f != $ac_func;
11347   ;
11348   return 0;
11349 }
11350 _ACEOF
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353   (eval $ac_link) 2>conftest.er1
11354   ac_status=$?
11355   grep -v '^ *+' conftest.er1 >conftest.err
11356   rm -f conftest.er1
11357   cat conftest.err >&5
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); } &&
11360          { ac_try='test -z "$ac_c_werror_flag"
11361                          || test ! -s conftest.err'
11362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363   (eval $ac_try) 2>&5
11364   ac_status=$?
11365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366   (exit $ac_status); }; } &&
11367          { ac_try='test -s conftest$ac_exeext'
11368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11369   (eval $ac_try) 2>&5
11370   ac_status=$?
11371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372   (exit $ac_status); }; }; then
11373   eval "$as_ac_var=yes"
11374 else
11375   echo "$as_me: failed program was:" >&5
11376 sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 eval "$as_ac_var=no"
11379 fi
11380 rm -f conftest.err conftest.$ac_objext \
11381       conftest$ac_exeext conftest.$ac_ext
11382 fi
11383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11385 if test `eval echo '${'$as_ac_var'}'` = yes; then
11386   cat >>confdefs.h <<_ACEOF
11387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11388 _ACEOF
11389
11390
11391 cat >>confdefs.h <<\_ACEOF
11392 #define HAVE_GETHOSTBYNAME_R 1
11393 _ACEOF
11394
11395      # There are two different kinds of gethostbyname_r.
11396      # We look for the one that returns `int'.
11397      # Hopefully this check is robust enough.
11398      cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404 #include <netdb.h>
11405
11406 _ACEOF
11407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11408   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11409
11410
11411 cat >>confdefs.h <<\_ACEOF
11412 #define GETHOSTBYNAME_R_RETURNS_INT 1
11413 _ACEOF
11414
11415 fi
11416 rm -f conftest*
11417
11418
11419      case " $GCINCS " in
11420      *" -D_REENTRANT "*) ;;
11421      *)
11422                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11423 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11424 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11425   echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427    ac_ext=cc
11428 ac_cpp='$CXXCPP $CPPFLAGS'
11429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11432
11433           cat >conftest.$ac_ext <<_ACEOF
11434 /* confdefs.h.  */
11435 _ACEOF
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h.  */
11439 #include <netdb.h>
11440 int
11441 main ()
11442 {
11443 gethostbyname_r("", 0, 0);
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 rm -f conftest.$ac_objext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11450   (eval $ac_compile) 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } &&
11457          { ac_try='test -z "$ac_cxx_werror_flag"
11458                          || test ! -s conftest.err'
11459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460   (eval $ac_try) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; } &&
11464          { ac_try='test -s conftest.$ac_objext'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   libjava_cv_gethostbyname_r_needs_reentrant=no
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475                 CPPFLAGS_SAVE="$CPPFLAGS"
11476                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
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 #include <netdb.h>
11484 int
11485 main ()
11486 {
11487 gethostbyname_r("", 0, 0);
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494   (eval $ac_compile) 2>conftest.er1
11495   ac_status=$?
11496   grep -v '^ *+' conftest.er1 >conftest.err
11497   rm -f conftest.er1
11498   cat conftest.err >&5
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); } &&
11501          { ac_try='test -z "$ac_cxx_werror_flag"
11502                          || test ! -s conftest.err'
11503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504   (eval $ac_try) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); }; } &&
11508          { ac_try='test -s conftest.$ac_objext'
11509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510   (eval $ac_try) 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; }; then
11514   libjava_cv_gethostbyname_r_needs_reentrant=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519 libjava_cv_gethostbyname_r_needs_reentrant=fail
11520 fi
11521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11522                 CPPFLAGS="$CPPFLAGS_SAVE"
11523
11524 fi
11525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11526           ac_ext=c
11527 ac_cpp='$CPP $CPPFLAGS'
11528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11531
11532
11533 fi
11534 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11535 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11536         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11537
11538 cat >>confdefs.h <<\_ACEOF
11539 #define _REENTRANT 1
11540 _ACEOF
11541
11542         fi
11543      ;;
11544      esac
11545
11546      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11547 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11548 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551         cat >conftest.$ac_ext <<_ACEOF
11552 /* confdefs.h.  */
11553 _ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h.  */
11557
11558 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11559 # define _REENTRANT 1
11560 #endif
11561 #include <netdb.h>
11562 int
11563 main ()
11564 {
11565 struct hostent_data data;
11566   ;
11567   return 0;
11568 }
11569 _ACEOF
11570 rm -f conftest.$ac_objext
11571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11572   (eval $ac_compile) 2>conftest.er1
11573   ac_status=$?
11574   grep -v '^ *+' conftest.er1 >conftest.err
11575   rm -f conftest.er1
11576   cat conftest.err >&5
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); } &&
11579          { ac_try='test -z "$ac_c_werror_flag"
11580                          || test ! -s conftest.err'
11581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582   (eval $ac_try) 2>&5
11583   ac_status=$?
11584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585   (exit $ac_status); }; } &&
11586          { ac_try='test -s conftest.$ac_objext'
11587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588   (eval $ac_try) 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; }; then
11592   libjava_cv_struct_hostent_data=yes
11593 else
11594   echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11596
11597 libjava_cv_struct_hostent_data=no
11598 fi
11599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11600 fi
11601 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11602 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11603      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11604
11605 cat >>confdefs.h <<\_ACEOF
11606 #define HAVE_STRUCT_HOSTENT_DATA 1
11607 _ACEOF
11608
11609      fi
11610
11611 fi
11612 done
11613
11614
11615    # FIXME: libjava source code expects to find a prototype for
11616    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11617    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11618    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11619    # linkage check is enough, yet C++ code requires proper prototypes.)
11620    cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h.  */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h.  */
11626 #include <netdb.h>
11627
11628 _ACEOF
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11631
11632
11633 for ac_func in gethostbyaddr_r
11634 do
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11638 if eval "test \"\${$as_ac_var+set}\" = set"; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   if test x$gcc_no_link = xyes; then
11642   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11644    { (exit 1); exit 1; }; }
11645 fi
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11654 #define $ac_func innocuous_$ac_func
11655
11656 /* System header to define __stub macros and hopefully few prototypes,
11657     which can conflict with char $ac_func (); below.
11658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11659     <limits.h> exists even on freestanding compilers.  */
11660
11661 #ifdef __STDC__
11662 # include <limits.h>
11663 #else
11664 # include <assert.h>
11665 #endif
11666
11667 #undef $ac_func
11668
11669 /* Override any gcc2 internal prototype to avoid an error.  */
11670 #ifdef __cplusplus
11671 extern "C"
11672 {
11673 #endif
11674 /* We use char because int might match the return type of a gcc2
11675    builtin and then its argument prototype would still apply.  */
11676 char $ac_func ();
11677 /* The GNU C library defines this for functions which it implements
11678     to always fail with ENOSYS.  Some functions are actually named
11679     something starting with __ and the normal name is an alias.  */
11680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11681 choke me
11682 #else
11683 char (*f) () = $ac_func;
11684 #endif
11685 #ifdef __cplusplus
11686 }
11687 #endif
11688
11689 int
11690 main ()
11691 {
11692 return f != $ac_func;
11693   ;
11694   return 0;
11695 }
11696 _ACEOF
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11699   (eval $ac_link) 2>conftest.er1
11700   ac_status=$?
11701   grep -v '^ *+' conftest.er1 >conftest.err
11702   rm -f conftest.er1
11703   cat conftest.err >&5
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); } &&
11706          { ac_try='test -z "$ac_c_werror_flag"
11707                          || test ! -s conftest.err'
11708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709   (eval $ac_try) 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; } &&
11713          { ac_try='test -s conftest$ac_exeext'
11714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715   (eval $ac_try) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; }; then
11719   eval "$as_ac_var=yes"
11720 else
11721   echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 eval "$as_ac_var=no"
11725 fi
11726 rm -f conftest.err conftest.$ac_objext \
11727       conftest$ac_exeext conftest.$ac_ext
11728 fi
11729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11731 if test `eval echo '${'$as_ac_var'}'` = yes; then
11732   cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11734 _ACEOF
11735
11736
11737 cat >>confdefs.h <<\_ACEOF
11738 #define HAVE_GETHOSTBYADDR_R 1
11739 _ACEOF
11740
11741      # There are two different kinds of gethostbyaddr_r.
11742      # We look for the one that returns `int'.
11743      # Hopefully this check is robust enough.
11744      cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h.  */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h.  */
11750 #include <netdb.h>
11751
11752 _ACEOF
11753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11754   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11755
11756
11757 cat >>confdefs.h <<\_ACEOF
11758 #define GETHOSTBYADDR_R_RETURNS_INT 1
11759 _ACEOF
11760
11761 fi
11762 rm -f conftest*
11763
11764 fi
11765 done
11766
11767 fi
11768 rm -f conftest*
11769
11770
11771
11772 for ac_func in gethostname
11773 do
11774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11775 echo "$as_me:$LINENO: checking for $ac_func" >&5
11776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11777 if eval "test \"\${$as_ac_var+set}\" = set"; then
11778   echo $ECHO_N "(cached) $ECHO_C" >&6
11779 else
11780   if test x$gcc_no_link = xyes; then
11781   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11783    { (exit 1); exit 1; }; }
11784 fi
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11793 #define $ac_func innocuous_$ac_func
11794
11795 /* System header to define __stub macros and hopefully few prototypes,
11796     which can conflict with char $ac_func (); below.
11797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798     <limits.h> exists even on freestanding compilers.  */
11799
11800 #ifdef __STDC__
11801 # include <limits.h>
11802 #else
11803 # include <assert.h>
11804 #endif
11805
11806 #undef $ac_func
11807
11808 /* Override any gcc2 internal prototype to avoid an error.  */
11809 #ifdef __cplusplus
11810 extern "C"
11811 {
11812 #endif
11813 /* We use char because int might match the return type of a gcc2
11814    builtin and then its argument prototype would still apply.  */
11815 char $ac_func ();
11816 /* The GNU C library defines this for functions which it implements
11817     to always fail with ENOSYS.  Some functions are actually named
11818     something starting with __ and the normal name is an alias.  */
11819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11820 choke me
11821 #else
11822 char (*f) () = $ac_func;
11823 #endif
11824 #ifdef __cplusplus
11825 }
11826 #endif
11827
11828 int
11829 main ()
11830 {
11831 return f != $ac_func;
11832   ;
11833   return 0;
11834 }
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11838   (eval $ac_link) 2>conftest.er1
11839   ac_status=$?
11840   grep -v '^ *+' conftest.er1 >conftest.err
11841   rm -f conftest.er1
11842   cat conftest.err >&5
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); } &&
11845          { ac_try='test -z "$ac_c_werror_flag"
11846                          || test ! -s conftest.err'
11847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11848   (eval $ac_try) 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; } &&
11852          { ac_try='test -s conftest$ac_exeext'
11853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854   (eval $ac_try) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; }; then
11858   eval "$as_ac_var=yes"
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863 eval "$as_ac_var=no"
11864 fi
11865 rm -f conftest.err conftest.$ac_objext \
11866       conftest$ac_exeext conftest.$ac_ext
11867 fi
11868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11870 if test `eval echo '${'$as_ac_var'}'` = yes; then
11871   cat >>confdefs.h <<_ACEOF
11872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11873 _ACEOF
11874
11875
11876 cat >>confdefs.h <<\_ACEOF
11877 #define HAVE_GETHOSTNAME 1
11878 _ACEOF
11879
11880      cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886 #include <unistd.h>
11887
11888 _ACEOF
11889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11890   $EGREP "gethostname" >/dev/null 2>&1; then
11891
11892
11893 cat >>confdefs.h <<\_ACEOF
11894 #define HAVE_GETHOSTNAME_DECL 1
11895 _ACEOF
11896
11897 fi
11898 rm -f conftest*
11899
11900 fi
11901 done
11902
11903
11904
11905 for ac_func in usleep
11906 do
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_var+set}\" = set"; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   if test x$gcc_no_link = xyes; then
11914   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11915 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11916    { (exit 1); exit 1; }; }
11917 fi
11918 cat >conftest.$ac_ext <<_ACEOF
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11926 #define $ac_func innocuous_$ac_func
11927
11928 /* System header to define __stub macros and hopefully few prototypes,
11929     which can conflict with char $ac_func (); below.
11930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11931     <limits.h> exists even on freestanding compilers.  */
11932
11933 #ifdef __STDC__
11934 # include <limits.h>
11935 #else
11936 # include <assert.h>
11937 #endif
11938
11939 #undef $ac_func
11940
11941 /* Override any gcc2 internal prototype to avoid an error.  */
11942 #ifdef __cplusplus
11943 extern "C"
11944 {
11945 #endif
11946 /* We use char because int might match the return type of a gcc2
11947    builtin and then its argument prototype would still apply.  */
11948 char $ac_func ();
11949 /* The GNU C library defines this for functions which it implements
11950     to always fail with ENOSYS.  Some functions are actually named
11951     something starting with __ and the normal name is an alias.  */
11952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11953 choke me
11954 #else
11955 char (*f) () = $ac_func;
11956 #endif
11957 #ifdef __cplusplus
11958 }
11959 #endif
11960
11961 int
11962 main ()
11963 {
11964 return f != $ac_func;
11965   ;
11966   return 0;
11967 }
11968 _ACEOF
11969 rm -f conftest.$ac_objext conftest$ac_exeext
11970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11971   (eval $ac_link) 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } &&
11978          { ac_try='test -z "$ac_c_werror_flag"
11979                          || test ! -s conftest.err'
11980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981   (eval $ac_try) 2>&5
11982   ac_status=$?
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); }; } &&
11985          { ac_try='test -s conftest$ac_exeext'
11986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11987   (eval $ac_try) 2>&5
11988   ac_status=$?
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); }; }; then
11991   eval "$as_ac_var=yes"
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 eval "$as_ac_var=no"
11997 fi
11998 rm -f conftest.err conftest.$ac_objext \
11999       conftest$ac_exeext conftest.$ac_ext
12000 fi
12001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12003 if test `eval echo '${'$as_ac_var'}'` = yes; then
12004   cat >>confdefs.h <<_ACEOF
12005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12006 _ACEOF
12007
12008      cat >conftest.$ac_ext <<_ACEOF
12009 /* confdefs.h.  */
12010 _ACEOF
12011 cat confdefs.h >>conftest.$ac_ext
12012 cat >>conftest.$ac_ext <<_ACEOF
12013 /* end confdefs.h.  */
12014 #include <unistd.h>
12015
12016 _ACEOF
12017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12018   $EGREP "usleep" >/dev/null 2>&1; then
12019
12020
12021 cat >>confdefs.h <<\_ACEOF
12022 #define HAVE_USLEEP_DECL 1
12023 _ACEOF
12024
12025 fi
12026 rm -f conftest*
12027
12028 fi
12029 done
12030
12031
12032    # Look for these functions in the thread library, but only bother
12033    # if using POSIX threads.
12034    if test "$THREADS" = posix; then
12035       save_LIBS="$LIBS"
12036       LIBS="$LIBS $THREADLIBS"
12037       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12038       # E.g., Solaris.
12039
12040
12041 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12042 do
12043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12044 echo "$as_me:$LINENO: checking for $ac_func" >&5
12045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12046 if eval "test \"\${$as_ac_var+set}\" = set"; then
12047   echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049   if test x$gcc_no_link = xyes; then
12050   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12052    { (exit 1); exit 1; }; }
12053 fi
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12062 #define $ac_func innocuous_$ac_func
12063
12064 /* System header to define __stub macros and hopefully few prototypes,
12065     which can conflict with char $ac_func (); below.
12066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067     <limits.h> exists even on freestanding compilers.  */
12068
12069 #ifdef __STDC__
12070 # include <limits.h>
12071 #else
12072 # include <assert.h>
12073 #endif
12074
12075 #undef $ac_func
12076
12077 /* Override any gcc2 internal prototype to avoid an error.  */
12078 #ifdef __cplusplus
12079 extern "C"
12080 {
12081 #endif
12082 /* We use char because int might match the return type of a gcc2
12083    builtin and then its argument prototype would still apply.  */
12084 char $ac_func ();
12085 /* The GNU C library defines this for functions which it implements
12086     to always fail with ENOSYS.  Some functions are actually named
12087     something starting with __ and the normal name is an alias.  */
12088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12089 choke me
12090 #else
12091 char (*f) () = $ac_func;
12092 #endif
12093 #ifdef __cplusplus
12094 }
12095 #endif
12096
12097 int
12098 main ()
12099 {
12100 return f != $ac_func;
12101   ;
12102   return 0;
12103 }
12104 _ACEOF
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107   (eval $ac_link) 2>conftest.er1
12108   ac_status=$?
12109   grep -v '^ *+' conftest.er1 >conftest.err
12110   rm -f conftest.er1
12111   cat conftest.err >&5
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); } &&
12114          { ac_try='test -z "$ac_c_werror_flag"
12115                          || test ! -s conftest.err'
12116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117   (eval $ac_try) 2>&5
12118   ac_status=$?
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); }; } &&
12121          { ac_try='test -s conftest$ac_exeext'
12122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123   (eval $ac_try) 2>&5
12124   ac_status=$?
12125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126   (exit $ac_status); }; }; then
12127   eval "$as_ac_var=yes"
12128 else
12129   echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12131
12132 eval "$as_ac_var=no"
12133 fi
12134 rm -f conftest.err conftest.$ac_objext \
12135       conftest$ac_exeext conftest.$ac_ext
12136 fi
12137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12139 if test `eval echo '${'$as_ac_var'}'` = yes; then
12140   cat >>confdefs.h <<_ACEOF
12141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12142 _ACEOF
12143
12144 fi
12145 done
12146
12147
12148       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12149       # Solaris 7 the name librt is preferred.
12150
12151 for ac_func in sched_yield
12152 do
12153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12154 echo "$as_me:$LINENO: checking for $ac_func" >&5
12155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12156 if eval "test \"\${$as_ac_var+set}\" = set"; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   if test x$gcc_no_link = xyes; then
12160   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12162    { (exit 1); exit 1; }; }
12163 fi
12164 cat >conftest.$ac_ext <<_ACEOF
12165 /* confdefs.h.  */
12166 _ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h.  */
12170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12172 #define $ac_func innocuous_$ac_func
12173
12174 /* System header to define __stub macros and hopefully few prototypes,
12175     which can conflict with char $ac_func (); below.
12176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12177     <limits.h> exists even on freestanding compilers.  */
12178
12179 #ifdef __STDC__
12180 # include <limits.h>
12181 #else
12182 # include <assert.h>
12183 #endif
12184
12185 #undef $ac_func
12186
12187 /* Override any gcc2 internal prototype to avoid an error.  */
12188 #ifdef __cplusplus
12189 extern "C"
12190 {
12191 #endif
12192 /* We use char because int might match the return type of a gcc2
12193    builtin and then its argument prototype would still apply.  */
12194 char $ac_func ();
12195 /* The GNU C library defines this for functions which it implements
12196     to always fail with ENOSYS.  Some functions are actually named
12197     something starting with __ and the normal name is an alias.  */
12198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12199 choke me
12200 #else
12201 char (*f) () = $ac_func;
12202 #endif
12203 #ifdef __cplusplus
12204 }
12205 #endif
12206
12207 int
12208 main ()
12209 {
12210 return f != $ac_func;
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext conftest$ac_exeext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12217   (eval $ac_link) 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } &&
12224          { ac_try='test -z "$ac_c_werror_flag"
12225                          || test ! -s conftest.err'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; } &&
12231          { ac_try='test -s conftest$ac_exeext'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; }; then
12237   eval "$as_ac_var=yes"
12238 else
12239   echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 eval "$as_ac_var=no"
12243 fi
12244 rm -f conftest.err conftest.$ac_objext \
12245       conftest$ac_exeext conftest.$ac_ext
12246 fi
12247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12249 if test `eval echo '${'$as_ac_var'}'` = yes; then
12250   cat >>confdefs.h <<_ACEOF
12251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12252 _ACEOF
12253
12254 else
12255
12256         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12257 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12258 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lrt  $LIBS"
12263 if test x$gcc_no_link = xyes; then
12264   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12265 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12266    { (exit 1); exit 1; }; }
12267 fi
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h.  */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h.  */
12274
12275 /* Override any gcc2 internal prototype to avoid an error.  */
12276 #ifdef __cplusplus
12277 extern "C"
12278 #endif
12279 /* We use char because int might match the return type of a gcc2
12280    builtin and then its argument prototype would still apply.  */
12281 char sched_yield ();
12282 int
12283 main ()
12284 {
12285 sched_yield ();
12286   ;
12287   return 0;
12288 }
12289 _ACEOF
12290 rm -f conftest.$ac_objext conftest$ac_exeext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12292   (eval $ac_link) 2>conftest.er1
12293   ac_status=$?
12294   grep -v '^ *+' conftest.er1 >conftest.err
12295   rm -f conftest.er1
12296   cat conftest.err >&5
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } &&
12299          { ac_try='test -z "$ac_c_werror_flag"
12300                          || test ! -s conftest.err'
12301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302   (eval $ac_try) 2>&5
12303   ac_status=$?
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); }; } &&
12306          { ac_try='test -s conftest$ac_exeext'
12307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308   (eval $ac_try) 2>&5
12309   ac_status=$?
12310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311   (exit $ac_status); }; }; then
12312   ac_cv_lib_rt_sched_yield=yes
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317 ac_cv_lib_rt_sched_yield=no
12318 fi
12319 rm -f conftest.err conftest.$ac_objext \
12320       conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS
12322 fi
12323 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12324 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12325 if test $ac_cv_lib_rt_sched_yield = yes; then
12326
12327           cat >>confdefs.h <<\_ACEOF
12328 #define HAVE_SCHED_YIELD 1
12329 _ACEOF
12330
12331           THREADLIBS="$THREADLIBS -lrt"
12332           THREADSPEC="$THREADSPEC -lrt"
12333 else
12334
12335           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12336 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12337 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 else
12340   ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lposix4  $LIBS"
12342 if test x$gcc_no_link = xyes; then
12343   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12345    { (exit 1); exit 1; }; }
12346 fi
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353
12354 /* Override any gcc2 internal prototype to avoid an error.  */
12355 #ifdef __cplusplus
12356 extern "C"
12357 #endif
12358 /* We use char because int might match the return type of a gcc2
12359    builtin and then its argument prototype would still apply.  */
12360 char sched_yield ();
12361 int
12362 main ()
12363 {
12364 sched_yield ();
12365   ;
12366   return 0;
12367 }
12368 _ACEOF
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371   (eval $ac_link) 2>conftest.er1
12372   ac_status=$?
12373   grep -v '^ *+' conftest.er1 >conftest.err
12374   rm -f conftest.er1
12375   cat conftest.err >&5
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -z "$ac_c_werror_flag"
12379                          || test ! -s conftest.err'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; } &&
12385          { ac_try='test -s conftest$ac_exeext'
12386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387   (eval $ac_try) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); }; }; then
12391   ac_cv_lib_posix4_sched_yield=yes
12392 else
12393   echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12395
12396 ac_cv_lib_posix4_sched_yield=no
12397 fi
12398 rm -f conftest.err conftest.$ac_objext \
12399       conftest$ac_exeext conftest.$ac_ext
12400 LIBS=$ac_check_lib_save_LIBS
12401 fi
12402 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12403 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12404 if test $ac_cv_lib_posix4_sched_yield = yes; then
12405
12406             cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_SCHED_YIELD 1
12408 _ACEOF
12409
12410             THREADLIBS="$THREADLIBS -lposix4"
12411             THREADSPEC="$THREADSPEC -lposix4"
12412 fi
12413
12414 fi
12415
12416 fi
12417 done
12418
12419
12420       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12421 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12422 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12423   echo $ECHO_N "(cached) $ECHO_C" >&6
12424 else
12425   ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-lrt  $LIBS"
12427 if test x$gcc_no_link = xyes; then
12428   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12429 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12430    { (exit 1); exit 1; }; }
12431 fi
12432 cat >conftest.$ac_ext <<_ACEOF
12433 /* confdefs.h.  */
12434 _ACEOF
12435 cat confdefs.h >>conftest.$ac_ext
12436 cat >>conftest.$ac_ext <<_ACEOF
12437 /* end confdefs.h.  */
12438
12439 /* Override any gcc2 internal prototype to avoid an error.  */
12440 #ifdef __cplusplus
12441 extern "C"
12442 #endif
12443 /* We use char because int might match the return type of a gcc2
12444    builtin and then its argument prototype would still apply.  */
12445 char clock_gettime ();
12446 int
12447 main ()
12448 {
12449 clock_gettime ();
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 rm -f conftest.$ac_objext conftest$ac_exeext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12456   (eval $ac_link) 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -z "$ac_c_werror_flag"
12464                          || test ! -s conftest.err'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; } &&
12470          { ac_try='test -s conftest$ac_exeext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_lib_rt_clock_gettime=yes
12477 else
12478   echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 ac_cv_lib_rt_clock_gettime=no
12482 fi
12483 rm -f conftest.err conftest.$ac_objext \
12484       conftest$ac_exeext conftest.$ac_ext
12485 LIBS=$ac_check_lib_save_LIBS
12486 fi
12487 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12488 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12489 if test $ac_cv_lib_rt_clock_gettime = yes; then
12490
12491
12492 cat >>confdefs.h <<\_ACEOF
12493 #define HAVE_CLOCK_GETTIME 1
12494 _ACEOF
12495
12496          case "$THREADSPEC" in
12497            *-lrt*) ;;
12498            *)
12499              THREADSPEC="$THREADSPEC -lrt"
12500              THREADLIBS="$THREADLIBS -lrt"
12501              ;;
12502          esac
12503 fi
12504
12505
12506       LIBS="$save_LIBS"
12507
12508       # We can save a little space at runtime if the mutex has m_count
12509       # or __m_count.  This is a nice hack for Linux.
12510       cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 #include <pthread.h>
12517 int
12518 main ()
12519 {
12520
12521           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12522
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529   (eval $ac_compile) 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_c_werror_flag"
12537                          || test ! -s conftest.err'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; } &&
12543          { ac_try='test -s conftest.$ac_objext'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549
12550 cat >>confdefs.h <<\_ACEOF
12551 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12552 _ACEOF
12553
12554 else
12555   echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12557
12558
12559         cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h.  */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h.  */
12565 #include <pthread.h>
12566 int
12567 main ()
12568 {
12569
12570             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12571
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 rm -f conftest.$ac_objext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12578   (eval $ac_compile) 2>conftest.er1
12579   ac_status=$?
12580   grep -v '^ *+' conftest.er1 >conftest.err
12581   rm -f conftest.er1
12582   cat conftest.err >&5
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } &&
12585          { ac_try='test -z "$ac_c_werror_flag"
12586                          || test ! -s conftest.err'
12587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588   (eval $ac_try) 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; } &&
12592          { ac_try='test -s conftest.$ac_objext'
12593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594   (eval $ac_try) 2>&5
12595   ac_status=$?
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); }; }; then
12598
12599 cat >>confdefs.h <<\_ACEOF
12600 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12601 _ACEOF
12602
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607 fi
12608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12609 fi
12610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12611    fi
12612
12613    # We require a way to get the time.
12614    time_found=no
12615
12616
12617
12618 for ac_func in gettimeofday time ftime
12619 do
12620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12621 echo "$as_me:$LINENO: checking for $ac_func" >&5
12622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12623 if eval "test \"\${$as_ac_var+set}\" = set"; then
12624   echo $ECHO_N "(cached) $ECHO_C" >&6
12625 else
12626   if test x$gcc_no_link = xyes; then
12627   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12628 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12629    { (exit 1); exit 1; }; }
12630 fi
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h.  */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h.  */
12637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12639 #define $ac_func innocuous_$ac_func
12640
12641 /* System header to define __stub macros and hopefully few prototypes,
12642     which can conflict with char $ac_func (); below.
12643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12644     <limits.h> exists even on freestanding compilers.  */
12645
12646 #ifdef __STDC__
12647 # include <limits.h>
12648 #else
12649 # include <assert.h>
12650 #endif
12651
12652 #undef $ac_func
12653
12654 /* Override any gcc2 internal prototype to avoid an error.  */
12655 #ifdef __cplusplus
12656 extern "C"
12657 {
12658 #endif
12659 /* We use char because int might match the return type of a gcc2
12660    builtin and then its argument prototype would still apply.  */
12661 char $ac_func ();
12662 /* The GNU C library defines this for functions which it implements
12663     to always fail with ENOSYS.  Some functions are actually named
12664     something starting with __ and the normal name is an alias.  */
12665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12666 choke me
12667 #else
12668 char (*f) () = $ac_func;
12669 #endif
12670 #ifdef __cplusplus
12671 }
12672 #endif
12673
12674 int
12675 main ()
12676 {
12677 return f != $ac_func;
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext conftest$ac_exeext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12684   (eval $ac_link) 2>conftest.er1
12685   ac_status=$?
12686   grep -v '^ *+' conftest.er1 >conftest.err
12687   rm -f conftest.er1
12688   cat conftest.err >&5
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } &&
12691          { ac_try='test -z "$ac_c_werror_flag"
12692                          || test ! -s conftest.err'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; } &&
12698          { ac_try='test -s conftest$ac_exeext'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; }; then
12704   eval "$as_ac_var=yes"
12705 else
12706   echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12708
12709 eval "$as_ac_var=no"
12710 fi
12711 rm -f conftest.err conftest.$ac_objext \
12712       conftest$ac_exeext conftest.$ac_ext
12713 fi
12714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12716 if test `eval echo '${'$as_ac_var'}'` = yes; then
12717   cat >>confdefs.h <<_ACEOF
12718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12719 _ACEOF
12720  time_found=yes
12721 fi
12722 done
12723
12724    if test "$time_found" = no; then
12725       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12726 echo "$as_me: error: no function found to get the time" >&2;}
12727    { (exit 1); exit 1; }; }
12728    fi
12729
12730
12731 for ac_func in memmove
12732 do
12733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12734 echo "$as_me:$LINENO: checking for $ac_func" >&5
12735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12736 if eval "test \"\${$as_ac_var+set}\" = set"; then
12737   echo $ECHO_N "(cached) $ECHO_C" >&6
12738 else
12739   if test x$gcc_no_link = xyes; then
12740   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12741 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12742    { (exit 1); exit 1; }; }
12743 fi
12744 cat >conftest.$ac_ext <<_ACEOF
12745 /* confdefs.h.  */
12746 _ACEOF
12747 cat confdefs.h >>conftest.$ac_ext
12748 cat >>conftest.$ac_ext <<_ACEOF
12749 /* end confdefs.h.  */
12750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12752 #define $ac_func innocuous_$ac_func
12753
12754 /* System header to define __stub macros and hopefully few prototypes,
12755     which can conflict with char $ac_func (); below.
12756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12757     <limits.h> exists even on freestanding compilers.  */
12758
12759 #ifdef __STDC__
12760 # include <limits.h>
12761 #else
12762 # include <assert.h>
12763 #endif
12764
12765 #undef $ac_func
12766
12767 /* Override any gcc2 internal prototype to avoid an error.  */
12768 #ifdef __cplusplus
12769 extern "C"
12770 {
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773    builtin and then its argument prototype would still apply.  */
12774 char $ac_func ();
12775 /* The GNU C library defines this for functions which it implements
12776     to always fail with ENOSYS.  Some functions are actually named
12777     something starting with __ and the normal name is an alias.  */
12778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12779 choke me
12780 #else
12781 char (*f) () = $ac_func;
12782 #endif
12783 #ifdef __cplusplus
12784 }
12785 #endif
12786
12787 int
12788 main ()
12789 {
12790 return f != $ac_func;
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797   (eval $ac_link) 2>conftest.er1
12798   ac_status=$?
12799   grep -v '^ *+' conftest.er1 >conftest.err
12800   rm -f conftest.er1
12801   cat conftest.err >&5
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); } &&
12804          { ac_try='test -z "$ac_c_werror_flag"
12805                          || test ! -s conftest.err'
12806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807   (eval $ac_try) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); }; } &&
12811          { ac_try='test -s conftest$ac_exeext'
12812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813   (eval $ac_try) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); }; }; then
12817   eval "$as_ac_var=yes"
12818 else
12819   echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 eval "$as_ac_var=no"
12823 fi
12824 rm -f conftest.err conftest.$ac_objext \
12825       conftest$ac_exeext conftest.$ac_ext
12826 fi
12827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12829 if test `eval echo '${'$as_ac_var'}'` = yes; then
12830   cat >>confdefs.h <<_ACEOF
12831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12832 _ACEOF
12833
12834 fi
12835 done
12836
12837
12838    # We require memcpy.
12839    memcpy_found=no
12840
12841 for ac_func in memcpy
12842 do
12843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 echo "$as_me:$LINENO: checking for $ac_func" >&5
12845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12846 if eval "test \"\${$as_ac_var+set}\" = set"; then
12847   echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849   if test x$gcc_no_link = xyes; then
12850   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12851 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12852    { (exit 1); exit 1; }; }
12853 fi
12854 cat >conftest.$ac_ext <<_ACEOF
12855 /* confdefs.h.  */
12856 _ACEOF
12857 cat confdefs.h >>conftest.$ac_ext
12858 cat >>conftest.$ac_ext <<_ACEOF
12859 /* end confdefs.h.  */
12860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12862 #define $ac_func innocuous_$ac_func
12863
12864 /* System header to define __stub macros and hopefully few prototypes,
12865     which can conflict with char $ac_func (); below.
12866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12867     <limits.h> exists even on freestanding compilers.  */
12868
12869 #ifdef __STDC__
12870 # include <limits.h>
12871 #else
12872 # include <assert.h>
12873 #endif
12874
12875 #undef $ac_func
12876
12877 /* Override any gcc2 internal prototype to avoid an error.  */
12878 #ifdef __cplusplus
12879 extern "C"
12880 {
12881 #endif
12882 /* We use char because int might match the return type of a gcc2
12883    builtin and then its argument prototype would still apply.  */
12884 char $ac_func ();
12885 /* The GNU C library defines this for functions which it implements
12886     to always fail with ENOSYS.  Some functions are actually named
12887     something starting with __ and the normal name is an alias.  */
12888 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12889 choke me
12890 #else
12891 char (*f) () = $ac_func;
12892 #endif
12893 #ifdef __cplusplus
12894 }
12895 #endif
12896
12897 int
12898 main ()
12899 {
12900 return f != $ac_func;
12901   ;
12902   return 0;
12903 }
12904 _ACEOF
12905 rm -f conftest.$ac_objext conftest$ac_exeext
12906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12907   (eval $ac_link) 2>conftest.er1
12908   ac_status=$?
12909   grep -v '^ *+' conftest.er1 >conftest.err
12910   rm -f conftest.er1
12911   cat conftest.err >&5
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); } &&
12914          { ac_try='test -z "$ac_c_werror_flag"
12915                          || test ! -s conftest.err'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; } &&
12921          { ac_try='test -s conftest$ac_exeext'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927   eval "$as_ac_var=yes"
12928 else
12929   echo "$as_me: failed program was:" >&5
12930 sed 's/^/| /' conftest.$ac_ext >&5
12931
12932 eval "$as_ac_var=no"
12933 fi
12934 rm -f conftest.err conftest.$ac_objext \
12935       conftest$ac_exeext conftest.$ac_ext
12936 fi
12937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12938 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12939 if test `eval echo '${'$as_ac_var'}'` = yes; then
12940   cat >>confdefs.h <<_ACEOF
12941 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12942 _ACEOF
12943  memcpy_found=yes
12944 fi
12945 done
12946
12947    if test "$memcpy_found" = no; then
12948       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12949 echo "$as_me: error: memcpy is required" >&2;}
12950    { (exit 1); exit 1; }; }
12951    fi
12952
12953    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12956   echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
12958   ac_check_lib_save_LIBS=$LIBS
12959 LIBS="-ldl  $LIBS"
12960 if test x$gcc_no_link = xyes; then
12961   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12963    { (exit 1); exit 1; }; }
12964 fi
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h.  */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h.  */
12971
12972 /* Override any gcc2 internal prototype to avoid an error.  */
12973 #ifdef __cplusplus
12974 extern "C"
12975 #endif
12976 /* We use char because int might match the return type of a gcc2
12977    builtin and then its argument prototype would still apply.  */
12978 char dlopen ();
12979 int
12980 main ()
12981 {
12982 dlopen ();
12983   ;
12984   return 0;
12985 }
12986 _ACEOF
12987 rm -f conftest.$ac_objext conftest$ac_exeext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12989   (eval $ac_link) 2>conftest.er1
12990   ac_status=$?
12991   grep -v '^ *+' conftest.er1 >conftest.err
12992   rm -f conftest.er1
12993   cat conftest.err >&5
12994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995   (exit $ac_status); } &&
12996          { ac_try='test -z "$ac_c_werror_flag"
12997                          || test ! -s conftest.err'
12998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999   (eval $ac_try) 2>&5
13000   ac_status=$?
13001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002   (exit $ac_status); }; } &&
13003          { ac_try='test -s conftest$ac_exeext'
13004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005   (eval $ac_try) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; }; then
13009   ac_cv_lib_dl_dlopen=yes
13010 else
13011   echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 ac_cv_lib_dl_dlopen=no
13015 fi
13016 rm -f conftest.err conftest.$ac_objext \
13017       conftest$ac_exeext conftest.$ac_ext
13018 LIBS=$ac_check_lib_save_LIBS
13019 fi
13020 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13022 if test $ac_cv_lib_dl_dlopen = yes; then
13023
13024
13025 cat >>confdefs.h <<\_ACEOF
13026 #define HAVE_DLOPEN 1
13027 _ACEOF
13028
13029 fi
13030
13031
13032    # Some library-finding code we stole from Tcl.
13033    #--------------------------------------------------------------------
13034    #    Check for the existence of the -lsocket and -lnsl libraries.
13035    #    The order here is important, so that they end up in the right
13036    #    order in the command line generated by make.  Here are some
13037    #    special considerations:
13038    #    1. Use "connect" and "accept" to check for -lsocket, and
13039    #       "gethostbyname" to check for -lnsl.
13040    #    2. Use each function name only once:  can't redo a check because
13041    #       autoconf caches the results of the last check and won't redo it.
13042    #    3. Use -lnsl and -lsocket only if they supply procedures that
13043    #       aren't already present in the normal libraries.  This is because
13044    #       IRIX 5.2 has libraries, but they aren't needed and they're
13045    #       bogus:  they goof up name resolution if used.
13046    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13047    #       To get around this problem, check for both libraries together
13048    #       if -lsocket doesn't work by itself.
13049    #--------------------------------------------------------------------
13050
13051    echo "$as_me:$LINENO: checking for socket libraries" >&5
13052 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13053 if test "${gcj_cv_lib_sockets+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   gcj_cv_lib_sockets=
13057      gcj_checkBoth=0
13058      unset ac_cv_func_connect
13059      echo "$as_me:$LINENO: checking for connect" >&5
13060 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13061 if test "${ac_cv_func_connect+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   if test x$gcc_no_link = xyes; then
13065   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13067    { (exit 1); exit 1; }; }
13068 fi
13069 cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h.  */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h.  */
13075 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13077 #define connect innocuous_connect
13078
13079 /* System header to define __stub macros and hopefully few prototypes,
13080     which can conflict with char connect (); below.
13081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082     <limits.h> exists even on freestanding compilers.  */
13083
13084 #ifdef __STDC__
13085 # include <limits.h>
13086 #else
13087 # include <assert.h>
13088 #endif
13089
13090 #undef connect
13091
13092 /* Override any gcc2 internal prototype to avoid an error.  */
13093 #ifdef __cplusplus
13094 extern "C"
13095 {
13096 #endif
13097 /* We use char because int might match the return type of a gcc2
13098    builtin and then its argument prototype would still apply.  */
13099 char connect ();
13100 /* The GNU C library defines this for functions which it implements
13101     to always fail with ENOSYS.  Some functions are actually named
13102     something starting with __ and the normal name is an alias.  */
13103 #if defined (__stub_connect) || defined (__stub___connect)
13104 choke me
13105 #else
13106 char (*f) () = connect;
13107 #endif
13108 #ifdef __cplusplus
13109 }
13110 #endif
13111
13112 int
13113 main ()
13114 {
13115 return f != connect;
13116   ;
13117   return 0;
13118 }
13119 _ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122   (eval $ac_link) 2>conftest.er1
13123   ac_status=$?
13124   grep -v '^ *+' conftest.er1 >conftest.err
13125   rm -f conftest.er1
13126   cat conftest.err >&5
13127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128   (exit $ac_status); } &&
13129          { ac_try='test -z "$ac_c_werror_flag"
13130                          || test ! -s conftest.err'
13131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132   (eval $ac_try) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }; } &&
13136          { ac_try='test -s conftest$ac_exeext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_cv_func_connect=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_cv_func_connect=no
13148 fi
13149 rm -f conftest.err conftest.$ac_objext \
13150       conftest$ac_exeext conftest.$ac_ext
13151 fi
13152 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13153 echo "${ECHO_T}$ac_cv_func_connect" >&6
13154 if test $ac_cv_func_connect = yes; then
13155   gcj_checkSocket=0
13156 else
13157   gcj_checkSocket=1
13158 fi
13159
13160      if test "$gcj_checkSocket" = 1; then
13161          unset ac_cv_func_connect
13162          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13163 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13164 if test "${ac_cv_lib_socket_main+set}" = set; then
13165   echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167   ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lsocket  $LIBS"
13169 if test x$gcc_no_link = xyes; then
13170   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13171 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13172    { (exit 1); exit 1; }; }
13173 fi
13174 cat >conftest.$ac_ext <<_ACEOF
13175 /* confdefs.h.  */
13176 _ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h.  */
13180
13181
13182 int
13183 main ()
13184 {
13185 main ();
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext conftest$ac_exeext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13192   (eval $ac_link) 2>conftest.er1
13193   ac_status=$?
13194   grep -v '^ *+' conftest.er1 >conftest.err
13195   rm -f conftest.er1
13196   cat conftest.err >&5
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } &&
13199          { ac_try='test -z "$ac_c_werror_flag"
13200                          || test ! -s conftest.err'
13201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202   (eval $ac_try) 2>&5
13203   ac_status=$?
13204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); }; } &&
13206          { ac_try='test -s conftest$ac_exeext'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; }; then
13212   ac_cv_lib_socket_main=yes
13213 else
13214   echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217 ac_cv_lib_socket_main=no
13218 fi
13219 rm -f conftest.err conftest.$ac_objext \
13220       conftest$ac_exeext conftest.$ac_ext
13221 LIBS=$ac_check_lib_save_LIBS
13222 fi
13223 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13224 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13225 if test $ac_cv_lib_socket_main = yes; then
13226   gcj_cv_lib_sockets="-lsocket"
13227 else
13228   gcj_checkBoth=1
13229 fi
13230
13231      fi
13232      if test "$gcj_checkBoth" = 1; then
13233          gcj_oldLibs=$LIBS
13234          LIBS="$LIBS -lsocket -lnsl"
13235          unset ac_cv_func_accept
13236          echo "$as_me:$LINENO: checking for accept" >&5
13237 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13238 if test "${ac_cv_func_accept+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241   if test x$gcc_no_link = xyes; then
13242   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13244    { (exit 1); exit 1; }; }
13245 fi
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h.  */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h.  */
13252 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13254 #define accept innocuous_accept
13255
13256 /* System header to define __stub macros and hopefully few prototypes,
13257     which can conflict with char accept (); below.
13258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13259     <limits.h> exists even on freestanding compilers.  */
13260
13261 #ifdef __STDC__
13262 # include <limits.h>
13263 #else
13264 # include <assert.h>
13265 #endif
13266
13267 #undef accept
13268
13269 /* Override any gcc2 internal prototype to avoid an error.  */
13270 #ifdef __cplusplus
13271 extern "C"
13272 {
13273 #endif
13274 /* We use char because int might match the return type of a gcc2
13275    builtin and then its argument prototype would still apply.  */
13276 char accept ();
13277 /* The GNU C library defines this for functions which it implements
13278     to always fail with ENOSYS.  Some functions are actually named
13279     something starting with __ and the normal name is an alias.  */
13280 #if defined (__stub_accept) || defined (__stub___accept)
13281 choke me
13282 #else
13283 char (*f) () = accept;
13284 #endif
13285 #ifdef __cplusplus
13286 }
13287 #endif
13288
13289 int
13290 main ()
13291 {
13292 return f != accept;
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13299   (eval $ac_link) 2>conftest.er1
13300   ac_status=$?
13301   grep -v '^ *+' conftest.er1 >conftest.err
13302   rm -f conftest.er1
13303   cat conftest.err >&5
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } &&
13306          { ac_try='test -z "$ac_c_werror_flag"
13307                          || test ! -s conftest.err'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } &&
13313          { ac_try='test -s conftest$ac_exeext'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; }; then
13319   ac_cv_func_accept=yes
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_cv_func_accept=no
13325 fi
13326 rm -f conftest.err conftest.$ac_objext \
13327       conftest$ac_exeext conftest.$ac_ext
13328 fi
13329 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13330 echo "${ECHO_T}$ac_cv_func_accept" >&6
13331 if test $ac_cv_func_accept = yes; then
13332   gcj_checkNsl=0
13333                         gcj_cv_lib_sockets="-lsocket -lnsl"
13334 fi
13335
13336          unset ac_cv_func_accept
13337          LIBS=$gcj_oldLibs
13338      fi
13339      unset ac_cv_func_gethostbyname
13340      gcj_oldLibs=$LIBS
13341      LIBS="$LIBS $gcj_cv_lib_sockets"
13342      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13343 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13344 if test "${ac_cv_func_gethostbyname+set}" = set; then
13345   echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347   if test x$gcc_no_link = xyes; then
13348   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13350    { (exit 1); exit 1; }; }
13351 fi
13352 cat >conftest.$ac_ext <<_ACEOF
13353 /* confdefs.h.  */
13354 _ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h.  */
13358 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13360 #define gethostbyname innocuous_gethostbyname
13361
13362 /* System header to define __stub macros and hopefully few prototypes,
13363     which can conflict with char gethostbyname (); below.
13364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13365     <limits.h> exists even on freestanding compilers.  */
13366
13367 #ifdef __STDC__
13368 # include <limits.h>
13369 #else
13370 # include <assert.h>
13371 #endif
13372
13373 #undef gethostbyname
13374
13375 /* Override any gcc2 internal prototype to avoid an error.  */
13376 #ifdef __cplusplus
13377 extern "C"
13378 {
13379 #endif
13380 /* We use char because int might match the return type of a gcc2
13381    builtin and then its argument prototype would still apply.  */
13382 char gethostbyname ();
13383 /* The GNU C library defines this for functions which it implements
13384     to always fail with ENOSYS.  Some functions are actually named
13385     something starting with __ and the normal name is an alias.  */
13386 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13387 choke me
13388 #else
13389 char (*f) () = gethostbyname;
13390 #endif
13391 #ifdef __cplusplus
13392 }
13393 #endif
13394
13395 int
13396 main ()
13397 {
13398 return f != gethostbyname;
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13405   (eval $ac_link) 2>conftest.er1
13406   ac_status=$?
13407   grep -v '^ *+' conftest.er1 >conftest.err
13408   rm -f conftest.er1
13409   cat conftest.err >&5
13410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411   (exit $ac_status); } &&
13412          { ac_try='test -z "$ac_c_werror_flag"
13413                          || test ! -s conftest.err'
13414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415   (eval $ac_try) 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; } &&
13419          { ac_try='test -s conftest$ac_exeext'
13420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13421   (eval $ac_try) 2>&5
13422   ac_status=$?
13423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424   (exit $ac_status); }; }; then
13425   ac_cv_func_gethostbyname=yes
13426 else
13427   echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13429
13430 ac_cv_func_gethostbyname=no
13431 fi
13432 rm -f conftest.err conftest.$ac_objext \
13433       conftest$ac_exeext conftest.$ac_ext
13434 fi
13435 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13436 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13437 if test $ac_cv_func_gethostbyname = yes; then
13438   :
13439 else
13440   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13441 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13442 if test "${ac_cv_lib_nsl_main+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445   ac_check_lib_save_LIBS=$LIBS
13446 LIBS="-lnsl  $LIBS"
13447 if test x$gcc_no_link = xyes; then
13448   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13449 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13450    { (exit 1); exit 1; }; }
13451 fi
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h.  */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h.  */
13458
13459
13460 int
13461 main ()
13462 {
13463 main ();
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13470   (eval $ac_link) 2>conftest.er1
13471   ac_status=$?
13472   grep -v '^ *+' conftest.er1 >conftest.err
13473   rm -f conftest.er1
13474   cat conftest.err >&5
13475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476   (exit $ac_status); } &&
13477          { ac_try='test -z "$ac_c_werror_flag"
13478                          || test ! -s conftest.err'
13479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480   (eval $ac_try) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; } &&
13484          { ac_try='test -s conftest$ac_exeext'
13485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486   (eval $ac_try) 2>&5
13487   ac_status=$?
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); }; }; then
13490   ac_cv_lib_nsl_main=yes
13491 else
13492   echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 ac_cv_lib_nsl_main=no
13496 fi
13497 rm -f conftest.err conftest.$ac_objext \
13498       conftest$ac_exeext conftest.$ac_ext
13499 LIBS=$ac_check_lib_save_LIBS
13500 fi
13501 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13502 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13503 if test $ac_cv_lib_nsl_main = yes; then
13504   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13505 fi
13506
13507 fi
13508
13509      unset ac_cv_func_gethostbyname
13510      LIBS=$gcj_oldLIBS
13511
13512 fi
13513 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13514 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13515    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13516
13517    if test "$with_system_zlib" = yes; then
13518       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13519 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13520 if test "${ac_cv_lib_z_deflate+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   ac_check_lib_save_LIBS=$LIBS
13524 LIBS="-lz  $LIBS"
13525 if test x$gcc_no_link = xyes; then
13526   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13527 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13528    { (exit 1); exit 1; }; }
13529 fi
13530 cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h.  */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h.  */
13536
13537 /* Override any gcc2 internal prototype to avoid an error.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 /* We use char because int might match the return type of a gcc2
13542    builtin and then its argument prototype would still apply.  */
13543 char deflate ();
13544 int
13545 main ()
13546 {
13547 deflate ();
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554   (eval $ac_link) 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -z "$ac_c_werror_flag"
13562                          || test ! -s conftest.err'
13563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564   (eval $ac_try) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); }; } &&
13568          { ac_try='test -s conftest$ac_exeext'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_cv_lib_z_deflate=yes
13575 else
13576   echo "$as_me: failed program was:" >&5
13577 sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 ac_cv_lib_z_deflate=no
13580 fi
13581 rm -f conftest.err conftest.$ac_objext \
13582       conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13584 fi
13585 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13586 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13587 if test $ac_cv_lib_z_deflate = yes; then
13588   ZLIBSPEC=-lz
13589 else
13590   ZLIBSPEC=
13591 fi
13592
13593    fi
13594
13595    # Test for Gtk stuff, if asked for.
13596    if test "$use_gtk_awt" = yes; then
13597
13598   succeeded=no
13599
13600   if test -z "$PKG_CONFIG"; then
13601     # Extract the first word of "pkg-config", so it can be a program name with args.
13602 set dummy pkg-config; ac_word=$2
13603 echo "$as_me:$LINENO: checking for $ac_word" >&5
13604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13605 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13606   echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608   case $PKG_CONFIG in
13609   [\\/]* | ?:[\\/]*)
13610   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13611   ;;
13612   *)
13613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614 for as_dir in $PATH
13615 do
13616   IFS=$as_save_IFS
13617   test -z "$as_dir" && as_dir=.
13618   for ac_exec_ext in '' $ac_executable_extensions; do
13619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13620     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13622     break 2
13623   fi
13624 done
13625 done
13626
13627   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13628   ;;
13629 esac
13630 fi
13631 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13632
13633 if test -n "$PKG_CONFIG"; then
13634   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13635 echo "${ECHO_T}$PKG_CONFIG" >&6
13636 else
13637   echo "$as_me:$LINENO: result: no" >&5
13638 echo "${ECHO_T}no" >&6
13639 fi
13640
13641   fi
13642
13643   if test "$PKG_CONFIG" = "no" ; then
13644      echo "*** The pkg-config script could not be found. Make sure it is"
13645      echo "*** in your path, or set the PKG_CONFIG environment variable"
13646      echo "*** to the full path to pkg-config."
13647      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13648   else
13649      PKG_CONFIG_MIN_VERSION=0.9.0
13650      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13651         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13652 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13653
13654         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13655             echo "$as_me:$LINENO: result: yes" >&5
13656 echo "${ECHO_T}yes" >&6
13657             succeeded=yes
13658
13659             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13660 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13661             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13662             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13663 echo "${ECHO_T}$GTK_CFLAGS" >&6
13664
13665             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13666 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13667             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13668             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13669 echo "${ECHO_T}$GTK_LIBS" >&6
13670         else
13671             GTK_CFLAGS=""
13672             GTK_LIBS=""
13673             ## If we have a custom action on failure, don't print errors, but
13674             ## do set a variable so people can do so.
13675             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13676             echo $GTK_PKG_ERRORS
13677         fi
13678
13679
13680
13681      else
13682         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13683         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13684      fi
13685   fi
13686
13687   if test $succeeded = yes; then
13688      :
13689   else
13690      { { 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
13691 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;}
13692    { (exit 1); exit 1; }; }
13693   fi
13694
13695
13696
13697
13698
13699   succeeded=no
13700
13701   if test -z "$PKG_CONFIG"; then
13702     # Extract the first word of "pkg-config", so it can be a program name with args.
13703 set dummy pkg-config; ac_word=$2
13704 echo "$as_me:$LINENO: checking for $ac_word" >&5
13705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13706 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13707   echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709   case $PKG_CONFIG in
13710   [\\/]* | ?:[\\/]*)
13711   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13712   ;;
13713   *)
13714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13716 do
13717   IFS=$as_save_IFS
13718   test -z "$as_dir" && as_dir=.
13719   for ac_exec_ext in '' $ac_executable_extensions; do
13720   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13721     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13723     break 2
13724   fi
13725 done
13726 done
13727
13728   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13729   ;;
13730 esac
13731 fi
13732 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13733
13734 if test -n "$PKG_CONFIG"; then
13735   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13736 echo "${ECHO_T}$PKG_CONFIG" >&6
13737 else
13738   echo "$as_me:$LINENO: result: no" >&5
13739 echo "${ECHO_T}no" >&6
13740 fi
13741
13742   fi
13743
13744   if test "$PKG_CONFIG" = "no" ; then
13745      echo "*** The pkg-config script could not be found. Make sure it is"
13746      echo "*** in your path, or set the PKG_CONFIG environment variable"
13747      echo "*** to the full path to pkg-config."
13748      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13749   else
13750      PKG_CONFIG_MIN_VERSION=0.9.0
13751      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13752         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13753 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13754
13755         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13756             echo "$as_me:$LINENO: result: yes" >&5
13757 echo "${ECHO_T}yes" >&6
13758             succeeded=yes
13759
13760             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13761 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13762             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13763             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13764 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13765
13766             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13767 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13768             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13769             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13770 echo "${ECHO_T}$GLIB_LIBS" >&6
13771         else
13772             GLIB_CFLAGS=""
13773             GLIB_LIBS=""
13774             ## If we have a custom action on failure, don't print errors, but
13775             ## do set a variable so people can do so.
13776             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13777             echo $GLIB_PKG_ERRORS
13778         fi
13779
13780
13781
13782      else
13783         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13784         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13785      fi
13786   fi
13787
13788   if test $succeeded = yes; then
13789      :
13790   else
13791      { { 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
13792 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;}
13793    { (exit 1); exit 1; }; }
13794   fi
13795
13796
13797
13798
13799
13800   succeeded=no
13801
13802   if test -z "$PKG_CONFIG"; then
13803     # Extract the first word of "pkg-config", so it can be a program name with args.
13804 set dummy pkg-config; ac_word=$2
13805 echo "$as_me:$LINENO: checking for $ac_word" >&5
13806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13807 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13808   echo $ECHO_N "(cached) $ECHO_C" >&6
13809 else
13810   case $PKG_CONFIG in
13811   [\\/]* | ?:[\\/]*)
13812   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13813   ;;
13814   *)
13815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $PATH
13817 do
13818   IFS=$as_save_IFS
13819   test -z "$as_dir" && as_dir=.
13820   for ac_exec_ext in '' $ac_executable_extensions; do
13821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13824     break 2
13825   fi
13826 done
13827 done
13828
13829   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13830   ;;
13831 esac
13832 fi
13833 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13834
13835 if test -n "$PKG_CONFIG"; then
13836   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13837 echo "${ECHO_T}$PKG_CONFIG" >&6
13838 else
13839   echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6
13841 fi
13842
13843   fi
13844
13845   if test "$PKG_CONFIG" = "no" ; then
13846      echo "*** The pkg-config script could not be found. Make sure it is"
13847      echo "*** in your path, or set the PKG_CONFIG environment variable"
13848      echo "*** to the full path to pkg-config."
13849      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13850   else
13851      PKG_CONFIG_MIN_VERSION=0.9.0
13852      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13853         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13854 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13855
13856         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13857             echo "$as_me:$LINENO: result: yes" >&5
13858 echo "${ECHO_T}yes" >&6
13859             succeeded=yes
13860
13861             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13862 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13863             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13864             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13865 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13866
13867             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13868 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13869             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13870             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13871 echo "${ECHO_T}$LIBART_LIBS" >&6
13872         else
13873             LIBART_CFLAGS=""
13874             LIBART_LIBS=""
13875             ## If we have a custom action on failure, don't print errors, but
13876             ## do set a variable so people can do so.
13877             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13878             echo $LIBART_PKG_ERRORS
13879         fi
13880
13881
13882
13883      else
13884         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13885         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13886      fi
13887   fi
13888
13889   if test $succeeded = yes; then
13890      :
13891   else
13892      { { 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
13893 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;}
13894    { (exit 1); exit 1; }; }
13895   fi
13896
13897
13898
13899
13900       # We require the XTest Extension to support java.awt.Robot.
13901       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13902 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13903 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lXtst ${X_LIBS} $LIBS"
13908 if test x$gcc_no_link = xyes; then
13909   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13910 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13911    { (exit 1); exit 1; }; }
13912 fi
13913 cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919
13920 /* Override any gcc2 internal prototype to avoid an error.  */
13921 #ifdef __cplusplus
13922 extern "C"
13923 #endif
13924 /* We use char because int might match the return type of a gcc2
13925    builtin and then its argument prototype would still apply.  */
13926 char XTestQueryExtension ();
13927 int
13928 main ()
13929 {
13930 XTestQueryExtension ();
13931   ;
13932   return 0;
13933 }
13934 _ACEOF
13935 rm -f conftest.$ac_objext conftest$ac_exeext
13936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13937   (eval $ac_link) 2>conftest.er1
13938   ac_status=$?
13939   grep -v '^ *+' conftest.er1 >conftest.err
13940   rm -f conftest.er1
13941   cat conftest.err >&5
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -z "$ac_c_werror_flag"
13945                          || test ! -s conftest.err'
13946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947   (eval $ac_try) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; } &&
13951          { ac_try='test -s conftest$ac_exeext'
13952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953   (eval $ac_try) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   ac_cv_lib_Xtst_XTestQueryExtension=yes
13958 else
13959   echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13961
13962 ac_cv_lib_Xtst_XTestQueryExtension=no
13963 fi
13964 rm -f conftest.err conftest.$ac_objext \
13965       conftest$ac_exeext conftest.$ac_ext
13966 LIBS=$ac_check_lib_save_LIBS
13967 fi
13968 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13969 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13970 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13971   true
13972 else
13973   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13974 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13975    { (exit 1); exit 1; }; }
13976 fi
13977
13978    fi
13979
13980    # On Solaris, and maybe other architectures, the Boehm collector
13981    # requires -ldl.
13982    if test "$GC" = boehm; then
13983       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13984 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13985 if test "${ac_cv_lib_dl_main+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   ac_check_lib_save_LIBS=$LIBS
13989 LIBS="-ldl  $LIBS"
13990 if test x$gcc_no_link = xyes; then
13991   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13993    { (exit 1); exit 1; }; }
13994 fi
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h.  */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h.  */
14001
14002
14003 int
14004 main ()
14005 {
14006 main ();
14007   ;
14008   return 0;
14009 }
14010 _ACEOF
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14013   (eval $ac_link) 2>conftest.er1
14014   ac_status=$?
14015   grep -v '^ *+' conftest.er1 >conftest.err
14016   rm -f conftest.er1
14017   cat conftest.err >&5
14018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019   (exit $ac_status); } &&
14020          { ac_try='test -z "$ac_c_werror_flag"
14021                          || test ! -s conftest.err'
14022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023   (eval $ac_try) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); }; } &&
14027          { ac_try='test -s conftest$ac_exeext'
14028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029   (eval $ac_try) 2>&5
14030   ac_status=$?
14031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032   (exit $ac_status); }; }; then
14033   ac_cv_lib_dl_main=yes
14034 else
14035   echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_cv_lib_dl_main=no
14039 fi
14040 rm -f conftest.err conftest.$ac_objext \
14041       conftest$ac_exeext conftest.$ac_ext
14042 LIBS=$ac_check_lib_save_LIBS
14043 fi
14044 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14045 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14046 if test $ac_cv_lib_dl_main = yes; then
14047   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14048 fi
14049
14050    fi
14051 fi
14052
14053 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14054 case $build in
14055     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14056     *)         CLASSPATH_SEPARATOR=':' ;;
14057 esac
14058
14059
14060 # We must search the source tree for java.lang, since we still don't
14061 # have libgcj.jar nor java/lang/*.class
14062 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14063 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14064
14065 # Since some classes depend on this one, we need its source available
14066 # before we can do any GCJ compilation test :-(
14067 if test ! -f gnu/classpath/Configuration.java; then
14068   test -d gnu || mkdir gnu
14069   test -d gnu/classpath || mkdir gnu/classpath
14070   # Note that it is not crucial that all the values here be correct.
14071   sed -e "s,@prefix@,$prefix," \
14072       -e "s,@VERSION@,$VERSION," \
14073       -e "s,@LIBDEBUG@,false," \
14074       -e "s,@INIT_LOAD_LIBRARY@,false," \
14075       -e "s,@@,$LIBGCJDEBUG," \
14076       -e "s,@default_toolkit@,$TOOLKIT," \
14077       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14078       -e "s,@GTK_CAIRO_ENABLED@,false," \
14079         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14080         > gnu/classpath/Configuration.java
14081   # We do not want to redirect the output of the grep below to /dev/null,
14082   # but we add /dev/null to the input list so that grep will print the
14083   # filename of Configuration.java in case it finds any matches.
14084   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14085     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14086 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14087    { (exit 1); exit 1; }; }
14088   fi
14089 fi
14090
14091 if test -n "$ac_tool_prefix"; then
14092   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14093 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14094 echo "$as_me:$LINENO: checking for $ac_word" >&5
14095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14096 if test "${ac_cv_prog_GCJ+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   if test -n "$GCJ"; then
14100   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14101 else
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14104 do
14105   IFS=$as_save_IFS
14106   test -z "$as_dir" && as_dir=.
14107   for ac_exec_ext in '' $ac_executable_extensions; do
14108   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14111     break 2
14112   fi
14113 done
14114 done
14115
14116 fi
14117 fi
14118 GCJ=$ac_cv_prog_GCJ
14119 if test -n "$GCJ"; then
14120   echo "$as_me:$LINENO: result: $GCJ" >&5
14121 echo "${ECHO_T}$GCJ" >&6
14122 else
14123   echo "$as_me:$LINENO: result: no" >&5
14124 echo "${ECHO_T}no" >&6
14125 fi
14126
14127 fi
14128 if test -z "$ac_cv_prog_GCJ"; then
14129   ac_ct_GCJ=$GCJ
14130   # Extract the first word of "gcj", so it can be a program name with args.
14131 set dummy gcj; ac_word=$2
14132 echo "$as_me:$LINENO: checking for $ac_word" >&5
14133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14134 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14135   echo $ECHO_N "(cached) $ECHO_C" >&6
14136 else
14137   if test -n "$ac_ct_GCJ"; then
14138   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14139 else
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $PATH
14142 do
14143   IFS=$as_save_IFS
14144   test -z "$as_dir" && as_dir=.
14145   for ac_exec_ext in '' $ac_executable_extensions; do
14146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147     ac_cv_prog_ac_ct_GCJ="gcj"
14148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14149     break 2
14150   fi
14151 done
14152 done
14153
14154   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14155 fi
14156 fi
14157 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14158 if test -n "$ac_ct_GCJ"; then
14159   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14160 echo "${ECHO_T}$ac_ct_GCJ" >&6
14161 else
14162   echo "$as_me:$LINENO: result: no" >&5
14163 echo "${ECHO_T}no" >&6
14164 fi
14165
14166   GCJ=$ac_ct_GCJ
14167 else
14168   GCJ="$ac_cv_prog_GCJ"
14169 fi
14170
14171   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14172
14173
14174
14175
14176 # Now remove it.
14177 rm -f gnu/classpath/Configuration.java
14178
14179 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14180
14181 echo "$as_me:$LINENO: checking for void *" >&5
14182 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14183 if test "${ac_cv_type_void_p+set}" = set; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 else
14186   cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h.  */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h.  */
14192 $ac_includes_default
14193 int
14194 main ()
14195 {
14196 if ((void * *) 0)
14197   return 0;
14198 if (sizeof (void *))
14199   return 0;
14200   ;
14201   return 0;
14202 }
14203 _ACEOF
14204 rm -f conftest.$ac_objext
14205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14206   (eval $ac_compile) 2>conftest.er1
14207   ac_status=$?
14208   grep -v '^ *+' conftest.er1 >conftest.err
14209   rm -f conftest.er1
14210   cat conftest.err >&5
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); } &&
14213          { ac_try='test -z "$ac_c_werror_flag"
14214                          || test ! -s conftest.err'
14215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14216   (eval $ac_try) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); }; } &&
14220          { ac_try='test -s conftest.$ac_objext'
14221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222   (eval $ac_try) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; }; then
14226   ac_cv_type_void_p=yes
14227 else
14228   echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_cv_type_void_p=no
14232 fi
14233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14234 fi
14235 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14236 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14237
14238 echo "$as_me:$LINENO: checking size of void *" >&5
14239 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14240 if test "${ac_cv_sizeof_void_p+set}" = set; then
14241   echo $ECHO_N "(cached) $ECHO_C" >&6
14242 else
14243   if test "$ac_cv_type_void_p" = yes; then
14244   # The cast to unsigned long works around a bug in the HP C Compiler
14245   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14246   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14247   # This bug is HP SR number 8606223364.
14248   if test "$cross_compiling" = yes; then
14249   # Depending upon the size, compute the lo and hi bounds.
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 $ac_includes_default
14257 int
14258 main ()
14259 {
14260 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14261 test_array [0] = 0
14262
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14269   (eval $ac_compile) 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -z "$ac_c_werror_flag"
14277                          || test ! -s conftest.err'
14278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14279   (eval $ac_try) 2>&5
14280   ac_status=$?
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); }; } &&
14283          { ac_try='test -s conftest.$ac_objext'
14284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14285   (eval $ac_try) 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   ac_lo=0 ac_mid=0
14290   while :; do
14291     cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h.  */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h.  */
14297 $ac_includes_default
14298 int
14299 main ()
14300 {
14301 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14302 test_array [0] = 0
14303
14304   ;
14305   return 0;
14306 }
14307 _ACEOF
14308 rm -f conftest.$ac_objext
14309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14310   (eval $ac_compile) 2>conftest.er1
14311   ac_status=$?
14312   grep -v '^ *+' conftest.er1 >conftest.err
14313   rm -f conftest.er1
14314   cat conftest.err >&5
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } &&
14317          { ac_try='test -z "$ac_c_werror_flag"
14318                          || test ! -s conftest.err'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; } &&
14324          { ac_try='test -s conftest.$ac_objext'
14325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326   (eval $ac_try) 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; }; then
14330   ac_hi=$ac_mid; break
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 ac_lo=`expr $ac_mid + 1`
14336                     if test $ac_lo -le $ac_mid; then
14337                       ac_lo= ac_hi=
14338                       break
14339                     fi
14340                     ac_mid=`expr 2 '*' $ac_mid + 1`
14341 fi
14342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14343   done
14344 else
14345   echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14347
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h.  */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h.  */
14354 $ac_includes_default
14355 int
14356 main ()
14357 {
14358 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14359 test_array [0] = 0
14360
14361   ;
14362   return 0;
14363 }
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367   (eval $ac_compile) 2>conftest.er1
14368   ac_status=$?
14369   grep -v '^ *+' conftest.er1 >conftest.err
14370   rm -f conftest.er1
14371   cat conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } &&
14374          { ac_try='test -z "$ac_c_werror_flag"
14375                          || test ! -s conftest.err'
14376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377   (eval $ac_try) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; } &&
14381          { ac_try='test -s conftest.$ac_objext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   ac_hi=-1 ac_mid=-1
14388   while :; do
14389     cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395 $ac_includes_default
14396 int
14397 main ()
14398 {
14399 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14400 test_array [0] = 0
14401
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408   (eval $ac_compile) 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -z "$ac_c_werror_flag"
14416                          || test ! -s conftest.err'
14417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14418   (eval $ac_try) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); }; } &&
14422          { ac_try='test -s conftest.$ac_objext'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428   ac_lo=$ac_mid; break
14429 else
14430   echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433 ac_hi=`expr '(' $ac_mid ')' - 1`
14434                        if test $ac_mid -le $ac_hi; then
14435                          ac_lo= ac_hi=
14436                          break
14437                        fi
14438                        ac_mid=`expr 2 '*' $ac_mid`
14439 fi
14440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14441   done
14442 else
14443   echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14445
14446 ac_lo= ac_hi=
14447 fi
14448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14449 fi
14450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14451 # Binary search between lo and hi bounds.
14452 while test "x$ac_lo" != "x$ac_hi"; do
14453   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14454   cat >conftest.$ac_ext <<_ACEOF
14455 /* confdefs.h.  */
14456 _ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h.  */
14460 $ac_includes_default
14461 int
14462 main ()
14463 {
14464 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14465 test_array [0] = 0
14466
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473   (eval $ac_compile) 2>conftest.er1
14474   ac_status=$?
14475   grep -v '^ *+' conftest.er1 >conftest.err
14476   rm -f conftest.er1
14477   cat conftest.err >&5
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } &&
14480          { ac_try='test -z "$ac_c_werror_flag"
14481                          || test ! -s conftest.err'
14482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483   (eval $ac_try) 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; } &&
14487          { ac_try='test -s conftest.$ac_objext'
14488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489   (eval $ac_try) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); }; }; then
14493   ac_hi=$ac_mid
14494 else
14495   echo "$as_me: failed program was:" >&5
14496 sed 's/^/| /' conftest.$ac_ext >&5
14497
14498 ac_lo=`expr '(' $ac_mid ')' + 1`
14499 fi
14500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14501 done
14502 case $ac_lo in
14503 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14504 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14505 See \`config.log' for more details." >&5
14506 echo "$as_me: error: cannot compute sizeof (void *), 77
14507 See \`config.log' for more details." >&2;}
14508    { (exit 1); exit 1; }; } ;;
14509 esac
14510 else
14511   if test "$cross_compiling" = yes; then
14512   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14513 See \`config.log' for more details." >&5
14514 echo "$as_me: error: cannot run test program while cross compiling
14515 See \`config.log' for more details." >&2;}
14516    { (exit 1); exit 1; }; }
14517 else
14518   cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h.  */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h.  */
14524 $ac_includes_default
14525 long longval () { return (long) (sizeof (void *)); }
14526 unsigned long ulongval () { return (long) (sizeof (void *)); }
14527 #include <stdio.h>
14528 #include <stdlib.h>
14529 int
14530 main ()
14531 {
14532
14533   FILE *f = fopen ("conftest.val", "w");
14534   if (! f)
14535     exit (1);
14536   if (((long) (sizeof (void *))) < 0)
14537     {
14538       long i = longval ();
14539       if (i != ((long) (sizeof (void *))))
14540         exit (1);
14541       fprintf (f, "%ld\n", i);
14542     }
14543   else
14544     {
14545       unsigned long i = ulongval ();
14546       if (i != ((long) (sizeof (void *))))
14547         exit (1);
14548       fprintf (f, "%lu\n", i);
14549     }
14550   exit (ferror (f) || fclose (f) != 0);
14551
14552   ;
14553   return 0;
14554 }
14555 _ACEOF
14556 rm -f conftest$ac_exeext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14558   (eval $ac_link) 2>&5
14559   ac_status=$?
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
14567   ac_cv_sizeof_void_p=`cat conftest.val`
14568 else
14569   echo "$as_me: program exited with status $ac_status" >&5
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ( exit $ac_status )
14574 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14575 See \`config.log' for more details." >&5
14576 echo "$as_me: error: cannot compute sizeof (void *), 77
14577 See \`config.log' for more details." >&2;}
14578    { (exit 1); exit 1; }; }
14579 fi
14580 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14581 fi
14582 fi
14583 rm -f conftest.val
14584 else
14585   ac_cv_sizeof_void_p=0
14586 fi
14587 fi
14588 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14589 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14590 cat >>confdefs.h <<_ACEOF
14591 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14592 _ACEOF
14593
14594
14595
14596 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14597 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14598 if test "${ac_cv_c_bigendian+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   # See if sys/param.h defines the BYTE_ORDER macro.
14602 cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 #include <sys/types.h>
14609 #include <sys/param.h>
14610
14611 int
14612 main ()
14613 {
14614 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14615  bogus endian macros
14616 #endif
14617
14618   ;
14619   return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest.$ac_objext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14624   (eval $ac_compile) 2>conftest.er1
14625   ac_status=$?
14626   grep -v '^ *+' conftest.er1 >conftest.err
14627   rm -f conftest.er1
14628   cat conftest.err >&5
14629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630   (exit $ac_status); } &&
14631          { ac_try='test -z "$ac_c_werror_flag"
14632                          || test ! -s conftest.err'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; } &&
14638          { ac_try='test -s conftest.$ac_objext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   # It does; now see whether it defined to BIG_ENDIAN or not.
14645 cat >conftest.$ac_ext <<_ACEOF
14646 /* confdefs.h.  */
14647 _ACEOF
14648 cat confdefs.h >>conftest.$ac_ext
14649 cat >>conftest.$ac_ext <<_ACEOF
14650 /* end confdefs.h.  */
14651 #include <sys/types.h>
14652 #include <sys/param.h>
14653
14654 int
14655 main ()
14656 {
14657 #if BYTE_ORDER != BIG_ENDIAN
14658  not big endian
14659 #endif
14660
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14667   (eval $ac_compile) 2>conftest.er1
14668   ac_status=$?
14669   grep -v '^ *+' conftest.er1 >conftest.err
14670   rm -f conftest.er1
14671   cat conftest.err >&5
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); } &&
14674          { ac_try='test -z "$ac_c_werror_flag"
14675                          || test ! -s conftest.err'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; } &&
14681          { ac_try='test -s conftest.$ac_objext'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; }; then
14687   ac_cv_c_bigendian=yes
14688 else
14689   echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14691
14692 ac_cv_c_bigendian=no
14693 fi
14694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 # It does not; compile a test program.
14700 if test "$cross_compiling" = yes; then
14701   # try to guess the endianness by grepping values into an object file
14702   ac_cv_c_bigendian=unknown
14703   cat >conftest.$ac_ext <<_ACEOF
14704 /* confdefs.h.  */
14705 _ACEOF
14706 cat confdefs.h >>conftest.$ac_ext
14707 cat >>conftest.$ac_ext <<_ACEOF
14708 /* end confdefs.h.  */
14709 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14710 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14711 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14712 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14713 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14714 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14715 int
14716 main ()
14717 {
14718  _ascii (); _ebcdic ();
14719   ;
14720   return 0;
14721 }
14722 _ACEOF
14723 rm -f conftest.$ac_objext
14724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14725   (eval $ac_compile) 2>conftest.er1
14726   ac_status=$?
14727   grep -v '^ *+' conftest.er1 >conftest.err
14728   rm -f conftest.er1
14729   cat conftest.err >&5
14730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731   (exit $ac_status); } &&
14732          { ac_try='test -z "$ac_c_werror_flag"
14733                          || test ! -s conftest.err'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; } &&
14739          { ac_try='test -s conftest.$ac_objext'
14740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741   (eval $ac_try) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); }; }; then
14745   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14746   ac_cv_c_bigendian=yes
14747 fi
14748 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14749   if test "$ac_cv_c_bigendian" = unknown; then
14750     ac_cv_c_bigendian=no
14751   else
14752     # finding both strings is unlikely to happen, but who knows?
14753     ac_cv_c_bigendian=unknown
14754   fi
14755 fi
14756 else
14757   echo "$as_me: failed program was:" >&5
14758 sed 's/^/| /' conftest.$ac_ext >&5
14759
14760 fi
14761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14762 else
14763   cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769 int
14770 main ()
14771 {
14772   /* Are we little or big endian?  From Harbison&Steele.  */
14773   union
14774   {
14775     long l;
14776     char c[sizeof (long)];
14777   } u;
14778   u.l = 1;
14779   exit (u.c[sizeof (long) - 1] == 1);
14780 }
14781 _ACEOF
14782 rm -f conftest$ac_exeext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14784   (eval $ac_link) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789   (eval $ac_try) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; }; then
14793   ac_cv_c_bigendian=no
14794 else
14795   echo "$as_me: program exited with status $ac_status" >&5
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799 ( exit $ac_status )
14800 ac_cv_c_bigendian=yes
14801 fi
14802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14803 fi
14804 fi
14805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14806 fi
14807 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14808 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14809 case $ac_cv_c_bigendian in
14810   yes)
14811
14812 cat >>confdefs.h <<\_ACEOF
14813 #define WORDS_BIGENDIAN 1
14814 _ACEOF
14815  ;;
14816   no)
14817      ;;
14818   *)
14819     { { echo "$as_me:$LINENO: error: unknown endianness
14820 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14821 echo "$as_me: error: unknown endianness
14822 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14823    { (exit 1); exit 1; }; } ;;
14824 esac
14825
14826
14827 ZLIBS=
14828 SYS_ZLIBS=
14829 ZINCS=
14830
14831 if test -z "$ZLIBSPEC"; then
14832    # Use zlib from the GCC tree.
14833    ZINCS='-I$(top_srcdir)/../zlib'
14834    ZLIBS=../zlib/libzgcj_convenience.la
14835 else
14836    # System's zlib.
14837    SYS_ZLIBS="$ZLIBSPEC"
14838 fi
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850 if test "$NATIVE" = yes; then
14851   NATIVE_TRUE=
14852   NATIVE_FALSE='#'
14853 else
14854   NATIVE_TRUE='#'
14855   NATIVE_FALSE=
14856 fi
14857
14858
14859
14860 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14861   NEEDS_DATA_START_TRUE=
14862   NEEDS_DATA_START_FALSE='#'
14863 else
14864   NEEDS_DATA_START_TRUE='#'
14865   NEEDS_DATA_START_FALSE=
14866 fi
14867
14868
14869
14870 # Process the option "--enable-version-specific-runtime-libs"
14871 # Calculate toolexeclibdir
14872 case ${version_specific_libs} in
14873   yes)
14874     # Need the gcc compiler version to know where to install libraries
14875     # and header files if --enable-version-specific-runtime-libs option
14876     # is selected.
14877     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14878     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14879     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14880     toolexeclibdir=$toolexecmainlibdir
14881     ;;
14882   no)
14883     if test -n "$with_cross_host" &&
14884        test x"$with_cross_host" != x"no"; then
14885       # Install a library built with a cross compiler in tooldir, not libdir.
14886       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14887       toolexecmainlibdir='$(toolexecdir)/lib'
14888     else
14889       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14890       toolexecmainlibdir='$(libdir)'
14891     fi
14892     multi_os_directory=`$CC -print-multi-os-directory`
14893     case $multi_os_directory in
14894       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14895       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14896     esac
14897     ;;
14898 esac
14899
14900
14901
14902
14903 # Determine where the standard .db file is found.
14904 multi_os_directory=`$CC -print-multi-os-directory`
14905 case $multi_os_directory in
14906   .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
14907   *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
14908 esac
14909
14910
14911 # Determine gcj version number.
14912 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14913 GCJVERSION=$gcjversion
14914
14915
14916 cat >>confdefs.h <<_ACEOF
14917 #define GCJVERSION "$GCJVERSION"
14918 _ACEOF
14919
14920
14921
14922 cat >>confdefs.h <<\_ACEOF
14923 #define JV_VERSION "1.4.2"
14924 _ACEOF
14925
14926
14927 cat >>confdefs.h <<\_ACEOF
14928 #define JV_API_VERSION "1.4"
14929 _ACEOF
14930
14931
14932
14933 case "${with_gxx_include_dir}" in
14934   yes)
14935     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14936 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14937    { (exit 1); exit 1; }; }
14938     ;;
14939   no | "")
14940     case "${enable_version_specific_runtime_libs}" in
14941       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14942       *)
14943         libstdcxx_incdir='c++/$(gcc_version)'
14944         gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14945     esac ;;
14946   *) gxx_include_dir=${with_gxx_include_dir} ;;
14947 esac
14948
14949
14950
14951
14952 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14953 # On that system, sys/ioctl.h will not include sys/filio.h unless
14954 # BSD_COMP is defined; just including sys/filio.h is simpler.
14955 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14956 # for now.  If you change this, you also must update natFile.cc.
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14978                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14979                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14980                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
14981                   dirent.h
14982 do
14983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14985   echo "$as_me:$LINENO: checking for $ac_header" >&5
14986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14988   echo $ECHO_N "(cached) $ECHO_C" >&6
14989 fi
14990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14992 else
14993   # Is the header compilable?
14994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002 $ac_includes_default
15003 #include <$ac_header>
15004 _ACEOF
15005 rm -f conftest.$ac_objext
15006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15007   (eval $ac_compile) 2>conftest.er1
15008   ac_status=$?
15009   grep -v '^ *+' conftest.er1 >conftest.err
15010   rm -f conftest.er1
15011   cat conftest.err >&5
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); } &&
15014          { ac_try='test -z "$ac_c_werror_flag"
15015                          || test ! -s conftest.err'
15016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017   (eval $ac_try) 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; } &&
15021          { ac_try='test -s conftest.$ac_objext'
15022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023   (eval $ac_try) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; }; then
15027   ac_header_compiler=yes
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032 ac_header_compiler=no
15033 fi
15034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15036 echo "${ECHO_T}$ac_header_compiler" >&6
15037
15038 # Is the header present?
15039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h.  */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h.  */
15047 #include <$ac_header>
15048 _ACEOF
15049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15051   ac_status=$?
15052   grep -v '^ *+' conftest.er1 >conftest.err
15053   rm -f conftest.er1
15054   cat conftest.err >&5
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); } >/dev/null; then
15057   if test -s conftest.err; then
15058     ac_cpp_err=$ac_c_preproc_warn_flag
15059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15060   else
15061     ac_cpp_err=
15062   fi
15063 else
15064   ac_cpp_err=yes
15065 fi
15066 if test -z "$ac_cpp_err"; then
15067   ac_header_preproc=yes
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072   ac_header_preproc=no
15073 fi
15074 rm -f conftest.err conftest.$ac_ext
15075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15076 echo "${ECHO_T}$ac_header_preproc" >&6
15077
15078 # So?  What about this header?
15079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15080   yes:no: )
15081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15085     ac_header_preproc=yes
15086     ;;
15087   no:yes:* )
15088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15100     (
15101       cat <<\_ASBOX
15102 ## ---------------------------------- ##
15103 ## Report this to the libjava lists.  ##
15104 ## ---------------------------------- ##
15105 _ASBOX
15106     ) |
15107       sed "s/^/$as_me: WARNING:     /" >&2
15108     ;;
15109 esac
15110 echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15113   echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115   eval "$as_ac_Header=\$ac_header_preproc"
15116 fi
15117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15119
15120 fi
15121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15122   cat >>confdefs.h <<_ACEOF
15123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15124 _ACEOF
15125
15126 fi
15127
15128 done
15129
15130
15131 for ac_header in inttypes.h
15132 do
15133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15135   echo "$as_me:$LINENO: checking for $ac_header" >&5
15136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15138   echo $ECHO_N "(cached) $ECHO_C" >&6
15139 fi
15140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15142 else
15143   # Is the header compilable?
15144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152 $ac_includes_default
15153 #include <$ac_header>
15154 _ACEOF
15155 rm -f conftest.$ac_objext
15156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15157   (eval $ac_compile) 2>conftest.er1
15158   ac_status=$?
15159   grep -v '^ *+' conftest.er1 >conftest.err
15160   rm -f conftest.er1
15161   cat conftest.err >&5
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); } &&
15164          { ac_try='test -z "$ac_c_werror_flag"
15165                          || test ! -s conftest.err'
15166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167   (eval $ac_try) 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }; } &&
15171          { ac_try='test -s conftest.$ac_objext'
15172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173   (eval $ac_try) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; }; then
15177   ac_header_compiler=yes
15178 else
15179   echo "$as_me: failed program was:" >&5
15180 sed 's/^/| /' conftest.$ac_ext >&5
15181
15182 ac_header_compiler=no
15183 fi
15184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15186 echo "${ECHO_T}$ac_header_compiler" >&6
15187
15188 # Is the header present?
15189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15191 cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197 #include <$ac_header>
15198 _ACEOF
15199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15201   ac_status=$?
15202   grep -v '^ *+' conftest.er1 >conftest.err
15203   rm -f conftest.er1
15204   cat conftest.err >&5
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); } >/dev/null; then
15207   if test -s conftest.err; then
15208     ac_cpp_err=$ac_c_preproc_warn_flag
15209     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15210   else
15211     ac_cpp_err=
15212   fi
15213 else
15214   ac_cpp_err=yes
15215 fi
15216 if test -z "$ac_cpp_err"; then
15217   ac_header_preproc=yes
15218 else
15219   echo "$as_me: failed program was:" >&5
15220 sed 's/^/| /' conftest.$ac_ext >&5
15221
15222   ac_header_preproc=no
15223 fi
15224 rm -f conftest.err conftest.$ac_ext
15225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15226 echo "${ECHO_T}$ac_header_preproc" >&6
15227
15228 # So?  What about this header?
15229 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15230   yes:no: )
15231     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15234 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15235     ac_header_preproc=yes
15236     ;;
15237   no:yes:* )
15238     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15240     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15241 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15242     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15243 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15244     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15245 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15247 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15248     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15249 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15250     (
15251       cat <<\_ASBOX
15252 ## ---------------------------------- ##
15253 ## Report this to the libjava lists.  ##
15254 ## ---------------------------------- ##
15255 _ASBOX
15256     ) |
15257       sed "s/^/$as_me: WARNING:     /" >&2
15258     ;;
15259 esac
15260 echo "$as_me:$LINENO: checking for $ac_header" >&5
15261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15263   echo $ECHO_N "(cached) $ECHO_C" >&6
15264 else
15265   eval "$as_ac_Header=\$ac_header_preproc"
15266 fi
15267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15269
15270 fi
15271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15272   cat >>confdefs.h <<_ACEOF
15273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15274 _ACEOF
15275
15276
15277 cat >>confdefs.h <<\_ACEOF
15278 #define HAVE_INTTYPES_H 1
15279 _ACEOF
15280
15281
15282 cat >>confdefs.h <<\_ACEOF
15283 #define JV_HAVE_INTTYPES_H 1
15284 _ACEOF
15285
15286
15287 fi
15288
15289 done
15290
15291 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15292 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15293 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 #include <sys/types.h>
15303 #include <sys/wait.h>
15304 #ifndef WEXITSTATUS
15305 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15306 #endif
15307 #ifndef WIFEXITED
15308 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15309 #endif
15310
15311 int
15312 main ()
15313 {
15314   int s;
15315   wait (&s);
15316   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15323   (eval $ac_compile) 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -z "$ac_c_werror_flag"
15331                          || test ! -s conftest.err'
15332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333   (eval $ac_try) 2>&5
15334   ac_status=$?
15335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336   (exit $ac_status); }; } &&
15337          { ac_try='test -s conftest.$ac_objext'
15338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15339   (eval $ac_try) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; }; then
15343   ac_cv_header_sys_wait_h=yes
15344 else
15345   echo "$as_me: failed program was:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15347
15348 ac_cv_header_sys_wait_h=no
15349 fi
15350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15351 fi
15352 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15353 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15354 if test $ac_cv_header_sys_wait_h = yes; then
15355
15356 cat >>confdefs.h <<\_ACEOF
15357 #define HAVE_SYS_WAIT_H 1
15358 _ACEOF
15359
15360 fi
15361
15362
15363 echo "$as_me:$LINENO: checking for ssize_t" >&5
15364 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15365 if test "${ac_cv_type_ssize_t+set}" = set; then
15366   echo $ECHO_N "(cached) $ECHO_C" >&6
15367 else
15368   cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374 $ac_includes_default
15375 int
15376 main ()
15377 {
15378 if ((ssize_t *) 0)
15379   return 0;
15380 if (sizeof (ssize_t))
15381   return 0;
15382   ;
15383   return 0;
15384 }
15385 _ACEOF
15386 rm -f conftest.$ac_objext
15387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15388   (eval $ac_compile) 2>conftest.er1
15389   ac_status=$?
15390   grep -v '^ *+' conftest.er1 >conftest.err
15391   rm -f conftest.er1
15392   cat conftest.err >&5
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); } &&
15395          { ac_try='test -z "$ac_c_werror_flag"
15396                          || test ! -s conftest.err'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; } &&
15402          { ac_try='test -s conftest.$ac_objext'
15403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15404   (eval $ac_try) 2>&5
15405   ac_status=$?
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); }; }; then
15408   ac_cv_type_ssize_t=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413 ac_cv_type_ssize_t=no
15414 fi
15415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15416 fi
15417 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15418 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15419 if test $ac_cv_type_ssize_t = yes; then
15420   :
15421 else
15422
15423 cat >>confdefs.h <<_ACEOF
15424 #define ssize_t int
15425 _ACEOF
15426
15427 fi
15428
15429
15430 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15431 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438 #include <sys/types.h>
15439 #if STDC_HEADERS
15440 #include <stdlib.h>
15441 #include <stddef.h>
15442 #endif
15443 #if HAVE_NETINET_IN_H
15444 #include <netinet/in.h>
15445 #endif
15446 int
15447 main ()
15448 {
15449 in_addr_t foo;
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456   (eval $ac_compile) 2>conftest.er1
15457   ac_status=$?
15458   grep -v '^ *+' conftest.er1 >conftest.err
15459   rm -f conftest.er1
15460   cat conftest.err >&5
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); } &&
15463          { ac_try='test -z "$ac_c_werror_flag"
15464                          || test ! -s conftest.err'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; } &&
15470          { ac_try='test -s conftest.$ac_objext'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; }; then
15476
15477 cat >>confdefs.h <<\_ACEOF
15478 #define HAVE_IN_ADDR_T 1
15479 _ACEOF
15480
15481    echo "$as_me:$LINENO: result: yes" >&5
15482 echo "${ECHO_T}yes" >&6
15483 else
15484   echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15486
15487 echo "$as_me:$LINENO: result: no" >&5
15488 echo "${ECHO_T}no" >&6
15489 fi
15490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15491
15492 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15493 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15494 cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 #include <netinet/in.h>
15501 int
15502 main ()
15503 {
15504 struct ip_mreq mreq;
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 rm -f conftest.$ac_objext
15510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15511   (eval $ac_compile) 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } &&
15518          { ac_try='test -z "$ac_c_werror_flag"
15519                          || test ! -s conftest.err'
15520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521   (eval $ac_try) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; } &&
15525          { ac_try='test -s conftest.$ac_objext'
15526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527   (eval $ac_try) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531
15532 cat >>confdefs.h <<\_ACEOF
15533 #define HAVE_STRUCT_IP_MREQ 1
15534 _ACEOF
15535
15536    echo "$as_me:$LINENO: result: yes" >&5
15537 echo "${ECHO_T}yes" >&6
15538 else
15539   echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542 echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6
15544 fi
15545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15546
15547 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15548 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15549 cat >conftest.$ac_ext <<_ACEOF
15550 /* confdefs.h.  */
15551 _ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h.  */
15555 #include <netinet/in.h>
15556 int
15557 main ()
15558 {
15559 struct ipv6_mreq mreq6;
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566   (eval $ac_compile) 2>conftest.er1
15567   ac_status=$?
15568   grep -v '^ *+' conftest.er1 >conftest.err
15569   rm -f conftest.er1
15570   cat conftest.err >&5
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); } &&
15573          { ac_try='test -z "$ac_c_werror_flag"
15574                          || test ! -s conftest.err'
15575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576   (eval $ac_try) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; } &&
15580          { ac_try='test -s conftest.$ac_objext'
15581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582   (eval $ac_try) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; }; then
15586
15587 cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_STRUCT_IPV6_MREQ 1
15589 _ACEOF
15590
15591    echo "$as_me:$LINENO: result: yes" >&5
15592 echo "${ECHO_T}yes" >&6
15593 else
15594   echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 echo "$as_me:$LINENO: result: no" >&5
15598 echo "${ECHO_T}no" >&6
15599 fi
15600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15601
15602 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15603 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15604 cat >conftest.$ac_ext <<_ACEOF
15605 /* confdefs.h.  */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h.  */
15610 #include <netinet/in.h>
15611 int
15612 main ()
15613 {
15614 struct sockaddr_in6 addr6;
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621   (eval $ac_compile) 2>conftest.er1
15622   ac_status=$?
15623   grep -v '^ *+' conftest.er1 >conftest.err
15624   rm -f conftest.er1
15625   cat conftest.err >&5
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); } &&
15628          { ac_try='test -z "$ac_c_werror_flag"
15629                          || test ! -s conftest.err'
15630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15631   (eval $ac_try) 2>&5
15632   ac_status=$?
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); }; } &&
15635          { ac_try='test -s conftest.$ac_objext'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; }; then
15641
15642 cat >>confdefs.h <<\_ACEOF
15643 #define HAVE_INET6 1
15644 _ACEOF
15645
15646    echo "$as_me:$LINENO: result: yes" >&5
15647 echo "${ECHO_T}yes" >&6
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 echo "$as_me:$LINENO: result: no" >&5
15653 echo "${ECHO_T}no" >&6
15654 fi
15655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15656
15657 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15658 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15659 cat >conftest.$ac_ext <<_ACEOF
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665 #define _POSIX_PII_SOCKET
15666 #include <sys/types.h>
15667 #include <sys/socket.h>
15668 int
15669 main ()
15670 {
15671 socklen_t x = 5;
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext
15677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15678   (eval $ac_compile) 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } &&
15685          { ac_try='test -z "$ac_c_werror_flag"
15686                          || test ! -s conftest.err'
15687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688   (eval $ac_try) 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; } &&
15692          { ac_try='test -s conftest.$ac_objext'
15693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694   (eval $ac_try) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); }; }; then
15698
15699 cat >>confdefs.h <<\_ACEOF
15700 #define HAVE_SOCKLEN_T 1
15701 _ACEOF
15702
15703    echo "$as_me:$LINENO: result: yes" >&5
15704 echo "${ECHO_T}yes" >&6
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 echo "$as_me:$LINENO: result: no" >&5
15710 echo "${ECHO_T}no" >&6
15711 fi
15712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15713
15714 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15715 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15716 cat >conftest.$ac_ext <<_ACEOF
15717 /* confdefs.h.  */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h.  */
15722 #include <time.h>
15723 int
15724 main ()
15725 {
15726 struct tm tim; tim.tm_gmtoff = 0;
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733   (eval $ac_compile) 2>conftest.er1
15734   ac_status=$?
15735   grep -v '^ *+' conftest.er1 >conftest.err
15736   rm -f conftest.er1
15737   cat conftest.err >&5
15738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739   (exit $ac_status); } &&
15740          { ac_try='test -z "$ac_c_werror_flag"
15741                          || test ! -s conftest.err'
15742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743   (eval $ac_try) 2>&5
15744   ac_status=$?
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); }; } &&
15747          { ac_try='test -s conftest.$ac_objext'
15748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749   (eval $ac_try) 2>&5
15750   ac_status=$?
15751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752   (exit $ac_status); }; }; then
15753
15754 cat >>confdefs.h <<\_ACEOF
15755 #define STRUCT_TM_HAS_GMTOFF 1
15756 _ACEOF
15757
15758    echo "$as_me:$LINENO: result: yes" >&5
15759 echo "${ECHO_T}yes" >&6
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764 echo "$as_me:$LINENO: result: no" >&5
15765 echo "${ECHO_T}no" >&6
15766    echo "$as_me:$LINENO: checking for global timezone variable" >&5
15767 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15768                cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h.  */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h.  */
15774 #include <time.h>
15775 int
15776 main ()
15777 {
15778 void i(){long z2 = 2*timezone;}
15779   ;
15780   return 0;
15781 }
15782 _ACEOF
15783 rm -f conftest.$ac_objext
15784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15785   (eval $ac_compile) 2>conftest.er1
15786   ac_status=$?
15787   grep -v '^ *+' conftest.er1 >conftest.err
15788   rm -f conftest.er1
15789   cat conftest.err >&5
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); } &&
15792          { ac_try='test -z "$ac_c_werror_flag"
15793                          || test ! -s conftest.err'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; } &&
15799          { ac_try='test -s conftest.$ac_objext'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805
15806 cat >>confdefs.h <<\_ACEOF
15807 #define HAVE_TIMEZONE 1
15808 _ACEOF
15809
15810       echo "$as_me:$LINENO: result: yes" >&5
15811 echo "${ECHO_T}yes" >&6
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 echo "$as_me:$LINENO: result: no" >&5
15817 echo "${ECHO_T}no" >&6
15818        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15819 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15820               cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h.  */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h.  */
15826 #include <time.h>
15827 int
15828 main ()
15829 {
15830 long z2 = _timezone;
15831   ;
15832   return 0;
15833 }
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837   (eval $ac_compile) 2>conftest.er1
15838   ac_status=$?
15839   grep -v '^ *+' conftest.er1 >conftest.err
15840   rm -f conftest.er1
15841   cat conftest.err >&5
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); } &&
15844          { ac_try='test -z "$ac_c_werror_flag"
15845                          || test ! -s conftest.err'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; } &&
15851          { ac_try='test -s conftest.$ac_objext'
15852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15853   (eval $ac_try) 2>&5
15854   ac_status=$?
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); }; }; then
15857
15858 cat >>confdefs.h <<\_ACEOF
15859 #define HAVE_UNDERSCORE_TIMEZONE 1
15860 _ACEOF
15861
15862           echo "$as_me:$LINENO: result: yes" >&5
15863 echo "${ECHO_T}yes" >&6
15864 else
15865   echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15867
15868 echo "$as_me:$LINENO: result: no" >&5
15869 echo "${ECHO_T}no" >&6
15870 fi
15871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15872 fi
15873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15874 fi
15875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876
15877 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15878 # for constant arguments.  Useless!
15879 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15880 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15881 if test "${ac_cv_working_alloca_h+set}" = set; then
15882   echo $ECHO_N "(cached) $ECHO_C" >&6
15883 else
15884   if test x$gcc_no_link = xyes; then
15885   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15887    { (exit 1); exit 1; }; }
15888 fi
15889 cat >conftest.$ac_ext <<_ACEOF
15890 /* confdefs.h.  */
15891 _ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h.  */
15895 #include <alloca.h>
15896 int
15897 main ()
15898 {
15899 char *p = (char *) alloca (2 * sizeof (int));
15900   ;
15901   return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906   (eval $ac_link) 2>conftest.er1
15907   ac_status=$?
15908   grep -v '^ *+' conftest.er1 >conftest.err
15909   rm -f conftest.er1
15910   cat conftest.err >&5
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); } &&
15913          { ac_try='test -z "$ac_c_werror_flag"
15914                          || test ! -s conftest.err'
15915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916   (eval $ac_try) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; } &&
15920          { ac_try='test -s conftest$ac_exeext'
15921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15922   (eval $ac_try) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }; }; then
15926   ac_cv_working_alloca_h=yes
15927 else
15928   echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15930
15931 ac_cv_working_alloca_h=no
15932 fi
15933 rm -f conftest.err conftest.$ac_objext \
15934       conftest$ac_exeext conftest.$ac_ext
15935 fi
15936 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15937 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15938 if test $ac_cv_working_alloca_h = yes; then
15939
15940 cat >>confdefs.h <<\_ACEOF
15941 #define HAVE_ALLOCA_H 1
15942 _ACEOF
15943
15944 fi
15945
15946 echo "$as_me:$LINENO: checking for alloca" >&5
15947 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15948 if test "${ac_cv_func_alloca_works+set}" = set; then
15949   echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951   if test x$gcc_no_link = xyes; then
15952   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15953 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15954    { (exit 1); exit 1; }; }
15955 fi
15956 cat >conftest.$ac_ext <<_ACEOF
15957 /* confdefs.h.  */
15958 _ACEOF
15959 cat confdefs.h >>conftest.$ac_ext
15960 cat >>conftest.$ac_ext <<_ACEOF
15961 /* end confdefs.h.  */
15962 #ifdef __GNUC__
15963 # define alloca __builtin_alloca
15964 #else
15965 # ifdef _MSC_VER
15966 #  include <malloc.h>
15967 #  define alloca _alloca
15968 # else
15969 #  if HAVE_ALLOCA_H
15970 #   include <alloca.h>
15971 #  else
15972 #   ifdef _AIX
15973  #pragma alloca
15974 #   else
15975 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15976 char *alloca ();
15977 #    endif
15978 #   endif
15979 #  endif
15980 # endif
15981 #endif
15982
15983 int
15984 main ()
15985 {
15986 char *p = (char *) alloca (1);
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15993   (eval $ac_link) 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } &&
16000          { ac_try='test -z "$ac_c_werror_flag"
16001                          || test ! -s conftest.err'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; } &&
16007          { ac_try='test -s conftest$ac_exeext'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   ac_cv_func_alloca_works=yes
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 ac_cv_func_alloca_works=no
16019 fi
16020 rm -f conftest.err conftest.$ac_objext \
16021       conftest$ac_exeext conftest.$ac_ext
16022 fi
16023 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16024 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16025
16026 if test $ac_cv_func_alloca_works = yes; then
16027
16028 cat >>confdefs.h <<\_ACEOF
16029 #define HAVE_ALLOCA 1
16030 _ACEOF
16031
16032 else
16033   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16034 # that cause trouble.  Some versions do not even contain alloca or
16035 # contain a buggy version.  If you still want to use their alloca,
16036 # use ar to extract alloca.o from them instead of compiling alloca.c.
16037
16038 ALLOCA=alloca.$ac_objext
16039
16040 cat >>confdefs.h <<\_ACEOF
16041 #define C_ALLOCA 1
16042 _ACEOF
16043
16044
16045 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16046 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16047 if test "${ac_cv_os_cray+set}" = set; then
16048   echo $ECHO_N "(cached) $ECHO_C" >&6
16049 else
16050   cat >conftest.$ac_ext <<_ACEOF
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056 #if defined(CRAY) && ! defined(CRAY2)
16057 webecray
16058 #else
16059 wenotbecray
16060 #endif
16061
16062 _ACEOF
16063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16064   $EGREP "webecray" >/dev/null 2>&1; then
16065   ac_cv_os_cray=yes
16066 else
16067   ac_cv_os_cray=no
16068 fi
16069 rm -f conftest*
16070
16071 fi
16072 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16073 echo "${ECHO_T}$ac_cv_os_cray" >&6
16074 if test $ac_cv_os_cray = yes; then
16075   for ac_func in _getb67 GETB67 getb67; do
16076     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16077 echo "$as_me:$LINENO: checking for $ac_func" >&5
16078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16079 if eval "test \"\${$as_ac_var+set}\" = set"; then
16080   echo $ECHO_N "(cached) $ECHO_C" >&6
16081 else
16082   if test x$gcc_no_link = xyes; then
16083   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16084 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16085    { (exit 1); exit 1; }; }
16086 fi
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16095 #define $ac_func innocuous_$ac_func
16096
16097 /* System header to define __stub macros and hopefully few prototypes,
16098     which can conflict with char $ac_func (); below.
16099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16100     <limits.h> exists even on freestanding compilers.  */
16101
16102 #ifdef __STDC__
16103 # include <limits.h>
16104 #else
16105 # include <assert.h>
16106 #endif
16107
16108 #undef $ac_func
16109
16110 /* Override any gcc2 internal prototype to avoid an error.  */
16111 #ifdef __cplusplus
16112 extern "C"
16113 {
16114 #endif
16115 /* We use char because int might match the return type of a gcc2
16116    builtin and then its argument prototype would still apply.  */
16117 char $ac_func ();
16118 /* The GNU C library defines this for functions which it implements
16119     to always fail with ENOSYS.  Some functions are actually named
16120     something starting with __ and the normal name is an alias.  */
16121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16122 choke me
16123 #else
16124 char (*f) () = $ac_func;
16125 #endif
16126 #ifdef __cplusplus
16127 }
16128 #endif
16129
16130 int
16131 main ()
16132 {
16133 return f != $ac_func;
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140   (eval $ac_link) 2>conftest.er1
16141   ac_status=$?
16142   grep -v '^ *+' conftest.er1 >conftest.err
16143   rm -f conftest.er1
16144   cat conftest.err >&5
16145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146   (exit $ac_status); } &&
16147          { ac_try='test -z "$ac_c_werror_flag"
16148                          || test ! -s conftest.err'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; } &&
16154          { ac_try='test -s conftest$ac_exeext'
16155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156   (eval $ac_try) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); }; }; then
16160   eval "$as_ac_var=yes"
16161 else
16162   echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16164
16165 eval "$as_ac_var=no"
16166 fi
16167 rm -f conftest.err conftest.$ac_objext \
16168       conftest$ac_exeext conftest.$ac_ext
16169 fi
16170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16172 if test `eval echo '${'$as_ac_var'}'` = yes; then
16173
16174 cat >>confdefs.h <<_ACEOF
16175 #define CRAY_STACKSEG_END $ac_func
16176 _ACEOF
16177
16178     break
16179 fi
16180
16181   done
16182 fi
16183
16184 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16185 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16186 if test "${ac_cv_c_stack_direction+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   if test "$cross_compiling" = yes; then
16190   ac_cv_c_stack_direction=0
16191 else
16192   cat >conftest.$ac_ext <<_ACEOF
16193 /* confdefs.h.  */
16194 _ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h.  */
16198 int
16199 find_stack_direction ()
16200 {
16201   static char *addr = 0;
16202   auto char dummy;
16203   if (addr == 0)
16204     {
16205       addr = &dummy;
16206       return find_stack_direction ();
16207     }
16208   else
16209     return (&dummy > addr) ? 1 : -1;
16210 }
16211
16212 int
16213 main ()
16214 {
16215   exit (find_stack_direction () < 0);
16216 }
16217 _ACEOF
16218 rm -f conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220   (eval $ac_link) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225   (eval $ac_try) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; }; then
16229   ac_cv_c_stack_direction=1
16230 else
16231   echo "$as_me: program exited with status $ac_status" >&5
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235 ( exit $ac_status )
16236 ac_cv_c_stack_direction=-1
16237 fi
16238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 fi
16241 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16242 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define STACK_DIRECTION $ac_cv_c_stack_direction
16246 _ACEOF
16247
16248
16249 fi
16250
16251 if test x$gcc_no_link = xyes; then
16252   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
16253     ac_cv_func_mmap_fixed_mapped=no
16254   fi
16255 fi
16256 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
16257
16258
16259 for ac_header in stdlib.h unistd.h
16260 do
16261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16263   echo "$as_me:$LINENO: checking for $ac_header" >&5
16264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16266   echo $ECHO_N "(cached) $ECHO_C" >&6
16267 fi
16268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16270 else
16271   # Is the header compilable?
16272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h.  */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h.  */
16280 $ac_includes_default
16281 #include <$ac_header>
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285   (eval $ac_compile) 2>conftest.er1
16286   ac_status=$?
16287   grep -v '^ *+' conftest.er1 >conftest.err
16288   rm -f conftest.er1
16289   cat conftest.err >&5
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -z "$ac_c_werror_flag"
16293                          || test ! -s conftest.err'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; } &&
16299          { ac_try='test -s conftest.$ac_objext'
16300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301   (eval $ac_try) 2>&5
16302   ac_status=$?
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); }; }; then
16305   ac_header_compiler=yes
16306 else
16307   echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310 ac_header_compiler=no
16311 fi
16312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16314 echo "${ECHO_T}$ac_header_compiler" >&6
16315
16316 # Is the header present?
16317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 #include <$ac_header>
16326 _ACEOF
16327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } >/dev/null; then
16335   if test -s conftest.err; then
16336     ac_cpp_err=$ac_c_preproc_warn_flag
16337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16338   else
16339     ac_cpp_err=
16340   fi
16341 else
16342   ac_cpp_err=yes
16343 fi
16344 if test -z "$ac_cpp_err"; then
16345   ac_header_preproc=yes
16346 else
16347   echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16349
16350   ac_header_preproc=no
16351 fi
16352 rm -f conftest.err conftest.$ac_ext
16353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16354 echo "${ECHO_T}$ac_header_preproc" >&6
16355
16356 # So?  What about this header?
16357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16358   yes:no: )
16359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16363     ac_header_preproc=yes
16364     ;;
16365   no:yes:* )
16366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16378     (
16379       cat <<\_ASBOX
16380 ## ---------------------------------- ##
16381 ## Report this to the libjava lists.  ##
16382 ## ---------------------------------- ##
16383 _ASBOX
16384     ) |
16385       sed "s/^/$as_me: WARNING:     /" >&2
16386     ;;
16387 esac
16388 echo "$as_me:$LINENO: checking for $ac_header" >&5
16389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   eval "$as_ac_Header=\$ac_header_preproc"
16394 fi
16395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16397
16398 fi
16399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16400   cat >>confdefs.h <<_ACEOF
16401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16402 _ACEOF
16403
16404 fi
16405
16406 done
16407
16408
16409 for ac_func in getpagesize
16410 do
16411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16412 echo "$as_me:$LINENO: checking for $ac_func" >&5
16413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16414 if eval "test \"\${$as_ac_var+set}\" = set"; then
16415   echo $ECHO_N "(cached) $ECHO_C" >&6
16416 else
16417   if test x$gcc_no_link = xyes; then
16418   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16420    { (exit 1); exit 1; }; }
16421 fi
16422 cat >conftest.$ac_ext <<_ACEOF
16423 /* confdefs.h.  */
16424 _ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h.  */
16428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16430 #define $ac_func innocuous_$ac_func
16431
16432 /* System header to define __stub macros and hopefully few prototypes,
16433     which can conflict with char $ac_func (); below.
16434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16435     <limits.h> exists even on freestanding compilers.  */
16436
16437 #ifdef __STDC__
16438 # include <limits.h>
16439 #else
16440 # include <assert.h>
16441 #endif
16442
16443 #undef $ac_func
16444
16445 /* Override any gcc2 internal prototype to avoid an error.  */
16446 #ifdef __cplusplus
16447 extern "C"
16448 {
16449 #endif
16450 /* We use char because int might match the return type of a gcc2
16451    builtin and then its argument prototype would still apply.  */
16452 char $ac_func ();
16453 /* The GNU C library defines this for functions which it implements
16454     to always fail with ENOSYS.  Some functions are actually named
16455     something starting with __ and the normal name is an alias.  */
16456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16457 choke me
16458 #else
16459 char (*f) () = $ac_func;
16460 #endif
16461 #ifdef __cplusplus
16462 }
16463 #endif
16464
16465 int
16466 main ()
16467 {
16468 return f != $ac_func;
16469   ;
16470   return 0;
16471 }
16472 _ACEOF
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16475   (eval $ac_link) 2>conftest.er1
16476   ac_status=$?
16477   grep -v '^ *+' conftest.er1 >conftest.err
16478   rm -f conftest.er1
16479   cat conftest.err >&5
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); } &&
16482          { ac_try='test -z "$ac_c_werror_flag"
16483                          || test ! -s conftest.err'
16484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16485   (eval $ac_try) 2>&5
16486   ac_status=$?
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); }; } &&
16489          { ac_try='test -s conftest$ac_exeext'
16490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491   (eval $ac_try) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }; then
16495   eval "$as_ac_var=yes"
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500 eval "$as_ac_var=no"
16501 fi
16502 rm -f conftest.err conftest.$ac_objext \
16503       conftest$ac_exeext conftest.$ac_ext
16504 fi
16505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16507 if test `eval echo '${'$as_ac_var'}'` = yes; then
16508   cat >>confdefs.h <<_ACEOF
16509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16510 _ACEOF
16511
16512 fi
16513 done
16514
16515 echo "$as_me:$LINENO: checking for working mmap" >&5
16516 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16517 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520   if test "$cross_compiling" = yes; then
16521   ac_cv_func_mmap_fixed_mapped=no
16522 else
16523   cat >conftest.$ac_ext <<_ACEOF
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529 $ac_includes_default
16530 /* malloc might have been renamed as rpl_malloc. */
16531 #undef malloc
16532
16533 /* Thanks to Mike Haertel and Jim Avera for this test.
16534    Here is a matrix of mmap possibilities:
16535         mmap private not fixed
16536         mmap private fixed at somewhere currently unmapped
16537         mmap private fixed at somewhere already mapped
16538         mmap shared not fixed
16539         mmap shared fixed at somewhere currently unmapped
16540         mmap shared fixed at somewhere already mapped
16541    For private mappings, we should verify that changes cannot be read()
16542    back from the file, nor mmap's back from the file at a different
16543    address.  (There have been systems where private was not correctly
16544    implemented like the infamous i386 svr4.0, and systems where the
16545    VM page cache was not coherent with the file system buffer cache
16546    like early versions of FreeBSD and possibly contemporary NetBSD.)
16547    For shared mappings, we should conversely verify that changes get
16548    propagated back to all the places they're supposed to be.
16549
16550    Grep wants private fixed already mapped.
16551    The main things grep needs to know about mmap are:
16552    * does it exist and is it safe to write into the mmap'd area
16553    * how to use it (BSD variants)  */
16554
16555 #include <fcntl.h>
16556 #include <sys/mman.h>
16557
16558 #if !STDC_HEADERS && !HAVE_STDLIB_H
16559 char *malloc ();
16560 #endif
16561
16562 /* This mess was copied from the GNU getpagesize.h.  */
16563 #if !HAVE_GETPAGESIZE
16564 /* Assume that all systems that can run configure have sys/param.h.  */
16565 # if !HAVE_SYS_PARAM_H
16566 #  define HAVE_SYS_PARAM_H 1
16567 # endif
16568
16569 # ifdef _SC_PAGESIZE
16570 #  define getpagesize() sysconf(_SC_PAGESIZE)
16571 # else /* no _SC_PAGESIZE */
16572 #  if HAVE_SYS_PARAM_H
16573 #   include <sys/param.h>
16574 #   ifdef EXEC_PAGESIZE
16575 #    define getpagesize() EXEC_PAGESIZE
16576 #   else /* no EXEC_PAGESIZE */
16577 #    ifdef NBPG
16578 #     define getpagesize() NBPG * CLSIZE
16579 #     ifndef CLSIZE
16580 #      define CLSIZE 1
16581 #     endif /* no CLSIZE */
16582 #    else /* no NBPG */
16583 #     ifdef NBPC
16584 #      define getpagesize() NBPC
16585 #     else /* no NBPC */
16586 #      ifdef PAGESIZE
16587 #       define getpagesize() PAGESIZE
16588 #      endif /* PAGESIZE */
16589 #     endif /* no NBPC */
16590 #    endif /* no NBPG */
16591 #   endif /* no EXEC_PAGESIZE */
16592 #  else /* no HAVE_SYS_PARAM_H */
16593 #   define getpagesize() 8192   /* punt totally */
16594 #  endif /* no HAVE_SYS_PARAM_H */
16595 # endif /* no _SC_PAGESIZE */
16596
16597 #endif /* no HAVE_GETPAGESIZE */
16598
16599 int
16600 main ()
16601 {
16602   char *data, *data2, *data3;
16603   int i, pagesize;
16604   int fd;
16605
16606   pagesize = getpagesize ();
16607
16608   /* First, make a file with some known garbage in it. */
16609   data = (char *) malloc (pagesize);
16610   if (!data)
16611     exit (1);
16612   for (i = 0; i < pagesize; ++i)
16613     *(data + i) = rand ();
16614   umask (0);
16615   fd = creat ("conftest.mmap", 0600);
16616   if (fd < 0)
16617     exit (1);
16618   if (write (fd, data, pagesize) != pagesize)
16619     exit (1);
16620   close (fd);
16621
16622   /* Next, try to mmap the file at a fixed address which already has
16623      something else allocated at it.  If we can, also make sure that
16624      we see the same garbage.  */
16625   fd = open ("conftest.mmap", O_RDWR);
16626   if (fd < 0)
16627     exit (1);
16628   data2 = (char *) malloc (2 * pagesize);
16629   if (!data2)
16630     exit (1);
16631   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16632   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16633                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
16634     exit (1);
16635   for (i = 0; i < pagesize; ++i)
16636     if (*(data + i) != *(data2 + i))
16637       exit (1);
16638
16639   /* Finally, make sure that changes to the mapped area do not
16640      percolate back to the file as seen by read().  (This is a bug on
16641      some variants of i386 svr4.0.)  */
16642   for (i = 0; i < pagesize; ++i)
16643     *(data2 + i) = *(data2 + i) + 1;
16644   data3 = (char *) malloc (pagesize);
16645   if (!data3)
16646     exit (1);
16647   if (read (fd, data3, pagesize) != pagesize)
16648     exit (1);
16649   for (i = 0; i < pagesize; ++i)
16650     if (*(data + i) != *(data3 + i))
16651       exit (1);
16652   close (fd);
16653   exit (0);
16654 }
16655 _ACEOF
16656 rm -f conftest$ac_exeext
16657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16658   (eval $ac_link) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663   (eval $ac_try) 2>&5
16664   ac_status=$?
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); }; }; then
16667   ac_cv_func_mmap_fixed_mapped=yes
16668 else
16669   echo "$as_me: program exited with status $ac_status" >&5
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16672
16673 ( exit $ac_status )
16674 ac_cv_func_mmap_fixed_mapped=no
16675 fi
16676 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16677 fi
16678 fi
16679 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16680 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16681 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16682
16683 cat >>confdefs.h <<\_ACEOF
16684 #define HAVE_MMAP 1
16685 _ACEOF
16686
16687 fi
16688 rm -f conftest.mmap
16689
16690 fi
16691
16692 for ac_prog in perl
16693 do
16694   # Extract the first word of "$ac_prog", so it can be a program name with args.
16695 set dummy $ac_prog; ac_word=$2
16696 echo "$as_me:$LINENO: checking for $ac_word" >&5
16697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16698 if test "${ac_cv_prog_PERL+set}" = set; then
16699   echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701   if test -n "$PERL"; then
16702   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16703 else
16704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16705 for as_dir in $PATH
16706 do
16707   IFS=$as_save_IFS
16708   test -z "$as_dir" && as_dir=.
16709   for ac_exec_ext in '' $ac_executable_extensions; do
16710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16711     ac_cv_prog_PERL="$ac_prog"
16712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16713     break 2
16714   fi
16715 done
16716 done
16717
16718 fi
16719 fi
16720 PERL=$ac_cv_prog_PERL
16721 if test -n "$PERL"; then
16722   echo "$as_me:$LINENO: result: $PERL" >&5
16723 echo "${ECHO_T}$PERL" >&6
16724 else
16725   echo "$as_me:$LINENO: result: no" >&5
16726 echo "${ECHO_T}no" >&6
16727 fi
16728
16729   test -n "$PERL" && break
16730 done
16731 test -n "$PERL" || PERL="false"
16732
16733
16734 SYSDEP_SOURCES=
16735 SIGNAL_HANDLER_AUX=
16736
16737 case "${host}" in
16738  i?86-*-linux*)
16739     SIGNAL_HANDLER=include/i386-signal.h
16740     ;;
16741  sparc*-sun-solaris*)
16742     SIGNAL_HANDLER=include/sparc-signal.h
16743     ;;
16744 # ia64-*)
16745 #    SYSDEP_SOURCES=sysdep/ia64.c
16746 #    test -d sysdep || mkdir sysdep
16747 #    ;;
16748  hppa*-*-linux*)
16749     SIGNAL_HANDLER=include/pa-signal.h
16750     ;;
16751  ia64-*-linux*)
16752     SIGNAL_HANDLER=include/dwarf2-signal.h
16753     ;;
16754  powerpc*-*-linux*)
16755     SIGNAL_HANDLER=include/powerpc-signal.h
16756     ;;
16757  alpha*-*-linux*)
16758     SIGNAL_HANDLER=include/dwarf2-signal.h
16759     ;;
16760  s390*-*-linux*)
16761     SIGNAL_HANDLER=include/s390-signal.h
16762     ;;
16763  x86_64*-*-linux*)
16764     SIGNAL_HANDLER=include/x86_64-signal.h
16765     SIGNAL_HANDLER_AUX=include/i386-signal.h
16766     ;;
16767  sparc*-*-linux*)
16768     SIGNAL_HANDLER=include/dwarf2-signal.h
16769     ;;
16770  sh*-*-linux*)
16771     SIGNAL_HANDLER=include/sh-signal.h
16772     ;;
16773  *mingw*)
16774     SIGNAL_HANDLER=include/win32-signal.h
16775     ;;
16776  mips*-*-linux*)
16777     SIGNAL_HANDLER=include/mips-signal.h
16778     ;;
16779  *-*-darwin*)
16780     SIGNAL_HANDLER=include/darwin-signal.h
16781     ;;
16782  *)
16783     SIGNAL_HANDLER=include/default-signal.h
16784     ;;
16785 esac
16786
16787 # If we're using sjlj exceptions, forget what we just learned.
16788 if test "$enable_sjlj_exceptions" = yes; then
16789    SIGNAL_HANDLER=include/default-signal.h
16790    SIGNAL_HANDLER_AUX=
16791 fi
16792
16793
16794
16795 if test -z "$SIGNAL_HANDLER_AUX"; then
16796   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16797 fi
16798
16799                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16800
16801
16802 if test "${multilib}" = "yes"; then
16803   multilib_arg="--enable-multilib"
16804 else
16805   multilib_arg=
16806 fi
16807
16808 # See if we support thread-local storage.
16809
16810    # Check whether --enable-tls or --disable-tls was given.
16811 if test "${enable_tls+set}" = set; then
16812   enableval="$enable_tls"
16813
16814       case "$enableval" in
16815        yes|no) ;;
16816        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16817 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16818    { (exit 1); exit 1; }; } ;;
16819       esac
16820
16821 else
16822   enable_tls=yes
16823 fi;
16824
16825   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16826 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16827 if test "${have_tls+set}" = set; then
16828   echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830
16831     if test "$cross_compiling" = yes; then
16832   cat >conftest.$ac_ext <<_ACEOF
16833 __thread int foo;
16834 _ACEOF
16835 rm -f conftest.$ac_objext
16836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16837   (eval $ac_compile) 2>conftest.er1
16838   ac_status=$?
16839   grep -v '^ *+' conftest.er1 >conftest.err
16840   rm -f conftest.er1
16841   cat conftest.err >&5
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); } &&
16844          { ac_try='test -z "$ac_c_werror_flag"
16845                          || test ! -s conftest.err'
16846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847   (eval $ac_try) 2>&5
16848   ac_status=$?
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); }; } &&
16851          { ac_try='test -s conftest.$ac_objext'
16852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16853   (eval $ac_try) 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; }; then
16857   have_tls=yes
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 have_tls=no
16863 fi
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865
16866 else
16867   cat >conftest.$ac_ext <<_ACEOF
16868 __thread int a; int b; int main() { return a = b; }
16869 _ACEOF
16870 rm -f conftest$ac_exeext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16872   (eval $ac_link) 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877   (eval $ac_try) 2>&5
16878   ac_status=$?
16879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880   (exit $ac_status); }; }; then
16881                     save_LDFLAGS="$LDFLAGS"
16882       LDFLAGS="-static $LDFLAGS"
16883       if test "$cross_compiling" = yes; then
16884   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16885 See \`config.log' for more details." >&5
16886 echo "$as_me: error: cannot run test program while cross compiling
16887 See \`config.log' for more details." >&2;}
16888    { (exit 1); exit 1; }; }
16889 else
16890   cat >conftest.$ac_ext <<_ACEOF
16891 __thread int a; int b; int main() { return a = b; }
16892 _ACEOF
16893 rm -f conftest$ac_exeext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16895   (eval $ac_link) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900   (eval $ac_try) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; }; then
16904   have_tls=yes
16905 else
16906   echo "$as_me: program exited with status $ac_status" >&5
16907 echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16909
16910 ( exit $ac_status )
16911 have_tls=no
16912 fi
16913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16914 fi
16915       LDFLAGS="$save_LDFLAGS"
16916 else
16917   echo "$as_me: program exited with status $ac_status" >&5
16918 echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.$ac_ext >&5
16920
16921 ( exit $ac_status )
16922 have_tls=no
16923 fi
16924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16925 fi
16926 fi
16927 echo "$as_me:$LINENO: result: $have_tls" >&5
16928 echo "${ECHO_T}$have_tls" >&6
16929   if test "$enable_tls $have_tls" = "yes yes"; then
16930
16931 cat >>confdefs.h <<\_ACEOF
16932 #define HAVE_TLS 1
16933 _ACEOF
16934
16935   fi
16936
16937 # Check if linker supports static linking on a per library basis
16938 LD_START_STATIC_SPEC=
16939 LD_FINISH_STATIC_SPEC=
16940 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16941   if $LD --help 2>&1 | grep -q -e -non_shared ; then
16942     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16943     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16944   fi
16945 fi
16946
16947
16948
16949 here=`${PWDCMD-pwd}`
16950
16951
16952 # We get this from the environment.
16953
16954
16955                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16956
16957
16958           ac_config_commands="$ac_config_commands default"
16959
16960
16961 cat >confcache <<\_ACEOF
16962 # This file is a shell script that caches the results of configure
16963 # tests run on this system so they can be shared between configure
16964 # scripts and configure runs, see configure's option --config-cache.
16965 # It is not useful on other systems.  If it contains results you don't
16966 # want to keep, you may remove or edit it.
16967 #
16968 # config.status only pays attention to the cache file if you give it
16969 # the --recheck option to rerun configure.
16970 #
16971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16973 # following values.
16974
16975 _ACEOF
16976
16977 # The following way of writing the cache mishandles newlines in values,
16978 # but we know of no workaround that is simple, portable, and efficient.
16979 # So, don't put newlines in cache variables' values.
16980 # Ultrix sh set writes to stderr and can't be redirected directly,
16981 # and sets the high bit in the cache file unless we assign to the vars.
16982 {
16983   (set) 2>&1 |
16984     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16985     *ac_space=\ *)
16986       # `set' does not quote correctly, so add quotes (double-quote
16987       # substitution turns \\\\ into \\, and sed turns \\ into \).
16988       sed -n \
16989         "s/'/'\\\\''/g;
16990           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16991       ;;
16992     *)
16993       # `set' quotes correctly as required by POSIX, so do not add quotes.
16994       sed -n \
16995         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16996       ;;
16997     esac;
16998 } |
16999   sed '
17000      t clear
17001      : clear
17002      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17003      t end
17004      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17005      : end' >>confcache
17006 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17007   if test -w $cache_file; then
17008     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17009     cat confcache >$cache_file
17010   else
17011     echo "not updating unwritable cache $cache_file"
17012   fi
17013 fi
17014 rm -f confcache
17015
17016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17017 # Let make expand exec_prefix.
17018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17019
17020 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17021 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17022 # trailing colons and then remove the whole line if VPATH becomes empty
17023 # (actually we leave an empty line to preserve line numbers).
17024 if test "x$srcdir" = x.; then
17025   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17026 s/:*\$(srcdir):*/:/;
17027 s/:*\${srcdir}:*/:/;
17028 s/:*@srcdir@:*/:/;
17029 s/^\([^=]*=[     ]*\):*/\1/;
17030 s/:*$//;
17031 s/^[^=]*=[       ]*$//;
17032 }'
17033 fi
17034
17035 DEFS=-DHAVE_CONFIG_H
17036
17037 ac_libobjs=
17038 ac_ltlibobjs=
17039 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17040   # 1. Remove the extension, and $U if already installed.
17041   ac_i=`echo "$ac_i" |
17042          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17043   # 2. Add them.
17044   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17045   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17046 done
17047 LIBOBJS=$ac_libobjs
17048
17049 LTLIBOBJS=$ac_ltlibobjs
17050
17051
17052 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17053   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17054 Usually this means the macro was only invoked conditionally." >&5
17055 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17056 Usually this means the macro was only invoked conditionally." >&2;}
17057    { (exit 1); exit 1; }; }
17058 fi
17059 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17060   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17061 Usually this means the macro was only invoked conditionally." >&5
17062 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17063 Usually this means the macro was only invoked conditionally." >&2;}
17064    { (exit 1); exit 1; }; }
17065 fi
17066 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17067   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17068 Usually this means the macro was only invoked conditionally." >&5
17069 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17070 Usually this means the macro was only invoked conditionally." >&2;}
17071    { (exit 1); exit 1; }; }
17072 fi
17073 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17074   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17075 Usually this means the macro was only invoked conditionally." >&5
17076 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17077 Usually this means the macro was only invoked conditionally." >&2;}
17078    { (exit 1); exit 1; }; }
17079 fi
17080 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17081   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17082 Usually this means the macro was only invoked conditionally." >&5
17083 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17084 Usually this means the macro was only invoked conditionally." >&2;}
17085    { (exit 1); exit 1; }; }
17086 fi
17087 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
17088   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
17089 Usually this means the macro was only invoked conditionally." >&5
17090 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
17091 Usually this means the macro was only invoked conditionally." >&2;}
17092    { (exit 1); exit 1; }; }
17093 fi
17094 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17095   { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17096 Usually this means the macro was only invoked conditionally." >&5
17097 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17098 Usually this means the macro was only invoked conditionally." >&2;}
17099    { (exit 1); exit 1; }; }
17100 fi
17101 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17102   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17103 Usually this means the macro was only invoked conditionally." >&5
17104 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17105 Usually this means the macro was only invoked conditionally." >&2;}
17106    { (exit 1); exit 1; }; }
17107 fi
17108 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17109   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17110 Usually this means the macro was only invoked conditionally." >&5
17111 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17112 Usually this means the macro was only invoked conditionally." >&2;}
17113    { (exit 1); exit 1; }; }
17114 fi
17115 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17116   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17117 Usually this means the macro was only invoked conditionally." >&5
17118 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17119 Usually this means the macro was only invoked conditionally." >&2;}
17120    { (exit 1); exit 1; }; }
17121 fi
17122 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17123   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17124 Usually this means the macro was only invoked conditionally." >&5
17125 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17126 Usually this means the macro was only invoked conditionally." >&2;}
17127    { (exit 1); exit 1; }; }
17128 fi
17129 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17130   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17131 Usually this means the macro was only invoked conditionally." >&5
17132 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17133 Usually this means the macro was only invoked conditionally." >&2;}
17134    { (exit 1); exit 1; }; }
17135 fi
17136 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17137   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17138 Usually this means the macro was only invoked conditionally." >&5
17139 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17140 Usually this means the macro was only invoked conditionally." >&2;}
17141    { (exit 1); exit 1; }; }
17142 fi
17143 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17144   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17145 Usually this means the macro was only invoked conditionally." >&5
17146 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17147 Usually this means the macro was only invoked conditionally." >&2;}
17148    { (exit 1); exit 1; }; }
17149 fi
17150 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17151   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17152 Usually this means the macro was only invoked conditionally." >&5
17153 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17154 Usually this means the macro was only invoked conditionally." >&2;}
17155    { (exit 1); exit 1; }; }
17156 fi
17157 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17158   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17159 Usually this means the macro was only invoked conditionally." >&5
17160 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17161 Usually this means the macro was only invoked conditionally." >&2;}
17162    { (exit 1); exit 1; }; }
17163 fi
17164 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17165   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17166 Usually this means the macro was only invoked conditionally." >&5
17167 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17168 Usually this means the macro was only invoked conditionally." >&2;}
17169    { (exit 1); exit 1; }; }
17170 fi
17171 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17172   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17173 Usually this means the macro was only invoked conditionally." >&5
17174 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17175 Usually this means the macro was only invoked conditionally." >&2;}
17176    { (exit 1); exit 1; }; }
17177 fi
17178 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17179   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17180 Usually this means the macro was only invoked conditionally." >&5
17181 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17182 Usually this means the macro was only invoked conditionally." >&2;}
17183    { (exit 1); exit 1; }; }
17184 fi
17185 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17186   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17187 Usually this means the macro was only invoked conditionally." >&5
17188 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17189 Usually this means the macro was only invoked conditionally." >&2;}
17190    { (exit 1); exit 1; }; }
17191 fi
17192 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17193   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17194 Usually this means the macro was only invoked conditionally." >&5
17195 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17196 Usually this means the macro was only invoked conditionally." >&2;}
17197    { (exit 1); exit 1; }; }
17198 fi
17199 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17200   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17201 Usually this means the macro was only invoked conditionally." >&5
17202 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17203 Usually this means the macro was only invoked conditionally." >&2;}
17204    { (exit 1); exit 1; }; }
17205 fi
17206
17207 : ${CONFIG_STATUS=./config.status}
17208 ac_clean_files_save=$ac_clean_files
17209 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17210 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17211 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17212 cat >$CONFIG_STATUS <<_ACEOF
17213 #! $SHELL
17214 # Generated by $as_me.
17215 # Run this file to recreate the current configuration.
17216 # Compiler output produced by configure, useful for debugging
17217 # configure, is in config.log if it exists.
17218
17219 debug=false
17220 ac_cs_recheck=false
17221 ac_cs_silent=false
17222 SHELL=\${CONFIG_SHELL-$SHELL}
17223 _ACEOF
17224
17225 cat >>$CONFIG_STATUS <<\_ACEOF
17226 ## --------------------- ##
17227 ## M4sh Initialization.  ##
17228 ## --------------------- ##
17229
17230 # Be Bourne compatible
17231 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17232   emulate sh
17233   NULLCMD=:
17234   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17235   # is contrary to our usage.  Disable this feature.
17236   alias -g '${1+"$@"}'='"$@"'
17237 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17238   set -o posix
17239 fi
17240 DUALCASE=1; export DUALCASE # for MKS sh
17241
17242 # Support unset when possible.
17243 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17244   as_unset=unset
17245 else
17246   as_unset=false
17247 fi
17248
17249
17250 # Work around bugs in pre-3.0 UWIN ksh.
17251 $as_unset ENV MAIL MAILPATH
17252 PS1='$ '
17253 PS2='> '
17254 PS4='+ '
17255
17256 # NLS nuisances.
17257 for as_var in \
17258   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17259   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17260   LC_TELEPHONE LC_TIME
17261 do
17262   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17263     eval $as_var=C; export $as_var
17264   else
17265     $as_unset $as_var
17266   fi
17267 done
17268
17269 # Required to use basename.
17270 if expr a : '\(a\)' >/dev/null 2>&1; then
17271   as_expr=expr
17272 else
17273   as_expr=false
17274 fi
17275
17276 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17277   as_basename=basename
17278 else
17279   as_basename=false
17280 fi
17281
17282
17283 # Name of the executable.
17284 as_me=`$as_basename "$0" ||
17285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17286          X"$0" : 'X\(//\)$' \| \
17287          X"$0" : 'X\(/\)$' \| \
17288          .     : '\(.\)' 2>/dev/null ||
17289 echo X/"$0" |
17290     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17291           /^X\/\(\/\/\)$/{ s//\1/; q; }
17292           /^X\/\(\/\).*/{ s//\1/; q; }
17293           s/.*/./; q'`
17294
17295
17296 # PATH needs CR, and LINENO needs CR and PATH.
17297 # Avoid depending upon Character Ranges.
17298 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17299 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17300 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17301 as_cr_digits='0123456789'
17302 as_cr_alnum=$as_cr_Letters$as_cr_digits
17303
17304 # The user is always right.
17305 if test "${PATH_SEPARATOR+set}" != set; then
17306   echo "#! /bin/sh" >conf$$.sh
17307   echo  "exit 0"   >>conf$$.sh
17308   chmod +x conf$$.sh
17309   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17310     PATH_SEPARATOR=';'
17311   else
17312     PATH_SEPARATOR=:
17313   fi
17314   rm -f conf$$.sh
17315 fi
17316
17317
17318   as_lineno_1=$LINENO
17319   as_lineno_2=$LINENO
17320   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17321   test "x$as_lineno_1" != "x$as_lineno_2" &&
17322   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17323   # Find who we are.  Look in the path if we contain no path at all
17324   # relative or not.
17325   case $0 in
17326     *[\\/]* ) as_myself=$0 ;;
17327     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17329 do
17330   IFS=$as_save_IFS
17331   test -z "$as_dir" && as_dir=.
17332   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17333 done
17334
17335        ;;
17336   esac
17337   # We did not find ourselves, most probably we were run as `sh COMMAND'
17338   # in which case we are not to be found in the path.
17339   if test "x$as_myself" = x; then
17340     as_myself=$0
17341   fi
17342   if test ! -f "$as_myself"; then
17343     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17344 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17345    { (exit 1); exit 1; }; }
17346   fi
17347   case $CONFIG_SHELL in
17348   '')
17349     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17351 do
17352   IFS=$as_save_IFS
17353   test -z "$as_dir" && as_dir=.
17354   for as_base in sh bash ksh sh5; do
17355          case $as_dir in
17356          /*)
17357            if ("$as_dir/$as_base" -c '
17358   as_lineno_1=$LINENO
17359   as_lineno_2=$LINENO
17360   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17361   test "x$as_lineno_1" != "x$as_lineno_2" &&
17362   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17363              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17364              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17365              CONFIG_SHELL=$as_dir/$as_base
17366              export CONFIG_SHELL
17367              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17368            fi;;
17369          esac
17370        done
17371 done
17372 ;;
17373   esac
17374
17375   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17376   # uniformly replaced by the line number.  The first 'sed' inserts a
17377   # line-number line before each line; the second 'sed' does the real
17378   # work.  The second script uses 'N' to pair each line-number line
17379   # with the numbered line, and appends trailing '-' during
17380   # substitution so that $LINENO is not a special case at line end.
17381   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17382   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17383   sed '=' <$as_myself |
17384     sed '
17385       N
17386       s,$,-,
17387       : loop
17388       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17389       t loop
17390       s,-$,,
17391       s,^['$as_cr_digits']*\n,,
17392     ' >$as_me.lineno &&
17393   chmod +x $as_me.lineno ||
17394     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17395 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17396    { (exit 1); exit 1; }; }
17397
17398   # Don't try to exec as it changes $[0], causing all sort of problems
17399   # (the dirname of $[0] is not the place where we might find the
17400   # original and so on.  Autoconf is especially sensible to this).
17401   . ./$as_me.lineno
17402   # Exit status is that of the last command.
17403   exit
17404 }
17405
17406
17407 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17408   *c*,-n*) ECHO_N= ECHO_C='
17409 ' ECHO_T='      ' ;;
17410   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17411   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17412 esac
17413
17414 if expr a : '\(a\)' >/dev/null 2>&1; then
17415   as_expr=expr
17416 else
17417   as_expr=false
17418 fi
17419
17420 rm -f conf$$ conf$$.exe conf$$.file
17421 echo >conf$$.file
17422 if ln -s conf$$.file conf$$ 2>/dev/null; then
17423   # We could just check for DJGPP; but this test a) works b) is more generic
17424   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17425   if test -f conf$$.exe; then
17426     # Don't use ln at all; we don't have any links
17427     as_ln_s='cp -p'
17428   else
17429     as_ln_s='ln -s'
17430   fi
17431 elif ln conf$$.file conf$$ 2>/dev/null; then
17432   as_ln_s=ln
17433 else
17434   as_ln_s='cp -p'
17435 fi
17436 rm -f conf$$ conf$$.exe conf$$.file
17437
17438 if mkdir -p . 2>/dev/null; then
17439   as_mkdir_p=:
17440 else
17441   test -d ./-p && rmdir ./-p
17442   as_mkdir_p=false
17443 fi
17444
17445 as_executable_p="test -f"
17446
17447 # Sed expression to map a string onto a valid CPP name.
17448 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17449
17450 # Sed expression to map a string onto a valid variable name.
17451 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17452
17453
17454 # IFS
17455 # We need space, tab and new line, in precisely that order.
17456 as_nl='
17457 '
17458 IFS="   $as_nl"
17459
17460 # CDPATH.
17461 $as_unset CDPATH
17462
17463 exec 6>&1
17464
17465 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17466 # report actual input values of CONFIG_FILES etc. instead of their
17467 # values after options handling.  Logging --version etc. is OK.
17468 exec 5>>config.log
17469 {
17470   echo
17471   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17472 ## Running $as_me. ##
17473 _ASBOX
17474 } >&5
17475 cat >&5 <<_CSEOF
17476
17477 This file was extended by libjava $as_me version-unused, which was
17478 generated by GNU Autoconf 2.59.  Invocation command line was
17479
17480   CONFIG_FILES    = $CONFIG_FILES
17481   CONFIG_HEADERS  = $CONFIG_HEADERS
17482   CONFIG_LINKS    = $CONFIG_LINKS
17483   CONFIG_COMMANDS = $CONFIG_COMMANDS
17484   $ $0 $@
17485
17486 _CSEOF
17487 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17488 echo >&5
17489 _ACEOF
17490
17491 # Files that config.status was made for.
17492 if test -n "$ac_config_files"; then
17493   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17494 fi
17495
17496 if test -n "$ac_config_headers"; then
17497   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17498 fi
17499
17500 if test -n "$ac_config_links"; then
17501   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17502 fi
17503
17504 if test -n "$ac_config_commands"; then
17505   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17506 fi
17507
17508 cat >>$CONFIG_STATUS <<\_ACEOF
17509
17510 ac_cs_usage="\
17511 \`$as_me' instantiates files from templates according to the
17512 current configuration.
17513
17514 Usage: $0 [OPTIONS] [FILE]...
17515
17516   -h, --help       print this help, then exit
17517   -V, --version    print version number, then exit
17518   -q, --quiet      do not print progress messages
17519   -d, --debug      don't remove temporary files
17520       --recheck    update $as_me by reconfiguring in the same conditions
17521   --file=FILE[:TEMPLATE]
17522                    instantiate the configuration file FILE
17523   --header=FILE[:TEMPLATE]
17524                    instantiate the configuration header FILE
17525
17526 Configuration files:
17527 $config_files
17528
17529 Configuration headers:
17530 $config_headers
17531
17532 Configuration links:
17533 $config_links
17534
17535 Configuration commands:
17536 $config_commands
17537
17538 Report bugs to <bug-autoconf@gnu.org>."
17539 _ACEOF
17540
17541 cat >>$CONFIG_STATUS <<_ACEOF
17542 ac_cs_version="\\
17543 libjava config.status version-unused
17544 configured by $0, generated by GNU Autoconf 2.59,
17545   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17546
17547 Copyright (C) 2003 Free Software Foundation, Inc.
17548 This config.status script is free software; the Free Software Foundation
17549 gives unlimited permission to copy, distribute and modify it."
17550 srcdir=$srcdir
17551 INSTALL="$INSTALL"
17552 _ACEOF
17553
17554 cat >>$CONFIG_STATUS <<\_ACEOF
17555 # If no file are specified by the user, then we need to provide default
17556 # value.  By we need to know if files were specified by the user.
17557 ac_need_defaults=:
17558 while test $# != 0
17559 do
17560   case $1 in
17561   --*=*)
17562     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17563     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17564     ac_shift=:
17565     ;;
17566   -*)
17567     ac_option=$1
17568     ac_optarg=$2
17569     ac_shift=shift
17570     ;;
17571   *) # This is not an option, so the user has probably given explicit
17572      # arguments.
17573      ac_option=$1
17574      ac_need_defaults=false;;
17575   esac
17576
17577   case $ac_option in
17578   # Handling of the options.
17579 _ACEOF
17580 cat >>$CONFIG_STATUS <<\_ACEOF
17581   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17582     ac_cs_recheck=: ;;
17583   --version | --vers* | -V )
17584     echo "$ac_cs_version"; exit 0 ;;
17585   --he | --h)
17586     # Conflict between --help and --header
17587     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17588 Try \`$0 --help' for more information." >&5
17589 echo "$as_me: error: ambiguous option: $1
17590 Try \`$0 --help' for more information." >&2;}
17591    { (exit 1); exit 1; }; };;
17592   --help | --hel | -h )
17593     echo "$ac_cs_usage"; exit 0 ;;
17594   --debug | --d* | -d )
17595     debug=: ;;
17596   --file | --fil | --fi | --f )
17597     $ac_shift
17598     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17599     ac_need_defaults=false;;
17600   --header | --heade | --head | --hea )
17601     $ac_shift
17602     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17603     ac_need_defaults=false;;
17604   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17605   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17606     ac_cs_silent=: ;;
17607
17608   # This is an error.
17609   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17610 Try \`$0 --help' for more information." >&5
17611 echo "$as_me: error: unrecognized option: $1
17612 Try \`$0 --help' for more information." >&2;}
17613    { (exit 1); exit 1; }; } ;;
17614
17615   *) ac_config_targets="$ac_config_targets $1" ;;
17616
17617   esac
17618   shift
17619 done
17620
17621 ac_configure_extra_args=
17622
17623 if $ac_cs_silent; then
17624   exec 6>/dev/null
17625   ac_configure_extra_args="$ac_configure_extra_args --silent"
17626 fi
17627
17628 _ACEOF
17629 cat >>$CONFIG_STATUS <<_ACEOF
17630 if \$ac_cs_recheck; then
17631   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17632   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17633 fi
17634
17635 _ACEOF
17636
17637 cat >>$CONFIG_STATUS <<_ACEOF
17638 #
17639 # INIT-COMMANDS section.
17640 #
17641
17642 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17643 srcdir=${srcdir}
17644 host=${host}
17645 target=${target}
17646 with_multisubdir=${with_multisubdir}
17647 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17648 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17649 libgcj_basedir=${libgcj_basedir}
17650 CC="${CC}"
17651 CXX="${CXX}"
17652 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17653
17654
17655 _ACEOF
17656
17657
17658
17659 cat >>$CONFIG_STATUS <<\_ACEOF
17660 for ac_config_target in $ac_config_targets
17661 do
17662   case "$ac_config_target" in
17663   # Handling of arguments.
17664   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17665   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17666   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17667   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17668   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17669   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17670   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17671   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17672   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17673   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17674   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17675   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17676   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17677   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17678   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17679   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17680   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17681   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17682   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17683   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17684   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17685   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17686   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17687   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17688   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17689   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17690   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17691   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17692   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17693   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17694 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17695    { (exit 1); exit 1; }; };;
17696   esac
17697 done
17698
17699 # If the user did not use the arguments to specify the items to instantiate,
17700 # then the envvar interface is used.  Set only those that are not.
17701 # We use the long form for the default assignment because of an extremely
17702 # bizarre bug on SunOS 4.1.3.
17703 if $ac_need_defaults; then
17704   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17705   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17706   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17707   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17708 fi
17709
17710 # Have a temporary directory for convenience.  Make it in the build tree
17711 # simply because there is no reason to put it here, and in addition,
17712 # creating and moving files from /tmp can sometimes cause problems.
17713 # Create a temporary directory, and hook for its removal unless debugging.
17714 $debug ||
17715 {
17716   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17717   trap '{ (exit 1); exit 1; }' 1 2 13 15
17718 }
17719
17720 # Create a (secure) tmp directory for tmp files.
17721
17722 {
17723   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17724   test -n "$tmp" && test -d "$tmp"
17725 }  ||
17726 {
17727   tmp=./confstat$$-$RANDOM
17728   (umask 077 && mkdir $tmp)
17729 } ||
17730 {
17731    echo "$me: cannot create a temporary directory in ." >&2
17732    { (exit 1); exit 1; }
17733 }
17734
17735 _ACEOF
17736
17737 cat >>$CONFIG_STATUS <<_ACEOF
17738
17739 #
17740 # CONFIG_FILES section.
17741 #
17742
17743 # No need to generate the scripts if there are no CONFIG_FILES.
17744 # This happens for instance when ./config.status config.h
17745 if test -n "\$CONFIG_FILES"; then
17746   # Protect against being on the right side of a sed subst in config.status.
17747   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17748    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17749 s,@SHELL@,$SHELL,;t t
17750 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17751 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17752 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17753 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17754 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17755 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17756 s,@exec_prefix@,$exec_prefix,;t t
17757 s,@prefix@,$prefix,;t t
17758 s,@program_transform_name@,$program_transform_name,;t t
17759 s,@bindir@,$bindir,;t t
17760 s,@sbindir@,$sbindir,;t t
17761 s,@libexecdir@,$libexecdir,;t t
17762 s,@datadir@,$datadir,;t t
17763 s,@sysconfdir@,$sysconfdir,;t t
17764 s,@sharedstatedir@,$sharedstatedir,;t t
17765 s,@localstatedir@,$localstatedir,;t t
17766 s,@libdir@,$libdir,;t t
17767 s,@includedir@,$includedir,;t t
17768 s,@oldincludedir@,$oldincludedir,;t t
17769 s,@infodir@,$infodir,;t t
17770 s,@mandir@,$mandir,;t t
17771 s,@build_alias@,$build_alias,;t t
17772 s,@host_alias@,$host_alias,;t t
17773 s,@target_alias@,$target_alias,;t t
17774 s,@DEFS@,$DEFS,;t t
17775 s,@ECHO_C@,$ECHO_C,;t t
17776 s,@ECHO_N@,$ECHO_N,;t t
17777 s,@ECHO_T@,$ECHO_T,;t t
17778 s,@LIBS@,$LIBS,;t t
17779 s,@build@,$build,;t t
17780 s,@build_cpu@,$build_cpu,;t t
17781 s,@build_vendor@,$build_vendor,;t t
17782 s,@build_os@,$build_os,;t t
17783 s,@build_subdir@,$build_subdir,;t t
17784 s,@host_subdir@,$host_subdir,;t t
17785 s,@target_subdir@,$target_subdir,;t t
17786 s,@libgcj_basedir@,$libgcj_basedir,;t t
17787 s,@host@,$host,;t t
17788 s,@host_cpu@,$host_cpu,;t t
17789 s,@host_vendor@,$host_vendor,;t t
17790 s,@host_os@,$host_os,;t t
17791 s,@target@,$target,;t t
17792 s,@target_cpu@,$target_cpu,;t t
17793 s,@target_vendor@,$target_vendor,;t t
17794 s,@target_os@,$target_os,;t t
17795 s,@target_noncanonical@,$target_noncanonical,;t t
17796 s,@LN_S@,$LN_S,;t t
17797 s,@mkinstalldirs@,$mkinstalldirs,;t t
17798 s,@CC@,$CC,;t t
17799 s,@ac_ct_CC@,$ac_ct_CC,;t t
17800 s,@EXEEXT@,$EXEEXT,;t t
17801 s,@OBJEXT@,$OBJEXT,;t t
17802 s,@CXX@,$CXX,;t t
17803 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17804 s,@CFLAGS@,$CFLAGS,;t t
17805 s,@CXXFLAGS@,$CXXFLAGS,;t t
17806 s,@LDFLAGS@,$LDFLAGS,;t t
17807 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17808 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17809 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17810 s,@CYGPATH_W@,$CYGPATH_W,;t t
17811 s,@PACKAGE@,$PACKAGE,;t t
17812 s,@VERSION@,$VERSION,;t t
17813 s,@ACLOCAL@,$ACLOCAL,;t t
17814 s,@AUTOCONF@,$AUTOCONF,;t t
17815 s,@AUTOMAKE@,$AUTOMAKE,;t t
17816 s,@AUTOHEADER@,$AUTOHEADER,;t t
17817 s,@MAKEINFO@,$MAKEINFO,;t t
17818 s,@install_sh@,$install_sh,;t t
17819 s,@STRIP@,$STRIP,;t t
17820 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17821 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17822 s,@mkdir_p@,$mkdir_p,;t t
17823 s,@AWK@,$AWK,;t t
17824 s,@SET_MAKE@,$SET_MAKE,;t t
17825 s,@am__leading_dot@,$am__leading_dot,;t t
17826 s,@AMTAR@,$AMTAR,;t t
17827 s,@am__tar@,$am__tar,;t t
17828 s,@am__untar@,$am__untar,;t t
17829 s,@DEPDIR@,$DEPDIR,;t t
17830 s,@am__include@,$am__include,;t t
17831 s,@am__quote@,$am__quote,;t t
17832 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17833 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17834 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17835 s,@CCDEPMODE@,$CCDEPMODE,;t t
17836 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17837 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17838 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17839 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17840 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17841 s,@AS@,$AS,;t t
17842 s,@ac_ct_AS@,$ac_ct_AS,;t t
17843 s,@LD@,$LD,;t t
17844 s,@ac_ct_LD@,$ac_ct_LD,;t t
17845 s,@AR@,$AR,;t t
17846 s,@ac_ct_AR@,$ac_ct_AR,;t t
17847 s,@RANLIB@,$RANLIB,;t t
17848 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17849 s,@JAR@,$JAR,;t t
17850 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17851 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17852 s,@MAINT@,$MAINT,;t t
17853 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17854 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17855 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17856 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17857 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17858 s,@TOOLKIT@,$TOOLKIT,;t t
17859 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17860 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17861 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17862 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17863 s,@QT_AWT_TRUE@,$QT_AWT_TRUE,;t t
17864 s,@QT_AWT_FALSE@,$QT_AWT_FALSE,;t t
17865 s,@GCJH@,$GCJH,;t t
17866 s,@INCLTDL@,$INCLTDL,;t t
17867 s,@LIBLTDL@,$LIBLTDL,;t t
17868 s,@DIRLTDL@,$DIRLTDL,;t t
17869 s,@LIBTOOL@,$LIBTOOL,;t t
17870 s,@CXXCPP@,$CXXCPP,;t t
17871 s,@CPPFLAGS@,$CPPFLAGS,;t t
17872 s,@GCJ@,$GCJ,;t t
17873 s,@GCJFLAGS@,$GCJFLAGS,;t t
17874 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17875 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17876 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17877 s,@subdirs@,$subdirs,;t t
17878 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17879 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17880 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17881 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17882 s,@JAVA_HOME@,$JAVA_HOME,;t t
17883 s,@INTERPRETER@,$INTERPRETER,;t t
17884 s,@LIBFFI@,$LIBFFI,;t t
17885 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17886 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17887 s,@CPP@,$CPP,;t t
17888 s,@EGREP@,$EGREP,;t t
17889 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17890 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17891 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17892 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17893 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17894 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17895 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17896 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17897 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17898 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17899 s,@X_CFLAGS@,$X_CFLAGS,;t t
17900 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17901 s,@X_LIBS@,$X_LIBS,;t t
17902 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17903 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17904 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17905 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17906 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17907 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17908 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17909 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17910 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17911 s,@GCLIBS@,$GCLIBS,;t t
17912 s,@GCINCS@,$GCINCS,;t t
17913 s,@GCDEPS@,$GCDEPS,;t t
17914 s,@GCSPEC@,$GCSPEC,;t t
17915 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17916 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17917 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17918 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17919 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17920 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17921 s,@THREADLIBS@,$THREADLIBS,;t t
17922 s,@THREADINCS@,$THREADINCS,;t t
17923 s,@THREADDEPS@,$THREADDEPS,;t t
17924 s,@THREADSPEC@,$THREADSPEC,;t t
17925 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17926 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17927 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17928 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17929 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17930 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17931 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17932 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17933 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17934 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17935 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17936 s,@LIBICONV@,$LIBICONV,;t t
17937 s,@LTLIBICONV@,$LTLIBICONV,;t t
17938 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17939 s,@GTK_LIBS@,$GTK_LIBS,;t t
17940 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17941 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17942 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17943 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17944 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17945 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17946 s,@ZLIBS@,$ZLIBS,;t t
17947 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17948 s,@ZINCS@,$ZINCS,;t t
17949 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17950 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17951 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17952 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17953 s,@IEEESPEC@,$IEEESPEC,;t t
17954 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17955 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17956 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17957 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17958 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17959 s,@toolexecdir@,$toolexecdir,;t t
17960 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17961 s,@toolexeclibdir@,$toolexeclibdir,;t t
17962 s,@dbexecdir@,$dbexecdir,;t t
17963 s,@GCJVERSION@,$GCJVERSION,;t t
17964 s,@gxx_include_dir@,$gxx_include_dir,;t t
17965 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17966 s,@ALLOCA@,$ALLOCA,;t t
17967 s,@PERL@,$PERL,;t t
17968 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17969 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17970 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17971 s,@here@,$here,;t t
17972 s,@LIBOBJS@,$LIBOBJS,;t t
17973 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17974 CEOF
17975
17976 _ACEOF
17977
17978   cat >>$CONFIG_STATUS <<\_ACEOF
17979   # Split the substitutions into bite-sized pieces for seds with
17980   # small command number limits, like on Digital OSF/1 and HP-UX.
17981   ac_max_sed_lines=48
17982   ac_sed_frag=1 # Number of current file.
17983   ac_beg=1 # First line for current file.
17984   ac_end=$ac_max_sed_lines # Line after last line for current file.
17985   ac_more_lines=:
17986   ac_sed_cmds=
17987   while $ac_more_lines; do
17988     if test $ac_beg -gt 1; then
17989       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17990     else
17991       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17992     fi
17993     if test ! -s $tmp/subs.frag; then
17994       ac_more_lines=false
17995     else
17996       # The purpose of the label and of the branching condition is to
17997       # speed up the sed processing (if there are no `@' at all, there
17998       # is no need to browse any of the substitutions).
17999       # These are the two extra sed commands mentioned above.
18000       (echo ':t
18001   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18002       if test -z "$ac_sed_cmds"; then
18003         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18004       else
18005         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18006       fi
18007       ac_sed_frag=`expr $ac_sed_frag + 1`
18008       ac_beg=$ac_end
18009       ac_end=`expr $ac_end + $ac_max_sed_lines`
18010     fi
18011   done
18012   if test -z "$ac_sed_cmds"; then
18013     ac_sed_cmds=cat
18014   fi
18015 fi # test -n "$CONFIG_FILES"
18016
18017 _ACEOF
18018 cat >>$CONFIG_STATUS <<\_ACEOF
18019 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18020   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18021   case $ac_file in
18022   - | *:- | *:-:* ) # input from stdin
18023         cat >$tmp/stdin
18024         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18025         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18026   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18027         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18028   * )   ac_file_in=$ac_file.in ;;
18029   esac
18030
18031   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18032   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18034          X"$ac_file" : 'X\(//\)[^/]' \| \
18035          X"$ac_file" : 'X\(//\)$' \| \
18036          X"$ac_file" : 'X\(/\)' \| \
18037          .     : '\(.\)' 2>/dev/null ||
18038 echo X"$ac_file" |
18039     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18040           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18041           /^X\(\/\/\)$/{ s//\1/; q; }
18042           /^X\(\/\).*/{ s//\1/; q; }
18043           s/.*/./; q'`
18044   { if $as_mkdir_p; then
18045     mkdir -p "$ac_dir"
18046   else
18047     as_dir="$ac_dir"
18048     as_dirs=
18049     while test ! -d "$as_dir"; do
18050       as_dirs="$as_dir $as_dirs"
18051       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18053          X"$as_dir" : 'X\(//\)[^/]' \| \
18054          X"$as_dir" : 'X\(//\)$' \| \
18055          X"$as_dir" : 'X\(/\)' \| \
18056          .     : '\(.\)' 2>/dev/null ||
18057 echo X"$as_dir" |
18058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18060           /^X\(\/\/\)$/{ s//\1/; q; }
18061           /^X\(\/\).*/{ s//\1/; q; }
18062           s/.*/./; q'`
18063     done
18064     test ! -n "$as_dirs" || mkdir $as_dirs
18065   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18067    { (exit 1); exit 1; }; }; }
18068
18069   ac_builddir=.
18070
18071 if test "$ac_dir" != .; then
18072   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18073   # A "../" for each directory in $ac_dir_suffix.
18074   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18075 else
18076   ac_dir_suffix= ac_top_builddir=
18077 fi
18078
18079 case $srcdir in
18080   .)  # No --srcdir option.  We are building in place.
18081     ac_srcdir=.
18082     if test -z "$ac_top_builddir"; then
18083        ac_top_srcdir=.
18084     else
18085        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18086     fi ;;
18087   [\\/]* | ?:[\\/]* )  # Absolute path.
18088     ac_srcdir=$srcdir$ac_dir_suffix;
18089     ac_top_srcdir=$srcdir ;;
18090   *) # Relative path.
18091     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18092     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18093 esac
18094
18095 # Do not use `cd foo && pwd` to compute absolute paths, because
18096 # the directories may not exist.
18097 case `pwd` in
18098 .) ac_abs_builddir="$ac_dir";;
18099 *)
18100   case "$ac_dir" in
18101   .) ac_abs_builddir=`pwd`;;
18102   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18103   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18104   esac;;
18105 esac
18106 case $ac_abs_builddir in
18107 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18108 *)
18109   case ${ac_top_builddir}. in
18110   .) ac_abs_top_builddir=$ac_abs_builddir;;
18111   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18112   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18113   esac;;
18114 esac
18115 case $ac_abs_builddir in
18116 .) ac_abs_srcdir=$ac_srcdir;;
18117 *)
18118   case $ac_srcdir in
18119   .) ac_abs_srcdir=$ac_abs_builddir;;
18120   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18121   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18122   esac;;
18123 esac
18124 case $ac_abs_builddir in
18125 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18126 *)
18127   case $ac_top_srcdir in
18128   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18129   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18130   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18131   esac;;
18132 esac
18133
18134
18135   case $INSTALL in
18136   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18137   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18138   esac
18139
18140   if test x"$ac_file" != x-; then
18141     { echo "$as_me:$LINENO: creating $ac_file" >&5
18142 echo "$as_me: creating $ac_file" >&6;}
18143     rm -f "$ac_file"
18144   fi
18145   # Let's still pretend it is `configure' which instantiates (i.e., don't
18146   # use $as_me), people would be surprised to read:
18147   #    /* config.h.  Generated by config.status.  */
18148   if test x"$ac_file" = x-; then
18149     configure_input=
18150   else
18151     configure_input="$ac_file.  "
18152   fi
18153   configure_input=$configure_input"Generated from `echo $ac_file_in |
18154                                      sed 's,.*/,,'` by configure."
18155
18156   # First look for the input files in the build tree, otherwise in the
18157   # src tree.
18158   ac_file_inputs=`IFS=:
18159     for f in $ac_file_in; do
18160       case $f in
18161       -) echo $tmp/stdin ;;
18162       [\\/$]*)
18163          # Absolute (can't be DOS-style, as IFS=:)
18164          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18165 echo "$as_me: error: cannot find input file: $f" >&2;}
18166    { (exit 1); exit 1; }; }
18167          echo "$f";;
18168       *) # Relative
18169          if test -f "$f"; then
18170            # Build tree
18171            echo "$f"
18172          elif test -f "$srcdir/$f"; then
18173            # Source tree
18174            echo "$srcdir/$f"
18175          else
18176            # /dev/null tree
18177            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18178 echo "$as_me: error: cannot find input file: $f" >&2;}
18179    { (exit 1); exit 1; }; }
18180          fi;;
18181       esac
18182     done` || { (exit 1); exit 1; }
18183 _ACEOF
18184 cat >>$CONFIG_STATUS <<_ACEOF
18185   sed "$ac_vpsub
18186 $extrasub
18187 _ACEOF
18188 cat >>$CONFIG_STATUS <<\_ACEOF
18189 :t
18190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18191 s,@configure_input@,$configure_input,;t t
18192 s,@srcdir@,$ac_srcdir,;t t
18193 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18194 s,@top_srcdir@,$ac_top_srcdir,;t t
18195 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18196 s,@builddir@,$ac_builddir,;t t
18197 s,@abs_builddir@,$ac_abs_builddir,;t t
18198 s,@top_builddir@,$ac_top_builddir,;t t
18199 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18200 s,@INSTALL@,$ac_INSTALL,;t t
18201 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18202   rm -f $tmp/stdin
18203   if test x"$ac_file" != x-; then
18204     mv $tmp/out $ac_file
18205   else
18206     cat $tmp/out
18207     rm -f $tmp/out
18208   fi
18209
18210 done
18211 _ACEOF
18212 cat >>$CONFIG_STATUS <<\_ACEOF
18213
18214 #
18215 # CONFIG_HEADER section.
18216 #
18217
18218 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18219 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18220 #
18221 # ac_d sets the value in "#define NAME VALUE" lines.
18222 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18223 ac_dB='[         ].*$,\1#\2'
18224 ac_dC=' '
18225 ac_dD=',;t'
18226 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18227 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18228 ac_uB='$,\1#\2define\3'
18229 ac_uC=' '
18230 ac_uD=',;t'
18231
18232 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18233   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18234   case $ac_file in
18235   - | *:- | *:-:* ) # input from stdin
18236         cat >$tmp/stdin
18237         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18238         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18239   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18240         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18241   * )   ac_file_in=$ac_file.in ;;
18242   esac
18243
18244   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18245 echo "$as_me: creating $ac_file" >&6;}
18246
18247   # First look for the input files in the build tree, otherwise in the
18248   # src tree.
18249   ac_file_inputs=`IFS=:
18250     for f in $ac_file_in; do
18251       case $f in
18252       -) echo $tmp/stdin ;;
18253       [\\/$]*)
18254          # Absolute (can't be DOS-style, as IFS=:)
18255          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18256 echo "$as_me: error: cannot find input file: $f" >&2;}
18257    { (exit 1); exit 1; }; }
18258          # Do quote $f, to prevent DOS paths from being IFS'd.
18259          echo "$f";;
18260       *) # Relative
18261          if test -f "$f"; then
18262            # Build tree
18263            echo "$f"
18264          elif test -f "$srcdir/$f"; then
18265            # Source tree
18266            echo "$srcdir/$f"
18267          else
18268            # /dev/null tree
18269            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18270 echo "$as_me: error: cannot find input file: $f" >&2;}
18271    { (exit 1); exit 1; }; }
18272          fi;;
18273       esac
18274     done` || { (exit 1); exit 1; }
18275   # Remove the trailing spaces.
18276   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18277
18278 _ACEOF
18279
18280 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18281 # `conftest.undefs', that substitutes the proper values into
18282 # config.h.in to produce config.h.  The first handles `#define'
18283 # templates, and the second `#undef' templates.
18284 # And first: Protect against being on the right side of a sed subst in
18285 # config.status.  Protect against being in an unquoted here document
18286 # in config.status.
18287 rm -f conftest.defines conftest.undefs
18288 # Using a here document instead of a string reduces the quoting nightmare.
18289 # Putting comments in sed scripts is not portable.
18290 #
18291 # `end' is used to avoid that the second main sed command (meant for
18292 # 0-ary CPP macros) applies to n-ary macro definitions.
18293 # See the Autoconf documentation for `clear'.
18294 cat >confdef2sed.sed <<\_ACEOF
18295 s/[\\&,]/\\&/g
18296 s,[\\$`],\\&,g
18297 t clear
18298 : clear
18299 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18300 t end
18301 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18302 : end
18303 _ACEOF
18304 # If some macros were called several times there might be several times
18305 # the same #defines, which is useless.  Nevertheless, we may not want to
18306 # sort them, since we want the *last* AC-DEFINE to be honored.
18307 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18308 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18309 rm -f confdef2sed.sed
18310
18311 # This sed command replaces #undef with comments.  This is necessary, for
18312 # example, in the case of _POSIX_SOURCE, which is predefined and required
18313 # on some systems where configure will not decide to define it.
18314 cat >>conftest.undefs <<\_ACEOF
18315 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18316 _ACEOF
18317
18318 # Break up conftest.defines because some shells have a limit on the size
18319 # of here documents, and old seds have small limits too (100 cmds).
18320 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18321 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18322 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18323 echo '  :' >>$CONFIG_STATUS
18324 rm -f conftest.tail
18325 while grep . conftest.defines >/dev/null
18326 do
18327   # Write a limited-size here document to $tmp/defines.sed.
18328   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18329   # Speed up: don't consider the non `#define' lines.
18330   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18331   # Work around the forget-to-reset-the-flag bug.
18332   echo 't clr' >>$CONFIG_STATUS
18333   echo ': clr' >>$CONFIG_STATUS
18334   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18335   echo 'CEOF
18336   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18337   rm -f $tmp/in
18338   mv $tmp/out $tmp/in
18339 ' >>$CONFIG_STATUS
18340   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18341   rm -f conftest.defines
18342   mv conftest.tail conftest.defines
18343 done
18344 rm -f conftest.defines
18345 echo '  fi # grep' >>$CONFIG_STATUS
18346 echo >>$CONFIG_STATUS
18347
18348 # Break up conftest.undefs because some shells have a limit on the size
18349 # of here documents, and old seds have small limits too (100 cmds).
18350 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18351 rm -f conftest.tail
18352 while grep . conftest.undefs >/dev/null
18353 do
18354   # Write a limited-size here document to $tmp/undefs.sed.
18355   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18356   # Speed up: don't consider the non `#undef'
18357   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18358   # Work around the forget-to-reset-the-flag bug.
18359   echo 't clr' >>$CONFIG_STATUS
18360   echo ': clr' >>$CONFIG_STATUS
18361   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18362   echo 'CEOF
18363   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18364   rm -f $tmp/in
18365   mv $tmp/out $tmp/in
18366 ' >>$CONFIG_STATUS
18367   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18368   rm -f conftest.undefs
18369   mv conftest.tail conftest.undefs
18370 done
18371 rm -f conftest.undefs
18372
18373 cat >>$CONFIG_STATUS <<\_ACEOF
18374   # Let's still pretend it is `configure' which instantiates (i.e., don't
18375   # use $as_me), people would be surprised to read:
18376   #    /* config.h.  Generated by config.status.  */
18377   if test x"$ac_file" = x-; then
18378     echo "/* Generated by configure.  */" >$tmp/config.h
18379   else
18380     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18381   fi
18382   cat $tmp/in >>$tmp/config.h
18383   rm -f $tmp/in
18384   if test x"$ac_file" != x-; then
18385     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18386       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18387 echo "$as_me: $ac_file is unchanged" >&6;}
18388     else
18389       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18390 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18391          X"$ac_file" : 'X\(//\)[^/]' \| \
18392          X"$ac_file" : 'X\(//\)$' \| \
18393          X"$ac_file" : 'X\(/\)' \| \
18394          .     : '\(.\)' 2>/dev/null ||
18395 echo X"$ac_file" |
18396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18398           /^X\(\/\/\)$/{ s//\1/; q; }
18399           /^X\(\/\).*/{ s//\1/; q; }
18400           s/.*/./; q'`
18401       { if $as_mkdir_p; then
18402     mkdir -p "$ac_dir"
18403   else
18404     as_dir="$ac_dir"
18405     as_dirs=
18406     while test ! -d "$as_dir"; do
18407       as_dirs="$as_dir $as_dirs"
18408       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18410          X"$as_dir" : 'X\(//\)[^/]' \| \
18411          X"$as_dir" : 'X\(//\)$' \| \
18412          X"$as_dir" : 'X\(/\)' \| \
18413          .     : '\(.\)' 2>/dev/null ||
18414 echo X"$as_dir" |
18415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18416           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18417           /^X\(\/\/\)$/{ s//\1/; q; }
18418           /^X\(\/\).*/{ s//\1/; q; }
18419           s/.*/./; q'`
18420     done
18421     test ! -n "$as_dirs" || mkdir $as_dirs
18422   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18423 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18424    { (exit 1); exit 1; }; }; }
18425
18426       rm -f $ac_file
18427       mv $tmp/config.h $ac_file
18428     fi
18429   else
18430     cat $tmp/config.h
18431     rm -f $tmp/config.h
18432   fi
18433 # Compute $ac_file's index in $config_headers.
18434 _am_stamp_count=1
18435 for _am_header in $config_headers :; do
18436   case $_am_header in
18437     $ac_file | $ac_file:* )
18438       break ;;
18439     * )
18440       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18441   esac
18442 done
18443 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18444 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18445          X$ac_file : 'X\(//\)[^/]' \| \
18446          X$ac_file : 'X\(//\)$' \| \
18447          X$ac_file : 'X\(/\)' \| \
18448          .     : '\(.\)' 2>/dev/null ||
18449 echo X$ac_file |
18450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18451           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18452           /^X\(\/\/\)$/{ s//\1/; q; }
18453           /^X\(\/\).*/{ s//\1/; q; }
18454           s/.*/./; q'`/stamp-h$_am_stamp_count
18455 done
18456 _ACEOF
18457 cat >>$CONFIG_STATUS <<\_ACEOF
18458
18459 #
18460 # CONFIG_LINKS section.
18461 #
18462
18463 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18464   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18465   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18466
18467   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18468 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18469
18470   if test ! -r $srcdir/$ac_source; then
18471     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18472 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18473    { (exit 1); exit 1; }; }
18474   fi
18475   rm -f $ac_dest
18476
18477   # Make relative symlinks.
18478   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18479 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18480          X"$ac_dest" : 'X\(//\)[^/]' \| \
18481          X"$ac_dest" : 'X\(//\)$' \| \
18482          X"$ac_dest" : 'X\(/\)' \| \
18483          .     : '\(.\)' 2>/dev/null ||
18484 echo X"$ac_dest" |
18485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18486           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18487           /^X\(\/\/\)$/{ s//\1/; q; }
18488           /^X\(\/\).*/{ s//\1/; q; }
18489           s/.*/./; q'`
18490   { if $as_mkdir_p; then
18491     mkdir -p "$ac_dest_dir"
18492   else
18493     as_dir="$ac_dest_dir"
18494     as_dirs=
18495     while test ! -d "$as_dir"; do
18496       as_dirs="$as_dir $as_dirs"
18497       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499          X"$as_dir" : 'X\(//\)[^/]' \| \
18500          X"$as_dir" : 'X\(//\)$' \| \
18501          X"$as_dir" : 'X\(/\)' \| \
18502          .     : '\(.\)' 2>/dev/null ||
18503 echo X"$as_dir" |
18504     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18505           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18506           /^X\(\/\/\)$/{ s//\1/; q; }
18507           /^X\(\/\).*/{ s//\1/; q; }
18508           s/.*/./; q'`
18509     done
18510     test ! -n "$as_dirs" || mkdir $as_dirs
18511   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18512 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18513    { (exit 1); exit 1; }; }; }
18514
18515   ac_builddir=.
18516
18517 if test "$ac_dest_dir" != .; then
18518   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18519   # A "../" for each directory in $ac_dir_suffix.
18520   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18521 else
18522   ac_dir_suffix= ac_top_builddir=
18523 fi
18524
18525 case $srcdir in
18526   .)  # No --srcdir option.  We are building in place.
18527     ac_srcdir=.
18528     if test -z "$ac_top_builddir"; then
18529        ac_top_srcdir=.
18530     else
18531        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18532     fi ;;
18533   [\\/]* | ?:[\\/]* )  # Absolute path.
18534     ac_srcdir=$srcdir$ac_dir_suffix;
18535     ac_top_srcdir=$srcdir ;;
18536   *) # Relative path.
18537     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18538     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18539 esac
18540
18541 # Do not use `cd foo && pwd` to compute absolute paths, because
18542 # the directories may not exist.
18543 case `pwd` in
18544 .) ac_abs_builddir="$ac_dest_dir";;
18545 *)
18546   case "$ac_dest_dir" in
18547   .) ac_abs_builddir=`pwd`;;
18548   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18549   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18550   esac;;
18551 esac
18552 case $ac_abs_builddir in
18553 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18554 *)
18555   case ${ac_top_builddir}. in
18556   .) ac_abs_top_builddir=$ac_abs_builddir;;
18557   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18558   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18559   esac;;
18560 esac
18561 case $ac_abs_builddir in
18562 .) ac_abs_srcdir=$ac_srcdir;;
18563 *)
18564   case $ac_srcdir in
18565   .) ac_abs_srcdir=$ac_abs_builddir;;
18566   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18567   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18568   esac;;
18569 esac
18570 case $ac_abs_builddir in
18571 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18572 *)
18573   case $ac_top_srcdir in
18574   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18575   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18576   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18577   esac;;
18578 esac
18579
18580
18581   case $srcdir in
18582   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18583       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18584   esac
18585
18586   # Try a symlink, then a hard link, then a copy.
18587   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18588     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18589     cp -p $srcdir/$ac_source $ac_dest ||
18590     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18591 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18592    { (exit 1); exit 1; }; }
18593 done
18594 _ACEOF
18595 cat >>$CONFIG_STATUS <<\_ACEOF
18596
18597 #
18598 # CONFIG_COMMANDS section.
18599 #
18600 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18601   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18602   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18603   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18604 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18605          X"$ac_dest" : 'X\(//\)[^/]' \| \
18606          X"$ac_dest" : 'X\(//\)$' \| \
18607          X"$ac_dest" : 'X\(/\)' \| \
18608          .     : '\(.\)' 2>/dev/null ||
18609 echo X"$ac_dest" |
18610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18612           /^X\(\/\/\)$/{ s//\1/; q; }
18613           /^X\(\/\).*/{ s//\1/; q; }
18614           s/.*/./; q'`
18615   { if $as_mkdir_p; then
18616     mkdir -p "$ac_dir"
18617   else
18618     as_dir="$ac_dir"
18619     as_dirs=
18620     while test ! -d "$as_dir"; do
18621       as_dirs="$as_dir $as_dirs"
18622       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18624          X"$as_dir" : 'X\(//\)[^/]' \| \
18625          X"$as_dir" : 'X\(//\)$' \| \
18626          X"$as_dir" : 'X\(/\)' \| \
18627          .     : '\(.\)' 2>/dev/null ||
18628 echo X"$as_dir" |
18629     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18630           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18631           /^X\(\/\/\)$/{ s//\1/; q; }
18632           /^X\(\/\).*/{ s//\1/; q; }
18633           s/.*/./; q'`
18634     done
18635     test ! -n "$as_dirs" || mkdir $as_dirs
18636   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18637 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18638    { (exit 1); exit 1; }; }; }
18639
18640   ac_builddir=.
18641
18642 if test "$ac_dir" != .; then
18643   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18644   # A "../" for each directory in $ac_dir_suffix.
18645   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18646 else
18647   ac_dir_suffix= ac_top_builddir=
18648 fi
18649
18650 case $srcdir in
18651   .)  # No --srcdir option.  We are building in place.
18652     ac_srcdir=.
18653     if test -z "$ac_top_builddir"; then
18654        ac_top_srcdir=.
18655     else
18656        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18657     fi ;;
18658   [\\/]* | ?:[\\/]* )  # Absolute path.
18659     ac_srcdir=$srcdir$ac_dir_suffix;
18660     ac_top_srcdir=$srcdir ;;
18661   *) # Relative path.
18662     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18663     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18664 esac
18665
18666 # Do not use `cd foo && pwd` to compute absolute paths, because
18667 # the directories may not exist.
18668 case `pwd` in
18669 .) ac_abs_builddir="$ac_dir";;
18670 *)
18671   case "$ac_dir" in
18672   .) ac_abs_builddir=`pwd`;;
18673   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18674   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18675   esac;;
18676 esac
18677 case $ac_abs_builddir in
18678 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18679 *)
18680   case ${ac_top_builddir}. in
18681   .) ac_abs_top_builddir=$ac_abs_builddir;;
18682   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18683   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18684   esac;;
18685 esac
18686 case $ac_abs_builddir in
18687 .) ac_abs_srcdir=$ac_srcdir;;
18688 *)
18689   case $ac_srcdir in
18690   .) ac_abs_srcdir=$ac_abs_builddir;;
18691   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18692   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18693   esac;;
18694 esac
18695 case $ac_abs_builddir in
18696 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18697 *)
18698   case $ac_top_srcdir in
18699   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18700   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18701   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18702   esac;;
18703 esac
18704
18705
18706   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18707 echo "$as_me: executing $ac_dest commands" >&6;}
18708   case $ac_dest in
18709     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18710   # Strip MF so we end up with the name of the file.
18711   mf=`echo "$mf" | sed -e 's/:.*$//'`
18712   # Check whether this is an Automake generated Makefile or not.
18713   # We used to match only the files named `Makefile.in', but
18714   # some people rename them; so instead we look at the file content.
18715   # Grep'ing the first line is not enough: some people post-process
18716   # each Makefile.in and add a new line on top of each file to say so.
18717   # So let's grep whole file.
18718   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18719     dirpart=`(dirname "$mf") 2>/dev/null ||
18720 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18721          X"$mf" : 'X\(//\)[^/]' \| \
18722          X"$mf" : 'X\(//\)$' \| \
18723          X"$mf" : 'X\(/\)' \| \
18724          .     : '\(.\)' 2>/dev/null ||
18725 echo X"$mf" |
18726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18727           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18728           /^X\(\/\/\)$/{ s//\1/; q; }
18729           /^X\(\/\).*/{ s//\1/; q; }
18730           s/.*/./; q'`
18731   else
18732     continue
18733   fi
18734   # Extract the definition of DEPDIR, am__include, and am__quote
18735   # from the Makefile without running `make'.
18736   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18737   test -z "$DEPDIR" && continue
18738   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18739   test -z "am__include" && continue
18740   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18741   # When using ansi2knr, U may be empty or an underscore; expand it
18742   U=`sed -n 's/^U = //p' < "$mf"`
18743   # Find all dependency output files, they are included files with
18744   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18745   # simplest approach to changing $(DEPDIR) to its actual value in the
18746   # expansion.
18747   for file in `sed -n "
18748     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18749        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18750     # Make sure the directory exists.
18751     test -f "$dirpart/$file" && continue
18752     fdir=`(dirname "$file") 2>/dev/null ||
18753 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18754          X"$file" : 'X\(//\)[^/]' \| \
18755          X"$file" : 'X\(//\)$' \| \
18756          X"$file" : 'X\(/\)' \| \
18757          .     : '\(.\)' 2>/dev/null ||
18758 echo X"$file" |
18759     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18760           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18761           /^X\(\/\/\)$/{ s//\1/; q; }
18762           /^X\(\/\).*/{ s//\1/; q; }
18763           s/.*/./; q'`
18764     { if $as_mkdir_p; then
18765     mkdir -p $dirpart/$fdir
18766   else
18767     as_dir=$dirpart/$fdir
18768     as_dirs=
18769     while test ! -d "$as_dir"; do
18770       as_dirs="$as_dir $as_dirs"
18771       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18773          X"$as_dir" : 'X\(//\)[^/]' \| \
18774          X"$as_dir" : 'X\(//\)$' \| \
18775          X"$as_dir" : 'X\(/\)' \| \
18776          .     : '\(.\)' 2>/dev/null ||
18777 echo X"$as_dir" |
18778     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18779           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18780           /^X\(\/\/\)$/{ s//\1/; q; }
18781           /^X\(\/\).*/{ s//\1/; q; }
18782           s/.*/./; q'`
18783     done
18784     test ! -n "$as_dirs" || mkdir $as_dirs
18785   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18786 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18787    { (exit 1); exit 1; }; }; }
18788
18789     # echo "creating $dirpart/$file"
18790     echo '# dummy' > "$dirpart/$file"
18791   done
18792 done
18793  ;;
18794     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18795 case " $CONFIG_FILES " in
18796  *" Makefile "*)
18797    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18798    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18799    ;;
18800 esac
18801 for ac_multi_file in $CONFIG_FILES; do
18802   case $ac_multi_file in
18803   */Makefile)
18804     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18805   esac
18806 done
18807  ;;
18808   esac
18809 done
18810 _ACEOF
18811
18812 cat >>$CONFIG_STATUS <<\_ACEOF
18813
18814 { (exit 0); exit 0; }
18815 _ACEOF
18816 chmod +x $CONFIG_STATUS
18817 ac_clean_files=$ac_clean_files_save
18818
18819
18820 # configure is writing to config.log, and then calls config.status.
18821 # config.status does its own redirection, appending to config.log.
18822 # Unfortunately, on DOS this fails, as config.log is still kept open
18823 # by configure, so config.status won't be able to write to it; its
18824 # output is simply discarded.  So we exec the FD to /dev/null,
18825 # effectively closing config.log, so it can be properly (re)opened and
18826 # appended to by config.status.  When coming back to configure, we
18827 # need to make the FD available again.
18828 if test "$no_create" != yes; then
18829   ac_cs_success=:
18830   ac_config_status_args=
18831   test "$silent" = yes &&
18832     ac_config_status_args="$ac_config_status_args --quiet"
18833   exec 5>/dev/null
18834   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18835   exec 5>>config.log
18836   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18837   # would make configure fail if this is the last instruction.
18838   $ac_cs_success || { (exit 1); exit 1; }
18839 fi
18840
18841 #
18842 # CONFIG_SUBDIRS section.
18843 #
18844 if test "$no_recursion" != yes; then
18845
18846   # Remove --cache-file and --srcdir arguments so they do not pile up.
18847   ac_sub_configure_args=
18848   ac_prev=
18849   for ac_arg in $ac_configure_args; do
18850     if test -n "$ac_prev"; then
18851       ac_prev=
18852       continue
18853     fi
18854     case $ac_arg in
18855     -cache-file | --cache-file | --cache-fil | --cache-fi \
18856     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18857       ac_prev=cache_file ;;
18858     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18859     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18860     | --c=*)
18861       ;;
18862     --config-cache | -C)
18863       ;;
18864     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18865       ac_prev=srcdir ;;
18866     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18867       ;;
18868     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18869       ac_prev=prefix ;;
18870     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18871       ;;
18872     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18873     esac
18874   done
18875
18876   # Always prepend --prefix to ensure using the same prefix
18877   # in subdir configurations.
18878   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18879
18880   ac_popdir=`pwd`
18881   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18882
18883     # Do not complain, so a configure script can configure whichever
18884     # parts of a large source tree are present.
18885     test -d $srcdir/$ac_dir || continue
18886
18887     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18888 echo "$as_me: configuring in $ac_dir" >&6;}
18889     { if $as_mkdir_p; then
18890     mkdir -p "$ac_dir"
18891   else
18892     as_dir="$ac_dir"
18893     as_dirs=
18894     while test ! -d "$as_dir"; do
18895       as_dirs="$as_dir $as_dirs"
18896       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18898          X"$as_dir" : 'X\(//\)[^/]' \| \
18899          X"$as_dir" : 'X\(//\)$' \| \
18900          X"$as_dir" : 'X\(/\)' \| \
18901          .     : '\(.\)' 2>/dev/null ||
18902 echo X"$as_dir" |
18903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18904           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18905           /^X\(\/\/\)$/{ s//\1/; q; }
18906           /^X\(\/\).*/{ s//\1/; q; }
18907           s/.*/./; q'`
18908     done
18909     test ! -n "$as_dirs" || mkdir $as_dirs
18910   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18912    { (exit 1); exit 1; }; }; }
18913
18914     ac_builddir=.
18915
18916 if test "$ac_dir" != .; then
18917   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18918   # A "../" for each directory in $ac_dir_suffix.
18919   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18920 else
18921   ac_dir_suffix= ac_top_builddir=
18922 fi
18923
18924 case $srcdir in
18925   .)  # No --srcdir option.  We are building in place.
18926     ac_srcdir=.
18927     if test -z "$ac_top_builddir"; then
18928        ac_top_srcdir=.
18929     else
18930        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18931     fi ;;
18932   [\\/]* | ?:[\\/]* )  # Absolute path.
18933     ac_srcdir=$srcdir$ac_dir_suffix;
18934     ac_top_srcdir=$srcdir ;;
18935   *) # Relative path.
18936     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18937     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18938 esac
18939
18940 # Do not use `cd foo && pwd` to compute absolute paths, because
18941 # the directories may not exist.
18942 case `pwd` in
18943 .) ac_abs_builddir="$ac_dir";;
18944 *)
18945   case "$ac_dir" in
18946   .) ac_abs_builddir=`pwd`;;
18947   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18948   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18949   esac;;
18950 esac
18951 case $ac_abs_builddir in
18952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18953 *)
18954   case ${ac_top_builddir}. in
18955   .) ac_abs_top_builddir=$ac_abs_builddir;;
18956   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18957   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18958   esac;;
18959 esac
18960 case $ac_abs_builddir in
18961 .) ac_abs_srcdir=$ac_srcdir;;
18962 *)
18963   case $ac_srcdir in
18964   .) ac_abs_srcdir=$ac_abs_builddir;;
18965   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18966   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18967   esac;;
18968 esac
18969 case $ac_abs_builddir in
18970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18971 *)
18972   case $ac_top_srcdir in
18973   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18974   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18975   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18976   esac;;
18977 esac
18978
18979
18980     cd $ac_dir
18981
18982     # Check for guested configure; otherwise get Cygnus style configure.
18983     if test -f $ac_srcdir/configure.gnu; then
18984       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18985     elif test -f $ac_srcdir/configure; then
18986       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18987     elif test -f $ac_srcdir/configure.in; then
18988       ac_sub_configure=$ac_configure
18989     else
18990       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18991 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18992       ac_sub_configure=
18993     fi
18994
18995     # The recursion is here.
18996     if test -n "$ac_sub_configure"; then
18997       # Make the cache file name correct relative to the subdirectory.
18998       case $cache_file in
18999       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19000       *) # Relative path.
19001         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
19002       esac
19003
19004       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19005 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19006       # The eval makes quoting arguments work.
19007       eval $ac_sub_configure $ac_sub_configure_args \
19008            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
19009         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19010 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19011    { (exit 1); exit 1; }; }
19012     fi
19013
19014     cd $ac_popdir
19015   done
19016 fi
19017