OSDN Git Service

Update my e-mail address for new employer.
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE 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-multilib       build many library versions (default)
853   --enable-version-specific-runtime-libs
854                           specify that runtime libraries should be installed
855                           in a compiler-specific directory
856   --enable-plugin         build gcjwebplugin web browser plugin
857   --enable-gconf-peer     compile GConf native peers for util.preferences
858   --enable-java-maintainer-mode
859                           allow rebuilding of .class and .h files
860   --disable-dependency-tracking  speeds up one-time build
861   --enable-dependency-tracking   do not reject slow dependency extractors
862   --enable-maintainer-mode  enable make rules and dependencies not useful
863                           (and sometimes confusing) to the casual installer
864   --enable-libgcj-debug   enable runtime debugging code
865   --enable-java-awt       list of AWT peer implementations to be built
866   --enable-shared=PKGS  build shared libraries default=yes
867   --enable-static=PKGS  build static libraries default=yes
868   --enable-fast-install=PKGS  optimize for fast installation default=yes
869   --disable-libtool-lock  avoid locking (might break parallel builds)
870   --disable-getenv-properties
871                           don't set system properties from GCJ_PROPERTIES
872   --enable-hash-synchronization
873                           use global hash table for monitor locks
874   --enable-gc-debug       include full support for pointer backtracing etc.
875   --enable-interpreter    enable interpreter
876   --enable-sjlj-exceptions
877                           force use of builtin_setjmp for exceptions
878   --disable-java-net      disable java.net
879   --disable-jvmpi         disable JVMPI support
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881   --disable-rpath         do not hardcode runtime library paths
882   --enable-tls            Use thread-local storage [default=yes]
883
884 Optional Packages:
885   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
886   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
887   --with-build-libsubdir=DIR  Directory where to find libraries for build system
888   --with-target-subdir=SUBDIR
889                           configure in a subdirectory
890   --with-cross-host=HOST  configure with a cross compiler from HOST
891   --with-newlib           configure with newlib
892   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
893   --with-gnu-ld           assume the C compiler uses GNU ld default=no
894   --with-pic              try to use only PIC/non-PIC objects default=use both
895   --with-ecj-jar=FILE     use preinstalled ecj jar
896   --with-java-home=DIRECTORY
897                           value of java.home system property
898   --with-win32-nlsapi=ansi or unicows or unicode
899                           native MinGW libgcj Win32 OS API (default is ansi)
900   --without-libffi        don't use libffi
901   --with-ecos             enable runtime eCos target support
902   --with-system-zlib      use installed libz
903   --with-x                use the X Window System
904   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
905   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
906
907 Some influential environment variables:
908   CC          C compiler command
909   CFLAGS      C compiler flags
910   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
911               nonstandard directory <lib dir>
912   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
913               headers in a nonstandard directory <include dir>
914   CXX         C++ compiler command
915   CXXFLAGS    C++ compiler flags
916   CXXCPP      C++ preprocessor
917   CPP         C preprocessor
918
919 Use these variables to override the choices made by `configure' or to help
920 it to find libraries and programs with nonstandard names/locations.
921
922 _ACEOF
923 fi
924
925 if test "$ac_init_help" = "recursive"; then
926   # If there are subdirs, report their specific --help.
927   ac_popdir=`pwd`
928   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
929     test -d $ac_dir || continue
930     ac_builddir=.
931
932 if test "$ac_dir" != .; then
933   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
934   # A "../" for each directory in $ac_dir_suffix.
935   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
936 else
937   ac_dir_suffix= ac_top_builddir=
938 fi
939
940 case $srcdir in
941   .)  # No --srcdir option.  We are building in place.
942     ac_srcdir=.
943     if test -z "$ac_top_builddir"; then
944        ac_top_srcdir=.
945     else
946        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
947     fi ;;
948   [\\/]* | ?:[\\/]* )  # Absolute path.
949     ac_srcdir=$srcdir$ac_dir_suffix;
950     ac_top_srcdir=$srcdir ;;
951   *) # Relative path.
952     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
953     ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 esac
955
956 # Do not use `cd foo && pwd` to compute absolute paths, because
957 # the directories may not exist.
958 case `pwd` in
959 .) ac_abs_builddir="$ac_dir";;
960 *)
961   case "$ac_dir" in
962   .) ac_abs_builddir=`pwd`;;
963   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
964   *) ac_abs_builddir=`pwd`/"$ac_dir";;
965   esac;;
966 esac
967 case $ac_abs_builddir in
968 .) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *)
970   case ${ac_top_builddir}. in
971   .) ac_abs_top_builddir=$ac_abs_builddir;;
972   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
973   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974   esac;;
975 esac
976 case $ac_abs_builddir in
977 .) ac_abs_srcdir=$ac_srcdir;;
978 *)
979   case $ac_srcdir in
980   .) ac_abs_srcdir=$ac_abs_builddir;;
981   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
982   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983   esac;;
984 esac
985 case $ac_abs_builddir in
986 .) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *)
988   case $ac_top_srcdir in
989   .) ac_abs_top_srcdir=$ac_abs_builddir;;
990   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
991   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992   esac;;
993 esac
994
995     cd $ac_dir
996     # Check for guested configure; otherwise get Cygnus style configure.
997     if test -f $ac_srcdir/configure.gnu; then
998       echo
999       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1000     elif test -f $ac_srcdir/configure; then
1001       echo
1002       $SHELL $ac_srcdir/configure  --help=recursive
1003     elif test -f $ac_srcdir/configure.ac ||
1004            test -f $ac_srcdir/configure.in; then
1005       echo
1006       $ac_configure --help
1007     else
1008       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1009     fi
1010     cd $ac_popdir
1011   done
1012 fi
1013
1014 test -n "$ac_init_help" && exit 0
1015 if $ac_init_version; then
1016   cat <<\_ACEOF
1017 libjava configure version-unused
1018 generated by GNU Autoconf 2.59
1019
1020 Copyright (C) 2003 Free Software Foundation, Inc.
1021 This configure script is free software; the Free Software Foundation
1022 gives unlimited permission to copy, distribute and modify it.
1023 _ACEOF
1024   exit 0
1025 fi
1026 exec 5>config.log
1027 cat >&5 <<_ACEOF
1028 This file contains any messages produced by compilers while
1029 running configure, to aid debugging if configure makes a mistake.
1030
1031 It was created by libjava $as_me version-unused, which was
1032 generated by GNU Autoconf 2.59.  Invocation command line was
1033
1034   $ $0 $@
1035
1036 _ACEOF
1037 {
1038 cat <<_ASUNAME
1039 ## --------- ##
1040 ## Platform. ##
1041 ## --------- ##
1042
1043 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1044 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1045 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1046 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1047 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1048
1049 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1050 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1051
1052 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1053 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1054 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1055 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1056 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1057 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1058 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1059
1060 _ASUNAME
1061
1062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1063 for as_dir in $PATH
1064 do
1065   IFS=$as_save_IFS
1066   test -z "$as_dir" && as_dir=.
1067   echo "PATH: $as_dir"
1068 done
1069
1070 } >&5
1071
1072 cat >&5 <<_ACEOF
1073
1074
1075 ## ----------- ##
1076 ## Core tests. ##
1077 ## ----------- ##
1078
1079 _ACEOF
1080
1081
1082 # Keep a trace of the command line.
1083 # Strip out --no-create and --no-recursion so they do not pile up.
1084 # Strip out --silent because we don't want to record it for future runs.
1085 # Also quote any args containing shell meta-characters.
1086 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_configure_args=
1088 ac_configure_args0=
1089 ac_configure_args1=
1090 ac_sep=
1091 ac_must_keep_next=false
1092 for ac_pass in 1 2
1093 do
1094   for ac_arg
1095   do
1096     case $ac_arg in
1097     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1098     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099     | -silent | --silent | --silen | --sile | --sil)
1100       continue ;;
1101     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1102       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1103     esac
1104     case $ac_pass in
1105     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1106     2)
1107       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1108       if test $ac_must_keep_next = true; then
1109         ac_must_keep_next=false # Got value, back to normal.
1110       else
1111         case $ac_arg in
1112           *=* | --config-cache | -C | -disable-* | --disable-* \
1113           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1114           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1115           | -with-* | --with-* | -without-* | --without-* | --x)
1116             case "$ac_configure_args0 " in
1117               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1118             esac
1119             ;;
1120           -* ) ac_must_keep_next=true ;;
1121         esac
1122       fi
1123       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1124       # Get rid of the leading space.
1125       ac_sep=" "
1126       ;;
1127     esac
1128   done
1129 done
1130 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1131 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1132
1133 # When interrupted or exit'd, cleanup temporary files, and complete
1134 # config.log.  We remove comments because anyway the quotes in there
1135 # would cause problems or look ugly.
1136 # WARNING: Be sure not to use single quotes in there, as some shells,
1137 # such as our DU 5.0 friend, will then `close' the trap.
1138 trap 'exit_status=$?
1139   # Save into config.log some information that might help in debugging.
1140   {
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ---------------- ##
1145 ## Cache variables. ##
1146 ## ---------------- ##
1147 _ASBOX
1148     echo
1149     # The following way of writing the cache mishandles newlines in values,
1150 {
1151   (set) 2>&1 |
1152     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1153     *ac_space=\ *)
1154       sed -n \
1155         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1156           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1157       ;;
1158     *)
1159       sed -n \
1160         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161       ;;
1162     esac;
1163 }
1164     echo
1165
1166     cat <<\_ASBOX
1167 ## ----------------- ##
1168 ## Output variables. ##
1169 ## ----------------- ##
1170 _ASBOX
1171     echo
1172     for ac_var in $ac_subst_vars
1173     do
1174       eval ac_val=$`echo $ac_var`
1175       echo "$ac_var='"'"'$ac_val'"'"'"
1176     done | sort
1177     echo
1178
1179     if test -n "$ac_subst_files"; then
1180       cat <<\_ASBOX
1181 ## ------------- ##
1182 ## Output files. ##
1183 ## ------------- ##
1184 _ASBOX
1185       echo
1186       for ac_var in $ac_subst_files
1187       do
1188         eval ac_val=$`echo $ac_var`
1189         echo "$ac_var='"'"'$ac_val'"'"'"
1190       done | sort
1191       echo
1192     fi
1193
1194     if test -s confdefs.h; then
1195       cat <<\_ASBOX
1196 ## ----------- ##
1197 ## confdefs.h. ##
1198 ## ----------- ##
1199 _ASBOX
1200       echo
1201       sed "/^$/d" confdefs.h | sort
1202       echo
1203     fi
1204     test "$ac_signal" != 0 &&
1205       echo "$as_me: caught signal $ac_signal"
1206     echo "$as_me: exit $exit_status"
1207   } >&5
1208   rm -f core *.core &&
1209   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1210     exit $exit_status
1211      ' 0
1212 for ac_signal in 1 2 13 15; do
1213   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1214 done
1215 ac_signal=0
1216
1217 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1218 rm -rf conftest* confdefs.h
1219 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1220 echo >confdefs.h
1221
1222 # Predefined preprocessor variables.
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_NAME "$PACKAGE_NAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_STRING "$PACKAGE_STRING"
1241 _ACEOF
1242
1243
1244 cat >>confdefs.h <<_ACEOF
1245 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1246 _ACEOF
1247
1248
1249 # Let the site file select an alternate cache file if it wants to.
1250 # Prefer explicitly selected file to automatically selected ones.
1251 if test -z "$CONFIG_SITE"; then
1252   if test "x$prefix" != xNONE; then
1253     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1254   else
1255     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1256   fi
1257 fi
1258 for ac_site_file in $CONFIG_SITE; do
1259   if test -r "$ac_site_file"; then
1260     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1261 echo "$as_me: loading site script $ac_site_file" >&6;}
1262     sed 's/^/| /' "$ac_site_file" >&5
1263     . "$ac_site_file"
1264   fi
1265 done
1266
1267 if test -r "$cache_file"; then
1268   # Some versions of bash will fail to source /dev/null (special
1269   # files actually), so we avoid doing that.
1270   if test -f "$cache_file"; then
1271     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1272 echo "$as_me: loading cache $cache_file" >&6;}
1273     case $cache_file in
1274       [\\/]* | ?:[\\/]* ) . $cache_file;;
1275       *)                      . ./$cache_file;;
1276     esac
1277   fi
1278 else
1279   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1280 echo "$as_me: creating cache $cache_file" >&6;}
1281   >$cache_file
1282 fi
1283
1284 # Check that the precious variables saved in the cache have kept the same
1285 # value.
1286 ac_cache_corrupted=false
1287 for ac_var in `(set) 2>&1 |
1288                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1289   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1290   eval ac_new_set=\$ac_env_${ac_var}_set
1291   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1292   eval ac_new_val="\$ac_env_${ac_var}_value"
1293   case $ac_old_set,$ac_new_set in
1294     set,)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,set)
1299       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1300 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1301       ac_cache_corrupted=: ;;
1302     ,);;
1303     *)
1304       if test "x$ac_old_val" != "x$ac_new_val"; then
1305         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1306 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1307         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1308 echo "$as_me:   former value:  $ac_old_val" >&2;}
1309         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1310 echo "$as_me:   current value: $ac_new_val" >&2;}
1311         ac_cache_corrupted=:
1312       fi;;
1313   esac
1314   # Pass precious variables to config.status.
1315   if test "$ac_new_set" = set; then
1316     case $ac_new_val in
1317     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319     *) ac_arg=$ac_var=$ac_new_val ;;
1320     esac
1321     case " $ac_configure_args " in
1322       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1323       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324     esac
1325   fi
1326 done
1327 if $ac_cache_corrupted; then
1328   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1329 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1330   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1331 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1332    { (exit 1); exit 1; }; }
1333 fi
1334
1335 ac_ext=c
1336 ac_cpp='$CPP $CPPFLAGS'
1337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 ac_aux_dir=
1371 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1372   if test -f $ac_dir/install-sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install-sh -c"
1375     break
1376   elif test -f $ac_dir/install.sh; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/install.sh -c"
1379     break
1380   elif test -f $ac_dir/shtool; then
1381     ac_aux_dir=$ac_dir
1382     ac_install_sh="$ac_aux_dir/shtool install -c"
1383     break
1384   fi
1385 done
1386 if test -z "$ac_aux_dir"; then
1387   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1389    { (exit 1); exit 1; }; }
1390 fi
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394
1395 # Make sure we can run config.sub.
1396 $ac_config_sub sun4 >/dev/null 2>&1 ||
1397   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399    { (exit 1); exit 1; }; }
1400
1401 echo "$as_me:$LINENO: checking build system type" >&5
1402 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403 if test "${ac_cv_build+set}" = set; then
1404   echo $ECHO_N "(cached) $ECHO_C" >&6
1405 else
1406   ac_cv_build_alias=$build_alias
1407 test -z "$ac_cv_build_alias" &&
1408   ac_cv_build_alias=`$ac_config_guess`
1409 test -z "$ac_cv_build_alias" &&
1410   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412    { (exit 1); exit 1; }; }
1413 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416    { (exit 1); exit 1; }; }
1417
1418 fi
1419 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420 echo "${ECHO_T}$ac_cv_build" >&6
1421 build=$ac_cv_build
1422 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427  case ${build_alias} in
1428   "") build_noncanonical=${build} ;;
1429   *) build_noncanonical=${build_alias} ;;
1430 esac
1431
1432  case ${host_alias} in
1433   "") host_noncanonical=${build_noncanonical} ;;
1434   *) host_noncanonical=${host_alias} ;;
1435 esac
1436
1437  case ${target_alias} in
1438   "") target_noncanonical=${host_noncanonical} ;;
1439   *) target_noncanonical=${target_alias} ;;
1440 esac
1441
1442
1443 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1444 # have matching libraries, they should use host libraries: Makefile.tpl
1445 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1446 # However, they still use the build modules, because the corresponding
1447 # host modules (e.g. bison) are only built for the host when bootstrap
1448 # finishes. So:
1449 # - build_subdir is where we find build modules, and never changes.
1450 # - build_libsubdir is where we find build libraries, and can be overridden.
1451
1452 # Prefix 'build-' so this never conflicts with target_subdir.
1453 build_subdir="build-${build_noncanonical}"
1454
1455 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1456 if test "${with_build_libsubdir+set}" = set; then
1457   withval="$with_build_libsubdir"
1458   build_libsubdir="$withval"
1459 else
1460   build_libsubdir="$build_subdir"
1461 fi;
1462 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1463 if ( test $srcdir = . && test -d gcc ) \
1464    || test -d $srcdir/../host-${host_noncanonical}; then
1465   host_subdir="host-${host_noncanonical}"
1466 else
1467   host_subdir=.
1468 fi
1469 # No prefix.
1470 target_subdir=${target_noncanonical}
1471
1472
1473 # We use these options to decide which functions to include.
1474
1475 # Check whether --with-target-subdir or --without-target-subdir was given.
1476 if test "${with_target_subdir+set}" = set; then
1477   withval="$with_target_subdir"
1478
1479 fi;
1480
1481 # We may get other options which we don't document:
1482 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1483
1484 # Find the rest of the source tree framework.
1485 # Default to --enable-multilib
1486 # Check whether --enable-multilib or --disable-multilib was given.
1487 if test "${enable_multilib+set}" = set; then
1488   enableval="$enable_multilib"
1489   case "$enableval" in
1490   yes) multilib=yes ;;
1491   no)  multilib=no ;;
1492   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1493 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1494    { (exit 1); exit 1; }; } ;;
1495  esac
1496 else
1497   multilib=yes
1498 fi;
1499
1500 # We may get other options which we leave undocumented:
1501 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1502 # See config-ml.in if you want the gory details.
1503
1504 if test "$srcdir" = "."; then
1505   if test "$with_target_subdir" != "."; then
1506     multi_basedir="$srcdir/$with_multisrctop../.."
1507   else
1508     multi_basedir="$srcdir/$with_multisrctop.."
1509   fi
1510 else
1511   multi_basedir="$srcdir/.."
1512 fi
1513
1514
1515 # Even if the default multilib is not a cross compilation,
1516 # it may be that some of the other multilibs are.
1517 if test $cross_compiling = no && test $multilib = yes \
1518    && test "x${with_multisubdir}" != x ; then
1519    cross_compiling=maybe
1520 fi
1521
1522           ac_config_commands="$ac_config_commands default-1"
1523
1524
1525 echo "$as_me:$LINENO: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528   echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530   ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532   ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1534   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536    { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1541 host=$ac_cv_host
1542 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 echo "$as_me:$LINENO: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554   ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1556   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558    { (exit 1); exit 1; }; }
1559
1560 fi
1561 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567
1568
1569 # The aliases save the names the user supplied, while $host etc.
1570 # will get canonicalized.
1571 test -n "$target_alias" &&
1572   test "$program_prefix$program_suffix$program_transform_name" = \
1573     NONENONEs,x,x, &&
1574   program_prefix=${target_alias}-
1575  case ${build_alias} in
1576   "") build_noncanonical=${build} ;;
1577   *) build_noncanonical=${build_alias} ;;
1578 esac
1579
1580  case ${target_alias} in
1581   "") target_noncanonical=${host_noncanonical} ;;
1582   *) target_noncanonical=${target_alias} ;;
1583 esac
1584
1585
1586
1587
1588 # This works around the fact that libtool configuration may change LD
1589 # for this particular configuration, but some shells, instead of
1590 # keeping the changes in LD private, export them just because LD is
1591 # exported.
1592 ORIGINAL_LD_FOR_MULTILIBS=$LD
1593
1594 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1595 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1596 LN_S=$as_ln_s
1597 if test "$LN_S" = "ln -s"; then
1598   echo "$as_me:$LINENO: result: yes" >&5
1599 echo "${ECHO_T}yes" >&6
1600 else
1601   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1602 echo "${ECHO_T}no, using $LN_S" >&6
1603 fi
1604
1605
1606 # This works around an automake problem.
1607 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1608
1609
1610
1611 # Check whether --with-cross-host or --without-cross-host was given.
1612 if test "${with_cross_host+set}" = set; then
1613   withval="$with_cross_host"
1614
1615 fi;
1616
1617
1618 # Check whether --with-newlib or --without-newlib was given.
1619 if test "${with_newlib+set}" = set; then
1620   withval="$with_newlib"
1621
1622 fi;
1623
1624 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1625 if test "${enable_version_specific_runtime_libs+set}" = set; then
1626   enableval="$enable_version_specific_runtime_libs"
1627   case "$enableval" in
1628       yes) version_specific_libs=yes ;;
1629       no)  version_specific_libs=no ;;
1630       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1631 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1632    { (exit 1); exit 1; }; };;
1633      esac
1634 else
1635   version_specific_libs=no
1636
1637 fi;
1638
1639 # Check whether --enable-plugin or --disable-plugin was given.
1640 if test "${enable_plugin+set}" = set; then
1641   enableval="$enable_plugin"
1642   case "$enableval" in
1643       yes) plugin_enabled=yes ;;
1644       no)  plugin_enabled=no ;;
1645       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1646 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1647    { (exit 1); exit 1; }; };;
1648      esac
1649 else
1650   plugin_enabled=no
1651
1652 fi;
1653
1654 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1655 if test "${enable_gconf_peer+set}" = set; then
1656   enableval="$enable_gconf_peer"
1657   case "$enableval" in
1658       yes) gconf_enabled=yes ;;
1659       no)  gconf_enabled=no ;;
1660       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1661 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1662    { (exit 1); exit 1; }; };;
1663      esac
1664 else
1665   gconf_enabled=no
1666
1667 fi;
1668
1669 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1670 if test "${enable_java_maintainer_mode+set}" = set; then
1671   enableval="$enable_java_maintainer_mode"
1672
1673 fi;
1674
1675
1676 if test "$enable_java_maintainer_mode" = yes; then
1677   JAVA_MAINTAINER_MODE_TRUE=
1678   JAVA_MAINTAINER_MODE_FALSE='#'
1679 else
1680   JAVA_MAINTAINER_MODE_TRUE='#'
1681   JAVA_MAINTAINER_MODE_FALSE=
1682 fi
1683
1684
1685 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1686
1687
1688 # (1) We use an abnormal CXX (without library references), so we
1689 # must cache it under a different name.
1690 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1691 # the non-multilib-adjusted value will be used in multilibs.
1692 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1693 # (4) As another side effect, automake doesn't automatically include them
1694 # in Makefile.in.
1695 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1696 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1697 # used in later tests.  This may not be necessary in libjava; I don't know.
1698
1699
1700 save_CXXFLAGS="$CXXFLAGS"
1701 CXXFLAGS="$CXXFLAGS -fno-builtin"
1702 ac_ext=c
1703 ac_cpp='$CPP $CPPFLAGS'
1704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1707 if test -n "$ac_tool_prefix"; then
1708   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1709 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$CC"; then
1716   ac_cv_prog_CC="$CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 CC=$ac_cv_prog_CC
1735 if test -n "$CC"; then
1736   echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743 fi
1744 if test -z "$ac_cv_prog_CC"; then
1745   ac_ct_CC=$CC
1746   # Extract the first word of "gcc", so it can be a program name with args.
1747 set dummy gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   if test -n "$ac_ct_CC"; then
1754   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755 else
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1758 do
1759   IFS=$as_save_IFS
1760   test -z "$as_dir" && as_dir=.
1761   for ac_exec_ext in '' $ac_executable_extensions; do
1762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763     ac_cv_prog_ac_ct_CC="gcc"
1764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765     break 2
1766   fi
1767 done
1768 done
1769
1770 fi
1771 fi
1772 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773 if test -n "$ac_ct_CC"; then
1774   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1775 echo "${ECHO_T}$ac_ct_CC" >&6
1776 else
1777   echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 fi
1780
1781   CC=$ac_ct_CC
1782 else
1783   CC="$ac_cv_prog_CC"
1784 fi
1785
1786 if test -z "$CC"; then
1787   if test -n "$ac_tool_prefix"; then
1788   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1789 set dummy ${ac_tool_prefix}cc; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_CC+set}" = set; then
1793   echo $ECHO_N "(cached) $ECHO_C" >&6
1794 else
1795   if test -n "$CC"; then
1796   ac_cv_prog_CC="$CC" # Let the user override the test.
1797 else
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805     ac_cv_prog_CC="${ac_tool_prefix}cc"
1806     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1807     break 2
1808   fi
1809 done
1810 done
1811
1812 fi
1813 fi
1814 CC=$ac_cv_prog_CC
1815 if test -n "$CC"; then
1816   echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1818 else
1819   echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1821 fi
1822
1823 fi
1824 if test -z "$ac_cv_prog_CC"; then
1825   ac_ct_CC=$CC
1826   # Extract the first word of "cc", so it can be a program name with args.
1827 set dummy cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   if test -n "$ac_ct_CC"; then
1834   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835 else
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837 for as_dir in $PATH
1838 do
1839   IFS=$as_save_IFS
1840   test -z "$as_dir" && as_dir=.
1841   for ac_exec_ext in '' $ac_executable_extensions; do
1842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843     ac_cv_prog_ac_ct_CC="cc"
1844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845     break 2
1846   fi
1847 done
1848 done
1849
1850 fi
1851 fi
1852 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853 if test -n "$ac_ct_CC"; then
1854   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855 echo "${ECHO_T}$ac_ct_CC" >&6
1856 else
1857   echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1859 fi
1860
1861   CC=$ac_ct_CC
1862 else
1863   CC="$ac_cv_prog_CC"
1864 fi
1865
1866 fi
1867 if test -z "$CC"; then
1868   # Extract the first word of "cc", so it can be a program name with args.
1869 set dummy cc; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_CC+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$CC"; then
1876   ac_cv_prog_CC="$CC" # Let the user override the test.
1877 else
1878   ac_prog_rejected=no
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1887        ac_prog_rejected=yes
1888        continue
1889      fi
1890     ac_cv_prog_CC="cc"
1891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892     break 2
1893   fi
1894 done
1895 done
1896
1897 if test $ac_prog_rejected = yes; then
1898   # We found a bogon in the path, so make sure we never use it.
1899   set dummy $ac_cv_prog_CC
1900   shift
1901   if test $# != 0; then
1902     # We chose a different compiler from the bogus one.
1903     # However, it has the same basename, so the bogon will be chosen
1904     # first if we set CC to just the basename; use the full file name.
1905     shift
1906     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1907   fi
1908 fi
1909 fi
1910 fi
1911 CC=$ac_cv_prog_CC
1912 if test -n "$CC"; then
1913   echo "$as_me:$LINENO: result: $CC" >&5
1914 echo "${ECHO_T}$CC" >&6
1915 else
1916   echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1918 fi
1919
1920 fi
1921 if test -z "$CC"; then
1922   if test -n "$ac_tool_prefix"; then
1923   for ac_prog in cl
1924   do
1925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1926 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1927 echo "$as_me:$LINENO: checking for $ac_word" >&5
1928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929 if test "${ac_cv_prog_CC+set}" = set; then
1930   echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932   if test -n "$CC"; then
1933   ac_cv_prog_CC="$CC" # Let the user override the test.
1934 else
1935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936 for as_dir in $PATH
1937 do
1938   IFS=$as_save_IFS
1939   test -z "$as_dir" && as_dir=.
1940   for ac_exec_ext in '' $ac_executable_extensions; do
1941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944     break 2
1945   fi
1946 done
1947 done
1948
1949 fi
1950 fi
1951 CC=$ac_cv_prog_CC
1952 if test -n "$CC"; then
1953   echo "$as_me:$LINENO: result: $CC" >&5
1954 echo "${ECHO_T}$CC" >&6
1955 else
1956   echo "$as_me:$LINENO: result: no" >&5
1957 echo "${ECHO_T}no" >&6
1958 fi
1959
1960     test -n "$CC" && break
1961   done
1962 fi
1963 if test -z "$CC"; then
1964   ac_ct_CC=$CC
1965   for ac_prog in cl
1966 do
1967   # Extract the first word of "$ac_prog", so it can be a program name with args.
1968 set dummy $ac_prog; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$ac_ct_CC"; then
1975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984     ac_cv_prog_ac_ct_CC="$ac_prog"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1994 if test -n "$ac_ct_CC"; then
1995   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1996 echo "${ECHO_T}$ac_ct_CC" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002   test -n "$ac_ct_CC" && break
2003 done
2004
2005   CC=$ac_ct_CC
2006 fi
2007
2008 fi
2009
2010
2011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2012 See \`config.log' for more details." >&5
2013 echo "$as_me: error: no acceptable C compiler found in \$PATH
2014 See \`config.log' for more details." >&2;}
2015    { (exit 1); exit 1; }; }
2016
2017 # Provide some information about the compiler.
2018 echo "$as_me:$LINENO:" \
2019      "checking for C compiler version" >&5
2020 ac_compiler=`set X $ac_compile; echo $2`
2021 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2022   (eval $ac_compiler --version </dev/null >&5) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }
2026 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2027   (eval $ac_compiler -v </dev/null >&5) 2>&5
2028   ac_status=$?
2029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030   (exit $ac_status); }
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2032   (eval $ac_compiler -V </dev/null >&5) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); }
2036
2037 cat >conftest.$ac_ext <<_ACEOF
2038 /* confdefs.h.  */
2039 _ACEOF
2040 cat confdefs.h >>conftest.$ac_ext
2041 cat >>conftest.$ac_ext <<_ACEOF
2042 /* end confdefs.h.  */
2043
2044 int
2045 main ()
2046 {
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 # FIXME: Cleanup?
2053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2054   (eval $ac_link) 2>&5
2055   ac_status=$?
2056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057   (exit $ac_status); }; then
2058   gcc_no_link=no
2059 else
2060   gcc_no_link=yes
2061 fi
2062
2063 if test x$gcc_no_link = xyes; then
2064   # Setting cross_compile will disable run tests; it will
2065   # also disable AC_CHECK_FILE but that's generally
2066   # correct if we can't link.
2067   cross_compiling=yes
2068   EXEEXT=
2069 else
2070   cat >conftest.$ac_ext <<_ACEOF
2071 /* confdefs.h.  */
2072 _ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h.  */
2076
2077 int
2078 main ()
2079 {
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2089 # of exeext.
2090 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094   (eval $ac_link_default) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; then
2098   # Find the output, starting from the most likely.  This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # resort.
2101
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 ac_cv_exeext=
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 do
2108   test -f "$ac_file" || continue
2109   case $ac_file in
2110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111         ;;
2112     conftest.$ac_ext )
2113         # This is the source file.
2114         ;;
2115     [ab].out )
2116         # We found the default executable, but exeext='' is most
2117         # certainly right.
2118         break;;
2119     *.* )
2120         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121         # FIXME: I believe we export ac_cv_exeext for Libtool,
2122         # but it would be cool to find out if it's true.  Does anybody
2123         # maintain Libtool? --akim.
2124         export ac_cv_exeext
2125         break;;
2126     * )
2127         break;;
2128   esac
2129 done
2130 else
2131   echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138    { (exit 77); exit 77; }; }
2139 fi
2140
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2144
2145 # Check the compiler produces executables we can run.  If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152   if { ac_try='./$ac_file'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158     cross_compiling=no
2159   else
2160     if test "$cross_compiling" = maybe; then
2161         cross_compiling=yes
2162     else
2163         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169    { (exit 1); exit 1; }; }
2170     fi
2171   fi
2172 fi
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2175
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run.  If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2184
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188   (eval $ac_link) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; then
2192   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 # `rm'.
2196 for ac_file in conftest.exe conftest conftest.*; do
2197   test -f "$ac_file" || continue
2198   case $ac_file in
2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201           export ac_cv_exeext
2202           break;;
2203     * ) break;;
2204   esac
2205 done
2206 else
2207   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2220 ac_exeext=$EXEEXT
2221 fi
2222 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2223 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2224 if test "${ac_cv_objext+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h.  */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h.  */
2233
2234 int
2235 main ()
2236 {
2237
2238   ;
2239   return 0;
2240 }
2241 _ACEOF
2242 rm -f conftest.o conftest.obj
2243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244   (eval $ac_compile) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; then
2248   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2251     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2252        break;;
2253   esac
2254 done
2255 else
2256   echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2262 See \`config.log' for more details." >&2;}
2263    { (exit 1); exit 1; }; }
2264 fi
2265
2266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2267 fi
2268 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2269 echo "${ECHO_T}$ac_cv_objext" >&6
2270 OBJEXT=$ac_cv_objext
2271 ac_objext=$OBJEXT
2272 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2273 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2274 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2275   echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277   cat >conftest.$ac_ext <<_ACEOF
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283
2284 int
2285 main ()
2286 {
2287 #ifndef __GNUC__
2288        choke me
2289 #endif
2290
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 rm -f conftest.$ac_objext
2296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297   (eval $ac_compile) 2>conftest.er1
2298   ac_status=$?
2299   grep -v '^ *+' conftest.er1 >conftest.err
2300   rm -f conftest.er1
2301   cat conftest.err >&5
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); } &&
2304          { ac_try='test -z "$ac_c_werror_flag"
2305                          || test ! -s conftest.err'
2306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307   (eval $ac_try) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; } &&
2311          { ac_try='test -s conftest.$ac_objext'
2312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313   (eval $ac_try) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; }; then
2317   ac_compiler_gnu=yes
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 ac_compiler_gnu=no
2323 fi
2324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2326
2327 fi
2328 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2329 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2330 GCC=`test $ac_compiler_gnu = yes && echo yes`
2331 ac_test_CFLAGS=${CFLAGS+set}
2332 ac_save_CFLAGS=$CFLAGS
2333 CFLAGS="-g"
2334 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2335 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_g+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349
2350   ;
2351   return 0;
2352 }
2353 _ACEOF
2354 rm -f conftest.$ac_objext
2355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356   (eval $ac_compile) 2>conftest.er1
2357   ac_status=$?
2358   grep -v '^ *+' conftest.er1 >conftest.err
2359   rm -f conftest.er1
2360   cat conftest.err >&5
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); } &&
2363          { ac_try='test -z "$ac_c_werror_flag"
2364                          || test ! -s conftest.err'
2365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366   (eval $ac_try) 2>&5
2367   ac_status=$?
2368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369   (exit $ac_status); }; } &&
2370          { ac_try='test -s conftest.$ac_objext'
2371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372   (eval $ac_try) 2>&5
2373   ac_status=$?
2374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375   (exit $ac_status); }; }; then
2376   ac_cv_prog_cc_g=yes
2377 else
2378   echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380
2381 ac_cv_prog_cc_g=no
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2386 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2387 if test "$ac_test_CFLAGS" = set; then
2388   CFLAGS=$ac_save_CFLAGS
2389 elif test $ac_cv_prog_cc_g = yes; then
2390   if test "$GCC" = yes; then
2391     CFLAGS="-g -O2"
2392   else
2393     CFLAGS="-g"
2394   fi
2395 else
2396   if test "$GCC" = yes; then
2397     CFLAGS="-O2"
2398   else
2399     CFLAGS=
2400   fi
2401 fi
2402 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2403 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2404 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   ac_cv_prog_cc_stdc=no
2408 ac_save_CC=$CC
2409 cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415 #include <stdarg.h>
2416 #include <stdio.h>
2417 #include <sys/types.h>
2418 #include <sys/stat.h>
2419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2420 struct buf { int x; };
2421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2422 static char *e (p, i)
2423      char **p;
2424      int i;
2425 {
2426   return p[i];
2427 }
2428 static char *f (char * (*g) (char **, int), char **p, ...)
2429 {
2430   char *s;
2431   va_list v;
2432   va_start (v,p);
2433   s = g (p, va_arg (v,int));
2434   va_end (v);
2435   return s;
2436 }
2437
2438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2439    function prototypes and stuff, but not '\xHH' hex character constants.
2440    These don't provoke an error unfortunately, instead are silently treated
2441    as 'x'.  The following induces an error, until -std1 is added to get
2442    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2443    array size at least.  It's necessary to write '\x00'==0 to get something
2444    that's true only with -std1.  */
2445 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2446
2447 int test (int i, double x);
2448 struct s1 {int (*f) (int a);};
2449 struct s2 {int (*f) (double a);};
2450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2451 int argc;
2452 char **argv;
2453 int
2454 main ()
2455 {
2456 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 # Don't try gcc -ansi; that turns off useful extensions and
2462 # breaks some systems' header files.
2463 # AIX                   -qlanglvl=ansi
2464 # Ultrix and OSF/1      -std1
2465 # HP-UX 10.20 and later -Ae
2466 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2467 # SVR4                  -Xc -D__EXTENSIONS__
2468 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2469 do
2470   CC="$ac_save_CC $ac_arg"
2471   rm -f conftest.$ac_objext
2472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473   (eval $ac_compile) 2>conftest.er1
2474   ac_status=$?
2475   grep -v '^ *+' conftest.er1 >conftest.err
2476   rm -f conftest.er1
2477   cat conftest.err >&5
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -z "$ac_c_werror_flag"
2481                          || test ! -s conftest.err'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; } &&
2487          { ac_try='test -s conftest.$ac_objext'
2488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489   (eval $ac_try) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; }; then
2493   ac_cv_prog_cc_stdc=$ac_arg
2494 break
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 fi
2500 rm -f conftest.err conftest.$ac_objext
2501 done
2502 rm -f conftest.$ac_ext conftest.$ac_objext
2503 CC=$ac_save_CC
2504
2505 fi
2506
2507 case "x$ac_cv_prog_cc_stdc" in
2508   x|xno)
2509     echo "$as_me:$LINENO: result: none needed" >&5
2510 echo "${ECHO_T}none needed" >&6 ;;
2511   *)
2512     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2513 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2514     CC="$CC $ac_cv_prog_cc_stdc" ;;
2515 esac
2516
2517 # Some people use a C++ compiler to compile C.  Since we use `exit',
2518 # in C++ we need to declare it.  In case someone uses the same compiler
2519 # for both compiling C and C++ we need to have the C++ compiler decide
2520 # the declaration of exit, since it's the most demanding environment.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #ifndef __cplusplus
2523   choke me
2524 #endif
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2528   (eval $ac_compile) 2>conftest.er1
2529   ac_status=$?
2530   grep -v '^ *+' conftest.er1 >conftest.err
2531   rm -f conftest.er1
2532   cat conftest.err >&5
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); } &&
2535          { ac_try='test -z "$ac_c_werror_flag"
2536                          || test ! -s conftest.err'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; } &&
2542          { ac_try='test -s conftest.$ac_objext'
2543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544   (eval $ac_try) 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; }; then
2548   for ac_declaration in \
2549    '' \
2550    'extern "C" void std::exit (int) throw (); using std::exit;' \
2551    'extern "C" void std::exit (int); using std::exit;' \
2552    'extern "C" void exit (int) throw ();' \
2553    'extern "C" void exit (int);' \
2554    'void exit (int);'
2555 do
2556   cat >conftest.$ac_ext <<_ACEOF
2557 /* confdefs.h.  */
2558 _ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h.  */
2562 $ac_declaration
2563 #include <stdlib.h>
2564 int
2565 main ()
2566 {
2567 exit (42);
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574   (eval $ac_compile) 2>conftest.er1
2575   ac_status=$?
2576   grep -v '^ *+' conftest.er1 >conftest.err
2577   rm -f conftest.er1
2578   cat conftest.err >&5
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -z "$ac_c_werror_flag"
2582                          || test ! -s conftest.err'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; } &&
2588          { ac_try='test -s conftest.$ac_objext'
2589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; }; then
2594   :
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 continue
2600 fi
2601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608 $ac_declaration
2609 int
2610 main ()
2611 {
2612 exit (42);
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619   (eval $ac_compile) 2>conftest.er1
2620   ac_status=$?
2621   grep -v '^ *+' conftest.er1 >conftest.err
2622   rm -f conftest.er1
2623   cat conftest.err >&5
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); } &&
2626          { ac_try='test -z "$ac_c_werror_flag"
2627                          || test ! -s conftest.err'
2628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629   (eval $ac_try) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 else
2655   echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2657
2658 fi
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666 ac_ext=cc
2667 ac_cpp='$CXXCPP $CPPFLAGS'
2668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2673   do
2674     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 echo "$as_me:$LINENO: checking for $ac_word" >&5
2677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2678 if test "${ac_cv_prog_CXX+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   if test -n "$CXX"; then
2682   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689   for ac_exec_ext in '' $ac_executable_extensions; do
2690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696 done
2697
2698 fi
2699 fi
2700 CXX=$ac_cv_prog_CXX
2701 if test -n "$CXX"; then
2702   echo "$as_me:$LINENO: result: $CXX" >&5
2703 echo "${ECHO_T}$CXX" >&6
2704 else
2705   echo "$as_me:$LINENO: result: no" >&5
2706 echo "${ECHO_T}no" >&6
2707 fi
2708
2709     test -n "$CXX" && break
2710   done
2711 fi
2712 if test -z "$CXX"; then
2713   ac_ct_CXX=$CXX
2714   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2715 do
2716   # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2720 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   if test -n "$ac_ct_CXX"; then
2724   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731   for ac_exec_ext in '' $ac_executable_extensions; do
2732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733     ac_cv_prog_ac_ct_CXX="$ac_prog"
2734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738 done
2739
2740 fi
2741 fi
2742 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2743 if test -n "$ac_ct_CXX"; then
2744   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2745 echo "${ECHO_T}$ac_ct_CXX" >&6
2746 else
2747   echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6
2749 fi
2750
2751   test -n "$ac_ct_CXX" && break
2752 done
2753 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2754
2755   CXX=$ac_ct_CXX
2756 fi
2757
2758
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO:" \
2761      "checking for C++ compiler version" >&5
2762 ac_compiler=`set X $ac_compile; echo $2`
2763 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2764   (eval $ac_compiler --version </dev/null >&5) 2>&5
2765   ac_status=$?
2766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767   (exit $ac_status); }
2768 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2769   (eval $ac_compiler -v </dev/null >&5) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }
2773 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2774   (eval $ac_compiler -V </dev/null >&5) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }
2778
2779 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2780 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794 #ifndef __GNUC__
2795        choke me
2796 #endif
2797
2798   ;
2799   return 0;
2800 }
2801 _ACEOF
2802 rm -f conftest.$ac_objext
2803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804   (eval $ac_compile) 2>conftest.er1
2805   ac_status=$?
2806   grep -v '^ *+' conftest.er1 >conftest.err
2807   rm -f conftest.er1
2808   cat conftest.err >&5
2809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } &&
2811          { ac_try='test -z "$ac_cxx_werror_flag"
2812                          || test ! -s conftest.err'
2813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814   (eval $ac_try) 2>&5
2815   ac_status=$?
2816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817   (exit $ac_status); }; } &&
2818          { ac_try='test -s conftest.$ac_objext'
2819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820   (eval $ac_try) 2>&5
2821   ac_status=$?
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); }; }; then
2824   ac_compiler_gnu=yes
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829 ac_compiler_gnu=no
2830 fi
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2833
2834 fi
2835 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2836 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2837 GXX=`test $ac_compiler_gnu = yes && echo yes`
2838 ac_test_CXXFLAGS=${CXXFLAGS+set}
2839 ac_save_CXXFLAGS=$CXXFLAGS
2840 CXXFLAGS="-g"
2841 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2842 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2843 if test "${ac_cv_prog_cxx_g+set}" = set; then
2844   echo $ECHO_N "(cached) $ECHO_C" >&6
2845 else
2846   cat >conftest.$ac_ext <<_ACEOF
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852
2853 int
2854 main ()
2855 {
2856
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>conftest.er1
2864   ac_status=$?
2865   grep -v '^ *+' conftest.er1 >conftest.err
2866   rm -f conftest.er1
2867   cat conftest.err >&5
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -z "$ac_cxx_werror_flag"
2871                          || test ! -s conftest.err'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   ac_cv_prog_cxx_g=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888 ac_cv_prog_cxx_g=no
2889 fi
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 fi
2892 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2894 if test "$ac_test_CXXFLAGS" = set; then
2895   CXXFLAGS=$ac_save_CXXFLAGS
2896 elif test $ac_cv_prog_cxx_g = yes; then
2897   if test "$GXX" = yes; then
2898     CXXFLAGS="-g -O2"
2899   else
2900     CXXFLAGS="-g"
2901   fi
2902 else
2903   if test "$GXX" = yes; then
2904     CXXFLAGS="-O2"
2905   else
2906     CXXFLAGS=
2907   fi
2908 fi
2909 for ac_declaration in \
2910    '' \
2911    'extern "C" void std::exit (int) throw (); using std::exit;' \
2912    'extern "C" void std::exit (int); using std::exit;' \
2913    'extern "C" void exit (int) throw ();' \
2914    'extern "C" void exit (int);' \
2915    'void exit (int);'
2916 do
2917   cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h.  */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h.  */
2923 $ac_declaration
2924 #include <stdlib.h>
2925 int
2926 main ()
2927 {
2928 exit (42);
2929   ;
2930   return 0;
2931 }
2932 _ACEOF
2933 rm -f conftest.$ac_objext
2934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2935   (eval $ac_compile) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } &&
2942          { ac_try='test -z "$ac_cxx_werror_flag"
2943                          || test ! -s conftest.err'
2944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945   (eval $ac_try) 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; } &&
2949          { ac_try='test -s conftest.$ac_objext'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; }; then
2955   :
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2963   cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h.  */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h.  */
2969 $ac_declaration
2970 int
2971 main ()
2972 {
2973 exit (42);
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2980   (eval $ac_compile) 2>conftest.er1
2981   ac_status=$?
2982   grep -v '^ *+' conftest.er1 >conftest.err
2983   rm -f conftest.er1
2984   cat conftest.err >&5
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); } &&
2987          { ac_try='test -z "$ac_cxx_werror_flag"
2988                          || test ! -s conftest.err'
2989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990   (eval $ac_try) 2>&5
2991   ac_status=$?
2992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993   (exit $ac_status); }; } &&
2994          { ac_try='test -s conftest.$ac_objext'
2995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996   (eval $ac_try) 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; }; then
3000   break
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 fi
3006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3007 done
3008 rm -f conftest*
3009 if test -n "$ac_declaration"; then
3010   echo '#ifdef __cplusplus' >>confdefs.h
3011   echo $ac_declaration      >>confdefs.h
3012   echo '#endif'             >>confdefs.h
3013 fi
3014
3015 ac_ext=c
3016 ac_cpp='$CPP $CPPFLAGS'
3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020
3021 CXXFLAGS="$save_CXXFLAGS"
3022
3023
3024
3025
3026
3027 am__api_version="1.9"
3028 # Find a good install program.  We prefer a C program (faster),
3029 # so one script is as good as another.  But avoid the broken or
3030 # incompatible versions:
3031 # SysV /etc/install, /usr/sbin/install
3032 # SunOS /usr/etc/install
3033 # IRIX /sbin/install
3034 # AIX /bin/install
3035 # AmigaOS /C/install, which installs bootblocks on floppy discs
3036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3039 # OS/2's system install, which has a completely different semantic
3040 # ./install, which can be erroneously created by make from ./install.sh.
3041 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3043 if test -z "$INSTALL"; then
3044 if test "${ac_cv_path_install+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052   # Account for people who put trailing slashes in PATH elements.
3053 case $as_dir/ in
3054   ./ | .// | /cC/* | \
3055   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3056   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3057   /usr/ucb/* ) ;;
3058   *)
3059     # OSF1 and SCO ODT 3.0 have their own names for install.
3060     # Don't use installbsd from OSF since it installs stuff as root
3061     # by default.
3062     for ac_prog in ginstall scoinst install; do
3063       for ac_exec_ext in '' $ac_executable_extensions; do
3064         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3065           if test $ac_prog = install &&
3066             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3067             # AIX install.  It has an incompatible calling convention.
3068             :
3069           elif test $ac_prog = install &&
3070             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3071             # program-specific install script used by HP pwplus--don't use.
3072             :
3073           else
3074             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3075             break 3
3076           fi
3077         fi
3078       done
3079     done
3080     ;;
3081 esac
3082 done
3083
3084
3085 fi
3086   if test "${ac_cv_path_install+set}" = set; then
3087     INSTALL=$ac_cv_path_install
3088   else
3089     # As a last resort, use the slow shell script.  We don't cache a
3090     # path for INSTALL within a source directory, because that will
3091     # break other packages using the cache if that directory is
3092     # removed, or if the path is relative.
3093     INSTALL=$ac_install_sh
3094   fi
3095 fi
3096 echo "$as_me:$LINENO: result: $INSTALL" >&5
3097 echo "${ECHO_T}$INSTALL" >&6
3098
3099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3100 # It thinks the first close brace ends the variable substitution.
3101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3102
3103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3104
3105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3106
3107 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3108 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3109 # Just in case
3110 sleep 1
3111 echo timestamp > conftest.file
3112 # Do `set' in a subshell so we don't clobber the current shell's
3113 # arguments.  Must try -L first in case configure is actually a
3114 # symlink; some systems play weird games with the mod time of symlinks
3115 # (eg FreeBSD returns the mod time of the symlink's containing
3116 # directory).
3117 if (
3118    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3119    if test "$*" = "X"; then
3120       # -L didn't work.
3121       set X `ls -t $srcdir/configure conftest.file`
3122    fi
3123    rm -f conftest.file
3124    if test "$*" != "X $srcdir/configure conftest.file" \
3125       && test "$*" != "X conftest.file $srcdir/configure"; then
3126
3127       # If neither matched, then we have a broken ls.  This can happen
3128       # if, for instance, CONFIG_SHELL is bash and it inherits a
3129       # broken ls alias from the environment.  This has actually
3130       # happened.  Such a system could not be considered "sane".
3131       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3132 alias in your environment" >&5
3133 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3134 alias in your environment" >&2;}
3135    { (exit 1); exit 1; }; }
3136    fi
3137
3138    test "$2" = conftest.file
3139    )
3140 then
3141    # Ok.
3142    :
3143 else
3144    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3145 Check your system clock" >&5
3146 echo "$as_me: error: newly created file is older than distributed files!
3147 Check your system clock" >&2;}
3148    { (exit 1); exit 1; }; }
3149 fi
3150 echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152 test "$program_prefix" != NONE &&
3153   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3154 # Use a double $ so make ignores it.
3155 test "$program_suffix" != NONE &&
3156   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3157 # Double any \ or $.  echo might interpret backslashes.
3158 # By default was `s,x,x', remove it if useless.
3159 cat <<\_ACEOF >conftest.sed
3160 s/[\\$]/&&/g;s/;s,x,x,$//
3161 _ACEOF
3162 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3163 rm conftest.sed
3164
3165 # expand $ac_aux_dir to an absolute path
3166 am_aux_dir=`cd $ac_aux_dir && pwd`
3167
3168 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3169 # Use eval to expand $SHELL
3170 if eval "$MISSING --run true"; then
3171   am_missing_run="$MISSING --run "
3172 else
3173   am_missing_run=
3174   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3175 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3176 fi
3177
3178 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3179   # We used to keeping the `.' as first argument, in order to
3180   # allow $(mkdir_p) to be used without argument.  As in
3181   #   $(mkdir_p) $(somedir)
3182   # where $(somedir) is conditionally defined.  However this is wrong
3183   # for two reasons:
3184   #  1. if the package is installed by a user who cannot write `.'
3185   #     make install will fail,
3186   #  2. the above comment should most certainly read
3187   #     $(mkdir_p) $(DESTDIR)$(somedir)
3188   #     so it does not work when $(somedir) is undefined and
3189   #     $(DESTDIR) is not.
3190   #  To support the latter case, we have to write
3191   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3192   #  so the `.' trick is pointless.
3193   mkdir_p='mkdir -p --'
3194 else
3195   # On NextStep and OpenStep, the `mkdir' command does not
3196   # recognize any option.  It will interpret all options as
3197   # directories to create, and then abort because `.' already
3198   # exists.
3199   for d in ./-p ./--version;
3200   do
3201     test -d $d && rmdir $d
3202   done
3203   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3204   if test -f "$ac_aux_dir/mkinstalldirs"; then
3205     mkdir_p='$(mkinstalldirs)'
3206   else
3207     mkdir_p='$(install_sh) -d'
3208   fi
3209 fi
3210
3211 for ac_prog in gawk mawk nawk awk
3212 do
3213   # Extract the first word of "$ac_prog", so it can be a program name with args.
3214 set dummy $ac_prog; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_prog_AWK+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   if test -n "$AWK"; then
3221   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_prog_AWK="$ac_prog"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236
3237 fi
3238 fi
3239 AWK=$ac_cv_prog_AWK
3240 if test -n "$AWK"; then
3241   echo "$as_me:$LINENO: result: $AWK" >&5
3242 echo "${ECHO_T}$AWK" >&6
3243 else
3244   echo "$as_me:$LINENO: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3246 fi
3247
3248   test -n "$AWK" && break
3249 done
3250
3251 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3252 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3253 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3254 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   cat >conftest.make <<\_ACEOF
3258 all:
3259         @echo 'ac_maketemp="$(MAKE)"'
3260 _ACEOF
3261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3262 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3263 if test -n "$ac_maketemp"; then
3264   eval ac_cv_prog_make_${ac_make}_set=yes
3265 else
3266   eval ac_cv_prog_make_${ac_make}_set=no
3267 fi
3268 rm -f conftest.make
3269 fi
3270 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3271   echo "$as_me:$LINENO: result: yes" >&5
3272 echo "${ECHO_T}yes" >&6
3273   SET_MAKE=
3274 else
3275   echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6
3277   SET_MAKE="MAKE=${MAKE-make}"
3278 fi
3279
3280 rm -rf .tst 2>/dev/null
3281 mkdir .tst 2>/dev/null
3282 if test -d .tst; then
3283   am__leading_dot=.
3284 else
3285   am__leading_dot=_
3286 fi
3287 rmdir .tst 2>/dev/null
3288
3289 DEPDIR="${am__leading_dot}deps"
3290
3291           ac_config_commands="$ac_config_commands depfiles"
3292
3293
3294 am_make=${MAKE-make}
3295 cat > confinc << 'END'
3296 am__doit:
3297         @echo done
3298 .PHONY: am__doit
3299 END
3300 # If we don't find an include directive, just comment out the code.
3301 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3302 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3303 am__include="#"
3304 am__quote=
3305 _am_result=none
3306 # First try GNU make style include.
3307 echo "include confinc" > confmf
3308 # We grep out `Entering directory' and `Leaving directory'
3309 # messages which can occur if `w' ends up in MAKEFLAGS.
3310 # In particular we don't look at `^make:' because GNU make might
3311 # be invoked under some other name (usually "gmake"), in which
3312 # case it prints its new name instead of `make'.
3313 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3314    am__include=include
3315    am__quote=
3316    _am_result=GNU
3317 fi
3318 # Now try BSD make style include.
3319 if test "$am__include" = "#"; then
3320    echo '.include "confinc"' > confmf
3321    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3322       am__include=.include
3323       am__quote="\""
3324       _am_result=BSD
3325    fi
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: result: $_am_result" >&5
3330 echo "${ECHO_T}$_am_result" >&6
3331 rm -f confinc confmf
3332
3333 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3334 if test "${enable_dependency_tracking+set}" = set; then
3335   enableval="$enable_dependency_tracking"
3336
3337 fi;
3338 if test "x$enable_dependency_tracking" != xno; then
3339   am_depcomp="$ac_aux_dir/depcomp"
3340   AMDEPBACKSLASH='\'
3341 fi
3342
3343
3344 if test "x$enable_dependency_tracking" != xno; then
3345   AMDEP_TRUE=
3346   AMDEP_FALSE='#'
3347 else
3348   AMDEP_TRUE='#'
3349   AMDEP_FALSE=
3350 fi
3351
3352
3353
3354 # test to see if srcdir already configured
3355 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3356    test -f $srcdir/config.status; then
3357   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3358 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3359    { (exit 1); exit 1; }; }
3360 fi
3361
3362 # test whether we have cygpath
3363 if test -z "$CYGPATH_W"; then
3364   if (cygpath --version) >/dev/null 2>/dev/null; then
3365     CYGPATH_W='cygpath -w'
3366   else
3367     CYGPATH_W=echo
3368   fi
3369 fi
3370
3371
3372 # Define the identity of the package.
3373  PACKAGE='libjava'
3374  VERSION='version-unused'
3375
3376
3377 cat >>confdefs.h <<_ACEOF
3378 #define PACKAGE "$PACKAGE"
3379 _ACEOF
3380
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define VERSION "$VERSION"
3384 _ACEOF
3385
3386 # Some tools Automake needs.
3387
3388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3389
3390
3391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3392
3393
3394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3395
3396
3397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3398
3399
3400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3401
3402 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3403
3404 # Installed binaries are usually stripped using `strip' when the user
3405 # run `make install-strip'.  However `strip' might not be the right
3406 # tool to use in cross-compilation environments, therefore Automake
3407 # will honor the `STRIP' environment variable to overrule this program.
3408 if test "$cross_compiling" != no; then
3409   if test -n "$ac_tool_prefix"; then
3410   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3411 set dummy ${ac_tool_prefix}strip; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_STRIP+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   if test -n "$STRIP"; then
3418   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425   for ac_exec_ext in '' $ac_executable_extensions; do
3426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432 done
3433
3434 fi
3435 fi
3436 STRIP=$ac_cv_prog_STRIP
3437 if test -n "$STRIP"; then
3438   echo "$as_me:$LINENO: result: $STRIP" >&5
3439 echo "${ECHO_T}$STRIP" >&6
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 fi
3444
3445 fi
3446 if test -z "$ac_cv_prog_STRIP"; then
3447   ac_ct_STRIP=$STRIP
3448   # Extract the first word of "strip", so it can be a program name with args.
3449 set dummy strip; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   if test -n "$ac_ct_STRIP"; then
3456   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463   for ac_exec_ext in '' $ac_executable_extensions; do
3464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465     ac_cv_prog_ac_ct_STRIP="strip"
3466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470 done
3471
3472   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3473 fi
3474 fi
3475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3476 if test -n "$ac_ct_STRIP"; then
3477   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3478 echo "${ECHO_T}$ac_ct_STRIP" >&6
3479 else
3480   echo "$as_me:$LINENO: result: no" >&5
3481 echo "${ECHO_T}no" >&6
3482 fi
3483
3484   STRIP=$ac_ct_STRIP
3485 else
3486   STRIP="$ac_cv_prog_STRIP"
3487 fi
3488
3489 fi
3490 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3491
3492 # We need awk for the "check" target.  The system "awk" is bad on
3493 # some platforms.
3494 # Always define AMTAR for backward compatibility.
3495
3496 AMTAR=${AMTAR-"${am_missing_run}tar"}
3497
3498 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3499
3500
3501
3502
3503 depcc="$CC"   am_compiler_list=
3504
3505 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3506 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3507 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3511   # We make a subdir and do the tests there.  Otherwise we can end up
3512   # making bogus files that we don't know about and never remove.  For
3513   # instance it was reported that on HP-UX the gcc test will end up
3514   # making a dummy file named `D' -- because `-MD' means `put the output
3515   # in D'.
3516   mkdir conftest.dir
3517   # Copy depcomp to subdir because otherwise we won't find it if we're
3518   # using a relative directory.
3519   cp "$am_depcomp" conftest.dir
3520   cd conftest.dir
3521   # We will build objects and dependencies in a subdirectory because
3522   # it helps to detect inapplicable dependency modes.  For instance
3523   # both Tru64's cc and ICC support -MD to output dependencies as a
3524   # side effect of compilation, but ICC will put the dependencies in
3525   # the current directory while Tru64 will put them in the object
3526   # directory.
3527   mkdir sub
3528
3529   am_cv_CC_dependencies_compiler_type=none
3530   if test "$am_compiler_list" = ""; then
3531      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3532   fi
3533   for depmode in $am_compiler_list; do
3534     # Setup a source with many dependencies, because some compilers
3535     # like to wrap large dependency lists on column 80 (with \), and
3536     # we should not choose a depcomp mode which is confused by this.
3537     #
3538     # We need to recreate these files for each test, as the compiler may
3539     # overwrite some of them when testing with obscure command lines.
3540     # This happens at least with the AIX C compiler.
3541     : > sub/conftest.c
3542     for i in 1 2 3 4 5 6; do
3543       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3544       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3545       # Solaris 8's {/usr,}/bin/sh.
3546       touch sub/conftst$i.h
3547     done
3548     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3549
3550     case $depmode in
3551     nosideeffect)
3552       # after this tag, mechanisms are not by side-effect, so they'll
3553       # only be used when explicitly requested
3554       if test "x$enable_dependency_tracking" = xyes; then
3555         continue
3556       else
3557         break
3558       fi
3559       ;;
3560     none) break ;;
3561     esac
3562     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3563     # mode.  It turns out that the SunPro C++ compiler does not properly
3564     # handle `-M -o', and we need to detect this.
3565     if depmode=$depmode \
3566        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3567        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3568        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3569          >/dev/null 2>conftest.err &&
3570        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3571        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3572        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3573       # icc doesn't choke on unknown options, it will just issue warnings
3574       # or remarks (even with -Werror).  So we grep stderr for any message
3575       # that says an option was ignored or not supported.
3576       # When given -MP, icc 7.0 and 7.1 complain thusly:
3577       #   icc: Command line warning: ignoring option '-M'; no argument required
3578       # The diagnosis changed in icc 8.0:
3579       #   icc: Command line remark: option '-MP' not supported
3580       if (grep 'ignoring option' conftest.err ||
3581           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3582         am_cv_CC_dependencies_compiler_type=$depmode
3583         break
3584       fi
3585     fi
3586   done
3587
3588   cd ..
3589   rm -rf conftest.dir
3590 else
3591   am_cv_CC_dependencies_compiler_type=none
3592 fi
3593
3594 fi
3595 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3596 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3597 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3598
3599
3600
3601 if
3602   test "x$enable_dependency_tracking" != xno \
3603   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3604   am__fastdepCC_TRUE=
3605   am__fastdepCC_FALSE='#'
3606 else
3607   am__fastdepCC_TRUE='#'
3608   am__fastdepCC_FALSE=
3609 fi
3610
3611
3612 depcc="$CXX"  am_compiler_list=
3613
3614 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3616 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620   # We make a subdir and do the tests there.  Otherwise we can end up
3621   # making bogus files that we don't know about and never remove.  For
3622   # instance it was reported that on HP-UX the gcc test will end up
3623   # making a dummy file named `D' -- because `-MD' means `put the output
3624   # in D'.
3625   mkdir conftest.dir
3626   # Copy depcomp to subdir because otherwise we won't find it if we're
3627   # using a relative directory.
3628   cp "$am_depcomp" conftest.dir
3629   cd conftest.dir
3630   # We will build objects and dependencies in a subdirectory because
3631   # it helps to detect inapplicable dependency modes.  For instance
3632   # both Tru64's cc and ICC support -MD to output dependencies as a
3633   # side effect of compilation, but ICC will put the dependencies in
3634   # the current directory while Tru64 will put them in the object
3635   # directory.
3636   mkdir sub
3637
3638   am_cv_CXX_dependencies_compiler_type=none
3639   if test "$am_compiler_list" = ""; then
3640      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3641   fi
3642   for depmode in $am_compiler_list; do
3643     # Setup a source with many dependencies, because some compilers
3644     # like to wrap large dependency lists on column 80 (with \), and
3645     # we should not choose a depcomp mode which is confused by this.
3646     #
3647     # We need to recreate these files for each test, as the compiler may
3648     # overwrite some of them when testing with obscure command lines.
3649     # This happens at least with the AIX C compiler.
3650     : > sub/conftest.c
3651     for i in 1 2 3 4 5 6; do
3652       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654       # Solaris 8's {/usr,}/bin/sh.
3655       touch sub/conftst$i.h
3656     done
3657     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3658
3659     case $depmode in
3660     nosideeffect)
3661       # after this tag, mechanisms are not by side-effect, so they'll
3662       # only be used when explicitly requested
3663       if test "x$enable_dependency_tracking" = xyes; then
3664         continue
3665       else
3666         break
3667       fi
3668       ;;
3669     none) break ;;
3670     esac
3671     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672     # mode.  It turns out that the SunPro C++ compiler does not properly
3673     # handle `-M -o', and we need to detect this.
3674     if depmode=$depmode \
3675        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678          >/dev/null 2>conftest.err &&
3679        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3680        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3681        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3682       # icc doesn't choke on unknown options, it will just issue warnings
3683       # or remarks (even with -Werror).  So we grep stderr for any message
3684       # that says an option was ignored or not supported.
3685       # When given -MP, icc 7.0 and 7.1 complain thusly:
3686       #   icc: Command line warning: ignoring option '-M'; no argument required
3687       # The diagnosis changed in icc 8.0:
3688       #   icc: Command line remark: option '-MP' not supported
3689       if (grep 'ignoring option' conftest.err ||
3690           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3691         am_cv_CXX_dependencies_compiler_type=$depmode
3692         break
3693       fi
3694     fi
3695   done
3696
3697   cd ..
3698   rm -rf conftest.dir
3699 else
3700   am_cv_CXX_dependencies_compiler_type=none
3701 fi
3702
3703 fi
3704 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3705 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3706 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3707
3708
3709
3710 if
3711   test "x$enable_dependency_tracking" != xno \
3712   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3713   am__fastdepCXX_TRUE=
3714   am__fastdepCXX_FALSE='#'
3715 else
3716   am__fastdepCXX_TRUE='#'
3717   am__fastdepCXX_FALSE=
3718 fi
3719
3720
3721
3722
3723 if test -n "$ac_tool_prefix"; then
3724   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}as; ac_word=$2
3726 echo "$as_me:$LINENO: checking for $ac_word" >&5
3727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3728 if test "${ac_cv_prog_AS+set}" = set; then
3729   echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731   if test -n "$AS"; then
3732   ac_cv_prog_AS="$AS" # Let the user override the test.
3733 else
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 for as_dir in $PATH
3736 do
3737   IFS=$as_save_IFS
3738   test -z "$as_dir" && as_dir=.
3739   for ac_exec_ext in '' $ac_executable_extensions; do
3740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741     ac_cv_prog_AS="${ac_tool_prefix}as"
3742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743     break 2
3744   fi
3745 done
3746 done
3747
3748 fi
3749 fi
3750 AS=$ac_cv_prog_AS
3751 if test -n "$AS"; then
3752   echo "$as_me:$LINENO: result: $AS" >&5
3753 echo "${ECHO_T}$AS" >&6
3754 else
3755   echo "$as_me:$LINENO: result: no" >&5
3756 echo "${ECHO_T}no" >&6
3757 fi
3758
3759 fi
3760 if test -z "$ac_cv_prog_AS"; then
3761   ac_ct_AS=$AS
3762   # Extract the first word of "as", so it can be a program name with args.
3763 set dummy as; ac_word=$2
3764 echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3767   echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769   if test -n "$ac_ct_AS"; then
3770   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   for ac_exec_ext in '' $ac_executable_extensions; do
3778   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779     ac_cv_prog_ac_ct_AS="as"
3780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781     break 2
3782   fi
3783 done
3784 done
3785
3786 fi
3787 fi
3788 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3789 if test -n "$ac_ct_AS"; then
3790   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3791 echo "${ECHO_T}$ac_ct_AS" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797   AS=$ac_ct_AS
3798 else
3799   AS="$ac_cv_prog_AS"
3800 fi
3801
3802 if test -n "$ac_tool_prefix"; then
3803   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}ld; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_prog_LD+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   if test -n "$LD"; then
3811   ac_cv_prog_LD="$LD" # Let the user override the test.
3812 else
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3815 do
3816   IFS=$as_save_IFS
3817   test -z "$as_dir" && as_dir=.
3818   for ac_exec_ext in '' $ac_executable_extensions; do
3819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820     ac_cv_prog_LD="${ac_tool_prefix}ld"
3821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822     break 2
3823   fi
3824 done
3825 done
3826
3827 fi
3828 fi
3829 LD=$ac_cv_prog_LD
3830 if test -n "$LD"; then
3831   echo "$as_me:$LINENO: result: $LD" >&5
3832 echo "${ECHO_T}$LD" >&6
3833 else
3834   echo "$as_me:$LINENO: result: no" >&5
3835 echo "${ECHO_T}no" >&6
3836 fi
3837
3838 fi
3839 if test -z "$ac_cv_prog_LD"; then
3840   ac_ct_LD=$LD
3841   # Extract the first word of "ld", so it can be a program name with args.
3842 set dummy ld; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   if test -n "$ac_ct_LD"; then
3849   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3853 do
3854   IFS=$as_save_IFS
3855   test -z "$as_dir" && as_dir=.
3856   for ac_exec_ext in '' $ac_executable_extensions; do
3857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858     ac_cv_prog_ac_ct_LD="ld"
3859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3860     break 2
3861   fi
3862 done
3863 done
3864
3865 fi
3866 fi
3867 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3868 if test -n "$ac_ct_LD"; then
3869   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3870 echo "${ECHO_T}$ac_ct_LD" >&6
3871 else
3872   echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 fi
3875
3876   LD=$ac_ct_LD
3877 else
3878   LD="$ac_cv_prog_LD"
3879 fi
3880
3881 if test -n "$ac_tool_prefix"; then
3882   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3883 set dummy ${ac_tool_prefix}ar; ac_word=$2
3884 echo "$as_me:$LINENO: checking for $ac_word" >&5
3885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3886 if test "${ac_cv_prog_AR+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   if test -n "$AR"; then
3890   ac_cv_prog_AR="$AR" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897   for ac_exec_ext in '' $ac_executable_extensions; do
3898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3899     ac_cv_prog_AR="${ac_tool_prefix}ar"
3900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3901     break 2
3902   fi
3903 done
3904 done
3905
3906 fi
3907 fi
3908 AR=$ac_cv_prog_AR
3909 if test -n "$AR"; then
3910   echo "$as_me:$LINENO: result: $AR" >&5
3911 echo "${ECHO_T}$AR" >&6
3912 else
3913   echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917 fi
3918 if test -z "$ac_cv_prog_AR"; then
3919   ac_ct_AR=$AR
3920   # Extract the first word of "ar", so it can be a program name with args.
3921 set dummy ar; ac_word=$2
3922 echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   if test -n "$ac_ct_AR"; then
3928   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933   IFS=$as_save_IFS
3934   test -z "$as_dir" && as_dir=.
3935   for ac_exec_ext in '' $ac_executable_extensions; do
3936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937     ac_cv_prog_ac_ct_AR="ar"
3938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939     break 2
3940   fi
3941 done
3942 done
3943
3944 fi
3945 fi
3946 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3947 if test -n "$ac_ct_AR"; then
3948   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3949 echo "${ECHO_T}$ac_ct_AR" >&6
3950 else
3951   echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6
3953 fi
3954
3955   AR=$ac_ct_AR
3956 else
3957   AR="$ac_cv_prog_AR"
3958 fi
3959
3960 if test -n "$ac_tool_prefix"; then
3961   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_RANLIB+set}" = set; then
3966   echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968   if test -n "$RANLIB"; then
3969   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3973 do
3974   IFS=$as_save_IFS
3975   test -z "$as_dir" && as_dir=.
3976   for ac_exec_ext in '' $ac_executable_extensions; do
3977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980     break 2
3981   fi
3982 done
3983 done
3984
3985 fi
3986 fi
3987 RANLIB=$ac_cv_prog_RANLIB
3988 if test -n "$RANLIB"; then
3989   echo "$as_me:$LINENO: result: $RANLIB" >&5
3990 echo "${ECHO_T}$RANLIB" >&6
3991 else
3992   echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3994 fi
3995
3996 fi
3997 if test -z "$ac_cv_prog_RANLIB"; then
3998   ac_ct_RANLIB=$RANLIB
3999   # Extract the first word of "ranlib", so it can be a program name with args.
4000 set dummy ranlib; ac_word=$2
4001 echo "$as_me:$LINENO: checking for $ac_word" >&5
4002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4003 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4004   echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006   if test -n "$ac_ct_RANLIB"; then
4007   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012   IFS=$as_save_IFS
4013   test -z "$as_dir" && as_dir=.
4014   for ac_exec_ext in '' $ac_executable_extensions; do
4015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016     ac_cv_prog_ac_ct_RANLIB="ranlib"
4017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4018     break 2
4019   fi
4020 done
4021 done
4022
4023   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024 fi
4025 fi
4026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027 if test -n "$ac_ct_RANLIB"; then
4028   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4029 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030 else
4031   echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6
4033 fi
4034
4035   RANLIB=$ac_ct_RANLIB
4036 else
4037   RANLIB="$ac_cv_prog_RANLIB"
4038 fi
4039
4040 for ac_prog in gawk mawk nawk awk
4041 do
4042   # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 echo "$as_me:$LINENO: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_prog_AWK+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   if test -n "$AWK"; then
4050   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057   for ac_exec_ext in '' $ac_executable_extensions; do
4058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059     ac_cv_prog_AWK="$ac_prog"
4060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061     break 2
4062   fi
4063 done
4064 done
4065
4066 fi
4067 fi
4068 AWK=$ac_cv_prog_AWK
4069 if test -n "$AWK"; then
4070   echo "$as_me:$LINENO: result: $AWK" >&5
4071 echo "${ECHO_T}$AWK" >&6
4072 else
4073   echo "$as_me:$LINENO: result: no" >&5
4074 echo "${ECHO_T}no" >&6
4075 fi
4076
4077   test -n "$AWK" && break
4078 done
4079
4080 for ac_prog in jar fastjar gjar
4081 do
4082   # Extract the first word of "$ac_prog", so it can be a program name with args.
4083 set dummy $ac_prog; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_JAR+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$JAR"; then
4090   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_JAR="$ac_prog"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106 fi
4107 fi
4108 JAR=$ac_cv_prog_JAR
4109 if test -n "$JAR"; then
4110   echo "$as_me:$LINENO: result: $JAR" >&5
4111 echo "${ECHO_T}$JAR" >&6
4112 else
4113   echo "$as_me:$LINENO: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4115 fi
4116
4117   test -n "$JAR" && break
4118 done
4119 test -n "$JAR" || JAR="no"
4120
4121 # Extract the first word of "zip", so it can be a program name with args.
4122 set dummy zip; ac_word=$2
4123 echo "$as_me:$LINENO: checking for $ac_word" >&5
4124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4125 if test "${ac_cv_path_ZIP+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   case $ZIP in
4129   [\\/]* | ?:[\\/]*)
4130   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4131   ;;
4132   *)
4133   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4135 do
4136   IFS=$as_save_IFS
4137   test -z "$as_dir" && as_dir=.
4138   for ac_exec_ext in '' $ac_executable_extensions; do
4139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4142     break 2
4143   fi
4144 done
4145 done
4146
4147   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4148   ;;
4149 esac
4150 fi
4151 ZIP=$ac_cv_path_ZIP
4152
4153 if test -n "$ZIP"; then
4154   echo "$as_me:$LINENO: result: $ZIP" >&5
4155 echo "${ECHO_T}$ZIP" >&6
4156 else
4157   echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161 # Extract the first word of "unzip", so it can be a program name with args.
4162 set dummy unzip; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_UNZIP+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   case $UNZIP in
4169   [\\/]* | ?:[\\/]*)
4170   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4171   ;;
4172   *)
4173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4188   ;;
4189 esac
4190 fi
4191 UNZIP=$ac_cv_path_UNZIP
4192
4193 if test -n "$UNZIP"; then
4194   echo "$as_me:$LINENO: result: $UNZIP" >&5
4195 echo "${ECHO_T}$UNZIP" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201
4202 # We need a jar that supports -@.  This is a GNU extension.
4203 if test "$JAR" != no; then
4204    rm -f config-test.jar
4205    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4206    if test -f config-test.jar; then
4207      rm -f config-test.jar
4208    else
4209      JAR=no
4210    fi
4211 fi
4212
4213 # Prefer the jar we found, but fall back to our jar script.
4214 if test "$JAR" = no; then
4215   if test "$ZIP" = no; then
4216     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4217 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4218    { (exit 1); exit 1; }; }
4219   else
4220     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4221     JAR=`pwd`/scripts/jar
4222   fi
4223 fi
4224
4225 # Find a good install program.  We prefer a C program (faster),
4226 # so one script is as good as another.  But avoid the broken or
4227 # incompatible versions:
4228 # SysV /etc/install, /usr/sbin/install
4229 # SunOS /usr/etc/install
4230 # IRIX /sbin/install
4231 # AIX /bin/install
4232 # AmigaOS /C/install, which installs bootblocks on floppy discs
4233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4236 # OS/2's system install, which has a completely different semantic
4237 # ./install, which can be erroneously created by make from ./install.sh.
4238 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4239 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4240 if test -z "$INSTALL"; then
4241 if test "${ac_cv_path_install+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247   IFS=$as_save_IFS
4248   test -z "$as_dir" && as_dir=.
4249   # Account for people who put trailing slashes in PATH elements.
4250 case $as_dir/ in
4251   ./ | .// | /cC/* | \
4252   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4253   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4254   /usr/ucb/* ) ;;
4255   *)
4256     # OSF1 and SCO ODT 3.0 have their own names for install.
4257     # Don't use installbsd from OSF since it installs stuff as root
4258     # by default.
4259     for ac_prog in ginstall scoinst install; do
4260       for ac_exec_ext in '' $ac_executable_extensions; do
4261         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4262           if test $ac_prog = install &&
4263             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4264             # AIX install.  It has an incompatible calling convention.
4265             :
4266           elif test $ac_prog = install &&
4267             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4268             # program-specific install script used by HP pwplus--don't use.
4269             :
4270           else
4271             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4272             break 3
4273           fi
4274         fi
4275       done
4276     done
4277     ;;
4278 esac
4279 done
4280
4281
4282 fi
4283   if test "${ac_cv_path_install+set}" = set; then
4284     INSTALL=$ac_cv_path_install
4285   else
4286     # As a last resort, use the slow shell script.  We don't cache a
4287     # path for INSTALL within a source directory, because that will
4288     # break other packages using the cache if that directory is
4289     # removed, or if the path is relative.
4290     INSTALL=$ac_install_sh
4291   fi
4292 fi
4293 echo "$as_me:$LINENO: result: $INSTALL" >&5
4294 echo "${ECHO_T}$INSTALL" >&6
4295
4296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4297 # It thinks the first close brace ends the variable substitution.
4298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4299
4300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4301
4302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4303
4304
4305 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4306 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4307     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4308 if test "${enable_maintainer_mode+set}" = set; then
4309   enableval="$enable_maintainer_mode"
4310   USE_MAINTAINER_MODE=$enableval
4311 else
4312   USE_MAINTAINER_MODE=no
4313 fi;
4314   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4315 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4316
4317
4318 if test $USE_MAINTAINER_MODE = yes; then
4319   MAINTAINER_MODE_TRUE=
4320   MAINTAINER_MODE_FALSE='#'
4321 else
4322   MAINTAINER_MODE_TRUE='#'
4323   MAINTAINER_MODE_FALSE=
4324 fi
4325
4326   MAINT=$MAINTAINER_MODE_TRUE
4327
4328
4329
4330
4331
4332 # configure.host sets the following important variables
4333 #       libgcj_cflags    - host specific C compiler flags
4334 #       libgcj_cxxflags  - host specific C++ compiler flags
4335 #       libgcj_javaflags - host specific Java compiler flags
4336
4337 libgcj_cflags=
4338 libgcj_cxxflags=
4339 libgcj_javaflags=
4340
4341 . ${srcdir}/configure.host
4342
4343 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4344 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4345 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4349 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4350   acl_cv_prog_gnu_ld=yes
4351 else
4352   acl_cv_prog_gnu_ld=no
4353 fi
4354 fi
4355 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4356 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4357 with_gnu_ld=$acl_cv_prog_gnu_ld
4358
4359 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4360 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4361 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364
4365 acl_cv_prog_gnu_ld_symbolic=no
4366
4367 if test x"$with_gnu_ld" = x"yes"; then
4368   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4369     acl_cv_prog_gnu_ld_symbolic=yes
4370   fi
4371 fi
4372 fi
4373 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4374 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4375 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4376   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4377 else
4378   SYMBOLIC_LDFLAGS=''
4379 fi
4380
4381 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4382 if test -z "$libgcj_ld_symbolic"; then
4383   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4384 fi
4385
4386 LIBGCJ_CFLAGS="${libgcj_cflags}"
4387 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4388 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4389 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4390 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4391
4392
4393
4394
4395
4396
4397 # Only use libltdl for non-newlib builds.
4398 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4399    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4400 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4401 library_names_spec=
4402 libname_spec='lib$name'
4403 soname_spec=
4404 shrext=".so"
4405 postinstall_cmds=
4406 postuninstall_cmds=
4407 finish_cmds=
4408 finish_eval=
4409 shlibpath_var=
4410 shlibpath_overrides_runpath=unknown
4411 version_type=none
4412 dynamic_linker="$host_os ld.so"
4413 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4414 if test "$GCC" = yes; then
4415   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4416   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4417     # if the path contains ";" then we assume it to be the separator
4418     # otherwise default to the standard path separator (i.e. ":") - it is
4419     # assumed that no part of a normal pathname contains ";" but that should
4420     # okay in the real world where ";" in dirpaths is itself problematic.
4421     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4422   else
4423     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4424   fi
4425 else
4426   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4427 fi
4428 need_lib_prefix=unknown
4429 hardcode_into_libs=no
4430
4431 # when you set need_version to no, make sure it does not cause -set_version
4432 # flags to be left without arguments
4433 need_version=unknown
4434
4435 case $host_os in
4436 aix3*)
4437   version_type=linux
4438   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4439   shlibpath_var=LIBPATH
4440
4441   # AIX 3 has no versioning support, so we append a major version to the name.
4442   soname_spec='${libname}${release}${shared_ext}$major'
4443   ;;
4444
4445 aix4* | aix5*)
4446   version_type=linux
4447   need_lib_prefix=no
4448   need_version=no
4449   hardcode_into_libs=yes
4450   if test "$host_cpu" = ia64; then
4451     # AIX 5 supports IA64
4452     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4453     shlibpath_var=LD_LIBRARY_PATH
4454   else
4455     # With GCC up to 2.95.x, collect2 would create an import file
4456     # for dependence libraries.  The import file would start with
4457     # the line `#! .'.  This would cause the generated library to
4458     # depend on `.', always an invalid library.  This was fixed in
4459     # development snapshots of GCC prior to 3.0.
4460     case $host_os in
4461       aix4 | aix4.[01] | aix4.[01].*)
4462       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4463            echo ' yes '
4464            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4465         :
4466       else
4467         can_build_shared=no
4468       fi
4469       ;;
4470     esac
4471     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4472     # soname into executable. Probably we can add versioning support to
4473     # collect2, so additional links can be useful in future.
4474     if test "$aix_use_runtimelinking" = yes; then
4475       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4476       # instead of lib<name>.a to let people know that these are not
4477       # typical AIX shared libraries.
4478       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4479     else
4480       # We preserve .a as extension for shared libraries through AIX4.2
4481       # and later when we are not doing run time linking.
4482       library_names_spec='${libname}${release}.a $libname.a'
4483       soname_spec='${libname}${release}${shared_ext}$major'
4484     fi
4485     shlibpath_var=LIBPATH
4486   fi
4487   ;;
4488
4489 amigaos*)
4490   library_names_spec='$libname.ixlibrary $libname.a'
4491   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4492   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'
4493   ;;
4494
4495 beos*)
4496   library_names_spec='${libname}${shared_ext}'
4497   dynamic_linker="$host_os ld.so"
4498   shlibpath_var=LIBRARY_PATH
4499   ;;
4500
4501 bsdi4*)
4502   version_type=linux
4503   need_version=no
4504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4505   soname_spec='${libname}${release}${shared_ext}$major'
4506   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4507   shlibpath_var=LD_LIBRARY_PATH
4508   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4509   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4510   # the default ld.so.conf also contains /usr/contrib/lib and
4511   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4512   # libtool to hard-code these into programs
4513   ;;
4514
4515 cygwin* | mingw* | pw32*)
4516   version_type=windows
4517   shrext=".dll"
4518   need_version=no
4519   need_lib_prefix=no
4520
4521   case $GCC,$host_os in
4522   yes,cygwin* | yes,mingw* | yes,pw32*)
4523     library_names_spec='$libname.dll.a'
4524     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4525     postinstall_cmds='base_file=`basename \${file}`~
4526       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4527       dldir=$destdir/`dirname \$dlpath`~
4528       test -d \$dldir || mkdir -p \$dldir~
4529       $install_prog $dir/$dlname \$dldir/$dlname'
4530     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4531       dlpath=$dir/\$dldll~
4532        $rm \$dlpath'
4533     shlibpath_overrides_runpath=yes
4534
4535     case $host_os in
4536     cygwin*)
4537       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4538       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4539       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4540       ;;
4541     mingw*)
4542       # MinGW DLLs use traditional 'lib' prefix
4543       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4544       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4545       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4546         # It is most probably a Windows format PATH printed by
4547         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4548         # path with ; separators, and with drive letters. We can handle the
4549         # drive letters (cygwin fileutils understands them), so leave them,
4550         # especially as we might pass files found there to a mingw objdump,
4551         # which wouldn't understand a cygwinified path. Ahh.
4552         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4553       else
4554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4555       fi
4556       ;;
4557     pw32*)
4558       # pw32 DLLs use 'pw' prefix rather than 'lib'
4559       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4560       ;;
4561     esac
4562     ;;
4563
4564   *)
4565     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4566     ;;
4567   esac
4568   dynamic_linker='Win32 ld.exe'
4569   # FIXME: first we should search . and the directory the executable is in
4570   shlibpath_var=PATH
4571   ;;
4572
4573 darwin* | rhapsody*)
4574   dynamic_linker="$host_os dyld"
4575   version_type=darwin
4576   need_lib_prefix=no
4577   need_version=no
4578   # FIXME: Relying on posixy $() will cause problems for
4579   #        cross-compilation, but unfortunately the echo tests do not
4580   #        yet detect zsh echo's removal of \ escapes.
4581   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4582   soname_spec='${libname}${release}${major}$shared_ext'
4583   shlibpath_overrides_runpath=yes
4584   shlibpath_var=DYLD_LIBRARY_PATH
4585   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4586   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4587   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4588   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"`
4589   fi
4590   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4591   ;;
4592
4593 dgux*)
4594   version_type=linux
4595   need_lib_prefix=no
4596   need_version=no
4597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4598   soname_spec='${libname}${release}${shared_ext}$major'
4599   shlibpath_var=LD_LIBRARY_PATH
4600   ;;
4601
4602 freebsd1*)
4603   dynamic_linker=no
4604   ;;
4605
4606 freebsd*)
4607   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4608   version_type=freebsd-$objformat
4609   case $version_type in
4610     freebsd-elf*)
4611       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4612       need_version=no
4613       need_lib_prefix=no
4614       ;;
4615     freebsd-*)
4616       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4617       need_version=yes
4618       ;;
4619   esac
4620   shlibpath_var=LD_LIBRARY_PATH
4621   case $host_os in
4622   freebsd2*)
4623     shlibpath_overrides_runpath=yes
4624     ;;
4625   freebsd3.01* | freebsdelf3.01*)
4626     shlibpath_overrides_runpath=yes
4627     hardcode_into_libs=yes
4628     ;;
4629   *) # from 3.2 on
4630     shlibpath_overrides_runpath=no
4631     hardcode_into_libs=yes
4632     ;;
4633   esac
4634   ;;
4635
4636 gnu*)
4637   version_type=linux
4638   need_lib_prefix=no
4639   need_version=no
4640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4641   soname_spec='${libname}${release}${shared_ext}$major'
4642   shlibpath_var=LD_LIBRARY_PATH
4643   hardcode_into_libs=yes
4644   ;;
4645
4646 hpux9* | hpux10* | hpux11*)
4647   # Give a soname corresponding to the major version so that dld.sl refuses to
4648   # link against other versions.
4649   version_type=sunos
4650   need_lib_prefix=no
4651   need_version=no
4652   case "$host_cpu" in
4653   ia64*)
4654     shrext='.so'
4655     hardcode_into_libs=yes
4656     dynamic_linker="$host_os dld.so"
4657     shlibpath_var=LD_LIBRARY_PATH
4658     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4660     soname_spec='${libname}${release}${shared_ext}$major'
4661     if test "X$HPUX_IA64_MODE" = X32; then
4662       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4663     else
4664       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4665     fi
4666     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4667     ;;
4668    hppa*64*)
4669      shrext='.sl'
4670      hardcode_into_libs=yes
4671      dynamic_linker="$host_os dld.sl"
4672      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4673      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4674      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4675      soname_spec='${libname}${release}${shared_ext}$major'
4676      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4677      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4678      ;;
4679    *)
4680     shrext='.sl'
4681     dynamic_linker="$host_os dld.sl"
4682     shlibpath_var=SHLIB_PATH
4683     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4685     soname_spec='${libname}${release}${shared_ext}$major'
4686     ;;
4687   esac
4688   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4689   postinstall_cmds='chmod 555 $lib'
4690   ;;
4691
4692 irix5* | irix6* | nonstopux*)
4693   case $host_os in
4694     nonstopux*) version_type=nonstopux ;;
4695     *)
4696         if test "$lt_cv_prog_gnu_ld" = yes; then
4697                 version_type=linux
4698         else
4699                 version_type=irix
4700         fi ;;
4701   esac
4702   need_lib_prefix=no
4703   need_version=no
4704   soname_spec='${libname}${release}${shared_ext}$major'
4705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4706   case $host_os in
4707   irix5* | nonstopux*)
4708     libsuff= shlibsuff=
4709     ;;
4710   *)
4711     case $LD in # libtool.m4 will add one of these switches to LD
4712     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4713       libsuff= shlibsuff= libmagic=32-bit;;
4714     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4715       libsuff=32 shlibsuff=N32 libmagic=N32;;
4716     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4717       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4718     *) libsuff= shlibsuff= libmagic=never-match;;
4719     esac
4720     ;;
4721   esac
4722   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4723   shlibpath_overrides_runpath=no
4724   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4725   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4726   hardcode_into_libs=yes
4727   ;;
4728
4729 # No shared lib support for Linux oldld, aout, or coff.
4730 linux*oldld* | linux*aout* | linux*coff*)
4731   dynamic_linker=no
4732   ;;
4733
4734 # This must be Linux ELF.
4735 linux*|k*bsd*-gnu)
4736   version_type=linux
4737   need_lib_prefix=no
4738   need_version=no
4739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4740   soname_spec='${libname}${release}${shared_ext}$major'
4741   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4742   shlibpath_var=LD_LIBRARY_PATH
4743   shlibpath_overrides_runpath=no
4744   # This implies no fast_install, which is unacceptable.
4745   # Some rework will be needed to allow for fast_install
4746   # before this can be enabled.
4747   hardcode_into_libs=yes
4748
4749   # We used to test for /lib/ld.so.1 and disable shared libraries on
4750   # powerpc, because MkLinux only supported shared libraries with the
4751   # GNU dynamic linker.  Since this was broken with cross compilers,
4752   # most powerpc-linux boxes support dynamic linking these days and
4753   # people can always --disable-shared, the test was removed, and we
4754   # assume the GNU/Linux dynamic linker is in use.
4755   dynamic_linker='GNU/Linux ld.so'
4756   ;;
4757
4758 netbsd*)
4759   version_type=sunos
4760   need_lib_prefix=no
4761   need_version=no
4762   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4763     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4764     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4765     dynamic_linker='NetBSD (a.out) ld.so'
4766   else
4767     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4768     soname_spec='${libname}${release}${shared_ext}$major'
4769     dynamic_linker='NetBSD ld.elf_so'
4770   fi
4771   shlibpath_var=LD_LIBRARY_PATH
4772   shlibpath_overrides_runpath=yes
4773   hardcode_into_libs=yes
4774   ;;
4775
4776 newsos6)
4777   version_type=linux
4778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4779   shlibpath_var=LD_LIBRARY_PATH
4780   shlibpath_overrides_runpath=yes
4781   ;;
4782
4783 nto-qnx)
4784   version_type=linux
4785   need_lib_prefix=no
4786   need_version=no
4787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4788   soname_spec='${libname}${release}${shared_ext}$major'
4789   shlibpath_var=LD_LIBRARY_PATH
4790   shlibpath_overrides_runpath=yes
4791   ;;
4792
4793 openbsd*)
4794   version_type=sunos
4795   need_lib_prefix=no
4796   need_version=no
4797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4798   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4799   shlibpath_var=LD_LIBRARY_PATH
4800   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4801     case $host_os in
4802       openbsd2.[89] | openbsd2.[89].*)
4803         shlibpath_overrides_runpath=no
4804         ;;
4805       *)
4806         shlibpath_overrides_runpath=yes
4807         ;;
4808       esac
4809   else
4810     shlibpath_overrides_runpath=yes
4811   fi
4812   ;;
4813
4814 os2*)
4815   libname_spec='$name'
4816   shrext=".dll"
4817   need_lib_prefix=no
4818   library_names_spec='$libname${shared_ext} $libname.a'
4819   dynamic_linker='OS/2 ld.exe'
4820   shlibpath_var=LIBPATH
4821   ;;
4822
4823 osf3* | osf4* | osf5*)
4824   version_type=osf
4825   need_lib_prefix=no
4826   need_version=no
4827   soname_spec='${libname}${release}${shared_ext}$major'
4828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4829   shlibpath_var=LD_LIBRARY_PATH
4830   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4831   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4832   ;;
4833
4834 sco3.2v5*)
4835   version_type=osf
4836   soname_spec='${libname}${release}${shared_ext}$major'
4837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4838   shlibpath_var=LD_LIBRARY_PATH
4839   ;;
4840
4841 solaris*)
4842   version_type=linux
4843   need_lib_prefix=no
4844   need_version=no
4845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4846   soname_spec='${libname}${release}${shared_ext}$major'
4847   shlibpath_var=LD_LIBRARY_PATH
4848   shlibpath_overrides_runpath=yes
4849   hardcode_into_libs=yes
4850   # ldd complains unless libraries are executable
4851   postinstall_cmds='chmod +x $lib'
4852   ;;
4853
4854 sunos4*)
4855   version_type=sunos
4856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4857   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4858   shlibpath_var=LD_LIBRARY_PATH
4859   shlibpath_overrides_runpath=yes
4860   if test "$with_gnu_ld" = yes; then
4861     need_lib_prefix=no
4862   fi
4863   need_version=yes
4864   ;;
4865
4866 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4867   version_type=linux
4868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4869   soname_spec='${libname}${release}${shared_ext}$major'
4870   shlibpath_var=LD_LIBRARY_PATH
4871   case $host_vendor in
4872     sni)
4873       shlibpath_overrides_runpath=no
4874       need_lib_prefix=no
4875       export_dynamic_flag_spec='${wl}-Blargedynsym'
4876       runpath_var=LD_RUN_PATH
4877       ;;
4878     siemens)
4879       need_lib_prefix=no
4880       ;;
4881     motorola)
4882       need_lib_prefix=no
4883       need_version=no
4884       shlibpath_overrides_runpath=no
4885       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4886       ;;
4887   esac
4888   ;;
4889
4890 sysv4*MP*)
4891   if test -d /usr/nec ;then
4892     version_type=linux
4893     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4894     soname_spec='$libname${shared_ext}.$major'
4895     shlibpath_var=LD_LIBRARY_PATH
4896   fi
4897   ;;
4898
4899 uts4*)
4900   version_type=linux
4901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4902   soname_spec='${libname}${release}${shared_ext}$major'
4903   shlibpath_var=LD_LIBRARY_PATH
4904   ;;
4905
4906 *)
4907   dynamic_linker=no
4908   ;;
4909 esac
4910 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4911 echo "${ECHO_T}$dynamic_linker" >&6
4912 test "$dynamic_linker" = no && can_build_shared=no
4913
4914
4915 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4916 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4917 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   libltdl_cv_shlibpath_var="$shlibpath_var"
4921 fi
4922 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4923 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4924 if test -n "$libltdl_cv_shlibpath_var"; then
4925
4926 cat >>confdefs.h <<_ACEOF
4927 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4928 _ACEOF
4929
4930 fi
4931
4932 fi
4933
4934                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4935
4936
4937 # See if the user has requested runtime debugging.
4938 LIBGCJDEBUG="disable"
4939
4940 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4941 if test "${enable_libgcj_debug+set}" = set; then
4942   enableval="$enable_libgcj_debug"
4943   if test "$enable_libgcj_debug" = yes; then
4944
4945 cat >>confdefs.h <<\_ACEOF
4946 #define DEBUG 1
4947 _ACEOF
4948
4949     LIBGCJDEBUG="enable"
4950   fi
4951 fi;
4952
4953
4954 # Check whether --with-escher or --without-escher was given.
4955 if test "${with_escher+set}" = set; then
4956   withval="$with_escher"
4957
4958 fi;
4959 case "$with_escher" in
4960 "")
4961         use_escher=false
4962         ;;
4963 "no")
4964         use_escher=false
4965         ;;
4966 "yes")
4967         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
4968 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
4969    { (exit 1); exit 1; }; }
4970         ;;
4971 *)
4972         use_escher=true
4973         ;;
4974 esac
4975
4976 # Determine which AWT peer libraries to build
4977 # Check whether --enable-java-awt or --disable-java-awt was given.
4978 if test "${enable_java_awt+set}" = set; then
4979   enableval="$enable_java_awt"
4980
4981 fi;
4982
4983 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4984 use_xlib_awt=""
4985 use_gtk_awt=""
4986 use_qt_awt=""
4987 use_x_awt=""
4988 # The default toolkit to use is the first one specified.
4989 TOOLKIT=
4990
4991
4992 for peer in $peerlibs ; do
4993   case $peer in
4994     xlib)
4995       if test "$no_x" = yes; then
4996         echo "*** xlib peers requested but no X library available" 1>&2
4997         exit 1
4998       else
4999         use_xlib_awt="yes"
5000         if test -z "$TOOLKIT"; then
5001            TOOLKIT=gnu.awt.xlib.XToolkit
5002         fi
5003       fi
5004       ;;
5005     gtk)
5006       if test "$no_x" = yes; then
5007          echo "*** gtk peers requested but no X library available" 1>&2
5008          exit 1
5009       else
5010          use_gtk_awt=yes
5011          if test -z "$TOOLKIT"; then
5012             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5013          fi
5014       fi
5015       ;;
5016     qt)
5017       if test "$no_x" = yes; then
5018          # Perhaps we should admit the possibility of embedded Qt.
5019          echo "*** Qt peers requested but no X library available" 1>&2
5020          exit 1
5021       else
5022          use_qt_awt=yes
5023          if test -z "$TOOLKIT"; then
5024             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5025          fi
5026       fi
5027       ;;
5028     x)
5029       use_x_awt=yes
5030       if test -z "$TOOLKIT"; then
5031          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5032       fi
5033       ;;
5034     no)
5035       use_xlib_awt=
5036       use_gtk_awt=
5037       use_qt_awt=
5038       use_x_awt=
5039       break
5040       ;;
5041     *)
5042       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5043       exit 1
5044   esac
5045 done
5046
5047
5048
5049 if test "$use_xlib_awt" = yes; then
5050   XLIB_AWT_TRUE=
5051   XLIB_AWT_FALSE='#'
5052 else
5053   XLIB_AWT_TRUE='#'
5054   XLIB_AWT_FALSE=
5055 fi
5056
5057
5058
5059 if test "$use_x_awt" = yes; then
5060   X_AWT_TRUE=
5061   X_AWT_FALSE='#'
5062 else
5063   X_AWT_TRUE='#'
5064   X_AWT_FALSE=
5065 fi
5066
5067
5068
5069 cat >>confdefs.h <<_ACEOF
5070 #define AWT_TOOLKIT "$TOOLKIT"
5071 _ACEOF
5072
5073
5074
5075 cat >>confdefs.h <<_ACEOF
5076 #define LIBGCJ_PREFIX "$prefix"
5077 _ACEOF
5078
5079
5080 # Create standard.omit based on decisions we just made.
5081 cp $srcdir/standard.omit.in standard.omit
5082 if test "$use_xlib_awt" != yes; then
5083    echo gnu/awt/xlib >> standard.omit
5084    echo gnu/gcj/xlib >> standard.omit
5085 fi
5086 if test "$use_x_awt" != yes; then
5087    echo gnu/java/awt/peer/x >> standard.omit
5088 fi
5089
5090 # Tools that need to be compiled against classpath's tools classes
5091 : > vm-tools-packages
5092 for package in gnu/gcj/tools/gc_analyze ; do
5093     echo $package >> standard.omit
5094     echo $package >> vm-tools-packages
5095 done
5096
5097 if test -z "${with_multisubdir}"; then
5098    builddotdot=.
5099 else
5100    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5101 fi
5102
5103 NATIVE=yes
5104
5105 # Which gcj and host gcj (for ecjx) do we use?
5106 which_gcj=default
5107 host_exeext=${ac_exeext}
5108 GCJ_FOR_ECJX=
5109 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5110 if test -n "${with_cross_host}"; then
5111   # We are being configured with a cross compiler. We can't
5112   # use ac_exeext, because that is for the target platform.
5113   NATIVE=no
5114   cross_host_exeext=
5115   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5116   case "${with_cross_host}" in
5117      *mingw* | *cygwin*)
5118          cross_host_exeext=.exe
5119      ;;
5120   esac
5121   host_exeext=${cross_host_exeext}
5122   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5123      if test x"$build_noncanonical" = x"$with_cross_host"; then
5124         # Ordinary cross (host!=target and host=build)
5125         which_gcj=built
5126      else
5127         # Canadian cross (host!=target and host!=build)
5128         which_gcj=cross
5129      fi
5130   else
5131      which_gcj=cross
5132   fi
5133 else
5134   # We are being configured with a native or crossed-native compiler
5135   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5136      if test x"$build" = x"$host"; then
5137         # True native build (host=target and host=build)
5138         which_gcj=built
5139      else
5140         # Crossed-native build (host=target and host!=build)
5141         which_gcj=cross
5142      fi
5143   else
5144      which_gcj=path
5145   fi
5146 fi
5147 case "${which_gcj}" in
5148    built)
5149       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5150       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5151    ;;
5152    cross)
5153       if test "x${with_newlib}" = "xyes"; then
5154          # FIXME (comment): Why is this needed?
5155          GCC_UNWIND_INCLUDE=
5156          GCJ="${target_noncanonical}-gcj"
5157       else
5158          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5159       fi
5160       GCJH='$(target_noncanonical)-gcjh'
5161    ;;
5162    path)
5163       GCJ="gcj -B`${PWDCMD-pwd}`/"
5164       GCJH=gcjh
5165    ;;
5166 esac
5167
5168
5169
5170
5171
5172 # Create it, so that compile/link tests don't fail
5173 test -f libgcj.spec || touch libgcj.spec
5174
5175
5176
5177 # Set up to configure Classpath.
5178 # FIXME: no supported way to pass args in autoconf.
5179 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5180 # Disable tool wrappers to avoid ltdl.h configure check.
5181 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5182 ac_configure_args="$ac_configure_args --disable-load-library"
5183 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5184 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5185 dir1=`cd $srcdir && pwd`
5186 dir2=`pwd`
5187 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5188 ac_configure_args="$ac_configure_args --disable-core-jni"
5189 ac_configure_args="$ac_configure_args --disable-examples"
5190 ac_configure_args="$ac_configure_args --with-glibj=build"
5191 if test "$plugin_enabled" != yes; then
5192   ac_configure_args="$ac_configure_args --disable-plugin"
5193 fi
5194 if test "$gconf_enabled" != yes; then
5195   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5196   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5197 fi
5198 if test "$use_gtk_awt" != yes; then
5199   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5200 fi
5201 if test "$use_qt_awt" != yes; then
5202   ac_configure_args="$ac_configure_args --disable-qt-peer"
5203 else
5204   # We need this as qt is disabled by default in classpath.
5205   ac_configure_args="$ac_configure_args --enable-qt-peer"
5206 fi
5207 if test "$use_x_awt" != yes; then
5208   ac_configure_args="$ac_configure_args --without-escher"
5209 else
5210   # We need this as escher is disabled by default in classpath.
5211   if test "$use_escher" != true; then
5212     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5213 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5214    { (exit 1); exit 1; }; }
5215   else
5216     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5217   fi
5218 fi
5219 # -Werror causes unavoidable problems in code using alsa.
5220 ac_configure_args="$ac_configure_args --disable-Werror"
5221
5222 # Only use libltdl for non-newlib builds.
5223 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5224      case $enable_ltdl_convenience in
5225   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5226 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5227    { (exit 1); exit 1; }; } ;;
5228   "") enable_ltdl_convenience=yes
5229       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5230   esac
5231   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5232   INCLTDL='-I${top_srcdir}/''libltdl'
5233
5234
5235    DIRLTDL=libltdl
5236
5237 cat >>confdefs.h <<\_ACEOF
5238 #define USE_LTDL 1
5239 _ACEOF
5240
5241    # Sigh.  Libtool's macro doesn't do the right thing.
5242    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5243    # FIXME: this is a hack.
5244    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5245    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5246 fi
5247
5248
5249
5250 # Check whether --enable-shared or --disable-shared was given.
5251 if test "${enable_shared+set}" = set; then
5252   enableval="$enable_shared"
5253   p=${PACKAGE-default}
5254 case $enableval in
5255 yes) enable_shared=yes ;;
5256 no) enable_shared=no ;;
5257 *)
5258   enable_shared=no
5259   # Look at the argument we got.  We use all the common list separators.
5260   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5261   for pkg in $enableval; do
5262     if test "X$pkg" = "X$p"; then
5263       enable_shared=yes
5264     fi
5265   done
5266   IFS="$ac_save_ifs"
5267   ;;
5268 esac
5269 else
5270   enable_shared=yes
5271 fi;
5272 # Check whether --enable-static or --disable-static was given.
5273 if test "${enable_static+set}" = set; then
5274   enableval="$enable_static"
5275   p=${PACKAGE-default}
5276 case $enableval in
5277 yes) enable_static=yes ;;
5278 no) enable_static=no ;;
5279 *)
5280   enable_static=no
5281   # Look at the argument we got.  We use all the common list separators.
5282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5283   for pkg in $enableval; do
5284     if test "X$pkg" = "X$p"; then
5285       enable_static=yes
5286     fi
5287   done
5288   IFS="$ac_save_ifs"
5289   ;;
5290 esac
5291 else
5292   enable_static=yes
5293 fi;
5294 # Check whether --enable-fast-install or --disable-fast-install was given.
5295 if test "${enable_fast_install+set}" = set; then
5296   enableval="$enable_fast_install"
5297   p=${PACKAGE-default}
5298 case $enableval in
5299 yes) enable_fast_install=yes ;;
5300 no) enable_fast_install=no ;;
5301 *)
5302   enable_fast_install=no
5303   # Look at the argument we got.  We use all the common list separators.
5304   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5305   for pkg in $enableval; do
5306     if test "X$pkg" = "X$p"; then
5307       enable_fast_install=yes
5308     fi
5309   done
5310   IFS="$ac_save_ifs"
5311   ;;
5312 esac
5313 else
5314   enable_fast_install=yes
5315 fi;
5316
5317 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5318 if test "${with_gnu_ld+set}" = set; then
5319   withval="$with_gnu_ld"
5320   test "$withval" = no || with_gnu_ld=yes
5321 else
5322   with_gnu_ld=no
5323 fi;
5324 ac_prog=ld
5325 if test "$GCC" = yes; then
5326   # Check if gcc -print-prog-name=ld gives a path.
5327   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5328 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5329   case $host in
5330   *-*-mingw*)
5331     # gcc leaves a trailing carriage return which upsets mingw
5332     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5333   *)
5334     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5335   esac
5336   case $ac_prog in
5337     # Accept absolute paths.
5338     [\\/]* | [A-Za-z]:[\\/]*)
5339       re_direlt='/[^/][^/]*/\.\./'
5340       # Canonicalize the path of ld
5341       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5342       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5343         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5344       done
5345       test -z "$LD" && LD="$ac_prog"
5346       ;;
5347   "")
5348     # If it fails, then pretend we aren't using GCC.
5349     ac_prog=ld
5350     ;;
5351   *)
5352     # If it is relative, then search for the first ld in PATH.
5353     with_gnu_ld=unknown
5354     ;;
5355   esac
5356 elif test "$with_gnu_ld" = yes; then
5357   echo "$as_me:$LINENO: checking for GNU ld" >&5
5358 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5359 else
5360   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5361 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5362 fi
5363 if test "${lt_cv_path_LD+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   if test -z "$LD"; then
5367   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5368   for ac_dir in $PATH; do
5369     test -z "$ac_dir" && ac_dir=.
5370     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5371       lt_cv_path_LD="$ac_dir/$ac_prog"
5372       # Check to see if the program is GNU ld.  I'd rather use --version,
5373       # but apparently some GNU ld's only accept -v.
5374       # Break only if it was the GNU/non-GNU ld that we prefer.
5375       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5376         test "$with_gnu_ld" != no && break
5377       else
5378         test "$with_gnu_ld" != yes && break
5379       fi
5380     fi
5381   done
5382   IFS="$ac_save_ifs"
5383 else
5384   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5385 fi
5386 fi
5387
5388 LD="$lt_cv_path_LD"
5389 if test -n "$LD"; then
5390   echo "$as_me:$LINENO: result: $LD" >&5
5391 echo "${ECHO_T}$LD" >&6
5392 else
5393   echo "$as_me:$LINENO: result: no" >&5
5394 echo "${ECHO_T}no" >&6
5395 fi
5396 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5397 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5398    { (exit 1); exit 1; }; }
5399 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5400 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5401 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5405 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5406   lt_cv_prog_gnu_ld=yes
5407 else
5408   lt_cv_prog_gnu_ld=no
5409 fi
5410 fi
5411 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5412 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5413 with_gnu_ld=$lt_cv_prog_gnu_ld
5414
5415
5416 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5417 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5418 if test "${lt_cv_ld_reload_flag+set}" = set; then
5419   echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421   lt_cv_ld_reload_flag='-r'
5422 fi
5423 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5424 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5425 reload_flag=$lt_cv_ld_reload_flag
5426 test -n "$reload_flag" && reload_flag=" $reload_flag"
5427
5428 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5429 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5430 if test "${lt_cv_path_NM+set}" = set; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   if test -n "$NM"; then
5434   # Let the user override the test.
5435   lt_cv_path_NM="$NM"
5436 else
5437   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5438   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5439     test -z "$ac_dir" && ac_dir=.
5440     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5441     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5442       # Check to see if the nm accepts a BSD-compat flag.
5443       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5444       #   nm: unknown option "B" ignored
5445       # Tru64's nm complains that /dev/null is an invalid object file
5446       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5447         lt_cv_path_NM="$tmp_nm -B"
5448         break
5449       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5450         lt_cv_path_NM="$tmp_nm -p"
5451         break
5452       else
5453         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5454         continue # so that we can try to find one that supports BSD flags
5455       fi
5456     fi
5457   done
5458   IFS="$ac_save_ifs"
5459   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5460 fi
5461 fi
5462
5463 NM="$lt_cv_path_NM"
5464 echo "$as_me:$LINENO: result: $NM" >&5
5465 echo "${ECHO_T}$NM" >&6
5466
5467 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5468 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5469 if test "${lt_cv_deplibs_check_method+set}" = set; then
5470   echo $ECHO_N "(cached) $ECHO_C" >&6
5471 else
5472   lt_cv_file_magic_cmd='$MAGIC_CMD'
5473 lt_cv_file_magic_test_file=
5474 lt_cv_deplibs_check_method='unknown'
5475 # Need to set the preceding variable on all platforms that support
5476 # interlibrary dependencies.
5477 # 'none' -- dependencies not supported.
5478 # `unknown' -- same as none, but documents that we really don't know.
5479 # 'pass_all' -- all dependencies passed with no checks.
5480 # 'test_compile' -- check by making test program.
5481 # 'file_magic [regex]' -- check by looking for files in library path
5482 # which responds to the $file_magic_cmd with a given egrep regex.
5483 # If you have `file' or equivalent on your system and you're not sure
5484 # whether `pass_all' will *always* work, you probably want this one.
5485
5486 case $host_os in
5487 aix*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 beos*)
5492   lt_cv_deplibs_check_method=pass_all
5493   ;;
5494
5495 bsdi4*)
5496   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5497   lt_cv_file_magic_cmd='/usr/bin/file -L'
5498   lt_cv_file_magic_test_file=/shlib/libc.so
5499   ;;
5500
5501 cygwin* | mingw* |pw32*)
5502   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5503   lt_cv_file_magic_cmd='$OBJDUMP -f'
5504   ;;
5505
5506 darwin* | rhapsody*)
5507   # this will be overwritten by pass_all, but leave it in just in case
5508   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5509   lt_cv_file_magic_cmd='/usr/bin/file -L'
5510   case "$host_os" in
5511   rhapsody* | darwin1.012)
5512     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5513     ;;
5514   *) # Darwin 1.3 on
5515     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5516     ;;
5517   esac
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 freebsd* | kfreebsd*-gnu)
5522   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5523     case $host_cpu in
5524     i*86 )
5525       # Not sure whether the presence of OpenBSD here was a mistake.
5526       # Let's accept both of them until this is cleared up.
5527       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5528       lt_cv_file_magic_cmd=/usr/bin/file
5529       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530       ;;
5531     esac
5532   else
5533     lt_cv_deplibs_check_method=pass_all
5534   fi
5535   ;;
5536
5537 gnu*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 hpux10.20*|hpux11*)
5542   case $host_cpu in
5543   hppa*)
5544     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5545     lt_cv_file_magic_cmd=/usr/bin/file
5546     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5547     ;;
5548   ia64*)
5549     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5550     lt_cv_file_magic_cmd=/usr/bin/file
5551     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5552     ;;
5553   esac
5554   ;;
5555
5556 irix5* | irix6*)
5557   case $host_os in
5558   irix5*)
5559     # this will be overridden with pass_all, but let us keep it just in case
5560     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5561     ;;
5562   *)
5563     case $LD in
5564     *-32|*"-32 ") libmagic=32-bit;;
5565     *-n32|*"-n32 ") libmagic=N32;;
5566     *-64|*"-64 ") libmagic=64-bit;;
5567     *) libmagic=never-match;;
5568     esac
5569     # this will be overridden with pass_all, but let us keep it just in case
5570     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5571     ;;
5572   esac
5573   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5574   lt_cv_deplibs_check_method=pass_all
5575   ;;
5576
5577 # This must be Linux ELF.
5578 linux-gnu*)
5579   lt_cv_deplibs_check_method=pass_all
5580   ;;
5581
5582 netbsd* | knetbsd*-gnu)
5583   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5584     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5585   else
5586     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5587   fi
5588   ;;
5589
5590 newsos6)
5591   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5592   lt_cv_file_magic_cmd=/usr/bin/file
5593   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5594   ;;
5595
5596 osf3* | osf4* | osf5*)
5597   # this will be overridden with pass_all, but let us keep it just in case
5598   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5599   lt_cv_file_magic_test_file=/shlib/libc.so
5600   lt_cv_deplibs_check_method=pass_all
5601   ;;
5602
5603 sco3.2v5*)
5604   lt_cv_deplibs_check_method=pass_all
5605   ;;
5606
5607 solaris*)
5608   lt_cv_deplibs_check_method=pass_all
5609   lt_cv_file_magic_test_file=/lib/libc.so
5610   ;;
5611
5612 sysv5uw[78]* | sysv4*uw2*)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615
5616 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5617   case $host_vendor in
5618   ncr)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   motorola)
5622     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]'
5623     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5624     ;;
5625   esac
5626   ;;
5627 esac
5628
5629 fi
5630 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5631 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5632 file_magic_cmd=$lt_cv_file_magic_cmd
5633 deplibs_check_method=$lt_cv_deplibs_check_method
5634
5635
5636
5637
5638 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5639
5640 # find the maximum length of command line arguments
5641 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5642 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5643 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5644   echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646     i=0
5647   teststring="ABCD"
5648
5649   case $build_os in
5650   msdosdjgpp*)
5651     # On DJGPP, this test can blow up pretty badly due to problems in libc
5652     # (any single argument exceeding 2000 bytes causes a buffer overrun
5653     # during glob expansion).  Even if it were fixed, the result of this
5654     # check would be larger than it should be.
5655     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5656     ;;
5657
5658   cygwin* | mingw*)
5659     # On Win9x/ME, this test blows up -- it succeeds, but takes
5660     # about 5 minutes as the teststring grows exponentially.
5661     # Worse, since 9x/ME are not pre-emptively multitasking,
5662     # you end up with a "frozen" computer, even though with patience
5663     # the test eventually succeeds (with a max line length of 256k).
5664     # Instead, let's just punt: use the minimum linelength reported by
5665     # all of the supported platforms: 8192 (on NT/2K/XP).
5666     lt_cv_sys_max_cmd_len=8192;
5667     ;;
5668
5669   amigaos*)
5670     # On AmigaOS with pdksh, this test takes hours, literally.
5671     # So we just punt and use a minimum line length of 8192.
5672     lt_cv_sys_max_cmd_len=8192;
5673     ;;
5674
5675   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5676     # This has been around since 386BSD, at least.  Likely further.
5677     if test -x /sbin/sysctl; then
5678       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5679     elif test -x /usr/sbin/sysctl; then
5680       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5681     else
5682       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5683     fi
5684     # And add a safety zone
5685     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5686     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5687     ;;
5688   esac
5689
5690 fi
5691
5692 if test -n "$lt_cv_sys_max_cmd_len" ; then
5693   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5694 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5695 else
5696   echo "$as_me:$LINENO: result: none" >&5
5697 echo "${ECHO_T}none" >&6
5698 fi
5699
5700
5701 # Only perform the check for file, if the check method requires it
5702 case $deplibs_check_method in
5703 file_magic*)
5704   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5705     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5706 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5707 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5708   echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710   case $MAGIC_CMD in
5711   /*)
5712   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5713   ;;
5714   ?:/*)
5715   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5716   ;;
5717   *)
5718   ac_save_MAGIC_CMD="$MAGIC_CMD"
5719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5720   ac_dummy="/usr/bin:$PATH"
5721   for ac_dir in $ac_dummy; do
5722     test -z "$ac_dir" && ac_dir=.
5723     if test -f $ac_dir/${ac_tool_prefix}file; then
5724       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5725       if test -n "$file_magic_test_file"; then
5726         case $deplibs_check_method in
5727         "file_magic "*)
5728           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5729           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5730           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5731             egrep "$file_magic_regex" > /dev/null; then
5732             :
5733           else
5734             cat <<EOF 1>&2
5735
5736 *** Warning: the command libtool uses to detect shared libraries,
5737 *** $file_magic_cmd, produces output that libtool cannot recognize.
5738 *** The result is that libtool may fail to recognize shared libraries
5739 *** as such.  This will affect the creation of libtool libraries that
5740 *** depend on shared libraries, but programs linked with such libtool
5741 *** libraries will work regardless of this problem.  Nevertheless, you
5742 *** may want to report the problem to your system manager and/or to
5743 *** bug-libtool@gnu.org
5744
5745 EOF
5746           fi ;;
5747         esac
5748       fi
5749       break
5750     fi
5751   done
5752   IFS="$ac_save_ifs"
5753   MAGIC_CMD="$ac_save_MAGIC_CMD"
5754   ;;
5755 esac
5756 fi
5757
5758 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5759 if test -n "$MAGIC_CMD"; then
5760   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5761 echo "${ECHO_T}$MAGIC_CMD" >&6
5762 else
5763   echo "$as_me:$LINENO: result: no" >&5
5764 echo "${ECHO_T}no" >&6
5765 fi
5766
5767 if test -z "$lt_cv_path_MAGIC_CMD"; then
5768   if test -n "$ac_tool_prefix"; then
5769     echo "$as_me:$LINENO: checking for file" >&5
5770 echo $ECHO_N "checking for file... $ECHO_C" >&6
5771 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   case $MAGIC_CMD in
5775   /*)
5776   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5777   ;;
5778   ?:/*)
5779   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5780   ;;
5781   *)
5782   ac_save_MAGIC_CMD="$MAGIC_CMD"
5783   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5784   ac_dummy="/usr/bin:$PATH"
5785   for ac_dir in $ac_dummy; do
5786     test -z "$ac_dir" && ac_dir=.
5787     if test -f $ac_dir/file; then
5788       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5789       if test -n "$file_magic_test_file"; then
5790         case $deplibs_check_method in
5791         "file_magic "*)
5792           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5793           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5794           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5795             egrep "$file_magic_regex" > /dev/null; then
5796             :
5797           else
5798             cat <<EOF 1>&2
5799
5800 *** Warning: the command libtool uses to detect shared libraries,
5801 *** $file_magic_cmd, produces output that libtool cannot recognize.
5802 *** The result is that libtool may fail to recognize shared libraries
5803 *** as such.  This will affect the creation of libtool libraries that
5804 *** depend on shared libraries, but programs linked with such libtool
5805 *** libraries will work regardless of this problem.  Nevertheless, you
5806 *** may want to report the problem to your system manager and/or to
5807 *** bug-libtool@gnu.org
5808
5809 EOF
5810           fi ;;
5811         esac
5812       fi
5813       break
5814     fi
5815   done
5816   IFS="$ac_save_ifs"
5817   MAGIC_CMD="$ac_save_MAGIC_CMD"
5818   ;;
5819 esac
5820 fi
5821
5822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5823 if test -n "$MAGIC_CMD"; then
5824   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5825 echo "${ECHO_T}$MAGIC_CMD" >&6
5826 else
5827   echo "$as_me:$LINENO: result: no" >&5
5828 echo "${ECHO_T}no" >&6
5829 fi
5830
5831   else
5832     MAGIC_CMD=:
5833   fi
5834 fi
5835
5836   fi
5837   ;;
5838 esac
5839
5840 if test -n "$ac_tool_prefix"; then
5841   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5842 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5843 echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5845 if test "${ac_cv_prog_RANLIB+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   if test -n "$RANLIB"; then
5849   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5850 else
5851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5852 for as_dir in $PATH
5853 do
5854   IFS=$as_save_IFS
5855   test -z "$as_dir" && as_dir=.
5856   for ac_exec_ext in '' $ac_executable_extensions; do
5857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5858     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860     break 2
5861   fi
5862 done
5863 done
5864
5865 fi
5866 fi
5867 RANLIB=$ac_cv_prog_RANLIB
5868 if test -n "$RANLIB"; then
5869   echo "$as_me:$LINENO: result: $RANLIB" >&5
5870 echo "${ECHO_T}$RANLIB" >&6
5871 else
5872   echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6
5874 fi
5875
5876 fi
5877 if test -z "$ac_cv_prog_RANLIB"; then
5878   ac_ct_RANLIB=$RANLIB
5879   # Extract the first word of "ranlib", so it can be a program name with args.
5880 set dummy ranlib; ac_word=$2
5881 echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5883 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   if test -n "$ac_ct_RANLIB"; then
5887   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5888 else
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH
5891 do
5892   IFS=$as_save_IFS
5893   test -z "$as_dir" && as_dir=.
5894   for ac_exec_ext in '' $ac_executable_extensions; do
5895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5896     ac_cv_prog_ac_ct_RANLIB="ranlib"
5897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898     break 2
5899   fi
5900 done
5901 done
5902
5903   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5904 fi
5905 fi
5906 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5907 if test -n "$ac_ct_RANLIB"; then
5908   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5909 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5910 else
5911   echo "$as_me:$LINENO: result: no" >&5
5912 echo "${ECHO_T}no" >&6
5913 fi
5914
5915   RANLIB=$ac_ct_RANLIB
5916 else
5917   RANLIB="$ac_cv_prog_RANLIB"
5918 fi
5919
5920 if test -n "$ac_tool_prefix"; then
5921   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}strip; ac_word=$2
5923 echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5925 if test "${ac_cv_prog_STRIP+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$STRIP"; then
5929   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944
5945 fi
5946 fi
5947 STRIP=$ac_cv_prog_STRIP
5948 if test -n "$STRIP"; then
5949   echo "$as_me:$LINENO: result: $STRIP" >&5
5950 echo "${ECHO_T}$STRIP" >&6
5951 else
5952   echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5954 fi
5955
5956 fi
5957 if test -z "$ac_cv_prog_STRIP"; then
5958   ac_ct_STRIP=$STRIP
5959   # Extract the first word of "strip", so it can be a program name with args.
5960 set dummy strip; ac_word=$2
5961 echo "$as_me:$LINENO: checking for $ac_word" >&5
5962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   if test -n "$ac_ct_STRIP"; then
5967   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5968 else
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970 for as_dir in $PATH
5971 do
5972   IFS=$as_save_IFS
5973   test -z "$as_dir" && as_dir=.
5974   for ac_exec_ext in '' $ac_executable_extensions; do
5975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976     ac_cv_prog_ac_ct_STRIP="strip"
5977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978     break 2
5979   fi
5980 done
5981 done
5982
5983   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5984 fi
5985 fi
5986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5987 if test -n "$ac_ct_STRIP"; then
5988   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5989 echo "${ECHO_T}$ac_ct_STRIP" >&6
5990 else
5991   echo "$as_me:$LINENO: result: no" >&5
5992 echo "${ECHO_T}no" >&6
5993 fi
5994
5995   STRIP=$ac_ct_STRIP
5996 else
5997   STRIP="$ac_cv_prog_STRIP"
5998 fi
5999
6000
6001 # Check for any special flags to pass to ltconfig.
6002 libtool_flags="--cache-file=$cache_file"
6003 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
6004 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
6005 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6006 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
6007 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6008
6009
6010 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6011 if test "${enable_libtool_lock+set}" = set; then
6012   enableval="$enable_libtool_lock"
6013
6014 fi;
6015 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6016 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6017
6018
6019 # Check whether --with-pic or --without-pic was given.
6020 if test "${with_pic+set}" = set; then
6021   withval="$with_pic"
6022   pic_mode="$withval"
6023 else
6024   pic_mode=default
6025 fi;
6026 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6027 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6028
6029 # Some flags need to be propagated to the compiler or linker for good
6030 # libtool support.
6031 case $host in
6032 *-*-irix6*)
6033   # Find out which ABI we are using.
6034   echo '#line 6034 "configure"' > conftest.$ac_ext
6035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036   (eval $ac_compile) 2>&5
6037   ac_status=$?
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); }; then
6040    if test "$lt_cv_prog_gnu_ld" = yes; then
6041     case `/usr/bin/file conftest.$ac_objext` in
6042     *32-bit*)
6043       LD="${LD-ld} -melf32bsmip"
6044       ;;
6045     *N32*)
6046       LD="${LD-ld} -melf32bmipn32"
6047       ;;
6048     *64-bit*)
6049       LD="${LD-ld} -melf64bmip"
6050       ;;
6051     esac
6052    else
6053     case `/usr/bin/file conftest.$ac_objext` in
6054     *32-bit*)
6055       LD="${LD-ld} -32"
6056       ;;
6057     *N32*)
6058       LD="${LD-ld} -n32"
6059       ;;
6060     *64-bit*)
6061       LD="${LD-ld} -64"
6062       ;;
6063     esac
6064    fi
6065   fi
6066   rm -rf conftest*
6067   ;;
6068
6069 ia64-*-hpux*)
6070   # Find out which ABI we are using.
6071   echo 'int i;' > conftest.$ac_ext
6072   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6073   (eval $ac_compile) 2>&5
6074   ac_status=$?
6075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076   (exit $ac_status); }; then
6077     case "`/usr/bin/file conftest.o`" in
6078     *ELF-32*)
6079       HPUX_IA64_MODE="32"
6080       ;;
6081     *ELF-64*)
6082       HPUX_IA64_MODE="64"
6083       ;;
6084     esac
6085   fi
6086   rm -rf conftest*
6087   ;;
6088
6089 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6090   # Find out which ABI we are using.
6091   echo 'int i;' > conftest.$ac_ext
6092   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093   (eval $ac_compile) 2>&5
6094   ac_status=$?
6095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096   (exit $ac_status); }; then
6097     case "`/usr/bin/file conftest.o`" in
6098     *32-bit*)
6099       case $host in
6100         x86_64-*linux*)
6101           LD="${LD-ld} -m elf_i386"
6102           ;;
6103         ppc64-*linux*|powerpc64-*linux*)
6104           LD="${LD-ld} -m elf32ppclinux"
6105           ;;
6106         s390x-*linux*)
6107           LD="${LD-ld} -m elf_s390"
6108           ;;
6109         sparc64-*linux*)
6110           LD="${LD-ld} -m elf32_sparc"
6111           ;;
6112       esac
6113       ;;
6114     *64-bit*)
6115       case $host in
6116         x86_64-*linux*)
6117           LD="${LD-ld} -m elf_x86_64"
6118           ;;
6119         ppc*-*linux*|powerpc*-*linux*)
6120           LD="${LD-ld} -m elf64ppc"
6121           ;;
6122         s390*-*linux*)
6123           LD="${LD-ld} -m elf64_s390"
6124           ;;
6125         sparc*-*linux*)
6126           LD="${LD-ld} -m elf64_sparc"
6127           ;;
6128       esac
6129       ;;
6130     esac
6131   fi
6132   rm -rf conftest*
6133   ;;
6134
6135 *-*-sco3.2v5*)
6136   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6137   SAVE_CFLAGS="$CFLAGS"
6138   CFLAGS="$CFLAGS -belf"
6139   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6140 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6141 if test "${lt_cv_cc_needs_belf+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144
6145
6146      ac_ext=c
6147 ac_cpp='$CPP $CPPFLAGS'
6148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151
6152      if test x$gcc_no_link = xyes; then
6153   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6155    { (exit 1); exit 1; }; }
6156 fi
6157 cat >conftest.$ac_ext <<_ACEOF
6158 /* confdefs.h.  */
6159 _ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h.  */
6163
6164 int
6165 main ()
6166 {
6167
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174   (eval $ac_link) 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } &&
6181          { ac_try='test -z "$ac_c_werror_flag"
6182                          || test ! -s conftest.err'
6183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184   (eval $ac_try) 2>&5
6185   ac_status=$?
6186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); }; } &&
6188          { ac_try='test -s conftest$ac_exeext'
6189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190   (eval $ac_try) 2>&5
6191   ac_status=$?
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); }; }; then
6194   lt_cv_cc_needs_belf=yes
6195 else
6196   echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6198
6199 lt_cv_cc_needs_belf=no
6200 fi
6201 rm -f conftest.err conftest.$ac_objext \
6202       conftest$ac_exeext conftest.$ac_ext
6203      ac_ext=c
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
6209 fi
6210 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6211 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6212   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6213     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6214     CFLAGS="$SAVE_CFLAGS"
6215   fi
6216   ;;
6217
6218
6219 esac
6220
6221
6222 # Save cache, so that ltconfig can load it
6223 cat >confcache <<\_ACEOF
6224 # This file is a shell script that caches the results of configure
6225 # tests run on this system so they can be shared between configure
6226 # scripts and configure runs, see configure's option --config-cache.
6227 # It is not useful on other systems.  If it contains results you don't
6228 # want to keep, you may remove or edit it.
6229 #
6230 # config.status only pays attention to the cache file if you give it
6231 # the --recheck option to rerun configure.
6232 #
6233 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6234 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6235 # following values.
6236
6237 _ACEOF
6238
6239 # The following way of writing the cache mishandles newlines in values,
6240 # but we know of no workaround that is simple, portable, and efficient.
6241 # So, don't put newlines in cache variables' values.
6242 # Ultrix sh set writes to stderr and can't be redirected directly,
6243 # and sets the high bit in the cache file unless we assign to the vars.
6244 {
6245   (set) 2>&1 |
6246     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6247     *ac_space=\ *)
6248       # `set' does not quote correctly, so add quotes (double-quote
6249       # substitution turns \\\\ into \\, and sed turns \\ into \).
6250       sed -n \
6251         "s/'/'\\\\''/g;
6252           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6253       ;;
6254     *)
6255       # `set' quotes correctly as required by POSIX, so do not add quotes.
6256       sed -n \
6257         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6258       ;;
6259     esac;
6260 } |
6261   sed '
6262      t clear
6263      : clear
6264      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6265      t end
6266      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6267      : end' >>confcache
6268 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6269   if test -w $cache_file; then
6270     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6271     cat confcache >$cache_file
6272   else
6273     echo "not updating unwritable cache $cache_file"
6274   fi
6275 fi
6276 rm -f confcache
6277
6278 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6279 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6280 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6281 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6282 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6283 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6284 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6285 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6286 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6287 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6288 echo "$as_me: error: libtool configure failed" >&2;}
6289    { (exit 1); exit 1; }; }
6290
6291 # Reload cache, that may have been modified by ltconfig
6292 if test -r "$cache_file"; then
6293   # Some versions of bash will fail to source /dev/null (special
6294   # files actually), so we avoid doing that.
6295   if test -f "$cache_file"; then
6296     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6297 echo "$as_me: loading cache $cache_file" >&6;}
6298     case $cache_file in
6299       [\\/]* | ?:[\\/]* ) . $cache_file;;
6300       *)                      . ./$cache_file;;
6301     esac
6302   fi
6303 else
6304   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6305 echo "$as_me: creating cache $cache_file" >&6;}
6306   >$cache_file
6307 fi
6308
6309
6310 # This can be used to rebuild libtool when needed
6311 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6312
6313 # Always use our own libtool.
6314 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6315
6316 # Redirect the config.log output again, so that the ltconfig log is not
6317 # clobbered by the next message.
6318 exec 5>>./config.log
6319
6320 ac_ext=cc
6321 ac_cpp='$CXXCPP $CPPFLAGS'
6322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6325 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6326 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6327 if test -z "$CXXCPP"; then
6328   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 else
6331       # Double quotes because CXXCPP needs to be expanded
6332     for CXXCPP in "$CXX -E" "/lib/cpp"
6333     do
6334       ac_preproc_ok=false
6335 for ac_cxx_preproc_warn_flag in '' yes
6336 do
6337   # Use a header file that comes with gcc, so configuring glibc
6338   # with a fresh cross-compiler works.
6339   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6340   # <limits.h> exists even on freestanding compilers.
6341   # On the NeXT, cc -E runs the code through the compiler's parser,
6342   # not just through cpp. "Syntax error" is here to catch this case.
6343   cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h.  */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h.  */
6349 #ifdef __STDC__
6350 # include <limits.h>
6351 #else
6352 # include <assert.h>
6353 #endif
6354                      Syntax error
6355 _ACEOF
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6358   ac_status=$?
6359   grep -v '^ *+' conftest.er1 >conftest.err
6360   rm -f conftest.er1
6361   cat conftest.err >&5
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } >/dev/null; then
6364   if test -s conftest.err; then
6365     ac_cpp_err=$ac_cxx_preproc_warn_flag
6366     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6367   else
6368     ac_cpp_err=
6369   fi
6370 else
6371   ac_cpp_err=yes
6372 fi
6373 if test -z "$ac_cpp_err"; then
6374   :
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379   # Broken: fails on valid input.
6380 continue
6381 fi
6382 rm -f conftest.err conftest.$ac_ext
6383
6384   # OK, works on sane cases.  Now check whether non-existent headers
6385   # can be detected and how.
6386   cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392 #include <ac_nonexistent.h>
6393 _ACEOF
6394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6396   ac_status=$?
6397   grep -v '^ *+' conftest.er1 >conftest.err
6398   rm -f conftest.er1
6399   cat conftest.err >&5
6400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401   (exit $ac_status); } >/dev/null; then
6402   if test -s conftest.err; then
6403     ac_cpp_err=$ac_cxx_preproc_warn_flag
6404     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6405   else
6406     ac_cpp_err=
6407   fi
6408 else
6409   ac_cpp_err=yes
6410 fi
6411 if test -z "$ac_cpp_err"; then
6412   # Broken: success on invalid input.
6413 continue
6414 else
6415   echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6417
6418   # Passes both tests.
6419 ac_preproc_ok=:
6420 break
6421 fi
6422 rm -f conftest.err conftest.$ac_ext
6423
6424 done
6425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6426 rm -f conftest.err conftest.$ac_ext
6427 if $ac_preproc_ok; then
6428   break
6429 fi
6430
6431     done
6432     ac_cv_prog_CXXCPP=$CXXCPP
6433
6434 fi
6435   CXXCPP=$ac_cv_prog_CXXCPP
6436 else
6437   ac_cv_prog_CXXCPP=$CXXCPP
6438 fi
6439 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6440 echo "${ECHO_T}$CXXCPP" >&6
6441 ac_preproc_ok=false
6442 for ac_cxx_preproc_warn_flag in '' yes
6443 do
6444   # Use a header file that comes with gcc, so configuring glibc
6445   # with a fresh cross-compiler works.
6446   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6447   # <limits.h> exists even on freestanding compilers.
6448   # On the NeXT, cc -E runs the code through the compiler's parser,
6449   # not just through cpp. "Syntax error" is here to catch this case.
6450   cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456 #ifdef __STDC__
6457 # include <limits.h>
6458 #else
6459 # include <assert.h>
6460 #endif
6461                      Syntax error
6462 _ACEOF
6463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465   ac_status=$?
6466   grep -v '^ *+' conftest.er1 >conftest.err
6467   rm -f conftest.er1
6468   cat conftest.err >&5
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); } >/dev/null; then
6471   if test -s conftest.err; then
6472     ac_cpp_err=$ac_cxx_preproc_warn_flag
6473     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6474   else
6475     ac_cpp_err=
6476   fi
6477 else
6478   ac_cpp_err=yes
6479 fi
6480 if test -z "$ac_cpp_err"; then
6481   :
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486   # Broken: fails on valid input.
6487 continue
6488 fi
6489 rm -f conftest.err conftest.$ac_ext
6490
6491   # OK, works on sane cases.  Now check whether non-existent headers
6492   # can be detected and how.
6493   cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <ac_nonexistent.h>
6500 _ACEOF
6501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6503   ac_status=$?
6504   grep -v '^ *+' conftest.er1 >conftest.err
6505   rm -f conftest.er1
6506   cat conftest.err >&5
6507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508   (exit $ac_status); } >/dev/null; then
6509   if test -s conftest.err; then
6510     ac_cpp_err=$ac_cxx_preproc_warn_flag
6511     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6512   else
6513     ac_cpp_err=
6514   fi
6515 else
6516   ac_cpp_err=yes
6517 fi
6518 if test -z "$ac_cpp_err"; then
6519   # Broken: success on invalid input.
6520 continue
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525   # Passes both tests.
6526 ac_preproc_ok=:
6527 break
6528 fi
6529 rm -f conftest.err conftest.$ac_ext
6530
6531 done
6532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6533 rm -f conftest.err conftest.$ac_ext
6534 if $ac_preproc_ok; then
6535   :
6536 else
6537   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6538 See \`config.log' for more details." >&5
6539 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6540 See \`config.log' for more details." >&2;}
6541    { (exit 1); exit 1; }; }
6542 fi
6543
6544 ac_ext=c
6545 ac_cpp='$CPP $CPPFLAGS'
6546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549
6550
6551
6552 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6553 lt_save_CC="$CC"
6554 lt_save_CFLAGS="$CFLAGS"
6555 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6556 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6557 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6558 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6559 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6560 deplibs_check_method="$deplibs_check_method" \
6561 file_magic_cmd="$file_magic_cmd" \
6562 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6563 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6564 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6565 echo "$as_me: error: libtool tag configuration failed" >&2;}
6566    { (exit 1); exit 1; }; }
6567 CC="$lt_save_CC"
6568 CFLAGS="$lt_save_CFLAGS"
6569
6570 # Redirect the config.log output again, so that the ltconfig log is not
6571 # clobbered by the next message.
6572 exec 5>>./config.log
6573
6574
6575
6576
6577
6578
6579
6580 for ac_prog in gcj
6581 do
6582   # Extract the first word of "$ac_prog", so it can be a program name with args.
6583 set dummy $ac_prog; ac_word=$2
6584 echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586 if test "${ac_cv_prog_GCJ+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   if test -n "$GCJ"; then
6590   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595   IFS=$as_save_IFS
6596   test -z "$as_dir" && as_dir=.
6597   for ac_exec_ext in '' $ac_executable_extensions; do
6598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599     ac_cv_prog_GCJ="$ac_prog"
6600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601     break 2
6602   fi
6603 done
6604 done
6605
6606 fi
6607 fi
6608 GCJ=$ac_cv_prog_GCJ
6609 if test -n "$GCJ"; then
6610   echo "$as_me:$LINENO: result: $GCJ" >&5
6611 echo "${ECHO_T}$GCJ" >&6
6612 else
6613   echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6615 fi
6616
6617   test -n "$GCJ" && break
6618 done
6619 test -n "$GCJ" || GCJ="gcj"
6620
6621 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6622 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6623    { (exit 1); exit 1; }; }
6624 if test "x${GCJFLAGS-unset}" = xunset; then
6625    GCJFLAGS="-g -O2"
6626 fi
6627
6628
6629 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6630
6631 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6632 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6633 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6634   echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6637   # We make a subdir and do the tests there.  Otherwise we can end up
6638   # making bogus files that we don't know about and never remove.  For
6639   # instance it was reported that on HP-UX the gcc test will end up
6640   # making a dummy file named `D' -- because `-MD' means `put the output
6641   # in D'.
6642   mkdir conftest.dir
6643   # Copy depcomp to subdir because otherwise we won't find it if we're
6644   # using a relative directory.
6645   cp "$am_depcomp" conftest.dir
6646   cd conftest.dir
6647   # We will build objects and dependencies in a subdirectory because
6648   # it helps to detect inapplicable dependency modes.  For instance
6649   # both Tru64's cc and ICC support -MD to output dependencies as a
6650   # side effect of compilation, but ICC will put the dependencies in
6651   # the current directory while Tru64 will put them in the object
6652   # directory.
6653   mkdir sub
6654
6655   am_cv_GCJ_dependencies_compiler_type=none
6656   if test "$am_compiler_list" = ""; then
6657      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6658   fi
6659   for depmode in $am_compiler_list; do
6660     # Setup a source with many dependencies, because some compilers
6661     # like to wrap large dependency lists on column 80 (with \), and
6662     # we should not choose a depcomp mode which is confused by this.
6663     #
6664     # We need to recreate these files for each test, as the compiler may
6665     # overwrite some of them when testing with obscure command lines.
6666     # This happens at least with the AIX C compiler.
6667     : > sub/conftest.c
6668     for i in 1 2 3 4 5 6; do
6669       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6670       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6671       # Solaris 8's {/usr,}/bin/sh.
6672       touch sub/conftst$i.h
6673     done
6674     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6675
6676     case $depmode in
6677     nosideeffect)
6678       # after this tag, mechanisms are not by side-effect, so they'll
6679       # only be used when explicitly requested
6680       if test "x$enable_dependency_tracking" = xyes; then
6681         continue
6682       else
6683         break
6684       fi
6685       ;;
6686     none) break ;;
6687     esac
6688     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6689     # mode.  It turns out that the SunPro C++ compiler does not properly
6690     # handle `-M -o', and we need to detect this.
6691     if depmode=$depmode \
6692        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6693        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6694        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6695          >/dev/null 2>conftest.err &&
6696        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6697        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6698        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6699       # icc doesn't choke on unknown options, it will just issue warnings
6700       # or remarks (even with -Werror).  So we grep stderr for any message
6701       # that says an option was ignored or not supported.
6702       # When given -MP, icc 7.0 and 7.1 complain thusly:
6703       #   icc: Command line warning: ignoring option '-M'; no argument required
6704       # The diagnosis changed in icc 8.0:
6705       #   icc: Command line remark: option '-MP' not supported
6706       if (grep 'ignoring option' conftest.err ||
6707           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6708         am_cv_GCJ_dependencies_compiler_type=$depmode
6709         break
6710       fi
6711     fi
6712   done
6713
6714   cd ..
6715   rm -rf conftest.dir
6716 else
6717   am_cv_GCJ_dependencies_compiler_type=none
6718 fi
6719
6720 fi
6721 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6722 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6723 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6724
6725
6726
6727 if
6728   test "x$enable_dependency_tracking" != xno \
6729   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6730   am__fastdepGCJ_TRUE=
6731   am__fastdepGCJ_FALSE='#'
6732 else
6733   am__fastdepGCJ_TRUE='#'
6734   am__fastdepGCJ_FALSE=
6735 fi
6736
6737
6738
6739
6740 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6741 lt_save_CC="$CC"
6742 lt_save_CFLAGS="$CFLAGS"
6743 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6744 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6745 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6746 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6747 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6748 deplibs_check_method="$deplibs_check_method" \
6749 file_magic_cmd="$file_magic_cmd" \
6750 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6751 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6752 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6753 echo "$as_me: error: libtool tag configuration failed" >&2;}
6754    { (exit 1); exit 1; }; }
6755 CC="$lt_save_CC"
6756 CFLAGS="$lt_save_CFLAGS"
6757
6758 # Redirect the config.log output again, so that the ltconfig log is not
6759 # clobbered by the next message.
6760 exec 5>>./config.log
6761
6762
6763
6764 if test "x$CC" != xcc; then
6765   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6766 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6767 else
6768   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6769 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6770 fi
6771 set dummy $CC; ac_cc=`echo $2 |
6772                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6773 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h.  */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h.  */
6782
6783 int
6784 main ()
6785 {
6786
6787   ;
6788   return 0;
6789 }
6790 _ACEOF
6791 # Make sure it works both with $CC and with simple cc.
6792 # We do the test twice because some compilers refuse to overwrite an
6793 # existing .o file with -o, though they will create one.
6794 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6795 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6796   (eval $ac_try) 2>&5
6797   ac_status=$?
6798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799   (exit $ac_status); } &&
6800    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801   (eval $ac_try) 2>&5
6802   ac_status=$?
6803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804   (exit $ac_status); };
6805 then
6806   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6807   if test "x$CC" != xcc; then
6808     # Test first that cc exists at all.
6809     if { ac_try='cc -c conftest.$ac_ext >&5'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6816       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } &&
6821          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822   (eval $ac_try) 2>&5
6823   ac_status=$?
6824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825   (exit $ac_status); };
6826       then
6827         # cc works too.
6828         :
6829       else
6830         # cc exists but doesn't like -o.
6831         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6832       fi
6833     fi
6834   fi
6835 else
6836   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6837 fi
6838 rm -f conftest*
6839
6840 fi
6841 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6842   echo "$as_me:$LINENO: result: yes" >&5
6843 echo "${ECHO_T}yes" >&6
6844 else
6845   echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6
6847
6848 cat >>confdefs.h <<\_ACEOF
6849 #define NO_MINUS_C_MINUS_O 1
6850 _ACEOF
6851
6852 fi
6853
6854 # FIXME: we rely on the cache variable name because
6855 # there is no other way.
6856 set dummy $CC
6857 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6858 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6859    # Losing compiler, so override with the script.
6860    # FIXME: It is wrong to rewrite CC.
6861    # But if we don't then we get into trouble of one sort or another.
6862    # A longer-term fix would be to have automake use am__CC in this case,
6863    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6864    CC="$am_aux_dir/compile $CC"
6865 fi
6866
6867
6868
6869
6870 subdirs="$subdirs classpath libltdl"
6871
6872
6873 # The -no-testsuite modules omit the test subdir.
6874
6875
6876 if test -d $srcdir/testsuite; then
6877   TESTSUBDIR_TRUE=
6878   TESTSUBDIR_FALSE='#'
6879 else
6880   TESTSUBDIR_TRUE='#'
6881   TESTSUBDIR_FALSE=
6882 fi
6883
6884
6885 # Should the runtime set system properties by examining the
6886 # environment variable GCJ_PROPERTIES?
6887 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6888 if test "${enable_getenv_properties+set}" = set; then
6889   enableval="$enable_getenv_properties"
6890
6891 fi;
6892
6893 # Whether GCJ_PROPERTIES is used depends on the target.
6894 if test -z "$enable_getenv_properties"; then
6895    enable_getenv_properties=${enable_getenv_properties_default-yes}
6896 fi
6897 if test "$enable_getenv_properties" = no; then
6898
6899 cat >>confdefs.h <<\_ACEOF
6900 #define DISABLE_GETENV_PROPERTIES 1
6901 _ACEOF
6902
6903 fi
6904
6905 # Whether we should use arguments to main()
6906 if test -z "$enable_main_args"; then
6907    enable_main_args=${enable_main_args_default-yes}
6908 fi
6909 if test "$enable_main_args" = no; then
6910
6911 cat >>confdefs.h <<\_ACEOF
6912 #define DISABLE_MAIN_ARGS 1
6913 _ACEOF
6914
6915 fi
6916
6917
6918 # Should we use hashtable-based synchronization?
6919 # Currently works only for Linux X86/ia64
6920 # Typically faster and more space-efficient
6921 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6922 if test "${enable_hash_synchronization+set}" = set; then
6923   enableval="$enable_hash_synchronization"
6924
6925 fi;
6926
6927 if test -z "$enable_hash_synchronization"; then
6928    enable_hash_synchronization=$enable_hash_synchronization_default
6929 fi
6930
6931
6932 install_ecj_jar=no
6933 ECJ_BUILD_JAR=
6934 ECJ_JAR=
6935
6936 # Check whether --with-ecj-jar or --without-ecj-jar was given.
6937 if test "${with_ecj_jar+set}" = set; then
6938   withval="$with_ecj_jar"
6939   ECJ_JAR=$withval
6940 else
6941   if test -f $multi_basedir/ecj.jar; then
6942            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
6943            ECJ_JAR='$(jardir)/ecj.jar'
6944            install_ecj_jar=yes
6945          fi
6946 fi;
6947
6948
6949
6950
6951 if test "$ECJ_JAR" != ""; then
6952   BUILD_ECJ1_TRUE=
6953   BUILD_ECJ1_FALSE='#'
6954 else
6955   BUILD_ECJ1_TRUE='#'
6956   BUILD_ECJ1_FALSE=
6957 fi
6958
6959
6960
6961 if test $install_ecj_jar = yes; then
6962   INSTALL_ECJ_JAR_TRUE=
6963   INSTALL_ECJ_JAR_FALSE='#'
6964 else
6965   INSTALL_ECJ_JAR_TRUE='#'
6966   INSTALL_ECJ_JAR_FALSE=
6967 fi
6968
6969
6970
6971 # Check whether --with-java-home or --without-java-home was given.
6972 if test "${with_java_home+set}" = set; then
6973   withval="$with_java_home"
6974   JAVA_HOME="${withval}"
6975 else
6976   JAVA_HOME=""
6977 fi;
6978
6979
6980 if test ! -z "$JAVA_HOME"; then
6981   JAVA_HOME_SET_TRUE=
6982   JAVA_HOME_SET_FALSE='#'
6983 else
6984   JAVA_HOME_SET_TRUE='#'
6985   JAVA_HOME_SET_FALSE=
6986 fi
6987
6988
6989
6990 # What is the native OS API for MinGW?
6991
6992 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6993 if test "${with_win32_nlsapi+set}" = set; then
6994   withval="$with_win32_nlsapi"
6995   case "${withval}" in
6996   ansi) with_win32_nlsapi=ansi ;;
6997   unicows) with_win32_nlsapi=unicows ;;
6998   unicode) with_win32_nlsapi=unicode ;;
6999   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
7000 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
7001    { (exit 1); exit 1; }; } ;;
7002 esac
7003 else
7004   with_win32_nlsapi=ansi
7005 fi;
7006
7007 case "${with_win32_nlsapi}" in
7008   unicows | unicode)
7009
7010 cat >>confdefs.h <<\_ACEOF
7011 #define MINGW_LIBGCJ_UNICODE 1
7012 _ACEOF
7013
7014     ;;
7015 esac
7016
7017 # configure.host sets slow_pthread_self if the synchronization code should
7018 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7019 if test "${slow_pthread_self}" = "yes"; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define SLOW_PTHREAD_SELF 1
7023 _ACEOF
7024
7025 fi
7026
7027 # Check for gc debugging.  This option is handled both here and in the GC.
7028 # Check whether --enable-gc-debug or --disable-gc-debug was given.
7029 if test "${enable_gc_debug+set}" = set; then
7030   enableval="$enable_gc_debug"
7031    if test "$enable_gc_debug" = "yes"; then
7032
7033 cat >>confdefs.h <<\_ACEOF
7034 #define LIBGCJ_GC_DEBUG 1
7035 _ACEOF
7036
7037   fi
7038 fi;
7039
7040 # See if the user has the interpreter included.
7041 # Check whether --enable-interpreter or --disable-interpreter was given.
7042 if test "${enable_interpreter+set}" = set; then
7043   enableval="$enable_interpreter"
7044   if test "$enable_interpreter" = yes; then
7045     # This can also be set in configure.host.
7046     libgcj_interpreter=yes
7047   elif test "$enable_interpreter" = no; then
7048     libgcj_interpreter=no
7049   fi
7050 fi;
7051
7052 if test "$libgcj_interpreter" = yes; then
7053
7054 cat >>confdefs.h <<\_ACEOF
7055 #define INTERPRETER 1
7056 _ACEOF
7057
7058 fi
7059 INTERPRETER="$libgcj_interpreter"
7060
7061
7062 echo "$as_me:$LINENO: checking for exception model to use" >&5
7063 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
7064 ac_ext=cc
7065 ac_cpp='$CXXCPP $CPPFLAGS'
7066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7069
7070 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
7071 if test "${enable_sjlj_exceptions+set}" = set; then
7072   enableval="$enable_sjlj_exceptions"
7073   :
7074 else
7075   cat > conftest.$ac_ext << EOF
7076 #line 7076 "configure"
7077 struct S { ~S(); };
7078 void bar();
7079 void foo()
7080 {
7081   S s;
7082   bar();
7083 }
7084 EOF
7085 old_CXXFLAGS="$CXXFLAGS"
7086 CXXFLAGS=-S
7087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7088   (eval $ac_compile) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; then
7092   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7093     enable_sjlj_exceptions=yes
7094   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7095     enable_sjlj_exceptions=no
7096   fi
7097 fi
7098 CXXFLAGS="$old_CXXFLAGS"
7099 rm -f conftest*
7100 fi;
7101 if test x$enable_sjlj_exceptions = xyes; then
7102
7103 cat >>confdefs.h <<\_ACEOF
7104 #define SJLJ_EXCEPTIONS 1
7105 _ACEOF
7106
7107   ac_exception_model_name=sjlj
7108 elif test x$enable_sjlj_exceptions = xno; then
7109   ac_exception_model_name="call frame"
7110 else
7111   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7112 echo "$as_me: error: unable to detect exception model" >&2;}
7113    { (exit 1); exit 1; }; }
7114 fi
7115 ac_ext=c
7116 ac_cpp='$CPP $CPPFLAGS'
7117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7120
7121 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7122 echo "${ECHO_T}$ac_exception_model_name" >&6
7123
7124 # If we are non using SJLJ exceptions, and this host does not have support
7125 # for unwinding from a signal handler, enable checked dereferences and divides.
7126 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7127   CHECKREFSPEC=-fcheck-references
7128   DIVIDESPEC=-fuse-divide-subroutine
7129   EXCEPTIONSPEC=
7130 fi
7131
7132 # See if the user wants to disable java.net.  This is the mildly
7133 # ugly way that we admit that target-side configuration sucks.
7134 # Check whether --enable-java-net or --disable-java-net was given.
7135 if test "${enable_java_net+set}" = set; then
7136   enableval="$enable_java_net"
7137
7138 fi;
7139
7140 # Whether java.net is built by default can depend on the target.
7141 if test -z "$enable_java_net"; then
7142    enable_java_net=${enable_java_net_default-yes}
7143 fi
7144 if test "$enable_java_net" = no; then
7145
7146 cat >>confdefs.h <<\_ACEOF
7147 #define DISABLE_JAVA_NET 1
7148 _ACEOF
7149
7150 fi
7151
7152 # See if the user wants to configure without libffi.  Some
7153 # architectures don't support it, and default values are set in
7154 # configure.host.
7155
7156 # Check whether --with-libffi or --without-libffi was given.
7157 if test "${with_libffi+set}" = set; then
7158   withval="$with_libffi"
7159   :
7160 else
7161   with_libffi=${with_libffi_default-yes}
7162 fi;
7163
7164 LIBFFI=
7165 LIBFFIINCS=
7166 if test "$with_libffi" != no; then
7167
7168 cat >>confdefs.h <<\_ACEOF
7169 #define USE_LIBFFI 1
7170 _ACEOF
7171
7172    LIBFFI=../libffi/libffi_convenience.la
7173    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7174 fi
7175
7176
7177
7178 # See if the user wants to disable JVMPI support.
7179 # Check whether --enable-jvmpi or --disable-jvmpi was given.
7180 if test "${enable_jvmpi+set}" = set; then
7181   enableval="$enable_jvmpi"
7182
7183 fi;
7184
7185 if test "$enable_jvmpi" != no; then
7186
7187 cat >>confdefs.h <<\_ACEOF
7188 #define ENABLE_JVMPI 1
7189 _ACEOF
7190
7191 fi
7192
7193 # If the target is an eCos system, use the appropriate eCos
7194 # I/O routines.
7195 # FIXME: this should not be a local option but a global target
7196 # system; at present there is no eCos target.
7197 TARGET_ECOS=${PROCESS-"no"}
7198
7199 # Check whether --with-ecos or --without-ecos was given.
7200 if test "${with_ecos+set}" = set; then
7201   withval="$with_ecos"
7202   TARGET_ECOS="$with_ecos"
7203
7204 fi;
7205
7206 case "$TARGET_ECOS" in
7207    no) case "$host" in
7208       *mingw*)
7209             PLATFORM=Win32
7210             PLATFORMNET=Win32
7211             PLATFORMH=win32.h
7212
7213 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7214 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7215 LD_PROG=`$CC --print-prog-name=ld`
7216 LD_VERSION=`$LD_PROG --version`
7217 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7218 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7219 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7220   LD_OK="ok"
7221 else
7222   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7223     LD_OK="ok"
7224   fi
7225 fi
7226 if test "x$LD_OK" != x; then
7227   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7228 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7229 else
7230   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7231 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7232   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7233 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7234
7235 cat >>confdefs.h <<\_ACEOF
7236 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7237 _ACEOF
7238
7239 fi
7240       ;;
7241       *)
7242             PLATFORM=Posix
7243             PLATFORMNET=Posix
7244             PLATFORMH=posix.h
7245       ;;
7246       esac
7247       ;;
7248    *)
7249       PLATFORM=Ecos
7250       PLATFORMNET=NoNet
7251
7252 cat >>confdefs.h <<\_ACEOF
7253 #define ECOS 1
7254 _ACEOF
7255
7256       PLATFORMH=posix.h
7257       ;;
7258 esac
7259
7260           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7261
7262
7263 ac_ext=c
7264 ac_cpp='$CPP $CPPFLAGS'
7265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7270 # On Suns, sometimes $CPP names a directory.
7271 if test -n "$CPP" && test -d "$CPP"; then
7272   CPP=
7273 fi
7274 if test -z "$CPP"; then
7275   if test "${ac_cv_prog_CPP+set}" = set; then
7276   echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278       # Double quotes because CPP needs to be expanded
7279     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7280     do
7281       ac_preproc_ok=false
7282 for ac_c_preproc_warn_flag in '' yes
7283 do
7284   # Use a header file that comes with gcc, so configuring glibc
7285   # with a fresh cross-compiler works.
7286   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7287   # <limits.h> exists even on freestanding compilers.
7288   # On the NeXT, cc -E runs the code through the compiler's parser,
7289   # not just through cpp. "Syntax error" is here to catch this case.
7290   cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h.  */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h.  */
7296 #ifdef __STDC__
7297 # include <limits.h>
7298 #else
7299 # include <assert.h>
7300 #endif
7301                      Syntax error
7302 _ACEOF
7303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7305   ac_status=$?
7306   grep -v '^ *+' conftest.er1 >conftest.err
7307   rm -f conftest.er1
7308   cat conftest.err >&5
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); } >/dev/null; then
7311   if test -s conftest.err; then
7312     ac_cpp_err=$ac_c_preproc_warn_flag
7313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7314   else
7315     ac_cpp_err=
7316   fi
7317 else
7318   ac_cpp_err=yes
7319 fi
7320 if test -z "$ac_cpp_err"; then
7321   :
7322 else
7323   echo "$as_me: failed program was:" >&5
7324 sed 's/^/| /' conftest.$ac_ext >&5
7325
7326   # Broken: fails on valid input.
7327 continue
7328 fi
7329 rm -f conftest.err conftest.$ac_ext
7330
7331   # OK, works on sane cases.  Now check whether non-existent headers
7332   # can be detected and how.
7333   cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h.  */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h.  */
7339 #include <ac_nonexistent.h>
7340 _ACEOF
7341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7343   ac_status=$?
7344   grep -v '^ *+' conftest.er1 >conftest.err
7345   rm -f conftest.er1
7346   cat conftest.err >&5
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } >/dev/null; then
7349   if test -s conftest.err; then
7350     ac_cpp_err=$ac_c_preproc_warn_flag
7351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7352   else
7353     ac_cpp_err=
7354   fi
7355 else
7356   ac_cpp_err=yes
7357 fi
7358 if test -z "$ac_cpp_err"; then
7359   # Broken: success on invalid input.
7360 continue
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365   # Passes both tests.
7366 ac_preproc_ok=:
7367 break
7368 fi
7369 rm -f conftest.err conftest.$ac_ext
7370
7371 done
7372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7373 rm -f conftest.err conftest.$ac_ext
7374 if $ac_preproc_ok; then
7375   break
7376 fi
7377
7378     done
7379     ac_cv_prog_CPP=$CPP
7380
7381 fi
7382   CPP=$ac_cv_prog_CPP
7383 else
7384   ac_cv_prog_CPP=$CPP
7385 fi
7386 echo "$as_me:$LINENO: result: $CPP" >&5
7387 echo "${ECHO_T}$CPP" >&6
7388 ac_preproc_ok=false
7389 for ac_c_preproc_warn_flag in '' yes
7390 do
7391   # Use a header file that comes with gcc, so configuring glibc
7392   # with a fresh cross-compiler works.
7393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7394   # <limits.h> exists even on freestanding compilers.
7395   # On the NeXT, cc -E runs the code through the compiler's parser,
7396   # not just through cpp. "Syntax error" is here to catch this case.
7397   cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 #ifdef __STDC__
7404 # include <limits.h>
7405 #else
7406 # include <assert.h>
7407 #endif
7408                      Syntax error
7409 _ACEOF
7410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7412   ac_status=$?
7413   grep -v '^ *+' conftest.er1 >conftest.err
7414   rm -f conftest.er1
7415   cat conftest.err >&5
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); } >/dev/null; then
7418   if test -s conftest.err; then
7419     ac_cpp_err=$ac_c_preproc_warn_flag
7420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7421   else
7422     ac_cpp_err=
7423   fi
7424 else
7425   ac_cpp_err=yes
7426 fi
7427 if test -z "$ac_cpp_err"; then
7428   :
7429 else
7430   echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7432
7433   # Broken: fails on valid input.
7434 continue
7435 fi
7436 rm -f conftest.err conftest.$ac_ext
7437
7438   # OK, works on sane cases.  Now check whether non-existent headers
7439   # can be detected and how.
7440   cat >conftest.$ac_ext <<_ACEOF
7441 /* confdefs.h.  */
7442 _ACEOF
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h.  */
7446 #include <ac_nonexistent.h>
7447 _ACEOF
7448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7450   ac_status=$?
7451   grep -v '^ *+' conftest.er1 >conftest.err
7452   rm -f conftest.er1
7453   cat conftest.err >&5
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } >/dev/null; then
7456   if test -s conftest.err; then
7457     ac_cpp_err=$ac_c_preproc_warn_flag
7458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7459   else
7460     ac_cpp_err=
7461   fi
7462 else
7463   ac_cpp_err=yes
7464 fi
7465 if test -z "$ac_cpp_err"; then
7466   # Broken: success on invalid input.
7467 continue
7468 else
7469   echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7471
7472   # Passes both tests.
7473 ac_preproc_ok=:
7474 break
7475 fi
7476 rm -f conftest.err conftest.$ac_ext
7477
7478 done
7479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7480 rm -f conftest.err conftest.$ac_ext
7481 if $ac_preproc_ok; then
7482   :
7483 else
7484   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7485 See \`config.log' for more details." >&5
7486 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7487 See \`config.log' for more details." >&2;}
7488    { (exit 1); exit 1; }; }
7489 fi
7490
7491 ac_ext=c
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496
7497
7498 echo "$as_me:$LINENO: checking for egrep" >&5
7499 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7500 if test "${ac_cv_prog_egrep+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7504     then ac_cv_prog_egrep='grep -E'
7505     else ac_cv_prog_egrep='egrep'
7506     fi
7507 fi
7508 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7509 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7510  EGREP=$ac_cv_prog_egrep
7511
7512
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519 #include <stdint.h>
7520
7521 _ACEOF
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523   $EGREP "uint32_t" >/dev/null 2>&1; then
7524
7525 cat >>confdefs.h <<\_ACEOF
7526 #define HAVE_INT32_DEFINED 1
7527 _ACEOF
7528
7529 fi
7530 rm -f conftest*
7531
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 #include <inttypes.h>
7539
7540 _ACEOF
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542   $EGREP "uint32_t" >/dev/null 2>&1; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_INT32_DEFINED 1
7546 _ACEOF
7547
7548 fi
7549 rm -f conftest*
7550
7551 cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 #include <sys/types.h>
7558
7559 _ACEOF
7560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7561   $EGREP "u_int32_t" >/dev/null 2>&1; then
7562
7563 cat >>confdefs.h <<\_ACEOF
7564 #define HAVE_BSD_INT32_DEFINED 1
7565 _ACEOF
7566
7567 fi
7568 rm -f conftest*
7569
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576 #include <sys/config.h>
7577
7578 _ACEOF
7579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7580   $EGREP "u_int32_t" >/dev/null 2>&1; then
7581
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_BSD_INT32_DEFINED 1
7584 _ACEOF
7585
7586 fi
7587 rm -f conftest*
7588
7589
7590
7591
7592 if test "$PLATFORM" = Win32; then
7593   USING_WIN32_PLATFORM_TRUE=
7594   USING_WIN32_PLATFORM_FALSE='#'
7595 else
7596   USING_WIN32_PLATFORM_TRUE='#'
7597   USING_WIN32_PLATFORM_FALSE=
7598 fi
7599
7600
7601
7602 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7603   USING_POSIX_PLATFORM_TRUE=
7604   USING_POSIX_PLATFORM_FALSE='#'
7605 else
7606   USING_POSIX_PLATFORM_TRUE='#'
7607   USING_POSIX_PLATFORM_FALSE=
7608 fi
7609
7610
7611 case "$host" in
7612   *-darwin*) DARWIN_CRT=true ;;
7613   *) DARWIN_CRT=false ;;
7614 esac
7615
7616
7617 if $DARWIN_CRT; then
7618   USING_DARWIN_CRT_TRUE=
7619   USING_DARWIN_CRT_FALSE='#'
7620 else
7621   USING_DARWIN_CRT_TRUE='#'
7622   USING_DARWIN_CRT_FALSE=
7623 fi
7624
7625
7626 # This may not be defined in a non-ANS conformant embedded system.
7627 # FIXME: Should these case a runtime exception in that case?
7628 cat >conftest.$ac_ext <<_ACEOF
7629 /* confdefs.h.  */
7630 _ACEOF
7631 cat confdefs.h >>conftest.$ac_ext
7632 cat >>conftest.$ac_ext <<_ACEOF
7633 /* end confdefs.h.  */
7634 #include <time.h>
7635
7636 _ACEOF
7637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7638   $EGREP "localtime" >/dev/null 2>&1; then
7639
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_LOCALTIME 1
7642 _ACEOF
7643
7644 fi
7645 rm -f conftest*
7646
7647
7648 # Create the subdirectory for natFile.cc, or the attempt
7649 # to create the link will fail.
7650 test -d java || mkdir java
7651 test -d java/io || mkdir java/io
7652 test -d gnu || mkdir gnu
7653           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7654
7655
7656 # Likewise for natConcreteProcess.cc.
7657 test -d java/lang || mkdir java/lang
7658           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7659
7660
7661 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
7662 test -d java/net || mkdir java/net
7663           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
7664
7665           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7666
7667
7668 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7669 test -d gnu/java || mkdir gnu/java
7670 test -d gnu/java/net || mkdir gnu/java/net
7671           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7672
7673           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7674
7675
7676 # Likewise for natVMPipe.cc and natVMSelector.cc.
7677 test -d gnu/java/nio || mkdir gnu/java/nio
7678           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
7679
7680           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
7681
7682
7683 # Likewise for natFileChannelImpl.cc
7684 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7685           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7686
7687
7688 case "${host}" in
7689     *mingw*)
7690       SYSTEMSPEC="-lgdi32 -lws2_32"
7691       if test "${with_win32_nlsapi}" = "unicows"; then
7692         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7693       fi
7694     ;;
7695     *)
7696       SYSTEMSPEC=
7697     ;;
7698 esac
7699
7700
7701 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7702
7703
7704
7705 # Check whether --with-system-zlib or --without-system-zlib was given.
7706 if test "${with_system_zlib+set}" = set; then
7707   withval="$with_system_zlib"
7708
7709 fi;
7710 ZLIBSPEC=
7711
7712 ZLIBTESTSPEC=
7713
7714
7715 echo "$as_me:$LINENO: checking for X" >&5
7716 echo $ECHO_N "checking for X... $ECHO_C" >&6
7717
7718
7719 # Check whether --with-x or --without-x was given.
7720 if test "${with_x+set}" = set; then
7721   withval="$with_x"
7722
7723 fi;
7724 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7725 if test "x$with_x" = xno; then
7726   # The user explicitly disabled X.
7727   have_x=disabled
7728 else
7729   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7730     # Both variables are already set.
7731     have_x=yes
7732   else
7733     if test "${ac_cv_have_x+set}" = set; then
7734   echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736   # One or both of the vars are not set, and there is no cached value.
7737 ac_x_includes=no ac_x_libraries=no
7738 rm -fr conftest.dir
7739 if mkdir conftest.dir; then
7740   cd conftest.dir
7741   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7742   cat >Imakefile <<'_ACEOF'
7743 acfindx:
7744         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7745 _ACEOF
7746   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7747     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7748     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7749     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7750     for ac_extension in a so sl; do
7751       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7752          test -f $ac_im_libdir/libX11.$ac_extension; then
7753         ac_im_usrlibdir=$ac_im_libdir; break
7754       fi
7755     done
7756     # Screen out bogus values from the imake configuration.  They are
7757     # bogus both because they are the default anyway, and because
7758     # using them would break gcc on systems where it needs fixed includes.
7759     case $ac_im_incroot in
7760         /usr/include) ;;
7761         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7762     esac
7763     case $ac_im_usrlibdir in
7764         /usr/lib | /lib) ;;
7765         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7766     esac
7767   fi
7768   cd ..
7769   rm -fr conftest.dir
7770 fi
7771
7772 # Standard set of common directories for X headers.
7773 # Check X11 before X11Rn because it is often a symlink to the current release.
7774 ac_x_header_dirs='
7775 /usr/X11/include
7776 /usr/X11R6/include
7777 /usr/X11R5/include
7778 /usr/X11R4/include
7779
7780 /usr/include/X11
7781 /usr/include/X11R6
7782 /usr/include/X11R5
7783 /usr/include/X11R4
7784
7785 /usr/local/X11/include
7786 /usr/local/X11R6/include
7787 /usr/local/X11R5/include
7788 /usr/local/X11R4/include
7789
7790 /usr/local/include/X11
7791 /usr/local/include/X11R6
7792 /usr/local/include/X11R5
7793 /usr/local/include/X11R4
7794
7795 /usr/X386/include
7796 /usr/x386/include
7797 /usr/XFree86/include/X11
7798
7799 /usr/include
7800 /usr/local/include
7801 /usr/unsupported/include
7802 /usr/athena/include
7803 /usr/local/x11r5/include
7804 /usr/lpp/Xamples/include
7805
7806 /usr/openwin/include
7807 /usr/openwin/share/include'
7808
7809 if test "$ac_x_includes" = no; then
7810   # Guess where to find include files, by looking for Xlib.h.
7811   # First, try using that file with no special directory specified.
7812   cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818 #include <X11/Xlib.h>
7819 _ACEOF
7820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7822   ac_status=$?
7823   grep -v '^ *+' conftest.er1 >conftest.err
7824   rm -f conftest.er1
7825   cat conftest.err >&5
7826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); } >/dev/null; then
7828   if test -s conftest.err; then
7829     ac_cpp_err=$ac_c_preproc_warn_flag
7830     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7831   else
7832     ac_cpp_err=
7833   fi
7834 else
7835   ac_cpp_err=yes
7836 fi
7837 if test -z "$ac_cpp_err"; then
7838   # We can compile using X headers with no special include directory.
7839 ac_x_includes=
7840 else
7841   echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844   for ac_dir in $ac_x_header_dirs; do
7845   if test -r "$ac_dir/X11/Xlib.h"; then
7846     ac_x_includes=$ac_dir
7847     break
7848   fi
7849 done
7850 fi
7851 rm -f conftest.err conftest.$ac_ext
7852 fi # $ac_x_includes = no
7853
7854 if test "$ac_x_libraries" = no; then
7855   # Check for the libraries.
7856   # See if we find them without any special options.
7857   # Don't add to $LIBS permanently.
7858   ac_save_LIBS=$LIBS
7859   LIBS="-lX11 $LIBS"
7860   if test x$gcc_no_link = xyes; then
7861   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7863    { (exit 1); exit 1; }; }
7864 fi
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871 #include <X11/Xlib.h>
7872 int
7873 main ()
7874 {
7875 XrmInitialize ()
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag"
7890                          || test ! -s conftest.err'
7891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892   (eval $ac_try) 2>&5
7893   ac_status=$?
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); }; } &&
7896          { ac_try='test -s conftest$ac_exeext'
7897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898   (eval $ac_try) 2>&5
7899   ac_status=$?
7900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901   (exit $ac_status); }; }; then
7902   LIBS=$ac_save_LIBS
7903 # We can link X programs with no special library path.
7904 ac_x_libraries=
7905 else
7906   echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909 LIBS=$ac_save_LIBS
7910 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7911 do
7912   # Don't even attempt the hair of trying to link an X program!
7913   for ac_extension in a so sl; do
7914     if test -r $ac_dir/libXt.$ac_extension; then
7915       ac_x_libraries=$ac_dir
7916       break 2
7917     fi
7918   done
7919 done
7920 fi
7921 rm -f conftest.err conftest.$ac_objext \
7922       conftest$ac_exeext conftest.$ac_ext
7923 fi # $ac_x_libraries = no
7924
7925 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7926   # Didn't find X anywhere.  Cache the known absence of X.
7927   ac_cv_have_x="have_x=no"
7928 else
7929   # Record where we found X for the cache.
7930   ac_cv_have_x="have_x=yes \
7931                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7932 fi
7933 fi
7934
7935   fi
7936   eval "$ac_cv_have_x"
7937 fi # $with_x != no
7938
7939 if test "$have_x" != yes; then
7940   echo "$as_me:$LINENO: result: $have_x" >&5
7941 echo "${ECHO_T}$have_x" >&6
7942   no_x=yes
7943 else
7944   # If each of the values was on the command line, it overrides each guess.
7945   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7946   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7947   # Update the cache value to reflect the command line values.
7948   ac_cv_have_x="have_x=yes \
7949                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7950   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7951 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7952 fi
7953
7954 if test "$no_x" = yes; then
7955   # Not all programs may use this symbol, but it does not hurt to define it.
7956
7957 cat >>confdefs.h <<\_ACEOF
7958 #define X_DISPLAY_MISSING 1
7959 _ACEOF
7960
7961   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7962 else
7963   if test -n "$x_includes"; then
7964     X_CFLAGS="$X_CFLAGS -I$x_includes"
7965   fi
7966
7967   # It would also be nice to do this for all -L options, not just this one.
7968   if test -n "$x_libraries"; then
7969     X_LIBS="$X_LIBS -L$x_libraries"
7970     # For Solaris; some versions of Sun CC require a space after -R and
7971     # others require no space.  Words are not sufficient . . . .
7972     case `(uname -sr) 2>/dev/null` in
7973     "SunOS 5"*)
7974       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7975 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7976       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7977       if test x$gcc_no_link = xyes; then
7978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7980    { (exit 1); exit 1; }; }
7981 fi
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h.  */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h.  */
7988
7989 int
7990 main ()
7991 {
7992
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 rm -f conftest.$ac_objext conftest$ac_exeext
7998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7999   (eval $ac_link) 2>conftest.er1
8000   ac_status=$?
8001   grep -v '^ *+' conftest.er1 >conftest.err
8002   rm -f conftest.er1
8003   cat conftest.err >&5
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); } &&
8006          { ac_try='test -z "$ac_c_werror_flag"
8007                          || test ! -s conftest.err'
8008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8009   (eval $ac_try) 2>&5
8010   ac_status=$?
8011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012   (exit $ac_status); }; } &&
8013          { ac_try='test -s conftest$ac_exeext'
8014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015   (eval $ac_try) 2>&5
8016   ac_status=$?
8017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018   (exit $ac_status); }; }; then
8019   ac_R_nospace=yes
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_R_nospace=no
8025 fi
8026 rm -f conftest.err conftest.$ac_objext \
8027       conftest$ac_exeext conftest.$ac_ext
8028       if test $ac_R_nospace = yes; then
8029         echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8031         X_LIBS="$X_LIBS -R$x_libraries"
8032       else
8033         LIBS="$ac_xsave_LIBS -R $x_libraries"
8034         if test x$gcc_no_link = xyes; then
8035   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8037    { (exit 1); exit 1; }; }
8038 fi
8039 cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045
8046 int
8047 main ()
8048 {
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext conftest$ac_exeext
8055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8056   (eval $ac_link) 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -z "$ac_c_werror_flag"
8064                          || test ! -s conftest.err'
8065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066   (eval $ac_try) 2>&5
8067   ac_status=$?
8068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069   (exit $ac_status); }; } &&
8070          { ac_try='test -s conftest$ac_exeext'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_R_space=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081 ac_R_space=no
8082 fi
8083 rm -f conftest.err conftest.$ac_objext \
8084       conftest$ac_exeext conftest.$ac_ext
8085         if test $ac_R_space = yes; then
8086           echo "$as_me:$LINENO: result: yes" >&5
8087 echo "${ECHO_T}yes" >&6
8088           X_LIBS="$X_LIBS -R $x_libraries"
8089         else
8090           echo "$as_me:$LINENO: result: neither works" >&5
8091 echo "${ECHO_T}neither works" >&6
8092         fi
8093       fi
8094       LIBS=$ac_xsave_LIBS
8095     esac
8096   fi
8097
8098   # Check for system-dependent libraries X programs must link with.
8099   # Do this before checking for the system-independent R6 libraries
8100   # (-lICE), since we may need -lsocket or whatever for X linking.
8101
8102   if test "$ISC" = yes; then
8103     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8104   else
8105     # Martyn Johnson says this is needed for Ultrix, if the X
8106     # libraries were built with DECnet support.  And Karl Berry says
8107     # the Alpha needs dnet_stub (dnet does not exist).
8108     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8109     if test x$gcc_no_link = xyes; then
8110   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8112    { (exit 1); exit 1; }; }
8113 fi
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120
8121 /* Override any gcc2 internal prototype to avoid an error.  */
8122 #ifdef __cplusplus
8123 extern "C"
8124 #endif
8125 /* We use char because int might match the return type of a gcc2
8126    builtin and then its argument prototype would still apply.  */
8127 char XOpenDisplay ();
8128 int
8129 main ()
8130 {
8131 XOpenDisplay ();
8132   ;
8133   return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext conftest$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138   (eval $ac_link) 2>conftest.er1
8139   ac_status=$?
8140   grep -v '^ *+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } &&
8145          { ac_try='test -z "$ac_c_werror_flag"
8146                          || test ! -s conftest.err'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; } &&
8152          { ac_try='test -s conftest$ac_exeext'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   :
8159 else
8160   echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8164 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8165 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   ac_check_lib_save_LIBS=$LIBS
8169 LIBS="-ldnet  $LIBS"
8170 if test x$gcc_no_link = xyes; then
8171   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8172 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8173    { (exit 1); exit 1; }; }
8174 fi
8175 cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181
8182 /* Override any gcc2 internal prototype to avoid an error.  */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 /* We use char because int might match the return type of a gcc2
8187    builtin and then its argument prototype would still apply.  */
8188 char dnet_ntoa ();
8189 int
8190 main ()
8191 {
8192 dnet_ntoa ();
8193   ;
8194   return 0;
8195 }
8196 _ACEOF
8197 rm -f conftest.$ac_objext conftest$ac_exeext
8198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8199   (eval $ac_link) 2>conftest.er1
8200   ac_status=$?
8201   grep -v '^ *+' conftest.er1 >conftest.err
8202   rm -f conftest.er1
8203   cat conftest.err >&5
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); } &&
8206          { ac_try='test -z "$ac_c_werror_flag"
8207                          || test ! -s conftest.err'
8208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209   (eval $ac_try) 2>&5
8210   ac_status=$?
8211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212   (exit $ac_status); }; } &&
8213          { ac_try='test -s conftest$ac_exeext'
8214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8215   (eval $ac_try) 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); }; }; then
8219   ac_cv_lib_dnet_dnet_ntoa=yes
8220 else
8221   echo "$as_me: failed program was:" >&5
8222 sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 ac_cv_lib_dnet_dnet_ntoa=no
8225 fi
8226 rm -f conftest.err conftest.$ac_objext \
8227       conftest$ac_exeext conftest.$ac_ext
8228 LIBS=$ac_check_lib_save_LIBS
8229 fi
8230 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8231 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8232 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8233   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8234 fi
8235
8236     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8237       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8238 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8239 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   ac_check_lib_save_LIBS=$LIBS
8243 LIBS="-ldnet_stub  $LIBS"
8244 if test x$gcc_no_link = xyes; then
8245   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8246 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8247    { (exit 1); exit 1; }; }
8248 fi
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255
8256 /* Override any gcc2 internal prototype to avoid an error.  */
8257 #ifdef __cplusplus
8258 extern "C"
8259 #endif
8260 /* We use char because int might match the return type of a gcc2
8261    builtin and then its argument prototype would still apply.  */
8262 char dnet_ntoa ();
8263 int
8264 main ()
8265 {
8266 dnet_ntoa ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273   (eval $ac_link) 2>conftest.er1
8274   ac_status=$?
8275   grep -v '^ *+' conftest.er1 >conftest.err
8276   rm -f conftest.er1
8277   cat conftest.err >&5
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } &&
8280          { ac_try='test -z "$ac_c_werror_flag"
8281                          || test ! -s conftest.err'
8282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8283   (eval $ac_try) 2>&5
8284   ac_status=$?
8285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286   (exit $ac_status); }; } &&
8287          { ac_try='test -s conftest$ac_exeext'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; }; then
8293   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8294 else
8295   echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298 ac_cv_lib_dnet_stub_dnet_ntoa=no
8299 fi
8300 rm -f conftest.err conftest.$ac_objext \
8301       conftest$ac_exeext conftest.$ac_ext
8302 LIBS=$ac_check_lib_save_LIBS
8303 fi
8304 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8305 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8306 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8307   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8308 fi
8309
8310     fi
8311 fi
8312 rm -f conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314     LIBS="$ac_xsave_LIBS"
8315
8316     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8317     # to get the SysV transport functions.
8318     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8319     # needs -lnsl.
8320     # The nsl library prevents programs from opening the X display
8321     # on Irix 5.2, according to T.E. Dickey.
8322     # The functions gethostbyname, getservbyname, and inet_addr are
8323     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8324     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8325 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8326 if test "${ac_cv_func_gethostbyname+set}" = set; then
8327   echo $ECHO_N "(cached) $ECHO_C" >&6
8328 else
8329   if test x$gcc_no_link = xyes; then
8330   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8332    { (exit 1); exit 1; }; }
8333 fi
8334 cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8342 #define gethostbyname innocuous_gethostbyname
8343
8344 /* System header to define __stub macros and hopefully few prototypes,
8345     which can conflict with char gethostbyname (); below.
8346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8347     <limits.h> exists even on freestanding compilers.  */
8348
8349 #ifdef __STDC__
8350 # include <limits.h>
8351 #else
8352 # include <assert.h>
8353 #endif
8354
8355 #undef gethostbyname
8356
8357 /* Override any gcc2 internal prototype to avoid an error.  */
8358 #ifdef __cplusplus
8359 extern "C"
8360 {
8361 #endif
8362 /* We use char because int might match the return type of a gcc2
8363    builtin and then its argument prototype would still apply.  */
8364 char gethostbyname ();
8365 /* The GNU C library defines this for functions which it implements
8366     to always fail with ENOSYS.  Some functions are actually named
8367     something starting with __ and the normal name is an alias.  */
8368 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8369 choke me
8370 #else
8371 char (*f) () = gethostbyname;
8372 #endif
8373 #ifdef __cplusplus
8374 }
8375 #endif
8376
8377 int
8378 main ()
8379 {
8380 return f != gethostbyname;
8381   ;
8382   return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8387   (eval $ac_link) 2>conftest.er1
8388   ac_status=$?
8389   grep -v '^ *+' conftest.er1 >conftest.err
8390   rm -f conftest.er1
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   (exit $ac_status); } &&
8394          { ac_try='test -z "$ac_c_werror_flag"
8395                          || test ! -s conftest.err'
8396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397   (eval $ac_try) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; } &&
8401          { ac_try='test -s conftest$ac_exeext'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; }; then
8407   ac_cv_func_gethostbyname=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_cv_func_gethostbyname=no
8413 fi
8414 rm -f conftest.err conftest.$ac_objext \
8415       conftest$ac_exeext conftest.$ac_ext
8416 fi
8417 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8418 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8419
8420     if test $ac_cv_func_gethostbyname = no; then
8421       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8422 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8423 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8424   echo $ECHO_N "(cached) $ECHO_C" >&6
8425 else
8426   ac_check_lib_save_LIBS=$LIBS
8427 LIBS="-lnsl  $LIBS"
8428 if test x$gcc_no_link = xyes; then
8429   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8431    { (exit 1); exit 1; }; }
8432 fi
8433 cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439
8440 /* Override any gcc2 internal prototype to avoid an error.  */
8441 #ifdef __cplusplus
8442 extern "C"
8443 #endif
8444 /* We use char because int might match the return type of a gcc2
8445    builtin and then its argument prototype would still apply.  */
8446 char gethostbyname ();
8447 int
8448 main ()
8449 {
8450 gethostbyname ();
8451   ;
8452   return 0;
8453 }
8454 _ACEOF
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457   (eval $ac_link) 2>conftest.er1
8458   ac_status=$?
8459   grep -v '^ *+' conftest.er1 >conftest.err
8460   rm -f conftest.er1
8461   cat conftest.err >&5
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } &&
8464          { ac_try='test -z "$ac_c_werror_flag"
8465                          || test ! -s conftest.err'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; } &&
8471          { ac_try='test -s conftest$ac_exeext'
8472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8473   (eval $ac_try) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); }; }; then
8477   ac_cv_lib_nsl_gethostbyname=yes
8478 else
8479   echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8481
8482 ac_cv_lib_nsl_gethostbyname=no
8483 fi
8484 rm -f conftest.err conftest.$ac_objext \
8485       conftest$ac_exeext conftest.$ac_ext
8486 LIBS=$ac_check_lib_save_LIBS
8487 fi
8488 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8489 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8490 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8491   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8492 fi
8493
8494       if test $ac_cv_lib_nsl_gethostbyname = no; then
8495         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8496 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8497 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8498   echo $ECHO_N "(cached) $ECHO_C" >&6
8499 else
8500   ac_check_lib_save_LIBS=$LIBS
8501 LIBS="-lbsd  $LIBS"
8502 if test x$gcc_no_link = xyes; then
8503   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8505    { (exit 1); exit 1; }; }
8506 fi
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h.  */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h.  */
8513
8514 /* Override any gcc2 internal prototype to avoid an error.  */
8515 #ifdef __cplusplus
8516 extern "C"
8517 #endif
8518 /* We use char because int might match the return type of a gcc2
8519    builtin and then its argument prototype would still apply.  */
8520 char gethostbyname ();
8521 int
8522 main ()
8523 {
8524 gethostbyname ();
8525   ;
8526   return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext conftest$ac_exeext
8530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8531   (eval $ac_link) 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } &&
8538          { ac_try='test -z "$ac_c_werror_flag"
8539                          || test ! -s conftest.err'
8540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541   (eval $ac_try) 2>&5
8542   ac_status=$?
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); }; } &&
8545          { ac_try='test -s conftest$ac_exeext'
8546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547   (eval $ac_try) 2>&5
8548   ac_status=$?
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); }; }; then
8551   ac_cv_lib_bsd_gethostbyname=yes
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8555
8556 ac_cv_lib_bsd_gethostbyname=no
8557 fi
8558 rm -f conftest.err conftest.$ac_objext \
8559       conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8561 fi
8562 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8563 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8564 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8565   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8566 fi
8567
8568       fi
8569     fi
8570
8571     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8572     # socket/setsockopt and other routines are undefined under SCO ODT
8573     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8574     # on later versions), says Simon Leinen: it contains gethostby*
8575     # variants that don't use the name server (or something).  -lsocket
8576     # must be given before -lnsl if both are needed.  We assume that
8577     # if connect needs -lnsl, so does gethostbyname.
8578     echo "$as_me:$LINENO: checking for connect" >&5
8579 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8580 if test "${ac_cv_func_connect+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   if test x$gcc_no_link = xyes; then
8584   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8586    { (exit 1); exit 1; }; }
8587 fi
8588 cat >conftest.$ac_ext <<_ACEOF
8589 /* confdefs.h.  */
8590 _ACEOF
8591 cat confdefs.h >>conftest.$ac_ext
8592 cat >>conftest.$ac_ext <<_ACEOF
8593 /* end confdefs.h.  */
8594 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8596 #define connect innocuous_connect
8597
8598 /* System header to define __stub macros and hopefully few prototypes,
8599     which can conflict with char connect (); below.
8600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8601     <limits.h> exists even on freestanding compilers.  */
8602
8603 #ifdef __STDC__
8604 # include <limits.h>
8605 #else
8606 # include <assert.h>
8607 #endif
8608
8609 #undef connect
8610
8611 /* Override any gcc2 internal prototype to avoid an error.  */
8612 #ifdef __cplusplus
8613 extern "C"
8614 {
8615 #endif
8616 /* We use char because int might match the return type of a gcc2
8617    builtin and then its argument prototype would still apply.  */
8618 char connect ();
8619 /* The GNU C library defines this for functions which it implements
8620     to always fail with ENOSYS.  Some functions are actually named
8621     something starting with __ and the normal name is an alias.  */
8622 #if defined (__stub_connect) || defined (__stub___connect)
8623 choke me
8624 #else
8625 char (*f) () = connect;
8626 #endif
8627 #ifdef __cplusplus
8628 }
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 return f != connect;
8635   ;
8636   return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641   (eval $ac_link) 2>conftest.er1
8642   ac_status=$?
8643   grep -v '^ *+' conftest.er1 >conftest.err
8644   rm -f conftest.er1
8645   cat conftest.err >&5
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); } &&
8648          { ac_try='test -z "$ac_c_werror_flag"
8649                          || test ! -s conftest.err'
8650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8651   (eval $ac_try) 2>&5
8652   ac_status=$?
8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654   (exit $ac_status); }; } &&
8655          { ac_try='test -s conftest$ac_exeext'
8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657   (eval $ac_try) 2>&5
8658   ac_status=$?
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); }; }; then
8661   ac_cv_func_connect=yes
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_func_connect=no
8667 fi
8668 rm -f conftest.err conftest.$ac_objext \
8669       conftest$ac_exeext conftest.$ac_ext
8670 fi
8671 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8672 echo "${ECHO_T}$ac_cv_func_connect" >&6
8673
8674     if test $ac_cv_func_connect = no; then
8675       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8676 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8677 if test "${ac_cv_lib_socket_connect+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8682 if test x$gcc_no_link = xyes; then
8683   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8684 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8685    { (exit 1); exit 1; }; }
8686 fi
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h.  */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h.  */
8693
8694 /* Override any gcc2 internal prototype to avoid an error.  */
8695 #ifdef __cplusplus
8696 extern "C"
8697 #endif
8698 /* We use char because int might match the return type of a gcc2
8699    builtin and then its argument prototype would still apply.  */
8700 char connect ();
8701 int
8702 main ()
8703 {
8704 connect ();
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711   (eval $ac_link) 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -z "$ac_c_werror_flag"
8719                          || test ! -s conftest.err'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; } &&
8725          { ac_try='test -s conftest$ac_exeext'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; }; then
8731   ac_cv_lib_socket_connect=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_cv_lib_socket_connect=no
8737 fi
8738 rm -f conftest.err conftest.$ac_objext \
8739       conftest$ac_exeext conftest.$ac_ext
8740 LIBS=$ac_check_lib_save_LIBS
8741 fi
8742 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8743 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8744 if test $ac_cv_lib_socket_connect = yes; then
8745   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8746 fi
8747
8748     fi
8749
8750     # Guillermo Gomez says -lposix is necessary on A/UX.
8751     echo "$as_me:$LINENO: checking for remove" >&5
8752 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8753 if test "${ac_cv_func_remove+set}" = set; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756   if test x$gcc_no_link = xyes; then
8757   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759    { (exit 1); exit 1; }; }
8760 fi
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
8768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8769 #define remove innocuous_remove
8770
8771 /* System header to define __stub macros and hopefully few prototypes,
8772     which can conflict with char remove (); below.
8773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774     <limits.h> exists even on freestanding compilers.  */
8775
8776 #ifdef __STDC__
8777 # include <limits.h>
8778 #else
8779 # include <assert.h>
8780 #endif
8781
8782 #undef remove
8783
8784 /* Override any gcc2 internal prototype to avoid an error.  */
8785 #ifdef __cplusplus
8786 extern "C"
8787 {
8788 #endif
8789 /* We use char because int might match the return type of a gcc2
8790    builtin and then its argument prototype would still apply.  */
8791 char remove ();
8792 /* The GNU C library defines this for functions which it implements
8793     to always fail with ENOSYS.  Some functions are actually named
8794     something starting with __ and the normal name is an alias.  */
8795 #if defined (__stub_remove) || defined (__stub___remove)
8796 choke me
8797 #else
8798 char (*f) () = remove;
8799 #endif
8800 #ifdef __cplusplus
8801 }
8802 #endif
8803
8804 int
8805 main ()
8806 {
8807 return f != remove;
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814   (eval $ac_link) 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } &&
8821          { ac_try='test -z "$ac_c_werror_flag"
8822                          || test ! -s conftest.err'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; } &&
8828          { ac_try='test -s conftest$ac_exeext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   ac_cv_func_remove=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_func_remove=no
8840 fi
8841 rm -f conftest.err conftest.$ac_objext \
8842       conftest$ac_exeext conftest.$ac_ext
8843 fi
8844 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8845 echo "${ECHO_T}$ac_cv_func_remove" >&6
8846
8847     if test $ac_cv_func_remove = no; then
8848       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8849 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8850 if test "${ac_cv_lib_posix_remove+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lposix  $LIBS"
8855 if test x$gcc_no_link = xyes; then
8856   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8858    { (exit 1); exit 1; }; }
8859 fi
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866
8867 /* Override any gcc2 internal prototype to avoid an error.  */
8868 #ifdef __cplusplus
8869 extern "C"
8870 #endif
8871 /* We use char because int might match the return type of a gcc2
8872    builtin and then its argument prototype would still apply.  */
8873 char remove ();
8874 int
8875 main ()
8876 {
8877 remove ();
8878   ;
8879   return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884   (eval $ac_link) 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } &&
8891          { ac_try='test -z "$ac_c_werror_flag"
8892                          || test ! -s conftest.err'
8893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894   (eval $ac_try) 2>&5
8895   ac_status=$?
8896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897   (exit $ac_status); }; } &&
8898          { ac_try='test -s conftest$ac_exeext'
8899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900   (eval $ac_try) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; }; then
8904   ac_cv_lib_posix_remove=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_lib_posix_remove=no
8910 fi
8911 rm -f conftest.err conftest.$ac_objext \
8912       conftest$ac_exeext conftest.$ac_ext
8913 LIBS=$ac_check_lib_save_LIBS
8914 fi
8915 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8916 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8917 if test $ac_cv_lib_posix_remove = yes; then
8918   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8919 fi
8920
8921     fi
8922
8923     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8924     echo "$as_me:$LINENO: checking for shmat" >&5
8925 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8926 if test "${ac_cv_func_shmat+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929   if test x$gcc_no_link = xyes; then
8930   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8931 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8932    { (exit 1); exit 1; }; }
8933 fi
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
8941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8942 #define shmat innocuous_shmat
8943
8944 /* System header to define __stub macros and hopefully few prototypes,
8945     which can conflict with char shmat (); below.
8946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8947     <limits.h> exists even on freestanding compilers.  */
8948
8949 #ifdef __STDC__
8950 # include <limits.h>
8951 #else
8952 # include <assert.h>
8953 #endif
8954
8955 #undef shmat
8956
8957 /* Override any gcc2 internal prototype to avoid an error.  */
8958 #ifdef __cplusplus
8959 extern "C"
8960 {
8961 #endif
8962 /* We use char because int might match the return type of a gcc2
8963    builtin and then its argument prototype would still apply.  */
8964 char shmat ();
8965 /* The GNU C library defines this for functions which it implements
8966     to always fail with ENOSYS.  Some functions are actually named
8967     something starting with __ and the normal name is an alias.  */
8968 #if defined (__stub_shmat) || defined (__stub___shmat)
8969 choke me
8970 #else
8971 char (*f) () = shmat;
8972 #endif
8973 #ifdef __cplusplus
8974 }
8975 #endif
8976
8977 int
8978 main ()
8979 {
8980 return f != shmat;
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>conftest.er1
8988   ac_status=$?
8989   grep -v '^ *+' conftest.er1 >conftest.err
8990   rm -f conftest.er1
8991   cat conftest.err >&5
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); } &&
8994          { ac_try='test -z "$ac_c_werror_flag"
8995                          || test ! -s conftest.err'
8996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997   (eval $ac_try) 2>&5
8998   ac_status=$?
8999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000   (exit $ac_status); }; } &&
9001          { ac_try='test -s conftest$ac_exeext'
9002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003   (eval $ac_try) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); }; }; then
9007   ac_cv_func_shmat=yes
9008 else
9009   echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ac_cv_func_shmat=no
9013 fi
9014 rm -f conftest.err conftest.$ac_objext \
9015       conftest$ac_exeext conftest.$ac_ext
9016 fi
9017 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9018 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9019
9020     if test $ac_cv_func_shmat = no; then
9021       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9022 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9023 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lipc  $LIBS"
9028 if test x$gcc_no_link = xyes; then
9029   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9030 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9031    { (exit 1); exit 1; }; }
9032 fi
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h.  */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h.  */
9039
9040 /* Override any gcc2 internal prototype to avoid an error.  */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 /* We use char because int might match the return type of a gcc2
9045    builtin and then its argument prototype would still apply.  */
9046 char shmat ();
9047 int
9048 main ()
9049 {
9050 shmat ();
9051   ;
9052   return 0;
9053 }
9054 _ACEOF
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057   (eval $ac_link) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest$ac_exeext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_cv_lib_ipc_shmat=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_cv_lib_ipc_shmat=no
9083 fi
9084 rm -f conftest.err conftest.$ac_objext \
9085       conftest$ac_exeext conftest.$ac_ext
9086 LIBS=$ac_check_lib_save_LIBS
9087 fi
9088 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9089 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9090 if test $ac_cv_lib_ipc_shmat = yes; then
9091   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9092 fi
9093
9094     fi
9095   fi
9096
9097   # Check for libraries that X11R6 Xt/Xaw programs need.
9098   ac_save_LDFLAGS=$LDFLAGS
9099   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9100   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9101   # check for ICE first), but we must link in the order -lSM -lICE or
9102   # we get undefined symbols.  So assume we have SM if we have ICE.
9103   # These have to be linked with before -lX11, unlike the other
9104   # libraries we check for below, so use a different variable.
9105   # John Interrante, Karl Berry
9106   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9107 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9108 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9109   echo $ECHO_N "(cached) $ECHO_C" >&6
9110 else
9111   ac_check_lib_save_LIBS=$LIBS
9112 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9113 if test x$gcc_no_link = xyes; then
9114   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9116    { (exit 1); exit 1; }; }
9117 fi
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h.  */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h.  */
9124
9125 /* Override any gcc2 internal prototype to avoid an error.  */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 /* We use char because int might match the return type of a gcc2
9130    builtin and then its argument prototype would still apply.  */
9131 char IceConnectionNumber ();
9132 int
9133 main ()
9134 {
9135 IceConnectionNumber ();
9136   ;
9137   return 0;
9138 }
9139 _ACEOF
9140 rm -f conftest.$ac_objext conftest$ac_exeext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142   (eval $ac_link) 2>conftest.er1
9143   ac_status=$?
9144   grep -v '^ *+' conftest.er1 >conftest.err
9145   rm -f conftest.er1
9146   cat conftest.err >&5
9147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148   (exit $ac_status); } &&
9149          { ac_try='test -z "$ac_c_werror_flag"
9150                          || test ! -s conftest.err'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; } &&
9156          { ac_try='test -s conftest$ac_exeext'
9157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9158   (eval $ac_try) 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; }; then
9162   ac_cv_lib_ICE_IceConnectionNumber=yes
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167 ac_cv_lib_ICE_IceConnectionNumber=no
9168 fi
9169 rm -f conftest.err conftest.$ac_objext \
9170       conftest$ac_exeext conftest.$ac_ext
9171 LIBS=$ac_check_lib_save_LIBS
9172 fi
9173 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9174 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9175 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9176   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9177 fi
9178
9179   LDFLAGS=$ac_save_LDFLAGS
9180
9181 fi
9182
9183
9184 # FIXME: this should be _libs on some hosts.
9185 libsubdir=.libs
9186
9187 # extra LD Flags which are required for targets
9188 case "${host}" in
9189 *-*-darwin[0-7].*)
9190     # For now we have to disable it on darwin[8-9] because it slows down
9191     # the linking phase. A possible bug in ld?
9192     # on Darwin -single_module speeds up loading of the dynamic libraries.
9193     extra_ldflags_libjava=-Wl,-single_module
9194     ;;
9195 esac
9196
9197
9198 # Allow the GC to be disabled.  Can be useful when debugging.
9199 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9200 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9201 # Check whether --enable-java-gc or --disable-java-gc was given.
9202 if test "${enable_java_gc+set}" = set; then
9203   enableval="$enable_java_gc"
9204   GC=$enableval
9205 else
9206   GC=boehm
9207 fi;
9208 GCLIBS=
9209 GCINCS=
9210 GCDEPS=
9211 GCSPEC=
9212 JC1GCSPEC=
9213 GCTESTSPEC=
9214 case "$GC" in
9215  boehm)
9216     echo "$as_me:$LINENO: result: boehm" >&5
9217 echo "${ECHO_T}boehm" >&6
9218     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9219     JC1GCSPEC='-fuse-boehm-gc'
9220     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9221     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9222     GCOBJS=boehm.lo
9223     GCHDR=boehm-gc.h
9224     # The POSIX thread support needs to know this.
9225
9226 cat >>confdefs.h <<\_ACEOF
9227 #define HAVE_BOEHM_GC 1
9228 _ACEOF
9229
9230     ;;
9231  no)
9232     echo "$as_me:$LINENO: result: none" >&5
9233 echo "${ECHO_T}none" >&6
9234     GCHDR=no-gc.h
9235     ;;
9236  *)
9237     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9238 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9239    { (exit 1); exit 1; }; }
9240     ;;
9241 esac
9242
9243
9244
9245
9246
9247
9248           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9249
9250
9251
9252 if test "$GC" = boehm; then
9253   USING_BOEHMGC_TRUE=
9254   USING_BOEHMGC_FALSE='#'
9255 else
9256   USING_BOEHMGC_TRUE='#'
9257   USING_BOEHMGC_FALSE=
9258 fi
9259
9260
9261
9262 if test "$GC" = no; then
9263   USING_NOGC_TRUE=
9264   USING_NOGC_FALSE='#'
9265 else
9266   USING_NOGC_TRUE='#'
9267   USING_NOGC_FALSE=
9268 fi
9269
9270
9271
9272 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9273 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9274 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9275 echo "$as_me:$LINENO: result: $THREADS" >&5
9276 echo "${ECHO_T}$THREADS" >&6
9277
9278 case "$THREADS" in
9279  no | none | single)
9280     THREADS=none
9281     ;;
9282  posix | posix95 | pthreads)
9283     THREADS=posix
9284     case "$host" in
9285      *-*-linux*)
9286
9287 cat >>confdefs.h <<\_ACEOF
9288 #define LINUX_THREADS 1
9289 _ACEOF
9290
9291         ;;
9292     esac
9293     ;;
9294  win32)
9295     ;;
9296  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9297     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9298 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9299    { (exit 1); exit 1; }; }
9300     ;;
9301  *)
9302     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9303 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9304    { (exit 1); exit 1; }; }
9305     ;;
9306 esac
9307
9308 THREADCXXFLAGS=
9309 THREADLDFLAGS=
9310 THREADLIBS=
9311 THREADINCS=
9312 THREADDEPS=
9313 THREADH=
9314 THREADSPEC=
9315 THREADSTARTFILESPEC=
9316 case "$THREADS" in
9317  posix)
9318     case "$host" in
9319      *-*-cygwin*)
9320         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9321         ;;
9322      *-*-freebsd[1234]*)
9323         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9324         # merely adds pthread_* functions) but it does have a -pthread switch
9325         # which is required at link-time to select -lc_r *instead* of -lc.
9326         THREADLDFLAGS=-pthread
9327         # Don't set THREADSPEC here as might be expected since -pthread is
9328         # not processed when found within a spec file, it must come from
9329         # the command line.  For now, the user must provide the -pthread
9330         # switch to link code compiled with gcj.  In future, consider adding
9331         # support for weak references to pthread_* functions ala gthr.h API.
9332         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9333         ;;
9334      *-*-freebsd*)
9335         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9336         # systems which support threads and -lpthread.
9337         THREADLDFLAGS=-pthread
9338         THREADSPEC=-lpthread
9339         ;;
9340      alpha*-dec-osf* | hppa*-hp-hpux*)
9341         THREADCXXFLAGS=-pthread
9342         # boehm-gc needs some functions from librt, so link that too.
9343         THREADLIBS='-lpthread -lrt'
9344         THREADSPEC='-lpthread -lrt'
9345         ;;
9346      *)
9347         THREADLIBS=-lpthread
9348         THREADSPEC=-lpthread
9349         ;;
9350     esac
9351     THREADH=posix-threads.h
9352     # MIT pthreads doesn't seem to have the mutexattr functions.
9353     # But for now we don't check for it.  We just assume you aren't
9354     # using MIT pthreads.
9355
9356 cat >>confdefs.h <<\_ACEOF
9357 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9358 _ACEOF
9359
9360
9361     # If we're using the Boehm GC, then we happen to know that it
9362     # defines _REENTRANT, so we don't bother.  Eww.
9363     if test "$GC" != boehm; then
9364
9365 cat >>confdefs.h <<\_ACEOF
9366 #define _REENTRANT 1
9367 _ACEOF
9368
9369     fi
9370
9371 cat >>confdefs.h <<\_ACEOF
9372 #define _POSIX_PTHREAD_SEMANTICS 1
9373 _ACEOF
9374
9375     ;;
9376
9377  win32)
9378     THREADH=win32-threads.h
9379     THREADCXXFLAGS=-mthreads
9380     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9381     # But we do not want the executables created to be dependent on
9382     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9383     # exception handling contexts.  The following kludge achieves this effect
9384     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9385     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9386     # A workaround is to explicitly use -mthreads while linking Java programs.
9387     # See PR libgcj/28263.
9388     #
9389     # FIXME: In Java we are able to detect thread death at the end of
9390     # Thread.run() so we should be able to clean up the exception handling
9391     # contexts ourselves.
9392     THREADSTARTFILESPEC='crtmt%O%s'
9393     ;;
9394
9395  none)
9396     THREADH=no-threads.h
9397     ;;
9398 esac
9399           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 if test "$THREADS" = posix; then
9411   USING_POSIX_THREADS_TRUE=
9412   USING_POSIX_THREADS_FALSE='#'
9413 else
9414   USING_POSIX_THREADS_TRUE='#'
9415   USING_POSIX_THREADS_FALSE=
9416 fi
9417
9418
9419
9420 if test "$THREADS" = win32; then
9421   USING_WIN32_THREADS_TRUE=
9422   USING_WIN32_THREADS_FALSE='#'
9423 else
9424   USING_WIN32_THREADS_TRUE='#'
9425   USING_WIN32_THREADS_FALSE=
9426 fi
9427
9428
9429
9430 if test "$THREADS" = none; then
9431   USING_NO_THREADS_TRUE=
9432   USING_NO_THREADS_FALSE='#'
9433 else
9434   USING_NO_THREADS_TRUE='#'
9435   USING_NO_THREADS_FALSE=
9436 fi
9437
9438
9439
9440 if test "$use_libgcj_bc" = yes; then
9441   USE_LIBGCJ_BC_TRUE=
9442   USE_LIBGCJ_BC_FALSE='#'
9443 else
9444   USE_LIBGCJ_BC_TRUE='#'
9445   USE_LIBGCJ_BC_FALSE=
9446 fi
9447
9448
9449 if test -d sysdep; then true; else mkdir sysdep; fi
9450           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9451
9452           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9453
9454           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9455
9456
9457 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9458 if test "$use_libgcj_bc" = yes; then
9459   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9460 fi
9461
9462
9463 HASH_SYNC_SPEC=
9464 # Hash synchronization is only useful with posix threads right now.
9465 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9466    HASH_SYNC_SPEC=-fhash-synchronization
9467
9468 cat >>confdefs.h <<\_ACEOF
9469 #define JV_HASH_SYNCHRONIZATION 1
9470 _ACEOF
9471
9472 fi
9473
9474
9475
9476
9477 if test "$GCC" = yes; then
9478   USING_GCC_TRUE=
9479   USING_GCC_FALSE='#'
9480 else
9481   USING_GCC_TRUE='#'
9482   USING_GCC_FALSE=
9483 fi
9484
9485
9486 # We're in the tree with gcc, and need to include some of its headers.
9487 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
9488
9489 if test "x${with_newlib}" = "xyes"; then
9490    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9491    # may not work correctly, because the compiler may not be able to
9492    # link executables.
9493
9494    # We assume newlib.  This lets us hard-code the functions we know
9495    # we'll have.
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_MEMMOVE 1
9499 _ACEOF
9500
9501
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_MEMCPY 1
9504 _ACEOF
9505
9506
9507 cat >>confdefs.h <<\_ACEOF
9508 #define HAVE_STRERROR 1
9509 _ACEOF
9510
9511
9512 cat >>confdefs.h <<\_ACEOF
9513 #define HAVE_TIME 1
9514 _ACEOF
9515
9516
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_GMTIME_R 1
9519 _ACEOF
9520
9521
9522 cat >>confdefs.h <<\_ACEOF
9523 #define HAVE_LOCALTIME_R 1
9524 _ACEOF
9525
9526
9527 cat >>confdefs.h <<\_ACEOF
9528 #define HAVE_USLEEP_DECL 1
9529 _ACEOF
9530
9531    # This is only for POSIX threads.
9532
9533 cat >>confdefs.h <<\_ACEOF
9534 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9535 _ACEOF
9536
9537
9538    # Assume we do not have getuid and friends.
9539
9540 cat >>confdefs.h <<\_ACEOF
9541 #define NO_GETUID 1
9542 _ACEOF
9543
9544    PLATFORMNET=NoNet
9545 else
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577 for ac_func in strerror select fstat open fsync sleep opendir \
9578                    localtime_r readdir_r getpwuid_r getcwd \
9579                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9580                    nl_langinfo setlocale \
9581                    inet_pton uname inet_ntoa \
9582                    getrlimit sigaction ftruncate mmap \
9583                    getifaddrs
9584 do
9585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586 echo "$as_me:$LINENO: checking for $ac_func" >&5
9587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9588 if eval "test \"\${$as_ac_var+set}\" = set"; then
9589   echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591   if test x$gcc_no_link = xyes; then
9592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9594    { (exit 1); exit 1; }; }
9595 fi
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h.  */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h.  */
9602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9604 #define $ac_func innocuous_$ac_func
9605
9606 /* System header to define __stub macros and hopefully few prototypes,
9607     which can conflict with char $ac_func (); below.
9608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9609     <limits.h> exists even on freestanding compilers.  */
9610
9611 #ifdef __STDC__
9612 # include <limits.h>
9613 #else
9614 # include <assert.h>
9615 #endif
9616
9617 #undef $ac_func
9618
9619 /* Override any gcc2 internal prototype to avoid an error.  */
9620 #ifdef __cplusplus
9621 extern "C"
9622 {
9623 #endif
9624 /* We use char because int might match the return type of a gcc2
9625    builtin and then its argument prototype would still apply.  */
9626 char $ac_func ();
9627 /* The GNU C library defines this for functions which it implements
9628     to always fail with ENOSYS.  Some functions are actually named
9629     something starting with __ and the normal name is an alias.  */
9630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9631 choke me
9632 #else
9633 char (*f) () = $ac_func;
9634 #endif
9635 #ifdef __cplusplus
9636 }
9637 #endif
9638
9639 int
9640 main ()
9641 {
9642 return f != $ac_func;
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649   (eval $ac_link) 2>conftest.er1
9650   ac_status=$?
9651   grep -v '^ *+' conftest.er1 >conftest.err
9652   rm -f conftest.er1
9653   cat conftest.err >&5
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); } &&
9656          { ac_try='test -z "$ac_c_werror_flag"
9657                          || test ! -s conftest.err'
9658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659   (eval $ac_try) 2>&5
9660   ac_status=$?
9661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); }; } &&
9663          { ac_try='test -s conftest$ac_exeext'
9664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665   (eval $ac_try) 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; }; then
9669   eval "$as_ac_var=yes"
9670 else
9671   echo "$as_me: failed program was:" >&5
9672 sed 's/^/| /' conftest.$ac_ext >&5
9673
9674 eval "$as_ac_var=no"
9675 fi
9676 rm -f conftest.err conftest.$ac_objext \
9677       conftest$ac_exeext conftest.$ac_ext
9678 fi
9679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9681 if test `eval echo '${'$as_ac_var'}'` = yes; then
9682   cat >>confdefs.h <<_ACEOF
9683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9684 _ACEOF
9685
9686 fi
9687 done
9688
9689
9690
9691 for ac_func in inet_aton inet_addr
9692 do
9693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9694 echo "$as_me:$LINENO: checking for $ac_func" >&5
9695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9696 if eval "test \"\${$as_ac_var+set}\" = set"; then
9697   echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699   if test x$gcc_no_link = xyes; then
9700   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9702    { (exit 1); exit 1; }; }
9703 fi
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h.  */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h.  */
9710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9712 #define $ac_func innocuous_$ac_func
9713
9714 /* System header to define __stub macros and hopefully few prototypes,
9715     which can conflict with char $ac_func (); below.
9716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9717     <limits.h> exists even on freestanding compilers.  */
9718
9719 #ifdef __STDC__
9720 # include <limits.h>
9721 #else
9722 # include <assert.h>
9723 #endif
9724
9725 #undef $ac_func
9726
9727 /* Override any gcc2 internal prototype to avoid an error.  */
9728 #ifdef __cplusplus
9729 extern "C"
9730 {
9731 #endif
9732 /* We use char because int might match the return type of a gcc2
9733    builtin and then its argument prototype would still apply.  */
9734 char $ac_func ();
9735 /* The GNU C library defines this for functions which it implements
9736     to always fail with ENOSYS.  Some functions are actually named
9737     something starting with __ and the normal name is an alias.  */
9738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9739 choke me
9740 #else
9741 char (*f) () = $ac_func;
9742 #endif
9743 #ifdef __cplusplus
9744 }
9745 #endif
9746
9747 int
9748 main ()
9749 {
9750 return f != $ac_func;
9751   ;
9752   return 0;
9753 }
9754 _ACEOF
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9757   (eval $ac_link) 2>conftest.er1
9758   ac_status=$?
9759   grep -v '^ *+' conftest.er1 >conftest.err
9760   rm -f conftest.er1
9761   cat conftest.err >&5
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -z "$ac_c_werror_flag"
9765                          || test ! -s conftest.err'
9766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767   (eval $ac_try) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; } &&
9771          { ac_try='test -s conftest$ac_exeext'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; }; then
9777   eval "$as_ac_var=yes"
9778 else
9779   echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9781
9782 eval "$as_ac_var=no"
9783 fi
9784 rm -f conftest.err conftest.$ac_objext \
9785       conftest$ac_exeext conftest.$ac_ext
9786 fi
9787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9789 if test `eval echo '${'$as_ac_var'}'` = yes; then
9790   cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9792 _ACEOF
9793  break
9794 fi
9795 done
9796
9797    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9798 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9799 if test "${ac_cv_header_stdc+set}" = set; then
9800   echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802   cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808 #include <stdlib.h>
9809 #include <stdarg.h>
9810 #include <string.h>
9811 #include <float.h>
9812
9813 int
9814 main ()
9815 {
9816
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823   (eval $ac_compile) 2>conftest.er1
9824   ac_status=$?
9825   grep -v '^ *+' conftest.er1 >conftest.err
9826   rm -f conftest.er1
9827   cat conftest.err >&5
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } &&
9830          { ac_try='test -z "$ac_c_werror_flag"
9831                          || test ! -s conftest.err'
9832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833   (eval $ac_try) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); }; } &&
9837          { ac_try='test -s conftest.$ac_objext'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   ac_cv_header_stdc=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_cv_header_stdc=no
9849 fi
9850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9851
9852 if test $ac_cv_header_stdc = yes; then
9853   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9854   cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860 #include <string.h>
9861
9862 _ACEOF
9863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9864   $EGREP "memchr" >/dev/null 2>&1; then
9865   :
9866 else
9867   ac_cv_header_stdc=no
9868 fi
9869 rm -f conftest*
9870
9871 fi
9872
9873 if test $ac_cv_header_stdc = yes; then
9874   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9875   cat >conftest.$ac_ext <<_ACEOF
9876 /* confdefs.h.  */
9877 _ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h.  */
9881 #include <stdlib.h>
9882
9883 _ACEOF
9884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9885   $EGREP "free" >/dev/null 2>&1; then
9886   :
9887 else
9888   ac_cv_header_stdc=no
9889 fi
9890 rm -f conftest*
9891
9892 fi
9893
9894 if test $ac_cv_header_stdc = yes; then
9895   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9896   if test "$cross_compiling" = yes; then
9897   :
9898 else
9899   cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905 #include <ctype.h>
9906 #if ((' ' & 0x0FF) == 0x020)
9907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9909 #else
9910 # define ISLOWER(c) \
9911                    (('a' <= (c) && (c) <= 'i') \
9912                      || ('j' <= (c) && (c) <= 'r') \
9913                      || ('s' <= (c) && (c) <= 'z'))
9914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9915 #endif
9916
9917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9918 int
9919 main ()
9920 {
9921   int i;
9922   for (i = 0; i < 256; i++)
9923     if (XOR (islower (i), ISLOWER (i))
9924         || toupper (i) != TOUPPER (i))
9925       exit(2);
9926   exit (0);
9927 }
9928 _ACEOF
9929 rm -f conftest$ac_exeext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931   (eval $ac_link) 2>&5
9932   ac_status=$?
9933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940   :
9941 else
9942   echo "$as_me: program exited with status $ac_status" >&5
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 ( exit $ac_status )
9947 ac_cv_header_stdc=no
9948 fi
9949 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9950 fi
9951 fi
9952 fi
9953 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9954 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9955 if test $ac_cv_header_stdc = yes; then
9956
9957 cat >>confdefs.h <<\_ACEOF
9958 #define STDC_HEADERS 1
9959 _ACEOF
9960
9961 fi
9962
9963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9974                   inttypes.h stdint.h unistd.h
9975 do
9976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9977 echo "$as_me:$LINENO: checking for $ac_header" >&5
9978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988 $ac_includes_default
9989
9990 #include <$ac_header>
9991 _ACEOF
9992 rm -f conftest.$ac_objext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9994   (eval $ac_compile) 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } &&
10001          { ac_try='test -z "$ac_c_werror_flag"
10002                          || test ! -s conftest.err'
10003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004   (eval $ac_try) 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; } &&
10008          { ac_try='test -s conftest.$ac_objext'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   eval "$as_ac_Header=yes"
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 eval "$as_ac_Header=no"
10020 fi
10021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10022 fi
10023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10026   cat >>confdefs.h <<_ACEOF
10027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10028 _ACEOF
10029
10030 fi
10031
10032 done
10033
10034
10035
10036
10037
10038 for ac_header in unistd.h dlfcn.h sys/resource.h
10039 do
10040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10042   echo "$as_me:$LINENO: checking for $ac_header" >&5
10043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10045   echo $ECHO_N "(cached) $ECHO_C" >&6
10046 fi
10047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10049 else
10050   # Is the header compilable?
10051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 $ac_includes_default
10060 #include <$ac_header>
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10064   (eval $ac_compile) 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } &&
10071          { ac_try='test -z "$ac_c_werror_flag"
10072                          || test ! -s conftest.err'
10073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10074   (eval $ac_try) 2>&5
10075   ac_status=$?
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); }; } &&
10078          { ac_try='test -s conftest.$ac_objext'
10079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080   (eval $ac_try) 2>&5
10081   ac_status=$?
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); }; }; then
10084   ac_header_compiler=yes
10085 else
10086   echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_header_compiler=no
10090 fi
10091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10093 echo "${ECHO_T}$ac_header_compiler" >&6
10094
10095 # Is the header present?
10096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 #include <$ac_header>
10105 _ACEOF
10106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10108   ac_status=$?
10109   grep -v '^ *+' conftest.er1 >conftest.err
10110   rm -f conftest.er1
10111   cat conftest.err >&5
10112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113   (exit $ac_status); } >/dev/null; then
10114   if test -s conftest.err; then
10115     ac_cpp_err=$ac_c_preproc_warn_flag
10116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10117   else
10118     ac_cpp_err=
10119   fi
10120 else
10121   ac_cpp_err=yes
10122 fi
10123 if test -z "$ac_cpp_err"; then
10124   ac_header_preproc=yes
10125 else
10126   echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129   ac_header_preproc=no
10130 fi
10131 rm -f conftest.err conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6
10134
10135 # So?  What about this header?
10136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10137   yes:no: )
10138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10142     ac_header_preproc=yes
10143     ;;
10144   no:yes:* )
10145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10157     (
10158       cat <<\_ASBOX
10159 ## ---------------------------------- ##
10160 ## Report this to the libjava lists.  ##
10161 ## ---------------------------------- ##
10162 _ASBOX
10163     ) |
10164       sed "s/^/$as_me: WARNING:     /" >&2
10165     ;;
10166 esac
10167 echo "$as_me:$LINENO: checking for $ac_header" >&5
10168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10170   echo $ECHO_N "(cached) $ECHO_C" >&6
10171 else
10172   eval "$as_ac_Header=\$ac_header_preproc"
10173 fi
10174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10176
10177 fi
10178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10179   cat >>confdefs.h <<_ACEOF
10180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10181 _ACEOF
10182
10183 fi
10184
10185 done
10186
10187    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10188    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10189 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10190 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10191   echo $ECHO_N "(cached) $ECHO_C" >&6
10192 else
10193   ac_check_lib_save_LIBS=$LIBS
10194 LIBS="-ldl  $LIBS"
10195 if test x$gcc_no_link = xyes; then
10196   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10197 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10198    { (exit 1); exit 1; }; }
10199 fi
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206
10207 /* Override any gcc2 internal prototype to avoid an error.  */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 /* We use char because int might match the return type of a gcc2
10212    builtin and then its argument prototype would still apply.  */
10213 char dladdr ();
10214 int
10215 main ()
10216 {
10217 dladdr ();
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext conftest$ac_exeext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10224   (eval $ac_link) 2>conftest.er1
10225   ac_status=$?
10226   grep -v '^ *+' conftest.er1 >conftest.err
10227   rm -f conftest.er1
10228   cat conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -z "$ac_c_werror_flag"
10232                          || test ! -s conftest.err'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; } &&
10238          { ac_try='test -s conftest$ac_exeext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_lib_dl_dladdr=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ac_cv_lib_dl_dladdr=no
10250 fi
10251 rm -f conftest.err conftest.$ac_objext \
10252       conftest$ac_exeext conftest.$ac_ext
10253 LIBS=$ac_check_lib_save_LIBS
10254 fi
10255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10256 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10257 if test $ac_cv_lib_dl_dladdr = yes; then
10258
10259
10260 cat >>confdefs.h <<\_ACEOF
10261 #define HAVE_DLADDR 1
10262 _ACEOF
10263
10264 else
10265
10266        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10267 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10268 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10269   echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271   ac_check_lib_save_LIBS=$LIBS
10272 LIBS="-ldld  $LIBS"
10273 if test x$gcc_no_link = xyes; then
10274   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10276    { (exit 1); exit 1; }; }
10277 fi
10278 cat >conftest.$ac_ext <<_ACEOF
10279 /* confdefs.h.  */
10280 _ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h.  */
10284
10285 /* Override any gcc2 internal prototype to avoid an error.  */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 /* We use char because int might match the return type of a gcc2
10290    builtin and then its argument prototype would still apply.  */
10291 char dladdr ();
10292 int
10293 main ()
10294 {
10295 dladdr ();
10296   ;
10297   return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10302   (eval $ac_link) 2>conftest.er1
10303   ac_status=$?
10304   grep -v '^ *+' conftest.er1 >conftest.err
10305   rm -f conftest.er1
10306   cat conftest.err >&5
10307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308   (exit $ac_status); } &&
10309          { ac_try='test -z "$ac_c_werror_flag"
10310                          || test ! -s conftest.err'
10311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10312   (eval $ac_try) 2>&5
10313   ac_status=$?
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); }; } &&
10316          { ac_try='test -s conftest$ac_exeext'
10317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318   (eval $ac_try) 2>&5
10319   ac_status=$?
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); }; }; then
10322   ac_cv_lib_dld_dladdr=yes
10323 else
10324   echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 ac_cv_lib_dld_dladdr=no
10328 fi
10329 rm -f conftest.err conftest.$ac_objext \
10330       conftest$ac_exeext conftest.$ac_ext
10331 LIBS=$ac_check_lib_save_LIBS
10332 fi
10333 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10334 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10335 if test $ac_cv_lib_dld_dladdr = yes; then
10336
10337
10338 cat >>confdefs.h <<\_ACEOF
10339 #define HAVE_DLADDR 1
10340 _ACEOF
10341
10342 fi
10343
10344 fi
10345
10346
10347    if test x"$cross_compiling" = x"no"; then
10348      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10349 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10350 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10351   echo $ECHO_N "(cached) $ECHO_C" >&6
10352 else
10353   test "$cross_compiling" = yes &&
10354   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10355 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10356    { (exit 1); exit 1; }; }
10357 if test -r "/proc/self/exe"; then
10358   ac_cv_file__proc_self_exe=yes
10359 else
10360   ac_cv_file__proc_self_exe=no
10361 fi
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10364 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10365 if test $ac_cv_file__proc_self_exe = yes; then
10366
10367 cat >>confdefs.h <<_ACEOF
10368 #define HAVE__PROC_SELF_EXE 1
10369 _ACEOF
10370
10371
10372
10373 cat >>confdefs.h <<\_ACEOF
10374 #define HAVE_PROC_SELF_EXE 1
10375 _ACEOF
10376
10377 fi
10378
10379      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
10380 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
10381 if test "${ac_cv_file__proc_self_maps+set}" = set; then
10382   echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384   test "$cross_compiling" = yes &&
10385   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10386 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10387    { (exit 1); exit 1; }; }
10388 if test -r "/proc/self/maps"; then
10389   ac_cv_file__proc_self_maps=yes
10390 else
10391   ac_cv_file__proc_self_maps=no
10392 fi
10393 fi
10394 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
10395 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
10396 if test $ac_cv_file__proc_self_maps = yes; then
10397
10398 cat >>confdefs.h <<_ACEOF
10399 #define HAVE__PROC_SELF_MAPS 1
10400 _ACEOF
10401
10402
10403
10404 cat >>confdefs.h <<\_ACEOF
10405 #define HAVE_PROC_SELF_MAPS 1
10406 _ACEOF
10407
10408 fi
10409
10410    else
10411      case $host in
10412      *-linux*)
10413
10414 cat >>confdefs.h <<\_ACEOF
10415 #define HAVE_PROC_SELF_EXE 1
10416 _ACEOF
10417
10418
10419 cat >>confdefs.h <<\_ACEOF
10420 #define HAVE_PROC_SELF_MAPS 1
10421 _ACEOF
10422
10423        ;;
10424      esac
10425    fi
10426
10427
10428       if test "X$prefix" = "XNONE"; then
10429     acl_final_prefix="$ac_default_prefix"
10430   else
10431     acl_final_prefix="$prefix"
10432   fi
10433   if test "X$exec_prefix" = "XNONE"; then
10434     acl_final_exec_prefix='${prefix}'
10435   else
10436     acl_final_exec_prefix="$exec_prefix"
10437   fi
10438   acl_save_prefix="$prefix"
10439   prefix="$acl_final_prefix"
10440   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10441   prefix="$acl_save_prefix"
10442
10443
10444 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10445 if test "${with_gnu_ld+set}" = set; then
10446   withval="$with_gnu_ld"
10447   test "$withval" = no || with_gnu_ld=yes
10448 else
10449   with_gnu_ld=no
10450 fi;
10451 # Prepare PATH_SEPARATOR.
10452 # The user is always right.
10453 if test "${PATH_SEPARATOR+set}" != set; then
10454   echo "#! /bin/sh" >conf$$.sh
10455   echo  "exit 0"   >>conf$$.sh
10456   chmod +x conf$$.sh
10457   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10458     PATH_SEPARATOR=';'
10459   else
10460     PATH_SEPARATOR=:
10461   fi
10462   rm -f conf$$.sh
10463 fi
10464 ac_prog=ld
10465 if test "$GCC" = yes; then
10466   # Check if gcc -print-prog-name=ld gives a path.
10467   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10468 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10469   case $host in
10470   *-*-mingw*)
10471     # gcc leaves a trailing carriage return which upsets mingw
10472     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10473   *)
10474     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10475   esac
10476   case $ac_prog in
10477     # Accept absolute paths.
10478     [\\/]* | [A-Za-z]:[\\/]*)
10479       re_direlt='/[^/][^/]*/\.\./'
10480       # Canonicalize the path of ld
10481       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10482       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10483         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10484       done
10485       test -z "$LD" && LD="$ac_prog"
10486       ;;
10487   "")
10488     # If it fails, then pretend we aren't using GCC.
10489     ac_prog=ld
10490     ;;
10491   *)
10492     # If it is relative, then search for the first ld in PATH.
10493     with_gnu_ld=unknown
10494     ;;
10495   esac
10496 elif test "$with_gnu_ld" = yes; then
10497   echo "$as_me:$LINENO: checking for GNU ld" >&5
10498 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10499 else
10500   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10501 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10502 fi
10503 if test "${acl_cv_path_LD+set}" = set; then
10504   echo $ECHO_N "(cached) $ECHO_C" >&6
10505 else
10506   if test -z "$LD"; then
10507   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10508   for ac_dir in $PATH; do
10509     test -z "$ac_dir" && ac_dir=.
10510     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10511       acl_cv_path_LD="$ac_dir/$ac_prog"
10512       # Check to see if the program is GNU ld.  I'd rather use --version,
10513       # but apparently some GNU ld's only accept -v.
10514       # Break only if it was the GNU/non-GNU ld that we prefer.
10515       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10516         test "$with_gnu_ld" != no && break
10517       else
10518         test "$with_gnu_ld" != yes && break
10519       fi
10520     fi
10521   done
10522   IFS="$ac_save_ifs"
10523 else
10524   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10525 fi
10526 fi
10527
10528 LD="$acl_cv_path_LD"
10529 if test -n "$LD"; then
10530   echo "$as_me:$LINENO: result: $LD" >&5
10531 echo "${ECHO_T}$LD" >&6
10532 else
10533   echo "$as_me:$LINENO: result: no" >&5
10534 echo "${ECHO_T}no" >&6
10535 fi
10536 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10537 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10538    { (exit 1); exit 1; }; }
10539 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10540 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10541 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10542   echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10545 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10546   acl_cv_prog_gnu_ld=yes
10547 else
10548   acl_cv_prog_gnu_ld=no
10549 fi
10550 fi
10551 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10552 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10553 with_gnu_ld=$acl_cv_prog_gnu_ld
10554
10555
10556
10557                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10558 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10559 if test "${acl_cv_rpath+set}" = set; then
10560   echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562
10563     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10564     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10565     . ./conftest.sh
10566     rm -f ./conftest.sh
10567     acl_cv_rpath=done
10568
10569 fi
10570 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10571 echo "${ECHO_T}$acl_cv_rpath" >&6
10572   wl="$acl_cv_wl"
10573   libext="$acl_cv_libext"
10574   shlibext="$acl_cv_shlibext"
10575   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10576   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10577   hardcode_direct="$acl_cv_hardcode_direct"
10578   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10579     # Check whether --enable-rpath or --disable-rpath was given.
10580 if test "${enable_rpath+set}" = set; then
10581   enableval="$enable_rpath"
10582   :
10583 else
10584   enable_rpath=yes
10585 fi;
10586
10587
10588
10589
10590
10591
10592
10593     use_additional=yes
10594
10595   acl_save_prefix="$prefix"
10596   prefix="$acl_final_prefix"
10597   acl_save_exec_prefix="$exec_prefix"
10598   exec_prefix="$acl_final_exec_prefix"
10599
10600     eval additional_includedir=\"$includedir\"
10601     eval additional_libdir=\"$libdir\"
10602
10603   exec_prefix="$acl_save_exec_prefix"
10604   prefix="$acl_save_prefix"
10605
10606
10607 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10608 if test "${with_libiconv_prefix+set}" = set; then
10609   withval="$with_libiconv_prefix"
10610
10611     if test "X$withval" = "Xno"; then
10612       use_additional=no
10613     else
10614       if test "X$withval" = "X"; then
10615
10616   acl_save_prefix="$prefix"
10617   prefix="$acl_final_prefix"
10618   acl_save_exec_prefix="$exec_prefix"
10619   exec_prefix="$acl_final_exec_prefix"
10620
10621           eval additional_includedir=\"$includedir\"
10622           eval additional_libdir=\"$libdir\"
10623
10624   exec_prefix="$acl_save_exec_prefix"
10625   prefix="$acl_save_prefix"
10626
10627       else
10628         additional_includedir="$withval/include"
10629         additional_libdir="$withval/lib"
10630       fi
10631     fi
10632
10633 fi;
10634       LIBICONV=
10635   LTLIBICONV=
10636   INCICONV=
10637   rpathdirs=
10638   ltrpathdirs=
10639   names_already_handled=
10640   names_next_round='iconv '
10641   while test -n "$names_next_round"; do
10642     names_this_round="$names_next_round"
10643     names_next_round=
10644     for name in $names_this_round; do
10645       already_handled=
10646       for n in $names_already_handled; do
10647         if test "$n" = "$name"; then
10648           already_handled=yes
10649           break
10650         fi
10651       done
10652       if test -z "$already_handled"; then
10653         names_already_handled="$names_already_handled $name"
10654                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10655         eval value=\"\$HAVE_LIB$uppername\"
10656         if test -n "$value"; then
10657           if test "$value" = yes; then
10658             eval value=\"\$LIB$uppername\"
10659             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10660             eval value=\"\$LTLIB$uppername\"
10661             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10662           else
10663                                     :
10664           fi
10665         else
10666                               found_dir=
10667           found_la=
10668           found_so=
10669           found_a=
10670           if test $use_additional = yes; then
10671             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10672               found_dir="$additional_libdir"
10673               found_so="$additional_libdir/lib$name.$shlibext"
10674               if test -f "$additional_libdir/lib$name.la"; then
10675                 found_la="$additional_libdir/lib$name.la"
10676               fi
10677             else
10678               if test -f "$additional_libdir/lib$name.$libext"; then
10679                 found_dir="$additional_libdir"
10680                 found_a="$additional_libdir/lib$name.$libext"
10681                 if test -f "$additional_libdir/lib$name.la"; then
10682                   found_la="$additional_libdir/lib$name.la"
10683                 fi
10684               fi
10685             fi
10686           fi
10687           if test "X$found_dir" = "X"; then
10688             for x in $LDFLAGS $LTLIBICONV; do
10689
10690   acl_save_prefix="$prefix"
10691   prefix="$acl_final_prefix"
10692   acl_save_exec_prefix="$exec_prefix"
10693   exec_prefix="$acl_final_exec_prefix"
10694   eval x=\"$x\"
10695   exec_prefix="$acl_save_exec_prefix"
10696   prefix="$acl_save_prefix"
10697
10698               case "$x" in
10699                 -L*)
10700                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10701                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10702                     found_dir="$dir"
10703                     found_so="$dir/lib$name.$shlibext"
10704                     if test -f "$dir/lib$name.la"; then
10705                       found_la="$dir/lib$name.la"
10706                     fi
10707                   else
10708                     if test -f "$dir/lib$name.$libext"; then
10709                       found_dir="$dir"
10710                       found_a="$dir/lib$name.$libext"
10711                       if test -f "$dir/lib$name.la"; then
10712                         found_la="$dir/lib$name.la"
10713                       fi
10714                     fi
10715                   fi
10716                   ;;
10717               esac
10718               if test "X$found_dir" != "X"; then
10719                 break
10720               fi
10721             done
10722           fi
10723           if test "X$found_dir" != "X"; then
10724                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10725             if test "X$found_so" != "X"; then
10726                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10727                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10728               else
10729                                                                                 haveit=
10730                 for x in $ltrpathdirs; do
10731                   if test "X$x" = "X$found_dir"; then
10732                     haveit=yes
10733                     break
10734                   fi
10735                 done
10736                 if test -z "$haveit"; then
10737                   ltrpathdirs="$ltrpathdirs $found_dir"
10738                 fi
10739                                 if test "$hardcode_direct" = yes; then
10740                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10741                 else
10742                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10743                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10744                                                             haveit=
10745                     for x in $rpathdirs; do
10746                       if test "X$x" = "X$found_dir"; then
10747                         haveit=yes
10748                         break
10749                       fi
10750                     done
10751                     if test -z "$haveit"; then
10752                       rpathdirs="$rpathdirs $found_dir"
10753                     fi
10754                   else
10755                                                                                 haveit=
10756                     for x in $LDFLAGS $LIBICONV; do
10757
10758   acl_save_prefix="$prefix"
10759   prefix="$acl_final_prefix"
10760   acl_save_exec_prefix="$exec_prefix"
10761   exec_prefix="$acl_final_exec_prefix"
10762   eval x=\"$x\"
10763   exec_prefix="$acl_save_exec_prefix"
10764   prefix="$acl_save_prefix"
10765
10766                       if test "X$x" = "X-L$found_dir"; then
10767                         haveit=yes
10768                         break
10769                       fi
10770                     done
10771                     if test -z "$haveit"; then
10772                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10773                     fi
10774                     if test "$hardcode_minus_L" != no; then
10775                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10776                     else
10777                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10778                     fi
10779                   fi
10780                 fi
10781               fi
10782             else
10783               if test "X$found_a" != "X"; then
10784                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10785               else
10786                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10787               fi
10788             fi
10789                         additional_includedir=
10790             case "$found_dir" in
10791               */lib | */lib/)
10792                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10793                 additional_includedir="$basedir/include"
10794                 ;;
10795             esac
10796             if test "X$additional_includedir" != "X"; then
10797                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10798                 haveit=
10799                 if test "X$additional_includedir" = "X/usr/local/include"; then
10800                   if test -n "$GCC"; then
10801                     case $host_os in
10802                       linux*) haveit=yes;;
10803                     esac
10804                   fi
10805                 fi
10806                 if test -z "$haveit"; then
10807                   for x in $CPPFLAGS $INCICONV; do
10808
10809   acl_save_prefix="$prefix"
10810   prefix="$acl_final_prefix"
10811   acl_save_exec_prefix="$exec_prefix"
10812   exec_prefix="$acl_final_exec_prefix"
10813   eval x=\"$x\"
10814   exec_prefix="$acl_save_exec_prefix"
10815   prefix="$acl_save_prefix"
10816
10817                     if test "X$x" = "X-I$additional_includedir"; then
10818                       haveit=yes
10819                       break
10820                     fi
10821                   done
10822                   if test -z "$haveit"; then
10823                     if test -d "$additional_includedir"; then
10824                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10825                     fi
10826                   fi
10827                 fi
10828               fi
10829             fi
10830                         if test -n "$found_la"; then
10831                                                         save_libdir="$libdir"
10832               case "$found_la" in
10833                 */* | *\\*) . "$found_la" ;;
10834                 *) . "./$found_la" ;;
10835               esac
10836               libdir="$save_libdir"
10837                             for dep in $dependency_libs; do
10838                 case "$dep" in
10839                   -L*)
10840                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10841                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10842                       haveit=
10843                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10844                         if test -n "$GCC"; then
10845                           case $host_os in
10846                             linux*) haveit=yes;;
10847                           esac
10848                         fi
10849                       fi
10850                       if test -z "$haveit"; then
10851                         haveit=
10852                         for x in $LDFLAGS $LIBICONV; do
10853
10854   acl_save_prefix="$prefix"
10855   prefix="$acl_final_prefix"
10856   acl_save_exec_prefix="$exec_prefix"
10857   exec_prefix="$acl_final_exec_prefix"
10858   eval x=\"$x\"
10859   exec_prefix="$acl_save_exec_prefix"
10860   prefix="$acl_save_prefix"
10861
10862                           if test "X$x" = "X-L$additional_libdir"; then
10863                             haveit=yes
10864                             break
10865                           fi
10866                         done
10867                         if test -z "$haveit"; then
10868                           if test -d "$additional_libdir"; then
10869                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10870                           fi
10871                         fi
10872                         haveit=
10873                         for x in $LDFLAGS $LTLIBICONV; do
10874
10875   acl_save_prefix="$prefix"
10876   prefix="$acl_final_prefix"
10877   acl_save_exec_prefix="$exec_prefix"
10878   exec_prefix="$acl_final_exec_prefix"
10879   eval x=\"$x\"
10880   exec_prefix="$acl_save_exec_prefix"
10881   prefix="$acl_save_prefix"
10882
10883                           if test "X$x" = "X-L$additional_libdir"; then
10884                             haveit=yes
10885                             break
10886                           fi
10887                         done
10888                         if test -z "$haveit"; then
10889                           if test -d "$additional_libdir"; then
10890                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10891                           fi
10892                         fi
10893                       fi
10894                     fi
10895                     ;;
10896                   -R*)
10897                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10898                     if test "$enable_rpath" != no; then
10899                                                                   haveit=
10900                       for x in $rpathdirs; do
10901                         if test "X$x" = "X$dir"; then
10902                           haveit=yes
10903                           break
10904                         fi
10905                       done
10906                       if test -z "$haveit"; then
10907                         rpathdirs="$rpathdirs $dir"
10908                       fi
10909                                                                   haveit=
10910                       for x in $ltrpathdirs; do
10911                         if test "X$x" = "X$dir"; then
10912                           haveit=yes
10913                           break
10914                         fi
10915                       done
10916                       if test -z "$haveit"; then
10917                         ltrpathdirs="$ltrpathdirs $dir"
10918                       fi
10919                     fi
10920                     ;;
10921                   -l*)
10922                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10923                     ;;
10924                   *.la)
10925                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10926                     ;;
10927                   *)
10928                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10929                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10930                     ;;
10931                 esac
10932               done
10933             fi
10934           else
10935                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10936             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10937           fi
10938         fi
10939       fi
10940     done
10941   done
10942   if test "X$rpathdirs" != "X"; then
10943     if test -n "$hardcode_libdir_separator"; then
10944                         alldirs=
10945       for found_dir in $rpathdirs; do
10946         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10947       done
10948             acl_save_libdir="$libdir"
10949       libdir="$alldirs"
10950       eval flag=\"$hardcode_libdir_flag_spec\"
10951       libdir="$acl_save_libdir"
10952       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10953     else
10954             for found_dir in $rpathdirs; do
10955         acl_save_libdir="$libdir"
10956         libdir="$found_dir"
10957         eval flag=\"$hardcode_libdir_flag_spec\"
10958         libdir="$acl_save_libdir"
10959         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10960       done
10961     fi
10962   fi
10963   if test "X$ltrpathdirs" != "X"; then
10964             for found_dir in $ltrpathdirs; do
10965       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10966     done
10967   fi
10968
10969
10970
10971
10972
10973
10974
10975           am_save_CPPFLAGS="$CPPFLAGS"
10976
10977   for element in $INCICONV; do
10978     haveit=
10979     for x in $CPPFLAGS; do
10980
10981   acl_save_prefix="$prefix"
10982   prefix="$acl_final_prefix"
10983   acl_save_exec_prefix="$exec_prefix"
10984   exec_prefix="$acl_final_exec_prefix"
10985   eval x=\"$x\"
10986   exec_prefix="$acl_save_exec_prefix"
10987   prefix="$acl_save_prefix"
10988
10989       if test "X$x" = "X$element"; then
10990         haveit=yes
10991         break
10992       fi
10993     done
10994     if test -z "$haveit"; then
10995       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10996     fi
10997   done
10998
10999
11000   echo "$as_me:$LINENO: checking for iconv" >&5
11001 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11002 if test "${am_cv_func_iconv+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005
11006     am_cv_func_iconv="no, consider installing GNU libiconv"
11007     am_cv_lib_iconv=no
11008     if test x$gcc_no_link = xyes; then
11009   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11011    { (exit 1); exit 1; }; }
11012 fi
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019 #include <stdlib.h>
11020 #include <iconv.h>
11021 int
11022 main ()
11023 {
11024 iconv_t cd = iconv_open("","");
11025        iconv(cd,NULL,NULL,NULL,NULL);
11026        iconv_close(cd);
11027   ;
11028   return 0;
11029 }
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033   (eval $ac_link) 2>conftest.er1
11034   ac_status=$?
11035   grep -v '^ *+' conftest.er1 >conftest.err
11036   rm -f conftest.er1
11037   cat conftest.err >&5
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -z "$ac_c_werror_flag"
11041                          || test ! -s conftest.err'
11042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043   (eval $ac_try) 2>&5
11044   ac_status=$?
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); }; } &&
11047          { ac_try='test -s conftest$ac_exeext'
11048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11049   (eval $ac_try) 2>&5
11050   ac_status=$?
11051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052   (exit $ac_status); }; }; then
11053   am_cv_func_iconv=yes
11054 else
11055   echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058 fi
11059 rm -f conftest.err conftest.$ac_objext \
11060       conftest$ac_exeext conftest.$ac_ext
11061     if test "$am_cv_func_iconv" != yes; then
11062       am_save_LIBS="$LIBS"
11063       LIBS="$LIBS $LIBICONV"
11064       if test x$gcc_no_link = xyes; then
11065   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11066 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11067    { (exit 1); exit 1; }; }
11068 fi
11069 cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <stdlib.h>
11076 #include <iconv.h>
11077 int
11078 main ()
11079 {
11080 iconv_t cd = iconv_open("","");
11081          iconv(cd,NULL,NULL,NULL,NULL);
11082          iconv_close(cd);
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089   (eval $ac_link) 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_c_werror_flag"
11097                          || test ! -s conftest.err'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; } &&
11103          { ac_try='test -s conftest$ac_exeext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   am_cv_lib_iconv=yes
11110         am_cv_func_iconv=yes
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 fi
11116 rm -f conftest.err conftest.$ac_objext \
11117       conftest$ac_exeext conftest.$ac_ext
11118       LIBS="$am_save_LIBS"
11119     fi
11120
11121 fi
11122 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11123 echo "${ECHO_T}$am_cv_func_iconv" >&6
11124   if test "$am_cv_func_iconv" = yes; then
11125
11126 cat >>confdefs.h <<\_ACEOF
11127 #define HAVE_ICONV 1
11128 _ACEOF
11129
11130   fi
11131   if test "$am_cv_lib_iconv" = yes; then
11132     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11133 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11134     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11135 echo "${ECHO_T}$LIBICONV" >&6
11136   else
11137             CPPFLAGS="$am_save_CPPFLAGS"
11138     LIBICONV=
11139     LTLIBICONV=
11140   fi
11141
11142
11143
11144   if test "$am_cv_func_iconv" = yes; then
11145     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11146 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11147     if test "${am_cv_proto_iconv+set}" = set; then
11148   echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150
11151       cat >conftest.$ac_ext <<_ACEOF
11152 /* confdefs.h.  */
11153 _ACEOF
11154 cat confdefs.h >>conftest.$ac_ext
11155 cat >>conftest.$ac_ext <<_ACEOF
11156 /* end confdefs.h.  */
11157
11158 #include <stdlib.h>
11159 #include <iconv.h>
11160 extern
11161 #ifdef __cplusplus
11162 "C"
11163 #endif
11164 #if defined(__STDC__) || defined(__cplusplus)
11165 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11166 #else
11167 size_t iconv();
11168 #endif
11169
11170 int
11171 main ()
11172 {
11173
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext
11179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11180   (eval $ac_compile) 2>conftest.er1
11181   ac_status=$?
11182   grep -v '^ *+' conftest.er1 >conftest.err
11183   rm -f conftest.er1
11184   cat conftest.err >&5
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); } &&
11187          { ac_try='test -z "$ac_c_werror_flag"
11188                          || test ! -s conftest.err'
11189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190   (eval $ac_try) 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; } &&
11194          { ac_try='test -s conftest.$ac_objext'
11195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196   (eval $ac_try) 2>&5
11197   ac_status=$?
11198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199   (exit $ac_status); }; }; then
11200   am_cv_proto_iconv_arg1=""
11201 else
11202   echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11204
11205 am_cv_proto_iconv_arg1="const"
11206 fi
11207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11208       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);"
11209 fi
11210
11211     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11212     echo "$as_me:$LINENO: result: ${ac_t:-
11213          }$am_cv_proto_iconv" >&5
11214 echo "${ECHO_T}${ac_t:-
11215          }$am_cv_proto_iconv" >&6
11216
11217 cat >>confdefs.h <<_ACEOF
11218 #define ICONV_CONST $am_cv_proto_iconv_arg1
11219 _ACEOF
11220
11221   fi
11222
11223
11224   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11225 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11226 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229   if test x$gcc_no_link = xyes; then
11230   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11232    { (exit 1); exit 1; }; }
11233 fi
11234 cat >conftest.$ac_ext <<_ACEOF
11235 /* confdefs.h.  */
11236 _ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h.  */
11240 #include <locale.h>
11241 int
11242 main ()
11243 {
11244 return LC_MESSAGES
11245   ;
11246   return 0;
11247 }
11248 _ACEOF
11249 rm -f conftest.$ac_objext conftest$ac_exeext
11250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11251   (eval $ac_link) 2>conftest.er1
11252   ac_status=$?
11253   grep -v '^ *+' conftest.er1 >conftest.err
11254   rm -f conftest.er1
11255   cat conftest.err >&5
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -z "$ac_c_werror_flag"
11259                          || test ! -s conftest.err'
11260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261   (eval $ac_try) 2>&5
11262   ac_status=$?
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); }; } &&
11265          { ac_try='test -s conftest$ac_exeext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   am_cv_val_LC_MESSAGES=yes
11272 else
11273   echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11275
11276 am_cv_val_LC_MESSAGES=no
11277 fi
11278 rm -f conftest.err conftest.$ac_objext \
11279       conftest$ac_exeext conftest.$ac_ext
11280 fi
11281 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11282 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11283   if test $am_cv_val_LC_MESSAGES = yes; then
11284
11285 cat >>confdefs.h <<\_ACEOF
11286 #define HAVE_LC_MESSAGES 1
11287 _ACEOF
11288
11289   fi
11290
11291    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11292 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11293 if test "${ac_cv_struct_tm+set}" = set; then
11294   echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296   cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302 #include <sys/types.h>
11303 #include <time.h>
11304
11305 int
11306 main ()
11307 {
11308 struct tm *tp; tp->tm_sec;
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 rm -f conftest.$ac_objext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11315   (eval $ac_compile) 2>conftest.er1
11316   ac_status=$?
11317   grep -v '^ *+' conftest.er1 >conftest.err
11318   rm -f conftest.er1
11319   cat conftest.err >&5
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); } &&
11322          { ac_try='test -z "$ac_c_werror_flag"
11323                          || test ! -s conftest.err'
11324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325   (eval $ac_try) 2>&5
11326   ac_status=$?
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); }; } &&
11329          { ac_try='test -s conftest.$ac_objext'
11330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11331   (eval $ac_try) 2>&5
11332   ac_status=$?
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); }; }; then
11335   ac_cv_struct_tm=time.h
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340 ac_cv_struct_tm=sys/time.h
11341 fi
11342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11343 fi
11344 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11345 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11346 if test $ac_cv_struct_tm = sys/time.h; then
11347
11348 cat >>confdefs.h <<\_ACEOF
11349 #define TM_IN_SYS_TIME 1
11350 _ACEOF
11351
11352 fi
11353
11354 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11355 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11356 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   cat >conftest.$ac_ext <<_ACEOF
11360 /* confdefs.h.  */
11361 _ACEOF
11362 cat confdefs.h >>conftest.$ac_ext
11363 cat >>conftest.$ac_ext <<_ACEOF
11364 /* end confdefs.h.  */
11365 #include <sys/types.h>
11366 #include <$ac_cv_struct_tm>
11367
11368
11369 int
11370 main ()
11371 {
11372 static struct tm ac_aggr;
11373 if (ac_aggr.tm_zone)
11374 return 0;
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11381   (eval $ac_compile) 2>conftest.er1
11382   ac_status=$?
11383   grep -v '^ *+' conftest.er1 >conftest.err
11384   rm -f conftest.er1
11385   cat conftest.err >&5
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -z "$ac_c_werror_flag"
11389                          || test ! -s conftest.err'
11390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391   (eval $ac_try) 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; } &&
11395          { ac_try='test -s conftest.$ac_objext'
11396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397   (eval $ac_try) 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); }; }; then
11401   ac_cv_member_struct_tm_tm_zone=yes
11402 else
11403   echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11405
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412 #include <sys/types.h>
11413 #include <$ac_cv_struct_tm>
11414
11415
11416 int
11417 main ()
11418 {
11419 static struct tm ac_aggr;
11420 if (sizeof ac_aggr.tm_zone)
11421 return 0;
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 rm -f conftest.$ac_objext
11427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428   (eval $ac_compile) 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -z "$ac_c_werror_flag"
11436                          || test ! -s conftest.err'
11437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438   (eval $ac_try) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); }; } &&
11442          { ac_try='test -s conftest.$ac_objext'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }; then
11448   ac_cv_member_struct_tm_tm_zone=yes
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_member_struct_tm_tm_zone=no
11454 fi
11455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11456 fi
11457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11458 fi
11459 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11460 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11461 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11462
11463 cat >>confdefs.h <<_ACEOF
11464 #define HAVE_STRUCT_TM_TM_ZONE 1
11465 _ACEOF
11466
11467
11468 fi
11469
11470 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11471
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_TM_ZONE 1
11474 _ACEOF
11475
11476 else
11477   echo "$as_me:$LINENO: checking for tzname" >&5
11478 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11479 if test "${ac_cv_var_tzname+set}" = set; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   if test x$gcc_no_link = xyes; then
11483   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11485    { (exit 1); exit 1; }; }
11486 fi
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h.  */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h.  */
11493 #include <time.h>
11494 #ifndef tzname /* For SGI.  */
11495 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11496 #endif
11497
11498 int
11499 main ()
11500 {
11501 atoi(*tzname);
11502   ;
11503   return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext conftest$ac_exeext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11508   (eval $ac_link) 2>conftest.er1
11509   ac_status=$?
11510   grep -v '^ *+' conftest.er1 >conftest.err
11511   rm -f conftest.er1
11512   cat conftest.err >&5
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); } &&
11515          { ac_try='test -z "$ac_c_werror_flag"
11516                          || test ! -s conftest.err'
11517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518   (eval $ac_try) 2>&5
11519   ac_status=$?
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); }; } &&
11522          { ac_try='test -s conftest$ac_exeext'
11523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524   (eval $ac_try) 2>&5
11525   ac_status=$?
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); }; }; then
11528   ac_cv_var_tzname=yes
11529 else
11530   echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 ac_cv_var_tzname=no
11534 fi
11535 rm -f conftest.err conftest.$ac_objext \
11536       conftest$ac_exeext conftest.$ac_ext
11537 fi
11538 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11539 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11540   if test $ac_cv_var_tzname = yes; then
11541
11542 cat >>confdefs.h <<\_ACEOF
11543 #define HAVE_TZNAME 1
11544 _ACEOF
11545
11546   fi
11547 fi
11548
11549
11550
11551
11552 for ac_func in gethostbyname_r
11553 do
11554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11555 echo "$as_me:$LINENO: checking for $ac_func" >&5
11556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_var+set}\" = set"; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560   if test x$gcc_no_link = xyes; then
11561   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11563    { (exit 1); exit 1; }; }
11564 fi
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11573 #define $ac_func innocuous_$ac_func
11574
11575 /* System header to define __stub macros and hopefully few prototypes,
11576     which can conflict with char $ac_func (); below.
11577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578     <limits.h> exists even on freestanding compilers.  */
11579
11580 #ifdef __STDC__
11581 # include <limits.h>
11582 #else
11583 # include <assert.h>
11584 #endif
11585
11586 #undef $ac_func
11587
11588 /* Override any gcc2 internal prototype to avoid an error.  */
11589 #ifdef __cplusplus
11590 extern "C"
11591 {
11592 #endif
11593 /* We use char because int might match the return type of a gcc2
11594    builtin and then its argument prototype would still apply.  */
11595 char $ac_func ();
11596 /* The GNU C library defines this for functions which it implements
11597     to always fail with ENOSYS.  Some functions are actually named
11598     something starting with __ and the normal name is an alias.  */
11599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11600 choke me
11601 #else
11602 char (*f) () = $ac_func;
11603 #endif
11604 #ifdef __cplusplus
11605 }
11606 #endif
11607
11608 int
11609 main ()
11610 {
11611 return f != $ac_func;
11612   ;
11613   return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618   (eval $ac_link) 2>conftest.er1
11619   ac_status=$?
11620   grep -v '^ *+' conftest.er1 >conftest.err
11621   rm -f conftest.er1
11622   cat conftest.err >&5
11623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624   (exit $ac_status); } &&
11625          { ac_try='test -z "$ac_c_werror_flag"
11626                          || test ! -s conftest.err'
11627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628   (eval $ac_try) 2>&5
11629   ac_status=$?
11630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631   (exit $ac_status); }; } &&
11632          { ac_try='test -s conftest$ac_exeext'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; }; then
11638   eval "$as_ac_var=yes"
11639 else
11640   echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11642
11643 eval "$as_ac_var=no"
11644 fi
11645 rm -f conftest.err conftest.$ac_objext \
11646       conftest$ac_exeext conftest.$ac_ext
11647 fi
11648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11650 if test `eval echo '${'$as_ac_var'}'` = yes; then
11651   cat >>confdefs.h <<_ACEOF
11652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11653 _ACEOF
11654
11655
11656 cat >>confdefs.h <<\_ACEOF
11657 #define HAVE_GETHOSTBYNAME_R 1
11658 _ACEOF
11659
11660      # There are two different kinds of gethostbyname_r.
11661      # We look for the one that returns `int'.
11662      # Hopefully this check is robust enough.
11663      cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h.  */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h.  */
11669 #include <netdb.h>
11670
11671 _ACEOF
11672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11673   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11674
11675
11676 cat >>confdefs.h <<\_ACEOF
11677 #define GETHOSTBYNAME_R_RETURNS_INT 1
11678 _ACEOF
11679
11680 fi
11681 rm -f conftest*
11682
11683
11684      case " $GCINCS " in
11685      *" -D_REENTRANT "*) ;;
11686      *)
11687                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11688 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11689 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692    ac_ext=cc
11693 ac_cpp='$CXXCPP $CPPFLAGS'
11694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11697
11698           cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 #include <netdb.h>
11705 int
11706 main ()
11707 {
11708 gethostbyname_r("", 0, 0);
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715   (eval $ac_compile) 2>conftest.er1
11716   ac_status=$?
11717   grep -v '^ *+' conftest.er1 >conftest.err
11718   rm -f conftest.er1
11719   cat conftest.err >&5
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); } &&
11722          { ac_try='test -z "$ac_cxx_werror_flag"
11723                          || test ! -s conftest.err'
11724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725   (eval $ac_try) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; } &&
11729          { ac_try='test -s conftest.$ac_objext'
11730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731   (eval $ac_try) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; }; then
11735   libjava_cv_gethostbyname_r_needs_reentrant=no
11736 else
11737   echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740                 CPPFLAGS_SAVE="$CPPFLAGS"
11741                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11742                 cat >conftest.$ac_ext <<_ACEOF
11743 /* confdefs.h.  */
11744 _ACEOF
11745 cat confdefs.h >>conftest.$ac_ext
11746 cat >>conftest.$ac_ext <<_ACEOF
11747 /* end confdefs.h.  */
11748 #include <netdb.h>
11749 int
11750 main ()
11751 {
11752 gethostbyname_r("", 0, 0);
11753   ;
11754   return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759   (eval $ac_compile) 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } &&
11766          { ac_try='test -z "$ac_cxx_werror_flag"
11767                          || test ! -s conftest.err'
11768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769   (eval $ac_try) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; } &&
11773          { ac_try='test -s conftest.$ac_objext'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; }; then
11779   libjava_cv_gethostbyname_r_needs_reentrant=yes
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 libjava_cv_gethostbyname_r_needs_reentrant=fail
11785 fi
11786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11787                 CPPFLAGS="$CPPFLAGS_SAVE"
11788
11789 fi
11790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11791           ac_ext=c
11792 ac_cpp='$CPP $CPPFLAGS'
11793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11796
11797
11798 fi
11799 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11800 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11801         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11802
11803 cat >>confdefs.h <<\_ACEOF
11804 #define _REENTRANT 1
11805 _ACEOF
11806
11807         fi
11808      ;;
11809      esac
11810
11811      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11812 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11813 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11814   echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816         cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822
11823 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11824 # define _REENTRANT 1
11825 #endif
11826 #include <netdb.h>
11827 int
11828 main ()
11829 {
11830 struct hostent_data data;
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837   (eval $ac_compile) 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } &&
11844          { ac_try='test -z "$ac_c_werror_flag"
11845                          || test ! -s conftest.err'
11846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847   (eval $ac_try) 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; } &&
11851          { ac_try='test -s conftest.$ac_objext'
11852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853   (eval $ac_try) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; }; then
11857   libjava_cv_struct_hostent_data=yes
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862 libjava_cv_struct_hostent_data=no
11863 fi
11864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11865 fi
11866 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11867 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11868      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11869
11870 cat >>confdefs.h <<\_ACEOF
11871 #define HAVE_STRUCT_HOSTENT_DATA 1
11872 _ACEOF
11873
11874      fi
11875
11876 fi
11877 done
11878
11879
11880    # FIXME: libjava source code expects to find a prototype for
11881    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11882    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11883    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11884    # linkage check is enough, yet C++ code requires proper prototypes.)
11885    cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 #include <netdb.h>
11892
11893 _ACEOF
11894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11895   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11896
11897
11898 for ac_func in gethostbyaddr_r
11899 do
11900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11901 echo "$as_me:$LINENO: checking for $ac_func" >&5
11902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11903 if eval "test \"\${$as_ac_var+set}\" = set"; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   if test x$gcc_no_link = xyes; then
11907   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11909    { (exit 1); exit 1; }; }
11910 fi
11911 cat >conftest.$ac_ext <<_ACEOF
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11919 #define $ac_func innocuous_$ac_func
11920
11921 /* System header to define __stub macros and hopefully few prototypes,
11922     which can conflict with char $ac_func (); below.
11923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11924     <limits.h> exists even on freestanding compilers.  */
11925
11926 #ifdef __STDC__
11927 # include <limits.h>
11928 #else
11929 # include <assert.h>
11930 #endif
11931
11932 #undef $ac_func
11933
11934 /* Override any gcc2 internal prototype to avoid an error.  */
11935 #ifdef __cplusplus
11936 extern "C"
11937 {
11938 #endif
11939 /* We use char because int might match the return type of a gcc2
11940    builtin and then its argument prototype would still apply.  */
11941 char $ac_func ();
11942 /* The GNU C library defines this for functions which it implements
11943     to always fail with ENOSYS.  Some functions are actually named
11944     something starting with __ and the normal name is an alias.  */
11945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11946 choke me
11947 #else
11948 char (*f) () = $ac_func;
11949 #endif
11950 #ifdef __cplusplus
11951 }
11952 #endif
11953
11954 int
11955 main ()
11956 {
11957 return f != $ac_func;
11958   ;
11959   return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964   (eval $ac_link) 2>conftest.er1
11965   ac_status=$?
11966   grep -v '^ *+' conftest.er1 >conftest.err
11967   rm -f conftest.er1
11968   cat conftest.err >&5
11969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970   (exit $ac_status); } &&
11971          { ac_try='test -z "$ac_c_werror_flag"
11972                          || test ! -s conftest.err'
11973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974   (eval $ac_try) 2>&5
11975   ac_status=$?
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); }; } &&
11978          { ac_try='test -s conftest$ac_exeext'
11979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980   (eval $ac_try) 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; }; then
11984   eval "$as_ac_var=yes"
11985 else
11986   echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11988
11989 eval "$as_ac_var=no"
11990 fi
11991 rm -f conftest.err conftest.$ac_objext \
11992       conftest$ac_exeext conftest.$ac_ext
11993 fi
11994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11996 if test `eval echo '${'$as_ac_var'}'` = yes; then
11997   cat >>confdefs.h <<_ACEOF
11998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11999 _ACEOF
12000
12001
12002 cat >>confdefs.h <<\_ACEOF
12003 #define HAVE_GETHOSTBYADDR_R 1
12004 _ACEOF
12005
12006      # There are two different kinds of gethostbyaddr_r.
12007      # We look for the one that returns `int'.
12008      # Hopefully this check is robust enough.
12009      cat >conftest.$ac_ext <<_ACEOF
12010 /* confdefs.h.  */
12011 _ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h.  */
12015 #include <netdb.h>
12016
12017 _ACEOF
12018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12019   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12020
12021
12022 cat >>confdefs.h <<\_ACEOF
12023 #define GETHOSTBYADDR_R_RETURNS_INT 1
12024 _ACEOF
12025
12026 fi
12027 rm -f conftest*
12028
12029 fi
12030 done
12031
12032 fi
12033 rm -f conftest*
12034
12035
12036
12037 for ac_func in gethostname
12038 do
12039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12040 echo "$as_me:$LINENO: checking for $ac_func" >&5
12041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12042 if eval "test \"\${$as_ac_var+set}\" = set"; then
12043   echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045   if test x$gcc_no_link = xyes; then
12046   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12047 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12048    { (exit 1); exit 1; }; }
12049 fi
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12058 #define $ac_func innocuous_$ac_func
12059
12060 /* System header to define __stub macros and hopefully few prototypes,
12061     which can conflict with char $ac_func (); below.
12062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12063     <limits.h> exists even on freestanding compilers.  */
12064
12065 #ifdef __STDC__
12066 # include <limits.h>
12067 #else
12068 # include <assert.h>
12069 #endif
12070
12071 #undef $ac_func
12072
12073 /* Override any gcc2 internal prototype to avoid an error.  */
12074 #ifdef __cplusplus
12075 extern "C"
12076 {
12077 #endif
12078 /* We use char because int might match the return type of a gcc2
12079    builtin and then its argument prototype would still apply.  */
12080 char $ac_func ();
12081 /* The GNU C library defines this for functions which it implements
12082     to always fail with ENOSYS.  Some functions are actually named
12083     something starting with __ and the normal name is an alias.  */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12085 choke me
12086 #else
12087 char (*f) () = $ac_func;
12088 #endif
12089 #ifdef __cplusplus
12090 }
12091 #endif
12092
12093 int
12094 main ()
12095 {
12096 return f != $ac_func;
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103   (eval $ac_link) 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -z "$ac_c_werror_flag"
12111                          || test ! -s conftest.err'
12112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113   (eval $ac_try) 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); }; } &&
12117          { ac_try='test -s conftest$ac_exeext'
12118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119   (eval $ac_try) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }; }; then
12123   eval "$as_ac_var=yes"
12124 else
12125   echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 eval "$as_ac_var=no"
12129 fi
12130 rm -f conftest.err conftest.$ac_objext \
12131       conftest$ac_exeext conftest.$ac_ext
12132 fi
12133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12134 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12135 if test `eval echo '${'$as_ac_var'}'` = yes; then
12136   cat >>confdefs.h <<_ACEOF
12137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12138 _ACEOF
12139
12140
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_GETHOSTNAME 1
12143 _ACEOF
12144
12145      cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h.  */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h.  */
12151 #include <unistd.h>
12152
12153 _ACEOF
12154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12155   $EGREP "gethostname" >/dev/null 2>&1; then
12156
12157
12158 cat >>confdefs.h <<\_ACEOF
12159 #define HAVE_GETHOSTNAME_DECL 1
12160 _ACEOF
12161
12162 fi
12163 rm -f conftest*
12164
12165 fi
12166 done
12167
12168
12169
12170 for ac_func in usleep
12171 do
12172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12173 echo "$as_me:$LINENO: checking for $ac_func" >&5
12174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12175 if eval "test \"\${$as_ac_var+set}\" = set"; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178   if test x$gcc_no_link = xyes; then
12179   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12181    { (exit 1); exit 1; }; }
12182 fi
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12191 #define $ac_func innocuous_$ac_func
12192
12193 /* System header to define __stub macros and hopefully few prototypes,
12194     which can conflict with char $ac_func (); below.
12195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12196     <limits.h> exists even on freestanding compilers.  */
12197
12198 #ifdef __STDC__
12199 # include <limits.h>
12200 #else
12201 # include <assert.h>
12202 #endif
12203
12204 #undef $ac_func
12205
12206 /* Override any gcc2 internal prototype to avoid an error.  */
12207 #ifdef __cplusplus
12208 extern "C"
12209 {
12210 #endif
12211 /* We use char because int might match the return type of a gcc2
12212    builtin and then its argument prototype would still apply.  */
12213 char $ac_func ();
12214 /* The GNU C library defines this for functions which it implements
12215     to always fail with ENOSYS.  Some functions are actually named
12216     something starting with __ and the normal name is an alias.  */
12217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12218 choke me
12219 #else
12220 char (*f) () = $ac_func;
12221 #endif
12222 #ifdef __cplusplus
12223 }
12224 #endif
12225
12226 int
12227 main ()
12228 {
12229 return f != $ac_func;
12230   ;
12231   return 0;
12232 }
12233 _ACEOF
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12236   (eval $ac_link) 2>conftest.er1
12237   ac_status=$?
12238   grep -v '^ *+' conftest.er1 >conftest.err
12239   rm -f conftest.er1
12240   cat conftest.err >&5
12241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242   (exit $ac_status); } &&
12243          { ac_try='test -z "$ac_c_werror_flag"
12244                          || test ! -s conftest.err'
12245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246   (eval $ac_try) 2>&5
12247   ac_status=$?
12248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249   (exit $ac_status); }; } &&
12250          { ac_try='test -s conftest$ac_exeext'
12251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12252   (eval $ac_try) 2>&5
12253   ac_status=$?
12254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255   (exit $ac_status); }; }; then
12256   eval "$as_ac_var=yes"
12257 else
12258   echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12260
12261 eval "$as_ac_var=no"
12262 fi
12263 rm -f conftest.err conftest.$ac_objext \
12264       conftest$ac_exeext conftest.$ac_ext
12265 fi
12266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12268 if test `eval echo '${'$as_ac_var'}'` = yes; then
12269   cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12271 _ACEOF
12272
12273      cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h.  */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h.  */
12279 #include <unistd.h>
12280
12281 _ACEOF
12282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12283   $EGREP "usleep" >/dev/null 2>&1; then
12284
12285
12286 cat >>confdefs.h <<\_ACEOF
12287 #define HAVE_USLEEP_DECL 1
12288 _ACEOF
12289
12290 fi
12291 rm -f conftest*
12292
12293 fi
12294 done
12295
12296
12297    # Look for these functions in the thread library, but only bother
12298    # if using POSIX threads.
12299    if test "$THREADS" = posix; then
12300       save_LIBS="$LIBS"
12301       LIBS="$LIBS $THREADLIBS"
12302
12303       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12304       # Solaris 7 the name librt is preferred.
12305
12306 for ac_func in sched_yield
12307 do
12308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12309 echo "$as_me:$LINENO: checking for $ac_func" >&5
12310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12311 if eval "test \"\${$as_ac_var+set}\" = set"; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   if test x$gcc_no_link = xyes; then
12315   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12317    { (exit 1); exit 1; }; }
12318 fi
12319 cat >conftest.$ac_ext <<_ACEOF
12320 /* confdefs.h.  */
12321 _ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h.  */
12325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12327 #define $ac_func innocuous_$ac_func
12328
12329 /* System header to define __stub macros and hopefully few prototypes,
12330     which can conflict with char $ac_func (); below.
12331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12332     <limits.h> exists even on freestanding compilers.  */
12333
12334 #ifdef __STDC__
12335 # include <limits.h>
12336 #else
12337 # include <assert.h>
12338 #endif
12339
12340 #undef $ac_func
12341
12342 /* Override any gcc2 internal prototype to avoid an error.  */
12343 #ifdef __cplusplus
12344 extern "C"
12345 {
12346 #endif
12347 /* We use char because int might match the return type of a gcc2
12348    builtin and then its argument prototype would still apply.  */
12349 char $ac_func ();
12350 /* The GNU C library defines this for functions which it implements
12351     to always fail with ENOSYS.  Some functions are actually named
12352     something starting with __ and the normal name is an alias.  */
12353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12354 choke me
12355 #else
12356 char (*f) () = $ac_func;
12357 #endif
12358 #ifdef __cplusplus
12359 }
12360 #endif
12361
12362 int
12363 main ()
12364 {
12365 return f != $ac_func;
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 rm -f conftest.$ac_objext conftest$ac_exeext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12372   (eval $ac_link) 2>conftest.er1
12373   ac_status=$?
12374   grep -v '^ *+' conftest.er1 >conftest.err
12375   rm -f conftest.er1
12376   cat conftest.err >&5
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -z "$ac_c_werror_flag"
12380                          || test ! -s conftest.err'
12381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12382   (eval $ac_try) 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; } &&
12386          { ac_try='test -s conftest$ac_exeext'
12387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388   (eval $ac_try) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   eval "$as_ac_var=yes"
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397 eval "$as_ac_var=no"
12398 fi
12399 rm -f conftest.err conftest.$ac_objext \
12400       conftest$ac_exeext conftest.$ac_ext
12401 fi
12402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12404 if test `eval echo '${'$as_ac_var'}'` = yes; then
12405   cat >>confdefs.h <<_ACEOF
12406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12407 _ACEOF
12408
12409 else
12410
12411         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12412 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12413 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   ac_check_lib_save_LIBS=$LIBS
12417 LIBS="-lrt  $LIBS"
12418 if test x$gcc_no_link = xyes; then
12419   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12421    { (exit 1); exit 1; }; }
12422 fi
12423 cat >conftest.$ac_ext <<_ACEOF
12424 /* confdefs.h.  */
12425 _ACEOF
12426 cat confdefs.h >>conftest.$ac_ext
12427 cat >>conftest.$ac_ext <<_ACEOF
12428 /* end confdefs.h.  */
12429
12430 /* Override any gcc2 internal prototype to avoid an error.  */
12431 #ifdef __cplusplus
12432 extern "C"
12433 #endif
12434 /* We use char because int might match the return type of a gcc2
12435    builtin and then its argument prototype would still apply.  */
12436 char sched_yield ();
12437 int
12438 main ()
12439 {
12440 sched_yield ();
12441   ;
12442   return 0;
12443 }
12444 _ACEOF
12445 rm -f conftest.$ac_objext conftest$ac_exeext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12447   (eval $ac_link) 2>conftest.er1
12448   ac_status=$?
12449   grep -v '^ *+' conftest.er1 >conftest.err
12450   rm -f conftest.er1
12451   cat conftest.err >&5
12452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453   (exit $ac_status); } &&
12454          { ac_try='test -z "$ac_c_werror_flag"
12455                          || test ! -s conftest.err'
12456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457   (eval $ac_try) 2>&5
12458   ac_status=$?
12459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460   (exit $ac_status); }; } &&
12461          { ac_try='test -s conftest$ac_exeext'
12462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463   (eval $ac_try) 2>&5
12464   ac_status=$?
12465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466   (exit $ac_status); }; }; then
12467   ac_cv_lib_rt_sched_yield=yes
12468 else
12469   echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12471
12472 ac_cv_lib_rt_sched_yield=no
12473 fi
12474 rm -f conftest.err conftest.$ac_objext \
12475       conftest$ac_exeext conftest.$ac_ext
12476 LIBS=$ac_check_lib_save_LIBS
12477 fi
12478 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12479 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12480 if test $ac_cv_lib_rt_sched_yield = yes; then
12481
12482           cat >>confdefs.h <<\_ACEOF
12483 #define HAVE_SCHED_YIELD 1
12484 _ACEOF
12485
12486           THREADLIBS="$THREADLIBS -lrt"
12487           THREADSPEC="$THREADSPEC -lrt"
12488 else
12489
12490           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12491 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12492 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   ac_check_lib_save_LIBS=$LIBS
12496 LIBS="-lposix4  $LIBS"
12497 if test x$gcc_no_link = xyes; then
12498   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12500    { (exit 1); exit 1; }; }
12501 fi
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h.  */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h.  */
12508
12509 /* Override any gcc2 internal prototype to avoid an error.  */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 /* We use char because int might match the return type of a gcc2
12514    builtin and then its argument prototype would still apply.  */
12515 char sched_yield ();
12516 int
12517 main ()
12518 {
12519 sched_yield ();
12520   ;
12521   return 0;
12522 }
12523 _ACEOF
12524 rm -f conftest.$ac_objext conftest$ac_exeext
12525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12526   (eval $ac_link) 2>conftest.er1
12527   ac_status=$?
12528   grep -v '^ *+' conftest.er1 >conftest.err
12529   rm -f conftest.er1
12530   cat conftest.err >&5
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -z "$ac_c_werror_flag"
12534                          || test ! -s conftest.err'
12535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536   (eval $ac_try) 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest$ac_exeext'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   ac_cv_lib_posix4_sched_yield=yes
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 ac_cv_lib_posix4_sched_yield=no
12552 fi
12553 rm -f conftest.err conftest.$ac_objext \
12554       conftest$ac_exeext conftest.$ac_ext
12555 LIBS=$ac_check_lib_save_LIBS
12556 fi
12557 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12558 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12559 if test $ac_cv_lib_posix4_sched_yield = yes; then
12560
12561             cat >>confdefs.h <<\_ACEOF
12562 #define HAVE_SCHED_YIELD 1
12563 _ACEOF
12564
12565             THREADLIBS="$THREADLIBS -lposix4"
12566             THREADSPEC="$THREADSPEC -lposix4"
12567 fi
12568
12569 fi
12570
12571 fi
12572 done
12573
12574
12575       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12576 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12577 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-lrt  $LIBS"
12582 if test x$gcc_no_link = xyes; then
12583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12585    { (exit 1); exit 1; }; }
12586 fi
12587 cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 /* Override any gcc2 internal prototype to avoid an error.  */
12595 #ifdef __cplusplus
12596 extern "C"
12597 #endif
12598 /* We use char because int might match the return type of a gcc2
12599    builtin and then its argument prototype would still apply.  */
12600 char clock_gettime ();
12601 int
12602 main ()
12603 {
12604 clock_gettime ();
12605   ;
12606   return 0;
12607 }
12608 _ACEOF
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12611   (eval $ac_link) 2>conftest.er1
12612   ac_status=$?
12613   grep -v '^ *+' conftest.er1 >conftest.err
12614   rm -f conftest.er1
12615   cat conftest.err >&5
12616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617   (exit $ac_status); } &&
12618          { ac_try='test -z "$ac_c_werror_flag"
12619                          || test ! -s conftest.err'
12620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621   (eval $ac_try) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; } &&
12625          { ac_try='test -s conftest$ac_exeext'
12626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627   (eval $ac_try) 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; }; then
12631   ac_cv_lib_rt_clock_gettime=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 ac_cv_lib_rt_clock_gettime=no
12637 fi
12638 rm -f conftest.err conftest.$ac_objext \
12639       conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS
12641 fi
12642 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12643 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12644 if test $ac_cv_lib_rt_clock_gettime = yes; then
12645
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_CLOCK_GETTIME 1
12649 _ACEOF
12650
12651          case "$THREADSPEC" in
12652            *-lrt*) ;;
12653            *)
12654              THREADSPEC="$THREADSPEC -lrt"
12655              THREADLIBS="$THREADLIBS -lrt"
12656              ;;
12657          esac
12658 fi
12659
12660
12661       LIBS="$save_LIBS"
12662
12663       # We can save a little space at runtime if the mutex has m_count
12664       # or __m_count.  This is a nice hack for Linux.
12665       cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h.  */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h.  */
12671 #include <pthread.h>
12672 int
12673 main ()
12674 {
12675
12676           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12677
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684   (eval $ac_compile) 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_objext'
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
12705 cat >>confdefs.h <<\_ACEOF
12706 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12707 _ACEOF
12708
12709 else
12710   echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713
12714         cat >conftest.$ac_ext <<_ACEOF
12715 /* confdefs.h.  */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h.  */
12720 #include <pthread.h>
12721 int
12722 main ()
12723 {
12724
12725             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12726
12727   ;
12728   return 0;
12729 }
12730 _ACEOF
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733   (eval $ac_compile) 2>conftest.er1
12734   ac_status=$?
12735   grep -v '^ *+' conftest.er1 >conftest.err
12736   rm -f conftest.er1
12737   cat conftest.err >&5
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); } &&
12740          { ac_try='test -z "$ac_c_werror_flag"
12741                          || test ! -s conftest.err'
12742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743   (eval $ac_try) 2>&5
12744   ac_status=$?
12745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746   (exit $ac_status); }; } &&
12747          { ac_try='test -s conftest.$ac_objext'
12748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749   (eval $ac_try) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; }; then
12753
12754 cat >>confdefs.h <<\_ACEOF
12755 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12756 _ACEOF
12757
12758 else
12759   echo "$as_me: failed program was:" >&5
12760 sed 's/^/| /' conftest.$ac_ext >&5
12761
12762 fi
12763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12764 fi
12765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12766    fi
12767
12768    # We require a way to get the time.
12769    time_found=no
12770
12771
12772
12773 for ac_func in gettimeofday time ftime
12774 do
12775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12776 echo "$as_me:$LINENO: checking for $ac_func" >&5
12777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12778 if eval "test \"\${$as_ac_var+set}\" = set"; then
12779   echo $ECHO_N "(cached) $ECHO_C" >&6
12780 else
12781   if test x$gcc_no_link = xyes; then
12782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12784    { (exit 1); exit 1; }; }
12785 fi
12786 cat >conftest.$ac_ext <<_ACEOF
12787 /* confdefs.h.  */
12788 _ACEOF
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h.  */
12792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12794 #define $ac_func innocuous_$ac_func
12795
12796 /* System header to define __stub macros and hopefully few prototypes,
12797     which can conflict with char $ac_func (); below.
12798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12799     <limits.h> exists even on freestanding compilers.  */
12800
12801 #ifdef __STDC__
12802 # include <limits.h>
12803 #else
12804 # include <assert.h>
12805 #endif
12806
12807 #undef $ac_func
12808
12809 /* Override any gcc2 internal prototype to avoid an error.  */
12810 #ifdef __cplusplus
12811 extern "C"
12812 {
12813 #endif
12814 /* We use char because int might match the return type of a gcc2
12815    builtin and then its argument prototype would still apply.  */
12816 char $ac_func ();
12817 /* The GNU C library defines this for functions which it implements
12818     to always fail with ENOSYS.  Some functions are actually named
12819     something starting with __ and the normal name is an alias.  */
12820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12821 choke me
12822 #else
12823 char (*f) () = $ac_func;
12824 #endif
12825 #ifdef __cplusplus
12826 }
12827 #endif
12828
12829 int
12830 main ()
12831 {
12832 return f != $ac_func;
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 rm -f conftest.$ac_objext conftest$ac_exeext
12838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12839   (eval $ac_link) 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } &&
12846          { ac_try='test -z "$ac_c_werror_flag"
12847                          || test ! -s conftest.err'
12848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849   (eval $ac_try) 2>&5
12850   ac_status=$?
12851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852   (exit $ac_status); }; } &&
12853          { ac_try='test -s conftest$ac_exeext'
12854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855   (eval $ac_try) 2>&5
12856   ac_status=$?
12857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858   (exit $ac_status); }; }; then
12859   eval "$as_ac_var=yes"
12860 else
12861   echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12863
12864 eval "$as_ac_var=no"
12865 fi
12866 rm -f conftest.err conftest.$ac_objext \
12867       conftest$ac_exeext conftest.$ac_ext
12868 fi
12869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12871 if test `eval echo '${'$as_ac_var'}'` = yes; then
12872   cat >>confdefs.h <<_ACEOF
12873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12874 _ACEOF
12875  time_found=yes
12876 fi
12877 done
12878
12879    if test "$time_found" = no; then
12880       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12881 echo "$as_me: error: no function found to get the time" >&2;}
12882    { (exit 1); exit 1; }; }
12883    fi
12884
12885
12886 for ac_func in memmove
12887 do
12888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12889 echo "$as_me:$LINENO: checking for $ac_func" >&5
12890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12891 if eval "test \"\${$as_ac_var+set}\" = set"; then
12892   echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894   if test x$gcc_no_link = xyes; then
12895   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12896 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12897    { (exit 1); exit 1; }; }
12898 fi
12899 cat >conftest.$ac_ext <<_ACEOF
12900 /* confdefs.h.  */
12901 _ACEOF
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h.  */
12905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12907 #define $ac_func innocuous_$ac_func
12908
12909 /* System header to define __stub macros and hopefully few prototypes,
12910     which can conflict with char $ac_func (); below.
12911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12912     <limits.h> exists even on freestanding compilers.  */
12913
12914 #ifdef __STDC__
12915 # include <limits.h>
12916 #else
12917 # include <assert.h>
12918 #endif
12919
12920 #undef $ac_func
12921
12922 /* Override any gcc2 internal prototype to avoid an error.  */
12923 #ifdef __cplusplus
12924 extern "C"
12925 {
12926 #endif
12927 /* We use char because int might match the return type of a gcc2
12928    builtin and then its argument prototype would still apply.  */
12929 char $ac_func ();
12930 /* The GNU C library defines this for functions which it implements
12931     to always fail with ENOSYS.  Some functions are actually named
12932     something starting with __ and the normal name is an alias.  */
12933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12934 choke me
12935 #else
12936 char (*f) () = $ac_func;
12937 #endif
12938 #ifdef __cplusplus
12939 }
12940 #endif
12941
12942 int
12943 main ()
12944 {
12945 return f != $ac_func;
12946   ;
12947   return 0;
12948 }
12949 _ACEOF
12950 rm -f conftest.$ac_objext conftest$ac_exeext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12952   (eval $ac_link) 2>conftest.er1
12953   ac_status=$?
12954   grep -v '^ *+' conftest.er1 >conftest.err
12955   rm -f conftest.er1
12956   cat conftest.err >&5
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); } &&
12959          { ac_try='test -z "$ac_c_werror_flag"
12960                          || test ! -s conftest.err'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; } &&
12966          { ac_try='test -s conftest$ac_exeext'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   eval "$as_ac_var=yes"
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 eval "$as_ac_var=no"
12978 fi
12979 rm -f conftest.err conftest.$ac_objext \
12980       conftest$ac_exeext conftest.$ac_ext
12981 fi
12982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12984 if test `eval echo '${'$as_ac_var'}'` = yes; then
12985   cat >>confdefs.h <<_ACEOF
12986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12987 _ACEOF
12988
12989 fi
12990 done
12991
12992
12993    # We require memcpy.
12994    memcpy_found=no
12995
12996 for ac_func in memcpy
12997 do
12998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12999 echo "$as_me:$LINENO: checking for $ac_func" >&5
13000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13001 if eval "test \"\${$as_ac_var+set}\" = set"; then
13002   echo $ECHO_N "(cached) $ECHO_C" >&6
13003 else
13004   if test x$gcc_no_link = xyes; then
13005   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13007    { (exit 1); exit 1; }; }
13008 fi
13009 cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h.  */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h.  */
13015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13017 #define $ac_func innocuous_$ac_func
13018
13019 /* System header to define __stub macros and hopefully few prototypes,
13020     which can conflict with char $ac_func (); below.
13021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13022     <limits.h> exists even on freestanding compilers.  */
13023
13024 #ifdef __STDC__
13025 # include <limits.h>
13026 #else
13027 # include <assert.h>
13028 #endif
13029
13030 #undef $ac_func
13031
13032 /* Override any gcc2 internal prototype to avoid an error.  */
13033 #ifdef __cplusplus
13034 extern "C"
13035 {
13036 #endif
13037 /* We use char because int might match the return type of a gcc2
13038    builtin and then its argument prototype would still apply.  */
13039 char $ac_func ();
13040 /* The GNU C library defines this for functions which it implements
13041     to always fail with ENOSYS.  Some functions are actually named
13042     something starting with __ and the normal name is an alias.  */
13043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13044 choke me
13045 #else
13046 char (*f) () = $ac_func;
13047 #endif
13048 #ifdef __cplusplus
13049 }
13050 #endif
13051
13052 int
13053 main ()
13054 {
13055 return f != $ac_func;
13056   ;
13057   return 0;
13058 }
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13062   (eval $ac_link) 2>conftest.er1
13063   ac_status=$?
13064   grep -v '^ *+' conftest.er1 >conftest.err
13065   rm -f conftest.er1
13066   cat conftest.err >&5
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } &&
13069          { ac_try='test -z "$ac_c_werror_flag"
13070                          || test ! -s conftest.err'
13071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; } &&
13076          { ac_try='test -s conftest$ac_exeext'
13077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078   (eval $ac_try) 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); }; }; then
13082   eval "$as_ac_var=yes"
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 eval "$as_ac_var=no"
13088 fi
13089 rm -f conftest.err conftest.$ac_objext \
13090       conftest$ac_exeext conftest.$ac_ext
13091 fi
13092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13094 if test `eval echo '${'$as_ac_var'}'` = yes; then
13095   cat >>confdefs.h <<_ACEOF
13096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13097 _ACEOF
13098  memcpy_found=yes
13099 fi
13100 done
13101
13102    if test "$memcpy_found" = no; then
13103       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13104 echo "$as_me: error: memcpy is required" >&2;}
13105    { (exit 1); exit 1; }; }
13106    fi
13107    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13108    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13109 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   ac_check_lib_save_LIBS=$LIBS
13114 LIBS="-ldl  $LIBS"
13115 if test x$gcc_no_link = xyes; then
13116   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13118    { (exit 1); exit 1; }; }
13119 fi
13120 cat >conftest.$ac_ext <<_ACEOF
13121 /* confdefs.h.  */
13122 _ACEOF
13123 cat confdefs.h >>conftest.$ac_ext
13124 cat >>conftest.$ac_ext <<_ACEOF
13125 /* end confdefs.h.  */
13126
13127 /* Override any gcc2 internal prototype to avoid an error.  */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 /* We use char because int might match the return type of a gcc2
13132    builtin and then its argument prototype would still apply.  */
13133 char dlopen ();
13134 int
13135 main ()
13136 {
13137 dlopen ();
13138   ;
13139   return 0;
13140 }
13141 _ACEOF
13142 rm -f conftest.$ac_objext conftest$ac_exeext
13143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13144   (eval $ac_link) 2>conftest.er1
13145   ac_status=$?
13146   grep -v '^ *+' conftest.er1 >conftest.err
13147   rm -f conftest.er1
13148   cat conftest.err >&5
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } &&
13151          { ac_try='test -z "$ac_c_werror_flag"
13152                          || test ! -s conftest.err'
13153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154   (eval $ac_try) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; } &&
13158          { ac_try='test -s conftest$ac_exeext'
13159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160   (eval $ac_try) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); }; }; then
13164   ac_cv_lib_dl_dlopen=yes
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_cv_lib_dl_dlopen=no
13170 fi
13171 rm -f conftest.err conftest.$ac_objext \
13172       conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13174 fi
13175 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13176 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13177 if test $ac_cv_lib_dl_dlopen = yes; then
13178
13179
13180 cat >>confdefs.h <<\_ACEOF
13181 #define HAVE_DLOPEN 1
13182 _ACEOF
13183
13184 else
13185
13186        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13187 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13188 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13189   echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191   ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-ldld  $LIBS"
13193 if test x$gcc_no_link = xyes; then
13194   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13196    { (exit 1); exit 1; }; }
13197 fi
13198 cat >conftest.$ac_ext <<_ACEOF
13199 /* confdefs.h.  */
13200 _ACEOF
13201 cat confdefs.h >>conftest.$ac_ext
13202 cat >>conftest.$ac_ext <<_ACEOF
13203 /* end confdefs.h.  */
13204
13205 /* Override any gcc2 internal prototype to avoid an error.  */
13206 #ifdef __cplusplus
13207 extern "C"
13208 #endif
13209 /* We use char because int might match the return type of a gcc2
13210    builtin and then its argument prototype would still apply.  */
13211 char dlopen ();
13212 int
13213 main ()
13214 {
13215 dlopen ();
13216   ;
13217   return 0;
13218 }
13219 _ACEOF
13220 rm -f conftest.$ac_objext conftest$ac_exeext
13221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13222   (eval $ac_link) 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_c_werror_flag"
13230                          || test ! -s conftest.err'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; } &&
13236          { ac_try='test -s conftest$ac_exeext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   ac_cv_lib_dld_dlopen=yes
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 ac_cv_lib_dld_dlopen=no
13248 fi
13249 rm -f conftest.err conftest.$ac_objext \
13250       conftest$ac_exeext conftest.$ac_ext
13251 LIBS=$ac_check_lib_save_LIBS
13252 fi
13253 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13254 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13255 if test $ac_cv_lib_dld_dlopen = yes; then
13256
13257
13258 cat >>confdefs.h <<\_ACEOF
13259 #define HAVE_DLOPEN 1
13260 _ACEOF
13261
13262 fi
13263
13264 fi
13265
13266
13267    # Some library-finding code we stole from Tcl.
13268    #--------------------------------------------------------------------
13269    #    Check for the existence of the -lsocket and -lnsl libraries.
13270    #    The order here is important, so that they end up in the right
13271    #    order in the command line generated by make.  Here are some
13272    #    special considerations:
13273    #    1. Use "connect" and "accept" to check for -lsocket, and
13274    #       "gethostbyname" to check for -lnsl.
13275    #    2. Use each function name only once:  can't redo a check because
13276    #       autoconf caches the results of the last check and won't redo it.
13277    #    3. Use -lnsl and -lsocket only if they supply procedures that
13278    #       aren't already present in the normal libraries.  This is because
13279    #       IRIX 5.2 has libraries, but they aren't needed and they're
13280    #       bogus:  they goof up name resolution if used.
13281    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13282    #       To get around this problem, check for both libraries together
13283    #       if -lsocket doesn't work by itself.
13284    #--------------------------------------------------------------------
13285
13286    echo "$as_me:$LINENO: checking for socket libraries" >&5
13287 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13288 if test "${gcj_cv_lib_sockets+set}" = set; then
13289   echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291   gcj_cv_lib_sockets=
13292      gcj_checkBoth=0
13293      unset ac_cv_func_connect
13294      echo "$as_me:$LINENO: checking for connect" >&5
13295 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13296 if test "${ac_cv_func_connect+set}" = set; then
13297   echo $ECHO_N "(cached) $ECHO_C" >&6
13298 else
13299   if test x$gcc_no_link = xyes; then
13300   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13301 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13302    { (exit 1); exit 1; }; }
13303 fi
13304 cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h.  */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h.  */
13310 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13311    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13312 #define connect innocuous_connect
13313
13314 /* System header to define __stub macros and hopefully few prototypes,
13315     which can conflict with char connect (); below.
13316     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13317     <limits.h> exists even on freestanding compilers.  */
13318
13319 #ifdef __STDC__
13320 # include <limits.h>
13321 #else
13322 # include <assert.h>
13323 #endif
13324
13325 #undef connect
13326
13327 /* Override any gcc2 internal prototype to avoid an error.  */
13328 #ifdef __cplusplus
13329 extern "C"
13330 {
13331 #endif
13332 /* We use char because int might match the return type of a gcc2
13333    builtin and then its argument prototype would still apply.  */
13334 char connect ();
13335 /* The GNU C library defines this for functions which it implements
13336     to always fail with ENOSYS.  Some functions are actually named
13337     something starting with __ and the normal name is an alias.  */
13338 #if defined (__stub_connect) || defined (__stub___connect)
13339 choke me
13340 #else
13341 char (*f) () = connect;
13342 #endif
13343 #ifdef __cplusplus
13344 }
13345 #endif
13346
13347 int
13348 main ()
13349 {
13350 return f != connect;
13351   ;
13352   return 0;
13353 }
13354 _ACEOF
13355 rm -f conftest.$ac_objext conftest$ac_exeext
13356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13357   (eval $ac_link) 2>conftest.er1
13358   ac_status=$?
13359   grep -v '^ *+' conftest.er1 >conftest.err
13360   rm -f conftest.er1
13361   cat conftest.err >&5
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } &&
13364          { ac_try='test -z "$ac_c_werror_flag"
13365                          || test ! -s conftest.err'
13366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367   (eval $ac_try) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; } &&
13371          { ac_try='test -s conftest$ac_exeext'
13372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373   (eval $ac_try) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   ac_cv_func_connect=yes
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382 ac_cv_func_connect=no
13383 fi
13384 rm -f conftest.err conftest.$ac_objext \
13385       conftest$ac_exeext conftest.$ac_ext
13386 fi
13387 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13388 echo "${ECHO_T}$ac_cv_func_connect" >&6
13389 if test $ac_cv_func_connect = yes; then
13390   gcj_checkSocket=0
13391 else
13392   gcj_checkSocket=1
13393 fi
13394
13395      if test "$gcj_checkSocket" = 1; then
13396          unset ac_cv_func_connect
13397          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13398 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13399 if test "${ac_cv_lib_socket_main+set}" = set; then
13400   echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402   ac_check_lib_save_LIBS=$LIBS
13403 LIBS="-lsocket  $LIBS"
13404 if test x$gcc_no_link = xyes; then
13405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13407    { (exit 1); exit 1; }; }
13408 fi
13409 cat >conftest.$ac_ext <<_ACEOF
13410 /* confdefs.h.  */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h.  */
13415
13416
13417 int
13418 main ()
13419 {
13420 main ();
13421   ;
13422   return 0;
13423 }
13424 _ACEOF
13425 rm -f conftest.$ac_objext conftest$ac_exeext
13426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13427   (eval $ac_link) 2>conftest.er1
13428   ac_status=$?
13429   grep -v '^ *+' conftest.er1 >conftest.err
13430   rm -f conftest.er1
13431   cat conftest.err >&5
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); } &&
13434          { ac_try='test -z "$ac_c_werror_flag"
13435                          || test ! -s conftest.err'
13436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437   (eval $ac_try) 2>&5
13438   ac_status=$?
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); }; } &&
13441          { ac_try='test -s conftest$ac_exeext'
13442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443   (eval $ac_try) 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; }; then
13447   ac_cv_lib_socket_main=yes
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452 ac_cv_lib_socket_main=no
13453 fi
13454 rm -f conftest.err conftest.$ac_objext \
13455       conftest$ac_exeext conftest.$ac_ext
13456 LIBS=$ac_check_lib_save_LIBS
13457 fi
13458 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13459 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13460 if test $ac_cv_lib_socket_main = yes; then
13461   gcj_cv_lib_sockets="-lsocket"
13462 else
13463   gcj_checkBoth=1
13464 fi
13465
13466      fi
13467      if test "$gcj_checkBoth" = 1; then
13468          gcj_oldLibs=$LIBS
13469          LIBS="$LIBS -lsocket -lnsl"
13470          unset ac_cv_func_accept
13471          echo "$as_me:$LINENO: checking for accept" >&5
13472 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13473 if test "${ac_cv_func_accept+set}" = set; then
13474   echo $ECHO_N "(cached) $ECHO_C" >&6
13475 else
13476   if test x$gcc_no_link = xyes; then
13477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13479    { (exit 1); exit 1; }; }
13480 fi
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13489 #define accept innocuous_accept
13490
13491 /* System header to define __stub macros and hopefully few prototypes,
13492     which can conflict with char accept (); below.
13493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13494     <limits.h> exists even on freestanding compilers.  */
13495
13496 #ifdef __STDC__
13497 # include <limits.h>
13498 #else
13499 # include <assert.h>
13500 #endif
13501
13502 #undef accept
13503
13504 /* Override any gcc2 internal prototype to avoid an error.  */
13505 #ifdef __cplusplus
13506 extern "C"
13507 {
13508 #endif
13509 /* We use char because int might match the return type of a gcc2
13510    builtin and then its argument prototype would still apply.  */
13511 char accept ();
13512 /* The GNU C library defines this for functions which it implements
13513     to always fail with ENOSYS.  Some functions are actually named
13514     something starting with __ and the normal name is an alias.  */
13515 #if defined (__stub_accept) || defined (__stub___accept)
13516 choke me
13517 #else
13518 char (*f) () = accept;
13519 #endif
13520 #ifdef __cplusplus
13521 }
13522 #endif
13523
13524 int
13525 main ()
13526 {
13527 return f != accept;
13528   ;
13529   return 0;
13530 }
13531 _ACEOF
13532 rm -f conftest.$ac_objext conftest$ac_exeext
13533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13534   (eval $ac_link) 2>conftest.er1
13535   ac_status=$?
13536   grep -v '^ *+' conftest.er1 >conftest.err
13537   rm -f conftest.er1
13538   cat conftest.err >&5
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } &&
13541          { ac_try='test -z "$ac_c_werror_flag"
13542                          || test ! -s conftest.err'
13543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544   (eval $ac_try) 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; } &&
13548          { ac_try='test -s conftest$ac_exeext'
13549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550   (eval $ac_try) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); }; }; then
13554   ac_cv_func_accept=yes
13555 else
13556   echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13558
13559 ac_cv_func_accept=no
13560 fi
13561 rm -f conftest.err conftest.$ac_objext \
13562       conftest$ac_exeext conftest.$ac_ext
13563 fi
13564 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13565 echo "${ECHO_T}$ac_cv_func_accept" >&6
13566 if test $ac_cv_func_accept = yes; then
13567   gcj_checkNsl=0
13568                         gcj_cv_lib_sockets="-lsocket -lnsl"
13569 fi
13570
13571          unset ac_cv_func_accept
13572          LIBS=$gcj_oldLibs
13573      fi
13574      unset ac_cv_func_gethostbyname
13575      gcj_oldLibs=$LIBS
13576      LIBS="$LIBS $gcj_cv_lib_sockets"
13577      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13578 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13579 if test "${ac_cv_func_gethostbyname+set}" = set; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   if test x$gcc_no_link = xyes; then
13583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13585    { (exit 1); exit 1; }; }
13586 fi
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13595 #define gethostbyname innocuous_gethostbyname
13596
13597 /* System header to define __stub macros and hopefully few prototypes,
13598     which can conflict with char gethostbyname (); below.
13599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13600     <limits.h> exists even on freestanding compilers.  */
13601
13602 #ifdef __STDC__
13603 # include <limits.h>
13604 #else
13605 # include <assert.h>
13606 #endif
13607
13608 #undef gethostbyname
13609
13610 /* Override any gcc2 internal prototype to avoid an error.  */
13611 #ifdef __cplusplus
13612 extern "C"
13613 {
13614 #endif
13615 /* We use char because int might match the return type of a gcc2
13616    builtin and then its argument prototype would still apply.  */
13617 char gethostbyname ();
13618 /* The GNU C library defines this for functions which it implements
13619     to always fail with ENOSYS.  Some functions are actually named
13620     something starting with __ and the normal name is an alias.  */
13621 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13622 choke me
13623 #else
13624 char (*f) () = gethostbyname;
13625 #endif
13626 #ifdef __cplusplus
13627 }
13628 #endif
13629
13630 int
13631 main ()
13632 {
13633 return f != gethostbyname;
13634   ;
13635   return 0;
13636 }
13637 _ACEOF
13638 rm -f conftest.$ac_objext conftest$ac_exeext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13640   (eval $ac_link) 2>conftest.er1
13641   ac_status=$?
13642   grep -v '^ *+' conftest.er1 >conftest.err
13643   rm -f conftest.er1
13644   cat conftest.err >&5
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); } &&
13647          { ac_try='test -z "$ac_c_werror_flag"
13648                          || test ! -s conftest.err'
13649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650   (eval $ac_try) 2>&5
13651   ac_status=$?
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); }; } &&
13654          { ac_try='test -s conftest$ac_exeext'
13655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656   (eval $ac_try) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; }; then
13660   ac_cv_func_gethostbyname=yes
13661 else
13662   echo "$as_me: failed program was:" >&5
13663 sed 's/^/| /' conftest.$ac_ext >&5
13664
13665 ac_cv_func_gethostbyname=no
13666 fi
13667 rm -f conftest.err conftest.$ac_objext \
13668       conftest$ac_exeext conftest.$ac_ext
13669 fi
13670 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13671 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13672 if test $ac_cv_func_gethostbyname = yes; then
13673   :
13674 else
13675   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13676 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13677 if test "${ac_cv_lib_nsl_main+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   ac_check_lib_save_LIBS=$LIBS
13681 LIBS="-lnsl  $LIBS"
13682 if test x$gcc_no_link = xyes; then
13683   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13684 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13685    { (exit 1); exit 1; }; }
13686 fi
13687 cat >conftest.$ac_ext <<_ACEOF
13688 /* confdefs.h.  */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h.  */
13693
13694
13695 int
13696 main ()
13697 {
13698 main ();
13699   ;
13700   return 0;
13701 }
13702 _ACEOF
13703 rm -f conftest.$ac_objext conftest$ac_exeext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13705   (eval $ac_link) 2>conftest.er1
13706   ac_status=$?
13707   grep -v '^ *+' conftest.er1 >conftest.err
13708   rm -f conftest.er1
13709   cat conftest.err >&5
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); } &&
13712          { ac_try='test -z "$ac_c_werror_flag"
13713                          || test ! -s conftest.err'
13714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715   (eval $ac_try) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; } &&
13719          { ac_try='test -s conftest$ac_exeext'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   ac_cv_lib_nsl_main=yes
13726 else
13727   echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13729
13730 ac_cv_lib_nsl_main=no
13731 fi
13732 rm -f conftest.err conftest.$ac_objext \
13733       conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13735 fi
13736 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13737 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13738 if test $ac_cv_lib_nsl_main = yes; then
13739   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13740 fi
13741
13742 fi
13743
13744      unset ac_cv_func_gethostbyname
13745      LIBS=$gcj_oldLIBS
13746
13747 fi
13748 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13749 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13750    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13751
13752    if test "$with_system_zlib" = yes; then
13753       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13754 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13755 if test "${ac_cv_lib_z_deflate+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   ac_check_lib_save_LIBS=$LIBS
13759 LIBS="-lz  $LIBS"
13760 if test x$gcc_no_link = xyes; then
13761   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13763    { (exit 1); exit 1; }; }
13764 fi
13765 cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771
13772 /* Override any gcc2 internal prototype to avoid an error.  */
13773 #ifdef __cplusplus
13774 extern "C"
13775 #endif
13776 /* We use char because int might match the return type of a gcc2
13777    builtin and then its argument prototype would still apply.  */
13778 char deflate ();
13779 int
13780 main ()
13781 {
13782 deflate ();
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 rm -f conftest.$ac_objext conftest$ac_exeext
13788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13789   (eval $ac_link) 2>conftest.er1
13790   ac_status=$?
13791   grep -v '^ *+' conftest.er1 >conftest.err
13792   rm -f conftest.er1
13793   cat conftest.err >&5
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } &&
13796          { ac_try='test -z "$ac_c_werror_flag"
13797                          || test ! -s conftest.err'
13798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799   (eval $ac_try) 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); }; } &&
13803          { ac_try='test -s conftest$ac_exeext'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; }; then
13809   ac_cv_lib_z_deflate=yes
13810 else
13811   echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13813
13814 ac_cv_lib_z_deflate=no
13815 fi
13816 rm -f conftest.err conftest.$ac_objext \
13817       conftest$ac_exeext conftest.$ac_ext
13818 LIBS=$ac_check_lib_save_LIBS
13819 fi
13820 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13821 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13822 if test $ac_cv_lib_z_deflate = yes; then
13823   ZLIBSPEC=-lz
13824 else
13825   ZLIBSPEC=
13826 fi
13827
13828    fi
13829
13830    # Test for Gtk stuff, if asked for.
13831    if test "$use_gtk_awt" = yes; then
13832
13833   succeeded=no
13834
13835   if test -z "$PKG_CONFIG"; then
13836     # Extract the first word of "pkg-config", so it can be a program name with args.
13837 set dummy pkg-config; ac_word=$2
13838 echo "$as_me:$LINENO: checking for $ac_word" >&5
13839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13840 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843   case $PKG_CONFIG in
13844   [\\/]* | ?:[\\/]*)
13845   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13846   ;;
13847   *)
13848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13850 do
13851   IFS=$as_save_IFS
13852   test -z "$as_dir" && as_dir=.
13853   for ac_exec_ext in '' $ac_executable_extensions; do
13854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13857     break 2
13858   fi
13859 done
13860 done
13861
13862   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13863   ;;
13864 esac
13865 fi
13866 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13867
13868 if test -n "$PKG_CONFIG"; then
13869   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13870 echo "${ECHO_T}$PKG_CONFIG" >&6
13871 else
13872   echo "$as_me:$LINENO: result: no" >&5
13873 echo "${ECHO_T}no" >&6
13874 fi
13875
13876   fi
13877
13878   if test "$PKG_CONFIG" = "no" ; then
13879      echo "*** The pkg-config script could not be found. Make sure it is"
13880      echo "*** in your path, or set the PKG_CONFIG environment variable"
13881      echo "*** to the full path to pkg-config."
13882      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13883   else
13884      PKG_CONFIG_MIN_VERSION=0.9.0
13885      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13886         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13887 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13888
13889         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13890             echo "$as_me:$LINENO: result: yes" >&5
13891 echo "${ECHO_T}yes" >&6
13892             succeeded=yes
13893
13894             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13895 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13896             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13897             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13898 echo "${ECHO_T}$GTK_CFLAGS" >&6
13899
13900             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13901 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13902             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13903             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13904 echo "${ECHO_T}$GTK_LIBS" >&6
13905         else
13906             GTK_CFLAGS=""
13907             GTK_LIBS=""
13908             ## If we have a custom action on failure, don't print errors, but
13909             ## do set a variable so people can do so.
13910             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13911             echo $GTK_PKG_ERRORS
13912         fi
13913
13914
13915
13916      else
13917         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13918         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13919      fi
13920   fi
13921
13922   if test $succeeded = yes; then
13923      :
13924   else
13925      { { 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
13926 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;}
13927    { (exit 1); exit 1; }; }
13928   fi
13929
13930
13931
13932
13933
13934   succeeded=no
13935
13936   if test -z "$PKG_CONFIG"; then
13937     # Extract the first word of "pkg-config", so it can be a program name with args.
13938 set dummy pkg-config; ac_word=$2
13939 echo "$as_me:$LINENO: checking for $ac_word" >&5
13940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944   case $PKG_CONFIG in
13945   [\\/]* | ?:[\\/]*)
13946   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13947   ;;
13948   *)
13949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13951 do
13952   IFS=$as_save_IFS
13953   test -z "$as_dir" && as_dir=.
13954   for ac_exec_ext in '' $ac_executable_extensions; do
13955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13956     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13958     break 2
13959   fi
13960 done
13961 done
13962
13963   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13964   ;;
13965 esac
13966 fi
13967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13968
13969 if test -n "$PKG_CONFIG"; then
13970   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13971 echo "${ECHO_T}$PKG_CONFIG" >&6
13972 else
13973   echo "$as_me:$LINENO: result: no" >&5
13974 echo "${ECHO_T}no" >&6
13975 fi
13976
13977   fi
13978
13979   if test "$PKG_CONFIG" = "no" ; then
13980      echo "*** The pkg-config script could not be found. Make sure it is"
13981      echo "*** in your path, or set the PKG_CONFIG environment variable"
13982      echo "*** to the full path to pkg-config."
13983      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13984   else
13985      PKG_CONFIG_MIN_VERSION=0.9.0
13986      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13987         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13988 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13989
13990         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13991             echo "$as_me:$LINENO: result: yes" >&5
13992 echo "${ECHO_T}yes" >&6
13993             succeeded=yes
13994
13995             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13996 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13997             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13998             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13999 echo "${ECHO_T}$GLIB_CFLAGS" >&6
14000
14001             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14002 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
14003             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14004             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14005 echo "${ECHO_T}$GLIB_LIBS" >&6
14006         else
14007             GLIB_CFLAGS=""
14008             GLIB_LIBS=""
14009             ## If we have a custom action on failure, don't print errors, but
14010             ## do set a variable so people can do so.
14011             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14012             echo $GLIB_PKG_ERRORS
14013         fi
14014
14015
14016
14017      else
14018         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14019         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14020      fi
14021   fi
14022
14023   if test $succeeded = yes; then
14024      :
14025   else
14026      { { 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
14027 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;}
14028    { (exit 1); exit 1; }; }
14029   fi
14030
14031
14032
14033
14034
14035   succeeded=no
14036
14037   if test -z "$PKG_CONFIG"; then
14038     # Extract the first word of "pkg-config", so it can be a program name with args.
14039 set dummy pkg-config; ac_word=$2
14040 echo "$as_me:$LINENO: checking for $ac_word" >&5
14041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14042 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   case $PKG_CONFIG in
14046   [\\/]* | ?:[\\/]*)
14047   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14048   ;;
14049   *)
14050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14051 for as_dir in $PATH
14052 do
14053   IFS=$as_save_IFS
14054   test -z "$as_dir" && as_dir=.
14055   for ac_exec_ext in '' $ac_executable_extensions; do
14056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14057     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14059     break 2
14060   fi
14061 done
14062 done
14063
14064   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14065   ;;
14066 esac
14067 fi
14068 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14069
14070 if test -n "$PKG_CONFIG"; then
14071   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14072 echo "${ECHO_T}$PKG_CONFIG" >&6
14073 else
14074   echo "$as_me:$LINENO: result: no" >&5
14075 echo "${ECHO_T}no" >&6
14076 fi
14077
14078   fi
14079
14080   if test "$PKG_CONFIG" = "no" ; then
14081      echo "*** The pkg-config script could not be found. Make sure it is"
14082      echo "*** in your path, or set the PKG_CONFIG environment variable"
14083      echo "*** to the full path to pkg-config."
14084      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14085   else
14086      PKG_CONFIG_MIN_VERSION=0.9.0
14087      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14088         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14089 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14090
14091         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14092             echo "$as_me:$LINENO: result: yes" >&5
14093 echo "${ECHO_T}yes" >&6
14094             succeeded=yes
14095
14096             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14097 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14098             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14099             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14100 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14101
14102             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14103 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14104             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14105             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14106 echo "${ECHO_T}$LIBART_LIBS" >&6
14107         else
14108             LIBART_CFLAGS=""
14109             LIBART_LIBS=""
14110             ## If we have a custom action on failure, don't print errors, but
14111             ## do set a variable so people can do so.
14112             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14113             echo $LIBART_PKG_ERRORS
14114         fi
14115
14116
14117
14118      else
14119         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14120         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14121      fi
14122   fi
14123
14124   if test $succeeded = yes; then
14125      :
14126   else
14127      { { 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
14128 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;}
14129    { (exit 1); exit 1; }; }
14130   fi
14131
14132
14133
14134
14135       # We require the XTest Extension to support java.awt.Robot.
14136       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14137 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14138 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14139   echo $ECHO_N "(cached) $ECHO_C" >&6
14140 else
14141   ac_check_lib_save_LIBS=$LIBS
14142 LIBS="-lXtst ${X_LIBS} $LIBS"
14143 if test x$gcc_no_link = xyes; then
14144   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14146    { (exit 1); exit 1; }; }
14147 fi
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154
14155 /* Override any gcc2 internal prototype to avoid an error.  */
14156 #ifdef __cplusplus
14157 extern "C"
14158 #endif
14159 /* We use char because int might match the return type of a gcc2
14160    builtin and then its argument prototype would still apply.  */
14161 char XTestQueryExtension ();
14162 int
14163 main ()
14164 {
14165 XTestQueryExtension ();
14166   ;
14167   return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14172   (eval $ac_link) 2>conftest.er1
14173   ac_status=$?
14174   grep -v '^ *+' conftest.er1 >conftest.err
14175   rm -f conftest.er1
14176   cat conftest.err >&5
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } &&
14179          { ac_try='test -z "$ac_c_werror_flag"
14180                          || test ! -s conftest.err'
14181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182   (eval $ac_try) 2>&5
14183   ac_status=$?
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); }; } &&
14186          { ac_try='test -s conftest$ac_exeext'
14187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188   (eval $ac_try) 2>&5
14189   ac_status=$?
14190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191   (exit $ac_status); }; }; then
14192   ac_cv_lib_Xtst_XTestQueryExtension=yes
14193 else
14194   echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14196
14197 ac_cv_lib_Xtst_XTestQueryExtension=no
14198 fi
14199 rm -f conftest.err conftest.$ac_objext \
14200       conftest$ac_exeext conftest.$ac_ext
14201 LIBS=$ac_check_lib_save_LIBS
14202 fi
14203 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14204 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14205 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14206   true
14207 else
14208   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14209 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14210    { (exit 1); exit 1; }; }
14211 fi
14212
14213    fi
14214
14215    # On Solaris, and maybe other architectures, the Boehm collector
14216    # requires -ldl.
14217    if test "$GC" = boehm; then
14218       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14219 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14220 if test "${ac_cv_lib_dl_main+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   ac_check_lib_save_LIBS=$LIBS
14224 LIBS="-ldl  $LIBS"
14225 if test x$gcc_no_link = xyes; then
14226   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14228    { (exit 1); exit 1; }; }
14229 fi
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h.  */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h.  */
14236
14237
14238 int
14239 main ()
14240 {
14241 main ();
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext conftest$ac_exeext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14248   (eval $ac_link) 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } &&
14255          { ac_try='test -z "$ac_c_werror_flag"
14256                          || test ! -s conftest.err'
14257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258   (eval $ac_try) 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; } &&
14262          { ac_try='test -s conftest$ac_exeext'
14263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264   (eval $ac_try) 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); }; }; then
14268   ac_cv_lib_dl_main=yes
14269 else
14270   echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 ac_cv_lib_dl_main=no
14274 fi
14275 rm -f conftest.err conftest.$ac_objext \
14276       conftest$ac_exeext conftest.$ac_ext
14277 LIBS=$ac_check_lib_save_LIBS
14278 fi
14279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14280 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14281 if test $ac_cv_lib_dl_main = yes; then
14282   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14283 fi
14284
14285    fi
14286 fi
14287
14288 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14289 case $build in
14290     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14291     *)         CLASSPATH_SEPARATOR=':' ;;
14292 esac
14293
14294
14295 # We must search the source tree for java.lang, since we still don't
14296 # have libgcj.jar nor java/lang/*.class
14297 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14298 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14299
14300 # Since some classes depend on this one, we need its source available
14301 # before we can do any GCJ compilation test :-(
14302 if test ! -f gnu/classpath/Configuration.java; then
14303   test -d gnu || mkdir gnu
14304   test -d gnu/classpath || mkdir gnu/classpath
14305   # Note that it is not crucial that all the values here be correct.
14306   sed -e "s,@prefix@,$prefix," \
14307       -e "s,@VERSION@,$VERSION," \
14308       -e "s,@LIBDEBUG@,false," \
14309       -e "s,@INIT_LOAD_LIBRARY@,false," \
14310       -e "s,@@,$LIBGCJDEBUG," \
14311       -e "s,@default_toolkit@,$TOOLKIT," \
14312       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14313       -e "s,@GTK_CAIRO_ENABLED@,false," \
14314       -e "s,@ECJ_JAR@,," \
14315         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14316         > gnu/classpath/Configuration.java
14317   # We do not want to redirect the output of the grep below to /dev/null,
14318   # but we add /dev/null to the input list so that grep will print the
14319   # filename of Configuration.java in case it finds any matches.
14320   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14321     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14322 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14323    { (exit 1); exit 1; }; }
14324   fi
14325 fi
14326
14327 if test -n "$ac_tool_prefix"; then
14328   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14329 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14330 echo "$as_me:$LINENO: checking for $ac_word" >&5
14331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14332 if test "${ac_cv_prog_GCJ+set}" = set; then
14333   echo $ECHO_N "(cached) $ECHO_C" >&6
14334 else
14335   if test -n "$GCJ"; then
14336   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14337 else
14338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339 for as_dir in $PATH
14340 do
14341   IFS=$as_save_IFS
14342   test -z "$as_dir" && as_dir=.
14343   for ac_exec_ext in '' $ac_executable_extensions; do
14344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14345     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14347     break 2
14348   fi
14349 done
14350 done
14351
14352 fi
14353 fi
14354 GCJ=$ac_cv_prog_GCJ
14355 if test -n "$GCJ"; then
14356   echo "$as_me:$LINENO: result: $GCJ" >&5
14357 echo "${ECHO_T}$GCJ" >&6
14358 else
14359   echo "$as_me:$LINENO: result: no" >&5
14360 echo "${ECHO_T}no" >&6
14361 fi
14362
14363 fi
14364 if test -z "$ac_cv_prog_GCJ"; then
14365   ac_ct_GCJ=$GCJ
14366   # Extract the first word of "gcj", so it can be a program name with args.
14367 set dummy gcj; ac_word=$2
14368 echo "$as_me:$LINENO: checking for $ac_word" >&5
14369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14370 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373   if test -n "$ac_ct_GCJ"; then
14374   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14375 else
14376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14377 for as_dir in $PATH
14378 do
14379   IFS=$as_save_IFS
14380   test -z "$as_dir" && as_dir=.
14381   for ac_exec_ext in '' $ac_executable_extensions; do
14382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14383     ac_cv_prog_ac_ct_GCJ="gcj"
14384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14385     break 2
14386   fi
14387 done
14388 done
14389
14390   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14391 fi
14392 fi
14393 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14394 if test -n "$ac_ct_GCJ"; then
14395   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14396 echo "${ECHO_T}$ac_ct_GCJ" >&6
14397 else
14398   echo "$as_me:$LINENO: result: no" >&5
14399 echo "${ECHO_T}no" >&6
14400 fi
14401
14402   GCJ=$ac_ct_GCJ
14403 else
14404   GCJ="$ac_cv_prog_GCJ"
14405 fi
14406
14407   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14408
14409
14410
14411
14412 # Now remove it.
14413 rm -f gnu/classpath/Configuration.java
14414
14415 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14416
14417 echo "$as_me:$LINENO: checking for void *" >&5
14418 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14419 if test "${ac_cv_type_void_p+set}" = set; then
14420   echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422   cat >conftest.$ac_ext <<_ACEOF
14423 /* confdefs.h.  */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h.  */
14428 $ac_includes_default
14429 int
14430 main ()
14431 {
14432 if ((void * *) 0)
14433   return 0;
14434 if (sizeof (void *))
14435   return 0;
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442   (eval $ac_compile) 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } &&
14449          { ac_try='test -z "$ac_c_werror_flag"
14450                          || test ! -s conftest.err'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; } &&
14456          { ac_try='test -s conftest.$ac_objext'
14457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458   (eval $ac_try) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); }; }; then
14462   ac_cv_type_void_p=yes
14463 else
14464   echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 ac_cv_type_void_p=no
14468 fi
14469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 fi
14471 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14472 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14473
14474 echo "$as_me:$LINENO: checking size of void *" >&5
14475 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14476 if test "${ac_cv_sizeof_void_p+set}" = set; then
14477   echo $ECHO_N "(cached) $ECHO_C" >&6
14478 else
14479   if test "$ac_cv_type_void_p" = yes; then
14480   # The cast to unsigned long works around a bug in the HP C Compiler
14481   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14482   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14483   # This bug is HP SR number 8606223364.
14484   if test "$cross_compiling" = yes; then
14485   # Depending upon the size, compute the lo and hi bounds.
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h.  */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h.  */
14492 $ac_includes_default
14493 int
14494 main ()
14495 {
14496 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14497 test_array [0] = 0
14498
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505   (eval $ac_compile) 2>conftest.er1
14506   ac_status=$?
14507   grep -v '^ *+' conftest.er1 >conftest.err
14508   rm -f conftest.er1
14509   cat conftest.err >&5
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); } &&
14512          { ac_try='test -z "$ac_c_werror_flag"
14513                          || test ! -s conftest.err'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   ac_lo=0 ac_mid=0
14526   while :; do
14527     cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 $ac_includes_default
14534 int
14535 main ()
14536 {
14537 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14538 test_array [0] = 0
14539
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest.$ac_objext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14546   (eval $ac_compile) 2>conftest.er1
14547   ac_status=$?
14548   grep -v '^ *+' conftest.er1 >conftest.err
14549   rm -f conftest.er1
14550   cat conftest.err >&5
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -z "$ac_c_werror_flag"
14554                          || test ! -s conftest.err'
14555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556   (eval $ac_try) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; } &&
14560          { ac_try='test -s conftest.$ac_objext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_hi=$ac_mid; break
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 ac_lo=`expr $ac_mid + 1`
14572                     if test $ac_lo -le $ac_mid; then
14573                       ac_lo= ac_hi=
14574                       break
14575                     fi
14576                     ac_mid=`expr 2 '*' $ac_mid + 1`
14577 fi
14578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14579   done
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584 cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590 $ac_includes_default
14591 int
14592 main ()
14593 {
14594 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14595 test_array [0] = 0
14596
14597   ;
14598   return 0;
14599 }
14600 _ACEOF
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603   (eval $ac_compile) 2>conftest.er1
14604   ac_status=$?
14605   grep -v '^ *+' conftest.er1 >conftest.err
14606   rm -f conftest.er1
14607   cat conftest.err >&5
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); } &&
14610          { ac_try='test -z "$ac_c_werror_flag"
14611                          || test ! -s conftest.err'
14612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613   (eval $ac_try) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); }; } &&
14617          { ac_try='test -s conftest.$ac_objext'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }; then
14623   ac_hi=-1 ac_mid=-1
14624   while :; do
14625     cat >conftest.$ac_ext <<_ACEOF
14626 /* confdefs.h.  */
14627 _ACEOF
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h.  */
14631 $ac_includes_default
14632 int
14633 main ()
14634 {
14635 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14636 test_array [0] = 0
14637
14638   ;
14639   return 0;
14640 }
14641 _ACEOF
14642 rm -f conftest.$ac_objext
14643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14644   (eval $ac_compile) 2>conftest.er1
14645   ac_status=$?
14646   grep -v '^ *+' conftest.er1 >conftest.err
14647   rm -f conftest.er1
14648   cat conftest.err >&5
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); } &&
14651          { ac_try='test -z "$ac_c_werror_flag"
14652                          || test ! -s conftest.err'
14653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654   (eval $ac_try) 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; } &&
14658          { ac_try='test -s conftest.$ac_objext'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; }; then
14664   ac_lo=$ac_mid; break
14665 else
14666   echo "$as_me: failed program was:" >&5
14667 sed 's/^/| /' conftest.$ac_ext >&5
14668
14669 ac_hi=`expr '(' $ac_mid ')' - 1`
14670                        if test $ac_mid -le $ac_hi; then
14671                          ac_lo= ac_hi=
14672                          break
14673                        fi
14674                        ac_mid=`expr 2 '*' $ac_mid`
14675 fi
14676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14677   done
14678 else
14679   echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_lo= ac_hi=
14683 fi
14684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14685 fi
14686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14687 # Binary search between lo and hi bounds.
14688 while test "x$ac_lo" != "x$ac_hi"; do
14689   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14690   cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 $ac_includes_default
14697 int
14698 main ()
14699 {
14700 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14701 test_array [0] = 0
14702
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709   (eval $ac_compile) 2>conftest.er1
14710   ac_status=$?
14711   grep -v '^ *+' conftest.er1 >conftest.err
14712   rm -f conftest.er1
14713   cat conftest.err >&5
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } &&
14716          { ac_try='test -z "$ac_c_werror_flag"
14717                          || test ! -s conftest.err'
14718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14719   (eval $ac_try) 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; } &&
14723          { ac_try='test -s conftest.$ac_objext'
14724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14725   (eval $ac_try) 2>&5
14726   ac_status=$?
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); }; }; then
14729   ac_hi=$ac_mid
14730 else
14731   echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734 ac_lo=`expr '(' $ac_mid ')' + 1`
14735 fi
14736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14737 done
14738 case $ac_lo in
14739 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14740 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14741 See \`config.log' for more details." >&5
14742 echo "$as_me: error: cannot compute sizeof (void *), 77
14743 See \`config.log' for more details." >&2;}
14744    { (exit 1); exit 1; }; } ;;
14745 esac
14746 else
14747   if test "$cross_compiling" = yes; then
14748   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14749 See \`config.log' for more details." >&5
14750 echo "$as_me: error: cannot run test program while cross compiling
14751 See \`config.log' for more details." >&2;}
14752    { (exit 1); exit 1; }; }
14753 else
14754   cat >conftest.$ac_ext <<_ACEOF
14755 /* confdefs.h.  */
14756 _ACEOF
14757 cat confdefs.h >>conftest.$ac_ext
14758 cat >>conftest.$ac_ext <<_ACEOF
14759 /* end confdefs.h.  */
14760 $ac_includes_default
14761 long longval () { return (long) (sizeof (void *)); }
14762 unsigned long ulongval () { return (long) (sizeof (void *)); }
14763 #include <stdio.h>
14764 #include <stdlib.h>
14765 int
14766 main ()
14767 {
14768
14769   FILE *f = fopen ("conftest.val", "w");
14770   if (! f)
14771     exit (1);
14772   if (((long) (sizeof (void *))) < 0)
14773     {
14774       long i = longval ();
14775       if (i != ((long) (sizeof (void *))))
14776         exit (1);
14777       fprintf (f, "%ld\n", i);
14778     }
14779   else
14780     {
14781       unsigned long i = ulongval ();
14782       if (i != ((long) (sizeof (void *))))
14783         exit (1);
14784       fprintf (f, "%lu\n", i);
14785     }
14786   exit (ferror (f) || fclose (f) != 0);
14787
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest$ac_exeext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14794   (eval $ac_link) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; }; then
14803   ac_cv_sizeof_void_p=`cat conftest.val`
14804 else
14805   echo "$as_me: program exited with status $ac_status" >&5
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ( exit $ac_status )
14810 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14811 See \`config.log' for more details." >&5
14812 echo "$as_me: error: cannot compute sizeof (void *), 77
14813 See \`config.log' for more details." >&2;}
14814    { (exit 1); exit 1; }; }
14815 fi
14816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14817 fi
14818 fi
14819 rm -f conftest.val
14820 else
14821   ac_cv_sizeof_void_p=0
14822 fi
14823 fi
14824 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14825 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14826 cat >>confdefs.h <<_ACEOF
14827 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14828 _ACEOF
14829
14830
14831
14832 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14833 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14834 if test "${ac_cv_c_bigendian+set}" = set; then
14835   echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837   # See if sys/param.h defines the BYTE_ORDER macro.
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h.  */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h.  */
14844 #include <sys/types.h>
14845 #include <sys/param.h>
14846
14847 int
14848 main ()
14849 {
14850 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14851  bogus endian macros
14852 #endif
14853
14854   ;
14855   return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860   (eval $ac_compile) 2>conftest.er1
14861   ac_status=$?
14862   grep -v '^ *+' conftest.er1 >conftest.err
14863   rm -f conftest.er1
14864   cat conftest.err >&5
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); } &&
14867          { ac_try='test -z "$ac_c_werror_flag"
14868                          || test ! -s conftest.err'
14869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870   (eval $ac_try) 2>&5
14871   ac_status=$?
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); }; } &&
14874          { ac_try='test -s conftest.$ac_objext'
14875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876   (eval $ac_try) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); }; }; then
14880   # It does; now see whether it defined to BIG_ENDIAN or not.
14881 cat >conftest.$ac_ext <<_ACEOF
14882 /* confdefs.h.  */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h.  */
14887 #include <sys/types.h>
14888 #include <sys/param.h>
14889
14890 int
14891 main ()
14892 {
14893 #if BYTE_ORDER != BIG_ENDIAN
14894  not big endian
14895 #endif
14896
14897   ;
14898   return 0;
14899 }
14900 _ACEOF
14901 rm -f conftest.$ac_objext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903   (eval $ac_compile) 2>conftest.er1
14904   ac_status=$?
14905   grep -v '^ *+' conftest.er1 >conftest.err
14906   rm -f conftest.er1
14907   cat conftest.err >&5
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -z "$ac_c_werror_flag"
14911                          || test ! -s conftest.err'
14912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913   (eval $ac_try) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }; } &&
14917          { ac_try='test -s conftest.$ac_objext'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   ac_cv_c_bigendian=yes
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928 ac_cv_c_bigendian=no
14929 fi
14930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14934
14935 # It does not; compile a test program.
14936 if test "$cross_compiling" = yes; then
14937   # try to guess the endianness by grepping values into an object file
14938   ac_cv_c_bigendian=unknown
14939   cat >conftest.$ac_ext <<_ACEOF
14940 /* confdefs.h.  */
14941 _ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h.  */
14945 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14946 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14947 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14948 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14949 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14950 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14951 int
14952 main ()
14953 {
14954  _ascii (); _ebcdic ();
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext
14960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14961   (eval $ac_compile) 2>conftest.er1
14962   ac_status=$?
14963   grep -v '^ *+' conftest.er1 >conftest.err
14964   rm -f conftest.er1
14965   cat conftest.err >&5
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); } &&
14968          { ac_try='test -z "$ac_c_werror_flag"
14969                          || test ! -s conftest.err'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; } &&
14975          { ac_try='test -s conftest.$ac_objext'
14976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977   (eval $ac_try) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; }; then
14981   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14982   ac_cv_c_bigendian=yes
14983 fi
14984 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14985   if test "$ac_cv_c_bigendian" = unknown; then
14986     ac_cv_c_bigendian=no
14987   else
14988     # finding both strings is unlikely to happen, but who knows?
14989     ac_cv_c_bigendian=unknown
14990   fi
14991 fi
14992 else
14993   echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14995
14996 fi
14997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14998 else
14999   cat >conftest.$ac_ext <<_ACEOF
15000 /* confdefs.h.  */
15001 _ACEOF
15002 cat confdefs.h >>conftest.$ac_ext
15003 cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h.  */
15005 int
15006 main ()
15007 {
15008   /* Are we little or big endian?  From Harbison&Steele.  */
15009   union
15010   {
15011     long l;
15012     char c[sizeof (long)];
15013   } u;
15014   u.l = 1;
15015   exit (u.c[sizeof (long) - 1] == 1);
15016 }
15017 _ACEOF
15018 rm -f conftest$ac_exeext
15019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020   (eval $ac_link) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025   (eval $ac_try) 2>&5
15026   ac_status=$?
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); }; }; then
15029   ac_cv_c_bigendian=no
15030 else
15031   echo "$as_me: program exited with status $ac_status" >&5
15032 echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.$ac_ext >&5
15034
15035 ( exit $ac_status )
15036 ac_cv_c_bigendian=yes
15037 fi
15038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15039 fi
15040 fi
15041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15042 fi
15043 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15044 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
15045 case $ac_cv_c_bigendian in
15046   yes)
15047
15048 cat >>confdefs.h <<\_ACEOF
15049 #define WORDS_BIGENDIAN 1
15050 _ACEOF
15051  ;;
15052   no)
15053      ;;
15054   *)
15055     { { echo "$as_me:$LINENO: error: unknown endianness
15056 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15057 echo "$as_me: error: unknown endianness
15058 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15059    { (exit 1); exit 1; }; } ;;
15060 esac
15061
15062
15063 ZLIBS=
15064 SYS_ZLIBS=
15065 ZINCS=
15066
15067 if test -z "$ZLIBSPEC"; then
15068    # Use zlib from the GCC tree.
15069    ZINCS='-I$(top_srcdir)/../zlib'
15070    ZLIBS=../zlib/libzgcj_convenience.la
15071 else
15072    # System's zlib.
15073    SYS_ZLIBS="$ZLIBSPEC"
15074 fi
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086 if test "$NATIVE" = yes; then
15087   NATIVE_TRUE=
15088   NATIVE_FALSE='#'
15089 else
15090   NATIVE_TRUE='#'
15091   NATIVE_FALSE=
15092 fi
15093
15094
15095
15096 if test "$enable_shared" = yes; then
15097   ENABLE_SHARED_TRUE=
15098   ENABLE_SHARED_FALSE='#'
15099 else
15100   ENABLE_SHARED_TRUE='#'
15101   ENABLE_SHARED_FALSE=
15102 fi
15103
15104
15105
15106 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15107   NEEDS_DATA_START_TRUE=
15108   NEEDS_DATA_START_FALSE='#'
15109 else
15110   NEEDS_DATA_START_TRUE='#'
15111   NEEDS_DATA_START_FALSE=
15112 fi
15113
15114
15115
15116 # Process the option "--enable-version-specific-runtime-libs"
15117 # Calculate toolexeclibdir
15118 case ${version_specific_libs} in
15119   yes)
15120     # Need the gcc compiler version to know where to install libraries
15121     # and header files if --enable-version-specific-runtime-libs option
15122     # is selected.
15123     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15124     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15125     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15126     toolexeclibdir=$toolexecmainlibdir
15127     ;;
15128   no)
15129     if test -n "$with_cross_host" &&
15130        test x"$with_cross_host" != x"no"; then
15131       # Install a library built with a cross compiler in tooldir, not libdir.
15132       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15133       toolexecmainlibdir='$(toolexecdir)/lib'
15134     else
15135       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15136       toolexecmainlibdir='$(libdir)'
15137     fi
15138     multi_os_directory=`$CC -print-multi-os-directory`
15139     case $multi_os_directory in
15140       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15141       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15142     esac
15143     ;;
15144 esac
15145
15146
15147
15148
15149 # Determine where the standard .db file and GNU Classpath JNI
15150 # libraries are found.
15151 multi_os_directory=`$CC -print-multi-os-directory`
15152 case $multi_os_directory in
15153   .)
15154    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15155    ;;
15156   *)
15157    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15158    ;;
15159 esac
15160
15161
15162 # Determine gcj version number.
15163 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15164 GCJVERSION=$gcjversion
15165
15166
15167 cat >>confdefs.h <<_ACEOF
15168 #define GCJVERSION "$GCJVERSION"
15169 _ACEOF
15170
15171
15172
15173 cat >>confdefs.h <<\_ACEOF
15174 #define JV_VERSION "1.5.0"
15175 _ACEOF
15176
15177
15178 cat >>confdefs.h <<\_ACEOF
15179 #define JV_API_VERSION "1.5"
15180 _ACEOF
15181
15182
15183
15184 case "${with_gxx_include_dir}" in
15185   yes)
15186     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15187 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15188    { (exit 1); exit 1; }; }
15189     ;;
15190   no | "")
15191     case "${enable_version_specific_runtime_libs}" in
15192       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15193       *)
15194         libstdcxx_incdir='c++/$(gcc_version)'
15195         gxx_include_dir='include/$(libstdcxx_incdir)'
15196         if test -n "$with_cross_host" &&
15197            test x"$with_cross_host" != x"no"; then
15198           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15199         else
15200           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15201         fi;;
15202     esac ;;
15203   *) gxx_include_dir=${with_gxx_include_dir} ;;
15204 esac
15205
15206
15207
15208
15209 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15210 # On that system, sys/ioctl.h will not include sys/filio.h unless
15211 # BSD_COMP is defined; just including sys/filio.h is simpler.
15212 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15213 # for now.  If you change this, you also must update natFile.cc.
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15238                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15239                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15240                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15241                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
15242 do
15243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15245   echo "$as_me:$LINENO: checking for $ac_header" >&5
15246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15248   echo $ECHO_N "(cached) $ECHO_C" >&6
15249 fi
15250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15251 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15252 else
15253   # Is the header compilable?
15254 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h.  */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h.  */
15262 $ac_includes_default
15263 #include <$ac_header>
15264 _ACEOF
15265 rm -f conftest.$ac_objext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267   (eval $ac_compile) 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } &&
15274          { ac_try='test -z "$ac_c_werror_flag"
15275                          || test ! -s conftest.err'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; } &&
15281          { ac_try='test -s conftest.$ac_objext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   ac_header_compiler=yes
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292 ac_header_compiler=no
15293 fi
15294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15295 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15296 echo "${ECHO_T}$ac_header_compiler" >&6
15297
15298 # Is the header present?
15299 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15301 cat >conftest.$ac_ext <<_ACEOF
15302 /* confdefs.h.  */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h.  */
15307 #include <$ac_header>
15308 _ACEOF
15309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15310   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } >/dev/null; then
15317   if test -s conftest.err; then
15318     ac_cpp_err=$ac_c_preproc_warn_flag
15319     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15320   else
15321     ac_cpp_err=
15322   fi
15323 else
15324   ac_cpp_err=yes
15325 fi
15326 if test -z "$ac_cpp_err"; then
15327   ac_header_preproc=yes
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332   ac_header_preproc=no
15333 fi
15334 rm -f conftest.err conftest.$ac_ext
15335 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15336 echo "${ECHO_T}$ac_header_preproc" >&6
15337
15338 # So?  What about this header?
15339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15340   yes:no: )
15341     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15342 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15344 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15345     ac_header_preproc=yes
15346     ;;
15347   no:yes:* )
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15350     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15351 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15352     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15353 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15354     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15355 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15357 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15358     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15359 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15360     (
15361       cat <<\_ASBOX
15362 ## ---------------------------------- ##
15363 ## Report this to the libjava lists.  ##
15364 ## ---------------------------------- ##
15365 _ASBOX
15366     ) |
15367       sed "s/^/$as_me: WARNING:     /" >&2
15368     ;;
15369 esac
15370 echo "$as_me:$LINENO: checking for $ac_header" >&5
15371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15373   echo $ECHO_N "(cached) $ECHO_C" >&6
15374 else
15375   eval "$as_ac_Header=\$ac_header_preproc"
15376 fi
15377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15379
15380 fi
15381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15382   cat >>confdefs.h <<_ACEOF
15383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15384 _ACEOF
15385
15386 fi
15387
15388 done
15389
15390
15391 for ac_header in inttypes.h
15392 do
15393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15395   echo "$as_me:$LINENO: checking for $ac_header" >&5
15396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15398   echo $ECHO_N "(cached) $ECHO_C" >&6
15399 fi
15400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15402 else
15403   # Is the header compilable?
15404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h.  */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h.  */
15412 $ac_includes_default
15413 #include <$ac_header>
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417   (eval $ac_compile) 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } &&
15424          { ac_try='test -z "$ac_c_werror_flag"
15425                          || test ! -s conftest.err'
15426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427   (eval $ac_try) 2>&5
15428   ac_status=$?
15429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430   (exit $ac_status); }; } &&
15431          { ac_try='test -s conftest.$ac_objext'
15432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433   (eval $ac_try) 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; }; then
15437   ac_header_compiler=yes
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_header_compiler=no
15443 fi
15444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15446 echo "${ECHO_T}$ac_header_compiler" >&6
15447
15448 # Is the header present?
15449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15451 cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457 #include <$ac_header>
15458 _ACEOF
15459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15460   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15461   ac_status=$?
15462   grep -v '^ *+' conftest.er1 >conftest.err
15463   rm -f conftest.er1
15464   cat conftest.err >&5
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); } >/dev/null; then
15467   if test -s conftest.err; then
15468     ac_cpp_err=$ac_c_preproc_warn_flag
15469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15470   else
15471     ac_cpp_err=
15472   fi
15473 else
15474   ac_cpp_err=yes
15475 fi
15476 if test -z "$ac_cpp_err"; then
15477   ac_header_preproc=yes
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482   ac_header_preproc=no
15483 fi
15484 rm -f conftest.err conftest.$ac_ext
15485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15486 echo "${ECHO_T}$ac_header_preproc" >&6
15487
15488 # So?  What about this header?
15489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15490   yes:no: )
15491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15495     ac_header_preproc=yes
15496     ;;
15497   no:yes:* )
15498     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15500     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15501 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15502     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15504     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15505 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15508     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15510     (
15511       cat <<\_ASBOX
15512 ## ---------------------------------- ##
15513 ## Report this to the libjava lists.  ##
15514 ## ---------------------------------- ##
15515 _ASBOX
15516     ) |
15517       sed "s/^/$as_me: WARNING:     /" >&2
15518     ;;
15519 esac
15520 echo "$as_me:$LINENO: checking for $ac_header" >&5
15521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525   eval "$as_ac_Header=\$ac_header_preproc"
15526 fi
15527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15529
15530 fi
15531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15532   cat >>confdefs.h <<_ACEOF
15533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15534 _ACEOF
15535
15536
15537 cat >>confdefs.h <<\_ACEOF
15538 #define HAVE_INTTYPES_H 1
15539 _ACEOF
15540
15541
15542 cat >>confdefs.h <<\_ACEOF
15543 #define JV_HAVE_INTTYPES_H 1
15544 _ACEOF
15545
15546
15547 fi
15548
15549 done
15550
15551
15552 echo "$as_me:$LINENO: checking for ssize_t" >&5
15553 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15554 if test "${ac_cv_type_ssize_t+set}" = set; then
15555   echo $ECHO_N "(cached) $ECHO_C" >&6
15556 else
15557   cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h.  */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h.  */
15563 $ac_includes_default
15564 int
15565 main ()
15566 {
15567 if ((ssize_t *) 0)
15568   return 0;
15569 if (sizeof (ssize_t))
15570   return 0;
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577   (eval $ac_compile) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest.$ac_objext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   ac_cv_type_ssize_t=yes
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 ac_cv_type_ssize_t=no
15603 fi
15604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15605 fi
15606 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15607 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15608 if test $ac_cv_type_ssize_t = yes; then
15609   :
15610 else
15611
15612 cat >>confdefs.h <<_ACEOF
15613 #define ssize_t int
15614 _ACEOF
15615
15616 fi
15617
15618 echo "$as_me:$LINENO: checking for magic_t" >&5
15619 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
15620 if test "${ac_cv_type_magic_t+set}" = set; then
15621   echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623   cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629
15630 #ifdef HAVE_MAGIC_H
15631 #include <magic.h>
15632 #endif
15633
15634 int
15635 main ()
15636 {
15637 if ((magic_t *) 0)
15638   return 0;
15639 if (sizeof (magic_t))
15640   return 0;
15641   ;
15642   return 0;
15643 }
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647   (eval $ac_compile) 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag"
15655                          || test ! -s conftest.err'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; } &&
15661          { ac_try='test -s conftest.$ac_objext'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667   ac_cv_type_magic_t=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 ac_cv_type_magic_t=no
15673 fi
15674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675 fi
15676 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
15677 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
15678 if test $ac_cv_type_magic_t = yes; then
15679
15680
15681 cat >>confdefs.h <<\_ACEOF
15682 #define HAVE_MAGIC_T 1
15683 _ACEOF
15684
15685 fi
15686
15687
15688 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15689 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h.  */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h.  */
15696 #include <sys/types.h>
15697 #if STDC_HEADERS
15698 #include <stdlib.h>
15699 #include <stddef.h>
15700 #endif
15701 #if HAVE_NETINET_IN_H
15702 #include <netinet/in.h>
15703 #endif
15704 int
15705 main ()
15706 {
15707 in_addr_t foo;
15708   ;
15709   return 0;
15710 }
15711 _ACEOF
15712 rm -f conftest.$ac_objext
15713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15714   (eval $ac_compile) 2>conftest.er1
15715   ac_status=$?
15716   grep -v '^ *+' conftest.er1 >conftest.err
15717   rm -f conftest.er1
15718   cat conftest.err >&5
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } &&
15721          { ac_try='test -z "$ac_c_werror_flag"
15722                          || test ! -s conftest.err'
15723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724   (eval $ac_try) 2>&5
15725   ac_status=$?
15726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); }; } &&
15728          { ac_try='test -s conftest.$ac_objext'
15729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730   (eval $ac_try) 2>&5
15731   ac_status=$?
15732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733   (exit $ac_status); }; }; then
15734
15735 cat >>confdefs.h <<\_ACEOF
15736 #define HAVE_IN_ADDR_T 1
15737 _ACEOF
15738
15739    echo "$as_me:$LINENO: result: yes" >&5
15740 echo "${ECHO_T}yes" >&6
15741 else
15742   echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745 echo "$as_me:$LINENO: result: no" >&5
15746 echo "${ECHO_T}no" >&6
15747 fi
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15749
15750 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15751 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15752 cat >conftest.$ac_ext <<_ACEOF
15753 /* confdefs.h.  */
15754 _ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h.  */
15758 #include <netinet/in.h>
15759 int
15760 main ()
15761 {
15762 struct ip_mreq mreq;
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769   (eval $ac_compile) 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -z "$ac_c_werror_flag"
15777                          || test ! -s conftest.err'
15778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779   (eval $ac_try) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; } &&
15783          { ac_try='test -s conftest.$ac_objext'
15784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785   (eval $ac_try) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789
15790 cat >>confdefs.h <<\_ACEOF
15791 #define HAVE_STRUCT_IP_MREQ 1
15792 _ACEOF
15793
15794    echo "$as_me:$LINENO: result: yes" >&5
15795 echo "${ECHO_T}yes" >&6
15796 else
15797   echo "$as_me: failed program was:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15799
15800 echo "$as_me:$LINENO: result: no" >&5
15801 echo "${ECHO_T}no" >&6
15802 fi
15803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15804
15805 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15806 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15807 cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813 #include <netinet/in.h>
15814 int
15815 main ()
15816 {
15817 struct ipv6_mreq mreq6;
15818   ;
15819   return 0;
15820 }
15821 _ACEOF
15822 rm -f conftest.$ac_objext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15824   (eval $ac_compile) 2>conftest.er1
15825   ac_status=$?
15826   grep -v '^ *+' conftest.er1 >conftest.err
15827   rm -f conftest.er1
15828   cat conftest.err >&5
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } &&
15831          { ac_try='test -z "$ac_c_werror_flag"
15832                          || test ! -s conftest.err'
15833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15834   (eval $ac_try) 2>&5
15835   ac_status=$?
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); }; } &&
15838          { ac_try='test -s conftest.$ac_objext'
15839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15840   (eval $ac_try) 2>&5
15841   ac_status=$?
15842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843   (exit $ac_status); }; }; then
15844
15845 cat >>confdefs.h <<\_ACEOF
15846 #define HAVE_STRUCT_IPV6_MREQ 1
15847 _ACEOF
15848
15849    echo "$as_me:$LINENO: result: yes" >&5
15850 echo "${ECHO_T}yes" >&6
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855 echo "$as_me:$LINENO: result: no" >&5
15856 echo "${ECHO_T}no" >&6
15857 fi
15858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15859
15860 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15861 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15862 cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h.  */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h.  */
15868 #include <netinet/in.h>
15869 int
15870 main ()
15871 {
15872 struct sockaddr_in6 addr6;
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15879   (eval $ac_compile) 2>conftest.er1
15880   ac_status=$?
15881   grep -v '^ *+' conftest.er1 >conftest.err
15882   rm -f conftest.er1
15883   cat conftest.err >&5
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); } &&
15886          { ac_try='test -z "$ac_c_werror_flag"
15887                          || test ! -s conftest.err'
15888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889   (eval $ac_try) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; } &&
15893          { ac_try='test -s conftest.$ac_objext'
15894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895   (eval $ac_try) 2>&5
15896   ac_status=$?
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); }; }; then
15899
15900 cat >>confdefs.h <<\_ACEOF
15901 #define HAVE_INET6 1
15902 _ACEOF
15903
15904    echo "$as_me:$LINENO: result: yes" >&5
15905 echo "${ECHO_T}yes" >&6
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910 echo "$as_me:$LINENO: result: no" >&5
15911 echo "${ECHO_T}no" >&6
15912 fi
15913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914
15915 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15916 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h.  */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h.  */
15923 #define _POSIX_PII_SOCKET
15924 #include <sys/types.h>
15925 #include <sys/socket.h>
15926 int
15927 main ()
15928 {
15929 socklen_t x = 5;
15930   ;
15931   return 0;
15932 }
15933 _ACEOF
15934 rm -f conftest.$ac_objext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15936   (eval $ac_compile) 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } &&
15943          { ac_try='test -z "$ac_c_werror_flag"
15944                          || test ! -s conftest.err'
15945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946   (eval $ac_try) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; } &&
15950          { ac_try='test -s conftest.$ac_objext'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956
15957 cat >>confdefs.h <<\_ACEOF
15958 #define HAVE_SOCKLEN_T 1
15959 _ACEOF
15960
15961    echo "$as_me:$LINENO: result: yes" >&5
15962 echo "${ECHO_T}yes" >&6
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 echo "$as_me:$LINENO: result: no" >&5
15968 echo "${ECHO_T}no" >&6
15969 fi
15970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15971
15972 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15973 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980 #include <time.h>
15981 int
15982 main ()
15983 {
15984 struct tm tim; tim.tm_gmtoff = 0;
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991   (eval $ac_compile) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag"
15999                          || test ! -s conftest.err'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; } &&
16005          { ac_try='test -s conftest.$ac_objext'
16006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007   (eval $ac_try) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011
16012 cat >>confdefs.h <<\_ACEOF
16013 #define STRUCT_TM_HAS_GMTOFF 1
16014 _ACEOF
16015
16016    echo "$as_me:$LINENO: result: yes" >&5
16017 echo "${ECHO_T}yes" >&6
16018 else
16019   echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16021
16022 echo "$as_me:$LINENO: result: no" >&5
16023 echo "${ECHO_T}no" >&6
16024    echo "$as_me:$LINENO: checking for global timezone variable" >&5
16025 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
16026                cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 #include <time.h>
16033 int
16034 main ()
16035 {
16036 void i(){long z2 = 2*timezone;}
16037   ;
16038   return 0;
16039 }
16040 _ACEOF
16041 rm -f conftest.$ac_objext
16042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16043   (eval $ac_compile) 2>conftest.er1
16044   ac_status=$?
16045   grep -v '^ *+' conftest.er1 >conftest.err
16046   rm -f conftest.er1
16047   cat conftest.err >&5
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } &&
16050          { ac_try='test -z "$ac_c_werror_flag"
16051                          || test ! -s conftest.err'
16052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053   (eval $ac_try) 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; } &&
16057          { ac_try='test -s conftest.$ac_objext'
16058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16059   (eval $ac_try) 2>&5
16060   ac_status=$?
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); }; }; then
16063
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_TIMEZONE 1
16066 _ACEOF
16067
16068       echo "$as_me:$LINENO: result: yes" >&5
16069 echo "${ECHO_T}yes" >&6
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 echo "$as_me:$LINENO: result: no" >&5
16075 echo "${ECHO_T}no" >&6
16076        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16077 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
16078               cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 #include <time.h>
16085 int
16086 main ()
16087 {
16088 long z2 = _timezone;
16089   ;
16090   return 0;
16091 }
16092 _ACEOF
16093 rm -f conftest.$ac_objext
16094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16095   (eval $ac_compile) 2>conftest.er1
16096   ac_status=$?
16097   grep -v '^ *+' conftest.er1 >conftest.err
16098   rm -f conftest.er1
16099   cat conftest.err >&5
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); } &&
16102          { ac_try='test -z "$ac_c_werror_flag"
16103                          || test ! -s conftest.err'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; } &&
16109          { ac_try='test -s conftest.$ac_objext'
16110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111   (eval $ac_try) 2>&5
16112   ac_status=$?
16113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114   (exit $ac_status); }; }; then
16115
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE_UNDERSCORE_TIMEZONE 1
16118 _ACEOF
16119
16120           echo "$as_me:$LINENO: result: yes" >&5
16121 echo "${ECHO_T}yes" >&6
16122 else
16123   echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 echo "$as_me:$LINENO: result: no" >&5
16127 echo "${ECHO_T}no" >&6
16128 fi
16129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16130 fi
16131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16132 fi
16133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16134
16135 for ac_prog in perl
16136 do
16137   # Extract the first word of "$ac_prog", so it can be a program name with args.
16138 set dummy $ac_prog; ac_word=$2
16139 echo "$as_me:$LINENO: checking for $ac_word" >&5
16140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16141 if test "${ac_cv_prog_PERL+set}" = set; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   if test -n "$PERL"; then
16145   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16146 else
16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148 for as_dir in $PATH
16149 do
16150   IFS=$as_save_IFS
16151   test -z "$as_dir" && as_dir=.
16152   for ac_exec_ext in '' $ac_executable_extensions; do
16153   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16154     ac_cv_prog_PERL="$ac_prog"
16155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16156     break 2
16157   fi
16158 done
16159 done
16160
16161 fi
16162 fi
16163 PERL=$ac_cv_prog_PERL
16164 if test -n "$PERL"; then
16165   echo "$as_me:$LINENO: result: $PERL" >&5
16166 echo "${ECHO_T}$PERL" >&6
16167 else
16168   echo "$as_me:$LINENO: result: no" >&5
16169 echo "${ECHO_T}no" >&6
16170 fi
16171
16172   test -n "$PERL" && break
16173 done
16174 test -n "$PERL" || PERL="false"
16175
16176
16177 SYSDEP_SOURCES=
16178 SIGNAL_HANDLER_AUX=
16179
16180 case "${host}" in
16181  i?86-*-linux*)
16182     SIGNAL_HANDLER=include/i386-signal.h
16183     ;;
16184  sparc*-sun-solaris*)
16185     SIGNAL_HANDLER=include/sparc-signal.h
16186     ;;
16187 # ia64-*)
16188 #    SYSDEP_SOURCES=sysdep/ia64.c
16189 #    test -d sysdep || mkdir sysdep
16190 #    ;;
16191  hppa*-*-linux*)
16192     SIGNAL_HANDLER=include/pa-signal.h
16193     ;;
16194  hppa*-hp-hpux*)
16195     SIGNAL_HANDLER=include/hppa-signal.h
16196     ;;
16197  ia64-*-linux*)
16198     SIGNAL_HANDLER=include/dwarf2-signal.h
16199     ;;
16200  powerpc*-*-linux*)
16201     SIGNAL_HANDLER=include/powerpc-signal.h
16202     ;;
16203  alpha*-*-linux*)
16204     SIGNAL_HANDLER=include/dwarf2-signal.h
16205     ;;
16206  s390*-*-linux*)
16207     SIGNAL_HANDLER=include/s390-signal.h
16208     ;;
16209  x86_64*-*-linux*)
16210     SIGNAL_HANDLER=include/x86_64-signal.h
16211     SIGNAL_HANDLER_AUX=include/i386-signal.h
16212     ;;
16213  sparc*-*-linux*)
16214     SIGNAL_HANDLER=include/dwarf2-signal.h
16215     ;;
16216  sh*-*-linux*)
16217     SIGNAL_HANDLER=include/sh-signal.h
16218     ;;
16219  *mingw*)
16220     SIGNAL_HANDLER=include/win32-signal.h
16221     ;;
16222  mips*-*-linux*)
16223     SIGNAL_HANDLER=include/mips-signal.h
16224     ;;
16225  powerpc*-*-darwin*)
16226     SIGNAL_HANDLER=include/darwin-signal.h
16227     ;;
16228  *)
16229     SIGNAL_HANDLER=include/default-signal.h
16230     ;;
16231 esac
16232
16233 # If we're using sjlj exceptions, forget what we just learned.
16234 if test "$enable_sjlj_exceptions" = yes; then
16235    SIGNAL_HANDLER=include/default-signal.h
16236    SIGNAL_HANDLER_AUX=
16237 fi
16238
16239
16240
16241 if test -z "$SIGNAL_HANDLER_AUX"; then
16242   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16243 fi
16244
16245                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16246
16247
16248 if test "${multilib}" = "yes"; then
16249   multilib_arg="--enable-multilib"
16250 else
16251   multilib_arg=
16252 fi
16253
16254 # See if we support thread-local storage.
16255
16256    # Check whether --enable-tls or --disable-tls was given.
16257 if test "${enable_tls+set}" = set; then
16258   enableval="$enable_tls"
16259
16260       case "$enableval" in
16261        yes|no) ;;
16262        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16263 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16264    { (exit 1); exit 1; }; } ;;
16265       esac
16266
16267 else
16268   enable_tls=yes
16269 fi;
16270
16271   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16272 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16273 if test "${have_tls+set}" = set; then
16274   echo $ECHO_N "(cached) $ECHO_C" >&6
16275 else
16276
16277     if test "$cross_compiling" = yes; then
16278                 if test x$gcc_no_link = xyes; then
16279   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16281    { (exit 1); exit 1; }; }
16282 fi
16283 cat >conftest.$ac_ext <<_ACEOF
16284 __thread int a; int b; int main() { return a = b; }
16285 _ACEOF
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16288   (eval $ac_link) 2>conftest.er1
16289   ac_status=$?
16290   grep -v '^ *+' conftest.er1 >conftest.err
16291   rm -f conftest.er1
16292   cat conftest.err >&5
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); } &&
16295          { ac_try='test -z "$ac_c_werror_flag"
16296                          || test ! -s conftest.err'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; } &&
16302          { ac_try='test -s conftest$ac_exeext'
16303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304   (eval $ac_try) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; }; then
16308   have_tls=yes
16309 else
16310   echo "$as_me: failed program was:" >&5
16311 sed 's/^/| /' conftest.$ac_ext >&5
16312
16313 have_tls=no
16314 fi
16315 rm -f conftest.err conftest.$ac_objext \
16316       conftest$ac_exeext conftest.$ac_ext
16317
16318
16319 else
16320   cat >conftest.$ac_ext <<_ACEOF
16321 __thread int a; int b; int main() { return a = b; }
16322 _ACEOF
16323 rm -f conftest$ac_exeext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16325   (eval $ac_link) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330   (eval $ac_try) 2>&5
16331   ac_status=$?
16332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333   (exit $ac_status); }; }; then
16334                       chktls_save_LDFLAGS="$LDFLAGS"
16335       LDFLAGS="-static $LDFLAGS"
16336       if test x$gcc_no_link = xyes; then
16337   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16339    { (exit 1); exit 1; }; }
16340 fi
16341 cat >conftest.$ac_ext <<_ACEOF
16342 int main() { return 0; }
16343 _ACEOF
16344 rm -f conftest.$ac_objext conftest$ac_exeext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346   (eval $ac_link) 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } &&
16353          { ac_try='test -z "$ac_c_werror_flag"
16354                          || test ! -s conftest.err'
16355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356   (eval $ac_try) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; } &&
16360          { ac_try='test -s conftest$ac_exeext'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   if test "$cross_compiling" = yes; then
16367   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16368 See \`config.log' for more details." >&5
16369 echo "$as_me: error: cannot run test program while cross compiling
16370 See \`config.log' for more details." >&2;}
16371    { (exit 1); exit 1; }; }
16372 else
16373   cat >conftest.$ac_ext <<_ACEOF
16374 __thread int a; int b; int main() { return a = b; }
16375 _ACEOF
16376 rm -f conftest$ac_exeext
16377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16378   (eval $ac_link) 2>&5
16379   ac_status=$?
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383   (eval $ac_try) 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); }; }; then
16387   have_tls=yes
16388 else
16389   echo "$as_me: program exited with status $ac_status" >&5
16390 echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16392
16393 ( exit $ac_status )
16394 have_tls=no
16395 fi
16396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16397 fi
16398 else
16399   echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402 have_tls=yes
16403 fi
16404 rm -f conftest.err conftest.$ac_objext \
16405       conftest$ac_exeext conftest.$ac_ext
16406       LDFLAGS="$chktls_save_LDFLAGS"
16407       if test $have_tls = yes; then
16408                                                 chktls_save_CFLAGS="$CFLAGS"
16409         thread_CFLAGS=failed
16410         for flag in '' '-pthread' '-lpthread'; do
16411           CFLAGS="$flag $chktls_save_CFLAGS"
16412           if test x$gcc_no_link = xyes; then
16413   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16415    { (exit 1); exit 1; }; }
16416 fi
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423 #include <pthread.h>
16424                 void *g(void *d) { return NULL; }
16425 int
16426 main ()
16427 {
16428 pthread_t t; pthread_create(&t,NULL,g,NULL);
16429   ;
16430   return 0;
16431 }
16432 _ACEOF
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16435   (eval $ac_link) 2>conftest.er1
16436   ac_status=$?
16437   grep -v '^ *+' conftest.er1 >conftest.err
16438   rm -f conftest.er1
16439   cat conftest.err >&5
16440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441   (exit $ac_status); } &&
16442          { ac_try='test -z "$ac_c_werror_flag"
16443                          || test ! -s conftest.err'
16444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445   (eval $ac_try) 2>&5
16446   ac_status=$?
16447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448   (exit $ac_status); }; } &&
16449          { ac_try='test -s conftest$ac_exeext'
16450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451   (eval $ac_try) 2>&5
16452   ac_status=$?
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); }; }; then
16455   thread_CFLAGS="$flag"
16456 else
16457   echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 fi
16461 rm -f conftest.err conftest.$ac_objext \
16462       conftest$ac_exeext conftest.$ac_ext
16463           if test "X$thread_CFLAGS" != Xfailed; then
16464             break
16465           fi
16466         done
16467         CFLAGS="$chktls_save_CFLAGS"
16468         if test "X$thread_CFLAGS" != Xfailed; then
16469           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16470           if test "$cross_compiling" = yes; then
16471   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16472 See \`config.log' for more details." >&5
16473 echo "$as_me: error: cannot run test program while cross compiling
16474 See \`config.log' for more details." >&2;}
16475    { (exit 1); exit 1; }; }
16476 else
16477   cat >conftest.$ac_ext <<_ACEOF
16478 /* confdefs.h.  */
16479 _ACEOF
16480 cat confdefs.h >>conftest.$ac_ext
16481 cat >>conftest.$ac_ext <<_ACEOF
16482 /* end confdefs.h.  */
16483 #include <pthread.h>
16484                 __thread int a;
16485                 static int *a_in_other_thread;
16486                 static void *
16487                 thread_func (void *arg)
16488                 {
16489                   a_in_other_thread = &a;
16490                   return (void *)0;
16491                 }
16492 int
16493 main ()
16494 {
16495 pthread_t thread;
16496                 void *thread_retval;
16497                 int *a_in_main_thread;
16498                 if (pthread_create (&thread, (pthread_attr_t *)0,
16499                                     thread_func, (void *)0))
16500                   return 0;
16501                 a_in_main_thread = &a;
16502                 if (pthread_join (thread, &thread_retval))
16503                   return 0;
16504                 return (a_in_other_thread == a_in_main_thread);
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511   (eval $ac_link) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516   (eval $ac_try) 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; }; then
16520   have_tls=yes
16521 else
16522   echo "$as_me: program exited with status $ac_status" >&5
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 ( exit $ac_status )
16527 have_tls=no
16528 fi
16529 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16530 fi
16531           CFLAGS="$chktls_save_CFLAGS"
16532         fi
16533       fi
16534 else
16535   echo "$as_me: program exited with status $ac_status" >&5
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16538
16539 ( exit $ac_status )
16540 have_tls=no
16541 fi
16542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16543 fi
16544 fi
16545 echo "$as_me:$LINENO: result: $have_tls" >&5
16546 echo "${ECHO_T}$have_tls" >&6
16547   if test "$enable_tls $have_tls" = "yes yes"; then
16548
16549 cat >>confdefs.h <<\_ACEOF
16550 #define HAVE_TLS 1
16551 _ACEOF
16552
16553   fi
16554
16555 # For _Unwind_GetIPInfo.
16556
16557
16558
16559   ac_ext=cc
16560 ac_cpp='$CXXCPP $CPPFLAGS'
16561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16564
16565   ac_save_CXXFLAGS="$CXXFLAGS"
16566   CXXFLAGS="$CXXFLAGS -fno-exceptions"
16567   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
16568 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
16569   if test "${gcc_cv_getipinfo+set}" = set; then
16570   echo $ECHO_N "(cached) $ECHO_C" >&6
16571 else
16572
16573   if test x$gcc_no_link = xyes; then
16574   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16576    { (exit 1); exit 1; }; }
16577 fi
16578 cat >conftest.$ac_ext <<_ACEOF
16579 /* confdefs.h.  */
16580 _ACEOF
16581 cat confdefs.h >>conftest.$ac_ext
16582 cat >>conftest.$ac_ext <<_ACEOF
16583 /* end confdefs.h.  */
16584 extern "C" { extern void _Unwind_GetIPInfo(); }
16585 int
16586 main ()
16587 {
16588 _Unwind_GetIPInfo();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595   (eval $ac_link) 2>conftest.er1
16596   ac_status=$?
16597   grep -v '^ *+' conftest.er1 >conftest.err
16598   rm -f conftest.er1
16599   cat conftest.err >&5
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); } &&
16602          { ac_try='test -z "$ac_cxx_werror_flag"
16603                          || test ! -s conftest.err'
16604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605   (eval $ac_try) 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); }; } &&
16609          { ac_try='test -s conftest$ac_exeext'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   gcc_cv_getipinfo=yes
16616 else
16617   echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 gcc_cv_getipinfo=no
16621 fi
16622 rm -f conftest.err conftest.$ac_objext \
16623       conftest$ac_exeext conftest.$ac_ext
16624
16625 fi
16626
16627   if test $gcc_cv_getipinfo = yes; then
16628
16629 cat >>confdefs.h <<\_ACEOF
16630 #define HAVE_GETIPINFO 1
16631 _ACEOF
16632
16633   fi
16634   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
16635 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
16636   CXXFLAGS="$ac_save_CXXFLAGS"
16637   ac_ext=c
16638 ac_cpp='$CPP $CPPFLAGS'
16639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16642
16643
16644
16645 # See if linker supports anonymous version scripts.
16646 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
16647 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
16648 if test "${libjava_cv_anon_version_script+set}" = set; then
16649   echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
16652    libjava_cv_anon_version_script=no
16653    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
16654    echo '{ global: globalsymb*; local: *; };' > conftest.map
16655    if test x$gcc_no_link = xyes; then
16656   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16658    { (exit 1); exit 1; }; }
16659 fi
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666 void globalsymbol (void) {} void localsymbol (void) {}
16667 int
16668 main ()
16669 {
16670
16671   ;
16672   return 0;
16673 }
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677   (eval $ac_link) 2>conftest.er1
16678   ac_status=$?
16679   grep -v '^ *+' conftest.er1 >conftest.err
16680   rm -f conftest.er1
16681   cat conftest.err >&5
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } &&
16684          { ac_try='test -z "$ac_c_werror_flag"
16685                          || test ! -s conftest.err'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; } &&
16691          { ac_try='test -s conftest$ac_exeext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   libjava_cv_anon_version_script=yes
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 fi
16703 rm -f conftest.err conftest.$ac_objext \
16704       conftest$ac_exeext conftest.$ac_ext
16705    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
16706
16707 fi
16708 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
16709 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
16710
16711
16712 if test "$libjava_cv_anon_version_script" = yes; then
16713   ANONVERSCRIPT_TRUE=
16714   ANONVERSCRIPT_FALSE='#'
16715 else
16716   ANONVERSCRIPT_TRUE='#'
16717   ANONVERSCRIPT_FALSE=
16718 fi
16719
16720
16721 # Check if linker supports static linking on a per library basis
16722 LD_START_STATIC_SPEC=
16723 LD_FINISH_STATIC_SPEC=
16724 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16725   if $LD --help 2>&1 | grep -q -e -non_shared ; then
16726     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16727     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16728   fi
16729 fi
16730
16731
16732
16733 here=`${PWDCMD-pwd}`
16734
16735
16736 # We get this from the environment.
16737
16738
16739                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16740
16741
16742           ac_config_files="$ac_config_files scripts/jar"
16743
16744
16745           ac_config_commands="$ac_config_commands default"
16746
16747
16748 cat >confcache <<\_ACEOF
16749 # This file is a shell script that caches the results of configure
16750 # tests run on this system so they can be shared between configure
16751 # scripts and configure runs, see configure's option --config-cache.
16752 # It is not useful on other systems.  If it contains results you don't
16753 # want to keep, you may remove or edit it.
16754 #
16755 # config.status only pays attention to the cache file if you give it
16756 # the --recheck option to rerun configure.
16757 #
16758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16760 # following values.
16761
16762 _ACEOF
16763
16764 # The following way of writing the cache mishandles newlines in values,
16765 # but we know of no workaround that is simple, portable, and efficient.
16766 # So, don't put newlines in cache variables' values.
16767 # Ultrix sh set writes to stderr and can't be redirected directly,
16768 # and sets the high bit in the cache file unless we assign to the vars.
16769 {
16770   (set) 2>&1 |
16771     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16772     *ac_space=\ *)
16773       # `set' does not quote correctly, so add quotes (double-quote
16774       # substitution turns \\\\ into \\, and sed turns \\ into \).
16775       sed -n \
16776         "s/'/'\\\\''/g;
16777           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16778       ;;
16779     *)
16780       # `set' quotes correctly as required by POSIX, so do not add quotes.
16781       sed -n \
16782         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16783       ;;
16784     esac;
16785 } |
16786   sed '
16787      t clear
16788      : clear
16789      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16790      t end
16791      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16792      : end' >>confcache
16793 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16794   if test -w $cache_file; then
16795     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16796     cat confcache >$cache_file
16797   else
16798     echo "not updating unwritable cache $cache_file"
16799   fi
16800 fi
16801 rm -f confcache
16802
16803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16804 # Let make expand exec_prefix.
16805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16806
16807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16809 # trailing colons and then remove the whole line if VPATH becomes empty
16810 # (actually we leave an empty line to preserve line numbers).
16811 if test "x$srcdir" = x.; then
16812   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16813 s/:*\$(srcdir):*/:/;
16814 s/:*\${srcdir}:*/:/;
16815 s/:*@srcdir@:*/:/;
16816 s/^\([^=]*=[     ]*\):*/\1/;
16817 s/:*$//;
16818 s/^[^=]*=[       ]*$//;
16819 }'
16820 fi
16821
16822 DEFS=-DHAVE_CONFIG_H
16823
16824 ac_libobjs=
16825 ac_ltlibobjs=
16826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16827   # 1. Remove the extension, and $U if already installed.
16828   ac_i=`echo "$ac_i" |
16829          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16830   # 2. Add them.
16831   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16832   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16833 done
16834 LIBOBJS=$ac_libobjs
16835
16836 LTLIBOBJS=$ac_ltlibobjs
16837
16838
16839 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
16840   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
16841 Usually this means the macro was only invoked conditionally." >&5
16842 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
16843 Usually this means the macro was only invoked conditionally." >&2;}
16844    { (exit 1); exit 1; }; }
16845 fi
16846 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16847   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16848 Usually this means the macro was only invoked conditionally." >&5
16849 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16850 Usually this means the macro was only invoked conditionally." >&2;}
16851    { (exit 1); exit 1; }; }
16852 fi
16853 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16854   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16855 Usually this means the macro was only invoked conditionally." >&5
16856 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16857 Usually this means the macro was only invoked conditionally." >&2;}
16858    { (exit 1); exit 1; }; }
16859 fi
16860 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16861   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16862 Usually this means the macro was only invoked conditionally." >&5
16863 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16864 Usually this means the macro was only invoked conditionally." >&2;}
16865    { (exit 1); exit 1; }; }
16866 fi
16867 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16868   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16869 Usually this means the macro was only invoked conditionally." >&5
16870 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16871 Usually this means the macro was only invoked conditionally." >&2;}
16872    { (exit 1); exit 1; }; }
16873 fi
16874 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16875   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16876 Usually this means the macro was only invoked conditionally." >&5
16877 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16878 Usually this means the macro was only invoked conditionally." >&2;}
16879    { (exit 1); exit 1; }; }
16880 fi
16881 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
16882   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
16883 Usually this means the macro was only invoked conditionally." >&5
16884 echo "$as_me: error: conditional \"X_AWT\" was never defined.
16885 Usually this means the macro was only invoked conditionally." >&2;}
16886    { (exit 1); exit 1; }; }
16887 fi
16888 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16889   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16890 Usually this means the macro was only invoked conditionally." >&5
16891 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16892 Usually this means the macro was only invoked conditionally." >&2;}
16893    { (exit 1); exit 1; }; }
16894 fi
16895 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16896   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16897 Usually this means the macro was only invoked conditionally." >&5
16898 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16899 Usually this means the macro was only invoked conditionally." >&2;}
16900    { (exit 1); exit 1; }; }
16901 fi
16902 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
16903   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
16904 Usually this means the macro was only invoked conditionally." >&5
16905 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
16906 Usually this means the macro was only invoked conditionally." >&2;}
16907    { (exit 1); exit 1; }; }
16908 fi
16909 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
16910   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
16911 Usually this means the macro was only invoked conditionally." >&5
16912 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
16913 Usually this means the macro was only invoked conditionally." >&2;}
16914    { (exit 1); exit 1; }; }
16915 fi
16916 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16917   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16918 Usually this means the macro was only invoked conditionally." >&5
16919 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16920 Usually this means the macro was only invoked conditionally." >&2;}
16921    { (exit 1); exit 1; }; }
16922 fi
16923 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16924   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&5
16926 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16927 Usually this means the macro was only invoked conditionally." >&2;}
16928    { (exit 1); exit 1; }; }
16929 fi
16930 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16931   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16932 Usually this means the macro was only invoked conditionally." >&5
16933 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16934 Usually this means the macro was only invoked conditionally." >&2;}
16935    { (exit 1); exit 1; }; }
16936 fi
16937 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16938   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16939 Usually this means the macro was only invoked conditionally." >&5
16940 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16941 Usually this means the macro was only invoked conditionally." >&2;}
16942    { (exit 1); exit 1; }; }
16943 fi
16944 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16945   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16946 Usually this means the macro was only invoked conditionally." >&5
16947 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16948 Usually this means the macro was only invoked conditionally." >&2;}
16949    { (exit 1); exit 1; }; }
16950 fi
16951 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16952   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16953 Usually this means the macro was only invoked conditionally." >&5
16954 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16955 Usually this means the macro was only invoked conditionally." >&2;}
16956    { (exit 1); exit 1; }; }
16957 fi
16958 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16959   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16960 Usually this means the macro was only invoked conditionally." >&5
16961 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16962 Usually this means the macro was only invoked conditionally." >&2;}
16963    { (exit 1); exit 1; }; }
16964 fi
16965 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16966   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16967 Usually this means the macro was only invoked conditionally." >&5
16968 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16969 Usually this means the macro was only invoked conditionally." >&2;}
16970    { (exit 1); exit 1; }; }
16971 fi
16972 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16973   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16974 Usually this means the macro was only invoked conditionally." >&5
16975 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16976 Usually this means the macro was only invoked conditionally." >&2;}
16977    { (exit 1); exit 1; }; }
16978 fi
16979 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
16980   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
16981 Usually this means the macro was only invoked conditionally." >&5
16982 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
16983 Usually this means the macro was only invoked conditionally." >&2;}
16984    { (exit 1); exit 1; }; }
16985 fi
16986 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16987   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16988 Usually this means the macro was only invoked conditionally." >&5
16989 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16990 Usually this means the macro was only invoked conditionally." >&2;}
16991    { (exit 1); exit 1; }; }
16992 fi
16993 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16994   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16995 Usually this means the macro was only invoked conditionally." >&5
16996 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16997 Usually this means the macro was only invoked conditionally." >&2;}
16998    { (exit 1); exit 1; }; }
16999 fi
17000 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17001   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
17002 Usually this means the macro was only invoked conditionally." >&5
17003 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
17004 Usually this means the macro was only invoked conditionally." >&2;}
17005    { (exit 1); exit 1; }; }
17006 fi
17007 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17008   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17009 Usually this means the macro was only invoked conditionally." >&5
17010 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17011 Usually this means the macro was only invoked conditionally." >&2;}
17012    { (exit 1); exit 1; }; }
17013 fi
17014 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
17015   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
17016 Usually this means the macro was only invoked conditionally." >&5
17017 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
17018 Usually this means the macro was only invoked conditionally." >&2;}
17019    { (exit 1); exit 1; }; }
17020 fi
17021
17022 : ${CONFIG_STATUS=./config.status}
17023 ac_clean_files_save=$ac_clean_files
17024 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17025 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17026 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17027 cat >$CONFIG_STATUS <<_ACEOF
17028 #! $SHELL
17029 # Generated by $as_me.
17030 # Run this file to recreate the current configuration.
17031 # Compiler output produced by configure, useful for debugging
17032 # configure, is in config.log if it exists.
17033
17034 debug=false
17035 ac_cs_recheck=false
17036 ac_cs_silent=false
17037 SHELL=\${CONFIG_SHELL-$SHELL}
17038 _ACEOF
17039
17040 cat >>$CONFIG_STATUS <<\_ACEOF
17041 ## --------------------- ##
17042 ## M4sh Initialization.  ##
17043 ## --------------------- ##
17044
17045 # Be Bourne compatible
17046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17047   emulate sh
17048   NULLCMD=:
17049   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17050   # is contrary to our usage.  Disable this feature.
17051   alias -g '${1+"$@"}'='"$@"'
17052 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17053   set -o posix
17054 fi
17055 DUALCASE=1; export DUALCASE # for MKS sh
17056
17057 # Support unset when possible.
17058 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17059   as_unset=unset
17060 else
17061   as_unset=false
17062 fi
17063
17064
17065 # Work around bugs in pre-3.0 UWIN ksh.
17066 $as_unset ENV MAIL MAILPATH
17067 PS1='$ '
17068 PS2='> '
17069 PS4='+ '
17070
17071 # NLS nuisances.
17072 for as_var in \
17073   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17074   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17075   LC_TELEPHONE LC_TIME
17076 do
17077   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17078     eval $as_var=C; export $as_var
17079   else
17080     $as_unset $as_var
17081   fi
17082 done
17083
17084 # Required to use basename.
17085 if expr a : '\(a\)' >/dev/null 2>&1; then
17086   as_expr=expr
17087 else
17088   as_expr=false
17089 fi
17090
17091 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17092   as_basename=basename
17093 else
17094   as_basename=false
17095 fi
17096
17097
17098 # Name of the executable.
17099 as_me=`$as_basename "$0" ||
17100 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17101          X"$0" : 'X\(//\)$' \| \
17102          X"$0" : 'X\(/\)$' \| \
17103          .     : '\(.\)' 2>/dev/null ||
17104 echo X/"$0" |
17105     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17106           /^X\/\(\/\/\)$/{ s//\1/; q; }
17107           /^X\/\(\/\).*/{ s//\1/; q; }
17108           s/.*/./; q'`
17109
17110
17111 # PATH needs CR, and LINENO needs CR and PATH.
17112 # Avoid depending upon Character Ranges.
17113 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17114 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17115 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17116 as_cr_digits='0123456789'
17117 as_cr_alnum=$as_cr_Letters$as_cr_digits
17118
17119 # The user is always right.
17120 if test "${PATH_SEPARATOR+set}" != set; then
17121   echo "#! /bin/sh" >conf$$.sh
17122   echo  "exit 0"   >>conf$$.sh
17123   chmod +x conf$$.sh
17124   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17125     PATH_SEPARATOR=';'
17126   else
17127     PATH_SEPARATOR=:
17128   fi
17129   rm -f conf$$.sh
17130 fi
17131
17132
17133   as_lineno_1=$LINENO
17134   as_lineno_2=$LINENO
17135   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17136   test "x$as_lineno_1" != "x$as_lineno_2" &&
17137   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17138   # Find who we are.  Look in the path if we contain no path at all
17139   # relative or not.
17140   case $0 in
17141     *[\\/]* ) as_myself=$0 ;;
17142     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17143 for as_dir in $PATH
17144 do
17145   IFS=$as_save_IFS
17146   test -z "$as_dir" && as_dir=.
17147   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17148 done
17149
17150        ;;
17151   esac
17152   # We did not find ourselves, most probably we were run as `sh COMMAND'
17153   # in which case we are not to be found in the path.
17154   if test "x$as_myself" = x; then
17155     as_myself=$0
17156   fi
17157   if test ! -f "$as_myself"; then
17158     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17159 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17160    { (exit 1); exit 1; }; }
17161   fi
17162   case $CONFIG_SHELL in
17163   '')
17164     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17165 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17166 do
17167   IFS=$as_save_IFS
17168   test -z "$as_dir" && as_dir=.
17169   for as_base in sh bash ksh sh5; do
17170          case $as_dir in
17171          /*)
17172            if ("$as_dir/$as_base" -c '
17173   as_lineno_1=$LINENO
17174   as_lineno_2=$LINENO
17175   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17176   test "x$as_lineno_1" != "x$as_lineno_2" &&
17177   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17178              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17179              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17180              CONFIG_SHELL=$as_dir/$as_base
17181              export CONFIG_SHELL
17182              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17183            fi;;
17184          esac
17185        done
17186 done
17187 ;;
17188   esac
17189
17190   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17191   # uniformly replaced by the line number.  The first 'sed' inserts a
17192   # line-number line before each line; the second 'sed' does the real
17193   # work.  The second script uses 'N' to pair each line-number line
17194   # with the numbered line, and appends trailing '-' during
17195   # substitution so that $LINENO is not a special case at line end.
17196   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17197   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17198   sed '=' <$as_myself |
17199     sed '
17200       N
17201       s,$,-,
17202       : loop
17203       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17204       t loop
17205       s,-$,,
17206       s,^['$as_cr_digits']*\n,,
17207     ' >$as_me.lineno &&
17208   chmod +x $as_me.lineno ||
17209     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17210 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17211    { (exit 1); exit 1; }; }
17212
17213   # Don't try to exec as it changes $[0], causing all sort of problems
17214   # (the dirname of $[0] is not the place where we might find the
17215   # original and so on.  Autoconf is especially sensible to this).
17216   . ./$as_me.lineno
17217   # Exit status is that of the last command.
17218   exit
17219 }
17220
17221
17222 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17223   *c*,-n*) ECHO_N= ECHO_C='
17224 ' ECHO_T='      ' ;;
17225   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17226   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17227 esac
17228
17229 if expr a : '\(a\)' >/dev/null 2>&1; then
17230   as_expr=expr
17231 else
17232   as_expr=false
17233 fi
17234
17235 rm -f conf$$ conf$$.exe conf$$.file
17236 echo >conf$$.file
17237 if ln -s conf$$.file conf$$ 2>/dev/null; then
17238   # We could just check for DJGPP; but this test a) works b) is more generic
17239   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17240   if test -f conf$$.exe; then
17241     # Don't use ln at all; we don't have any links
17242     as_ln_s='cp -p'
17243   else
17244     as_ln_s='ln -s'
17245   fi
17246 elif ln conf$$.file conf$$ 2>/dev/null; then
17247   as_ln_s=ln
17248 else
17249   as_ln_s='cp -p'
17250 fi
17251 rm -f conf$$ conf$$.exe conf$$.file
17252
17253 if mkdir -p . 2>/dev/null; then
17254   as_mkdir_p=:
17255 else
17256   test -d ./-p && rmdir ./-p
17257   as_mkdir_p=false
17258 fi
17259
17260 as_executable_p="test -f"
17261
17262 # Sed expression to map a string onto a valid CPP name.
17263 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17264
17265 # Sed expression to map a string onto a valid variable name.
17266 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17267
17268
17269 # IFS
17270 # We need space, tab and new line, in precisely that order.
17271 as_nl='
17272 '
17273 IFS="   $as_nl"
17274
17275 # CDPATH.
17276 $as_unset CDPATH
17277
17278 exec 6>&1
17279
17280 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17281 # report actual input values of CONFIG_FILES etc. instead of their
17282 # values after options handling.  Logging --version etc. is OK.
17283 exec 5>>config.log
17284 {
17285   echo
17286   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17287 ## Running $as_me. ##
17288 _ASBOX
17289 } >&5
17290 cat >&5 <<_CSEOF
17291
17292 This file was extended by libjava $as_me version-unused, which was
17293 generated by GNU Autoconf 2.59.  Invocation command line was
17294
17295   CONFIG_FILES    = $CONFIG_FILES
17296   CONFIG_HEADERS  = $CONFIG_HEADERS
17297   CONFIG_LINKS    = $CONFIG_LINKS
17298   CONFIG_COMMANDS = $CONFIG_COMMANDS
17299   $ $0 $@
17300
17301 _CSEOF
17302 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17303 echo >&5
17304 _ACEOF
17305
17306 # Files that config.status was made for.
17307 if test -n "$ac_config_files"; then
17308   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17309 fi
17310
17311 if test -n "$ac_config_headers"; then
17312   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17313 fi
17314
17315 if test -n "$ac_config_links"; then
17316   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17317 fi
17318
17319 if test -n "$ac_config_commands"; then
17320   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17321 fi
17322
17323 cat >>$CONFIG_STATUS <<\_ACEOF
17324
17325 ac_cs_usage="\
17326 \`$as_me' instantiates files from templates according to the
17327 current configuration.
17328
17329 Usage: $0 [OPTIONS] [FILE]...
17330
17331   -h, --help       print this help, then exit
17332   -V, --version    print version number, then exit
17333   -q, --quiet      do not print progress messages
17334   -d, --debug      don't remove temporary files
17335       --recheck    update $as_me by reconfiguring in the same conditions
17336   --file=FILE[:TEMPLATE]
17337                    instantiate the configuration file FILE
17338   --header=FILE[:TEMPLATE]
17339                    instantiate the configuration header FILE
17340
17341 Configuration files:
17342 $config_files
17343
17344 Configuration headers:
17345 $config_headers
17346
17347 Configuration links:
17348 $config_links
17349
17350 Configuration commands:
17351 $config_commands
17352
17353 Report bugs to <bug-autoconf@gnu.org>."
17354 _ACEOF
17355
17356 cat >>$CONFIG_STATUS <<_ACEOF
17357 ac_cs_version="\\
17358 libjava config.status version-unused
17359 configured by $0, generated by GNU Autoconf 2.59,
17360   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17361
17362 Copyright (C) 2003 Free Software Foundation, Inc.
17363 This config.status script is free software; the Free Software Foundation
17364 gives unlimited permission to copy, distribute and modify it."
17365 srcdir=$srcdir
17366 INSTALL="$INSTALL"
17367 _ACEOF
17368
17369 cat >>$CONFIG_STATUS <<\_ACEOF
17370 # If no file are specified by the user, then we need to provide default
17371 # value.  By we need to know if files were specified by the user.
17372 ac_need_defaults=:
17373 while test $# != 0
17374 do
17375   case $1 in
17376   --*=*)
17377     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17378     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17379     ac_shift=:
17380     ;;
17381   -*)
17382     ac_option=$1
17383     ac_optarg=$2
17384     ac_shift=shift
17385     ;;
17386   *) # This is not an option, so the user has probably given explicit
17387      # arguments.
17388      ac_option=$1
17389      ac_need_defaults=false;;
17390   esac
17391
17392   case $ac_option in
17393   # Handling of the options.
17394 _ACEOF
17395 cat >>$CONFIG_STATUS <<\_ACEOF
17396   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17397     ac_cs_recheck=: ;;
17398   --version | --vers* | -V )
17399     echo "$ac_cs_version"; exit 0 ;;
17400   --he | --h)
17401     # Conflict between --help and --header
17402     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17403 Try \`$0 --help' for more information." >&5
17404 echo "$as_me: error: ambiguous option: $1
17405 Try \`$0 --help' for more information." >&2;}
17406    { (exit 1); exit 1; }; };;
17407   --help | --hel | -h )
17408     echo "$ac_cs_usage"; exit 0 ;;
17409   --debug | --d* | -d )
17410     debug=: ;;
17411   --file | --fil | --fi | --f )
17412     $ac_shift
17413     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17414     ac_need_defaults=false;;
17415   --header | --heade | --head | --hea )
17416     $ac_shift
17417     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17418     ac_need_defaults=false;;
17419   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17420   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17421     ac_cs_silent=: ;;
17422
17423   # This is an error.
17424   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17425 Try \`$0 --help' for more information." >&5
17426 echo "$as_me: error: unrecognized option: $1
17427 Try \`$0 --help' for more information." >&2;}
17428    { (exit 1); exit 1; }; } ;;
17429
17430   *) ac_config_targets="$ac_config_targets $1" ;;
17431
17432   esac
17433   shift
17434 done
17435
17436 ac_configure_extra_args=
17437
17438 if $ac_cs_silent; then
17439   exec 6>/dev/null
17440   ac_configure_extra_args="$ac_configure_extra_args --silent"
17441 fi
17442
17443 _ACEOF
17444 cat >>$CONFIG_STATUS <<_ACEOF
17445 if \$ac_cs_recheck; then
17446   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17447   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17448 fi
17449
17450 _ACEOF
17451
17452 cat >>$CONFIG_STATUS <<_ACEOF
17453 #
17454 # INIT-COMMANDS section.
17455 #
17456
17457
17458 srcdir="$srcdir"
17459 host="$host"
17460 target="$target"
17461 with_multisubdir="$with_multisubdir"
17462 with_multisrctop="$with_multisrctop"
17463 with_target_subdir="$with_target_subdir"
17464 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17465 multi_basedir="$multi_basedir"
17466 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17467 CC="$CC"
17468 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17469 srcdir=${srcdir}
17470 host=${host}
17471 target=${target}
17472 with_multisubdir=${with_multisubdir}
17473 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17474 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17475 multi_basedir=${multi_basedir}
17476 CC="${CC}"
17477 CXX="${CXX}"
17478 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17479
17480
17481 _ACEOF
17482
17483
17484
17485 cat >>$CONFIG_STATUS <<\_ACEOF
17486 for ac_config_target in $ac_config_targets
17487 do
17488   case "$ac_config_target" in
17489   # Handling of arguments.
17490   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17491   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17492   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17493   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17494   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17495   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17496   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17497   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17498   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17499   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17500   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17501   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
17502   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17503   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17504   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17505   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
17506   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
17507   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17508   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17509   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17510   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17511   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17512   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17513   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17514   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17515   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17516   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17517   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17518   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17519   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17520   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17521 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17522    { (exit 1); exit 1; }; };;
17523   esac
17524 done
17525
17526 # If the user did not use the arguments to specify the items to instantiate,
17527 # then the envvar interface is used.  Set only those that are not.
17528 # We use the long form for the default assignment because of an extremely
17529 # bizarre bug on SunOS 4.1.3.
17530 if $ac_need_defaults; then
17531   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17532   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17533   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17534   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17535 fi
17536
17537 # Have a temporary directory for convenience.  Make it in the build tree
17538 # simply because there is no reason to put it here, and in addition,
17539 # creating and moving files from /tmp can sometimes cause problems.
17540 # Create a temporary directory, and hook for its removal unless debugging.
17541 $debug ||
17542 {
17543   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17544   trap '{ (exit 1); exit 1; }' 1 2 13 15
17545 }
17546
17547 # Create a (secure) tmp directory for tmp files.
17548
17549 {
17550   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17551   test -n "$tmp" && test -d "$tmp"
17552 }  ||
17553 {
17554   tmp=./confstat$$-$RANDOM
17555   (umask 077 && mkdir $tmp)
17556 } ||
17557 {
17558    echo "$me: cannot create a temporary directory in ." >&2
17559    { (exit 1); exit 1; }
17560 }
17561
17562 _ACEOF
17563
17564 cat >>$CONFIG_STATUS <<_ACEOF
17565
17566 #
17567 # CONFIG_FILES section.
17568 #
17569
17570 # No need to generate the scripts if there are no CONFIG_FILES.
17571 # This happens for instance when ./config.status config.h
17572 if test -n "\$CONFIG_FILES"; then
17573   # Protect against being on the right side of a sed subst in config.status.
17574   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17575    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17576 s,@SHELL@,$SHELL,;t t
17577 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17578 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17579 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17580 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17581 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17582 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17583 s,@exec_prefix@,$exec_prefix,;t t
17584 s,@prefix@,$prefix,;t t
17585 s,@program_transform_name@,$program_transform_name,;t t
17586 s,@bindir@,$bindir,;t t
17587 s,@sbindir@,$sbindir,;t t
17588 s,@libexecdir@,$libexecdir,;t t
17589 s,@datadir@,$datadir,;t t
17590 s,@sysconfdir@,$sysconfdir,;t t
17591 s,@sharedstatedir@,$sharedstatedir,;t t
17592 s,@localstatedir@,$localstatedir,;t t
17593 s,@libdir@,$libdir,;t t
17594 s,@includedir@,$includedir,;t t
17595 s,@oldincludedir@,$oldincludedir,;t t
17596 s,@infodir@,$infodir,;t t
17597 s,@mandir@,$mandir,;t t
17598 s,@build_alias@,$build_alias,;t t
17599 s,@host_alias@,$host_alias,;t t
17600 s,@target_alias@,$target_alias,;t t
17601 s,@DEFS@,$DEFS,;t t
17602 s,@ECHO_C@,$ECHO_C,;t t
17603 s,@ECHO_N@,$ECHO_N,;t t
17604 s,@ECHO_T@,$ECHO_T,;t t
17605 s,@LIBS@,$LIBS,;t t
17606 s,@build@,$build,;t t
17607 s,@build_cpu@,$build_cpu,;t t
17608 s,@build_vendor@,$build_vendor,;t t
17609 s,@build_os@,$build_os,;t t
17610 s,@build_libsubdir@,$build_libsubdir,;t t
17611 s,@build_subdir@,$build_subdir,;t t
17612 s,@host_subdir@,$host_subdir,;t t
17613 s,@target_subdir@,$target_subdir,;t t
17614 s,@multi_basedir@,$multi_basedir,;t t
17615 s,@host@,$host,;t t
17616 s,@host_cpu@,$host_cpu,;t t
17617 s,@host_vendor@,$host_vendor,;t t
17618 s,@host_os@,$host_os,;t t
17619 s,@target@,$target,;t t
17620 s,@target_cpu@,$target_cpu,;t t
17621 s,@target_vendor@,$target_vendor,;t t
17622 s,@target_os@,$target_os,;t t
17623 s,@target_noncanonical@,$target_noncanonical,;t t
17624 s,@LN_S@,$LN_S,;t t
17625 s,@mkinstalldirs@,$mkinstalldirs,;t t
17626 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
17627 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
17628 s,@CC@,$CC,;t t
17629 s,@ac_ct_CC@,$ac_ct_CC,;t t
17630 s,@EXEEXT@,$EXEEXT,;t t
17631 s,@OBJEXT@,$OBJEXT,;t t
17632 s,@CXX@,$CXX,;t t
17633 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17634 s,@CFLAGS@,$CFLAGS,;t t
17635 s,@CXXFLAGS@,$CXXFLAGS,;t t
17636 s,@LDFLAGS@,$LDFLAGS,;t t
17637 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17638 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17639 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17640 s,@CYGPATH_W@,$CYGPATH_W,;t t
17641 s,@PACKAGE@,$PACKAGE,;t t
17642 s,@VERSION@,$VERSION,;t t
17643 s,@ACLOCAL@,$ACLOCAL,;t t
17644 s,@AUTOCONF@,$AUTOCONF,;t t
17645 s,@AUTOMAKE@,$AUTOMAKE,;t t
17646 s,@AUTOHEADER@,$AUTOHEADER,;t t
17647 s,@MAKEINFO@,$MAKEINFO,;t t
17648 s,@install_sh@,$install_sh,;t t
17649 s,@STRIP@,$STRIP,;t t
17650 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17651 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17652 s,@mkdir_p@,$mkdir_p,;t t
17653 s,@AWK@,$AWK,;t t
17654 s,@SET_MAKE@,$SET_MAKE,;t t
17655 s,@am__leading_dot@,$am__leading_dot,;t t
17656 s,@AMTAR@,$AMTAR,;t t
17657 s,@am__tar@,$am__tar,;t t
17658 s,@am__untar@,$am__untar,;t t
17659 s,@DEPDIR@,$DEPDIR,;t t
17660 s,@am__include@,$am__include,;t t
17661 s,@am__quote@,$am__quote,;t t
17662 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17663 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17664 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17665 s,@CCDEPMODE@,$CCDEPMODE,;t t
17666 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17667 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17668 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17669 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17670 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17671 s,@AS@,$AS,;t t
17672 s,@ac_ct_AS@,$ac_ct_AS,;t t
17673 s,@LD@,$LD,;t t
17674 s,@ac_ct_LD@,$ac_ct_LD,;t t
17675 s,@AR@,$AR,;t t
17676 s,@ac_ct_AR@,$ac_ct_AR,;t t
17677 s,@RANLIB@,$RANLIB,;t t
17678 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17679 s,@JAR@,$JAR,;t t
17680 s,@ZIP@,$ZIP,;t t
17681 s,@UNZIP@,$UNZIP,;t t
17682 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17683 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17684 s,@MAINT@,$MAINT,;t t
17685 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17686 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17687 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17688 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17689 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
17690 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17691 s,@TOOLKIT@,$TOOLKIT,;t t
17692 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17693 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17694 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
17695 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
17696 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
17697 s,@GCJH@,$GCJH,;t t
17698 s,@host_exeext@,$host_exeext,;t t
17699 s,@INCLTDL@,$INCLTDL,;t t
17700 s,@LIBLTDL@,$LIBLTDL,;t t
17701 s,@DIRLTDL@,$DIRLTDL,;t t
17702 s,@LIBTOOL@,$LIBTOOL,;t t
17703 s,@CXXCPP@,$CXXCPP,;t t
17704 s,@CPPFLAGS@,$CPPFLAGS,;t t
17705 s,@GCJ@,$GCJ,;t t
17706 s,@GCJFLAGS@,$GCJFLAGS,;t t
17707 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17708 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17709 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17710 s,@subdirs@,$subdirs,;t t
17711 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17712 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17713 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
17714 s,@ECJ_JAR@,$ECJ_JAR,;t t
17715 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
17716 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
17717 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
17718 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
17719 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17720 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17721 s,@JAVA_HOME@,$JAVA_HOME,;t t
17722 s,@INTERPRETER@,$INTERPRETER,;t t
17723 s,@LIBFFI@,$LIBFFI,;t t
17724 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17725 s,@PLATFORM@,$PLATFORM,;t t
17726 s,@CPP@,$CPP,;t t
17727 s,@EGREP@,$EGREP,;t t
17728 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17729 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17730 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17731 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17732 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17733 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17734 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17735 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17736 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17737 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17738 s,@X_CFLAGS@,$X_CFLAGS,;t t
17739 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17740 s,@X_LIBS@,$X_LIBS,;t t
17741 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17742 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17743 s,@GCLIBS@,$GCLIBS,;t t
17744 s,@GCINCS@,$GCINCS,;t t
17745 s,@GCDEPS@,$GCDEPS,;t t
17746 s,@GCSPEC@,$GCSPEC,;t t
17747 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17748 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17749 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17750 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17751 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17752 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17753 s,@THREADLIBS@,$THREADLIBS,;t t
17754 s,@THREADINCS@,$THREADINCS,;t t
17755 s,@THREADDEPS@,$THREADDEPS,;t t
17756 s,@THREADSPEC@,$THREADSPEC,;t t
17757 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17758 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17759 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17760 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17761 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17762 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17763 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17764 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17765 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17766 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
17767 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
17768 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
17769 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17770 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17771 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17772 s,@LIBICONV@,$LIBICONV,;t t
17773 s,@LTLIBICONV@,$LTLIBICONV,;t t
17774 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17775 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17776 s,@GTK_LIBS@,$GTK_LIBS,;t t
17777 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17778 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17779 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17780 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17781 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17782 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17783 s,@ZLIBS@,$ZLIBS,;t t
17784 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17785 s,@ZINCS@,$ZINCS,;t t
17786 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17787 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17788 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17789 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17790 s,@IEEESPEC@,$IEEESPEC,;t t
17791 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17792 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17793 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
17794 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
17795 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17796 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17797 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17798 s,@toolexecdir@,$toolexecdir,;t t
17799 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17800 s,@toolexeclibdir@,$toolexeclibdir,;t t
17801 s,@dbexecdir@,$dbexecdir,;t t
17802 s,@GCJVERSION@,$GCJVERSION,;t t
17803 s,@gxx_include_dir@,$gxx_include_dir,;t t
17804 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17805 s,@PERL@,$PERL,;t t
17806 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17807 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
17808 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
17809 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17810 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17811 s,@here@,$here,;t t
17812 s,@LIBOBJS@,$LIBOBJS,;t t
17813 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17814 CEOF
17815
17816 _ACEOF
17817
17818   cat >>$CONFIG_STATUS <<\_ACEOF
17819   # Split the substitutions into bite-sized pieces for seds with
17820   # small command number limits, like on Digital OSF/1 and HP-UX.
17821   ac_max_sed_lines=48
17822   ac_sed_frag=1 # Number of current file.
17823   ac_beg=1 # First line for current file.
17824   ac_end=$ac_max_sed_lines # Line after last line for current file.
17825   ac_more_lines=:
17826   ac_sed_cmds=
17827   while $ac_more_lines; do
17828     if test $ac_beg -gt 1; then
17829       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17830     else
17831       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17832     fi
17833     if test ! -s $tmp/subs.frag; then
17834       ac_more_lines=false
17835     else
17836       # The purpose of the label and of the branching condition is to
17837       # speed up the sed processing (if there are no `@' at all, there
17838       # is no need to browse any of the substitutions).
17839       # These are the two extra sed commands mentioned above.
17840       (echo ':t
17841   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17842       if test -z "$ac_sed_cmds"; then
17843         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17844       else
17845         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17846       fi
17847       ac_sed_frag=`expr $ac_sed_frag + 1`
17848       ac_beg=$ac_end
17849       ac_end=`expr $ac_end + $ac_max_sed_lines`
17850     fi
17851   done
17852   if test -z "$ac_sed_cmds"; then
17853     ac_sed_cmds=cat
17854   fi
17855 fi # test -n "$CONFIG_FILES"
17856
17857 _ACEOF
17858 cat >>$CONFIG_STATUS <<\_ACEOF
17859 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17860   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17861   case $ac_file in
17862   - | *:- | *:-:* ) # input from stdin
17863         cat >$tmp/stdin
17864         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17865         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17866   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17867         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17868   * )   ac_file_in=$ac_file.in ;;
17869   esac
17870
17871   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17872   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17874          X"$ac_file" : 'X\(//\)[^/]' \| \
17875          X"$ac_file" : 'X\(//\)$' \| \
17876          X"$ac_file" : 'X\(/\)' \| \
17877          .     : '\(.\)' 2>/dev/null ||
17878 echo X"$ac_file" |
17879     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17880           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17881           /^X\(\/\/\)$/{ s//\1/; q; }
17882           /^X\(\/\).*/{ s//\1/; q; }
17883           s/.*/./; q'`
17884   { if $as_mkdir_p; then
17885     mkdir -p "$ac_dir"
17886   else
17887     as_dir="$ac_dir"
17888     as_dirs=
17889     while test ! -d "$as_dir"; do
17890       as_dirs="$as_dir $as_dirs"
17891       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17893          X"$as_dir" : 'X\(//\)[^/]' \| \
17894          X"$as_dir" : 'X\(//\)$' \| \
17895          X"$as_dir" : 'X\(/\)' \| \
17896          .     : '\(.\)' 2>/dev/null ||
17897 echo X"$as_dir" |
17898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17899           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17900           /^X\(\/\/\)$/{ s//\1/; q; }
17901           /^X\(\/\).*/{ s//\1/; q; }
17902           s/.*/./; q'`
17903     done
17904     test ! -n "$as_dirs" || mkdir $as_dirs
17905   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17906 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17907    { (exit 1); exit 1; }; }; }
17908
17909   ac_builddir=.
17910
17911 if test "$ac_dir" != .; then
17912   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17913   # A "../" for each directory in $ac_dir_suffix.
17914   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17915 else
17916   ac_dir_suffix= ac_top_builddir=
17917 fi
17918
17919 case $srcdir in
17920   .)  # No --srcdir option.  We are building in place.
17921     ac_srcdir=.
17922     if test -z "$ac_top_builddir"; then
17923        ac_top_srcdir=.
17924     else
17925        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17926     fi ;;
17927   [\\/]* | ?:[\\/]* )  # Absolute path.
17928     ac_srcdir=$srcdir$ac_dir_suffix;
17929     ac_top_srcdir=$srcdir ;;
17930   *) # Relative path.
17931     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17932     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17933 esac
17934
17935 # Do not use `cd foo && pwd` to compute absolute paths, because
17936 # the directories may not exist.
17937 case `pwd` in
17938 .) ac_abs_builddir="$ac_dir";;
17939 *)
17940   case "$ac_dir" in
17941   .) ac_abs_builddir=`pwd`;;
17942   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17943   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17944   esac;;
17945 esac
17946 case $ac_abs_builddir in
17947 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17948 *)
17949   case ${ac_top_builddir}. in
17950   .) ac_abs_top_builddir=$ac_abs_builddir;;
17951   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17952   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17953   esac;;
17954 esac
17955 case $ac_abs_builddir in
17956 .) ac_abs_srcdir=$ac_srcdir;;
17957 *)
17958   case $ac_srcdir in
17959   .) ac_abs_srcdir=$ac_abs_builddir;;
17960   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17961   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17962   esac;;
17963 esac
17964 case $ac_abs_builddir in
17965 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17966 *)
17967   case $ac_top_srcdir in
17968   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17969   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17970   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17971   esac;;
17972 esac
17973
17974
17975   case $INSTALL in
17976   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17977   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17978   esac
17979
17980   if test x"$ac_file" != x-; then
17981     { echo "$as_me:$LINENO: creating $ac_file" >&5
17982 echo "$as_me: creating $ac_file" >&6;}
17983     rm -f "$ac_file"
17984   fi
17985   # Let's still pretend it is `configure' which instantiates (i.e., don't
17986   # use $as_me), people would be surprised to read:
17987   #    /* config.h.  Generated by config.status.  */
17988   if test x"$ac_file" = x-; then
17989     configure_input=
17990   else
17991     configure_input="$ac_file.  "
17992   fi
17993   configure_input=$configure_input"Generated from `echo $ac_file_in |
17994                                      sed 's,.*/,,'` by configure."
17995
17996   # First look for the input files in the build tree, otherwise in the
17997   # src tree.
17998   ac_file_inputs=`IFS=:
17999     for f in $ac_file_in; do
18000       case $f in
18001       -) echo $tmp/stdin ;;
18002       [\\/$]*)
18003          # Absolute (can't be DOS-style, as IFS=:)
18004          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18005 echo "$as_me: error: cannot find input file: $f" >&2;}
18006    { (exit 1); exit 1; }; }
18007          echo "$f";;
18008       *) # Relative
18009          if test -f "$f"; then
18010            # Build tree
18011            echo "$f"
18012          elif test -f "$srcdir/$f"; then
18013            # Source tree
18014            echo "$srcdir/$f"
18015          else
18016            # /dev/null tree
18017            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18018 echo "$as_me: error: cannot find input file: $f" >&2;}
18019    { (exit 1); exit 1; }; }
18020          fi;;
18021       esac
18022     done` || { (exit 1); exit 1; }
18023 _ACEOF
18024 cat >>$CONFIG_STATUS <<_ACEOF
18025   sed "$ac_vpsub
18026 $extrasub
18027 _ACEOF
18028 cat >>$CONFIG_STATUS <<\_ACEOF
18029 :t
18030 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18031 s,@configure_input@,$configure_input,;t t
18032 s,@srcdir@,$ac_srcdir,;t t
18033 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18034 s,@top_srcdir@,$ac_top_srcdir,;t t
18035 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18036 s,@builddir@,$ac_builddir,;t t
18037 s,@abs_builddir@,$ac_abs_builddir,;t t
18038 s,@top_builddir@,$ac_top_builddir,;t t
18039 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18040 s,@INSTALL@,$ac_INSTALL,;t t
18041 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18042   rm -f $tmp/stdin
18043   if test x"$ac_file" != x-; then
18044     mv $tmp/out $ac_file
18045   else
18046     cat $tmp/out
18047     rm -f $tmp/out
18048   fi
18049
18050   # Run the commands associated with the file.
18051   case $ac_file in
18052     scripts/jar ) chmod +x scripts/jar ;;
18053   esac
18054 done
18055 _ACEOF
18056 cat >>$CONFIG_STATUS <<\_ACEOF
18057
18058 #
18059 # CONFIG_HEADER section.
18060 #
18061
18062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18063 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18064 #
18065 # ac_d sets the value in "#define NAME VALUE" lines.
18066 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18067 ac_dB='[         ].*$,\1#\2'
18068 ac_dC=' '
18069 ac_dD=',;t'
18070 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18071 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18072 ac_uB='$,\1#\2define\3'
18073 ac_uC=' '
18074 ac_uD=',;t'
18075
18076 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18077   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18078   case $ac_file in
18079   - | *:- | *:-:* ) # input from stdin
18080         cat >$tmp/stdin
18081         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18082         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18083   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18084         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18085   * )   ac_file_in=$ac_file.in ;;
18086   esac
18087
18088   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18089 echo "$as_me: creating $ac_file" >&6;}
18090
18091   # First look for the input files in the build tree, otherwise in the
18092   # src tree.
18093   ac_file_inputs=`IFS=:
18094     for f in $ac_file_in; do
18095       case $f in
18096       -) echo $tmp/stdin ;;
18097       [\\/$]*)
18098          # Absolute (can't be DOS-style, as IFS=:)
18099          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18100 echo "$as_me: error: cannot find input file: $f" >&2;}
18101    { (exit 1); exit 1; }; }
18102          # Do quote $f, to prevent DOS paths from being IFS'd.
18103          echo "$f";;
18104       *) # Relative
18105          if test -f "$f"; then
18106            # Build tree
18107            echo "$f"
18108          elif test -f "$srcdir/$f"; then
18109            # Source tree
18110            echo "$srcdir/$f"
18111          else
18112            # /dev/null tree
18113            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18114 echo "$as_me: error: cannot find input file: $f" >&2;}
18115    { (exit 1); exit 1; }; }
18116          fi;;
18117       esac
18118     done` || { (exit 1); exit 1; }
18119   # Remove the trailing spaces.
18120   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18121
18122 _ACEOF
18123
18124 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18125 # `conftest.undefs', that substitutes the proper values into
18126 # config.h.in to produce config.h.  The first handles `#define'
18127 # templates, and the second `#undef' templates.
18128 # And first: Protect against being on the right side of a sed subst in
18129 # config.status.  Protect against being in an unquoted here document
18130 # in config.status.
18131 rm -f conftest.defines conftest.undefs
18132 # Using a here document instead of a string reduces the quoting nightmare.
18133 # Putting comments in sed scripts is not portable.
18134 #
18135 # `end' is used to avoid that the second main sed command (meant for
18136 # 0-ary CPP macros) applies to n-ary macro definitions.
18137 # See the Autoconf documentation for `clear'.
18138 cat >confdef2sed.sed <<\_ACEOF
18139 s/[\\&,]/\\&/g
18140 s,[\\$`],\\&,g
18141 t clear
18142 : clear
18143 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18144 t end
18145 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18146 : end
18147 _ACEOF
18148 # If some macros were called several times there might be several times
18149 # the same #defines, which is useless.  Nevertheless, we may not want to
18150 # sort them, since we want the *last* AC-DEFINE to be honored.
18151 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18152 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18153 rm -f confdef2sed.sed
18154
18155 # This sed command replaces #undef with comments.  This is necessary, for
18156 # example, in the case of _POSIX_SOURCE, which is predefined and required
18157 # on some systems where configure will not decide to define it.
18158 cat >>conftest.undefs <<\_ACEOF
18159 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18160 _ACEOF
18161
18162 # Break up conftest.defines because some shells have a limit on the size
18163 # of here documents, and old seds have small limits too (100 cmds).
18164 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18165 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18166 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18167 echo '  :' >>$CONFIG_STATUS
18168 rm -f conftest.tail
18169 while grep . conftest.defines >/dev/null
18170 do
18171   # Write a limited-size here document to $tmp/defines.sed.
18172   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18173   # Speed up: don't consider the non `#define' lines.
18174   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18175   # Work around the forget-to-reset-the-flag bug.
18176   echo 't clr' >>$CONFIG_STATUS
18177   echo ': clr' >>$CONFIG_STATUS
18178   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18179   echo 'CEOF
18180   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18181   rm -f $tmp/in
18182   mv $tmp/out $tmp/in
18183 ' >>$CONFIG_STATUS
18184   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18185   rm -f conftest.defines
18186   mv conftest.tail conftest.defines
18187 done
18188 rm -f conftest.defines
18189 echo '  fi # grep' >>$CONFIG_STATUS
18190 echo >>$CONFIG_STATUS
18191
18192 # Break up conftest.undefs because some shells have a limit on the size
18193 # of here documents, and old seds have small limits too (100 cmds).
18194 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18195 rm -f conftest.tail
18196 while grep . conftest.undefs >/dev/null
18197 do
18198   # Write a limited-size here document to $tmp/undefs.sed.
18199   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18200   # Speed up: don't consider the non `#undef'
18201   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18202   # Work around the forget-to-reset-the-flag bug.
18203   echo 't clr' >>$CONFIG_STATUS
18204   echo ': clr' >>$CONFIG_STATUS
18205   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18206   echo 'CEOF
18207   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18208   rm -f $tmp/in
18209   mv $tmp/out $tmp/in
18210 ' >>$CONFIG_STATUS
18211   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18212   rm -f conftest.undefs
18213   mv conftest.tail conftest.undefs
18214 done
18215 rm -f conftest.undefs
18216
18217 cat >>$CONFIG_STATUS <<\_ACEOF
18218   # Let's still pretend it is `configure' which instantiates (i.e., don't
18219   # use $as_me), people would be surprised to read:
18220   #    /* config.h.  Generated by config.status.  */
18221   if test x"$ac_file" = x-; then
18222     echo "/* Generated by configure.  */" >$tmp/config.h
18223   else
18224     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18225   fi
18226   cat $tmp/in >>$tmp/config.h
18227   rm -f $tmp/in
18228   if test x"$ac_file" != x-; then
18229     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18230       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18231 echo "$as_me: $ac_file is unchanged" >&6;}
18232     else
18233       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18234 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18235          X"$ac_file" : 'X\(//\)[^/]' \| \
18236          X"$ac_file" : 'X\(//\)$' \| \
18237          X"$ac_file" : 'X\(/\)' \| \
18238          .     : '\(.\)' 2>/dev/null ||
18239 echo X"$ac_file" |
18240     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18241           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18242           /^X\(\/\/\)$/{ s//\1/; q; }
18243           /^X\(\/\).*/{ s//\1/; q; }
18244           s/.*/./; q'`
18245       { if $as_mkdir_p; then
18246     mkdir -p "$ac_dir"
18247   else
18248     as_dir="$ac_dir"
18249     as_dirs=
18250     while test ! -d "$as_dir"; do
18251       as_dirs="$as_dir $as_dirs"
18252       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18254          X"$as_dir" : 'X\(//\)[^/]' \| \
18255          X"$as_dir" : 'X\(//\)$' \| \
18256          X"$as_dir" : 'X\(/\)' \| \
18257          .     : '\(.\)' 2>/dev/null ||
18258 echo X"$as_dir" |
18259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18260           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18261           /^X\(\/\/\)$/{ s//\1/; q; }
18262           /^X\(\/\).*/{ s//\1/; q; }
18263           s/.*/./; q'`
18264     done
18265     test ! -n "$as_dirs" || mkdir $as_dirs
18266   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18267 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18268    { (exit 1); exit 1; }; }; }
18269
18270       rm -f $ac_file
18271       mv $tmp/config.h $ac_file
18272     fi
18273   else
18274     cat $tmp/config.h
18275     rm -f $tmp/config.h
18276   fi
18277 # Compute $ac_file's index in $config_headers.
18278 _am_stamp_count=1
18279 for _am_header in $config_headers :; do
18280   case $_am_header in
18281     $ac_file | $ac_file:* )
18282       break ;;
18283     * )
18284       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18285   esac
18286 done
18287 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18288 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18289          X$ac_file : 'X\(//\)[^/]' \| \
18290          X$ac_file : 'X\(//\)$' \| \
18291          X$ac_file : 'X\(/\)' \| \
18292          .     : '\(.\)' 2>/dev/null ||
18293 echo X$ac_file |
18294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18295           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18296           /^X\(\/\/\)$/{ s//\1/; q; }
18297           /^X\(\/\).*/{ s//\1/; q; }
18298           s/.*/./; q'`/stamp-h$_am_stamp_count
18299 done
18300 _ACEOF
18301 cat >>$CONFIG_STATUS <<\_ACEOF
18302
18303 #
18304 # CONFIG_LINKS section.
18305 #
18306
18307 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18308   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18309   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18310
18311   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18312 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18313
18314   if test ! -r $srcdir/$ac_source; then
18315     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18316 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18317    { (exit 1); exit 1; }; }
18318   fi
18319   rm -f $ac_dest
18320
18321   # Make relative symlinks.
18322   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18323 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18324          X"$ac_dest" : 'X\(//\)[^/]' \| \
18325          X"$ac_dest" : 'X\(//\)$' \| \
18326          X"$ac_dest" : 'X\(/\)' \| \
18327          .     : '\(.\)' 2>/dev/null ||
18328 echo X"$ac_dest" |
18329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18330           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18331           /^X\(\/\/\)$/{ s//\1/; q; }
18332           /^X\(\/\).*/{ s//\1/; q; }
18333           s/.*/./; q'`
18334   { if $as_mkdir_p; then
18335     mkdir -p "$ac_dest_dir"
18336   else
18337     as_dir="$ac_dest_dir"
18338     as_dirs=
18339     while test ! -d "$as_dir"; do
18340       as_dirs="$as_dir $as_dirs"
18341       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18343          X"$as_dir" : 'X\(//\)[^/]' \| \
18344          X"$as_dir" : 'X\(//\)$' \| \
18345          X"$as_dir" : 'X\(/\)' \| \
18346          .     : '\(.\)' 2>/dev/null ||
18347 echo X"$as_dir" |
18348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18349           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18350           /^X\(\/\/\)$/{ s//\1/; q; }
18351           /^X\(\/\).*/{ s//\1/; q; }
18352           s/.*/./; q'`
18353     done
18354     test ! -n "$as_dirs" || mkdir $as_dirs
18355   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18356 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18357    { (exit 1); exit 1; }; }; }
18358
18359   ac_builddir=.
18360
18361 if test "$ac_dest_dir" != .; then
18362   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18363   # A "../" for each directory in $ac_dir_suffix.
18364   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18365 else
18366   ac_dir_suffix= ac_top_builddir=
18367 fi
18368
18369 case $srcdir in
18370   .)  # No --srcdir option.  We are building in place.
18371     ac_srcdir=.
18372     if test -z "$ac_top_builddir"; then
18373        ac_top_srcdir=.
18374     else
18375        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18376     fi ;;
18377   [\\/]* | ?:[\\/]* )  # Absolute path.
18378     ac_srcdir=$srcdir$ac_dir_suffix;
18379     ac_top_srcdir=$srcdir ;;
18380   *) # Relative path.
18381     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18382     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18383 esac
18384
18385 # Do not use `cd foo && pwd` to compute absolute paths, because
18386 # the directories may not exist.
18387 case `pwd` in
18388 .) ac_abs_builddir="$ac_dest_dir";;
18389 *)
18390   case "$ac_dest_dir" in
18391   .) ac_abs_builddir=`pwd`;;
18392   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18393   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18394   esac;;
18395 esac
18396 case $ac_abs_builddir in
18397 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18398 *)
18399   case ${ac_top_builddir}. in
18400   .) ac_abs_top_builddir=$ac_abs_builddir;;
18401   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18402   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18403   esac;;
18404 esac
18405 case $ac_abs_builddir in
18406 .) ac_abs_srcdir=$ac_srcdir;;
18407 *)
18408   case $ac_srcdir in
18409   .) ac_abs_srcdir=$ac_abs_builddir;;
18410   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18411   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18412   esac;;
18413 esac
18414 case $ac_abs_builddir in
18415 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18416 *)
18417   case $ac_top_srcdir in
18418   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18419   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18420   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18421   esac;;
18422 esac
18423
18424
18425   case $srcdir in
18426   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18427       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18428   esac
18429
18430   # Try a symlink, then a hard link, then a copy.
18431   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18432     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18433     cp -p $srcdir/$ac_source $ac_dest ||
18434     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18435 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18436    { (exit 1); exit 1; }; }
18437 done
18438 _ACEOF
18439 cat >>$CONFIG_STATUS <<\_ACEOF
18440
18441 #
18442 # CONFIG_COMMANDS section.
18443 #
18444 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18445   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18446   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18447   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18448 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18449          X"$ac_dest" : 'X\(//\)[^/]' \| \
18450          X"$ac_dest" : 'X\(//\)$' \| \
18451          X"$ac_dest" : 'X\(/\)' \| \
18452          .     : '\(.\)' 2>/dev/null ||
18453 echo X"$ac_dest" |
18454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18455           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18456           /^X\(\/\/\)$/{ s//\1/; q; }
18457           /^X\(\/\).*/{ s//\1/; q; }
18458           s/.*/./; q'`
18459   { if $as_mkdir_p; then
18460     mkdir -p "$ac_dir"
18461   else
18462     as_dir="$ac_dir"
18463     as_dirs=
18464     while test ! -d "$as_dir"; do
18465       as_dirs="$as_dir $as_dirs"
18466       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18468          X"$as_dir" : 'X\(//\)[^/]' \| \
18469          X"$as_dir" : 'X\(//\)$' \| \
18470          X"$as_dir" : 'X\(/\)' \| \
18471          .     : '\(.\)' 2>/dev/null ||
18472 echo X"$as_dir" |
18473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18474           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18475           /^X\(\/\/\)$/{ s//\1/; q; }
18476           /^X\(\/\).*/{ s//\1/; q; }
18477           s/.*/./; q'`
18478     done
18479     test ! -n "$as_dirs" || mkdir $as_dirs
18480   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18481 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18482    { (exit 1); exit 1; }; }; }
18483
18484   ac_builddir=.
18485
18486 if test "$ac_dir" != .; then
18487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18488   # A "../" for each directory in $ac_dir_suffix.
18489   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18490 else
18491   ac_dir_suffix= ac_top_builddir=
18492 fi
18493
18494 case $srcdir in
18495   .)  # No --srcdir option.  We are building in place.
18496     ac_srcdir=.
18497     if test -z "$ac_top_builddir"; then
18498        ac_top_srcdir=.
18499     else
18500        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18501     fi ;;
18502   [\\/]* | ?:[\\/]* )  # Absolute path.
18503     ac_srcdir=$srcdir$ac_dir_suffix;
18504     ac_top_srcdir=$srcdir ;;
18505   *) # Relative path.
18506     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18507     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18508 esac
18509
18510 # Do not use `cd foo && pwd` to compute absolute paths, because
18511 # the directories may not exist.
18512 case `pwd` in
18513 .) ac_abs_builddir="$ac_dir";;
18514 *)
18515   case "$ac_dir" in
18516   .) ac_abs_builddir=`pwd`;;
18517   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18518   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18519   esac;;
18520 esac
18521 case $ac_abs_builddir in
18522 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18523 *)
18524   case ${ac_top_builddir}. in
18525   .) ac_abs_top_builddir=$ac_abs_builddir;;
18526   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18527   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18528   esac;;
18529 esac
18530 case $ac_abs_builddir in
18531 .) ac_abs_srcdir=$ac_srcdir;;
18532 *)
18533   case $ac_srcdir in
18534   .) ac_abs_srcdir=$ac_abs_builddir;;
18535   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18536   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18537   esac;;
18538 esac
18539 case $ac_abs_builddir in
18540 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18541 *)
18542   case $ac_top_srcdir in
18543   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18544   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18545   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18546   esac;;
18547 esac
18548
18549
18550   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18551 echo "$as_me: executing $ac_dest commands" >&6;}
18552   case $ac_dest in
18553     default-1 )
18554 # Only add multilib support code if we just rebuilt the top-level
18555 # Makefile.
18556 case " $CONFIG_FILES " in
18557  *" Makefile "*)
18558    ac_file=Makefile . ${multi_basedir}/config-ml.in
18559    ;;
18560 esac ;;
18561     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18562   # Strip MF so we end up with the name of the file.
18563   mf=`echo "$mf" | sed -e 's/:.*$//'`
18564   # Check whether this is an Automake generated Makefile or not.
18565   # We used to match only the files named `Makefile.in', but
18566   # some people rename them; so instead we look at the file content.
18567   # Grep'ing the first line is not enough: some people post-process
18568   # each Makefile.in and add a new line on top of each file to say so.
18569   # So let's grep whole file.
18570   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18571     dirpart=`(dirname "$mf") 2>/dev/null ||
18572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18573          X"$mf" : 'X\(//\)[^/]' \| \
18574          X"$mf" : 'X\(//\)$' \| \
18575          X"$mf" : 'X\(/\)' \| \
18576          .     : '\(.\)' 2>/dev/null ||
18577 echo X"$mf" |
18578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18579           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18580           /^X\(\/\/\)$/{ s//\1/; q; }
18581           /^X\(\/\).*/{ s//\1/; q; }
18582           s/.*/./; q'`
18583   else
18584     continue
18585   fi
18586   # Extract the definition of DEPDIR, am__include, and am__quote
18587   # from the Makefile without running `make'.
18588   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18589   test -z "$DEPDIR" && continue
18590   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18591   test -z "am__include" && continue
18592   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18593   # When using ansi2knr, U may be empty or an underscore; expand it
18594   U=`sed -n 's/^U = //p' < "$mf"`
18595   # Find all dependency output files, they are included files with
18596   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18597   # simplest approach to changing $(DEPDIR) to its actual value in the
18598   # expansion.
18599   for file in `sed -n "
18600     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18601        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18602     # Make sure the directory exists.
18603     test -f "$dirpart/$file" && continue
18604     fdir=`(dirname "$file") 2>/dev/null ||
18605 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18606          X"$file" : 'X\(//\)[^/]' \| \
18607          X"$file" : 'X\(//\)$' \| \
18608          X"$file" : 'X\(/\)' \| \
18609          .     : '\(.\)' 2>/dev/null ||
18610 echo X"$file" |
18611     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18612           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18613           /^X\(\/\/\)$/{ s//\1/; q; }
18614           /^X\(\/\).*/{ s//\1/; q; }
18615           s/.*/./; q'`
18616     { if $as_mkdir_p; then
18617     mkdir -p $dirpart/$fdir
18618   else
18619     as_dir=$dirpart/$fdir
18620     as_dirs=
18621     while test ! -d "$as_dir"; do
18622       as_dirs="$as_dir $as_dirs"
18623       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18625          X"$as_dir" : 'X\(//\)[^/]' \| \
18626          X"$as_dir" : 'X\(//\)$' \| \
18627          X"$as_dir" : 'X\(/\)' \| \
18628          .     : '\(.\)' 2>/dev/null ||
18629 echo X"$as_dir" |
18630     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18631           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18632           /^X\(\/\/\)$/{ s//\1/; q; }
18633           /^X\(\/\).*/{ s//\1/; q; }
18634           s/.*/./; q'`
18635     done
18636     test ! -n "$as_dirs" || mkdir $as_dirs
18637   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18638 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18639    { (exit 1); exit 1; }; }; }
18640
18641     # echo "creating $dirpart/$file"
18642     echo '# dummy' > "$dirpart/$file"
18643   done
18644 done
18645  ;;
18646     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18647 case " $CONFIG_FILES " in
18648  *" Makefile "*)
18649    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18650    ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
18651    ;;
18652 esac
18653 for ac_multi_file in $CONFIG_FILES; do
18654   case $ac_multi_file in
18655   */Makefile)
18656     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18657   esac
18658 done
18659  ;;
18660   esac
18661 done
18662 _ACEOF
18663
18664 cat >>$CONFIG_STATUS <<\_ACEOF
18665
18666 { (exit 0); exit 0; }
18667 _ACEOF
18668 chmod +x $CONFIG_STATUS
18669 ac_clean_files=$ac_clean_files_save
18670
18671
18672 # configure is writing to config.log, and then calls config.status.
18673 # config.status does its own redirection, appending to config.log.
18674 # Unfortunately, on DOS this fails, as config.log is still kept open
18675 # by configure, so config.status won't be able to write to it; its
18676 # output is simply discarded.  So we exec the FD to /dev/null,
18677 # effectively closing config.log, so it can be properly (re)opened and
18678 # appended to by config.status.  When coming back to configure, we
18679 # need to make the FD available again.
18680 if test "$no_create" != yes; then
18681   ac_cs_success=:
18682   ac_config_status_args=
18683   test "$silent" = yes &&
18684     ac_config_status_args="$ac_config_status_args --quiet"
18685   exec 5>/dev/null
18686   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18687   exec 5>>config.log
18688   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18689   # would make configure fail if this is the last instruction.
18690   $ac_cs_success || { (exit 1); exit 1; }
18691 fi
18692
18693 #
18694 # CONFIG_SUBDIRS section.
18695 #
18696 if test "$no_recursion" != yes; then
18697
18698   # Remove --cache-file and --srcdir arguments so they do not pile up.
18699   ac_sub_configure_args=
18700   ac_prev=
18701   for ac_arg in $ac_configure_args; do
18702     if test -n "$ac_prev"; then
18703       ac_prev=
18704       continue
18705     fi
18706     case $ac_arg in
18707     -cache-file | --cache-file | --cache-fil | --cache-fi \
18708     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18709       ac_prev=cache_file ;;
18710     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18711     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18712     | --c=*)
18713       ;;
18714     --config-cache | -C)
18715       ;;
18716     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18717       ac_prev=srcdir ;;
18718     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18719       ;;
18720     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18721       ac_prev=prefix ;;
18722     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18723       ;;
18724     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18725     esac
18726   done
18727
18728   # Always prepend --prefix to ensure using the same prefix
18729   # in subdir configurations.
18730   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18731
18732   ac_popdir=`pwd`
18733   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18734
18735     # Do not complain, so a configure script can configure whichever
18736     # parts of a large source tree are present.
18737     test -d $srcdir/$ac_dir || continue
18738
18739     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18740 echo "$as_me: configuring in $ac_dir" >&6;}
18741     { if $as_mkdir_p; then
18742     mkdir -p "$ac_dir"
18743   else
18744     as_dir="$ac_dir"
18745     as_dirs=
18746     while test ! -d "$as_dir"; do
18747       as_dirs="$as_dir $as_dirs"
18748       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18750          X"$as_dir" : 'X\(//\)[^/]' \| \
18751          X"$as_dir" : 'X\(//\)$' \| \
18752          X"$as_dir" : 'X\(/\)' \| \
18753          .     : '\(.\)' 2>/dev/null ||
18754 echo X"$as_dir" |
18755     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18756           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18757           /^X\(\/\/\)$/{ s//\1/; q; }
18758           /^X\(\/\).*/{ s//\1/; q; }
18759           s/.*/./; q'`
18760     done
18761     test ! -n "$as_dirs" || mkdir $as_dirs
18762   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18763 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18764    { (exit 1); exit 1; }; }; }
18765
18766     ac_builddir=.
18767
18768 if test "$ac_dir" != .; then
18769   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18770   # A "../" for each directory in $ac_dir_suffix.
18771   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18772 else
18773   ac_dir_suffix= ac_top_builddir=
18774 fi
18775
18776 case $srcdir in
18777   .)  # No --srcdir option.  We are building in place.
18778     ac_srcdir=.
18779     if test -z "$ac_top_builddir"; then
18780        ac_top_srcdir=.
18781     else
18782        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18783     fi ;;
18784   [\\/]* | ?:[\\/]* )  # Absolute path.
18785     ac_srcdir=$srcdir$ac_dir_suffix;
18786     ac_top_srcdir=$srcdir ;;
18787   *) # Relative path.
18788     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18789     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18790 esac
18791
18792 # Do not use `cd foo && pwd` to compute absolute paths, because
18793 # the directories may not exist.
18794 case `pwd` in
18795 .) ac_abs_builddir="$ac_dir";;
18796 *)
18797   case "$ac_dir" in
18798   .) ac_abs_builddir=`pwd`;;
18799   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18800   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18801   esac;;
18802 esac
18803 case $ac_abs_builddir in
18804 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18805 *)
18806   case ${ac_top_builddir}. in
18807   .) ac_abs_top_builddir=$ac_abs_builddir;;
18808   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18809   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18810   esac;;
18811 esac
18812 case $ac_abs_builddir in
18813 .) ac_abs_srcdir=$ac_srcdir;;
18814 *)
18815   case $ac_srcdir in
18816   .) ac_abs_srcdir=$ac_abs_builddir;;
18817   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18818   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18819   esac;;
18820 esac
18821 case $ac_abs_builddir in
18822 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18823 *)
18824   case $ac_top_srcdir in
18825   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18826   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18827   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18828   esac;;
18829 esac
18830
18831
18832     cd $ac_dir
18833
18834     # Check for guested configure; otherwise get Cygnus style configure.
18835     if test -f $ac_srcdir/configure.gnu; then
18836       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18837     elif test -f $ac_srcdir/configure; then
18838       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18839     elif test -f $ac_srcdir/configure.in; then
18840       ac_sub_configure=$ac_configure
18841     else
18842       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18843 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18844       ac_sub_configure=
18845     fi
18846
18847     # The recursion is here.
18848     if test -n "$ac_sub_configure"; then
18849       # Make the cache file name correct relative to the subdirectory.
18850       case $cache_file in
18851       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18852       *) # Relative path.
18853         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18854       esac
18855
18856       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18857 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18858       # The eval makes quoting arguments work.
18859       eval $ac_sub_configure $ac_sub_configure_args \
18860            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18861         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18862 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18863    { (exit 1); exit 1; }; }
18864     fi
18865
18866     cd $ac_popdir
18867   done
18868 fi
18869