OSDN Git Service

c12e66e33a48b77b5b612506a4cfe78180f77870
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP BASH_JAR_TRUE BASH_JAR_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GCJH INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE 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 NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL SYSDEP_SOURCES LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --enable-plugin         build gcjwebplugin web browser plugin
857   --enable-gconf-peer     compile GConf native peers for util.preferences
858   --disable-dependency-tracking  speeds up one-time build
859   --enable-dependency-tracking   do not reject slow dependency extractors
860   --enable-maintainer-mode  enable make rules and dependencies not useful
861                           (and sometimes confusing) to the casual installer
862   --enable-libgcj-debug   enable runtime debugging code
863   --enable-java-awt       list of AWT peer implementations to be built
864   --enable-shared=PKGS  build shared libraries default=yes
865   --enable-static=PKGS  build static libraries default=yes
866   --enable-fast-install=PKGS  optimize for fast installation default=yes
867   --disable-libtool-lock  avoid locking (might break parallel builds)
868   --disable-getenv-properties
869                           don't set system properties from GCJ_PROPERTIES
870   --enable-hash-synchronization
871                           use global hash table for monitor locks
872   --enable-gc-debug       include full support for pointer backtracing etc.
873   --enable-interpreter    enable interpreter
874   --enable-sjlj-exceptions
875                           force use of builtin_setjmp for exceptions
876   --disable-java-net      disable java.net
877   --disable-jvmpi         disable JVMPI support
878   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
879   --disable-rpath         do not hardcode runtime library paths
880   _g_switchUse thread-local storage
881                           [default=yes]
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886   --with-build-libsubdir=DIR  Directory where to find libraries for build system
887   --with-target-subdir=SUBDIR
888                           configure in a subdirectory
889   --with-cross-host=HOST  configure with a cross compiler from HOST
890   --with-newlib           configure with newlib
891   --with-gnu-ld           assume the C compiler uses GNU ld default=no
892   --with-pic              try to use only PIC/non-PIC objects default=use both
893   --with-java-home=DIRECTORY
894                           value of java.home system property
895   --with-win32-nlsapi=ansi or unicows or unicode
896                           native MinGW libgcj Win32 OS API (default is ansi)
897   --without-libffi        don't use libffi
898   --with-ecos             enable runtime eCos target support
899   --with-system-zlib      use installed libz
900   --with-x                use the X Window System
901   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
902   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
903
904 Some influential environment variables:
905   CC          C compiler command
906   CFLAGS      C compiler flags
907   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
908               nonstandard directory <lib dir>
909   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
910               headers in a nonstandard directory <include dir>
911   CXX         C++ compiler command
912   CXXFLAGS    C++ compiler flags
913   CXXCPP      C++ preprocessor
914   CPP         C preprocessor
915
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
918
919 _ACEOF
920 fi
921
922 if test "$ac_init_help" = "recursive"; then
923   # If there are subdirs, report their specific --help.
924   ac_popdir=`pwd`
925   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926     test -d $ac_dir || continue
927     ac_builddir=.
928
929 if test "$ac_dir" != .; then
930   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931   # A "../" for each directory in $ac_dir_suffix.
932   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934   ac_dir_suffix= ac_top_builddir=
935 fi
936
937 case $srcdir in
938   .)  # No --srcdir option.  We are building in place.
939     ac_srcdir=.
940     if test -z "$ac_top_builddir"; then
941        ac_top_srcdir=.
942     else
943        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944     fi ;;
945   [\\/]* | ?:[\\/]* )  # Absolute path.
946     ac_srcdir=$srcdir$ac_dir_suffix;
947     ac_top_srcdir=$srcdir ;;
948   *) # Relative path.
949     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950     ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
952
953 # Do not use `cd foo && pwd` to compute absolute paths, because
954 # the directories may not exist.
955 case `pwd` in
956 .) ac_abs_builddir="$ac_dir";;
957 *)
958   case "$ac_dir" in
959   .) ac_abs_builddir=`pwd`;;
960   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
961   *) ac_abs_builddir=`pwd`/"$ac_dir";;
962   esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *)
967   case ${ac_top_builddir}. in
968   .) ac_abs_top_builddir=$ac_abs_builddir;;
969   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
970   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971   esac;;
972 esac
973 case $ac_abs_builddir in
974 .) ac_abs_srcdir=$ac_srcdir;;
975 *)
976   case $ac_srcdir in
977   .) ac_abs_srcdir=$ac_abs_builddir;;
978   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
979   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980   esac;;
981 esac
982 case $ac_abs_builddir in
983 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *)
985   case $ac_top_srcdir in
986   .) ac_abs_top_srcdir=$ac_abs_builddir;;
987   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
988   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989   esac;;
990 esac
991
992     cd $ac_dir
993     # Check for guested configure; otherwise get Cygnus style configure.
994     if test -f $ac_srcdir/configure.gnu; then
995       echo
996       $SHELL $ac_srcdir/configure.gnu  --help=recursive
997     elif test -f $ac_srcdir/configure; then
998       echo
999       $SHELL $ac_srcdir/configure  --help=recursive
1000     elif test -f $ac_srcdir/configure.ac ||
1001            test -f $ac_srcdir/configure.in; then
1002       echo
1003       $ac_configure --help
1004     else
1005       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006     fi
1007     cd $ac_popdir
1008   done
1009 fi
1010
1011 test -n "$ac_init_help" && exit 0
1012 if $ac_init_version; then
1013   cat <<\_ACEOF
1014 libjava configure version-unused
1015 generated by GNU Autoconf 2.59
1016
1017 Copyright (C) 2003 Free Software Foundation, Inc.
1018 This configure script is free software; the Free Software Foundation
1019 gives unlimited permission to copy, distribute and modify it.
1020 _ACEOF
1021   exit 0
1022 fi
1023 exec 5>config.log
1024 cat >&5 <<_ACEOF
1025 This file contains any messages produced by compilers while
1026 running configure, to aid debugging if configure makes a mistake.
1027
1028 It was created by libjava $as_me version-unused, which was
1029 generated by GNU Autoconf 2.59.  Invocation command line was
1030
1031   $ $0 $@
1032
1033 _ACEOF
1034 {
1035 cat <<_ASUNAME
1036 ## --------- ##
1037 ## Platform. ##
1038 ## --------- ##
1039
1040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045
1046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1047 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1048
1049 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1050 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1052 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1053 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1054 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1055 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1056
1057 _ASUNAME
1058
1059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 for as_dir in $PATH
1061 do
1062   IFS=$as_save_IFS
1063   test -z "$as_dir" && as_dir=.
1064   echo "PATH: $as_dir"
1065 done
1066
1067 } >&5
1068
1069 cat >&5 <<_ACEOF
1070
1071
1072 ## ----------- ##
1073 ## Core tests. ##
1074 ## ----------- ##
1075
1076 _ACEOF
1077
1078
1079 # Keep a trace of the command line.
1080 # Strip out --no-create and --no-recursion so they do not pile up.
1081 # Strip out --silent because we don't want to record it for future runs.
1082 # Also quote any args containing shell meta-characters.
1083 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_configure_args=
1085 ac_configure_args0=
1086 ac_configure_args1=
1087 ac_sep=
1088 ac_must_keep_next=false
1089 for ac_pass in 1 2
1090 do
1091   for ac_arg
1092   do
1093     case $ac_arg in
1094     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1095     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096     | -silent | --silent | --silen | --sile | --sil)
1097       continue ;;
1098     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1099       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1100     esac
1101     case $ac_pass in
1102     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103     2)
1104       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1105       if test $ac_must_keep_next = true; then
1106         ac_must_keep_next=false # Got value, back to normal.
1107       else
1108         case $ac_arg in
1109           *=* | --config-cache | -C | -disable-* | --disable-* \
1110           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1111           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1112           | -with-* | --with-* | -without-* | --without-* | --x)
1113             case "$ac_configure_args0 " in
1114               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1115             esac
1116             ;;
1117           -* ) ac_must_keep_next=true ;;
1118         esac
1119       fi
1120       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1121       # Get rid of the leading space.
1122       ac_sep=" "
1123       ;;
1124     esac
1125   done
1126 done
1127 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1128 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129
1130 # When interrupted or exit'd, cleanup temporary files, and complete
1131 # config.log.  We remove comments because anyway the quotes in there
1132 # would cause problems or look ugly.
1133 # WARNING: Be sure not to use single quotes in there, as some shells,
1134 # such as our DU 5.0 friend, will then `close' the trap.
1135 trap 'exit_status=$?
1136   # Save into config.log some information that might help in debugging.
1137   {
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ---------------- ##
1142 ## Cache variables. ##
1143 ## ---------------- ##
1144 _ASBOX
1145     echo
1146     # The following way of writing the cache mishandles newlines in values,
1147 {
1148   (set) 2>&1 |
1149     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1150     *ac_space=\ *)
1151       sed -n \
1152         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1153           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154       ;;
1155     *)
1156       sed -n \
1157         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1158       ;;
1159     esac;
1160 }
1161     echo
1162
1163     cat <<\_ASBOX
1164 ## ----------------- ##
1165 ## Output variables. ##
1166 ## ----------------- ##
1167 _ASBOX
1168     echo
1169     for ac_var in $ac_subst_vars
1170     do
1171       eval ac_val=$`echo $ac_var`
1172       echo "$ac_var='"'"'$ac_val'"'"'"
1173     done | sort
1174     echo
1175
1176     if test -n "$ac_subst_files"; then
1177       cat <<\_ASBOX
1178 ## ------------- ##
1179 ## Output files. ##
1180 ## ------------- ##
1181 _ASBOX
1182       echo
1183       for ac_var in $ac_subst_files
1184       do
1185         eval ac_val=$`echo $ac_var`
1186         echo "$ac_var='"'"'$ac_val'"'"'"
1187       done | sort
1188       echo
1189     fi
1190
1191     if test -s confdefs.h; then
1192       cat <<\_ASBOX
1193 ## ----------- ##
1194 ## confdefs.h. ##
1195 ## ----------- ##
1196 _ASBOX
1197       echo
1198       sed "/^$/d" confdefs.h | sort
1199       echo
1200     fi
1201     test "$ac_signal" != 0 &&
1202       echo "$as_me: caught signal $ac_signal"
1203     echo "$as_me: exit $exit_status"
1204   } >&5
1205   rm -f core *.core &&
1206   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1207     exit $exit_status
1208      ' 0
1209 for ac_signal in 1 2 13 15; do
1210   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 done
1212 ac_signal=0
1213
1214 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1215 rm -rf conftest* confdefs.h
1216 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1217 echo >confdefs.h
1218
1219 # Predefined preprocessor variables.
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 _ACEOF
1239
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 _ACEOF
1244
1245
1246 # Let the site file select an alternate cache file if it wants to.
1247 # Prefer explicitly selected file to automatically selected ones.
1248 if test -z "$CONFIG_SITE"; then
1249   if test "x$prefix" != xNONE; then
1250     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251   else
1252     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1253   fi
1254 fi
1255 for ac_site_file in $CONFIG_SITE; do
1256   if test -r "$ac_site_file"; then
1257     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1258 echo "$as_me: loading site script $ac_site_file" >&6;}
1259     sed 's/^/| /' "$ac_site_file" >&5
1260     . "$ac_site_file"
1261   fi
1262 done
1263
1264 if test -r "$cache_file"; then
1265   # Some versions of bash will fail to source /dev/null (special
1266   # files actually), so we avoid doing that.
1267   if test -f "$cache_file"; then
1268     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1269 echo "$as_me: loading cache $cache_file" >&6;}
1270     case $cache_file in
1271       [\\/]* | ?:[\\/]* ) . $cache_file;;
1272       *)                      . ./$cache_file;;
1273     esac
1274   fi
1275 else
1276   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1277 echo "$as_me: creating cache $cache_file" >&6;}
1278   >$cache_file
1279 fi
1280
1281 # Check that the precious variables saved in the cache have kept the same
1282 # value.
1283 ac_cache_corrupted=false
1284 for ac_var in `(set) 2>&1 |
1285                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1286   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1287   eval ac_new_set=\$ac_env_${ac_var}_set
1288   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1289   eval ac_new_val="\$ac_env_${ac_var}_value"
1290   case $ac_old_set,$ac_new_set in
1291     set,)
1292       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1294       ac_cache_corrupted=: ;;
1295     ,set)
1296       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1297 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1298       ac_cache_corrupted=: ;;
1299     ,);;
1300     *)
1301       if test "x$ac_old_val" != "x$ac_new_val"; then
1302         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1303 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1304         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1305 echo "$as_me:   former value:  $ac_old_val" >&2;}
1306         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1307 echo "$as_me:   current value: $ac_new_val" >&2;}
1308         ac_cache_corrupted=:
1309       fi;;
1310   esac
1311   # Pass precious variables to config.status.
1312   if test "$ac_new_set" = set; then
1313     case $ac_new_val in
1314     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1316     *) ac_arg=$ac_var=$ac_new_val ;;
1317     esac
1318     case " $ac_configure_args " in
1319       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1320       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1321     esac
1322   fi
1323 done
1324 if $ac_cache_corrupted; then
1325   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1326 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1327   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1328 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1329    { (exit 1); exit 1; }; }
1330 fi
1331
1332 ac_ext=c
1333 ac_cpp='$CPP $CPPFLAGS'
1334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367 ac_aux_dir=
1368 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1369   if test -f $ac_dir/install-sh; then
1370     ac_aux_dir=$ac_dir
1371     ac_install_sh="$ac_aux_dir/install-sh -c"
1372     break
1373   elif test -f $ac_dir/install.sh; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/install.sh -c"
1376     break
1377   elif test -f $ac_dir/shtool; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/shtool install -c"
1380     break
1381   fi
1382 done
1383 if test -z "$ac_aux_dir"; then
1384   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1385 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1386    { (exit 1); exit 1; }; }
1387 fi
1388 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1389 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1390 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391
1392 # Make sure we can run config.sub.
1393 $ac_config_sub sun4 >/dev/null 2>&1 ||
1394   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1395 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1396    { (exit 1); exit 1; }; }
1397
1398 echo "$as_me:$LINENO: checking build system type" >&5
1399 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1400 if test "${ac_cv_build+set}" = set; then
1401   echo $ECHO_N "(cached) $ECHO_C" >&6
1402 else
1403   ac_cv_build_alias=$build_alias
1404 test -z "$ac_cv_build_alias" &&
1405   ac_cv_build_alias=`$ac_config_guess`
1406 test -z "$ac_cv_build_alias" &&
1407   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1408 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1409    { (exit 1); exit 1; }; }
1410 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1411   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1412 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1413    { (exit 1); exit 1; }; }
1414
1415 fi
1416 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1417 echo "${ECHO_T}$ac_cv_build" >&6
1418 build=$ac_cv_build
1419 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1420 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1421 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1422
1423
1424  case ${build_alias} in
1425   "") build_noncanonical=${build} ;;
1426   *) build_noncanonical=${build_alias} ;;
1427 esac
1428
1429  case ${host_alias} in
1430   "") host_noncanonical=${build_noncanonical} ;;
1431   *) host_noncanonical=${host_alias} ;;
1432 esac
1433
1434  case ${target_alias} in
1435   "") target_noncanonical=${host_noncanonical} ;;
1436   *) target_noncanonical=${target_alias} ;;
1437 esac
1438
1439
1440 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1441 # have matching libraries, they should use host libraries: Makefile.tpl
1442 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1443 # However, they still use the build modules, because the corresponding
1444 # host modules (e.g. bison) are only built for the host when bootstrap
1445 # finishes. So:
1446 # - build_subdir is where we find build modules, and never changes.
1447 # - build_libsubdir is where we find build libraries, and can be overridden.
1448
1449 # Prefix 'build-' so this never conflicts with target_subdir.
1450 build_subdir="build-${build_noncanonical}"
1451
1452 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1453 if test "${with_build_libsubdir+set}" = set; then
1454   withval="$with_build_libsubdir"
1455   build_libsubdir="$withval"
1456 else
1457   build_libsubdir="$build_subdir"
1458 fi;
1459 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1460 if ( test $srcdir = . && test -d gcc ) \
1461    || test -d $srcdir/../host-${host_noncanonical}; then
1462   host_subdir="host-${host_noncanonical}"
1463 else
1464   host_subdir=.
1465 fi
1466 # No prefix.
1467 target_subdir=${target_noncanonical}
1468
1469
1470 # We use these options to decide which functions to include.
1471
1472 # Check whether --with-target-subdir or --without-target-subdir was given.
1473 if test "${with_target_subdir+set}" = set; then
1474   withval="$with_target_subdir"
1475
1476 fi;
1477
1478 # We may get other options which we don't document:
1479 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1480
1481 # When building with srcdir == objdir, links to the source files will
1482 # be created in directories within the target_subdir.  We have to
1483 # adjust toplevel_srcdir accordingly, so that configure finds
1484 # install-sh and other auxiliary files that live in the top-level
1485 # source directory.
1486 if test "${srcdir}" = "."; then
1487   if test -z "${with_target_subdir}"; then
1488     toprel=".."
1489   else
1490     if test "${with_target_subdir}" != "."; then
1491       toprel="${with_multisrctop}../.."
1492     else
1493       toprel="${with_multisrctop}.."
1494     fi
1495   fi
1496 else
1497   toprel=".."
1498 fi
1499
1500 libgcj_basedir=$srcdir/$toprel/./libjava
1501
1502
1503 echo "$as_me:$LINENO: checking host system type" >&5
1504 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1505 if test "${ac_cv_host+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   ac_cv_host_alias=$host_alias
1509 test -z "$ac_cv_host_alias" &&
1510   ac_cv_host_alias=$ac_cv_build_alias
1511 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1512   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1514    { (exit 1); exit 1; }; }
1515
1516 fi
1517 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1518 echo "${ECHO_T}$ac_cv_host" >&6
1519 host=$ac_cv_host
1520 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1523
1524
1525 echo "$as_me:$LINENO: checking target system type" >&5
1526 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1527 if test "${ac_cv_target+set}" = set; then
1528   echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530   ac_cv_target_alias=$target_alias
1531 test "x$ac_cv_target_alias" = "x" &&
1532   ac_cv_target_alias=$ac_cv_host_alias
1533 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1534   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1536    { (exit 1); exit 1; }; }
1537
1538 fi
1539 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1540 echo "${ECHO_T}$ac_cv_target" >&6
1541 target=$ac_cv_target
1542 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545
1546
1547 # The aliases save the names the user supplied, while $host etc.
1548 # will get canonicalized.
1549 test -n "$target_alias" &&
1550   test "$program_prefix$program_suffix$program_transform_name" = \
1551     NONENONEs,x,x, &&
1552   program_prefix=${target_alias}-
1553  case ${build_alias} in
1554   "") build_noncanonical=${build} ;;
1555   *) build_noncanonical=${build_alias} ;;
1556 esac
1557
1558  case ${target_alias} in
1559   "") target_noncanonical=${host_noncanonical} ;;
1560   *) target_noncanonical=${target_alias} ;;
1561 esac
1562
1563
1564
1565
1566 # This works around the fact that libtool configuration may change LD
1567 # for this particular configuration, but some shells, instead of
1568 # keeping the changes in LD private, export them just because LD is
1569 # exported.
1570 ORIGINAL_LD_FOR_MULTILIBS=$LD
1571
1572 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1573 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1574 LN_S=$as_ln_s
1575 if test "$LN_S" = "ln -s"; then
1576   echo "$as_me:$LINENO: result: yes" >&5
1577 echo "${ECHO_T}yes" >&6
1578 else
1579   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1580 echo "${ECHO_T}no, using $LN_S" >&6
1581 fi
1582
1583
1584 # This works around an automake problem.
1585 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1586
1587
1588
1589 # Check whether --with-cross-host or --without-cross-host was given.
1590 if test "${with_cross_host+set}" = set; then
1591   withval="$with_cross_host"
1592
1593 fi;
1594
1595
1596 # Check whether --with-newlib or --without-newlib was given.
1597 if test "${with_newlib+set}" = set; then
1598   withval="$with_newlib"
1599
1600 fi;
1601
1602 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1603 if test "${enable_version_specific_runtime_libs+set}" = set; then
1604   enableval="$enable_version_specific_runtime_libs"
1605   case "$enableval" in
1606       yes) version_specific_libs=yes ;;
1607       no)  version_specific_libs=no ;;
1608       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1609 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1610    { (exit 1); exit 1; }; };;
1611      esac
1612 else
1613   version_specific_libs=no
1614
1615 fi;
1616
1617 # Default to --enable-multilib
1618 # Check whether --enable-multilib or --disable-multilib was given.
1619 if test "${enable_multilib+set}" = set; then
1620   enableval="$enable_multilib"
1621   case "${enableval}" in
1622   yes) multilib=yes ;;
1623   no)  multilib=no ;;
1624   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1625 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1626    { (exit 1); exit 1; }; } ;;
1627  esac
1628 else
1629   multilib=yes
1630 fi;
1631 # Check whether --enable-plugin or --disable-plugin was given.
1632 if test "${enable_plugin+set}" = set; then
1633   enableval="$enable_plugin"
1634   case "$enableval" in
1635       yes) plugin_enabled=yes ;;
1636       no)  plugin_enabled=no ;;
1637       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1638 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1639    { (exit 1); exit 1; }; };;
1640      esac
1641 else
1642   plugin_enabled=no
1643
1644 fi;
1645
1646 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1647 if test "${enable_gconf_peer+set}" = set; then
1648   enableval="$enable_gconf_peer"
1649   case "$enableval" in
1650       yes) gconf_enabled=yes ;;
1651       no)  gconf_enabled=no ;;
1652       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1653 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1654    { (exit 1); exit 1; }; };;
1655      esac
1656 else
1657   gconf_enabled=no
1658
1659 fi;
1660
1661 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1662
1663
1664 # (1) We use an abnormal CXX (without library references), so we
1665 # must cache it under a different name.
1666 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1667 # the non-multilib-adjusted value will be used in multilibs.
1668 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1669 # (4) As another side effect, automake doesn't automatically include them
1670 # in Makefile.in.
1671 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1672 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1673 # used in later tests.  This may not be necessary in libjava; I don't know.
1674
1675
1676
1677 save_CXXFLAGS="$CXXFLAGS"
1678 CXXFLAGS="$CXXFLAGS -fno-builtin"
1679 ac_ext=c
1680 ac_cpp='$CPP $CPPFLAGS'
1681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1684 if test -n "$ac_tool_prefix"; then
1685   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1686 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   if test -n "$CC"; then
1693   ac_cv_prog_CC="$CC" # Let the user override the test.
1694 else
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698   IFS=$as_save_IFS
1699   test -z "$as_dir" && as_dir=.
1700   for ac_exec_ext in '' $ac_executable_extensions; do
1701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704     break 2
1705   fi
1706 done
1707 done
1708
1709 fi
1710 fi
1711 CC=$ac_cv_prog_CC
1712 if test -n "$CC"; then
1713   echo "$as_me:$LINENO: result: $CC" >&5
1714 echo "${ECHO_T}$CC" >&6
1715 else
1716   echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1718 fi
1719
1720 fi
1721 if test -z "$ac_cv_prog_CC"; then
1722   ac_ct_CC=$CC
1723   # Extract the first word of "gcc", so it can be a program name with args.
1724 set dummy gcc; ac_word=$2
1725 echo "$as_me:$LINENO: checking for $ac_word" >&5
1726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   if test -n "$ac_ct_CC"; then
1731   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1732 else
1733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1734 for as_dir in $PATH
1735 do
1736   IFS=$as_save_IFS
1737   test -z "$as_dir" && as_dir=.
1738   for ac_exec_ext in '' $ac_executable_extensions; do
1739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1740     ac_cv_prog_ac_ct_CC="gcc"
1741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742     break 2
1743   fi
1744 done
1745 done
1746
1747 fi
1748 fi
1749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1750 if test -n "$ac_ct_CC"; then
1751   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1752 echo "${ECHO_T}$ac_ct_CC" >&6
1753 else
1754   echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758   CC=$ac_ct_CC
1759 else
1760   CC="$ac_cv_prog_CC"
1761 fi
1762
1763 if test -z "$CC"; then
1764   if test -n "$ac_tool_prefix"; then
1765   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1766 set dummy ${ac_tool_prefix}cc; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_CC+set}" = set; then
1770   echo $ECHO_N "(cached) $ECHO_C" >&6
1771 else
1772   if test -n "$CC"; then
1773   ac_cv_prog_CC="$CC" # Let the user override the test.
1774 else
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778   IFS=$as_save_IFS
1779   test -z "$as_dir" && as_dir=.
1780   for ac_exec_ext in '' $ac_executable_extensions; do
1781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782     ac_cv_prog_CC="${ac_tool_prefix}cc"
1783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1784     break 2
1785   fi
1786 done
1787 done
1788
1789 fi
1790 fi
1791 CC=$ac_cv_prog_CC
1792 if test -n "$CC"; then
1793   echo "$as_me:$LINENO: result: $CC" >&5
1794 echo "${ECHO_T}$CC" >&6
1795 else
1796   echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1798 fi
1799
1800 fi
1801 if test -z "$ac_cv_prog_CC"; then
1802   ac_ct_CC=$CC
1803   # Extract the first word of "cc", so it can be a program name with args.
1804 set dummy cc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   if test -n "$ac_ct_CC"; then
1811   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816   IFS=$as_save_IFS
1817   test -z "$as_dir" && as_dir=.
1818   for ac_exec_ext in '' $ac_executable_extensions; do
1819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820     ac_cv_prog_ac_ct_CC="cc"
1821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822     break 2
1823   fi
1824 done
1825 done
1826
1827 fi
1828 fi
1829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1830 if test -n "$ac_ct_CC"; then
1831   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1832 echo "${ECHO_T}$ac_ct_CC" >&6
1833 else
1834   echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836 fi
1837
1838   CC=$ac_ct_CC
1839 else
1840   CC="$ac_cv_prog_CC"
1841 fi
1842
1843 fi
1844 if test -z "$CC"; then
1845   # Extract the first word of "cc", so it can be a program name with args.
1846 set dummy cc; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_CC+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   if test -n "$CC"; then
1853   ac_cv_prog_CC="$CC" # Let the user override the test.
1854 else
1855   ac_prog_rejected=no
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859   IFS=$as_save_IFS
1860   test -z "$as_dir" && as_dir=.
1861   for ac_exec_ext in '' $ac_executable_extensions; do
1862   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1864        ac_prog_rejected=yes
1865        continue
1866      fi
1867     ac_cv_prog_CC="cc"
1868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869     break 2
1870   fi
1871 done
1872 done
1873
1874 if test $ac_prog_rejected = yes; then
1875   # We found a bogon in the path, so make sure we never use it.
1876   set dummy $ac_cv_prog_CC
1877   shift
1878   if test $# != 0; then
1879     # We chose a different compiler from the bogus one.
1880     # However, it has the same basename, so the bogon will be chosen
1881     # first if we set CC to just the basename; use the full file name.
1882     shift
1883     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1884   fi
1885 fi
1886 fi
1887 fi
1888 CC=$ac_cv_prog_CC
1889 if test -n "$CC"; then
1890   echo "$as_me:$LINENO: result: $CC" >&5
1891 echo "${ECHO_T}$CC" >&6
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897 fi
1898 if test -z "$CC"; then
1899   if test -n "$ac_tool_prefix"; then
1900   for ac_prog in cl
1901   do
1902     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1904 echo "$as_me:$LINENO: checking for $ac_word" >&5
1905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906 if test "${ac_cv_prog_CC+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test -n "$CC"; then
1910   ac_cv_prog_CC="$CC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921     break 2
1922   fi
1923 done
1924 done
1925
1926 fi
1927 fi
1928 CC=$ac_cv_prog_CC
1929 if test -n "$CC"; then
1930   echo "$as_me:$LINENO: result: $CC" >&5
1931 echo "${ECHO_T}$CC" >&6
1932 else
1933   echo "$as_me:$LINENO: result: no" >&5
1934 echo "${ECHO_T}no" >&6
1935 fi
1936
1937     test -n "$CC" && break
1938   done
1939 fi
1940 if test -z "$CC"; then
1941   ac_ct_CC=$CC
1942   for ac_prog in cl
1943 do
1944   # Extract the first word of "$ac_prog", so it can be a program name with args.
1945 set dummy $ac_prog; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$ac_ct_CC"; then
1952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_ac_ct_CC="$ac_prog"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979   test -n "$ac_ct_CC" && break
1980 done
1981
1982   CC=$ac_ct_CC
1983 fi
1984
1985 fi
1986
1987
1988 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1989 See \`config.log' for more details." >&5
1990 echo "$as_me: error: no acceptable C compiler found in \$PATH
1991 See \`config.log' for more details." >&2;}
1992    { (exit 1); exit 1; }; }
1993
1994 # Provide some information about the compiler.
1995 echo "$as_me:$LINENO:" \
1996      "checking for C compiler version" >&5
1997 ac_compiler=`set X $ac_compile; echo $2`
1998 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1999   (eval $ac_compiler --version </dev/null >&5) 2>&5
2000   ac_status=$?
2001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002   (exit $ac_status); }
2003 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2004   (eval $ac_compiler -v </dev/null >&5) 2>&5
2005   ac_status=$?
2006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2007   (exit $ac_status); }
2008 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2009   (eval $ac_compiler -V </dev/null >&5) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); }
2013
2014 cat >conftest.$ac_ext <<_ACEOF
2015 /* confdefs.h.  */
2016 _ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h.  */
2020
2021 int
2022 main ()
2023 {
2024
2025   ;
2026   return 0;
2027 }
2028 _ACEOF
2029 # FIXME: Cleanup?
2030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2031   (eval $ac_link) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }; then
2035   gcc_no_link=no
2036 else
2037   gcc_no_link=yes
2038 fi
2039
2040 if test x$gcc_no_link = xyes; then
2041   # Setting cross_compile will disable run tests; it will
2042   # also disable AC_CHECK_FILE but that's generally
2043   # correct if we can't link.
2044   cross_compiling=yes
2045   EXEEXT=
2046 else
2047   cat >conftest.$ac_ext <<_ACEOF
2048 /* confdefs.h.  */
2049 _ACEOF
2050 cat confdefs.h >>conftest.$ac_ext
2051 cat >>conftest.$ac_ext <<_ACEOF
2052 /* end confdefs.h.  */
2053
2054 int
2055 main ()
2056 {
2057
2058   ;
2059   return 0;
2060 }
2061 _ACEOF
2062 ac_clean_files_save=$ac_clean_files
2063 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2064 # Try to create an executable without -o first, disregard a.out.
2065 # It will help us diagnose broken compilers, and finding out an intuition
2066 # of exeext.
2067 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2068 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2069 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2070 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2071   (eval $ac_link_default) 2>&5
2072   ac_status=$?
2073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074   (exit $ac_status); }; then
2075   # Find the output, starting from the most likely.  This scheme is
2076 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2077 # resort.
2078
2079 # Be careful to initialize this variable, since it used to be cached.
2080 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2081 ac_cv_exeext=
2082 # b.out is created by i960 compilers.
2083 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2084 do
2085   test -f "$ac_file" || continue
2086   case $ac_file in
2087     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2088         ;;
2089     conftest.$ac_ext )
2090         # This is the source file.
2091         ;;
2092     [ab].out )
2093         # We found the default executable, but exeext='' is most
2094         # certainly right.
2095         break;;
2096     *.* )
2097         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2098         # FIXME: I believe we export ac_cv_exeext for Libtool,
2099         # but it would be cool to find out if it's true.  Does anybody
2100         # maintain Libtool? --akim.
2101         export ac_cv_exeext
2102         break;;
2103     * )
2104         break;;
2105   esac
2106 done
2107 else
2108   echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2112 See \`config.log' for more details." >&5
2113 echo "$as_me: error: C compiler cannot create executables
2114 See \`config.log' for more details." >&2;}
2115    { (exit 77); exit 77; }; }
2116 fi
2117
2118 ac_exeext=$ac_cv_exeext
2119 echo "$as_me:$LINENO: result: $ac_file" >&5
2120 echo "${ECHO_T}$ac_file" >&6
2121
2122 # Check the compiler produces executables we can run.  If not, either
2123 # the compiler is broken, or we cross compile.
2124 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2125 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2126 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2127 # If not cross compiling, check that we can run a simple program.
2128 if test "$cross_compiling" != yes; then
2129   if { ac_try='./$ac_file'
2130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131   (eval $ac_try) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }; }; then
2135     cross_compiling=no
2136   else
2137     if test "$cross_compiling" = maybe; then
2138         cross_compiling=yes
2139     else
2140         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2141 If you meant to cross compile, use \`--host'.
2142 See \`config.log' for more details." >&5
2143 echo "$as_me: error: cannot run C compiled programs.
2144 If you meant to cross compile, use \`--host'.
2145 See \`config.log' for more details." >&2;}
2146    { (exit 1); exit 1; }; }
2147     fi
2148   fi
2149 fi
2150 echo "$as_me:$LINENO: result: yes" >&5
2151 echo "${ECHO_T}yes" >&6
2152
2153 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2154 ac_clean_files=$ac_clean_files_save
2155 # Check the compiler produces executables we can run.  If not, either
2156 # the compiler is broken, or we cross compile.
2157 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2158 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2159 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2160 echo "${ECHO_T}$cross_compiling" >&6
2161
2162 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2163 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2165   (eval $ac_link) 2>&5
2166   ac_status=$?
2167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168   (exit $ac_status); }; then
2169   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2170 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2171 # work properly (i.e., refer to `conftest.exe'), while it won't with
2172 # `rm'.
2173 for ac_file in conftest.exe conftest conftest.*; do
2174   test -f "$ac_file" || continue
2175   case $ac_file in
2176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2177     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2178           export ac_cv_exeext
2179           break;;
2180     * ) break;;
2181   esac
2182 done
2183 else
2184   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2187 See \`config.log' for more details." >&2;}
2188    { (exit 1); exit 1; }; }
2189 fi
2190
2191 rm -f conftest$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2193 echo "${ECHO_T}$ac_cv_exeext" >&6
2194
2195 rm -f conftest.$ac_ext
2196 EXEEXT=$ac_cv_exeext
2197 ac_exeext=$EXEEXT
2198 fi
2199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2201 if test "${ac_cv_objext+set}" = set; then
2202   echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204   cat >conftest.$ac_ext <<_ACEOF
2205 /* confdefs.h.  */
2206 _ACEOF
2207 cat confdefs.h >>conftest.$ac_ext
2208 cat >>conftest.$ac_ext <<_ACEOF
2209 /* end confdefs.h.  */
2210
2211 int
2212 main ()
2213 {
2214
2215   ;
2216   return 0;
2217 }
2218 _ACEOF
2219 rm -f conftest.o conftest.obj
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221   (eval $ac_compile) 2>&5
2222   ac_status=$?
2223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224   (exit $ac_status); }; then
2225   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2226   case $ac_file in
2227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2228     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2229        break;;
2230   esac
2231 done
2232 else
2233   echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2235
2236 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2239 See \`config.log' for more details." >&2;}
2240    { (exit 1); exit 1; }; }
2241 fi
2242
2243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2244 fi
2245 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2246 echo "${ECHO_T}$ac_cv_objext" >&6
2247 OBJEXT=$ac_cv_objext
2248 ac_objext=$OBJEXT
2249 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2250 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2251 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2252   echo $ECHO_N "(cached) $ECHO_C" >&6
2253 else
2254   cat >conftest.$ac_ext <<_ACEOF
2255 /* confdefs.h.  */
2256 _ACEOF
2257 cat confdefs.h >>conftest.$ac_ext
2258 cat >>conftest.$ac_ext <<_ACEOF
2259 /* end confdefs.h.  */
2260
2261 int
2262 main ()
2263 {
2264 #ifndef __GNUC__
2265        choke me
2266 #endif
2267
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274   (eval $ac_compile) 2>conftest.er1
2275   ac_status=$?
2276   grep -v '^ *+' conftest.er1 >conftest.err
2277   rm -f conftest.er1
2278   cat conftest.err >&5
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); } &&
2281          { ac_try='test -z "$ac_c_werror_flag"
2282                          || test ! -s conftest.err'
2283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284   (eval $ac_try) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }; } &&
2288          { ac_try='test -s conftest.$ac_objext'
2289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290   (eval $ac_try) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }; }; then
2294   ac_compiler_gnu=yes
2295 else
2296   echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 ac_compiler_gnu=no
2300 fi
2301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2303
2304 fi
2305 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2306 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2307 GCC=`test $ac_compiler_gnu = yes && echo yes`
2308 ac_test_CFLAGS=${CFLAGS+set}
2309 ac_save_CFLAGS=$CFLAGS
2310 CFLAGS="-g"
2311 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2312 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2313 if test "${ac_cv_prog_cc_g+set}" = set; then
2314   echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316   cat >conftest.$ac_ext <<_ACEOF
2317 /* confdefs.h.  */
2318 _ACEOF
2319 cat confdefs.h >>conftest.$ac_ext
2320 cat >>conftest.$ac_ext <<_ACEOF
2321 /* end confdefs.h.  */
2322
2323 int
2324 main ()
2325 {
2326
2327   ;
2328   return 0;
2329 }
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>conftest.er1
2334   ac_status=$?
2335   grep -v '^ *+' conftest.er1 >conftest.err
2336   rm -f conftest.er1
2337   cat conftest.err >&5
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); } &&
2340          { ac_try='test -z "$ac_c_werror_flag"
2341                          || test ! -s conftest.err'
2342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343   (eval $ac_try) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   ac_cv_prog_cc_g=yes
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 ac_cv_prog_cc_g=no
2359 fi
2360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2361 fi
2362 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2364 if test "$ac_test_CFLAGS" = set; then
2365   CFLAGS=$ac_save_CFLAGS
2366 elif test $ac_cv_prog_cc_g = yes; then
2367   if test "$GCC" = yes; then
2368     CFLAGS="-g -O2"
2369   else
2370     CFLAGS="-g"
2371   fi
2372 else
2373   if test "$GCC" = yes; then
2374     CFLAGS="-O2"
2375   else
2376     CFLAGS=
2377   fi
2378 fi
2379 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2380 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2381 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   ac_cv_prog_cc_stdc=no
2385 ac_save_CC=$CC
2386 cat >conftest.$ac_ext <<_ACEOF
2387 /* confdefs.h.  */
2388 _ACEOF
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h.  */
2392 #include <stdarg.h>
2393 #include <stdio.h>
2394 #include <sys/types.h>
2395 #include <sys/stat.h>
2396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2397 struct buf { int x; };
2398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2399 static char *e (p, i)
2400      char **p;
2401      int i;
2402 {
2403   return p[i];
2404 }
2405 static char *f (char * (*g) (char **, int), char **p, ...)
2406 {
2407   char *s;
2408   va_list v;
2409   va_start (v,p);
2410   s = g (p, va_arg (v,int));
2411   va_end (v);
2412   return s;
2413 }
2414
2415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2416    function prototypes and stuff, but not '\xHH' hex character constants.
2417    These don't provoke an error unfortunately, instead are silently treated
2418    as 'x'.  The following induces an error, until -std1 is added to get
2419    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2420    array size at least.  It's necessary to write '\x00'==0 to get something
2421    that's true only with -std1.  */
2422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2423
2424 int test (int i, double x);
2425 struct s1 {int (*f) (int a);};
2426 struct s2 {int (*f) (double a);};
2427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2428 int argc;
2429 char **argv;
2430 int
2431 main ()
2432 {
2433 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2434   ;
2435   return 0;
2436 }
2437 _ACEOF
2438 # Don't try gcc -ansi; that turns off useful extensions and
2439 # breaks some systems' header files.
2440 # AIX                   -qlanglvl=ansi
2441 # Ultrix and OSF/1      -std1
2442 # HP-UX 10.20 and later -Ae
2443 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2444 # SVR4                  -Xc -D__EXTENSIONS__
2445 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2446 do
2447   CC="$ac_save_CC $ac_arg"
2448   rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450   (eval $ac_compile) 2>conftest.er1
2451   ac_status=$?
2452   grep -v '^ *+' conftest.er1 >conftest.err
2453   rm -f conftest.er1
2454   cat conftest.err >&5
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); } &&
2457          { ac_try='test -z "$ac_c_werror_flag"
2458                          || test ! -s conftest.err'
2459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460   (eval $ac_try) 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }; } &&
2464          { ac_try='test -s conftest.$ac_objext'
2465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466   (eval $ac_try) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; }; then
2470   ac_cv_prog_cc_stdc=$ac_arg
2471 break
2472 else
2473   echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2475
2476 fi
2477 rm -f conftest.err conftest.$ac_objext
2478 done
2479 rm -f conftest.$ac_ext conftest.$ac_objext
2480 CC=$ac_save_CC
2481
2482 fi
2483
2484 case "x$ac_cv_prog_cc_stdc" in
2485   x|xno)
2486     echo "$as_me:$LINENO: result: none needed" >&5
2487 echo "${ECHO_T}none needed" >&6 ;;
2488   *)
2489     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2490 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2491     CC="$CC $ac_cv_prog_cc_stdc" ;;
2492 esac
2493
2494 # Some people use a C++ compiler to compile C.  Since we use `exit',
2495 # in C++ we need to declare it.  In case someone uses the same compiler
2496 # for both compiling C and C++ we need to have the C++ compiler decide
2497 # the declaration of exit, since it's the most demanding environment.
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #ifndef __cplusplus
2500   choke me
2501 #endif
2502 _ACEOF
2503 rm -f conftest.$ac_objext
2504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2505   (eval $ac_compile) 2>conftest.er1
2506   ac_status=$?
2507   grep -v '^ *+' conftest.er1 >conftest.err
2508   rm -f conftest.er1
2509   cat conftest.err >&5
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); } &&
2512          { ac_try='test -z "$ac_c_werror_flag"
2513                          || test ! -s conftest.err'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; } &&
2519          { ac_try='test -s conftest.$ac_objext'
2520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521   (eval $ac_try) 2>&5
2522   ac_status=$?
2523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524   (exit $ac_status); }; }; then
2525   for ac_declaration in \
2526    '' \
2527    'extern "C" void std::exit (int) throw (); using std::exit;' \
2528    'extern "C" void std::exit (int); using std::exit;' \
2529    'extern "C" void exit (int) throw ();' \
2530    'extern "C" void exit (int);' \
2531    'void exit (int);'
2532 do
2533   cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539 $ac_declaration
2540 #include <stdlib.h>
2541 int
2542 main ()
2543 {
2544 exit (42);
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"
2559                          || test ! -s conftest.err'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   :
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576 continue
2577 fi
2578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579   cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585 $ac_declaration
2586 int
2587 main ()
2588 {
2589 exit (42);
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>conftest.er1
2597   ac_status=$?
2598   grep -v '^ *+' conftest.er1 >conftest.err
2599   rm -f conftest.er1
2600   cat conftest.err >&5
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -z "$ac_c_werror_flag"
2604                          || test ! -s conftest.err'
2605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606   (eval $ac_try) 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; }; then
2616   break
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621 fi
2622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 rm -f conftest*
2625 if test -n "$ac_declaration"; then
2626   echo '#ifdef __cplusplus' >>confdefs.h
2627   echo $ac_declaration      >>confdefs.h
2628   echo '#endif'             >>confdefs.h
2629 fi
2630
2631 else
2632   echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 fi
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_ext=c
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642
2643 ac_ext=cc
2644 ac_cpp='$CXXCPP $CPPFLAGS'
2645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2648 if test -n "$ac_tool_prefix"; then
2649   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2650   do
2651     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653 echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2655 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2656   echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658   if test -n "$CXX"; then
2659   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666   for ac_exec_ext in '' $ac_executable_extensions; do
2667   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673 done
2674
2675 fi
2676 fi
2677 CXX=$glibcxx_cv_prog_CXX
2678 if test -n "$CXX"; then
2679   echo "$as_me:$LINENO: result: $CXX" >&5
2680 echo "${ECHO_T}$CXX" >&6
2681 else
2682   echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6
2684 fi
2685
2686     test -n "$CXX" && break
2687   done
2688 fi
2689 if test -z "$CXX"; then
2690   ac_ct_CXX=$CXX
2691   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2692 do
2693   # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2697 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2698   echo $ECHO_N "(cached) $ECHO_C" >&6
2699 else
2700   if test -n "$ac_ct_CXX"; then
2701   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708   for ac_exec_ext in '' $ac_executable_extensions; do
2709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2710     ac_cv_prog_ac_ct_CXX="$ac_prog"
2711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712     break 2
2713   fi
2714 done
2715 done
2716
2717 fi
2718 fi
2719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2720 if test -n "$ac_ct_CXX"; then
2721   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2722 echo "${ECHO_T}$ac_ct_CXX" >&6
2723 else
2724   echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2726 fi
2727
2728   test -n "$ac_ct_CXX" && break
2729 done
2730 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2731
2732   CXX=$ac_ct_CXX
2733 fi
2734
2735
2736 # Provide some information about the compiler.
2737 echo "$as_me:$LINENO:" \
2738      "checking for C++ compiler version" >&5
2739 ac_compiler=`set X $ac_compile; echo $2`
2740 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2741   (eval $ac_compiler --version </dev/null >&5) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }
2745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2746   (eval $ac_compiler -v </dev/null >&5) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); }
2750 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2751   (eval $ac_compiler -V </dev/null >&5) 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }
2755
2756 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2757 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2758 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2759   echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761   cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767
2768 int
2769 main ()
2770 {
2771 #ifndef __GNUC__
2772        choke me
2773 #endif
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_cxx_werror_flag"
2789                          || test ! -s conftest.err'
2790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791   (eval $ac_try) 2>&5
2792   ac_status=$?
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); }; } &&
2795          { ac_try='test -s conftest.$ac_objext'
2796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797   (eval $ac_try) 2>&5
2798   ac_status=$?
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); }; }; then
2801   ac_compiler_gnu=yes
2802 else
2803   echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 ac_compiler_gnu=no
2807 fi
2808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2810
2811 fi
2812 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2813 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2814 GXX=`test $ac_compiler_gnu = yes && echo yes`
2815 ac_test_CXXFLAGS=${CXXFLAGS+set}
2816 ac_save_CXXFLAGS=$CXXFLAGS
2817 CXXFLAGS="-g"
2818 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2819 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2820 if test "${ac_cv_prog_cxx_g+set}" = set; then
2821   echo $ECHO_N "(cached) $ECHO_C" >&6
2822 else
2823   cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829
2830 int
2831 main ()
2832 {
2833
2834   ;
2835   return 0;
2836 }
2837 _ACEOF
2838 rm -f conftest.$ac_objext
2839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2840   (eval $ac_compile) 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } &&
2847          { ac_try='test -z "$ac_cxx_werror_flag"
2848                          || test ! -s conftest.err'
2849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850   (eval $ac_try) 2>&5
2851   ac_status=$?
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); }; } &&
2854          { ac_try='test -s conftest.$ac_objext'
2855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); }; }; then
2860   ac_cv_prog_cxx_g=yes
2861 else
2862   echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 ac_cv_prog_cxx_g=no
2866 fi
2867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2868 fi
2869 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2870 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2871 if test "$ac_test_CXXFLAGS" = set; then
2872   CXXFLAGS=$ac_save_CXXFLAGS
2873 elif test $ac_cv_prog_cxx_g = yes; then
2874   if test "$GXX" = yes; then
2875     CXXFLAGS="-g -O2"
2876   else
2877     CXXFLAGS="-g"
2878   fi
2879 else
2880   if test "$GXX" = yes; then
2881     CXXFLAGS="-O2"
2882   else
2883     CXXFLAGS=
2884   fi
2885 fi
2886 for ac_declaration in \
2887    '' \
2888    'extern "C" void std::exit (int) throw (); using std::exit;' \
2889    'extern "C" void std::exit (int); using std::exit;' \
2890    'extern "C" void exit (int) throw ();' \
2891    'extern "C" void exit (int);' \
2892    'void exit (int);'
2893 do
2894   cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900 $ac_declaration
2901 #include <stdlib.h>
2902 int
2903 main ()
2904 {
2905 exit (42);
2906   ;
2907   return 0;
2908 }
2909 _ACEOF
2910 rm -f conftest.$ac_objext
2911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912   (eval $ac_compile) 2>conftest.er1
2913   ac_status=$?
2914   grep -v '^ *+' conftest.er1 >conftest.err
2915   rm -f conftest.er1
2916   cat conftest.err >&5
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); } &&
2919          { ac_try='test -z "$ac_cxx_werror_flag"
2920                          || test ! -s conftest.err'
2921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922   (eval $ac_try) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }; } &&
2926          { ac_try='test -s conftest.$ac_objext'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; }; then
2932   :
2933 else
2934   echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 continue
2938 fi
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940   cat >conftest.$ac_ext <<_ACEOF
2941 /* confdefs.h.  */
2942 _ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h.  */
2946 $ac_declaration
2947 int
2948 main ()
2949 {
2950 exit (42);
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957   (eval $ac_compile) 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -z "$ac_cxx_werror_flag"
2965                          || test ! -s conftest.err'
2966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967   (eval $ac_try) 2>&5
2968   ac_status=$?
2969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); }; } &&
2971          { ac_try='test -s conftest.$ac_objext'
2972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973   (eval $ac_try) 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }; }; then
2977   break
2978 else
2979   echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2981
2982 fi
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2984 done
2985 rm -f conftest*
2986 if test -n "$ac_declaration"; then
2987   echo '#ifdef __cplusplus' >>confdefs.h
2988   echo $ac_declaration      >>confdefs.h
2989   echo '#endif'             >>confdefs.h
2990 fi
2991
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997
2998 CXXFLAGS="$save_CXXFLAGS"
2999
3000
3001
3002
3003
3004 am__api_version="1.9"
3005 # Find a good install program.  We prefer a C program (faster),
3006 # so one script is as good as another.  But avoid the broken or
3007 # incompatible versions:
3008 # SysV /etc/install, /usr/sbin/install
3009 # SunOS /usr/etc/install
3010 # IRIX /sbin/install
3011 # AIX /bin/install
3012 # AmigaOS /C/install, which installs bootblocks on floppy discs
3013 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3014 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3015 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3016 # OS/2's system install, which has a completely different semantic
3017 # ./install, which can be erroneously created by make from ./install.sh.
3018 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3019 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3020 if test -z "$INSTALL"; then
3021 if test "${ac_cv_path_install+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029   # Account for people who put trailing slashes in PATH elements.
3030 case $as_dir/ in
3031   ./ | .// | /cC/* | \
3032   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3033   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3034   /usr/ucb/* ) ;;
3035   *)
3036     # OSF1 and SCO ODT 3.0 have their own names for install.
3037     # Don't use installbsd from OSF since it installs stuff as root
3038     # by default.
3039     for ac_prog in ginstall scoinst install; do
3040       for ac_exec_ext in '' $ac_executable_extensions; do
3041         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3042           if test $ac_prog = install &&
3043             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3044             # AIX install.  It has an incompatible calling convention.
3045             :
3046           elif test $ac_prog = install &&
3047             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048             # program-specific install script used by HP pwplus--don't use.
3049             :
3050           else
3051             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3052             break 3
3053           fi
3054         fi
3055       done
3056     done
3057     ;;
3058 esac
3059 done
3060
3061
3062 fi
3063   if test "${ac_cv_path_install+set}" = set; then
3064     INSTALL=$ac_cv_path_install
3065   else
3066     # As a last resort, use the slow shell script.  We don't cache a
3067     # path for INSTALL within a source directory, because that will
3068     # break other packages using the cache if that directory is
3069     # removed, or if the path is relative.
3070     INSTALL=$ac_install_sh
3071   fi
3072 fi
3073 echo "$as_me:$LINENO: result: $INSTALL" >&5
3074 echo "${ECHO_T}$INSTALL" >&6
3075
3076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3077 # It thinks the first close brace ends the variable substitution.
3078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3079
3080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3081
3082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3083
3084 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3086 # Just in case
3087 sleep 1
3088 echo timestamp > conftest.file
3089 # Do `set' in a subshell so we don't clobber the current shell's
3090 # arguments.  Must try -L first in case configure is actually a
3091 # symlink; some systems play weird games with the mod time of symlinks
3092 # (eg FreeBSD returns the mod time of the symlink's containing
3093 # directory).
3094 if (
3095    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3096    if test "$*" = "X"; then
3097       # -L didn't work.
3098       set X `ls -t $srcdir/configure conftest.file`
3099    fi
3100    rm -f conftest.file
3101    if test "$*" != "X $srcdir/configure conftest.file" \
3102       && test "$*" != "X conftest.file $srcdir/configure"; then
3103
3104       # If neither matched, then we have a broken ls.  This can happen
3105       # if, for instance, CONFIG_SHELL is bash and it inherits a
3106       # broken ls alias from the environment.  This has actually
3107       # happened.  Such a system could not be considered "sane".
3108       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3109 alias in your environment" >&5
3110 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3111 alias in your environment" >&2;}
3112    { (exit 1); exit 1; }; }
3113    fi
3114
3115    test "$2" = conftest.file
3116    )
3117 then
3118    # Ok.
3119    :
3120 else
3121    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3122 Check your system clock" >&5
3123 echo "$as_me: error: newly created file is older than distributed files!
3124 Check your system clock" >&2;}
3125    { (exit 1); exit 1; }; }
3126 fi
3127 echo "$as_me:$LINENO: result: yes" >&5
3128 echo "${ECHO_T}yes" >&6
3129 test "$program_prefix" != NONE &&
3130   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3131 # Use a double $ so make ignores it.
3132 test "$program_suffix" != NONE &&
3133   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3134 # Double any \ or $.  echo might interpret backslashes.
3135 # By default was `s,x,x', remove it if useless.
3136 cat <<\_ACEOF >conftest.sed
3137 s/[\\$]/&&/g;s/;s,x,x,$//
3138 _ACEOF
3139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3140 rm conftest.sed
3141
3142 # expand $ac_aux_dir to an absolute path
3143 am_aux_dir=`cd $ac_aux_dir && pwd`
3144
3145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3146 # Use eval to expand $SHELL
3147 if eval "$MISSING --run true"; then
3148   am_missing_run="$MISSING --run "
3149 else
3150   am_missing_run=
3151   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3153 fi
3154
3155 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3156   # We used to keeping the `.' as first argument, in order to
3157   # allow $(mkdir_p) to be used without argument.  As in
3158   #   $(mkdir_p) $(somedir)
3159   # where $(somedir) is conditionally defined.  However this is wrong
3160   # for two reasons:
3161   #  1. if the package is installed by a user who cannot write `.'
3162   #     make install will fail,
3163   #  2. the above comment should most certainly read
3164   #     $(mkdir_p) $(DESTDIR)$(somedir)
3165   #     so it does not work when $(somedir) is undefined and
3166   #     $(DESTDIR) is not.
3167   #  To support the latter case, we have to write
3168   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3169   #  so the `.' trick is pointless.
3170   mkdir_p='mkdir -p --'
3171 else
3172   # On NextStep and OpenStep, the `mkdir' command does not
3173   # recognize any option.  It will interpret all options as
3174   # directories to create, and then abort because `.' already
3175   # exists.
3176   for d in ./-p ./--version;
3177   do
3178     test -d $d && rmdir $d
3179   done
3180   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3181   if test -f "$ac_aux_dir/mkinstalldirs"; then
3182     mkdir_p='$(mkinstalldirs)'
3183   else
3184     mkdir_p='$(install_sh) -d'
3185   fi
3186 fi
3187
3188 for ac_prog in gawk mawk nawk awk
3189 do
3190   # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 echo "$as_me:$LINENO: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_AWK+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   if test -n "$AWK"; then
3198   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205   for ac_exec_ext in '' $ac_executable_extensions; do
3206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3207     ac_cv_prog_AWK="$ac_prog"
3208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212 done
3213
3214 fi
3215 fi
3216 AWK=$ac_cv_prog_AWK
3217 if test -n "$AWK"; then
3218   echo "$as_me:$LINENO: result: $AWK" >&5
3219 echo "${ECHO_T}$AWK" >&6
3220 else
3221   echo "$as_me:$LINENO: result: no" >&5
3222 echo "${ECHO_T}no" >&6
3223 fi
3224
3225   test -n "$AWK" && break
3226 done
3227
3228 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3230 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3231 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   cat >conftest.make <<\_ACEOF
3235 all:
3236         @echo 'ac_maketemp="$(MAKE)"'
3237 _ACEOF
3238 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3239 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3240 if test -n "$ac_maketemp"; then
3241   eval ac_cv_prog_make_${ac_make}_set=yes
3242 else
3243   eval ac_cv_prog_make_${ac_make}_set=no
3244 fi
3245 rm -f conftest.make
3246 fi
3247 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3248   echo "$as_me:$LINENO: result: yes" >&5
3249 echo "${ECHO_T}yes" >&6
3250   SET_MAKE=
3251 else
3252   echo "$as_me:$LINENO: result: no" >&5
3253 echo "${ECHO_T}no" >&6
3254   SET_MAKE="MAKE=${MAKE-make}"
3255 fi
3256
3257 rm -rf .tst 2>/dev/null
3258 mkdir .tst 2>/dev/null
3259 if test -d .tst; then
3260   am__leading_dot=.
3261 else
3262   am__leading_dot=_
3263 fi
3264 rmdir .tst 2>/dev/null
3265
3266 DEPDIR="${am__leading_dot}deps"
3267
3268           ac_config_commands="$ac_config_commands depfiles"
3269
3270
3271 am_make=${MAKE-make}
3272 cat > confinc << 'END'
3273 am__doit:
3274         @echo done
3275 .PHONY: am__doit
3276 END
3277 # If we don't find an include directive, just comment out the code.
3278 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3279 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3280 am__include="#"
3281 am__quote=
3282 _am_result=none
3283 # First try GNU make style include.
3284 echo "include confinc" > confmf
3285 # We grep out `Entering directory' and `Leaving directory'
3286 # messages which can occur if `w' ends up in MAKEFLAGS.
3287 # In particular we don't look at `^make:' because GNU make might
3288 # be invoked under some other name (usually "gmake"), in which
3289 # case it prints its new name instead of `make'.
3290 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3291    am__include=include
3292    am__quote=
3293    _am_result=GNU
3294 fi
3295 # Now try BSD make style include.
3296 if test "$am__include" = "#"; then
3297    echo '.include "confinc"' > confmf
3298    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3299       am__include=.include
3300       am__quote="\""
3301       _am_result=BSD
3302    fi
3303 fi
3304
3305
3306 echo "$as_me:$LINENO: result: $_am_result" >&5
3307 echo "${ECHO_T}$_am_result" >&6
3308 rm -f confinc confmf
3309
3310 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3311 if test "${enable_dependency_tracking+set}" = set; then
3312   enableval="$enable_dependency_tracking"
3313
3314 fi;
3315 if test "x$enable_dependency_tracking" != xno; then
3316   am_depcomp="$ac_aux_dir/depcomp"
3317   AMDEPBACKSLASH='\'
3318 fi
3319
3320
3321 if test "x$enable_dependency_tracking" != xno; then
3322   AMDEP_TRUE=
3323   AMDEP_FALSE='#'
3324 else
3325   AMDEP_TRUE='#'
3326   AMDEP_FALSE=
3327 fi
3328
3329
3330
3331 # test to see if srcdir already configured
3332 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3333    test -f $srcdir/config.status; then
3334   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3335 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3336    { (exit 1); exit 1; }; }
3337 fi
3338
3339 # test whether we have cygpath
3340 if test -z "$CYGPATH_W"; then
3341   if (cygpath --version) >/dev/null 2>/dev/null; then
3342     CYGPATH_W='cygpath -w'
3343   else
3344     CYGPATH_W=echo
3345   fi
3346 fi
3347
3348
3349 # Define the identity of the package.
3350  PACKAGE='libjava'
3351  VERSION='version-unused'
3352
3353
3354 cat >>confdefs.h <<_ACEOF
3355 #define PACKAGE "$PACKAGE"
3356 _ACEOF
3357
3358
3359 cat >>confdefs.h <<_ACEOF
3360 #define VERSION "$VERSION"
3361 _ACEOF
3362
3363 # Some tools Automake needs.
3364
3365 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3366
3367
3368 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3369
3370
3371 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3372
3373
3374 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3375
3376
3377 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3378
3379 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3380
3381 # Installed binaries are usually stripped using `strip' when the user
3382 # run `make install-strip'.  However `strip' might not be the right
3383 # tool to use in cross-compilation environments, therefore Automake
3384 # will honor the `STRIP' environment variable to overrule this program.
3385 if test "$cross_compiling" != no; then
3386   if test -n "$ac_tool_prefix"; then
3387   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}strip; ac_word=$2
3389 echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3391 if test "${ac_cv_prog_STRIP+set}" = set; then
3392   echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394   if test -n "$STRIP"; then
3395   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3399 do
3400   IFS=$as_save_IFS
3401   test -z "$as_dir" && as_dir=.
3402   for ac_exec_ext in '' $ac_executable_extensions; do
3403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3406     break 2
3407   fi
3408 done
3409 done
3410
3411 fi
3412 fi
3413 STRIP=$ac_cv_prog_STRIP
3414 if test -n "$STRIP"; then
3415   echo "$as_me:$LINENO: result: $STRIP" >&5
3416 echo "${ECHO_T}$STRIP" >&6
3417 else
3418   echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3420 fi
3421
3422 fi
3423 if test -z "$ac_cv_prog_STRIP"; then
3424   ac_ct_STRIP=$STRIP
3425   # Extract the first word of "strip", so it can be a program name with args.
3426 set dummy strip; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   if test -n "$ac_ct_STRIP"; then
3433   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440   for ac_exec_ext in '' $ac_executable_extensions; do
3441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442     ac_cv_prog_ac_ct_STRIP="strip"
3443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447 done
3448
3449   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3450 fi
3451 fi
3452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3453 if test -n "$ac_ct_STRIP"; then
3454   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3455 echo "${ECHO_T}$ac_ct_STRIP" >&6
3456 else
3457   echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3459 fi
3460
3461   STRIP=$ac_ct_STRIP
3462 else
3463   STRIP="$ac_cv_prog_STRIP"
3464 fi
3465
3466 fi
3467 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3468
3469 # We need awk for the "check" target.  The system "awk" is bad on
3470 # some platforms.
3471 # Always define AMTAR for backward compatibility.
3472
3473 AMTAR=${AMTAR-"${am_missing_run}tar"}
3474
3475 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3476
3477
3478
3479
3480 depcc="$CC"   am_compiler_list=
3481
3482 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3483 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3484 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3488   # We make a subdir and do the tests there.  Otherwise we can end up
3489   # making bogus files that we don't know about and never remove.  For
3490   # instance it was reported that on HP-UX the gcc test will end up
3491   # making a dummy file named `D' -- because `-MD' means `put the output
3492   # in D'.
3493   mkdir conftest.dir
3494   # Copy depcomp to subdir because otherwise we won't find it if we're
3495   # using a relative directory.
3496   cp "$am_depcomp" conftest.dir
3497   cd conftest.dir
3498   # We will build objects and dependencies in a subdirectory because
3499   # it helps to detect inapplicable dependency modes.  For instance
3500   # both Tru64's cc and ICC support -MD to output dependencies as a
3501   # side effect of compilation, but ICC will put the dependencies in
3502   # the current directory while Tru64 will put them in the object
3503   # directory.
3504   mkdir sub
3505
3506   am_cv_CC_dependencies_compiler_type=none
3507   if test "$am_compiler_list" = ""; then
3508      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3509   fi
3510   for depmode in $am_compiler_list; do
3511     # Setup a source with many dependencies, because some compilers
3512     # like to wrap large dependency lists on column 80 (with \), and
3513     # we should not choose a depcomp mode which is confused by this.
3514     #
3515     # We need to recreate these files for each test, as the compiler may
3516     # overwrite some of them when testing with obscure command lines.
3517     # This happens at least with the AIX C compiler.
3518     : > sub/conftest.c
3519     for i in 1 2 3 4 5 6; do
3520       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3521       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3522       # Solaris 8's {/usr,}/bin/sh.
3523       touch sub/conftst$i.h
3524     done
3525     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3526
3527     case $depmode in
3528     nosideeffect)
3529       # after this tag, mechanisms are not by side-effect, so they'll
3530       # only be used when explicitly requested
3531       if test "x$enable_dependency_tracking" = xyes; then
3532         continue
3533       else
3534         break
3535       fi
3536       ;;
3537     none) break ;;
3538     esac
3539     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3540     # mode.  It turns out that the SunPro C++ compiler does not properly
3541     # handle `-M -o', and we need to detect this.
3542     if depmode=$depmode \
3543        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3544        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3545        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3546          >/dev/null 2>conftest.err &&
3547        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3548        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3549        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3550       # icc doesn't choke on unknown options, it will just issue warnings
3551       # or remarks (even with -Werror).  So we grep stderr for any message
3552       # that says an option was ignored or not supported.
3553       # When given -MP, icc 7.0 and 7.1 complain thusly:
3554       #   icc: Command line warning: ignoring option '-M'; no argument required
3555       # The diagnosis changed in icc 8.0:
3556       #   icc: Command line remark: option '-MP' not supported
3557       if (grep 'ignoring option' conftest.err ||
3558           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3559         am_cv_CC_dependencies_compiler_type=$depmode
3560         break
3561       fi
3562     fi
3563   done
3564
3565   cd ..
3566   rm -rf conftest.dir
3567 else
3568   am_cv_CC_dependencies_compiler_type=none
3569 fi
3570
3571 fi
3572 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3573 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3574 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3575
3576
3577
3578 if
3579   test "x$enable_dependency_tracking" != xno \
3580   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3581   am__fastdepCC_TRUE=
3582   am__fastdepCC_FALSE='#'
3583 else
3584   am__fastdepCC_TRUE='#'
3585   am__fastdepCC_FALSE=
3586 fi
3587
3588
3589 depcc="$CXX"  am_compiler_list=
3590
3591 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3592 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3593 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3597   # We make a subdir and do the tests there.  Otherwise we can end up
3598   # making bogus files that we don't know about and never remove.  For
3599   # instance it was reported that on HP-UX the gcc test will end up
3600   # making a dummy file named `D' -- because `-MD' means `put the output
3601   # in D'.
3602   mkdir conftest.dir
3603   # Copy depcomp to subdir because otherwise we won't find it if we're
3604   # using a relative directory.
3605   cp "$am_depcomp" conftest.dir
3606   cd conftest.dir
3607   # We will build objects and dependencies in a subdirectory because
3608   # it helps to detect inapplicable dependency modes.  For instance
3609   # both Tru64's cc and ICC support -MD to output dependencies as a
3610   # side effect of compilation, but ICC will put the dependencies in
3611   # the current directory while Tru64 will put them in the object
3612   # directory.
3613   mkdir sub
3614
3615   am_cv_CXX_dependencies_compiler_type=none
3616   if test "$am_compiler_list" = ""; then
3617      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3618   fi
3619   for depmode in $am_compiler_list; do
3620     # Setup a source with many dependencies, because some compilers
3621     # like to wrap large dependency lists on column 80 (with \), and
3622     # we should not choose a depcomp mode which is confused by this.
3623     #
3624     # We need to recreate these files for each test, as the compiler may
3625     # overwrite some of them when testing with obscure command lines.
3626     # This happens at least with the AIX C compiler.
3627     : > sub/conftest.c
3628     for i in 1 2 3 4 5 6; do
3629       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3630       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3631       # Solaris 8's {/usr,}/bin/sh.
3632       touch sub/conftst$i.h
3633     done
3634     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3635
3636     case $depmode in
3637     nosideeffect)
3638       # after this tag, mechanisms are not by side-effect, so they'll
3639       # only be used when explicitly requested
3640       if test "x$enable_dependency_tracking" = xyes; then
3641         continue
3642       else
3643         break
3644       fi
3645       ;;
3646     none) break ;;
3647     esac
3648     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3649     # mode.  It turns out that the SunPro C++ compiler does not properly
3650     # handle `-M -o', and we need to detect this.
3651     if depmode=$depmode \
3652        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3653        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3654        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3655          >/dev/null 2>conftest.err &&
3656        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3657        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3658        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3659       # icc doesn't choke on unknown options, it will just issue warnings
3660       # or remarks (even with -Werror).  So we grep stderr for any message
3661       # that says an option was ignored or not supported.
3662       # When given -MP, icc 7.0 and 7.1 complain thusly:
3663       #   icc: Command line warning: ignoring option '-M'; no argument required
3664       # The diagnosis changed in icc 8.0:
3665       #   icc: Command line remark: option '-MP' not supported
3666       if (grep 'ignoring option' conftest.err ||
3667           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3668         am_cv_CXX_dependencies_compiler_type=$depmode
3669         break
3670       fi
3671     fi
3672   done
3673
3674   cd ..
3675   rm -rf conftest.dir
3676 else
3677   am_cv_CXX_dependencies_compiler_type=none
3678 fi
3679
3680 fi
3681 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3682 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3683 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3684
3685
3686
3687 if
3688   test "x$enable_dependency_tracking" != xno \
3689   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3690   am__fastdepCXX_TRUE=
3691   am__fastdepCXX_FALSE='#'
3692 else
3693   am__fastdepCXX_TRUE='#'
3694   am__fastdepCXX_FALSE=
3695 fi
3696
3697
3698
3699
3700 if test -n "$ac_tool_prefix"; then
3701   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3702 set dummy ${ac_tool_prefix}as; ac_word=$2
3703 echo "$as_me:$LINENO: checking for $ac_word" >&5
3704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3705 if test "${ac_cv_prog_AS+set}" = set; then
3706   echo $ECHO_N "(cached) $ECHO_C" >&6
3707 else
3708   if test -n "$AS"; then
3709   ac_cv_prog_AS="$AS" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
3715   test -z "$as_dir" && as_dir=.
3716   for ac_exec_ext in '' $ac_executable_extensions; do
3717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718     ac_cv_prog_AS="${ac_tool_prefix}as"
3719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3720     break 2
3721   fi
3722 done
3723 done
3724
3725 fi
3726 fi
3727 AS=$ac_cv_prog_AS
3728 if test -n "$AS"; then
3729   echo "$as_me:$LINENO: result: $AS" >&5
3730 echo "${ECHO_T}$AS" >&6
3731 else
3732   echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3734 fi
3735
3736 fi
3737 if test -z "$ac_cv_prog_AS"; then
3738   ac_ct_AS=$AS
3739   # Extract the first word of "as", so it can be a program name with args.
3740 set dummy as; ac_word=$2
3741 echo "$as_me:$LINENO: checking for $ac_word" >&5
3742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3743 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3744   echo $ECHO_N "(cached) $ECHO_C" >&6
3745 else
3746   if test -n "$ac_ct_AS"; then
3747   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3748 else
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750 for as_dir in $PATH
3751 do
3752   IFS=$as_save_IFS
3753   test -z "$as_dir" && as_dir=.
3754   for ac_exec_ext in '' $ac_executable_extensions; do
3755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756     ac_cv_prog_ac_ct_AS="as"
3757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758     break 2
3759   fi
3760 done
3761 done
3762
3763 fi
3764 fi
3765 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3766 if test -n "$ac_ct_AS"; then
3767   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3768 echo "${ECHO_T}$ac_ct_AS" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773
3774   AS=$ac_ct_AS
3775 else
3776   AS="$ac_cv_prog_AS"
3777 fi
3778
3779 if test -n "$ac_tool_prefix"; then
3780   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3781 set dummy ${ac_tool_prefix}ld; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_prog_LD+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   if test -n "$LD"; then
3788   ac_cv_prog_LD="$LD" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797     ac_cv_prog_LD="${ac_tool_prefix}ld"
3798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799     break 2
3800   fi
3801 done
3802 done
3803
3804 fi
3805 fi
3806 LD=$ac_cv_prog_LD
3807 if test -n "$LD"; then
3808   echo "$as_me:$LINENO: result: $LD" >&5
3809 echo "${ECHO_T}$LD" >&6
3810 else
3811   echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3813 fi
3814
3815 fi
3816 if test -z "$ac_cv_prog_LD"; then
3817   ac_ct_LD=$LD
3818   # Extract the first word of "ld", so it can be a program name with args.
3819 set dummy ld; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   if test -n "$ac_ct_LD"; then
3826   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_exec_ext in '' $ac_executable_extensions; do
3834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835     ac_cv_prog_ac_ct_LD="ld"
3836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840 done
3841
3842 fi
3843 fi
3844 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3845 if test -n "$ac_ct_LD"; then
3846   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
3847 echo "${ECHO_T}$ac_ct_LD" >&6
3848 else
3849   echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3851 fi
3852
3853   LD=$ac_ct_LD
3854 else
3855   LD="$ac_cv_prog_LD"
3856 fi
3857
3858 if test -n "$ac_tool_prefix"; then
3859   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3860 set dummy ${ac_tool_prefix}ar; ac_word=$2
3861 echo "$as_me:$LINENO: checking for $ac_word" >&5
3862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3863 if test "${ac_cv_prog_AR+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   if test -n "$AR"; then
3867   ac_cv_prog_AR="$AR" # Let the user override the test.
3868 else
3869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 for as_dir in $PATH
3871 do
3872   IFS=$as_save_IFS
3873   test -z "$as_dir" && as_dir=.
3874   for ac_exec_ext in '' $ac_executable_extensions; do
3875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3876     ac_cv_prog_AR="${ac_tool_prefix}ar"
3877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3878     break 2
3879   fi
3880 done
3881 done
3882
3883 fi
3884 fi
3885 AR=$ac_cv_prog_AR
3886 if test -n "$AR"; then
3887   echo "$as_me:$LINENO: result: $AR" >&5
3888 echo "${ECHO_T}$AR" >&6
3889 else
3890   echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3892 fi
3893
3894 fi
3895 if test -z "$ac_cv_prog_AR"; then
3896   ac_ct_AR=$AR
3897   # Extract the first word of "ar", so it can be a program name with args.
3898 set dummy ar; ac_word=$2
3899 echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3901 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   if test -n "$ac_ct_AR"; then
3905   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912   for ac_exec_ext in '' $ac_executable_extensions; do
3913   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3914     ac_cv_prog_ac_ct_AR="ar"
3915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919 done
3920
3921 fi
3922 fi
3923 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3924 if test -n "$ac_ct_AR"; then
3925   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3926 echo "${ECHO_T}$ac_ct_AR" >&6
3927 else
3928   echo "$as_me:$LINENO: result: no" >&5
3929 echo "${ECHO_T}no" >&6
3930 fi
3931
3932   AR=$ac_ct_AR
3933 else
3934   AR="$ac_cv_prog_AR"
3935 fi
3936
3937 if test -n "$ac_tool_prefix"; then
3938   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_prog_RANLIB+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   if test -n "$RANLIB"; then
3946   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961
3962 fi
3963 fi
3964 RANLIB=$ac_cv_prog_RANLIB
3965 if test -n "$RANLIB"; then
3966   echo "$as_me:$LINENO: result: $RANLIB" >&5
3967 echo "${ECHO_T}$RANLIB" >&6
3968 else
3969   echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6
3971 fi
3972
3973 fi
3974 if test -z "$ac_cv_prog_RANLIB"; then
3975   ac_ct_RANLIB=$RANLIB
3976   # Extract the first word of "ranlib", so it can be a program name with args.
3977 set dummy ranlib; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   if test -n "$ac_ct_RANLIB"; then
3984   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3985 else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH
3988 do
3989   IFS=$as_save_IFS
3990   test -z "$as_dir" && as_dir=.
3991   for ac_exec_ext in '' $ac_executable_extensions; do
3992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993     ac_cv_prog_ac_ct_RANLIB="ranlib"
3994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995     break 2
3996   fi
3997 done
3998 done
3999
4000   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4001 fi
4002 fi
4003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4004 if test -n "$ac_ct_RANLIB"; then
4005   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4006 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4007 else
4008   echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4010 fi
4011
4012   RANLIB=$ac_ct_RANLIB
4013 else
4014   RANLIB="$ac_cv_prog_RANLIB"
4015 fi
4016
4017 for ac_prog in gawk mawk nawk awk
4018 do
4019   # Extract the first word of "$ac_prog", so it can be a program name with args.
4020 set dummy $ac_prog; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_prog_AWK+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   if test -n "$AWK"; then
4027   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4028 else
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4031 do
4032   IFS=$as_save_IFS
4033   test -z "$as_dir" && as_dir=.
4034   for ac_exec_ext in '' $ac_executable_extensions; do
4035   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4036     ac_cv_prog_AWK="$ac_prog"
4037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038     break 2
4039   fi
4040 done
4041 done
4042
4043 fi
4044 fi
4045 AWK=$ac_cv_prog_AWK
4046 if test -n "$AWK"; then
4047   echo "$as_me:$LINENO: result: $AWK" >&5
4048 echo "${ECHO_T}$AWK" >&6
4049 else
4050   echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 fi
4053
4054   test -n "$AWK" && break
4055 done
4056
4057 for ac_prog in jar fastjar
4058 do
4059   # Extract the first word of "$ac_prog", so it can be a program name with args.
4060 set dummy $ac_prog; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_prog_JAR+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   if test -n "$JAR"; then
4067   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4071 do
4072   IFS=$as_save_IFS
4073   test -z "$as_dir" && as_dir=.
4074   for ac_exec_ext in '' $ac_executable_extensions; do
4075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076     ac_cv_prog_JAR="$ac_prog"
4077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078     break 2
4079   fi
4080 done
4081 done
4082
4083 fi
4084 fi
4085 JAR=$ac_cv_prog_JAR
4086 if test -n "$JAR"; then
4087   echo "$as_me:$LINENO: result: $JAR" >&5
4088 echo "${ECHO_T}$JAR" >&6
4089 else
4090   echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4092 fi
4093
4094   test -n "$JAR" && break
4095 done
4096 test -n "$JAR" || JAR="no"
4097
4098 # Extract the first word of "zip", so it can be a program name with args.
4099 set dummy zip; ac_word=$2
4100 echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_ZIP+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   case $ZIP in
4106   [\\/]* | ?:[\\/]*)
4107   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4108   ;;
4109   *)
4110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115   for ac_exec_ext in '' $ac_executable_extensions; do
4116   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122 done
4123
4124   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4125   ;;
4126 esac
4127 fi
4128 ZIP=$ac_cv_path_ZIP
4129
4130 if test -n "$ZIP"; then
4131   echo "$as_me:$LINENO: result: $ZIP" >&5
4132 echo "${ECHO_T}$ZIP" >&6
4133 else
4134   echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 fi
4137
4138 # Extract the first word of "unzip", so it can be a program name with args.
4139 set dummy unzip; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_UNZIP+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   case $UNZIP in
4146   [\\/]* | ?:[\\/]*)
4147   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4148   ;;
4149   *)
4150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162 done
4163
4164   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4165   ;;
4166 esac
4167 fi
4168 UNZIP=$ac_cv_path_UNZIP
4169
4170 if test -n "$UNZIP"; then
4171   echo "$as_me:$LINENO: result: $UNZIP" >&5
4172 echo "${ECHO_T}$UNZIP" >&6
4173 else
4174   echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178
4179
4180 if test "$JAR" = no; then
4181   BASH_JAR_TRUE=
4182   BASH_JAR_FALSE='#'
4183 else
4184   BASH_JAR_TRUE='#'
4185   BASH_JAR_FALSE=
4186 fi
4187
4188 if test "$ZIP" = no; then
4189   if test "$JAR" = no; then
4190     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4191 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4192    { (exit 1); exit 1; }; }
4193   fi
4194 else
4195   # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4196   JAR=`pwd`/scripts/jar
4197 fi
4198
4199 # Find a good install program.  We prefer a C program (faster),
4200 # so one script is as good as another.  But avoid the broken or
4201 # incompatible versions:
4202 # SysV /etc/install, /usr/sbin/install
4203 # SunOS /usr/etc/install
4204 # IRIX /sbin/install
4205 # AIX /bin/install
4206 # AmigaOS /C/install, which installs bootblocks on floppy discs
4207 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4208 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4209 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4210 # OS/2's system install, which has a completely different semantic
4211 # ./install, which can be erroneously created by make from ./install.sh.
4212 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4213 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4214 if test -z "$INSTALL"; then
4215 if test "${ac_cv_path_install+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223   # Account for people who put trailing slashes in PATH elements.
4224 case $as_dir/ in
4225   ./ | .// | /cC/* | \
4226   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4227   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4228   /usr/ucb/* ) ;;
4229   *)
4230     # OSF1 and SCO ODT 3.0 have their own names for install.
4231     # Don't use installbsd from OSF since it installs stuff as root
4232     # by default.
4233     for ac_prog in ginstall scoinst install; do
4234       for ac_exec_ext in '' $ac_executable_extensions; do
4235         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4236           if test $ac_prog = install &&
4237             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4238             # AIX install.  It has an incompatible calling convention.
4239             :
4240           elif test $ac_prog = install &&
4241             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4242             # program-specific install script used by HP pwplus--don't use.
4243             :
4244           else
4245             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4246             break 3
4247           fi
4248         fi
4249       done
4250     done
4251     ;;
4252 esac
4253 done
4254
4255
4256 fi
4257   if test "${ac_cv_path_install+set}" = set; then
4258     INSTALL=$ac_cv_path_install
4259   else
4260     # As a last resort, use the slow shell script.  We don't cache a
4261     # path for INSTALL within a source directory, because that will
4262     # break other packages using the cache if that directory is
4263     # removed, or if the path is relative.
4264     INSTALL=$ac_install_sh
4265   fi
4266 fi
4267 echo "$as_me:$LINENO: result: $INSTALL" >&5
4268 echo "${ECHO_T}$INSTALL" >&6
4269
4270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4271 # It thinks the first close brace ends the variable substitution.
4272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4273
4274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4275
4276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4277
4278
4279 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4280 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4281     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4282 if test "${enable_maintainer_mode+set}" = set; then
4283   enableval="$enable_maintainer_mode"
4284   USE_MAINTAINER_MODE=$enableval
4285 else
4286   USE_MAINTAINER_MODE=no
4287 fi;
4288   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4289 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4290
4291
4292 if test $USE_MAINTAINER_MODE = yes; then
4293   MAINTAINER_MODE_TRUE=
4294   MAINTAINER_MODE_FALSE='#'
4295 else
4296   MAINTAINER_MODE_TRUE='#'
4297   MAINTAINER_MODE_FALSE=
4298 fi
4299
4300   MAINT=$MAINTAINER_MODE_TRUE
4301
4302
4303
4304
4305
4306 # configure.host sets the following important variables
4307 #       libgcj_cflags    - host specific C compiler flags
4308 #       libgcj_cxxflags  - host specific C++ compiler flags
4309 #       libgcj_javaflags - host specific Java compiler flags
4310
4311 libgcj_cflags=
4312 libgcj_cxxflags=
4313 libgcj_javaflags=
4314
4315 . ${srcdir}/configure.host
4316
4317 LIBGCJ_CFLAGS="${libgcj_cflags}"
4318 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4319 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4320 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4321
4322
4323
4324
4325
4326 # Only use libltdl for non-newlib builds.
4327 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4328    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4330 library_names_spec=
4331 libname_spec='lib$name'
4332 soname_spec=
4333 shrext=".so"
4334 postinstall_cmds=
4335 postuninstall_cmds=
4336 finish_cmds=
4337 finish_eval=
4338 shlibpath_var=
4339 shlibpath_overrides_runpath=unknown
4340 version_type=none
4341 dynamic_linker="$host_os ld.so"
4342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4343 if test "$GCC" = yes; then
4344   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4345   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4346     # if the path contains ";" then we assume it to be the separator
4347     # otherwise default to the standard path separator (i.e. ":") - it is
4348     # assumed that no part of a normal pathname contains ";" but that should
4349     # okay in the real world where ";" in dirpaths is itself problematic.
4350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4351   else
4352     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4353   fi
4354 else
4355   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4356 fi
4357 need_lib_prefix=unknown
4358 hardcode_into_libs=no
4359
4360 # when you set need_version to no, make sure it does not cause -set_version
4361 # flags to be left without arguments
4362 need_version=unknown
4363
4364 case $host_os in
4365 aix3*)
4366   version_type=linux
4367   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4368   shlibpath_var=LIBPATH
4369
4370   # AIX 3 has no versioning support, so we append a major version to the name.
4371   soname_spec='${libname}${release}${shared_ext}$major'
4372   ;;
4373
4374 aix4* | aix5*)
4375   version_type=linux
4376   need_lib_prefix=no
4377   need_version=no
4378   hardcode_into_libs=yes
4379   if test "$host_cpu" = ia64; then
4380     # AIX 5 supports IA64
4381     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4382     shlibpath_var=LD_LIBRARY_PATH
4383   else
4384     # With GCC up to 2.95.x, collect2 would create an import file
4385     # for dependence libraries.  The import file would start with
4386     # the line `#! .'.  This would cause the generated library to
4387     # depend on `.', always an invalid library.  This was fixed in
4388     # development snapshots of GCC prior to 3.0.
4389     case $host_os in
4390       aix4 | aix4.[01] | aix4.[01].*)
4391       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4392            echo ' yes '
4393            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4394         :
4395       else
4396         can_build_shared=no
4397       fi
4398       ;;
4399     esac
4400     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4401     # soname into executable. Probably we can add versioning support to
4402     # collect2, so additional links can be useful in future.
4403     if test "$aix_use_runtimelinking" = yes; then
4404       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4405       # instead of lib<name>.a to let people know that these are not
4406       # typical AIX shared libraries.
4407       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4408     else
4409       # We preserve .a as extension for shared libraries through AIX4.2
4410       # and later when we are not doing run time linking.
4411       library_names_spec='${libname}${release}.a $libname.a'
4412       soname_spec='${libname}${release}${shared_ext}$major'
4413     fi
4414     shlibpath_var=LIBPATH
4415   fi
4416   ;;
4417
4418 amigaos*)
4419   library_names_spec='$libname.ixlibrary $libname.a'
4420   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4421   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'
4422   ;;
4423
4424 beos*)
4425   library_names_spec='${libname}${shared_ext}'
4426   dynamic_linker="$host_os ld.so"
4427   shlibpath_var=LIBRARY_PATH
4428   ;;
4429
4430 bsdi4*)
4431   version_type=linux
4432   need_version=no
4433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4434   soname_spec='${libname}${release}${shared_ext}$major'
4435   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4436   shlibpath_var=LD_LIBRARY_PATH
4437   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4438   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4439   # the default ld.so.conf also contains /usr/contrib/lib and
4440   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4441   # libtool to hard-code these into programs
4442   ;;
4443
4444 cygwin* | mingw* | pw32*)
4445   version_type=windows
4446   shrext=".dll"
4447   need_version=no
4448   need_lib_prefix=no
4449
4450   case $GCC,$host_os in
4451   yes,cygwin* | yes,mingw* | yes,pw32*)
4452     library_names_spec='$libname.dll.a'
4453     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4454     postinstall_cmds='base_file=`basename \${file}`~
4455       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4456       dldir=$destdir/`dirname \$dlpath`~
4457       test -d \$dldir || mkdir -p \$dldir~
4458       $install_prog $dir/$dlname \$dldir/$dlname'
4459     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4460       dlpath=$dir/\$dldll~
4461        $rm \$dlpath'
4462     shlibpath_overrides_runpath=yes
4463
4464     case $host_os in
4465     cygwin*)
4466       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4467       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4468       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4469       ;;
4470     mingw*)
4471       # MinGW DLLs use traditional 'lib' prefix
4472       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4473       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4474       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4475         # It is most probably a Windows format PATH printed by
4476         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4477         # path with ; separators, and with drive letters. We can handle the
4478         # drive letters (cygwin fileutils understands them), so leave them,
4479         # especially as we might pass files found there to a mingw objdump,
4480         # which wouldn't understand a cygwinified path. Ahh.
4481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4482       else
4483         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4484       fi
4485       ;;
4486     pw32*)
4487       # pw32 DLLs use 'pw' prefix rather than 'lib'
4488       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4489       ;;
4490     esac
4491     ;;
4492
4493   *)
4494     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4495     ;;
4496   esac
4497   dynamic_linker='Win32 ld.exe'
4498   # FIXME: first we should search . and the directory the executable is in
4499   shlibpath_var=PATH
4500   ;;
4501
4502 darwin* | rhapsody*)
4503   dynamic_linker="$host_os dyld"
4504   version_type=darwin
4505   need_lib_prefix=no
4506   need_version=no
4507   # FIXME: Relying on posixy $() will cause problems for
4508   #        cross-compilation, but unfortunately the echo tests do not
4509   #        yet detect zsh echo's removal of \ escapes.
4510   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4511   soname_spec='${libname}${release}${major}$shared_ext'
4512   shlibpath_overrides_runpath=yes
4513   shlibpath_var=DYLD_LIBRARY_PATH
4514   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4515   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4516   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4517   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"`
4518   fi
4519   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4520   ;;
4521
4522 dgux*)
4523   version_type=linux
4524   need_lib_prefix=no
4525   need_version=no
4526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4527   soname_spec='${libname}${release}${shared_ext}$major'
4528   shlibpath_var=LD_LIBRARY_PATH
4529   ;;
4530
4531 freebsd1*)
4532   dynamic_linker=no
4533   ;;
4534
4535 freebsd*)
4536   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4537   version_type=freebsd-$objformat
4538   case $version_type in
4539     freebsd-elf*)
4540       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4541       need_version=no
4542       need_lib_prefix=no
4543       ;;
4544     freebsd-*)
4545       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4546       need_version=yes
4547       ;;
4548   esac
4549   shlibpath_var=LD_LIBRARY_PATH
4550   case $host_os in
4551   freebsd2*)
4552     shlibpath_overrides_runpath=yes
4553     ;;
4554   freebsd3.01* | freebsdelf3.01*)
4555     shlibpath_overrides_runpath=yes
4556     hardcode_into_libs=yes
4557     ;;
4558   *) # from 3.2 on
4559     shlibpath_overrides_runpath=no
4560     hardcode_into_libs=yes
4561     ;;
4562   esac
4563   ;;
4564
4565 gnu*)
4566   version_type=linux
4567   need_lib_prefix=no
4568   need_version=no
4569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4570   soname_spec='${libname}${release}${shared_ext}$major'
4571   shlibpath_var=LD_LIBRARY_PATH
4572   hardcode_into_libs=yes
4573   ;;
4574
4575 hpux9* | hpux10* | hpux11*)
4576   # Give a soname corresponding to the major version so that dld.sl refuses to
4577   # link against other versions.
4578   version_type=sunos
4579   need_lib_prefix=no
4580   need_version=no
4581   case "$host_cpu" in
4582   ia64*)
4583     shrext='.so'
4584     hardcode_into_libs=yes
4585     dynamic_linker="$host_os dld.so"
4586     shlibpath_var=LD_LIBRARY_PATH
4587     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4589     soname_spec='${libname}${release}${shared_ext}$major'
4590     if test "X$HPUX_IA64_MODE" = X32; then
4591       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4592     else
4593       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4594     fi
4595     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4596     ;;
4597    hppa*64*)
4598      shrext='.sl'
4599      hardcode_into_libs=yes
4600      dynamic_linker="$host_os dld.sl"
4601      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4602      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4604      soname_spec='${libname}${release}${shared_ext}$major'
4605      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4606      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4607      ;;
4608    *)
4609     shrext='.sl'
4610     dynamic_linker="$host_os dld.sl"
4611     shlibpath_var=SHLIB_PATH
4612     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4613     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4614     soname_spec='${libname}${release}${shared_ext}$major'
4615     ;;
4616   esac
4617   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4618   postinstall_cmds='chmod 555 $lib'
4619   ;;
4620
4621 irix5* | irix6* | nonstopux*)
4622   case $host_os in
4623     nonstopux*) version_type=nonstopux ;;
4624     *)
4625         if test "$lt_cv_prog_gnu_ld" = yes; then
4626                 version_type=linux
4627         else
4628                 version_type=irix
4629         fi ;;
4630   esac
4631   need_lib_prefix=no
4632   need_version=no
4633   soname_spec='${libname}${release}${shared_ext}$major'
4634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4635   case $host_os in
4636   irix5* | nonstopux*)
4637     libsuff= shlibsuff=
4638     ;;
4639   *)
4640     case $LD in # libtool.m4 will add one of these switches to LD
4641     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4642       libsuff= shlibsuff= libmagic=32-bit;;
4643     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4644       libsuff=32 shlibsuff=N32 libmagic=N32;;
4645     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4646       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4647     *) libsuff= shlibsuff= libmagic=never-match;;
4648     esac
4649     ;;
4650   esac
4651   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4652   shlibpath_overrides_runpath=no
4653   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4654   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4655   hardcode_into_libs=yes
4656   ;;
4657
4658 # No shared lib support for Linux oldld, aout, or coff.
4659 linux*oldld* | linux*aout* | linux*coff*)
4660   dynamic_linker=no
4661   ;;
4662
4663 # This must be Linux ELF.
4664 linux*)
4665   version_type=linux
4666   need_lib_prefix=no
4667   need_version=no
4668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4669   soname_spec='${libname}${release}${shared_ext}$major'
4670   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4671   shlibpath_var=LD_LIBRARY_PATH
4672   shlibpath_overrides_runpath=no
4673   # This implies no fast_install, which is unacceptable.
4674   # Some rework will be needed to allow for fast_install
4675   # before this can be enabled.
4676   hardcode_into_libs=yes
4677
4678   # We used to test for /lib/ld.so.1 and disable shared libraries on
4679   # powerpc, because MkLinux only supported shared libraries with the
4680   # GNU dynamic linker.  Since this was broken with cross compilers,
4681   # most powerpc-linux boxes support dynamic linking these days and
4682   # people can always --disable-shared, the test was removed, and we
4683   # assume the GNU/Linux dynamic linker is in use.
4684   dynamic_linker='GNU/Linux ld.so'
4685   ;;
4686
4687 netbsd*)
4688   version_type=sunos
4689   need_lib_prefix=no
4690   need_version=no
4691   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4693     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4694     dynamic_linker='NetBSD (a.out) ld.so'
4695   else
4696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4697     soname_spec='${libname}${release}${shared_ext}$major'
4698     dynamic_linker='NetBSD ld.elf_so'
4699   fi
4700   shlibpath_var=LD_LIBRARY_PATH
4701   shlibpath_overrides_runpath=yes
4702   hardcode_into_libs=yes
4703   ;;
4704
4705 newsos6)
4706   version_type=linux
4707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4708   shlibpath_var=LD_LIBRARY_PATH
4709   shlibpath_overrides_runpath=yes
4710   ;;
4711
4712 nto-qnx)
4713   version_type=linux
4714   need_lib_prefix=no
4715   need_version=no
4716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4717   soname_spec='${libname}${release}${shared_ext}$major'
4718   shlibpath_var=LD_LIBRARY_PATH
4719   shlibpath_overrides_runpath=yes
4720   ;;
4721
4722 openbsd*)
4723   version_type=sunos
4724   need_lib_prefix=no
4725   need_version=no
4726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4727   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4728   shlibpath_var=LD_LIBRARY_PATH
4729   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4730     case $host_os in
4731       openbsd2.[89] | openbsd2.[89].*)
4732         shlibpath_overrides_runpath=no
4733         ;;
4734       *)
4735         shlibpath_overrides_runpath=yes
4736         ;;
4737       esac
4738   else
4739     shlibpath_overrides_runpath=yes
4740   fi
4741   ;;
4742
4743 os2*)
4744   libname_spec='$name'
4745   shrext=".dll"
4746   need_lib_prefix=no
4747   library_names_spec='$libname${shared_ext} $libname.a'
4748   dynamic_linker='OS/2 ld.exe'
4749   shlibpath_var=LIBPATH
4750   ;;
4751
4752 osf3* | osf4* | osf5*)
4753   version_type=osf
4754   need_lib_prefix=no
4755   need_version=no
4756   soname_spec='${libname}${release}${shared_ext}$major'
4757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4758   shlibpath_var=LD_LIBRARY_PATH
4759   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4760   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4761   ;;
4762
4763 sco3.2v5*)
4764   version_type=osf
4765   soname_spec='${libname}${release}${shared_ext}$major'
4766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4767   shlibpath_var=LD_LIBRARY_PATH
4768   ;;
4769
4770 solaris*)
4771   version_type=linux
4772   need_lib_prefix=no
4773   need_version=no
4774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4775   soname_spec='${libname}${release}${shared_ext}$major'
4776   shlibpath_var=LD_LIBRARY_PATH
4777   shlibpath_overrides_runpath=yes
4778   hardcode_into_libs=yes
4779   # ldd complains unless libraries are executable
4780   postinstall_cmds='chmod +x $lib'
4781   ;;
4782
4783 sunos4*)
4784   version_type=sunos
4785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4786   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4787   shlibpath_var=LD_LIBRARY_PATH
4788   shlibpath_overrides_runpath=yes
4789   if test "$with_gnu_ld" = yes; then
4790     need_lib_prefix=no
4791   fi
4792   need_version=yes
4793   ;;
4794
4795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4796   version_type=linux
4797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4798   soname_spec='${libname}${release}${shared_ext}$major'
4799   shlibpath_var=LD_LIBRARY_PATH
4800   case $host_vendor in
4801     sni)
4802       shlibpath_overrides_runpath=no
4803       need_lib_prefix=no
4804       export_dynamic_flag_spec='${wl}-Blargedynsym'
4805       runpath_var=LD_RUN_PATH
4806       ;;
4807     siemens)
4808       need_lib_prefix=no
4809       ;;
4810     motorola)
4811       need_lib_prefix=no
4812       need_version=no
4813       shlibpath_overrides_runpath=no
4814       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4815       ;;
4816   esac
4817   ;;
4818
4819 sysv4*MP*)
4820   if test -d /usr/nec ;then
4821     version_type=linux
4822     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
4823     soname_spec='$libname${shared_ext}.$major'
4824     shlibpath_var=LD_LIBRARY_PATH
4825   fi
4826   ;;
4827
4828 uts4*)
4829   version_type=linux
4830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4831   soname_spec='${libname}${release}${shared_ext}$major'
4832   shlibpath_var=LD_LIBRARY_PATH
4833   ;;
4834
4835 *)
4836   dynamic_linker=no
4837   ;;
4838 esac
4839 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
4840 echo "${ECHO_T}$dynamic_linker" >&6
4841 test "$dynamic_linker" = no && can_build_shared=no
4842
4843
4844 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
4845 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
4846 if test "${libltdl_cv_shlibpath_var+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   libltdl_cv_shlibpath_var="$shlibpath_var"
4850 fi
4851 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
4852 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
4853 if test -n "$libltdl_cv_shlibpath_var"; then
4854
4855 cat >>confdefs.h <<_ACEOF
4856 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
4857 _ACEOF
4858
4859 fi
4860
4861 fi
4862
4863                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4864
4865
4866 # See if the user has requested runtime debugging.
4867 LIBGCJDEBUG="disable"
4868
4869 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4870 if test "${enable_libgcj_debug+set}" = set; then
4871   enableval="$enable_libgcj_debug"
4872   if test "$enable_libgcj_debug" = yes; then
4873
4874 cat >>confdefs.h <<\_ACEOF
4875 #define DEBUG 1
4876 _ACEOF
4877
4878     LIBGCJDEBUG="enable"
4879   fi
4880 fi;
4881
4882 # Determine which AWT peer libraries to build
4883 # Check whether --enable-java-awt or --disable-java-awt was given.
4884 if test "${enable_java_awt+set}" = set; then
4885   enableval="$enable_java_awt"
4886
4887 fi;
4888
4889 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4890 use_xlib_awt=""
4891 use_gtk_awt=""
4892 use_qt_awt=""
4893 # The default toolkit to use is the first one specified.
4894 TOOLKIT=
4895
4896
4897 for peer in $peerlibs ; do
4898   case $peer in
4899     xlib)
4900       if test "$no_x" = yes; then
4901         echo "*** xlib peers requested but no X library available" 1>&2
4902         exit 1
4903       else
4904         use_xlib_awt="yes"
4905         if test -z "$TOOLKIT"; then
4906            TOOLKIT=gnu.awt.xlib.XToolkit
4907         fi
4908       fi
4909       ;;
4910     gtk)
4911       if test "$no_x" = yes; then
4912          echo "*** gtk peers requested but no X library available" 1>&2
4913          exit 1
4914       else
4915          use_gtk_awt=yes
4916          if test -z "$TOOLKIT"; then
4917             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4918          fi
4919       fi
4920       ;;
4921     qt)
4922       if test "$no_x" = yes; then
4923          # Perhaps we should admit the possibility of embedded Qt.
4924          echo "*** Qt peers requested but no X library available" 1>&2
4925          exit 1
4926       else
4927          use_qt_awt=yes
4928          if test -z "$TOOLKIT"; then
4929             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
4930          fi
4931       fi
4932       ;;
4933     no)
4934       use_xlib_awt=
4935       use_gtk_awt=
4936       use_qt_awt=
4937       break
4938       ;;
4939     *)
4940       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4941       exit 1
4942   esac
4943 done
4944
4945
4946
4947 if test "$use_xlib_awt" = yes; then
4948   XLIB_AWT_TRUE=
4949   XLIB_AWT_FALSE='#'
4950 else
4951   XLIB_AWT_TRUE='#'
4952   XLIB_AWT_FALSE=
4953 fi
4954
4955
4956 # Create standard.omit based on decisions we just made.
4957 cp $srcdir/standard.omit.in standard.omit
4958 if test "$use_xlib_awt" != yes; then
4959    echo gnu/awt/xlib >> standard.omit
4960    echo gnu/gcj/xlib >> standard.omit
4961 fi
4962
4963 if test -z "${with_multisubdir}"; then
4964    builddotdot=.
4965 else
4966    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4967 fi
4968
4969 NATIVE=yes
4970
4971 # Which gcj do we use?
4972 which_gcj=default
4973 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4974 if test -n "${with_cross_host}"; then
4975   # We are being configured with a cross compiler. We can't
4976   # use ac_exeext, because that is for the target platform.
4977   NATIVE=no
4978   cross_host_exeext=
4979   case "${with_cross_host}" in
4980      *mingw* | *cygwin*)
4981          cross_host_exeext=.exe
4982      ;;
4983   esac
4984   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4985      if test x"$build_noncanonical" = x"$with_cross_host"; then
4986         # Ordinary cross (host!=target and host=build)
4987         which_gcj=built
4988      else
4989         # Canadian cross (host!=target and host!=build)
4990         which_gcj=cross
4991      fi
4992   else
4993      which_gcj=cross
4994   fi
4995 else
4996   # We are being configured with a native or crossed-native compiler
4997   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4998      if test x"$build" = x"$host"; then
4999         # True native build (host=target and host=build)
5000         which_gcj=built
5001      else
5002         # Crossed-native build (host=target and host!=build)
5003         which_gcj=cross
5004      fi
5005   else
5006      which_gcj=path
5007   fi
5008 fi
5009 case "${which_gcj}" in
5010    built)
5011       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5012       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5013    ;;
5014    cross)
5015       if test "x${with_newlib}" = "xyes"; then
5016          # FIXME (comment): Why is this needed?
5017          GCC_UNWIND_INCLUDE=
5018          GCJ="${target_noncanonical}-gcj"
5019       else
5020          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5021       fi
5022       GCJH='$(target_noncanonical)-gcjh'
5023    ;;
5024    path)
5025       GCJ="gcj -B`${PWDCMD-pwd}`/"
5026       GCJH=gcjh
5027    ;;
5028 esac
5029
5030
5031
5032 # Create it, so that compile/link tests don't fail
5033 test -f libgcj.spec || touch libgcj.spec
5034
5035
5036
5037 # Set up to configure Classpath.
5038 # FIXME: no supported way to pass args in autoconf.
5039 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5040 ac_configure_args="$ac_configure_args --enable-tool-wrappers"
5041 ac_configure_args="$ac_configure_args --disable-load-library"
5042 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5043 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5044 dir1=`cd $srcdir && pwd`
5045 dir2=`pwd`
5046 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5047 ac_configure_args="$ac_configure_args --disable-core-jni"
5048 ac_configure_args="$ac_configure_args --disable-examples"
5049 ac_configure_args="$ac_configure_args --with-glibj=build"
5050 if test "$plugin_enabled" != yes; then
5051   ac_configure_args="$ac_configure_args --disable-plugin"
5052 fi
5053 if test "$gconf_enabled" != yes; then
5054   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5055   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5056 fi
5057 if test "$use_gtk_awt" != yes; then
5058   ac_configure_args="$ac_configure_args --disable-gtk-peer"
5059 fi
5060 if test "$use_qt_awt" != yes; then
5061   ac_configure_args="$ac_configure_args --disable-qt-peer"
5062 else
5063   # We need this as qt is disabled by default in classpath.
5064   ac_configure_args="$ac_configure_args --enable-qt-peer"
5065 fi
5066
5067 # Only use libltdl for non-newlib builds.
5068 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5069      case $enable_ltdl_convenience in
5070   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5071 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5072    { (exit 1); exit 1; }; } ;;
5073   "") enable_ltdl_convenience=yes
5074       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5075   esac
5076   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5077   INCLTDL='-I${top_srcdir}/''libltdl'
5078
5079
5080    DIRLTDL=libltdl
5081
5082 cat >>confdefs.h <<\_ACEOF
5083 #define USE_LTDL 1
5084 _ACEOF
5085
5086    # Sigh.  Libtool's macro doesn't do the right thing.
5087    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5088    # FIXME: this is a hack.
5089    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5090    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5091 fi
5092
5093
5094
5095 # Check whether --enable-shared or --disable-shared was given.
5096 if test "${enable_shared+set}" = set; then
5097   enableval="$enable_shared"
5098   p=${PACKAGE-default}
5099 case $enableval in
5100 yes) enable_shared=yes ;;
5101 no) enable_shared=no ;;
5102 *)
5103   enable_shared=no
5104   # Look at the argument we got.  We use all the common list separators.
5105   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5106   for pkg in $enableval; do
5107     if test "X$pkg" = "X$p"; then
5108       enable_shared=yes
5109     fi
5110   done
5111   IFS="$ac_save_ifs"
5112   ;;
5113 esac
5114 else
5115   enable_shared=yes
5116 fi;
5117 # Check whether --enable-static or --disable-static was given.
5118 if test "${enable_static+set}" = set; then
5119   enableval="$enable_static"
5120   p=${PACKAGE-default}
5121 case $enableval in
5122 yes) enable_static=yes ;;
5123 no) enable_static=no ;;
5124 *)
5125   enable_static=no
5126   # Look at the argument we got.  We use all the common list separators.
5127   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5128   for pkg in $enableval; do
5129     if test "X$pkg" = "X$p"; then
5130       enable_static=yes
5131     fi
5132   done
5133   IFS="$ac_save_ifs"
5134   ;;
5135 esac
5136 else
5137   enable_static=yes
5138 fi;
5139 # Check whether --enable-fast-install or --disable-fast-install was given.
5140 if test "${enable_fast_install+set}" = set; then
5141   enableval="$enable_fast_install"
5142   p=${PACKAGE-default}
5143 case $enableval in
5144 yes) enable_fast_install=yes ;;
5145 no) enable_fast_install=no ;;
5146 *)
5147   enable_fast_install=no
5148   # Look at the argument we got.  We use all the common list separators.
5149   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5150   for pkg in $enableval; do
5151     if test "X$pkg" = "X$p"; then
5152       enable_fast_install=yes
5153     fi
5154   done
5155   IFS="$ac_save_ifs"
5156   ;;
5157 esac
5158 else
5159   enable_fast_install=yes
5160 fi;
5161
5162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5163 if test "${with_gnu_ld+set}" = set; then
5164   withval="$with_gnu_ld"
5165   test "$withval" = no || with_gnu_ld=yes
5166 else
5167   with_gnu_ld=no
5168 fi;
5169 ac_prog=ld
5170 if test "$GCC" = yes; then
5171   # Check if gcc -print-prog-name=ld gives a path.
5172   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5173 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5174   case $host in
5175   *-*-mingw*)
5176     # gcc leaves a trailing carriage return which upsets mingw
5177     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5178   *)
5179     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5180   esac
5181   case $ac_prog in
5182     # Accept absolute paths.
5183     [\\/]* | [A-Za-z]:[\\/]*)
5184       re_direlt='/[^/][^/]*/\.\./'
5185       # Canonicalize the path of ld
5186       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5187       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5188         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5189       done
5190       test -z "$LD" && LD="$ac_prog"
5191       ;;
5192   "")
5193     # If it fails, then pretend we aren't using GCC.
5194     ac_prog=ld
5195     ;;
5196   *)
5197     # If it is relative, then search for the first ld in PATH.
5198     with_gnu_ld=unknown
5199     ;;
5200   esac
5201 elif test "$with_gnu_ld" = yes; then
5202   echo "$as_me:$LINENO: checking for GNU ld" >&5
5203 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5204 else
5205   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5206 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5207 fi
5208 if test "${lt_cv_path_LD+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   if test -z "$LD"; then
5212   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5213   for ac_dir in $PATH; do
5214     test -z "$ac_dir" && ac_dir=.
5215     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5216       lt_cv_path_LD="$ac_dir/$ac_prog"
5217       # Check to see if the program is GNU ld.  I'd rather use --version,
5218       # but apparently some GNU ld's only accept -v.
5219       # Break only if it was the GNU/non-GNU ld that we prefer.
5220       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5221         test "$with_gnu_ld" != no && break
5222       else
5223         test "$with_gnu_ld" != yes && break
5224       fi
5225     fi
5226   done
5227   IFS="$ac_save_ifs"
5228 else
5229   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5230 fi
5231 fi
5232
5233 LD="$lt_cv_path_LD"
5234 if test -n "$LD"; then
5235   echo "$as_me:$LINENO: result: $LD" >&5
5236 echo "${ECHO_T}$LD" >&6
5237 else
5238   echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5240 fi
5241 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5242 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5243    { (exit 1); exit 1; }; }
5244 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5245 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5246 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 else
5249   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5250 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5251   lt_cv_prog_gnu_ld=yes
5252 else
5253   lt_cv_prog_gnu_ld=no
5254 fi
5255 fi
5256 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5257 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5258 with_gnu_ld=$lt_cv_prog_gnu_ld
5259
5260
5261 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5262 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5263 if test "${lt_cv_ld_reload_flag+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   lt_cv_ld_reload_flag='-r'
5267 fi
5268 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5269 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5270 reload_flag=$lt_cv_ld_reload_flag
5271 test -n "$reload_flag" && reload_flag=" $reload_flag"
5272
5273 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5274 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5275 if test "${lt_cv_path_NM+set}" = set; then
5276   echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278   if test -n "$NM"; then
5279   # Let the user override the test.
5280   lt_cv_path_NM="$NM"
5281 else
5282   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5283   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5284     test -z "$ac_dir" && ac_dir=.
5285     tmp_nm=$ac_dir/${ac_tool_prefix}nm
5286     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5287       # Check to see if the nm accepts a BSD-compat flag.
5288       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5289       #   nm: unknown option "B" ignored
5290       # Tru64's nm complains that /dev/null is an invalid object file
5291       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5292         lt_cv_path_NM="$tmp_nm -B"
5293         break
5294       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5295         lt_cv_path_NM="$tmp_nm -p"
5296         break
5297       else
5298         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5299         continue # so that we can try to find one that supports BSD flags
5300       fi
5301     fi
5302   done
5303   IFS="$ac_save_ifs"
5304   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5305 fi
5306 fi
5307
5308 NM="$lt_cv_path_NM"
5309 echo "$as_me:$LINENO: result: $NM" >&5
5310 echo "${ECHO_T}$NM" >&6
5311
5312 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5313 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
5314 if test "${lt_cv_deplibs_check_method+set}" = set; then
5315   echo $ECHO_N "(cached) $ECHO_C" >&6
5316 else
5317   lt_cv_file_magic_cmd='$MAGIC_CMD'
5318 lt_cv_file_magic_test_file=
5319 lt_cv_deplibs_check_method='unknown'
5320 # Need to set the preceding variable on all platforms that support
5321 # interlibrary dependencies.
5322 # 'none' -- dependencies not supported.
5323 # `unknown' -- same as none, but documents that we really don't know.
5324 # 'pass_all' -- all dependencies passed with no checks.
5325 # 'test_compile' -- check by making test program.
5326 # 'file_magic [regex]' -- check by looking for files in library path
5327 # which responds to the $file_magic_cmd with a given egrep regex.
5328 # If you have `file' or equivalent on your system and you're not sure
5329 # whether `pass_all' will *always* work, you probably want this one.
5330
5331 case $host_os in
5332 aix*)
5333   lt_cv_deplibs_check_method=pass_all
5334   ;;
5335
5336 beos*)
5337   lt_cv_deplibs_check_method=pass_all
5338   ;;
5339
5340 bsdi4*)
5341   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5342   lt_cv_file_magic_cmd='/usr/bin/file -L'
5343   lt_cv_file_magic_test_file=/shlib/libc.so
5344   ;;
5345
5346 cygwin* | mingw* |pw32*)
5347   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5348   lt_cv_file_magic_cmd='$OBJDUMP -f'
5349   ;;
5350
5351 darwin* | rhapsody*)
5352   # this will be overwritten by pass_all, but leave it in just in case
5353   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5354   lt_cv_file_magic_cmd='/usr/bin/file -L'
5355   case "$host_os" in
5356   rhapsody* | darwin1.012)
5357     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5358     ;;
5359   *) # Darwin 1.3 on
5360     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5361     ;;
5362   esac
5363   lt_cv_deplibs_check_method=pass_all
5364   ;;
5365
5366 freebsd* | kfreebsd*-gnu)
5367   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5368     case $host_cpu in
5369     i*86 )
5370       # Not sure whether the presence of OpenBSD here was a mistake.
5371       # Let's accept both of them until this is cleared up.
5372       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5373       lt_cv_file_magic_cmd=/usr/bin/file
5374       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5375       ;;
5376     esac
5377   else
5378     lt_cv_deplibs_check_method=pass_all
5379   fi
5380   ;;
5381
5382 gnu*)
5383   lt_cv_deplibs_check_method=pass_all
5384   ;;
5385
5386 hpux10.20*|hpux11*)
5387   case $host_cpu in
5388   hppa*)
5389     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5390     lt_cv_file_magic_cmd=/usr/bin/file
5391     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5392     ;;
5393   ia64*)
5394     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5395     lt_cv_file_magic_cmd=/usr/bin/file
5396     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5397     ;;
5398   esac
5399   ;;
5400
5401 irix5* | irix6*)
5402   case $host_os in
5403   irix5*)
5404     # this will be overridden with pass_all, but let us keep it just in case
5405     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
5406     ;;
5407   *)
5408     case $LD in
5409     *-32|*"-32 ") libmagic=32-bit;;
5410     *-n32|*"-n32 ") libmagic=N32;;
5411     *-64|*"-64 ") libmagic=64-bit;;
5412     *) libmagic=never-match;;
5413     esac
5414     # this will be overridden with pass_all, but let us keep it just in case
5415     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
5416     ;;
5417   esac
5418   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
5419   lt_cv_deplibs_check_method=pass_all
5420   ;;
5421
5422 # This must be Linux ELF.
5423 linux-gnu*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5426
5427 netbsd* | knetbsd*-gnu)
5428   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5429     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
5430   else
5431     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
5432   fi
5433   ;;
5434
5435 newsos6)
5436   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5437   lt_cv_file_magic_cmd=/usr/bin/file
5438   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5439   ;;
5440
5441 osf3* | osf4* | osf5*)
5442   # this will be overridden with pass_all, but let us keep it just in case
5443   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
5444   lt_cv_file_magic_test_file=/shlib/libc.so
5445   lt_cv_deplibs_check_method=pass_all
5446   ;;
5447
5448 sco3.2v5*)
5449   lt_cv_deplibs_check_method=pass_all
5450   ;;
5451
5452 solaris*)
5453   lt_cv_deplibs_check_method=pass_all
5454   lt_cv_file_magic_test_file=/lib/libc.so
5455   ;;
5456
5457 sysv5uw[78]* | sysv4*uw2*)
5458   lt_cv_deplibs_check_method=pass_all
5459   ;;
5460
5461 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5462   case $host_vendor in
5463   ncr)
5464     lt_cv_deplibs_check_method=pass_all
5465     ;;
5466   motorola)
5467     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]'
5468     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5469     ;;
5470   esac
5471   ;;
5472 esac
5473
5474 fi
5475 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5476 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5477 file_magic_cmd=$lt_cv_file_magic_cmd
5478 deplibs_check_method=$lt_cv_deplibs_check_method
5479
5480
5481
5482
5483 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5484
5485 # find the maximum length of command line arguments
5486 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5487 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5488 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491     i=0
5492   teststring="ABCD"
5493
5494   case $build_os in
5495   msdosdjgpp*)
5496     # On DJGPP, this test can blow up pretty badly due to problems in libc
5497     # (any single argument exceeding 2000 bytes causes a buffer overrun
5498     # during glob expansion).  Even if it were fixed, the result of this
5499     # check would be larger than it should be.
5500     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5501     ;;
5502
5503   cygwin* | mingw*)
5504     # On Win9x/ME, this test blows up -- it succeeds, but takes
5505     # about 5 minutes as the teststring grows exponentially.
5506     # Worse, since 9x/ME are not pre-emptively multitasking,
5507     # you end up with a "frozen" computer, even though with patience
5508     # the test eventually succeeds (with a max line length of 256k).
5509     # Instead, let's just punt: use the minimum linelength reported by
5510     # all of the supported platforms: 8192 (on NT/2K/XP).
5511     lt_cv_sys_max_cmd_len=8192;
5512     ;;
5513
5514   amigaos*)
5515     # On AmigaOS with pdksh, this test takes hours, literally.
5516     # So we just punt and use a minimum line length of 8192.
5517     lt_cv_sys_max_cmd_len=8192;
5518     ;;
5519
5520   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5521     # This has been around since 386BSD, at least.  Likely further.
5522     if test -x /sbin/sysctl; then
5523       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5524     elif test -x /usr/sbin/sysctl; then
5525       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5526     else
5527       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5528     fi
5529     # And add a safety zone
5530     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5531     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5532     ;;
5533   esac
5534
5535 fi
5536
5537 if test -n "$lt_cv_sys_max_cmd_len" ; then
5538   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5540 else
5541   echo "$as_me:$LINENO: result: none" >&5
5542 echo "${ECHO_T}none" >&6
5543 fi
5544
5545
5546 # Only perform the check for file, if the check method requires it
5547 case $deplibs_check_method in
5548 file_magic*)
5549   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5550     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5551 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5552 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5553   echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555   case $MAGIC_CMD in
5556   /*)
5557   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5558   ;;
5559   ?:/*)
5560   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5561   ;;
5562   *)
5563   ac_save_MAGIC_CMD="$MAGIC_CMD"
5564   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5565   ac_dummy="/usr/bin:$PATH"
5566   for ac_dir in $ac_dummy; do
5567     test -z "$ac_dir" && ac_dir=.
5568     if test -f $ac_dir/${ac_tool_prefix}file; then
5569       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5570       if test -n "$file_magic_test_file"; then
5571         case $deplibs_check_method in
5572         "file_magic "*)
5573           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5574           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5575           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5576             egrep "$file_magic_regex" > /dev/null; then
5577             :
5578           else
5579             cat <<EOF 1>&2
5580
5581 *** Warning: the command libtool uses to detect shared libraries,
5582 *** $file_magic_cmd, produces output that libtool cannot recognize.
5583 *** The result is that libtool may fail to recognize shared libraries
5584 *** as such.  This will affect the creation of libtool libraries that
5585 *** depend on shared libraries, but programs linked with such libtool
5586 *** libraries will work regardless of this problem.  Nevertheless, you
5587 *** may want to report the problem to your system manager and/or to
5588 *** bug-libtool@gnu.org
5589
5590 EOF
5591           fi ;;
5592         esac
5593       fi
5594       break
5595     fi
5596   done
5597   IFS="$ac_save_ifs"
5598   MAGIC_CMD="$ac_save_MAGIC_CMD"
5599   ;;
5600 esac
5601 fi
5602
5603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5604 if test -n "$MAGIC_CMD"; then
5605   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5606 echo "${ECHO_T}$MAGIC_CMD" >&6
5607 else
5608   echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6
5610 fi
5611
5612 if test -z "$lt_cv_path_MAGIC_CMD"; then
5613   if test -n "$ac_tool_prefix"; then
5614     echo "$as_me:$LINENO: checking for file" >&5
5615 echo $ECHO_N "checking for file... $ECHO_C" >&6
5616 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   case $MAGIC_CMD in
5620   /*)
5621   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5622   ;;
5623   ?:/*)
5624   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5625   ;;
5626   *)
5627   ac_save_MAGIC_CMD="$MAGIC_CMD"
5628   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
5629   ac_dummy="/usr/bin:$PATH"
5630   for ac_dir in $ac_dummy; do
5631     test -z "$ac_dir" && ac_dir=.
5632     if test -f $ac_dir/file; then
5633       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5634       if test -n "$file_magic_test_file"; then
5635         case $deplibs_check_method in
5636         "file_magic "*)
5637           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5638           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5639           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5640             egrep "$file_magic_regex" > /dev/null; then
5641             :
5642           else
5643             cat <<EOF 1>&2
5644
5645 *** Warning: the command libtool uses to detect shared libraries,
5646 *** $file_magic_cmd, produces output that libtool cannot recognize.
5647 *** The result is that libtool may fail to recognize shared libraries
5648 *** as such.  This will affect the creation of libtool libraries that
5649 *** depend on shared libraries, but programs linked with such libtool
5650 *** libraries will work regardless of this problem.  Nevertheless, you
5651 *** may want to report the problem to your system manager and/or to
5652 *** bug-libtool@gnu.org
5653
5654 EOF
5655           fi ;;
5656         esac
5657       fi
5658       break
5659     fi
5660   done
5661   IFS="$ac_save_ifs"
5662   MAGIC_CMD="$ac_save_MAGIC_CMD"
5663   ;;
5664 esac
5665 fi
5666
5667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5668 if test -n "$MAGIC_CMD"; then
5669   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5670 echo "${ECHO_T}$MAGIC_CMD" >&6
5671 else
5672   echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6
5674 fi
5675
5676   else
5677     MAGIC_CMD=:
5678   fi
5679 fi
5680
5681   fi
5682   ;;
5683 esac
5684
5685 if test -n "$ac_tool_prefix"; then
5686   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_prog_RANLIB+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   if test -n "$RANLIB"; then
5694   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5695 else
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 for as_dir in $PATH
5698 do
5699   IFS=$as_save_IFS
5700   test -z "$as_dir" && as_dir=.
5701   for ac_exec_ext in '' $ac_executable_extensions; do
5702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5705     break 2
5706   fi
5707 done
5708 done
5709
5710 fi
5711 fi
5712 RANLIB=$ac_cv_prog_RANLIB
5713 if test -n "$RANLIB"; then
5714   echo "$as_me:$LINENO: result: $RANLIB" >&5
5715 echo "${ECHO_T}$RANLIB" >&6
5716 else
5717   echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6
5719 fi
5720
5721 fi
5722 if test -z "$ac_cv_prog_RANLIB"; then
5723   ac_ct_RANLIB=$RANLIB
5724   # Extract the first word of "ranlib", so it can be a program name with args.
5725 set dummy ranlib; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   if test -n "$ac_ct_RANLIB"; then
5732   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737   IFS=$as_save_IFS
5738   test -z "$as_dir" && as_dir=.
5739   for ac_exec_ext in '' $ac_executable_extensions; do
5740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741     ac_cv_prog_ac_ct_RANLIB="ranlib"
5742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5743     break 2
5744   fi
5745 done
5746 done
5747
5748   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5749 fi
5750 fi
5751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5752 if test -n "$ac_ct_RANLIB"; then
5753   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5754 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5755 else
5756   echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5758 fi
5759
5760   RANLIB=$ac_ct_RANLIB
5761 else
5762   RANLIB="$ac_cv_prog_RANLIB"
5763 fi
5764
5765 if test -n "$ac_tool_prefix"; then
5766   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5767 set dummy ${ac_tool_prefix}strip; ac_word=$2
5768 echo "$as_me:$LINENO: checking for $ac_word" >&5
5769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5770 if test "${ac_cv_prog_STRIP+set}" = set; then
5771   echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773   if test -n "$STRIP"; then
5774   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5775 else
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_exec_ext in '' $ac_executable_extensions; do
5782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5783     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788 done
5789
5790 fi
5791 fi
5792 STRIP=$ac_cv_prog_STRIP
5793 if test -n "$STRIP"; then
5794   echo "$as_me:$LINENO: result: $STRIP" >&5
5795 echo "${ECHO_T}$STRIP" >&6
5796 else
5797   echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6
5799 fi
5800
5801 fi
5802 if test -z "$ac_cv_prog_STRIP"; then
5803   ac_ct_STRIP=$STRIP
5804   # Extract the first word of "strip", so it can be a program name with args.
5805 set dummy strip; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   if test -n "$ac_ct_STRIP"; then
5812   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821     ac_cv_prog_ac_ct_STRIP="strip"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827
5828   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5829 fi
5830 fi
5831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5832 if test -n "$ac_ct_STRIP"; then
5833   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5834 echo "${ECHO_T}$ac_ct_STRIP" >&6
5835 else
5836   echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6
5838 fi
5839
5840   STRIP=$ac_ct_STRIP
5841 else
5842   STRIP="$ac_cv_prog_STRIP"
5843 fi
5844
5845
5846 # Check for any special flags to pass to ltconfig.
5847 libtool_flags="--cache-file=$cache_file"
5848 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
5849 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
5850 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
5851 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
5852 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
5853
5854
5855 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5856 if test "${enable_libtool_lock+set}" = set; then
5857   enableval="$enable_libtool_lock"
5858
5859 fi;
5860 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5861 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5862
5863
5864 # Check whether --with-pic or --without-pic was given.
5865 if test "${with_pic+set}" = set; then
5866   withval="$with_pic"
5867   pic_mode="$withval"
5868 else
5869   pic_mode=default
5870 fi;
5871 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5872 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5873
5874 # Some flags need to be propagated to the compiler or linker for good
5875 # libtool support.
5876 case $host in
5877 *-*-irix6*)
5878   # Find out which ABI we are using.
5879   echo '#line 5879 "configure"' > conftest.$ac_ext
5880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; then
5885    if test "$lt_cv_prog_gnu_ld" = yes; then
5886     case `/usr/bin/file conftest.$ac_objext` in
5887     *32-bit*)
5888       LD="${LD-ld} -melf32bsmip"
5889       ;;
5890     *N32*)
5891       LD="${LD-ld} -melf32bmipn32"
5892       ;;
5893     *64-bit*)
5894       LD="${LD-ld} -melf64bmip"
5895       ;;
5896     esac
5897    else
5898     case `/usr/bin/file conftest.$ac_objext` in
5899     *32-bit*)
5900       LD="${LD-ld} -32"
5901       ;;
5902     *N32*)
5903       LD="${LD-ld} -n32"
5904       ;;
5905     *64-bit*)
5906       LD="${LD-ld} -64"
5907       ;;
5908     esac
5909    fi
5910   fi
5911   rm -rf conftest*
5912   ;;
5913
5914 ia64-*-hpux*)
5915   # Find out which ABI we are using.
5916   echo 'int i;' > conftest.$ac_ext
5917   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918   (eval $ac_compile) 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; then
5922     case "`/usr/bin/file conftest.o`" in
5923     *ELF-32*)
5924       HPUX_IA64_MODE="32"
5925       ;;
5926     *ELF-64*)
5927       HPUX_IA64_MODE="64"
5928       ;;
5929     esac
5930   fi
5931   rm -rf conftest*
5932   ;;
5933
5934 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5935   # Find out which ABI we are using.
5936   echo 'int i;' > conftest.$ac_ext
5937   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; then
5942     case "`/usr/bin/file conftest.o`" in
5943     *32-bit*)
5944       case $host in
5945         x86_64-*linux*)
5946           LD="${LD-ld} -m elf_i386"
5947           ;;
5948         ppc64-*linux*|powerpc64-*linux*)
5949           LD="${LD-ld} -m elf32ppclinux"
5950           ;;
5951         s390x-*linux*)
5952           LD="${LD-ld} -m elf_s390"
5953           ;;
5954         sparc64-*linux*)
5955           LD="${LD-ld} -m elf32_sparc"
5956           ;;
5957       esac
5958       ;;
5959     *64-bit*)
5960       case $host in
5961         x86_64-*linux*)
5962           LD="${LD-ld} -m elf_x86_64"
5963           ;;
5964         ppc*-*linux*|powerpc*-*linux*)
5965           LD="${LD-ld} -m elf64ppc"
5966           ;;
5967         s390*-*linux*)
5968           LD="${LD-ld} -m elf64_s390"
5969           ;;
5970         sparc*-*linux*)
5971           LD="${LD-ld} -m elf64_sparc"
5972           ;;
5973       esac
5974       ;;
5975     esac
5976   fi
5977   rm -rf conftest*
5978   ;;
5979
5980 *-*-sco3.2v5*)
5981   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5982   SAVE_CFLAGS="$CFLAGS"
5983   CFLAGS="$CFLAGS -belf"
5984   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5985 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5986 if test "${lt_cv_cc_needs_belf+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989
5990
5991      ac_ext=c
5992 ac_cpp='$CPP $CPPFLAGS'
5993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5996
5997      if test x$gcc_no_link = xyes; then
5998   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6000    { (exit 1); exit 1; }; }
6001 fi
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008
6009 int
6010 main ()
6011 {
6012
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019   (eval $ac_link) 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } &&
6026          { ac_try='test -z "$ac_c_werror_flag"
6027                          || test ! -s conftest.err'
6028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029   (eval $ac_try) 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest$ac_exeext'
6034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035   (eval $ac_try) 2>&5
6036   ac_status=$?
6037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038   (exit $ac_status); }; }; then
6039   lt_cv_cc_needs_belf=yes
6040 else
6041   echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.$ac_ext >&5
6043
6044 lt_cv_cc_needs_belf=no
6045 fi
6046 rm -f conftest.err conftest.$ac_objext \
6047       conftest$ac_exeext conftest.$ac_ext
6048      ac_ext=c
6049 ac_cpp='$CPP $CPPFLAGS'
6050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6053
6054 fi
6055 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6056 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6057   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6058     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6059     CFLAGS="$SAVE_CFLAGS"
6060   fi
6061   ;;
6062
6063
6064 esac
6065
6066
6067 # Save cache, so that ltconfig can load it
6068 cat >confcache <<\_ACEOF
6069 # This file is a shell script that caches the results of configure
6070 # tests run on this system so they can be shared between configure
6071 # scripts and configure runs, see configure's option --config-cache.
6072 # It is not useful on other systems.  If it contains results you don't
6073 # want to keep, you may remove or edit it.
6074 #
6075 # config.status only pays attention to the cache file if you give it
6076 # the --recheck option to rerun configure.
6077 #
6078 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6079 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6080 # following values.
6081
6082 _ACEOF
6083
6084 # The following way of writing the cache mishandles newlines in values,
6085 # but we know of no workaround that is simple, portable, and efficient.
6086 # So, don't put newlines in cache variables' values.
6087 # Ultrix sh set writes to stderr and can't be redirected directly,
6088 # and sets the high bit in the cache file unless we assign to the vars.
6089 {
6090   (set) 2>&1 |
6091     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6092     *ac_space=\ *)
6093       # `set' does not quote correctly, so add quotes (double-quote
6094       # substitution turns \\\\ into \\, and sed turns \\ into \).
6095       sed -n \
6096         "s/'/'\\\\''/g;
6097           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6098       ;;
6099     *)
6100       # `set' quotes correctly as required by POSIX, so do not add quotes.
6101       sed -n \
6102         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6103       ;;
6104     esac;
6105 } |
6106   sed '
6107      t clear
6108      : clear
6109      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6110      t end
6111      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6112      : end' >>confcache
6113 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6114   if test -w $cache_file; then
6115     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6116     cat confcache >$cache_file
6117   else
6118     echo "not updating unwritable cache $cache_file"
6119   fi
6120 fi
6121 rm -f confcache
6122
6123 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
6124 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6125 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6126 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6127 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6128 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6129 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6130 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6131 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6132 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6133 echo "$as_me: error: libtool configure failed" >&2;}
6134    { (exit 1); exit 1; }; }
6135
6136 # Reload cache, that may have been modified by ltconfig
6137 if test -r "$cache_file"; then
6138   # Some versions of bash will fail to source /dev/null (special
6139   # files actually), so we avoid doing that.
6140   if test -f "$cache_file"; then
6141     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6142 echo "$as_me: loading cache $cache_file" >&6;}
6143     case $cache_file in
6144       [\\/]* | ?:[\\/]* ) . $cache_file;;
6145       *)                      . ./$cache_file;;
6146     esac
6147   fi
6148 else
6149   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6150 echo "$as_me: creating cache $cache_file" >&6;}
6151   >$cache_file
6152 fi
6153
6154
6155 # This can be used to rebuild libtool when needed
6156 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6157
6158 # Always use our own libtool.
6159 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6160
6161 # Redirect the config.log output again, so that the ltconfig log is not
6162 # clobbered by the next message.
6163 exec 5>>./config.log
6164
6165 ac_ext=cc
6166 ac_cpp='$CXXCPP $CPPFLAGS'
6167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6170 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6171 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6172 if test -z "$CXXCPP"; then
6173   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176       # Double quotes because CXXCPP needs to be expanded
6177     for CXXCPP in "$CXX -E" "/lib/cpp"
6178     do
6179       ac_preproc_ok=false
6180 for ac_cxx_preproc_warn_flag in '' yes
6181 do
6182   # Use a header file that comes with gcc, so configuring glibc
6183   # with a fresh cross-compiler works.
6184   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6185   # <limits.h> exists even on freestanding compilers.
6186   # On the NeXT, cc -E runs the code through the compiler's parser,
6187   # not just through cpp. "Syntax error" is here to catch this case.
6188   cat >conftest.$ac_ext <<_ACEOF
6189 /* confdefs.h.  */
6190 _ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h.  */
6194 #ifdef __STDC__
6195 # include <limits.h>
6196 #else
6197 # include <assert.h>
6198 #endif
6199                      Syntax error
6200 _ACEOF
6201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6203   ac_status=$?
6204   grep -v '^ *+' conftest.er1 >conftest.err
6205   rm -f conftest.er1
6206   cat conftest.err >&5
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } >/dev/null; then
6209   if test -s conftest.err; then
6210     ac_cpp_err=$ac_cxx_preproc_warn_flag
6211     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6212   else
6213     ac_cpp_err=
6214   fi
6215 else
6216   ac_cpp_err=yes
6217 fi
6218 if test -z "$ac_cpp_err"; then
6219   :
6220 else
6221   echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6223
6224   # Broken: fails on valid input.
6225 continue
6226 fi
6227 rm -f conftest.err conftest.$ac_ext
6228
6229   # OK, works on sane cases.  Now check whether non-existent headers
6230   # can be detected and how.
6231   cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237 #include <ac_nonexistent.h>
6238 _ACEOF
6239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } >/dev/null; then
6247   if test -s conftest.err; then
6248     ac_cpp_err=$ac_cxx_preproc_warn_flag
6249     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6250   else
6251     ac_cpp_err=
6252   fi
6253 else
6254   ac_cpp_err=yes
6255 fi
6256 if test -z "$ac_cpp_err"; then
6257   # Broken: success on invalid input.
6258 continue
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263   # Passes both tests.
6264 ac_preproc_ok=:
6265 break
6266 fi
6267 rm -f conftest.err conftest.$ac_ext
6268
6269 done
6270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6271 rm -f conftest.err conftest.$ac_ext
6272 if $ac_preproc_ok; then
6273   break
6274 fi
6275
6276     done
6277     ac_cv_prog_CXXCPP=$CXXCPP
6278
6279 fi
6280   CXXCPP=$ac_cv_prog_CXXCPP
6281 else
6282   ac_cv_prog_CXXCPP=$CXXCPP
6283 fi
6284 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6285 echo "${ECHO_T}$CXXCPP" >&6
6286 ac_preproc_ok=false
6287 for ac_cxx_preproc_warn_flag in '' yes
6288 do
6289   # Use a header file that comes with gcc, so configuring glibc
6290   # with a fresh cross-compiler works.
6291   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6292   # <limits.h> exists even on freestanding compilers.
6293   # On the NeXT, cc -E runs the code through the compiler's parser,
6294   # not just through cpp. "Syntax error" is here to catch this case.
6295   cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301 #ifdef __STDC__
6302 # include <limits.h>
6303 #else
6304 # include <assert.h>
6305 #endif
6306                      Syntax error
6307 _ACEOF
6308 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6309   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } >/dev/null; then
6316   if test -s conftest.err; then
6317     ac_cpp_err=$ac_cxx_preproc_warn_flag
6318     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6319   else
6320     ac_cpp_err=
6321   fi
6322 else
6323   ac_cpp_err=yes
6324 fi
6325 if test -z "$ac_cpp_err"; then
6326   :
6327 else
6328   echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6330
6331   # Broken: fails on valid input.
6332 continue
6333 fi
6334 rm -f conftest.err conftest.$ac_ext
6335
6336   # OK, works on sane cases.  Now check whether non-existent headers
6337   # can be detected and how.
6338   cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h.  */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h.  */
6344 #include <ac_nonexistent.h>
6345 _ACEOF
6346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6347   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348   ac_status=$?
6349   grep -v '^ *+' conftest.er1 >conftest.err
6350   rm -f conftest.er1
6351   cat conftest.err >&5
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); } >/dev/null; then
6354   if test -s conftest.err; then
6355     ac_cpp_err=$ac_cxx_preproc_warn_flag
6356     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6357   else
6358     ac_cpp_err=
6359   fi
6360 else
6361   ac_cpp_err=yes
6362 fi
6363 if test -z "$ac_cpp_err"; then
6364   # Broken: success on invalid input.
6365 continue
6366 else
6367   echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370   # Passes both tests.
6371 ac_preproc_ok=:
6372 break
6373 fi
6374 rm -f conftest.err conftest.$ac_ext
6375
6376 done
6377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6378 rm -f conftest.err conftest.$ac_ext
6379 if $ac_preproc_ok; then
6380   :
6381 else
6382   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6383 See \`config.log' for more details." >&5
6384 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6385 See \`config.log' for more details." >&2;}
6386    { (exit 1); exit 1; }; }
6387 fi
6388
6389 ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395
6396
6397 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
6398 lt_save_CC="$CC"
6399 lt_save_CFLAGS="$CFLAGS"
6400 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
6401 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6402 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6403 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6404 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6405 deplibs_check_method="$deplibs_check_method" \
6406 file_magic_cmd="$file_magic_cmd" \
6407 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6408 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
6409 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6410 echo "$as_me: error: libtool tag configuration failed" >&2;}
6411    { (exit 1); exit 1; }; }
6412 CC="$lt_save_CC"
6413 CFLAGS="$lt_save_CFLAGS"
6414
6415 # Redirect the config.log output again, so that the ltconfig log is not
6416 # clobbered by the next message.
6417 exec 5>>./config.log
6418
6419
6420
6421
6422
6423
6424
6425 for ac_prog in gcj
6426 do
6427   # Extract the first word of "$ac_prog", so it can be a program name with args.
6428 set dummy $ac_prog; ac_word=$2
6429 echo "$as_me:$LINENO: checking for $ac_word" >&5
6430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6431 if test "${ac_cv_prog_GCJ+set}" = set; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 else
6434   if test -n "$GCJ"; then
6435   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
6436 else
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 for as_dir in $PATH
6439 do
6440   IFS=$as_save_IFS
6441   test -z "$as_dir" && as_dir=.
6442   for ac_exec_ext in '' $ac_executable_extensions; do
6443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6444     ac_cv_prog_GCJ="$ac_prog"
6445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446     break 2
6447   fi
6448 done
6449 done
6450
6451 fi
6452 fi
6453 GCJ=$ac_cv_prog_GCJ
6454 if test -n "$GCJ"; then
6455   echo "$as_me:$LINENO: result: $GCJ" >&5
6456 echo "${ECHO_T}$GCJ" >&6
6457 else
6458   echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6
6460 fi
6461
6462   test -n "$GCJ" && break
6463 done
6464 test -n "$GCJ" || GCJ="gcj"
6465
6466 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
6467 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
6468    { (exit 1); exit 1; }; }
6469 if test "x${GCJFLAGS-unset}" = xunset; then
6470    GCJFLAGS="-g -O2"
6471 fi
6472
6473
6474 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
6475
6476 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6477 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6478 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6482   # We make a subdir and do the tests there.  Otherwise we can end up
6483   # making bogus files that we don't know about and never remove.  For
6484   # instance it was reported that on HP-UX the gcc test will end up
6485   # making a dummy file named `D' -- because `-MD' means `put the output
6486   # in D'.
6487   mkdir conftest.dir
6488   # Copy depcomp to subdir because otherwise we won't find it if we're
6489   # using a relative directory.
6490   cp "$am_depcomp" conftest.dir
6491   cd conftest.dir
6492   # We will build objects and dependencies in a subdirectory because
6493   # it helps to detect inapplicable dependency modes.  For instance
6494   # both Tru64's cc and ICC support -MD to output dependencies as a
6495   # side effect of compilation, but ICC will put the dependencies in
6496   # the current directory while Tru64 will put them in the object
6497   # directory.
6498   mkdir sub
6499
6500   am_cv_GCJ_dependencies_compiler_type=none
6501   if test "$am_compiler_list" = ""; then
6502      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6503   fi
6504   for depmode in $am_compiler_list; do
6505     # Setup a source with many dependencies, because some compilers
6506     # like to wrap large dependency lists on column 80 (with \), and
6507     # we should not choose a depcomp mode which is confused by this.
6508     #
6509     # We need to recreate these files for each test, as the compiler may
6510     # overwrite some of them when testing with obscure command lines.
6511     # This happens at least with the AIX C compiler.
6512     : > sub/conftest.c
6513     for i in 1 2 3 4 5 6; do
6514       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6515       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6516       # Solaris 8's {/usr,}/bin/sh.
6517       touch sub/conftst$i.h
6518     done
6519     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6520
6521     case $depmode in
6522     nosideeffect)
6523       # after this tag, mechanisms are not by side-effect, so they'll
6524       # only be used when explicitly requested
6525       if test "x$enable_dependency_tracking" = xyes; then
6526         continue
6527       else
6528         break
6529       fi
6530       ;;
6531     none) break ;;
6532     esac
6533     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6534     # mode.  It turns out that the SunPro C++ compiler does not properly
6535     # handle `-M -o', and we need to detect this.
6536     if depmode=$depmode \
6537        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6538        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6539        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6540          >/dev/null 2>conftest.err &&
6541        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6542        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6543        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6544       # icc doesn't choke on unknown options, it will just issue warnings
6545       # or remarks (even with -Werror).  So we grep stderr for any message
6546       # that says an option was ignored or not supported.
6547       # When given -MP, icc 7.0 and 7.1 complain thusly:
6548       #   icc: Command line warning: ignoring option '-M'; no argument required
6549       # The diagnosis changed in icc 8.0:
6550       #   icc: Command line remark: option '-MP' not supported
6551       if (grep 'ignoring option' conftest.err ||
6552           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6553         am_cv_GCJ_dependencies_compiler_type=$depmode
6554         break
6555       fi
6556     fi
6557   done
6558
6559   cd ..
6560   rm -rf conftest.dir
6561 else
6562   am_cv_GCJ_dependencies_compiler_type=none
6563 fi
6564
6565 fi
6566 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
6567 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
6568 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
6569
6570
6571
6572 if
6573   test "x$enable_dependency_tracking" != xno \
6574   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
6575   am__fastdepGCJ_TRUE=
6576   am__fastdepGCJ_FALSE='#'
6577 else
6578   am__fastdepGCJ_TRUE='#'
6579   am__fastdepGCJ_FALSE=
6580 fi
6581
6582
6583
6584
6585 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
6586 lt_save_CC="$CC"
6587 lt_save_CFLAGS="$CFLAGS"
6588 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
6589 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6590 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6591 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6592 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6593 deplibs_check_method="$deplibs_check_method" \
6594 file_magic_cmd="$file_magic_cmd" \
6595 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
6596 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
6597 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
6598 echo "$as_me: error: libtool tag configuration failed" >&2;}
6599    { (exit 1); exit 1; }; }
6600 CC="$lt_save_CC"
6601 CFLAGS="$lt_save_CFLAGS"
6602
6603 # Redirect the config.log output again, so that the ltconfig log is not
6604 # clobbered by the next message.
6605 exec 5>>./config.log
6606
6607
6608
6609 if test "x$CC" != xcc; then
6610   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6611 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
6612 else
6613   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6614 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
6615 fi
6616 set dummy $CC; ac_cc=`echo $2 |
6617                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6618 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627
6628 int
6629 main ()
6630 {
6631
6632   ;
6633   return 0;
6634 }
6635 _ACEOF
6636 # Make sure it works both with $CC and with simple cc.
6637 # We do the test twice because some compilers refuse to overwrite an
6638 # existing .o file with -o, though they will create one.
6639 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6640 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); } &&
6645    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); };
6650 then
6651   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6652   if test "x$CC" != xcc; then
6653     # Test first that cc exists at all.
6654     if { ac_try='cc -c conftest.$ac_ext >&5'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
6661       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); } &&
6666          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6667   (eval $ac_try) 2>&5
6668   ac_status=$?
6669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670   (exit $ac_status); };
6671       then
6672         # cc works too.
6673         :
6674       else
6675         # cc exists but doesn't like -o.
6676         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6677       fi
6678     fi
6679   fi
6680 else
6681   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6682 fi
6683 rm -f conftest*
6684
6685 fi
6686 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
6687   echo "$as_me:$LINENO: result: yes" >&5
6688 echo "${ECHO_T}yes" >&6
6689 else
6690   echo "$as_me:$LINENO: result: no" >&5
6691 echo "${ECHO_T}no" >&6
6692
6693 cat >>confdefs.h <<\_ACEOF
6694 #define NO_MINUS_C_MINUS_O 1
6695 _ACEOF
6696
6697 fi
6698
6699 # FIXME: we rely on the cache variable name because
6700 # there is no other way.
6701 set dummy $CC
6702 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6703 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6704    # Losing compiler, so override with the script.
6705    # FIXME: It is wrong to rewrite CC.
6706    # But if we don't then we get into trouble of one sort or another.
6707    # A longer-term fix would be to have automake use am__CC in this case,
6708    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6709    CC="$am_aux_dir/compile $CC"
6710 fi
6711
6712
6713
6714
6715 subdirs="$subdirs classpath libltdl"
6716
6717
6718 # The -no-testsuite modules omit the test subdir.
6719
6720
6721 if test -d $srcdir/testsuite; then
6722   TESTSUBDIR_TRUE=
6723   TESTSUBDIR_FALSE='#'
6724 else
6725   TESTSUBDIR_TRUE='#'
6726   TESTSUBDIR_FALSE=
6727 fi
6728
6729
6730 # Should the runtime set system properties by examining the
6731 # environment variable GCJ_PROPERTIES?
6732 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
6733 if test "${enable_getenv_properties+set}" = set; then
6734   enableval="$enable_getenv_properties"
6735
6736 fi;
6737
6738 # Whether GCJ_PROPERTIES is used depends on the target.
6739 if test -z "$enable_getenv_properties"; then
6740    enable_getenv_properties=${enable_getenv_properties_default-yes}
6741 fi
6742 if test "$enable_getenv_properties" = no; then
6743
6744 cat >>confdefs.h <<\_ACEOF
6745 #define DISABLE_GETENV_PROPERTIES 1
6746 _ACEOF
6747
6748 fi
6749
6750 # Whether we should use arguments to main()
6751 if test -z "$enable_main_args"; then
6752    enable_main_args=${enable_main_args_default-yes}
6753 fi
6754 if test "$enable_main_args" = no; then
6755
6756 cat >>confdefs.h <<\_ACEOF
6757 #define DISABLE_MAIN_ARGS 1
6758 _ACEOF
6759
6760 fi
6761
6762
6763 # Should we use hashtable-based synchronization?
6764 # Currently works only for Linux X86/ia64
6765 # Typically faster and more space-efficient
6766 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
6767 if test "${enable_hash_synchronization+set}" = set; then
6768   enableval="$enable_hash_synchronization"
6769
6770 fi;
6771
6772 if test -z "$enable_hash_synchronization"; then
6773    enable_hash_synchronization=$enable_hash_synchronization_default
6774 fi
6775
6776
6777 # Check whether --with-java-home or --without-java-home was given.
6778 if test "${with_java_home+set}" = set; then
6779   withval="$with_java_home"
6780   JAVA_HOME="${withval}"
6781 else
6782   JAVA_HOME=""
6783 fi;
6784
6785
6786 if test ! -z "$JAVA_HOME"; then
6787   JAVA_HOME_SET_TRUE=
6788   JAVA_HOME_SET_FALSE='#'
6789 else
6790   JAVA_HOME_SET_TRUE='#'
6791   JAVA_HOME_SET_FALSE=
6792 fi
6793
6794
6795
6796 # What is the native OS API for MinGW?
6797
6798 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
6799 if test "${with_win32_nlsapi+set}" = set; then
6800   withval="$with_win32_nlsapi"
6801   case "${withval}" in
6802   ansi) with_win32_nlsapi=ansi ;;
6803   unicows) with_win32_nlsapi=unicows ;;
6804   unicode) with_win32_nlsapi=unicode ;;
6805   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
6806 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
6807    { (exit 1); exit 1; }; } ;;
6808 esac
6809 else
6810   with_win32_nlsapi=ansi
6811 fi;
6812
6813 case "${with_win32_nlsapi}" in
6814   unicows | unicode)
6815
6816 cat >>confdefs.h <<\_ACEOF
6817 #define MINGW_LIBGCJ_UNICODE 1
6818 _ACEOF
6819
6820     ;;
6821 esac
6822
6823 # configure.host sets slow_pthread_self if the synchronization code should
6824 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
6825 if test "${slow_pthread_self}" = "yes"; then
6826
6827 cat >>confdefs.h <<\_ACEOF
6828 #define SLOW_PTHREAD_SELF 1
6829 _ACEOF
6830
6831 fi
6832
6833 # Check for gc debugging.  This option is handled both here and in the GC.
6834 # Check whether --enable-gc-debug or --disable-gc-debug was given.
6835 if test "${enable_gc_debug+set}" = set; then
6836   enableval="$enable_gc_debug"
6837    if test "$enable_gc_debug" = "yes"; then
6838
6839 cat >>confdefs.h <<\_ACEOF
6840 #define LIBGCJ_GC_DEBUG 1
6841 _ACEOF
6842
6843   fi
6844 fi;
6845
6846 # See if the user has the interpreter included.
6847 # Check whether --enable-interpreter or --disable-interpreter was given.
6848 if test "${enable_interpreter+set}" = set; then
6849   enableval="$enable_interpreter"
6850   if test "$enable_interpreter" = yes; then
6851     # This can also be set in configure.host.
6852     libgcj_interpreter=yes
6853   elif test "$enable_interpreter" = no; then
6854     libgcj_interpreter=no
6855   fi
6856 fi;
6857
6858 if test "$libgcj_interpreter" = yes; then
6859
6860 cat >>confdefs.h <<\_ACEOF
6861 #define INTERPRETER 1
6862 _ACEOF
6863
6864 fi
6865 INTERPRETER="$libgcj_interpreter"
6866
6867
6868 echo "$as_me:$LINENO: checking for exception model to use" >&5
6869 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6870 ac_ext=cc
6871 ac_cpp='$CXXCPP $CPPFLAGS'
6872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6875
6876 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6877 if test "${enable_sjlj_exceptions+set}" = set; then
6878   enableval="$enable_sjlj_exceptions"
6879   :
6880 else
6881   cat > conftest.$ac_ext << EOF
6882 #line 6882 "configure"
6883 struct S { ~S(); };
6884 void bar();
6885 void foo()
6886 {
6887   S s;
6888   bar();
6889 }
6890 EOF
6891 old_CXXFLAGS="$CXXFLAGS"
6892 CXXFLAGS=-S
6893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894   (eval $ac_compile) 2>&5
6895   ac_status=$?
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); }; then
6898   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6899     enable_sjlj_exceptions=yes
6900   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6901     enable_sjlj_exceptions=no
6902   fi
6903 fi
6904 CXXFLAGS="$old_CXXFLAGS"
6905 rm -f conftest*
6906 fi;
6907 if test x$enable_sjlj_exceptions = xyes; then
6908
6909 cat >>confdefs.h <<\_ACEOF
6910 #define SJLJ_EXCEPTIONS 1
6911 _ACEOF
6912
6913   ac_exception_model_name=sjlj
6914 elif test x$enable_sjlj_exceptions = xno; then
6915   ac_exception_model_name="call frame"
6916 else
6917   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6918 echo "$as_me: error: unable to detect exception model" >&2;}
6919    { (exit 1); exit 1; }; }
6920 fi
6921 ac_ext=c
6922 ac_cpp='$CPP $CPPFLAGS'
6923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6926
6927 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6928 echo "${ECHO_T}$ac_exception_model_name" >&6
6929
6930 # If we are non using SJLJ exceptions, and this host does not have support
6931 # for unwinding from a signal handler, enable checked dereferences and divides.
6932 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6933   CHECKREFSPEC=-fcheck-references
6934   DIVIDESPEC=-fuse-divide-subroutine
6935   EXCEPTIONSPEC=
6936 fi
6937
6938 # See if the user wants to disable java.net.  This is the mildly
6939 # ugly way that we admit that target-side configuration sucks.
6940 # Check whether --enable-java-net or --disable-java-net was given.
6941 if test "${enable_java_net+set}" = set; then
6942   enableval="$enable_java_net"
6943
6944 fi;
6945
6946 # Whether java.net is built by default can depend on the target.
6947 if test -z "$enable_java_net"; then
6948    enable_java_net=${enable_java_net_default-yes}
6949 fi
6950 if test "$enable_java_net" = no; then
6951
6952 cat >>confdefs.h <<\_ACEOF
6953 #define DISABLE_JAVA_NET 1
6954 _ACEOF
6955
6956 fi
6957
6958 # See if the user wants to configure without libffi.  Some
6959 # architectures don't support it, and default values are set in
6960 # configure.host.
6961
6962 # Check whether --with-libffi or --without-libffi was given.
6963 if test "${with_libffi+set}" = set; then
6964   withval="$with_libffi"
6965   :
6966 else
6967   with_libffi=${with_libffi_default-yes}
6968 fi;
6969
6970 LIBFFI=
6971 LIBFFIINCS=
6972 if test "$with_libffi" != no; then
6973
6974 cat >>confdefs.h <<\_ACEOF
6975 #define USE_LIBFFI 1
6976 _ACEOF
6977
6978    LIBFFI=../libffi/libffi_convenience.la
6979    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6980 fi
6981
6982
6983
6984 # See if the user wants to disable JVMPI support.
6985 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6986 if test "${enable_jvmpi+set}" = set; then
6987   enableval="$enable_jvmpi"
6988
6989 fi;
6990
6991 if test "$enable_jvmpi" != no; then
6992
6993 cat >>confdefs.h <<\_ACEOF
6994 #define ENABLE_JVMPI 1
6995 _ACEOF
6996
6997 fi
6998
6999 # If the target is an eCos system, use the appropriate eCos
7000 # I/O routines.
7001 # FIXME: this should not be a local option but a global target
7002 # system; at present there is no eCos target.
7003 TARGET_ECOS=${PROCESS-"no"}
7004
7005 # Check whether --with-ecos or --without-ecos was given.
7006 if test "${with_ecos+set}" = set; then
7007   withval="$with_ecos"
7008   TARGET_ECOS="$with_ecos"
7009
7010 fi;
7011
7012 PLATFORM_INNER_NAT_HDRS=
7013 case "$TARGET_ECOS" in
7014    no) case "$host" in
7015       *mingw*)
7016             PLATFORM=Win32
7017             PLATFORMNET=Win32
7018             PLATFORMH=win32.h
7019
7020 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7021 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
7022 LD_PROG=`$CC --print-prog-name=ld`
7023 LD_VERSION=`$LD_PROG --version`
7024 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7025 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7026 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7027   LD_OK="ok"
7028 else
7029   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7030     LD_OK="ok"
7031   fi
7032 fi
7033 if test "x$LD_OK" != x; then
7034   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7035 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7036 else
7037   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7038 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
7039   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7040 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7041
7042 cat >>confdefs.h <<\_ACEOF
7043 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7044 _ACEOF
7045
7046 fi
7047       ;;
7048       *)
7049             PLATFORM=Posix
7050             PLATFORMNET=Posix
7051             PLATFORMH=posix.h
7052             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7053       ;;
7054       esac
7055       ;;
7056    *)
7057       PLATFORM=Ecos
7058       PLATFORMNET=NoNet
7059
7060 cat >>confdefs.h <<\_ACEOF
7061 #define ECOS 1
7062 _ACEOF
7063
7064       PLATFORMH=posix.h
7065       ;;
7066 esac
7067
7068           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7069
7070
7071 ac_ext=c
7072 ac_cpp='$CPP $CPPFLAGS'
7073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7076 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7077 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7078 # On Suns, sometimes $CPP names a directory.
7079 if test -n "$CPP" && test -d "$CPP"; then
7080   CPP=
7081 fi
7082 if test -z "$CPP"; then
7083   if test "${ac_cv_prog_CPP+set}" = set; then
7084   echo $ECHO_N "(cached) $ECHO_C" >&6
7085 else
7086       # Double quotes because CPP needs to be expanded
7087     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7088     do
7089       ac_preproc_ok=false
7090 for ac_c_preproc_warn_flag in '' yes
7091 do
7092   # Use a header file that comes with gcc, so configuring glibc
7093   # with a fresh cross-compiler works.
7094   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7095   # <limits.h> exists even on freestanding compilers.
7096   # On the NeXT, cc -E runs the code through the compiler's parser,
7097   # not just through cpp. "Syntax error" is here to catch this case.
7098   cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h.  */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h.  */
7104 #ifdef __STDC__
7105 # include <limits.h>
7106 #else
7107 # include <assert.h>
7108 #endif
7109                      Syntax error
7110 _ACEOF
7111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7113   ac_status=$?
7114   grep -v '^ *+' conftest.er1 >conftest.err
7115   rm -f conftest.er1
7116   cat conftest.err >&5
7117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118   (exit $ac_status); } >/dev/null; then
7119   if test -s conftest.err; then
7120     ac_cpp_err=$ac_c_preproc_warn_flag
7121     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7122   else
7123     ac_cpp_err=
7124   fi
7125 else
7126   ac_cpp_err=yes
7127 fi
7128 if test -z "$ac_cpp_err"; then
7129   :
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134   # Broken: fails on valid input.
7135 continue
7136 fi
7137 rm -f conftest.err conftest.$ac_ext
7138
7139   # OK, works on sane cases.  Now check whether non-existent headers
7140   # can be detected and how.
7141   cat >conftest.$ac_ext <<_ACEOF
7142 /* confdefs.h.  */
7143 _ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h.  */
7147 #include <ac_nonexistent.h>
7148 _ACEOF
7149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7151   ac_status=$?
7152   grep -v '^ *+' conftest.er1 >conftest.err
7153   rm -f conftest.er1
7154   cat conftest.err >&5
7155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156   (exit $ac_status); } >/dev/null; then
7157   if test -s conftest.err; then
7158     ac_cpp_err=$ac_c_preproc_warn_flag
7159     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7160   else
7161     ac_cpp_err=
7162   fi
7163 else
7164   ac_cpp_err=yes
7165 fi
7166 if test -z "$ac_cpp_err"; then
7167   # Broken: success on invalid input.
7168 continue
7169 else
7170   echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173   # Passes both tests.
7174 ac_preproc_ok=:
7175 break
7176 fi
7177 rm -f conftest.err conftest.$ac_ext
7178
7179 done
7180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181 rm -f conftest.err conftest.$ac_ext
7182 if $ac_preproc_ok; then
7183   break
7184 fi
7185
7186     done
7187     ac_cv_prog_CPP=$CPP
7188
7189 fi
7190   CPP=$ac_cv_prog_CPP
7191 else
7192   ac_cv_prog_CPP=$CPP
7193 fi
7194 echo "$as_me:$LINENO: result: $CPP" >&5
7195 echo "${ECHO_T}$CPP" >&6
7196 ac_preproc_ok=false
7197 for ac_c_preproc_warn_flag in '' yes
7198 do
7199   # Use a header file that comes with gcc, so configuring glibc
7200   # with a fresh cross-compiler works.
7201   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202   # <limits.h> exists even on freestanding compilers.
7203   # On the NeXT, cc -E runs the code through the compiler's parser,
7204   # not just through cpp. "Syntax error" is here to catch this case.
7205   cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211 #ifdef __STDC__
7212 # include <limits.h>
7213 #else
7214 # include <assert.h>
7215 #endif
7216                      Syntax error
7217 _ACEOF
7218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7220   ac_status=$?
7221   grep -v '^ *+' conftest.er1 >conftest.err
7222   rm -f conftest.er1
7223   cat conftest.err >&5
7224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225   (exit $ac_status); } >/dev/null; then
7226   if test -s conftest.err; then
7227     ac_cpp_err=$ac_c_preproc_warn_flag
7228     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7229   else
7230     ac_cpp_err=
7231   fi
7232 else
7233   ac_cpp_err=yes
7234 fi
7235 if test -z "$ac_cpp_err"; then
7236   :
7237 else
7238   echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241   # Broken: fails on valid input.
7242 continue
7243 fi
7244 rm -f conftest.err conftest.$ac_ext
7245
7246   # OK, works on sane cases.  Now check whether non-existent headers
7247   # can be detected and how.
7248   cat >conftest.$ac_ext <<_ACEOF
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254 #include <ac_nonexistent.h>
7255 _ACEOF
7256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7258   ac_status=$?
7259   grep -v '^ *+' conftest.er1 >conftest.err
7260   rm -f conftest.er1
7261   cat conftest.err >&5
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } >/dev/null; then
7264   if test -s conftest.err; then
7265     ac_cpp_err=$ac_c_preproc_warn_flag
7266     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7267   else
7268     ac_cpp_err=
7269   fi
7270 else
7271   ac_cpp_err=yes
7272 fi
7273 if test -z "$ac_cpp_err"; then
7274   # Broken: success on invalid input.
7275 continue
7276 else
7277   echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7279
7280   # Passes both tests.
7281 ac_preproc_ok=:
7282 break
7283 fi
7284 rm -f conftest.err conftest.$ac_ext
7285
7286 done
7287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7288 rm -f conftest.err conftest.$ac_ext
7289 if $ac_preproc_ok; then
7290   :
7291 else
7292   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7293 See \`config.log' for more details." >&5
7294 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7295 See \`config.log' for more details." >&2;}
7296    { (exit 1); exit 1; }; }
7297 fi
7298
7299 ac_ext=c
7300 ac_cpp='$CPP $CPPFLAGS'
7301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7304
7305
7306 echo "$as_me:$LINENO: checking for egrep" >&5
7307 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
7308 if test "${ac_cv_prog_egrep+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
7312     then ac_cv_prog_egrep='grep -E'
7313     else ac_cv_prog_egrep='egrep'
7314     fi
7315 fi
7316 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
7317 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
7318  EGREP=$ac_cv_prog_egrep
7319
7320
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327 #include <stdint.h>
7328
7329 _ACEOF
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331   $EGREP "uint32_t" >/dev/null 2>&1; then
7332
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_INT32_DEFINED 1
7335 _ACEOF
7336
7337 fi
7338 rm -f conftest*
7339
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 #include <inttypes.h>
7347
7348 _ACEOF
7349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7350   $EGREP "uint32_t" >/dev/null 2>&1; then
7351
7352 cat >>confdefs.h <<\_ACEOF
7353 #define HAVE_INT32_DEFINED 1
7354 _ACEOF
7355
7356 fi
7357 rm -f conftest*
7358
7359 cat >conftest.$ac_ext <<_ACEOF
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365 #include <sys/types.h>
7366
7367 _ACEOF
7368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7369   $EGREP "u_int32_t" >/dev/null 2>&1; then
7370
7371 cat >>confdefs.h <<\_ACEOF
7372 #define HAVE_BSD_INT32_DEFINED 1
7373 _ACEOF
7374
7375 fi
7376 rm -f conftest*
7377
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h.  */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h.  */
7384 #include <sys/config.h>
7385
7386 _ACEOF
7387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7388   $EGREP "u_int32_t" >/dev/null 2>&1; then
7389
7390 cat >>confdefs.h <<\_ACEOF
7391 #define HAVE_BSD_INT32_DEFINED 1
7392 _ACEOF
7393
7394 fi
7395 rm -f conftest*
7396
7397
7398
7399
7400 if test "$PLATFORM" = Win32; then
7401   USING_WIN32_PLATFORM_TRUE=
7402   USING_WIN32_PLATFORM_FALSE='#'
7403 else
7404   USING_WIN32_PLATFORM_TRUE='#'
7405   USING_WIN32_PLATFORM_FALSE=
7406 fi
7407
7408
7409
7410 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
7411   USING_POSIX_PLATFORM_TRUE=
7412   USING_POSIX_PLATFORM_FALSE='#'
7413 else
7414   USING_POSIX_PLATFORM_TRUE='#'
7415   USING_POSIX_PLATFORM_FALSE=
7416 fi
7417
7418
7419 case "$host" in
7420   *-darwin*) DARWIN_CRT=true ;;
7421   *) DARWIN_CRT=false ;;
7422 esac
7423
7424
7425 if $DARWIN_CRT; then
7426   USING_DARWIN_CRT_TRUE=
7427   USING_DARWIN_CRT_FALSE='#'
7428 else
7429   USING_DARWIN_CRT_TRUE='#'
7430   USING_DARWIN_CRT_FALSE=
7431 fi
7432
7433
7434 # These may not be defined in a non-ANS conformant embedded system.
7435 # FIXME: Should these case a runtime exception in that case?
7436 cat >conftest.$ac_ext <<_ACEOF
7437 /* confdefs.h.  */
7438 _ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h.  */
7442 #include <time.h>
7443
7444 _ACEOF
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446   $EGREP "mktime" >/dev/null 2>&1; then
7447
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_MKTIME 1
7450 _ACEOF
7451
7452 fi
7453 rm -f conftest*
7454
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461 #include <time.h>
7462
7463 _ACEOF
7464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7465   $EGREP "localtime" >/dev/null 2>&1; then
7466
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_LOCALTIME 1
7469 _ACEOF
7470
7471 fi
7472 rm -f conftest*
7473
7474
7475 # Create the subdirectory for natFile.cc, or the attempt
7476 # to create the link will fail.
7477 test -d java || mkdir java
7478 test -d java/io || mkdir java/io
7479 test -d gnu || mkdir gnu
7480           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
7481
7482
7483 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
7484 test -d java/lang || mkdir java/lang
7485           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
7486
7487           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
7488
7489
7490 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
7491 test -d java/net || mkdir java/net
7492           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
7493
7494           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
7495
7496
7497 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
7498 test -d gnu/java || mkdir gnu/java
7499 test -d gnu/java/net || mkdir gnu/java/net
7500           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
7501
7502           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
7503
7504
7505 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
7506 test -d gnu/java/nio || mkdir gnu/java/nio
7507           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
7508
7509           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
7510
7511 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
7512           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
7513
7514
7515 case "${host}" in
7516     *mingw*)
7517       SYSTEMSPEC="-lgdi32 -lws2_32"
7518       if test "${with_win32_nlsapi}" = "unicows"; then
7519         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
7520       fi
7521     ;;
7522     *)
7523       SYSTEMSPEC=
7524     ;;
7525 esac
7526
7527
7528 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
7529
7530
7531
7532 # Check whether --with-system-zlib or --without-system-zlib was given.
7533 if test "${with_system_zlib+set}" = set; then
7534   withval="$with_system_zlib"
7535
7536 fi;
7537 ZLIBSPEC=
7538
7539 ZLIBTESTSPEC=
7540
7541
7542 echo "$as_me:$LINENO: checking for X" >&5
7543 echo $ECHO_N "checking for X... $ECHO_C" >&6
7544
7545
7546 # Check whether --with-x or --without-x was given.
7547 if test "${with_x+set}" = set; then
7548   withval="$with_x"
7549
7550 fi;
7551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7552 if test "x$with_x" = xno; then
7553   # The user explicitly disabled X.
7554   have_x=disabled
7555 else
7556   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7557     # Both variables are already set.
7558     have_x=yes
7559   else
7560     if test "${ac_cv_have_x+set}" = set; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   # One or both of the vars are not set, and there is no cached value.
7564 ac_x_includes=no ac_x_libraries=no
7565 rm -fr conftest.dir
7566 if mkdir conftest.dir; then
7567   cd conftest.dir
7568   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7569   cat >Imakefile <<'_ACEOF'
7570 acfindx:
7571         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7572 _ACEOF
7573   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7574     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7575     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7576     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7577     for ac_extension in a so sl; do
7578       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7579          test -f $ac_im_libdir/libX11.$ac_extension; then
7580         ac_im_usrlibdir=$ac_im_libdir; break
7581       fi
7582     done
7583     # Screen out bogus values from the imake configuration.  They are
7584     # bogus both because they are the default anyway, and because
7585     # using them would break gcc on systems where it needs fixed includes.
7586     case $ac_im_incroot in
7587         /usr/include) ;;
7588         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7589     esac
7590     case $ac_im_usrlibdir in
7591         /usr/lib | /lib) ;;
7592         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7593     esac
7594   fi
7595   cd ..
7596   rm -fr conftest.dir
7597 fi
7598
7599 # Standard set of common directories for X headers.
7600 # Check X11 before X11Rn because it is often a symlink to the current release.
7601 ac_x_header_dirs='
7602 /usr/X11/include
7603 /usr/X11R6/include
7604 /usr/X11R5/include
7605 /usr/X11R4/include
7606
7607 /usr/include/X11
7608 /usr/include/X11R6
7609 /usr/include/X11R5
7610 /usr/include/X11R4
7611
7612 /usr/local/X11/include
7613 /usr/local/X11R6/include
7614 /usr/local/X11R5/include
7615 /usr/local/X11R4/include
7616
7617 /usr/local/include/X11
7618 /usr/local/include/X11R6
7619 /usr/local/include/X11R5
7620 /usr/local/include/X11R4
7621
7622 /usr/X386/include
7623 /usr/x386/include
7624 /usr/XFree86/include/X11
7625
7626 /usr/include
7627 /usr/local/include
7628 /usr/unsupported/include
7629 /usr/athena/include
7630 /usr/local/x11r5/include
7631 /usr/lpp/Xamples/include
7632
7633 /usr/openwin/include
7634 /usr/openwin/share/include'
7635
7636 if test "$ac_x_includes" = no; then
7637   # Guess where to find include files, by looking for Xlib.h.
7638   # First, try using that file with no special directory specified.
7639   cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 #include <X11/Xlib.h>
7646 _ACEOF
7647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7649   ac_status=$?
7650   grep -v '^ *+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } >/dev/null; then
7655   if test -s conftest.err; then
7656     ac_cpp_err=$ac_c_preproc_warn_flag
7657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7658   else
7659     ac_cpp_err=
7660   fi
7661 else
7662   ac_cpp_err=yes
7663 fi
7664 if test -z "$ac_cpp_err"; then
7665   # We can compile using X headers with no special include directory.
7666 ac_x_includes=
7667 else
7668   echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671   for ac_dir in $ac_x_header_dirs; do
7672   if test -r "$ac_dir/X11/Xlib.h"; then
7673     ac_x_includes=$ac_dir
7674     break
7675   fi
7676 done
7677 fi
7678 rm -f conftest.err conftest.$ac_ext
7679 fi # $ac_x_includes = no
7680
7681 if test "$ac_x_libraries" = no; then
7682   # Check for the libraries.
7683   # See if we find them without any special options.
7684   # Don't add to $LIBS permanently.
7685   ac_save_LIBS=$LIBS
7686   LIBS="-lXt $LIBS"
7687   if test x$gcc_no_link = xyes; then
7688   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7689 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7690    { (exit 1); exit 1; }; }
7691 fi
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h.  */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h.  */
7698 #include <X11/Xlib.h>
7699 int
7700 main ()
7701 {
7702 XrmInitialize ()
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7709   (eval $ac_link) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest$ac_exeext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   LIBS=$ac_save_LIBS
7730 # We can link X programs with no special library path.
7731 ac_x_libraries=
7732 else
7733   echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 LIBS=$ac_save_LIBS
7737 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7738 do
7739   # Don't even attempt the hair of trying to link an X program!
7740   for ac_extension in a so sl; do
7741     if test -r $ac_dir/libXt.$ac_extension; then
7742       ac_x_libraries=$ac_dir
7743       break 2
7744     fi
7745   done
7746 done
7747 fi
7748 rm -f conftest.err conftest.$ac_objext \
7749       conftest$ac_exeext conftest.$ac_ext
7750 fi # $ac_x_libraries = no
7751
7752 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7753   # Didn't find X anywhere.  Cache the known absence of X.
7754   ac_cv_have_x="have_x=no"
7755 else
7756   # Record where we found X for the cache.
7757   ac_cv_have_x="have_x=yes \
7758                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7759 fi
7760 fi
7761
7762   fi
7763   eval "$ac_cv_have_x"
7764 fi # $with_x != no
7765
7766 if test "$have_x" != yes; then
7767   echo "$as_me:$LINENO: result: $have_x" >&5
7768 echo "${ECHO_T}$have_x" >&6
7769   no_x=yes
7770 else
7771   # If each of the values was on the command line, it overrides each guess.
7772   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7773   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7774   # Update the cache value to reflect the command line values.
7775   ac_cv_have_x="have_x=yes \
7776                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7777   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7778 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7779 fi
7780
7781 if test "$no_x" = yes; then
7782   # Not all programs may use this symbol, but it does not hurt to define it.
7783
7784 cat >>confdefs.h <<\_ACEOF
7785 #define X_DISPLAY_MISSING 1
7786 _ACEOF
7787
7788   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7789 else
7790   if test -n "$x_includes"; then
7791     X_CFLAGS="$X_CFLAGS -I$x_includes"
7792   fi
7793
7794   # It would also be nice to do this for all -L options, not just this one.
7795   if test -n "$x_libraries"; then
7796     X_LIBS="$X_LIBS -L$x_libraries"
7797     # For Solaris; some versions of Sun CC require a space after -R and
7798     # others require no space.  Words are not sufficient . . . .
7799     case `(uname -sr) 2>/dev/null` in
7800     "SunOS 5"*)
7801       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7802 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7803       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7804       if test x$gcc_no_link = xyes; then
7805   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7807    { (exit 1); exit 1; }; }
7808 fi
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h.  */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h.  */
7815
7816 int
7817 main ()
7818 {
7819
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7826   (eval $ac_link) 2>conftest.er1
7827   ac_status=$?
7828   grep -v '^ *+' conftest.er1 >conftest.err
7829   rm -f conftest.er1
7830   cat conftest.err >&5
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); } &&
7833          { ac_try='test -z "$ac_c_werror_flag"
7834                          || test ! -s conftest.err'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; } &&
7840          { ac_try='test -s conftest$ac_exeext'
7841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842   (eval $ac_try) 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; }; then
7846   ac_R_nospace=yes
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 ac_R_nospace=no
7852 fi
7853 rm -f conftest.err conftest.$ac_objext \
7854       conftest$ac_exeext conftest.$ac_ext
7855       if test $ac_R_nospace = yes; then
7856         echo "$as_me:$LINENO: result: no" >&5
7857 echo "${ECHO_T}no" >&6
7858         X_LIBS="$X_LIBS -R$x_libraries"
7859       else
7860         LIBS="$ac_xsave_LIBS -R $x_libraries"
7861         if test x$gcc_no_link = xyes; then
7862   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7864    { (exit 1); exit 1; }; }
7865 fi
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872
7873 int
7874 main ()
7875 {
7876
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883   (eval $ac_link) 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -z "$ac_c_werror_flag"
7891                          || test ! -s conftest.err'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; } &&
7897          { ac_try='test -s conftest$ac_exeext'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903   ac_R_space=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 ac_R_space=no
7909 fi
7910 rm -f conftest.err conftest.$ac_objext \
7911       conftest$ac_exeext conftest.$ac_ext
7912         if test $ac_R_space = yes; then
7913           echo "$as_me:$LINENO: result: yes" >&5
7914 echo "${ECHO_T}yes" >&6
7915           X_LIBS="$X_LIBS -R $x_libraries"
7916         else
7917           echo "$as_me:$LINENO: result: neither works" >&5
7918 echo "${ECHO_T}neither works" >&6
7919         fi
7920       fi
7921       LIBS=$ac_xsave_LIBS
7922     esac
7923   fi
7924
7925   # Check for system-dependent libraries X programs must link with.
7926   # Do this before checking for the system-independent R6 libraries
7927   # (-lICE), since we may need -lsocket or whatever for X linking.
7928
7929   if test "$ISC" = yes; then
7930     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7931   else
7932     # Martyn Johnson says this is needed for Ultrix, if the X
7933     # libraries were built with DECnet support.  And Karl Berry says
7934     # the Alpha needs dnet_stub (dnet does not exist).
7935     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7936     if test x$gcc_no_link = xyes; then
7937   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7939    { (exit 1); exit 1; }; }
7940 fi
7941 cat >conftest.$ac_ext <<_ACEOF
7942 /* confdefs.h.  */
7943 _ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h.  */
7947
7948 /* Override any gcc2 internal prototype to avoid an error.  */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 /* We use char because int might match the return type of a gcc2
7953    builtin and then its argument prototype would still apply.  */
7954 char XOpenDisplay ();
7955 int
7956 main ()
7957 {
7958 XOpenDisplay ();
7959   ;
7960   return 0;
7961 }
7962 _ACEOF
7963 rm -f conftest.$ac_objext conftest$ac_exeext
7964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7965   (eval $ac_link) 2>conftest.er1
7966   ac_status=$?
7967   grep -v '^ *+' conftest.er1 >conftest.err
7968   rm -f conftest.er1
7969   cat conftest.err >&5
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } &&
7972          { ac_try='test -z "$ac_c_werror_flag"
7973                          || test ! -s conftest.err'
7974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975   (eval $ac_try) 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest$ac_exeext'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; }; then
7985   :
7986 else
7987   echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7991 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7992 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-ldnet  $LIBS"
7997 if test x$gcc_no_link = xyes; then
7998   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8000    { (exit 1); exit 1; }; }
8001 fi
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008
8009 /* Override any gcc2 internal prototype to avoid an error.  */
8010 #ifdef __cplusplus
8011 extern "C"
8012 #endif
8013 /* We use char because int might match the return type of a gcc2
8014    builtin and then its argument prototype would still apply.  */
8015 char dnet_ntoa ();
8016 int
8017 main ()
8018 {
8019 dnet_ntoa ();
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 rm -f conftest.$ac_objext conftest$ac_exeext
8025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8026   (eval $ac_link) 2>conftest.er1
8027   ac_status=$?
8028   grep -v '^ *+' conftest.er1 >conftest.err
8029   rm -f conftest.er1
8030   cat conftest.err >&5
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); } &&
8033          { ac_try='test -z "$ac_c_werror_flag"
8034                          || test ! -s conftest.err'
8035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036   (eval $ac_try) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); }; } &&
8040          { ac_try='test -s conftest$ac_exeext'
8041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042   (eval $ac_try) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; }; then
8046   ac_cv_lib_dnet_dnet_ntoa=yes
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 ac_cv_lib_dnet_dnet_ntoa=no
8052 fi
8053 rm -f conftest.err conftest.$ac_objext \
8054       conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8056 fi
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8058 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8059 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8060   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8061 fi
8062
8063     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8064       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8065 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8066 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   ac_check_lib_save_LIBS=$LIBS
8070 LIBS="-ldnet_stub  $LIBS"
8071 if test x$gcc_no_link = xyes; then
8072   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8074    { (exit 1); exit 1; }; }
8075 fi
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082
8083 /* Override any gcc2 internal prototype to avoid an error.  */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 /* We use char because int might match the return type of a gcc2
8088    builtin and then its argument prototype would still apply.  */
8089 char dnet_ntoa ();
8090 int
8091 main ()
8092 {
8093 dnet_ntoa ();
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100   (eval $ac_link) 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag"
8108                          || test ! -s conftest.err'
8109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8110   (eval $ac_try) 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; } &&
8114          { ac_try='test -s conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8121 else
8122   echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8124
8125 ac_cv_lib_dnet_stub_dnet_ntoa=no
8126 fi
8127 rm -f conftest.err conftest.$ac_objext \
8128       conftest$ac_exeext conftest.$ac_ext
8129 LIBS=$ac_check_lib_save_LIBS
8130 fi
8131 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8132 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8133 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8134   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8135 fi
8136
8137     fi
8138 fi
8139 rm -f conftest.err conftest.$ac_objext \
8140       conftest$ac_exeext conftest.$ac_ext
8141     LIBS="$ac_xsave_LIBS"
8142
8143     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8144     # to get the SysV transport functions.
8145     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8146     # needs -lnsl.
8147     # The nsl library prevents programs from opening the X display
8148     # on Irix 5.2, according to T.E. Dickey.
8149     # The functions gethostbyname, getservbyname, and inet_addr are
8150     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8151     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8153 if test "${ac_cv_func_gethostbyname+set}" = set; then
8154   echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156   if test x$gcc_no_link = xyes; then
8157   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8159    { (exit 1); exit 1; }; }
8160 fi
8161 cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h.  */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h.  */
8167 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8169 #define gethostbyname innocuous_gethostbyname
8170
8171 /* System header to define __stub macros and hopefully few prototypes,
8172     which can conflict with char gethostbyname (); below.
8173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8174     <limits.h> exists even on freestanding compilers.  */
8175
8176 #ifdef __STDC__
8177 # include <limits.h>
8178 #else
8179 # include <assert.h>
8180 #endif
8181
8182 #undef gethostbyname
8183
8184 /* Override any gcc2 internal prototype to avoid an error.  */
8185 #ifdef __cplusplus
8186 extern "C"
8187 {
8188 #endif
8189 /* We use char because int might match the return type of a gcc2
8190    builtin and then its argument prototype would still apply.  */
8191 char gethostbyname ();
8192 /* The GNU C library defines this for functions which it implements
8193     to always fail with ENOSYS.  Some functions are actually named
8194     something starting with __ and the normal name is an alias.  */
8195 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8196 choke me
8197 #else
8198 char (*f) () = gethostbyname;
8199 #endif
8200 #ifdef __cplusplus
8201 }
8202 #endif
8203
8204 int
8205 main ()
8206 {
8207 return f != gethostbyname;
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214   (eval $ac_link) 2>conftest.er1
8215   ac_status=$?
8216   grep -v '^ *+' conftest.er1 >conftest.err
8217   rm -f conftest.er1
8218   cat conftest.err >&5
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); } &&
8221          { ac_try='test -z "$ac_c_werror_flag"
8222                          || test ! -s conftest.err'
8223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224   (eval $ac_try) 2>&5
8225   ac_status=$?
8226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); }; } &&
8228          { ac_try='test -s conftest$ac_exeext'
8229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230   (eval $ac_try) 2>&5
8231   ac_status=$?
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); }; }; then
8234   ac_cv_func_gethostbyname=yes
8235 else
8236   echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239 ac_cv_func_gethostbyname=no
8240 fi
8241 rm -f conftest.err conftest.$ac_objext \
8242       conftest$ac_exeext conftest.$ac_ext
8243 fi
8244 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8245 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8246
8247     if test $ac_cv_func_gethostbyname = no; then
8248       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8249 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8250 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lnsl  $LIBS"
8255 if test x$gcc_no_link = xyes; then
8256   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8258    { (exit 1); exit 1; }; }
8259 fi
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266
8267 /* Override any gcc2 internal prototype to avoid an error.  */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 /* We use char because int might match the return type of a gcc2
8272    builtin and then its argument prototype would still apply.  */
8273 char gethostbyname ();
8274 int
8275 main ()
8276 {
8277 gethostbyname ();
8278   ;
8279   return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284   (eval $ac_link) 2>conftest.er1
8285   ac_status=$?
8286   grep -v '^ *+' conftest.er1 >conftest.err
8287   rm -f conftest.er1
8288   cat conftest.err >&5
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); } &&
8291          { ac_try='test -z "$ac_c_werror_flag"
8292                          || test ! -s conftest.err'
8293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294   (eval $ac_try) 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; } &&
8298          { ac_try='test -s conftest$ac_exeext'
8299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300   (eval $ac_try) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   ac_cv_lib_nsl_gethostbyname=yes
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309 ac_cv_lib_nsl_gethostbyname=no
8310 fi
8311 rm -f conftest.err conftest.$ac_objext \
8312       conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8316 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8317 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8318   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8319 fi
8320
8321       if test $ac_cv_lib_nsl_gethostbyname = no; then
8322         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8323 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8324 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8325   echo $ECHO_N "(cached) $ECHO_C" >&6
8326 else
8327   ac_check_lib_save_LIBS=$LIBS
8328 LIBS="-lbsd  $LIBS"
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
8341 /* Override any gcc2 internal prototype to avoid an error.  */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 /* We use char because int might match the return type of a gcc2
8346    builtin and then its argument prototype would still apply.  */
8347 char gethostbyname ();
8348 int
8349 main ()
8350 {
8351 gethostbyname ();
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext conftest$ac_exeext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8358   (eval $ac_link) 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag"
8366                          || test ! -s conftest.err'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; } &&
8372          { ac_try='test -s conftest$ac_exeext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_lib_bsd_gethostbyname=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_lib_bsd_gethostbyname=no
8384 fi
8385 rm -f conftest.err conftest.$ac_objext \
8386       conftest$ac_exeext conftest.$ac_ext
8387 LIBS=$ac_check_lib_save_LIBS
8388 fi
8389 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8390 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8391 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8392   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8393 fi
8394
8395       fi
8396     fi
8397
8398     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8399     # socket/setsockopt and other routines are undefined under SCO ODT
8400     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8401     # on later versions), says Simon Leinen: it contains gethostby*
8402     # variants that don't use the name server (or something).  -lsocket
8403     # must be given before -lnsl if both are needed.  We assume that
8404     # if connect needs -lnsl, so does gethostbyname.
8405     echo "$as_me:$LINENO: checking for connect" >&5
8406 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8407 if test "${ac_cv_func_connect+set}" = set; then
8408   echo $ECHO_N "(cached) $ECHO_C" >&6
8409 else
8410   if test x$gcc_no_link = xyes; then
8411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8413    { (exit 1); exit 1; }; }
8414 fi
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
8422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8423 #define connect innocuous_connect
8424
8425 /* System header to define __stub macros and hopefully few prototypes,
8426     which can conflict with char connect (); below.
8427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8428     <limits.h> exists even on freestanding compilers.  */
8429
8430 #ifdef __STDC__
8431 # include <limits.h>
8432 #else
8433 # include <assert.h>
8434 #endif
8435
8436 #undef connect
8437
8438 /* Override any gcc2 internal prototype to avoid an error.  */
8439 #ifdef __cplusplus
8440 extern "C"
8441 {
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444    builtin and then its argument prototype would still apply.  */
8445 char connect ();
8446 /* The GNU C library defines this for functions which it implements
8447     to always fail with ENOSYS.  Some functions are actually named
8448     something starting with __ and the normal name is an alias.  */
8449 #if defined (__stub_connect) || defined (__stub___connect)
8450 choke me
8451 #else
8452 char (*f) () = connect;
8453 #endif
8454 #ifdef __cplusplus
8455 }
8456 #endif
8457
8458 int
8459 main ()
8460 {
8461 return f != connect;
8462   ;
8463   return 0;
8464 }
8465 _ACEOF
8466 rm -f conftest.$ac_objext conftest$ac_exeext
8467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468   (eval $ac_link) 2>conftest.er1
8469   ac_status=$?
8470   grep -v '^ *+' conftest.er1 >conftest.err
8471   rm -f conftest.er1
8472   cat conftest.err >&5
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); } &&
8475          { ac_try='test -z "$ac_c_werror_flag"
8476                          || test ! -s conftest.err'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; } &&
8482          { ac_try='test -s conftest$ac_exeext'
8483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484   (eval $ac_try) 2>&5
8485   ac_status=$?
8486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487   (exit $ac_status); }; }; then
8488   ac_cv_func_connect=yes
8489 else
8490   echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493 ac_cv_func_connect=no
8494 fi
8495 rm -f conftest.err conftest.$ac_objext \
8496       conftest$ac_exeext conftest.$ac_ext
8497 fi
8498 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8499 echo "${ECHO_T}$ac_cv_func_connect" >&6
8500
8501     if test $ac_cv_func_connect = no; then
8502       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8503 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8504 if test "${ac_cv_lib_socket_connect+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   ac_check_lib_save_LIBS=$LIBS
8508 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8509 if test x$gcc_no_link = xyes; then
8510   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8512    { (exit 1); exit 1; }; }
8513 fi
8514 cat >conftest.$ac_ext <<_ACEOF
8515 /* confdefs.h.  */
8516 _ACEOF
8517 cat confdefs.h >>conftest.$ac_ext
8518 cat >>conftest.$ac_ext <<_ACEOF
8519 /* end confdefs.h.  */
8520
8521 /* Override any gcc2 internal prototype to avoid an error.  */
8522 #ifdef __cplusplus
8523 extern "C"
8524 #endif
8525 /* We use char because int might match the return type of a gcc2
8526    builtin and then its argument prototype would still apply.  */
8527 char connect ();
8528 int
8529 main ()
8530 {
8531 connect ();
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest.$ac_objext conftest$ac_exeext
8537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538   (eval $ac_link) 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } &&
8545          { ac_try='test -z "$ac_c_werror_flag"
8546                          || test ! -s conftest.err'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; } &&
8552          { ac_try='test -s conftest$ac_exeext'
8553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8554   (eval $ac_try) 2>&5
8555   ac_status=$?
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); }; }; then
8558   ac_cv_lib_socket_connect=yes
8559 else
8560   echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 ac_cv_lib_socket_connect=no
8564 fi
8565 rm -f conftest.err conftest.$ac_objext \
8566       conftest$ac_exeext conftest.$ac_ext
8567 LIBS=$ac_check_lib_save_LIBS
8568 fi
8569 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8570 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8571 if test $ac_cv_lib_socket_connect = yes; then
8572   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8573 fi
8574
8575     fi
8576
8577     # Guillermo Gomez says -lposix is necessary on A/UX.
8578     echo "$as_me:$LINENO: checking for remove" >&5
8579 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8580 if test "${ac_cv_func_remove+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 remove to an innocuous variant, in case <limits.h> declares remove.
8595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8596 #define remove innocuous_remove
8597
8598 /* System header to define __stub macros and hopefully few prototypes,
8599     which can conflict with char remove (); 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 remove
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 remove ();
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_remove) || defined (__stub___remove)
8623 choke me
8624 #else
8625 char (*f) () = remove;
8626 #endif
8627 #ifdef __cplusplus
8628 }
8629 #endif
8630
8631 int
8632 main ()
8633 {
8634 return f != remove;
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_remove=yes
8662 else
8663   echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_func_remove=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_remove" >&5
8672 echo "${ECHO_T}$ac_cv_func_remove" >&6
8673
8674     if test $ac_cv_func_remove = no; then
8675       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8676 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8677 if test "${ac_cv_lib_posix_remove+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lposix  $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 remove ();
8701 int
8702 main ()
8703 {
8704 remove ();
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_posix_remove=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_cv_lib_posix_remove=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_posix_remove" >&5
8743 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8744 if test $ac_cv_lib_posix_remove = yes; then
8745   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8746 fi
8747
8748     fi
8749
8750     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8751     echo "$as_me:$LINENO: checking for shmat" >&5
8752 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8753 if test "${ac_cv_func_shmat+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 shmat to an innocuous variant, in case <limits.h> declares shmat.
8768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8769 #define shmat innocuous_shmat
8770
8771 /* System header to define __stub macros and hopefully few prototypes,
8772     which can conflict with char shmat (); 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 shmat
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 shmat ();
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_shmat) || defined (__stub___shmat)
8796 choke me
8797 #else
8798 char (*f) () = shmat;
8799 #endif
8800 #ifdef __cplusplus
8801 }
8802 #endif
8803
8804 int
8805 main ()
8806 {
8807 return f != shmat;
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_shmat=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_func_shmat=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_shmat" >&5
8845 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8846
8847     if test $ac_cv_func_shmat = no; then
8848       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8849 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8850 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   ac_check_lib_save_LIBS=$LIBS
8854 LIBS="-lipc  $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 shmat ();
8874 int
8875 main ()
8876 {
8877 shmat ();
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_ipc_shmat=yes
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
8916 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8917 if test $ac_cv_lib_ipc_shmat = yes; then
8918   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8919 fi
8920
8921     fi
8922   fi
8923
8924   # Check for libraries that X11R6 Xt/Xaw programs need.
8925   ac_save_LDFLAGS=$LDFLAGS
8926   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8927   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8928   # check for ICE first), but we must link in the order -lSM -lICE or
8929   # we get undefined symbols.  So assume we have SM if we have ICE.
8930   # These have to be linked with before -lX11, unlike the other
8931   # libraries we check for below, so use a different variable.
8932   # John Interrante, Karl Berry
8933   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8934 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8935 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   ac_check_lib_save_LIBS=$LIBS
8939 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8940 if test x$gcc_no_link = xyes; then
8941   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8943    { (exit 1); exit 1; }; }
8944 fi
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951
8952 /* Override any gcc2 internal prototype to avoid an error.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 /* We use char because int might match the return type of a gcc2
8957    builtin and then its argument prototype would still apply.  */
8958 char IceConnectionNumber ();
8959 int
8960 main ()
8961 {
8962 IceConnectionNumber ();
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969   (eval $ac_link) 2>conftest.er1
8970   ac_status=$?
8971   grep -v '^ *+' conftest.er1 >conftest.err
8972   rm -f conftest.er1
8973   cat conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -z "$ac_c_werror_flag"
8977                          || test ! -s conftest.err'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   ac_cv_lib_ICE_IceConnectionNumber=yes
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_cv_lib_ICE_IceConnectionNumber=no
8995 fi
8996 rm -f conftest.err conftest.$ac_objext \
8997       conftest$ac_exeext conftest.$ac_ext
8998 LIBS=$ac_check_lib_save_LIBS
8999 fi
9000 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9001 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9002 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9003   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9004 fi
9005
9006   LDFLAGS=$ac_save_LDFLAGS
9007
9008 fi
9009
9010
9011 # FIXME: this should be _libs on some hosts.
9012 libsubdir=.libs
9013
9014 # extra LD Flags which are required for targets
9015 case "${host}" in
9016 *-*-darwin[0-7].*)
9017     # For now we have to disable it on darwin[8-9] because it slows down
9018     # the linking phase. A possible bug in ld?
9019     # on Darwin -single_module speeds up loading of the dynamic libraries.
9020     extra_ldflags_libjava=-Wl,-single_module
9021     ;;
9022 esac
9023
9024
9025 # Allow the GC to be disabled.  Can be useful when debugging.
9026 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
9027 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
9028 # Check whether --enable-java-gc or --disable-java-gc was given.
9029 if test "${enable_java_gc+set}" = set; then
9030   enableval="$enable_java_gc"
9031   GC=$enableval
9032 else
9033   GC=boehm
9034 fi;
9035 GCLIBS=
9036 GCINCS=
9037 GCDEPS=
9038 GCSPEC=
9039 JC1GCSPEC=
9040 GCTESTSPEC=
9041 case "$GC" in
9042  boehm)
9043     echo "$as_me:$LINENO: result: boehm" >&5
9044 echo "${ECHO_T}boehm" >&6
9045     GCLIBS=../boehm-gc/libgcjgc_convenience.la
9046     JC1GCSPEC='-fuse-boehm-gc'
9047     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
9048     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
9049     GCOBJS=boehm.lo
9050     GCHDR=boehm-gc.h
9051     # The POSIX thread support needs to know this.
9052
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_BOEHM_GC 1
9055 _ACEOF
9056
9057     ;;
9058  no)
9059     echo "$as_me:$LINENO: result: none" >&5
9060 echo "${ECHO_T}none" >&6
9061     GCHDR=no-gc.h
9062     ;;
9063  *)
9064     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
9065 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
9066    { (exit 1); exit 1; }; }
9067     ;;
9068 esac
9069
9070
9071
9072
9073
9074
9075           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
9076
9077
9078
9079 if test "$GC" = boehm; then
9080   USING_BOEHMGC_TRUE=
9081   USING_BOEHMGC_FALSE='#'
9082 else
9083   USING_BOEHMGC_TRUE='#'
9084   USING_BOEHMGC_FALSE=
9085 fi
9086
9087
9088
9089 if test "$GC" = no; then
9090   USING_NOGC_TRUE=
9091   USING_NOGC_FALSE='#'
9092 else
9093   USING_NOGC_TRUE='#'
9094   USING_NOGC_FALSE=
9095 fi
9096
9097
9098
9099 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
9100 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
9101 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
9102 echo "$as_me:$LINENO: result: $THREADS" >&5
9103 echo "${ECHO_T}$THREADS" >&6
9104
9105 case "$THREADS" in
9106  no | none | single)
9107     THREADS=none
9108     ;;
9109  posix | posix95 | pthreads)
9110     THREADS=posix
9111     case "$host" in
9112      *-*-linux*)
9113
9114 cat >>confdefs.h <<\_ACEOF
9115 #define LINUX_THREADS 1
9116 _ACEOF
9117
9118         ;;
9119     esac
9120     ;;
9121  win32)
9122     ;;
9123  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
9124     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
9125 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
9126    { (exit 1); exit 1; }; }
9127     ;;
9128  *)
9129     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
9130 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
9131    { (exit 1); exit 1; }; }
9132     ;;
9133 esac
9134
9135 THREADCXXFLAGS=
9136 THREADLDFLAGS=
9137 THREADLIBS=
9138 THREADINCS=
9139 THREADDEPS=
9140 THREADH=
9141 THREADSPEC=
9142 THREADSTARTFILESPEC=
9143 case "$THREADS" in
9144  posix)
9145     case "$host" in
9146      *-*-cygwin*)
9147         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
9148         ;;
9149      *-*-freebsd[1234]*)
9150         # Before FreeBSD 5, it didn't have -lpthread (or any library which
9151         # merely adds pthread_* functions) but it does have a -pthread switch
9152         # which is required at link-time to select -lc_r *instead* of -lc.
9153         THREADLDFLAGS=-pthread
9154         # Don't set THREADSPEC here as might be expected since -pthread is
9155         # not processed when found within a spec file, it must come from
9156         # the command line.  For now, the user must provide the -pthread
9157         # switch to link code compiled with gcj.  In future, consider adding
9158         # support for weak references to pthread_* functions ala gthr.h API.
9159         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
9160         ;;
9161      *-*-freebsd*)
9162         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
9163         # systems which support threads and -lpthread.
9164         THREADLDFLAGS=-pthread
9165         THREADSPEC=-lpthread
9166         ;;
9167      alpha*-dec-osf* | hppa*-hp-hpux*)
9168         THREADCXXFLAGS=-pthread
9169         # boehm-gc needs some functions from librt, so link that too.
9170         THREADLIBS='-lpthread -lrt'
9171         THREADSPEC='-lpthread -lrt'
9172         ;;
9173      *)
9174         THREADLIBS=-lpthread
9175         THREADSPEC=-lpthread
9176         ;;
9177     esac
9178     THREADH=posix-threads.h
9179     # MIT pthreads doesn't seem to have the mutexattr functions.
9180     # But for now we don't check for it.  We just assume you aren't
9181     # using MIT pthreads.
9182
9183 cat >>confdefs.h <<\_ACEOF
9184 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9185 _ACEOF
9186
9187
9188     # If we're using the Boehm GC, then we happen to know that it
9189     # defines _REENTRANT, so we don't bother.  Eww.
9190     if test "$GC" != boehm; then
9191
9192 cat >>confdefs.h <<\_ACEOF
9193 #define _REENTRANT 1
9194 _ACEOF
9195
9196     fi
9197
9198 cat >>confdefs.h <<\_ACEOF
9199 #define _POSIX_PTHREAD_SEMANTICS 1
9200 _ACEOF
9201
9202     ;;
9203
9204  win32)
9205     THREADH=win32-threads.h
9206     THREADCXXFLAGS=-mthreads
9207     # We need thread-safe exception handling so _CRT_MT should be set to 1.
9208     # But we do not want the executables created to be dependent on
9209     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
9210     # exception handling contexts.  The following kludge achieves this effect
9211     # and causes a dummy __mingwthr_key_dtor() to be linked in from
9212     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
9213     # A workaround is to explicitly use -mthreads while linking Java programs.
9214     # See PR libgcj/28263.
9215     #
9216     # FIXME: In Java we are able to detect thread death at the end of
9217     # Thread.run() so we should be able to clean up the exception handling
9218     # contexts ourselves.
9219     THREADSTARTFILESPEC='crtmt%O%s'
9220     ;;
9221
9222  none)
9223     THREADH=no-threads.h
9224     ;;
9225 esac
9226           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237 if test "$THREADS" = posix; then
9238   USING_POSIX_THREADS_TRUE=
9239   USING_POSIX_THREADS_FALSE='#'
9240 else
9241   USING_POSIX_THREADS_TRUE='#'
9242   USING_POSIX_THREADS_FALSE=
9243 fi
9244
9245
9246
9247 if test "$THREADS" = win32; then
9248   USING_WIN32_THREADS_TRUE=
9249   USING_WIN32_THREADS_FALSE='#'
9250 else
9251   USING_WIN32_THREADS_TRUE='#'
9252   USING_WIN32_THREADS_FALSE=
9253 fi
9254
9255
9256
9257 if test "$THREADS" = none; then
9258   USING_NO_THREADS_TRUE=
9259   USING_NO_THREADS_FALSE='#'
9260 else
9261   USING_NO_THREADS_TRUE='#'
9262   USING_NO_THREADS_FALSE=
9263 fi
9264
9265
9266
9267 if test "$use_libgcj_bc" = yes; then
9268   USE_LIBGCJ_BC_TRUE=
9269   USE_LIBGCJ_BC_FALSE='#'
9270 else
9271   USE_LIBGCJ_BC_TRUE='#'
9272   USE_LIBGCJ_BC_FALSE=
9273 fi
9274
9275
9276 if test -d sysdep; then true; else mkdir sysdep; fi
9277           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
9278
9279           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
9280
9281           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
9282
9283
9284 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
9285 if test "$use_libgcj_bc" = yes; then
9286   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
9287 fi
9288
9289
9290 HASH_SYNC_SPEC=
9291 # Hash synchronization is only useful with posix threads right now.
9292 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
9293    HASH_SYNC_SPEC=-fhash-synchronization
9294
9295 cat >>confdefs.h <<\_ACEOF
9296 #define JV_HASH_SYNCHRONIZATION 1
9297 _ACEOF
9298
9299 fi
9300
9301
9302
9303
9304 if test "$GCC" = yes; then
9305   USING_GCC_TRUE=
9306   USING_GCC_FALSE='#'
9307 else
9308   USING_GCC_TRUE='#'
9309   USING_GCC_FALSE=
9310 fi
9311
9312
9313 # We're in the tree with gcc, and need to include some of its headers.
9314 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
9315
9316 if test "x${with_newlib}" = "xyes"; then
9317    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
9318    # may not work correctly, because the compiler may not be able to
9319    # link executables.
9320
9321    # We assume newlib.  This lets us hard-code the functions we know
9322    # we'll have.
9323
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_MEMMOVE 1
9326 _ACEOF
9327
9328
9329 cat >>confdefs.h <<\_ACEOF
9330 #define HAVE_MEMCPY 1
9331 _ACEOF
9332
9333
9334 cat >>confdefs.h <<\_ACEOF
9335 #define HAVE_STRERROR 1
9336 _ACEOF
9337
9338
9339 cat >>confdefs.h <<\_ACEOF
9340 #define HAVE_TIME 1
9341 _ACEOF
9342
9343
9344 cat >>confdefs.h <<\_ACEOF
9345 #define HAVE_GMTIME_R 1
9346 _ACEOF
9347
9348
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_LOCALTIME_R 1
9351 _ACEOF
9352
9353
9354 cat >>confdefs.h <<\_ACEOF
9355 #define HAVE_USLEEP_DECL 1
9356 _ACEOF
9357
9358    # This is only for POSIX threads.
9359
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
9362 _ACEOF
9363
9364    # We also assume we are using gcc, which provides alloca.
9365    cat >>confdefs.h <<\_ACEOF
9366 #define HAVE_ALLOCA 1
9367 _ACEOF
9368
9369
9370    # Assume we do not have getuid and friends.
9371
9372 cat >>confdefs.h <<\_ACEOF
9373 #define NO_GETUID 1
9374 _ACEOF
9375
9376    PLATFORMNET=NoNet
9377 else
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
9414                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
9415                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
9416                    nl_langinfo setlocale \
9417                    inet_pton uname inet_ntoa \
9418                    fork execvp pipe sigaction ftruncate mmap \
9419                    getifaddrs
9420 do
9421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9422 echo "$as_me:$LINENO: checking for $ac_func" >&5
9423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9424 if eval "test \"\${$as_ac_var+set}\" = set"; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   if test x$gcc_no_link = xyes; then
9428   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9429 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9430    { (exit 1); exit 1; }; }
9431 fi
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h.  */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h.  */
9438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9440 #define $ac_func innocuous_$ac_func
9441
9442 /* System header to define __stub macros and hopefully few prototypes,
9443     which can conflict with char $ac_func (); below.
9444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9445     <limits.h> exists even on freestanding compilers.  */
9446
9447 #ifdef __STDC__
9448 # include <limits.h>
9449 #else
9450 # include <assert.h>
9451 #endif
9452
9453 #undef $ac_func
9454
9455 /* Override any gcc2 internal prototype to avoid an error.  */
9456 #ifdef __cplusplus
9457 extern "C"
9458 {
9459 #endif
9460 /* We use char because int might match the return type of a gcc2
9461    builtin and then its argument prototype would still apply.  */
9462 char $ac_func ();
9463 /* The GNU C library defines this for functions which it implements
9464     to always fail with ENOSYS.  Some functions are actually named
9465     something starting with __ and the normal name is an alias.  */
9466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9467 choke me
9468 #else
9469 char (*f) () = $ac_func;
9470 #endif
9471 #ifdef __cplusplus
9472 }
9473 #endif
9474
9475 int
9476 main ()
9477 {
9478 return f != $ac_func;
9479   ;
9480   return 0;
9481 }
9482 _ACEOF
9483 rm -f conftest.$ac_objext conftest$ac_exeext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485   (eval $ac_link) 2>conftest.er1
9486   ac_status=$?
9487   grep -v '^ *+' conftest.er1 >conftest.err
9488   rm -f conftest.er1
9489   cat conftest.err >&5
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); } &&
9492          { ac_try='test -z "$ac_c_werror_flag"
9493                          || test ! -s conftest.err'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; } &&
9499          { ac_try='test -s conftest$ac_exeext'
9500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9501   (eval $ac_try) 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; }; then
9505   eval "$as_ac_var=yes"
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510 eval "$as_ac_var=no"
9511 fi
9512 rm -f conftest.err conftest.$ac_objext \
9513       conftest$ac_exeext conftest.$ac_ext
9514 fi
9515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9517 if test `eval echo '${'$as_ac_var'}'` = yes; then
9518   cat >>confdefs.h <<_ACEOF
9519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9520 _ACEOF
9521
9522 fi
9523 done
9524
9525
9526
9527 for ac_func in inet_aton inet_addr
9528 do
9529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9530 echo "$as_me:$LINENO: checking for $ac_func" >&5
9531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9532 if eval "test \"\${$as_ac_var+set}\" = set"; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535   if test x$gcc_no_link = xyes; then
9536   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9538    { (exit 1); exit 1; }; }
9539 fi
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9547    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9548 #define $ac_func innocuous_$ac_func
9549
9550 /* System header to define __stub macros and hopefully few prototypes,
9551     which can conflict with char $ac_func (); below.
9552     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9553     <limits.h> exists even on freestanding compilers.  */
9554
9555 #ifdef __STDC__
9556 # include <limits.h>
9557 #else
9558 # include <assert.h>
9559 #endif
9560
9561 #undef $ac_func
9562
9563 /* Override any gcc2 internal prototype to avoid an error.  */
9564 #ifdef __cplusplus
9565 extern "C"
9566 {
9567 #endif
9568 /* We use char because int might match the return type of a gcc2
9569    builtin and then its argument prototype would still apply.  */
9570 char $ac_func ();
9571 /* The GNU C library defines this for functions which it implements
9572     to always fail with ENOSYS.  Some functions are actually named
9573     something starting with __ and the normal name is an alias.  */
9574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9575 choke me
9576 #else
9577 char (*f) () = $ac_func;
9578 #endif
9579 #ifdef __cplusplus
9580 }
9581 #endif
9582
9583 int
9584 main ()
9585 {
9586 return f != $ac_func;
9587   ;
9588   return 0;
9589 }
9590 _ACEOF
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9593   (eval $ac_link) 2>conftest.er1
9594   ac_status=$?
9595   grep -v '^ *+' conftest.er1 >conftest.err
9596   rm -f conftest.er1
9597   cat conftest.err >&5
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } &&
9600          { ac_try='test -z "$ac_c_werror_flag"
9601                          || test ! -s conftest.err'
9602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603   (eval $ac_try) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); }; } &&
9607          { ac_try='test -s conftest$ac_exeext'
9608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609   (eval $ac_try) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); }; }; then
9613   eval "$as_ac_var=yes"
9614 else
9615   echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9617
9618 eval "$as_ac_var=no"
9619 fi
9620 rm -f conftest.err conftest.$ac_objext \
9621       conftest$ac_exeext conftest.$ac_ext
9622 fi
9623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9625 if test `eval echo '${'$as_ac_var'}'` = yes; then
9626   cat >>confdefs.h <<_ACEOF
9627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9628 _ACEOF
9629  break
9630 fi
9631 done
9632
9633    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9635 if test "${ac_cv_header_stdc+set}" = set; then
9636   echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638   cat >conftest.$ac_ext <<_ACEOF
9639 /* confdefs.h.  */
9640 _ACEOF
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h.  */
9644 #include <stdlib.h>
9645 #include <stdarg.h>
9646 #include <string.h>
9647 #include <float.h>
9648
9649 int
9650 main ()
9651 {
9652
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659   (eval $ac_compile) 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -z "$ac_c_werror_flag"
9667                          || test ! -s conftest.err'
9668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669   (eval $ac_try) 2>&5
9670   ac_status=$?
9671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672   (exit $ac_status); }; } &&
9673          { ac_try='test -s conftest.$ac_objext'
9674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675   (eval $ac_try) 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679   ac_cv_header_stdc=yes
9680 else
9681   echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684 ac_cv_header_stdc=no
9685 fi
9686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9687
9688 if test $ac_cv_header_stdc = yes; then
9689   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9690   cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696 #include <string.h>
9697
9698 _ACEOF
9699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9700   $EGREP "memchr" >/dev/null 2>&1; then
9701   :
9702 else
9703   ac_cv_header_stdc=no
9704 fi
9705 rm -f conftest*
9706
9707 fi
9708
9709 if test $ac_cv_header_stdc = yes; then
9710   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9711   cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h.  */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h.  */
9717 #include <stdlib.h>
9718
9719 _ACEOF
9720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9721   $EGREP "free" >/dev/null 2>&1; then
9722   :
9723 else
9724   ac_cv_header_stdc=no
9725 fi
9726 rm -f conftest*
9727
9728 fi
9729
9730 if test $ac_cv_header_stdc = yes; then
9731   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9732   if test "$cross_compiling" = yes; then
9733   :
9734 else
9735   cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741 #include <ctype.h>
9742 #if ((' ' & 0x0FF) == 0x020)
9743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9745 #else
9746 # define ISLOWER(c) \
9747                    (('a' <= (c) && (c) <= 'i') \
9748                      || ('j' <= (c) && (c) <= 'r') \
9749                      || ('s' <= (c) && (c) <= 'z'))
9750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9751 #endif
9752
9753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9754 int
9755 main ()
9756 {
9757   int i;
9758   for (i = 0; i < 256; i++)
9759     if (XOR (islower (i), ISLOWER (i))
9760         || toupper (i) != TOUPPER (i))
9761       exit(2);
9762   exit (0);
9763 }
9764 _ACEOF
9765 rm -f conftest$ac_exeext
9766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767   (eval $ac_link) 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   :
9777 else
9778   echo "$as_me: program exited with status $ac_status" >&5
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9781
9782 ( exit $ac_status )
9783 ac_cv_header_stdc=no
9784 fi
9785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9786 fi
9787 fi
9788 fi
9789 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9790 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9791 if test $ac_cv_header_stdc = yes; then
9792
9793 cat >>confdefs.h <<\_ACEOF
9794 #define STDC_HEADERS 1
9795 _ACEOF
9796
9797 fi
9798
9799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9810                   inttypes.h stdint.h unistd.h
9811 do
9812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h.  */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h.  */
9824 $ac_includes_default
9825
9826 #include <$ac_header>
9827 _ACEOF
9828 rm -f conftest.$ac_objext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9830   (eval $ac_compile) 2>conftest.er1
9831   ac_status=$?
9832   grep -v '^ *+' conftest.er1 >conftest.err
9833   rm -f conftest.er1
9834   cat conftest.err >&5
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } &&
9837          { ac_try='test -z "$ac_c_werror_flag"
9838                          || test ! -s conftest.err'
9839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840   (eval $ac_try) 2>&5
9841   ac_status=$?
9842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843   (exit $ac_status); }; } &&
9844          { ac_try='test -s conftest.$ac_objext'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; }; then
9850   eval "$as_ac_Header=yes"
9851 else
9852   echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 eval "$as_ac_Header=no"
9856 fi
9857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9858 fi
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9862   cat >>confdefs.h <<_ACEOF
9863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9864 _ACEOF
9865
9866 fi
9867
9868 done
9869
9870
9871
9872
9873
9874 for ac_header in execinfo.h unistd.h dlfcn.h
9875 do
9876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9878   echo "$as_me:$LINENO: checking for $ac_header" >&5
9879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 fi
9883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9885 else
9886   # Is the header compilable?
9887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 /* confdefs.h.  */
9891 _ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h.  */
9895 $ac_includes_default
9896 #include <$ac_header>
9897 _ACEOF
9898 rm -f conftest.$ac_objext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9900   (eval $ac_compile) 2>conftest.er1
9901   ac_status=$?
9902   grep -v '^ *+' conftest.er1 >conftest.err
9903   rm -f conftest.er1
9904   cat conftest.err >&5
9905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906   (exit $ac_status); } &&
9907          { ac_try='test -z "$ac_c_werror_flag"
9908                          || test ! -s conftest.err'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; } &&
9914          { ac_try='test -s conftest.$ac_objext'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; }; then
9920   ac_header_compiler=yes
9921 else
9922   echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9924
9925 ac_header_compiler=no
9926 fi
9927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9929 echo "${ECHO_T}$ac_header_compiler" >&6
9930
9931 # Is the header present?
9932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940 #include <$ac_header>
9941 _ACEOF
9942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } >/dev/null; then
9950   if test -s conftest.err; then
9951     ac_cpp_err=$ac_c_preproc_warn_flag
9952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9953   else
9954     ac_cpp_err=
9955   fi
9956 else
9957   ac_cpp_err=yes
9958 fi
9959 if test -z "$ac_cpp_err"; then
9960   ac_header_preproc=yes
9961 else
9962   echo "$as_me: failed program was:" >&5
9963 sed 's/^/| /' conftest.$ac_ext >&5
9964
9965   ac_header_preproc=no
9966 fi
9967 rm -f conftest.err conftest.$ac_ext
9968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9969 echo "${ECHO_T}$ac_header_preproc" >&6
9970
9971 # So?  What about this header?
9972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9973   yes:no: )
9974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9978     ac_header_preproc=yes
9979     ;;
9980   no:yes:* )
9981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9993     (
9994       cat <<\_ASBOX
9995 ## ---------------------------------- ##
9996 ## Report this to the libjava lists.  ##
9997 ## ---------------------------------- ##
9998 _ASBOX
9999     ) |
10000       sed "s/^/$as_me: WARNING:     /" >&2
10001     ;;
10002 esac
10003 echo "$as_me:$LINENO: checking for $ac_header" >&5
10004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   eval "$as_ac_Header=\$ac_header_preproc"
10009 fi
10010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10012
10013 fi
10014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10015   cat >>confdefs.h <<_ACEOF
10016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10017 _ACEOF
10018
10019 fi
10020
10021 done
10022
10023    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10024    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10025 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
10026 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029   ac_check_lib_save_LIBS=$LIBS
10030 LIBS="-ldl  $LIBS"
10031 if test x$gcc_no_link = xyes; then
10032   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10034    { (exit 1); exit 1; }; }
10035 fi
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h.  */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h.  */
10042
10043 /* Override any gcc2 internal prototype to avoid an error.  */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 /* We use char because int might match the return type of a gcc2
10048    builtin and then its argument prototype would still apply.  */
10049 char dladdr ();
10050 int
10051 main ()
10052 {
10053 dladdr ();
10054   ;
10055   return 0;
10056 }
10057 _ACEOF
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10060   (eval $ac_link) 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } &&
10067          { ac_try='test -z "$ac_c_werror_flag"
10068                          || test ! -s conftest.err'
10069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070   (eval $ac_try) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; } &&
10074          { ac_try='test -s conftest$ac_exeext'
10075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076   (eval $ac_try) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }; }; then
10080   ac_cv_lib_dl_dladdr=yes
10081 else
10082   echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085 ac_cv_lib_dl_dladdr=no
10086 fi
10087 rm -f conftest.err conftest.$ac_objext \
10088       conftest$ac_exeext conftest.$ac_ext
10089 LIBS=$ac_check_lib_save_LIBS
10090 fi
10091 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
10092 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
10093 if test $ac_cv_lib_dl_dladdr = yes; then
10094
10095
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_DLADDR 1
10098 _ACEOF
10099
10100 else
10101
10102        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
10103 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
10104 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   ac_check_lib_save_LIBS=$LIBS
10108 LIBS="-ldld  $LIBS"
10109 if test x$gcc_no_link = xyes; then
10110   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10112    { (exit 1); exit 1; }; }
10113 fi
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h.  */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h.  */
10120
10121 /* Override any gcc2 internal prototype to avoid an error.  */
10122 #ifdef __cplusplus
10123 extern "C"
10124 #endif
10125 /* We use char because int might match the return type of a gcc2
10126    builtin and then its argument prototype would still apply.  */
10127 char dladdr ();
10128 int
10129 main ()
10130 {
10131 dladdr ();
10132   ;
10133   return 0;
10134 }
10135 _ACEOF
10136 rm -f conftest.$ac_objext conftest$ac_exeext
10137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10138   (eval $ac_link) 2>conftest.er1
10139   ac_status=$?
10140   grep -v '^ *+' conftest.er1 >conftest.err
10141   rm -f conftest.er1
10142   cat conftest.err >&5
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); } &&
10145          { ac_try='test -z "$ac_c_werror_flag"
10146                          || test ! -s conftest.err'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; } &&
10152          { ac_try='test -s conftest$ac_exeext'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; }; then
10158   ac_cv_lib_dld_dladdr=yes
10159 else
10160   echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 ac_cv_lib_dld_dladdr=no
10164 fi
10165 rm -f conftest.err conftest.$ac_objext \
10166       conftest$ac_exeext conftest.$ac_ext
10167 LIBS=$ac_check_lib_save_LIBS
10168 fi
10169 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
10170 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
10171 if test $ac_cv_lib_dld_dladdr = yes; then
10172
10173
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_DLADDR 1
10176 _ACEOF
10177
10178 fi
10179
10180 fi
10181
10182
10183    if test x"$build" = x"$host"; then
10184      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
10185 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
10186 if test "${ac_cv_file__proc_self_exe+set}" = set; then
10187   echo $ECHO_N "(cached) $ECHO_C" >&6
10188 else
10189   test "$cross_compiling" = yes &&
10190   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
10191 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
10192    { (exit 1); exit 1; }; }
10193 if test -r "/proc/self/exe"; then
10194   ac_cv_file__proc_self_exe=yes
10195 else
10196   ac_cv_file__proc_self_exe=no
10197 fi
10198 fi
10199 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
10200 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
10201 if test $ac_cv_file__proc_self_exe = yes; then
10202
10203 cat >>confdefs.h <<_ACEOF
10204 #define HAVE__PROC_SELF_EXE 1
10205 _ACEOF
10206
10207
10208
10209 cat >>confdefs.h <<\_ACEOF
10210 #define HAVE_PROC_SELF_EXE 1
10211 _ACEOF
10212
10213 fi
10214
10215    else
10216      case $host in
10217      *-linux*)
10218
10219 cat >>confdefs.h <<\_ACEOF
10220 #define HAVE_PROC_SELF_EXE 1
10221 _ACEOF
10222
10223        ;;
10224      esac
10225    fi
10226
10227
10228       if test "X$prefix" = "XNONE"; then
10229     acl_final_prefix="$ac_default_prefix"
10230   else
10231     acl_final_prefix="$prefix"
10232   fi
10233   if test "X$exec_prefix" = "XNONE"; then
10234     acl_final_exec_prefix='${prefix}'
10235   else
10236     acl_final_exec_prefix="$exec_prefix"
10237   fi
10238   acl_save_prefix="$prefix"
10239   prefix="$acl_final_prefix"
10240   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10241   prefix="$acl_save_prefix"
10242
10243
10244 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10245 if test "${with_gnu_ld+set}" = set; then
10246   withval="$with_gnu_ld"
10247   test "$withval" = no || with_gnu_ld=yes
10248 else
10249   with_gnu_ld=no
10250 fi;
10251 # Prepare PATH_SEPARATOR.
10252 # The user is always right.
10253 if test "${PATH_SEPARATOR+set}" != set; then
10254   echo "#! /bin/sh" >conf$$.sh
10255   echo  "exit 0"   >>conf$$.sh
10256   chmod +x conf$$.sh
10257   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10258     PATH_SEPARATOR=';'
10259   else
10260     PATH_SEPARATOR=:
10261   fi
10262   rm -f conf$$.sh
10263 fi
10264 ac_prog=ld
10265 if test "$GCC" = yes; then
10266   # Check if gcc -print-prog-name=ld gives a path.
10267   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10268 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10269   case $host in
10270   *-*-mingw*)
10271     # gcc leaves a trailing carriage return which upsets mingw
10272     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10273   *)
10274     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10275   esac
10276   case $ac_prog in
10277     # Accept absolute paths.
10278     [\\/]* | [A-Za-z]:[\\/]*)
10279       re_direlt='/[^/][^/]*/\.\./'
10280       # Canonicalize the path of ld
10281       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10282       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10283         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10284       done
10285       test -z "$LD" && LD="$ac_prog"
10286       ;;
10287   "")
10288     # If it fails, then pretend we aren't using GCC.
10289     ac_prog=ld
10290     ;;
10291   *)
10292     # If it is relative, then search for the first ld in PATH.
10293     with_gnu_ld=unknown
10294     ;;
10295   esac
10296 elif test "$with_gnu_ld" = yes; then
10297   echo "$as_me:$LINENO: checking for GNU ld" >&5
10298 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10299 else
10300   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10301 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10302 fi
10303 if test "${acl_cv_path_LD+set}" = set; then
10304   echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306   if test -z "$LD"; then
10307   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10308   for ac_dir in $PATH; do
10309     test -z "$ac_dir" && ac_dir=.
10310     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10311       acl_cv_path_LD="$ac_dir/$ac_prog"
10312       # Check to see if the program is GNU ld.  I'd rather use --version,
10313       # but apparently some GNU ld's only accept -v.
10314       # Break only if it was the GNU/non-GNU ld that we prefer.
10315       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10316         test "$with_gnu_ld" != no && break
10317       else
10318         test "$with_gnu_ld" != yes && break
10319       fi
10320     fi
10321   done
10322   IFS="$ac_save_ifs"
10323 else
10324   acl_cv_path_LD="$LD" # Let the user override the test with a path.
10325 fi
10326 fi
10327
10328 LD="$acl_cv_path_LD"
10329 if test -n "$LD"; then
10330   echo "$as_me:$LINENO: result: $LD" >&5
10331 echo "${ECHO_T}$LD" >&6
10332 else
10333   echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10335 fi
10336 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10337 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10338    { (exit 1); exit 1; }; }
10339 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10340 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10341 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10342   echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10345 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10346   acl_cv_prog_gnu_ld=yes
10347 else
10348   acl_cv_prog_gnu_ld=no
10349 fi
10350 fi
10351 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10352 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10353 with_gnu_ld=$acl_cv_prog_gnu_ld
10354
10355
10356
10357                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10358 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10359 if test "${acl_cv_rpath+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362
10363     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10364     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10365     . ./conftest.sh
10366     rm -f ./conftest.sh
10367     acl_cv_rpath=done
10368
10369 fi
10370 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10371 echo "${ECHO_T}$acl_cv_rpath" >&6
10372   wl="$acl_cv_wl"
10373   libext="$acl_cv_libext"
10374   shlibext="$acl_cv_shlibext"
10375   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10376   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10377   hardcode_direct="$acl_cv_hardcode_direct"
10378   hardcode_minus_L="$acl_cv_hardcode_minus_L"
10379     # Check whether --enable-rpath or --disable-rpath was given.
10380 if test "${enable_rpath+set}" = set; then
10381   enableval="$enable_rpath"
10382   :
10383 else
10384   enable_rpath=yes
10385 fi;
10386
10387
10388
10389
10390
10391
10392
10393     use_additional=yes
10394
10395   acl_save_prefix="$prefix"
10396   prefix="$acl_final_prefix"
10397   acl_save_exec_prefix="$exec_prefix"
10398   exec_prefix="$acl_final_exec_prefix"
10399
10400     eval additional_includedir=\"$includedir\"
10401     eval additional_libdir=\"$libdir\"
10402
10403   exec_prefix="$acl_save_exec_prefix"
10404   prefix="$acl_save_prefix"
10405
10406
10407 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10408 if test "${with_libiconv_prefix+set}" = set; then
10409   withval="$with_libiconv_prefix"
10410
10411     if test "X$withval" = "Xno"; then
10412       use_additional=no
10413     else
10414       if test "X$withval" = "X"; then
10415
10416   acl_save_prefix="$prefix"
10417   prefix="$acl_final_prefix"
10418   acl_save_exec_prefix="$exec_prefix"
10419   exec_prefix="$acl_final_exec_prefix"
10420
10421           eval additional_includedir=\"$includedir\"
10422           eval additional_libdir=\"$libdir\"
10423
10424   exec_prefix="$acl_save_exec_prefix"
10425   prefix="$acl_save_prefix"
10426
10427       else
10428         additional_includedir="$withval/include"
10429         additional_libdir="$withval/lib"
10430       fi
10431     fi
10432
10433 fi;
10434       LIBICONV=
10435   LTLIBICONV=
10436   INCICONV=
10437   rpathdirs=
10438   ltrpathdirs=
10439   names_already_handled=
10440   names_next_round='iconv '
10441   while test -n "$names_next_round"; do
10442     names_this_round="$names_next_round"
10443     names_next_round=
10444     for name in $names_this_round; do
10445       already_handled=
10446       for n in $names_already_handled; do
10447         if test "$n" = "$name"; then
10448           already_handled=yes
10449           break
10450         fi
10451       done
10452       if test -z "$already_handled"; then
10453         names_already_handled="$names_already_handled $name"
10454                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10455         eval value=\"\$HAVE_LIB$uppername\"
10456         if test -n "$value"; then
10457           if test "$value" = yes; then
10458             eval value=\"\$LIB$uppername\"
10459             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10460             eval value=\"\$LTLIB$uppername\"
10461             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10462           else
10463                                     :
10464           fi
10465         else
10466                               found_dir=
10467           found_la=
10468           found_so=
10469           found_a=
10470           if test $use_additional = yes; then
10471             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10472               found_dir="$additional_libdir"
10473               found_so="$additional_libdir/lib$name.$shlibext"
10474               if test -f "$additional_libdir/lib$name.la"; then
10475                 found_la="$additional_libdir/lib$name.la"
10476               fi
10477             else
10478               if test -f "$additional_libdir/lib$name.$libext"; then
10479                 found_dir="$additional_libdir"
10480                 found_a="$additional_libdir/lib$name.$libext"
10481                 if test -f "$additional_libdir/lib$name.la"; then
10482                   found_la="$additional_libdir/lib$name.la"
10483                 fi
10484               fi
10485             fi
10486           fi
10487           if test "X$found_dir" = "X"; then
10488             for x in $LDFLAGS $LTLIBICONV; do
10489
10490   acl_save_prefix="$prefix"
10491   prefix="$acl_final_prefix"
10492   acl_save_exec_prefix="$exec_prefix"
10493   exec_prefix="$acl_final_exec_prefix"
10494   eval x=\"$x\"
10495   exec_prefix="$acl_save_exec_prefix"
10496   prefix="$acl_save_prefix"
10497
10498               case "$x" in
10499                 -L*)
10500                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10501                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10502                     found_dir="$dir"
10503                     found_so="$dir/lib$name.$shlibext"
10504                     if test -f "$dir/lib$name.la"; then
10505                       found_la="$dir/lib$name.la"
10506                     fi
10507                   else
10508                     if test -f "$dir/lib$name.$libext"; then
10509                       found_dir="$dir"
10510                       found_a="$dir/lib$name.$libext"
10511                       if test -f "$dir/lib$name.la"; then
10512                         found_la="$dir/lib$name.la"
10513                       fi
10514                     fi
10515                   fi
10516                   ;;
10517               esac
10518               if test "X$found_dir" != "X"; then
10519                 break
10520               fi
10521             done
10522           fi
10523           if test "X$found_dir" != "X"; then
10524                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10525             if test "X$found_so" != "X"; then
10526                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10527                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10528               else
10529                                                                                 haveit=
10530                 for x in $ltrpathdirs; do
10531                   if test "X$x" = "X$found_dir"; then
10532                     haveit=yes
10533                     break
10534                   fi
10535                 done
10536                 if test -z "$haveit"; then
10537                   ltrpathdirs="$ltrpathdirs $found_dir"
10538                 fi
10539                                 if test "$hardcode_direct" = yes; then
10540                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10541                 else
10542                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10543                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10544                                                             haveit=
10545                     for x in $rpathdirs; do
10546                       if test "X$x" = "X$found_dir"; then
10547                         haveit=yes
10548                         break
10549                       fi
10550                     done
10551                     if test -z "$haveit"; then
10552                       rpathdirs="$rpathdirs $found_dir"
10553                     fi
10554                   else
10555                                                                                 haveit=
10556                     for x in $LDFLAGS $LIBICONV; do
10557
10558   acl_save_prefix="$prefix"
10559   prefix="$acl_final_prefix"
10560   acl_save_exec_prefix="$exec_prefix"
10561   exec_prefix="$acl_final_exec_prefix"
10562   eval x=\"$x\"
10563   exec_prefix="$acl_save_exec_prefix"
10564   prefix="$acl_save_prefix"
10565
10566                       if test "X$x" = "X-L$found_dir"; then
10567                         haveit=yes
10568                         break
10569                       fi
10570                     done
10571                     if test -z "$haveit"; then
10572                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10573                     fi
10574                     if test "$hardcode_minus_L" != no; then
10575                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10576                     else
10577                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10578                     fi
10579                   fi
10580                 fi
10581               fi
10582             else
10583               if test "X$found_a" != "X"; then
10584                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10585               else
10586                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10587               fi
10588             fi
10589                         additional_includedir=
10590             case "$found_dir" in
10591               */lib | */lib/)
10592                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10593                 additional_includedir="$basedir/include"
10594                 ;;
10595             esac
10596             if test "X$additional_includedir" != "X"; then
10597                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10598                 haveit=
10599                 if test "X$additional_includedir" = "X/usr/local/include"; then
10600                   if test -n "$GCC"; then
10601                     case $host_os in
10602                       linux*) haveit=yes;;
10603                     esac
10604                   fi
10605                 fi
10606                 if test -z "$haveit"; then
10607                   for x in $CPPFLAGS $INCICONV; do
10608
10609   acl_save_prefix="$prefix"
10610   prefix="$acl_final_prefix"
10611   acl_save_exec_prefix="$exec_prefix"
10612   exec_prefix="$acl_final_exec_prefix"
10613   eval x=\"$x\"
10614   exec_prefix="$acl_save_exec_prefix"
10615   prefix="$acl_save_prefix"
10616
10617                     if test "X$x" = "X-I$additional_includedir"; then
10618                       haveit=yes
10619                       break
10620                     fi
10621                   done
10622                   if test -z "$haveit"; then
10623                     if test -d "$additional_includedir"; then
10624                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10625                     fi
10626                   fi
10627                 fi
10628               fi
10629             fi
10630                         if test -n "$found_la"; then
10631                                                         save_libdir="$libdir"
10632               case "$found_la" in
10633                 */* | *\\*) . "$found_la" ;;
10634                 *) . "./$found_la" ;;
10635               esac
10636               libdir="$save_libdir"
10637                             for dep in $dependency_libs; do
10638                 case "$dep" in
10639                   -L*)
10640                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10641                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10642                       haveit=
10643                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10644                         if test -n "$GCC"; then
10645                           case $host_os in
10646                             linux*) haveit=yes;;
10647                           esac
10648                         fi
10649                       fi
10650                       if test -z "$haveit"; then
10651                         haveit=
10652                         for x in $LDFLAGS $LIBICONV; do
10653
10654   acl_save_prefix="$prefix"
10655   prefix="$acl_final_prefix"
10656   acl_save_exec_prefix="$exec_prefix"
10657   exec_prefix="$acl_final_exec_prefix"
10658   eval x=\"$x\"
10659   exec_prefix="$acl_save_exec_prefix"
10660   prefix="$acl_save_prefix"
10661
10662                           if test "X$x" = "X-L$additional_libdir"; then
10663                             haveit=yes
10664                             break
10665                           fi
10666                         done
10667                         if test -z "$haveit"; then
10668                           if test -d "$additional_libdir"; then
10669                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10670                           fi
10671                         fi
10672                         haveit=
10673                         for x in $LDFLAGS $LTLIBICONV; do
10674
10675   acl_save_prefix="$prefix"
10676   prefix="$acl_final_prefix"
10677   acl_save_exec_prefix="$exec_prefix"
10678   exec_prefix="$acl_final_exec_prefix"
10679   eval x=\"$x\"
10680   exec_prefix="$acl_save_exec_prefix"
10681   prefix="$acl_save_prefix"
10682
10683                           if test "X$x" = "X-L$additional_libdir"; then
10684                             haveit=yes
10685                             break
10686                           fi
10687                         done
10688                         if test -z "$haveit"; then
10689                           if test -d "$additional_libdir"; then
10690                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10691                           fi
10692                         fi
10693                       fi
10694                     fi
10695                     ;;
10696                   -R*)
10697                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10698                     if test "$enable_rpath" != no; then
10699                                                                   haveit=
10700                       for x in $rpathdirs; do
10701                         if test "X$x" = "X$dir"; then
10702                           haveit=yes
10703                           break
10704                         fi
10705                       done
10706                       if test -z "$haveit"; then
10707                         rpathdirs="$rpathdirs $dir"
10708                       fi
10709                                                                   haveit=
10710                       for x in $ltrpathdirs; do
10711                         if test "X$x" = "X$dir"; then
10712                           haveit=yes
10713                           break
10714                         fi
10715                       done
10716                       if test -z "$haveit"; then
10717                         ltrpathdirs="$ltrpathdirs $dir"
10718                       fi
10719                     fi
10720                     ;;
10721                   -l*)
10722                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10723                     ;;
10724                   *.la)
10725                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10726                     ;;
10727                   *)
10728                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10729                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10730                     ;;
10731                 esac
10732               done
10733             fi
10734           else
10735                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10736             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10737           fi
10738         fi
10739       fi
10740     done
10741   done
10742   if test "X$rpathdirs" != "X"; then
10743     if test -n "$hardcode_libdir_separator"; then
10744                         alldirs=
10745       for found_dir in $rpathdirs; do
10746         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10747       done
10748             acl_save_libdir="$libdir"
10749       libdir="$alldirs"
10750       eval flag=\"$hardcode_libdir_flag_spec\"
10751       libdir="$acl_save_libdir"
10752       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10753     else
10754             for found_dir in $rpathdirs; do
10755         acl_save_libdir="$libdir"
10756         libdir="$found_dir"
10757         eval flag=\"$hardcode_libdir_flag_spec\"
10758         libdir="$acl_save_libdir"
10759         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10760       done
10761     fi
10762   fi
10763   if test "X$ltrpathdirs" != "X"; then
10764             for found_dir in $ltrpathdirs; do
10765       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10766     done
10767   fi
10768
10769
10770
10771
10772
10773
10774
10775           am_save_CPPFLAGS="$CPPFLAGS"
10776
10777   for element in $INCICONV; do
10778     haveit=
10779     for x in $CPPFLAGS; do
10780
10781   acl_save_prefix="$prefix"
10782   prefix="$acl_final_prefix"
10783   acl_save_exec_prefix="$exec_prefix"
10784   exec_prefix="$acl_final_exec_prefix"
10785   eval x=\"$x\"
10786   exec_prefix="$acl_save_exec_prefix"
10787   prefix="$acl_save_prefix"
10788
10789       if test "X$x" = "X$element"; then
10790         haveit=yes
10791         break
10792       fi
10793     done
10794     if test -z "$haveit"; then
10795       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10796     fi
10797   done
10798
10799
10800   echo "$as_me:$LINENO: checking for iconv" >&5
10801 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10802 if test "${am_cv_func_iconv+set}" = set; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805
10806     am_cv_func_iconv="no, consider installing GNU libiconv"
10807     am_cv_lib_iconv=no
10808     if test x$gcc_no_link = xyes; then
10809   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10811    { (exit 1); exit 1; }; }
10812 fi
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h.  */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h.  */
10819 #include <stdlib.h>
10820 #include <iconv.h>
10821 int
10822 main ()
10823 {
10824 iconv_t cd = iconv_open("","");
10825        iconv(cd,NULL,NULL,NULL,NULL);
10826        iconv_close(cd);
10827   ;
10828   return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10833   (eval $ac_link) 2>conftest.er1
10834   ac_status=$?
10835   grep -v '^ *+' conftest.er1 >conftest.err
10836   rm -f conftest.er1
10837   cat conftest.err >&5
10838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839   (exit $ac_status); } &&
10840          { ac_try='test -z "$ac_c_werror_flag"
10841                          || test ! -s conftest.err'
10842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843   (eval $ac_try) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; } &&
10847          { ac_try='test -s conftest$ac_exeext'
10848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849   (eval $ac_try) 2>&5
10850   ac_status=$?
10851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852   (exit $ac_status); }; }; then
10853   am_cv_func_iconv=yes
10854 else
10855   echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 fi
10859 rm -f conftest.err conftest.$ac_objext \
10860       conftest$ac_exeext conftest.$ac_ext
10861     if test "$am_cv_func_iconv" != yes; then
10862       am_save_LIBS="$LIBS"
10863       LIBS="$LIBS $LIBICONV"
10864       if test x$gcc_no_link = xyes; then
10865   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10867    { (exit 1); exit 1; }; }
10868 fi
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h.  */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h.  */
10875 #include <stdlib.h>
10876 #include <iconv.h>
10877 int
10878 main ()
10879 {
10880 iconv_t cd = iconv_open("","");
10881          iconv(cd,NULL,NULL,NULL,NULL);
10882          iconv_close(cd);
10883   ;
10884   return 0;
10885 }
10886 _ACEOF
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889   (eval $ac_link) 2>conftest.er1
10890   ac_status=$?
10891   grep -v '^ *+' conftest.er1 >conftest.err
10892   rm -f conftest.er1
10893   cat conftest.err >&5
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); } &&
10896          { ac_try='test -z "$ac_c_werror_flag"
10897                          || test ! -s conftest.err'
10898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899   (eval $ac_try) 2>&5
10900   ac_status=$?
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); }; } &&
10903          { ac_try='test -s conftest$ac_exeext'
10904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10905   (eval $ac_try) 2>&5
10906   ac_status=$?
10907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908   (exit $ac_status); }; }; then
10909   am_cv_lib_iconv=yes
10910         am_cv_func_iconv=yes
10911 else
10912   echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 fi
10916 rm -f conftest.err conftest.$ac_objext \
10917       conftest$ac_exeext conftest.$ac_ext
10918       LIBS="$am_save_LIBS"
10919     fi
10920
10921 fi
10922 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10923 echo "${ECHO_T}$am_cv_func_iconv" >&6
10924   if test "$am_cv_func_iconv" = yes; then
10925
10926 cat >>confdefs.h <<\_ACEOF
10927 #define HAVE_ICONV 1
10928 _ACEOF
10929
10930   fi
10931   if test "$am_cv_lib_iconv" = yes; then
10932     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10933 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10934     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10935 echo "${ECHO_T}$LIBICONV" >&6
10936   else
10937             CPPFLAGS="$am_save_CPPFLAGS"
10938     LIBICONV=
10939     LTLIBICONV=
10940   fi
10941
10942
10943
10944   if test "$am_cv_func_iconv" = yes; then
10945     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10946 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10947     if test "${am_cv_proto_iconv+set}" = set; then
10948   echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950
10951       cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h.  */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h.  */
10957
10958 #include <stdlib.h>
10959 #include <iconv.h>
10960 extern
10961 #ifdef __cplusplus
10962 "C"
10963 #endif
10964 #if defined(__STDC__) || defined(__cplusplus)
10965 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10966 #else
10967 size_t iconv();
10968 #endif
10969
10970 int
10971 main ()
10972 {
10973
10974   ;
10975   return 0;
10976 }
10977 _ACEOF
10978 rm -f conftest.$ac_objext
10979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10980   (eval $ac_compile) 2>conftest.er1
10981   ac_status=$?
10982   grep -v '^ *+' conftest.er1 >conftest.err
10983   rm -f conftest.er1
10984   cat conftest.err >&5
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); } &&
10987          { ac_try='test -z "$ac_c_werror_flag"
10988                          || test ! -s conftest.err'
10989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990   (eval $ac_try) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; } &&
10994          { ac_try='test -s conftest.$ac_objext'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; }; then
11000   am_cv_proto_iconv_arg1=""
11001 else
11002   echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 am_cv_proto_iconv_arg1="const"
11006 fi
11007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11008       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);"
11009 fi
11010
11011     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11012     echo "$as_me:$LINENO: result: ${ac_t:-
11013          }$am_cv_proto_iconv" >&5
11014 echo "${ECHO_T}${ac_t:-
11015          }$am_cv_proto_iconv" >&6
11016
11017 cat >>confdefs.h <<_ACEOF
11018 #define ICONV_CONST $am_cv_proto_iconv_arg1
11019 _ACEOF
11020
11021   fi
11022
11023
11024   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11025 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11026 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11027   echo $ECHO_N "(cached) $ECHO_C" >&6
11028 else
11029   if test x$gcc_no_link = xyes; then
11030   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11032    { (exit 1); exit 1; }; }
11033 fi
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h.  */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h.  */
11040 #include <locale.h>
11041 int
11042 main ()
11043 {
11044 return LC_MESSAGES
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext conftest$ac_exeext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11051   (eval $ac_link) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } &&
11058          { ac_try='test -z "$ac_c_werror_flag"
11059                          || test ! -s conftest.err'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; } &&
11065          { ac_try='test -s conftest$ac_exeext'
11066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067   (eval $ac_try) 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; }; then
11071   am_cv_val_LC_MESSAGES=yes
11072 else
11073   echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11075
11076 am_cv_val_LC_MESSAGES=no
11077 fi
11078 rm -f conftest.err conftest.$ac_objext \
11079       conftest$ac_exeext conftest.$ac_ext
11080 fi
11081 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11082 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
11083   if test $am_cv_val_LC_MESSAGES = yes; then
11084
11085 cat >>confdefs.h <<\_ACEOF
11086 #define HAVE_LC_MESSAGES 1
11087 _ACEOF
11088
11089   fi
11090
11091    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11092 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11093 if test "${ac_cv_struct_tm+set}" = set; then
11094   echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096   cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 #include <sys/types.h>
11103 #include <time.h>
11104
11105 int
11106 main ()
11107 {
11108 struct tm *tp; tp->tm_sec;
11109   ;
11110   return 0;
11111 }
11112 _ACEOF
11113 rm -f conftest.$ac_objext
11114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115   (eval $ac_compile) 2>conftest.er1
11116   ac_status=$?
11117   grep -v '^ *+' conftest.er1 >conftest.err
11118   rm -f conftest.er1
11119   cat conftest.err >&5
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); } &&
11122          { ac_try='test -z "$ac_c_werror_flag"
11123                          || test ! -s conftest.err'
11124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11125   (eval $ac_try) 2>&5
11126   ac_status=$?
11127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128   (exit $ac_status); }; } &&
11129          { ac_try='test -s conftest.$ac_objext'
11130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11131   (eval $ac_try) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); }; }; then
11135   ac_cv_struct_tm=time.h
11136 else
11137   echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 ac_cv_struct_tm=sys/time.h
11141 fi
11142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11143 fi
11144 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11145 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11146 if test $ac_cv_struct_tm = sys/time.h; then
11147
11148 cat >>confdefs.h <<\_ACEOF
11149 #define TM_IN_SYS_TIME 1
11150 _ACEOF
11151
11152 fi
11153
11154 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11155 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11156 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 #include <sys/types.h>
11166 #include <$ac_cv_struct_tm>
11167
11168
11169 int
11170 main ()
11171 {
11172 static struct tm ac_aggr;
11173 if (ac_aggr.tm_zone)
11174 return 0;
11175   ;
11176   return 0;
11177 }
11178 _ACEOF
11179 rm -f conftest.$ac_objext
11180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11181   (eval $ac_compile) 2>conftest.er1
11182   ac_status=$?
11183   grep -v '^ *+' conftest.er1 >conftest.err
11184   rm -f conftest.er1
11185   cat conftest.err >&5
11186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187   (exit $ac_status); } &&
11188          { ac_try='test -z "$ac_c_werror_flag"
11189                          || test ! -s conftest.err'
11190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11191   (eval $ac_try) 2>&5
11192   ac_status=$?
11193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194   (exit $ac_status); }; } &&
11195          { ac_try='test -s conftest.$ac_objext'
11196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197   (eval $ac_try) 2>&5
11198   ac_status=$?
11199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200   (exit $ac_status); }; }; then
11201   ac_cv_member_struct_tm_tm_zone=yes
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206 cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #include <sys/types.h>
11213 #include <$ac_cv_struct_tm>
11214
11215
11216 int
11217 main ()
11218 {
11219 static struct tm ac_aggr;
11220 if (sizeof ac_aggr.tm_zone)
11221 return 0;
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228   (eval $ac_compile) 2>conftest.er1
11229   ac_status=$?
11230   grep -v '^ *+' conftest.er1 >conftest.err
11231   rm -f conftest.er1
11232   cat conftest.err >&5
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } &&
11235          { ac_try='test -z "$ac_c_werror_flag"
11236                          || test ! -s conftest.err'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; } &&
11242          { ac_try='test -s conftest.$ac_objext'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   ac_cv_member_struct_tm_tm_zone=yes
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 ac_cv_member_struct_tm_tm_zone=no
11254 fi
11255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11256 fi
11257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11258 fi
11259 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11260 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11261 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11262
11263 cat >>confdefs.h <<_ACEOF
11264 #define HAVE_STRUCT_TM_TM_ZONE 1
11265 _ACEOF
11266
11267
11268 fi
11269
11270 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11271
11272 cat >>confdefs.h <<\_ACEOF
11273 #define HAVE_TM_ZONE 1
11274 _ACEOF
11275
11276 else
11277   echo "$as_me:$LINENO: checking for tzname" >&5
11278 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11279 if test "${ac_cv_var_tzname+set}" = set; then
11280   echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282   if test x$gcc_no_link = xyes; then
11283   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11285    { (exit 1); exit 1; }; }
11286 fi
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h.  */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h.  */
11293 #include <time.h>
11294 #ifndef tzname /* For SGI.  */
11295 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11296 #endif
11297
11298 int
11299 main ()
11300 {
11301 atoi(*tzname);
11302   ;
11303   return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308   (eval $ac_link) 2>conftest.er1
11309   ac_status=$?
11310   grep -v '^ *+' conftest.er1 >conftest.err
11311   rm -f conftest.er1
11312   cat conftest.err >&5
11313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314   (exit $ac_status); } &&
11315          { ac_try='test -z "$ac_c_werror_flag"
11316                          || test ! -s conftest.err'
11317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318   (eval $ac_try) 2>&5
11319   ac_status=$?
11320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321   (exit $ac_status); }; } &&
11322          { ac_try='test -s conftest$ac_exeext'
11323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324   (eval $ac_try) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; }; then
11328   ac_cv_var_tzname=yes
11329 else
11330   echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 ac_cv_var_tzname=no
11334 fi
11335 rm -f conftest.err conftest.$ac_objext \
11336       conftest$ac_exeext conftest.$ac_ext
11337 fi
11338 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11339 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11340   if test $ac_cv_var_tzname = yes; then
11341
11342 cat >>confdefs.h <<\_ACEOF
11343 #define HAVE_TZNAME 1
11344 _ACEOF
11345
11346   fi
11347 fi
11348
11349
11350
11351
11352 for ac_func in gethostbyname_r
11353 do
11354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11355 echo "$as_me:$LINENO: checking for $ac_func" >&5
11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11357 if eval "test \"\${$as_ac_var+set}\" = set"; then
11358   echo $ECHO_N "(cached) $ECHO_C" >&6
11359 else
11360   if test x$gcc_no_link = xyes; then
11361   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11362 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11363    { (exit 1); exit 1; }; }
11364 fi
11365 cat >conftest.$ac_ext <<_ACEOF
11366 /* confdefs.h.  */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h.  */
11371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11373 #define $ac_func innocuous_$ac_func
11374
11375 /* System header to define __stub macros and hopefully few prototypes,
11376     which can conflict with char $ac_func (); below.
11377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11378     <limits.h> exists even on freestanding compilers.  */
11379
11380 #ifdef __STDC__
11381 # include <limits.h>
11382 #else
11383 # include <assert.h>
11384 #endif
11385
11386 #undef $ac_func
11387
11388 /* Override any gcc2 internal prototype to avoid an error.  */
11389 #ifdef __cplusplus
11390 extern "C"
11391 {
11392 #endif
11393 /* We use char because int might match the return type of a gcc2
11394    builtin and then its argument prototype would still apply.  */
11395 char $ac_func ();
11396 /* The GNU C library defines this for functions which it implements
11397     to always fail with ENOSYS.  Some functions are actually named
11398     something starting with __ and the normal name is an alias.  */
11399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11400 choke me
11401 #else
11402 char (*f) () = $ac_func;
11403 #endif
11404 #ifdef __cplusplus
11405 }
11406 #endif
11407
11408 int
11409 main ()
11410 {
11411 return f != $ac_func;
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext conftest$ac_exeext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11418   (eval $ac_link) 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -z "$ac_c_werror_flag"
11426                          || test ! -s conftest.err'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; } &&
11432          { ac_try='test -s conftest$ac_exeext'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; }; then
11438   eval "$as_ac_var=yes"
11439 else
11440   echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11442
11443 eval "$as_ac_var=no"
11444 fi
11445 rm -f conftest.err conftest.$ac_objext \
11446       conftest$ac_exeext conftest.$ac_ext
11447 fi
11448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11450 if test `eval echo '${'$as_ac_var'}'` = yes; then
11451   cat >>confdefs.h <<_ACEOF
11452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11453 _ACEOF
11454
11455
11456 cat >>confdefs.h <<\_ACEOF
11457 #define HAVE_GETHOSTBYNAME_R 1
11458 _ACEOF
11459
11460      # There are two different kinds of gethostbyname_r.
11461      # We look for the one that returns `int'.
11462      # Hopefully this check is robust enough.
11463      cat >conftest.$ac_ext <<_ACEOF
11464 /* confdefs.h.  */
11465 _ACEOF
11466 cat confdefs.h >>conftest.$ac_ext
11467 cat >>conftest.$ac_ext <<_ACEOF
11468 /* end confdefs.h.  */
11469 #include <netdb.h>
11470
11471 _ACEOF
11472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11473   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11474
11475
11476 cat >>confdefs.h <<\_ACEOF
11477 #define GETHOSTBYNAME_R_RETURNS_INT 1
11478 _ACEOF
11479
11480 fi
11481 rm -f conftest*
11482
11483
11484      case " $GCINCS " in
11485      *" -D_REENTRANT "*) ;;
11486      *)
11487                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11488 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11489 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11490   echo $ECHO_N "(cached) $ECHO_C" >&6
11491 else
11492    ac_ext=cc
11493 ac_cpp='$CXXCPP $CPPFLAGS'
11494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11497
11498           cat >conftest.$ac_ext <<_ACEOF
11499 /* confdefs.h.  */
11500 _ACEOF
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h.  */
11504 #include <netdb.h>
11505 int
11506 main ()
11507 {
11508 gethostbyname_r("", 0, 0);
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11515   (eval $ac_compile) 2>conftest.er1
11516   ac_status=$?
11517   grep -v '^ *+' conftest.er1 >conftest.err
11518   rm -f conftest.er1
11519   cat conftest.err >&5
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } &&
11522          { ac_try='test -z "$ac_cxx_werror_flag"
11523                          || test ! -s conftest.err'
11524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525   (eval $ac_try) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); }; } &&
11529          { ac_try='test -s conftest.$ac_objext'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; }; then
11535   libjava_cv_gethostbyname_r_needs_reentrant=no
11536 else
11537   echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11539
11540                 CPPFLAGS_SAVE="$CPPFLAGS"
11541                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11542                 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548 #include <netdb.h>
11549 int
11550 main ()
11551 {
11552 gethostbyname_r("", 0, 0);
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559   (eval $ac_compile) 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } &&
11566          { ac_try='test -z "$ac_cxx_werror_flag"
11567                          || test ! -s conftest.err'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; } &&
11573          { ac_try='test -s conftest.$ac_objext'
11574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575   (eval $ac_try) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; }; then
11579   libjava_cv_gethostbyname_r_needs_reentrant=yes
11580 else
11581   echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584 libjava_cv_gethostbyname_r_needs_reentrant=fail
11585 fi
11586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11587                 CPPFLAGS="$CPPFLAGS_SAVE"
11588
11589 fi
11590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11591           ac_ext=c
11592 ac_cpp='$CPP $CPPFLAGS'
11593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11596
11597
11598 fi
11599 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11600 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11601         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11602
11603 cat >>confdefs.h <<\_ACEOF
11604 #define _REENTRANT 1
11605 _ACEOF
11606
11607         fi
11608      ;;
11609      esac
11610
11611      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11612 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11613 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616         cat >conftest.$ac_ext <<_ACEOF
11617 /* confdefs.h.  */
11618 _ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h.  */
11622
11623 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11624 # define _REENTRANT 1
11625 #endif
11626 #include <netdb.h>
11627 int
11628 main ()
11629 {
11630 struct hostent_data data;
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11637   (eval $ac_compile) 2>conftest.er1
11638   ac_status=$?
11639   grep -v '^ *+' conftest.er1 >conftest.err
11640   rm -f conftest.er1
11641   cat conftest.err >&5
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); } &&
11644          { ac_try='test -z "$ac_c_werror_flag"
11645                          || test ! -s conftest.err'
11646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647   (eval $ac_try) 2>&5
11648   ac_status=$?
11649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650   (exit $ac_status); }; } &&
11651          { ac_try='test -s conftest.$ac_objext'
11652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653   (eval $ac_try) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); }; }; then
11657   libjava_cv_struct_hostent_data=yes
11658 else
11659   echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 libjava_cv_struct_hostent_data=no
11663 fi
11664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11665 fi
11666 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11667 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11668      if test "x$libjava_cv_struct_hostent_data" = xyes; then
11669
11670 cat >>confdefs.h <<\_ACEOF
11671 #define HAVE_STRUCT_HOSTENT_DATA 1
11672 _ACEOF
11673
11674      fi
11675
11676 fi
11677 done
11678
11679
11680    # FIXME: libjava source code expects to find a prototype for
11681    # gethostbyaddr_r in netdb.h.  The outer check ensures that
11682    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11683    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
11684    # linkage check is enough, yet C++ code requires proper prototypes.)
11685    cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h.  */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h.  */
11691 #include <netdb.h>
11692
11693 _ACEOF
11694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11695   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11696
11697
11698 for ac_func in gethostbyaddr_r
11699 do
11700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11701 echo "$as_me:$LINENO: checking for $ac_func" >&5
11702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11703 if eval "test \"\${$as_ac_var+set}\" = set"; then
11704   echo $ECHO_N "(cached) $ECHO_C" >&6
11705 else
11706   if test x$gcc_no_link = xyes; then
11707   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11709    { (exit 1); exit 1; }; }
11710 fi
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11719 #define $ac_func innocuous_$ac_func
11720
11721 /* System header to define __stub macros and hopefully few prototypes,
11722     which can conflict with char $ac_func (); below.
11723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11724     <limits.h> exists even on freestanding compilers.  */
11725
11726 #ifdef __STDC__
11727 # include <limits.h>
11728 #else
11729 # include <assert.h>
11730 #endif
11731
11732 #undef $ac_func
11733
11734 /* Override any gcc2 internal prototype to avoid an error.  */
11735 #ifdef __cplusplus
11736 extern "C"
11737 {
11738 #endif
11739 /* We use char because int might match the return type of a gcc2
11740    builtin and then its argument prototype would still apply.  */
11741 char $ac_func ();
11742 /* The GNU C library defines this for functions which it implements
11743     to always fail with ENOSYS.  Some functions are actually named
11744     something starting with __ and the normal name is an alias.  */
11745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11746 choke me
11747 #else
11748 char (*f) () = $ac_func;
11749 #endif
11750 #ifdef __cplusplus
11751 }
11752 #endif
11753
11754 int
11755 main ()
11756 {
11757 return f != $ac_func;
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764   (eval $ac_link) 2>conftest.er1
11765   ac_status=$?
11766   grep -v '^ *+' conftest.er1 >conftest.err
11767   rm -f conftest.er1
11768   cat conftest.err >&5
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -z "$ac_c_werror_flag"
11772                          || test ! -s conftest.err'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; } &&
11778          { ac_try='test -s conftest$ac_exeext'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; }; then
11784   eval "$as_ac_var=yes"
11785 else
11786   echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 eval "$as_ac_var=no"
11790 fi
11791 rm -f conftest.err conftest.$ac_objext \
11792       conftest$ac_exeext conftest.$ac_ext
11793 fi
11794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797   cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11799 _ACEOF
11800
11801
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_GETHOSTBYADDR_R 1
11804 _ACEOF
11805
11806      # There are two different kinds of gethostbyaddr_r.
11807      # We look for the one that returns `int'.
11808      # Hopefully this check is robust enough.
11809      cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 #include <netdb.h>
11816
11817 _ACEOF
11818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11819   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11820
11821
11822 cat >>confdefs.h <<\_ACEOF
11823 #define GETHOSTBYADDR_R_RETURNS_INT 1
11824 _ACEOF
11825
11826 fi
11827 rm -f conftest*
11828
11829 fi
11830 done
11831
11832 fi
11833 rm -f conftest*
11834
11835
11836
11837 for ac_func in gethostname
11838 do
11839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11840 echo "$as_me:$LINENO: checking for $ac_func" >&5
11841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11842 if eval "test \"\${$as_ac_var+set}\" = set"; then
11843   echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845   if test x$gcc_no_link = xyes; then
11846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11848    { (exit 1); exit 1; }; }
11849 fi
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11858 #define $ac_func innocuous_$ac_func
11859
11860 /* System header to define __stub macros and hopefully few prototypes,
11861     which can conflict with char $ac_func (); below.
11862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863     <limits.h> exists even on freestanding compilers.  */
11864
11865 #ifdef __STDC__
11866 # include <limits.h>
11867 #else
11868 # include <assert.h>
11869 #endif
11870
11871 #undef $ac_func
11872
11873 /* Override any gcc2 internal prototype to avoid an error.  */
11874 #ifdef __cplusplus
11875 extern "C"
11876 {
11877 #endif
11878 /* We use char because int might match the return type of a gcc2
11879    builtin and then its argument prototype would still apply.  */
11880 char $ac_func ();
11881 /* The GNU C library defines this for functions which it implements
11882     to always fail with ENOSYS.  Some functions are actually named
11883     something starting with __ and the normal name is an alias.  */
11884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11885 choke me
11886 #else
11887 char (*f) () = $ac_func;
11888 #endif
11889 #ifdef __cplusplus
11890 }
11891 #endif
11892
11893 int
11894 main ()
11895 {
11896 return f != $ac_func;
11897   ;
11898   return 0;
11899 }
11900 _ACEOF
11901 rm -f conftest.$ac_objext conftest$ac_exeext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903   (eval $ac_link) 2>conftest.er1
11904   ac_status=$?
11905   grep -v '^ *+' conftest.er1 >conftest.err
11906   rm -f conftest.er1
11907   cat conftest.err >&5
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); } &&
11910          { ac_try='test -z "$ac_c_werror_flag"
11911                          || test ! -s conftest.err'
11912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913   (eval $ac_try) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; } &&
11917          { ac_try='test -s conftest$ac_exeext'
11918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919   (eval $ac_try) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; }; then
11923   eval "$as_ac_var=yes"
11924 else
11925   echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928 eval "$as_ac_var=no"
11929 fi
11930 rm -f conftest.err conftest.$ac_objext \
11931       conftest$ac_exeext conftest.$ac_ext
11932 fi
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11935 if test `eval echo '${'$as_ac_var'}'` = yes; then
11936   cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11938 _ACEOF
11939
11940
11941 cat >>confdefs.h <<\_ACEOF
11942 #define HAVE_GETHOSTNAME 1
11943 _ACEOF
11944
11945      cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 #include <unistd.h>
11952
11953 _ACEOF
11954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11955   $EGREP "gethostname" >/dev/null 2>&1; then
11956
11957
11958 cat >>confdefs.h <<\_ACEOF
11959 #define HAVE_GETHOSTNAME_DECL 1
11960 _ACEOF
11961
11962 fi
11963 rm -f conftest*
11964
11965 fi
11966 done
11967
11968
11969
11970 for ac_func in usleep
11971 do
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_var+set}\" = set"; then
11976   echo $ECHO_N "(cached) $ECHO_C" >&6
11977 else
11978   if test x$gcc_no_link = xyes; then
11979   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11981    { (exit 1); exit 1; }; }
11982 fi
11983 cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11991 #define $ac_func innocuous_$ac_func
11992
11993 /* System header to define __stub macros and hopefully few prototypes,
11994     which can conflict with char $ac_func (); below.
11995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996     <limits.h> exists even on freestanding compilers.  */
11997
11998 #ifdef __STDC__
11999 # include <limits.h>
12000 #else
12001 # include <assert.h>
12002 #endif
12003
12004 #undef $ac_func
12005
12006 /* Override any gcc2 internal prototype to avoid an error.  */
12007 #ifdef __cplusplus
12008 extern "C"
12009 {
12010 #endif
12011 /* We use char because int might match the return type of a gcc2
12012    builtin and then its argument prototype would still apply.  */
12013 char $ac_func ();
12014 /* The GNU C library defines this for functions which it implements
12015     to always fail with ENOSYS.  Some functions are actually named
12016     something starting with __ and the normal name is an alias.  */
12017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12018 choke me
12019 #else
12020 char (*f) () = $ac_func;
12021 #endif
12022 #ifdef __cplusplus
12023 }
12024 #endif
12025
12026 int
12027 main ()
12028 {
12029 return f != $ac_func;
12030   ;
12031   return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036   (eval $ac_link) 2>conftest.er1
12037   ac_status=$?
12038   grep -v '^ *+' conftest.er1 >conftest.err
12039   rm -f conftest.er1
12040   cat conftest.err >&5
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } &&
12043          { ac_try='test -z "$ac_c_werror_flag"
12044                          || test ! -s conftest.err'
12045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12046   (eval $ac_try) 2>&5
12047   ac_status=$?
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); }; } &&
12050          { ac_try='test -s conftest$ac_exeext'
12051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052   (eval $ac_try) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); }; }; then
12056   eval "$as_ac_var=yes"
12057 else
12058   echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 eval "$as_ac_var=no"
12062 fi
12063 rm -f conftest.err conftest.$ac_objext \
12064       conftest$ac_exeext conftest.$ac_ext
12065 fi
12066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12068 if test `eval echo '${'$as_ac_var'}'` = yes; then
12069   cat >>confdefs.h <<_ACEOF
12070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12071 _ACEOF
12072
12073      cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079 #include <unistd.h>
12080
12081 _ACEOF
12082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12083   $EGREP "usleep" >/dev/null 2>&1; then
12084
12085
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_USLEEP_DECL 1
12088 _ACEOF
12089
12090 fi
12091 rm -f conftest*
12092
12093 fi
12094 done
12095
12096
12097    # Look for these functions in the thread library, but only bother
12098    # if using POSIX threads.
12099    if test "$THREADS" = posix; then
12100       save_LIBS="$LIBS"
12101       LIBS="$LIBS $THREADLIBS"
12102       # Some POSIX thread systems don't have pthread_mutexattr_settype.
12103       # E.g., Solaris.
12104
12105
12106 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
12107 do
12108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12109 echo "$as_me:$LINENO: checking for $ac_func" >&5
12110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12111 if eval "test \"\${$as_ac_var+set}\" = set"; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   if test x$gcc_no_link = xyes; then
12115   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12117    { (exit 1); exit 1; }; }
12118 fi
12119 cat >conftest.$ac_ext <<_ACEOF
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12127 #define $ac_func innocuous_$ac_func
12128
12129 /* System header to define __stub macros and hopefully few prototypes,
12130     which can conflict with char $ac_func (); below.
12131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132     <limits.h> exists even on freestanding compilers.  */
12133
12134 #ifdef __STDC__
12135 # include <limits.h>
12136 #else
12137 # include <assert.h>
12138 #endif
12139
12140 #undef $ac_func
12141
12142 /* Override any gcc2 internal prototype to avoid an error.  */
12143 #ifdef __cplusplus
12144 extern "C"
12145 {
12146 #endif
12147 /* We use char because int might match the return type of a gcc2
12148    builtin and then its argument prototype would still apply.  */
12149 char $ac_func ();
12150 /* The GNU C library defines this for functions which it implements
12151     to always fail with ENOSYS.  Some functions are actually named
12152     something starting with __ and the normal name is an alias.  */
12153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12154 choke me
12155 #else
12156 char (*f) () = $ac_func;
12157 #endif
12158 #ifdef __cplusplus
12159 }
12160 #endif
12161
12162 int
12163 main ()
12164 {
12165 return f != $ac_func;
12166   ;
12167   return 0;
12168 }
12169 _ACEOF
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12172   (eval $ac_link) 2>conftest.er1
12173   ac_status=$?
12174   grep -v '^ *+' conftest.er1 >conftest.err
12175   rm -f conftest.er1
12176   cat conftest.err >&5
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); } &&
12179          { ac_try='test -z "$ac_c_werror_flag"
12180                          || test ! -s conftest.err'
12181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182   (eval $ac_try) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; } &&
12186          { ac_try='test -s conftest$ac_exeext'
12187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188   (eval $ac_try) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; }; then
12192   eval "$as_ac_var=yes"
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197 eval "$as_ac_var=no"
12198 fi
12199 rm -f conftest.err conftest.$ac_objext \
12200       conftest$ac_exeext conftest.$ac_ext
12201 fi
12202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12204 if test `eval echo '${'$as_ac_var'}'` = yes; then
12205   cat >>confdefs.h <<_ACEOF
12206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12207 _ACEOF
12208
12209 fi
12210 done
12211
12212
12213       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
12214       # Solaris 7 the name librt is preferred.
12215
12216 for ac_func in sched_yield
12217 do
12218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12219 echo "$as_me:$LINENO: checking for $ac_func" >&5
12220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12221 if eval "test \"\${$as_ac_var+set}\" = set"; then
12222   echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224   if test x$gcc_no_link = xyes; then
12225   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12227    { (exit 1); exit 1; }; }
12228 fi
12229 cat >conftest.$ac_ext <<_ACEOF
12230 /* confdefs.h.  */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h.  */
12235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12237 #define $ac_func innocuous_$ac_func
12238
12239 /* System header to define __stub macros and hopefully few prototypes,
12240     which can conflict with char $ac_func (); below.
12241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242     <limits.h> exists even on freestanding compilers.  */
12243
12244 #ifdef __STDC__
12245 # include <limits.h>
12246 #else
12247 # include <assert.h>
12248 #endif
12249
12250 #undef $ac_func
12251
12252 /* Override any gcc2 internal prototype to avoid an error.  */
12253 #ifdef __cplusplus
12254 extern "C"
12255 {
12256 #endif
12257 /* We use char because int might match the return type of a gcc2
12258    builtin and then its argument prototype would still apply.  */
12259 char $ac_func ();
12260 /* The GNU C library defines this for functions which it implements
12261     to always fail with ENOSYS.  Some functions are actually named
12262     something starting with __ and the normal name is an alias.  */
12263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12264 choke me
12265 #else
12266 char (*f) () = $ac_func;
12267 #endif
12268 #ifdef __cplusplus
12269 }
12270 #endif
12271
12272 int
12273 main ()
12274 {
12275 return f != $ac_func;
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 rm -f conftest.$ac_objext conftest$ac_exeext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282   (eval $ac_link) 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } &&
12289          { ac_try='test -z "$ac_c_werror_flag"
12290                          || test ! -s conftest.err'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; } &&
12296          { ac_try='test -s conftest$ac_exeext'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; }; then
12302   eval "$as_ac_var=yes"
12303 else
12304   echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12306
12307 eval "$as_ac_var=no"
12308 fi
12309 rm -f conftest.err conftest.$ac_objext \
12310       conftest$ac_exeext conftest.$ac_ext
12311 fi
12312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12313 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12314 if test `eval echo '${'$as_ac_var'}'` = yes; then
12315   cat >>confdefs.h <<_ACEOF
12316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12317 _ACEOF
12318
12319 else
12320
12321         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12322 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12323 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-lrt  $LIBS"
12328 if test x$gcc_no_link = xyes; then
12329   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12331    { (exit 1); exit 1; }; }
12332 fi
12333 cat >conftest.$ac_ext <<_ACEOF
12334 /* confdefs.h.  */
12335 _ACEOF
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h.  */
12339
12340 /* Override any gcc2 internal prototype to avoid an error.  */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 /* We use char because int might match the return type of a gcc2
12345    builtin and then its argument prototype would still apply.  */
12346 char sched_yield ();
12347 int
12348 main ()
12349 {
12350 sched_yield ();
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357   (eval $ac_link) 2>conftest.er1
12358   ac_status=$?
12359   grep -v '^ *+' conftest.er1 >conftest.err
12360   rm -f conftest.er1
12361   cat conftest.err >&5
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } &&
12364          { ac_try='test -z "$ac_c_werror_flag"
12365                          || test ! -s conftest.err'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; } &&
12371          { ac_try='test -s conftest$ac_exeext'
12372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373   (eval $ac_try) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_cv_lib_rt_sched_yield=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_cv_lib_rt_sched_yield=no
12383 fi
12384 rm -f conftest.err conftest.$ac_objext \
12385       conftest$ac_exeext conftest.$ac_ext
12386 LIBS=$ac_check_lib_save_LIBS
12387 fi
12388 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12389 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12390 if test $ac_cv_lib_rt_sched_yield = yes; then
12391
12392           cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_SCHED_YIELD 1
12394 _ACEOF
12395
12396           THREADLIBS="$THREADLIBS -lrt"
12397           THREADSPEC="$THREADSPEC -lrt"
12398 else
12399
12400           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12401 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12402 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12403   echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405   ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lposix4  $LIBS"
12407 if test x$gcc_no_link = xyes; then
12408   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12409 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12410    { (exit 1); exit 1; }; }
12411 fi
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418
12419 /* Override any gcc2 internal prototype to avoid an error.  */
12420 #ifdef __cplusplus
12421 extern "C"
12422 #endif
12423 /* We use char because int might match the return type of a gcc2
12424    builtin and then its argument prototype would still apply.  */
12425 char sched_yield ();
12426 int
12427 main ()
12428 {
12429 sched_yield ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436   (eval $ac_link) 2>conftest.er1
12437   ac_status=$?
12438   grep -v '^ *+' conftest.er1 >conftest.err
12439   rm -f conftest.er1
12440   cat conftest.err >&5
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); } &&
12443          { ac_try='test -z "$ac_c_werror_flag"
12444                          || test ! -s conftest.err'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; } &&
12450          { ac_try='test -s conftest$ac_exeext'
12451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452   (eval $ac_try) 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; }; then
12456   ac_cv_lib_posix4_sched_yield=yes
12457 else
12458   echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461 ac_cv_lib_posix4_sched_yield=no
12462 fi
12463 rm -f conftest.err conftest.$ac_objext \
12464       conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12466 fi
12467 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12468 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12469 if test $ac_cv_lib_posix4_sched_yield = yes; then
12470
12471             cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_SCHED_YIELD 1
12473 _ACEOF
12474
12475             THREADLIBS="$THREADLIBS -lposix4"
12476             THREADSPEC="$THREADSPEC -lposix4"
12477 fi
12478
12479 fi
12480
12481 fi
12482 done
12483
12484
12485       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
12486 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
12487 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
12488   echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490   ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-lrt  $LIBS"
12492 if test x$gcc_no_link = xyes; then
12493   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12495    { (exit 1); exit 1; }; }
12496 fi
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503
12504 /* Override any gcc2 internal prototype to avoid an error.  */
12505 #ifdef __cplusplus
12506 extern "C"
12507 #endif
12508 /* We use char because int might match the return type of a gcc2
12509    builtin and then its argument prototype would still apply.  */
12510 char clock_gettime ();
12511 int
12512 main ()
12513 {
12514 clock_gettime ();
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521   (eval $ac_link) 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag"
12529                          || test ! -s conftest.err'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; } &&
12535          { ac_try='test -s conftest$ac_exeext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   ac_cv_lib_rt_clock_gettime=yes
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 ac_cv_lib_rt_clock_gettime=no
12547 fi
12548 rm -f conftest.err conftest.$ac_objext \
12549       conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12551 fi
12552 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
12553 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
12554 if test $ac_cv_lib_rt_clock_gettime = yes; then
12555
12556
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_CLOCK_GETTIME 1
12559 _ACEOF
12560
12561          case "$THREADSPEC" in
12562            *-lrt*) ;;
12563            *)
12564              THREADSPEC="$THREADSPEC -lrt"
12565              THREADLIBS="$THREADLIBS -lrt"
12566              ;;
12567          esac
12568 fi
12569
12570
12571       LIBS="$save_LIBS"
12572
12573       # We can save a little space at runtime if the mutex has m_count
12574       # or __m_count.  This is a nice hack for Linux.
12575       cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h.  */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h.  */
12581 #include <pthread.h>
12582 int
12583 main ()
12584 {
12585
12586           extern pthread_mutex_t *mutex; int q = mutex->m_count;
12587
12588   ;
12589   return 0;
12590 }
12591 _ACEOF
12592 rm -f conftest.$ac_objext
12593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12594   (eval $ac_compile) 2>conftest.er1
12595   ac_status=$?
12596   grep -v '^ *+' conftest.er1 >conftest.err
12597   rm -f conftest.er1
12598   cat conftest.err >&5
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -z "$ac_c_werror_flag"
12602                          || test ! -s conftest.err'
12603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604   (eval $ac_try) 2>&5
12605   ac_status=$?
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); }; } &&
12608          { ac_try='test -s conftest.$ac_objext'
12609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610   (eval $ac_try) 2>&5
12611   ac_status=$?
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); }; }; then
12614
12615 cat >>confdefs.h <<\_ACEOF
12616 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12617 _ACEOF
12618
12619 else
12620   echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12622
12623
12624         cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h.  */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h.  */
12630 #include <pthread.h>
12631 int
12632 main ()
12633 {
12634
12635             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12636
12637   ;
12638   return 0;
12639 }
12640 _ACEOF
12641 rm -f conftest.$ac_objext
12642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12643   (eval $ac_compile) 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } &&
12650          { ac_try='test -z "$ac_c_werror_flag"
12651                          || test ! -s conftest.err'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; } &&
12657          { ac_try='test -s conftest.$ac_objext'
12658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659   (eval $ac_try) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; }; then
12663
12664 cat >>confdefs.h <<\_ACEOF
12665 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12666 _ACEOF
12667
12668 else
12669   echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12671
12672 fi
12673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12674 fi
12675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12676    fi
12677
12678    # We require a way to get the time.
12679    time_found=no
12680
12681
12682
12683 for ac_func in gettimeofday time ftime
12684 do
12685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12686 echo "$as_me:$LINENO: checking for $ac_func" >&5
12687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12688 if eval "test \"\${$as_ac_var+set}\" = set"; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   if test x$gcc_no_link = xyes; then
12692   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12693 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12694    { (exit 1); exit 1; }; }
12695 fi
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12704 #define $ac_func innocuous_$ac_func
12705
12706 /* System header to define __stub macros and hopefully few prototypes,
12707     which can conflict with char $ac_func (); below.
12708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12709     <limits.h> exists even on freestanding compilers.  */
12710
12711 #ifdef __STDC__
12712 # include <limits.h>
12713 #else
12714 # include <assert.h>
12715 #endif
12716
12717 #undef $ac_func
12718
12719 /* Override any gcc2 internal prototype to avoid an error.  */
12720 #ifdef __cplusplus
12721 extern "C"
12722 {
12723 #endif
12724 /* We use char because int might match the return type of a gcc2
12725    builtin and then its argument prototype would still apply.  */
12726 char $ac_func ();
12727 /* The GNU C library defines this for functions which it implements
12728     to always fail with ENOSYS.  Some functions are actually named
12729     something starting with __ and the normal name is an alias.  */
12730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12731 choke me
12732 #else
12733 char (*f) () = $ac_func;
12734 #endif
12735 #ifdef __cplusplus
12736 }
12737 #endif
12738
12739 int
12740 main ()
12741 {
12742 return f != $ac_func;
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749   (eval $ac_link) 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -z "$ac_c_werror_flag"
12757                          || test ! -s conftest.err'
12758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759   (eval $ac_try) 2>&5
12760   ac_status=$?
12761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762   (exit $ac_status); }; } &&
12763          { ac_try='test -s conftest$ac_exeext'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769   eval "$as_ac_var=yes"
12770 else
12771   echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12773
12774 eval "$as_ac_var=no"
12775 fi
12776 rm -f conftest.err conftest.$ac_objext \
12777       conftest$ac_exeext conftest.$ac_ext
12778 fi
12779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12780 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12781 if test `eval echo '${'$as_ac_var'}'` = yes; then
12782   cat >>confdefs.h <<_ACEOF
12783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12784 _ACEOF
12785  time_found=yes
12786 fi
12787 done
12788
12789    if test "$time_found" = no; then
12790       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12791 echo "$as_me: error: no function found to get the time" >&2;}
12792    { (exit 1); exit 1; }; }
12793    fi
12794
12795
12796 for ac_func in memmove
12797 do
12798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12799 echo "$as_me:$LINENO: checking for $ac_func" >&5
12800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12801 if eval "test \"\${$as_ac_var+set}\" = set"; then
12802   echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804   if test x$gcc_no_link = xyes; then
12805   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12807    { (exit 1); exit 1; }; }
12808 fi
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h.  */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h.  */
12815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12817 #define $ac_func innocuous_$ac_func
12818
12819 /* System header to define __stub macros and hopefully few prototypes,
12820     which can conflict with char $ac_func (); below.
12821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12822     <limits.h> exists even on freestanding compilers.  */
12823
12824 #ifdef __STDC__
12825 # include <limits.h>
12826 #else
12827 # include <assert.h>
12828 #endif
12829
12830 #undef $ac_func
12831
12832 /* Override any gcc2 internal prototype to avoid an error.  */
12833 #ifdef __cplusplus
12834 extern "C"
12835 {
12836 #endif
12837 /* We use char because int might match the return type of a gcc2
12838    builtin and then its argument prototype would still apply.  */
12839 char $ac_func ();
12840 /* The GNU C library defines this for functions which it implements
12841     to always fail with ENOSYS.  Some functions are actually named
12842     something starting with __ and the normal name is an alias.  */
12843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12844 choke me
12845 #else
12846 char (*f) () = $ac_func;
12847 #endif
12848 #ifdef __cplusplus
12849 }
12850 #endif
12851
12852 int
12853 main ()
12854 {
12855 return f != $ac_func;
12856   ;
12857   return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest.$ac_objext conftest$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862   (eval $ac_link) 2>conftest.er1
12863   ac_status=$?
12864   grep -v '^ *+' conftest.er1 >conftest.err
12865   rm -f conftest.er1
12866   cat conftest.err >&5
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); } &&
12869          { ac_try='test -z "$ac_c_werror_flag"
12870                          || test ! -s conftest.err'
12871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872   (eval $ac_try) 2>&5
12873   ac_status=$?
12874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875   (exit $ac_status); }; } &&
12876          { ac_try='test -s conftest$ac_exeext'
12877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12878   (eval $ac_try) 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); }; }; then
12882   eval "$as_ac_var=yes"
12883 else
12884   echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12886
12887 eval "$as_ac_var=no"
12888 fi
12889 rm -f conftest.err conftest.$ac_objext \
12890       conftest$ac_exeext conftest.$ac_ext
12891 fi
12892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12894 if test `eval echo '${'$as_ac_var'}'` = yes; then
12895   cat >>confdefs.h <<_ACEOF
12896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12897 _ACEOF
12898
12899 fi
12900 done
12901
12902
12903    # We require memcpy.
12904    memcpy_found=no
12905
12906 for ac_func in memcpy
12907 do
12908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12909 echo "$as_me:$LINENO: checking for $ac_func" >&5
12910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12911 if eval "test \"\${$as_ac_var+set}\" = set"; then
12912   echo $ECHO_N "(cached) $ECHO_C" >&6
12913 else
12914   if test x$gcc_no_link = xyes; then
12915   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12917    { (exit 1); exit 1; }; }
12918 fi
12919 cat >conftest.$ac_ext <<_ACEOF
12920 /* confdefs.h.  */
12921 _ACEOF
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h.  */
12925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12926    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12927 #define $ac_func innocuous_$ac_func
12928
12929 /* System header to define __stub macros and hopefully few prototypes,
12930     which can conflict with char $ac_func (); below.
12931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12932     <limits.h> exists even on freestanding compilers.  */
12933
12934 #ifdef __STDC__
12935 # include <limits.h>
12936 #else
12937 # include <assert.h>
12938 #endif
12939
12940 #undef $ac_func
12941
12942 /* Override any gcc2 internal prototype to avoid an error.  */
12943 #ifdef __cplusplus
12944 extern "C"
12945 {
12946 #endif
12947 /* We use char because int might match the return type of a gcc2
12948    builtin and then its argument prototype would still apply.  */
12949 char $ac_func ();
12950 /* The GNU C library defines this for functions which it implements
12951     to always fail with ENOSYS.  Some functions are actually named
12952     something starting with __ and the normal name is an alias.  */
12953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12954 choke me
12955 #else
12956 char (*f) () = $ac_func;
12957 #endif
12958 #ifdef __cplusplus
12959 }
12960 #endif
12961
12962 int
12963 main ()
12964 {
12965 return f != $ac_func;
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 rm -f conftest.$ac_objext conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972   (eval $ac_link) 2>conftest.er1
12973   ac_status=$?
12974   grep -v '^ *+' conftest.er1 >conftest.err
12975   rm -f conftest.er1
12976   cat conftest.err >&5
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } &&
12979          { ac_try='test -z "$ac_c_werror_flag"
12980                          || test ! -s conftest.err'
12981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12982   (eval $ac_try) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; } &&
12986          { ac_try='test -s conftest$ac_exeext'
12987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12988   (eval $ac_try) 2>&5
12989   ac_status=$?
12990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991   (exit $ac_status); }; }; then
12992   eval "$as_ac_var=yes"
12993 else
12994   echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12996
12997 eval "$as_ac_var=no"
12998 fi
12999 rm -f conftest.err conftest.$ac_objext \
13000       conftest$ac_exeext conftest.$ac_ext
13001 fi
13002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13004 if test `eval echo '${'$as_ac_var'}'` = yes; then
13005   cat >>confdefs.h <<_ACEOF
13006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13007 _ACEOF
13008  memcpy_found=yes
13009 fi
13010 done
13011
13012    if test "$memcpy_found" = no; then
13013       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
13014 echo "$as_me: error: memcpy is required" >&2;}
13015    { (exit 1); exit 1; }; }
13016    fi
13017    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
13018    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13019 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13020 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-ldl  $LIBS"
13025 if test x$gcc_no_link = xyes; then
13026   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13028    { (exit 1); exit 1; }; }
13029 fi
13030 cat >conftest.$ac_ext <<_ACEOF
13031 /* confdefs.h.  */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h.  */
13036
13037 /* Override any gcc2 internal prototype to avoid an error.  */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 /* We use char because int might match the return type of a gcc2
13042    builtin and then its argument prototype would still apply.  */
13043 char dlopen ();
13044 int
13045 main ()
13046 {
13047 dlopen ();
13048   ;
13049   return 0;
13050 }
13051 _ACEOF
13052 rm -f conftest.$ac_objext conftest$ac_exeext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13054   (eval $ac_link) 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } &&
13061          { ac_try='test -z "$ac_c_werror_flag"
13062                          || test ! -s conftest.err'
13063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064   (eval $ac_try) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); }; } &&
13068          { ac_try='test -s conftest$ac_exeext'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; }; then
13074   ac_cv_lib_dl_dlopen=yes
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 ac_cv_lib_dl_dlopen=no
13080 fi
13081 rm -f conftest.err conftest.$ac_objext \
13082       conftest$ac_exeext conftest.$ac_ext
13083 LIBS=$ac_check_lib_save_LIBS
13084 fi
13085 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13086 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13087 if test $ac_cv_lib_dl_dlopen = yes; then
13088
13089
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_DLOPEN 1
13092 _ACEOF
13093
13094 else
13095
13096        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
13097 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
13098 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
13099   echo $ECHO_N "(cached) $ECHO_C" >&6
13100 else
13101   ac_check_lib_save_LIBS=$LIBS
13102 LIBS="-ldld  $LIBS"
13103 if test x$gcc_no_link = xyes; then
13104   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13106    { (exit 1); exit 1; }; }
13107 fi
13108 cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h.  */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h.  */
13114
13115 /* Override any gcc2 internal prototype to avoid an error.  */
13116 #ifdef __cplusplus
13117 extern "C"
13118 #endif
13119 /* We use char because int might match the return type of a gcc2
13120    builtin and then its argument prototype would still apply.  */
13121 char dlopen ();
13122 int
13123 main ()
13124 {
13125 dlopen ();
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132   (eval $ac_link) 2>conftest.er1
13133   ac_status=$?
13134   grep -v '^ *+' conftest.er1 >conftest.err
13135   rm -f conftest.er1
13136   cat conftest.err >&5
13137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138   (exit $ac_status); } &&
13139          { ac_try='test -z "$ac_c_werror_flag"
13140                          || test ! -s conftest.err'
13141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142   (eval $ac_try) 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }; } &&
13146          { ac_try='test -s conftest$ac_exeext'
13147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13148   (eval $ac_try) 2>&5
13149   ac_status=$?
13150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151   (exit $ac_status); }; }; then
13152   ac_cv_lib_dld_dlopen=yes
13153 else
13154   echo "$as_me: failed program was:" >&5
13155 sed 's/^/| /' conftest.$ac_ext >&5
13156
13157 ac_cv_lib_dld_dlopen=no
13158 fi
13159 rm -f conftest.err conftest.$ac_objext \
13160       conftest$ac_exeext conftest.$ac_ext
13161 LIBS=$ac_check_lib_save_LIBS
13162 fi
13163 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
13164 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
13165 if test $ac_cv_lib_dld_dlopen = yes; then
13166
13167
13168 cat >>confdefs.h <<\_ACEOF
13169 #define HAVE_DLOPEN 1
13170 _ACEOF
13171
13172 fi
13173
13174 fi
13175
13176
13177    # Some library-finding code we stole from Tcl.
13178    #--------------------------------------------------------------------
13179    #    Check for the existence of the -lsocket and -lnsl libraries.
13180    #    The order here is important, so that they end up in the right
13181    #    order in the command line generated by make.  Here are some
13182    #    special considerations:
13183    #    1. Use "connect" and "accept" to check for -lsocket, and
13184    #       "gethostbyname" to check for -lnsl.
13185    #    2. Use each function name only once:  can't redo a check because
13186    #       autoconf caches the results of the last check and won't redo it.
13187    #    3. Use -lnsl and -lsocket only if they supply procedures that
13188    #       aren't already present in the normal libraries.  This is because
13189    #       IRIX 5.2 has libraries, but they aren't needed and they're
13190    #       bogus:  they goof up name resolution if used.
13191    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
13192    #       To get around this problem, check for both libraries together
13193    #       if -lsocket doesn't work by itself.
13194    #--------------------------------------------------------------------
13195
13196    echo "$as_me:$LINENO: checking for socket libraries" >&5
13197 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
13198 if test "${gcj_cv_lib_sockets+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201   gcj_cv_lib_sockets=
13202      gcj_checkBoth=0
13203      unset ac_cv_func_connect
13204      echo "$as_me:$LINENO: checking for connect" >&5
13205 echo $ECHO_N "checking for connect... $ECHO_C" >&6
13206 if test "${ac_cv_func_connect+set}" = set; then
13207   echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209   if test x$gcc_no_link = xyes; then
13210   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13212    { (exit 1); exit 1; }; }
13213 fi
13214 cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
13221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13222 #define connect innocuous_connect
13223
13224 /* System header to define __stub macros and hopefully few prototypes,
13225     which can conflict with char connect (); below.
13226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13227     <limits.h> exists even on freestanding compilers.  */
13228
13229 #ifdef __STDC__
13230 # include <limits.h>
13231 #else
13232 # include <assert.h>
13233 #endif
13234
13235 #undef connect
13236
13237 /* Override any gcc2 internal prototype to avoid an error.  */
13238 #ifdef __cplusplus
13239 extern "C"
13240 {
13241 #endif
13242 /* We use char because int might match the return type of a gcc2
13243    builtin and then its argument prototype would still apply.  */
13244 char connect ();
13245 /* The GNU C library defines this for functions which it implements
13246     to always fail with ENOSYS.  Some functions are actually named
13247     something starting with __ and the normal name is an alias.  */
13248 #if defined (__stub_connect) || defined (__stub___connect)
13249 choke me
13250 #else
13251 char (*f) () = connect;
13252 #endif
13253 #ifdef __cplusplus
13254 }
13255 #endif
13256
13257 int
13258 main ()
13259 {
13260 return f != connect;
13261   ;
13262   return 0;
13263 }
13264 _ACEOF
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13267   (eval $ac_link) 2>conftest.er1
13268   ac_status=$?
13269   grep -v '^ *+' conftest.er1 >conftest.err
13270   rm -f conftest.er1
13271   cat conftest.err >&5
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } &&
13274          { ac_try='test -z "$ac_c_werror_flag"
13275                          || test ! -s conftest.err'
13276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277   (eval $ac_try) 2>&5
13278   ac_status=$?
13279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280   (exit $ac_status); }; } &&
13281          { ac_try='test -s conftest$ac_exeext'
13282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283   (eval $ac_try) 2>&5
13284   ac_status=$?
13285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286   (exit $ac_status); }; }; then
13287   ac_cv_func_connect=yes
13288 else
13289   echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 ac_cv_func_connect=no
13293 fi
13294 rm -f conftest.err conftest.$ac_objext \
13295       conftest$ac_exeext conftest.$ac_ext
13296 fi
13297 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
13298 echo "${ECHO_T}$ac_cv_func_connect" >&6
13299 if test $ac_cv_func_connect = yes; then
13300   gcj_checkSocket=0
13301 else
13302   gcj_checkSocket=1
13303 fi
13304
13305      if test "$gcj_checkSocket" = 1; then
13306          unset ac_cv_func_connect
13307          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
13308 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
13309 if test "${ac_cv_lib_socket_main+set}" = set; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312   ac_check_lib_save_LIBS=$LIBS
13313 LIBS="-lsocket  $LIBS"
13314 if test x$gcc_no_link = xyes; then
13315   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13317    { (exit 1); exit 1; }; }
13318 fi
13319 cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h.  */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h.  */
13325
13326
13327 int
13328 main ()
13329 {
13330 main ();
13331   ;
13332   return 0;
13333 }
13334 _ACEOF
13335 rm -f conftest.$ac_objext conftest$ac_exeext
13336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13337   (eval $ac_link) 2>conftest.er1
13338   ac_status=$?
13339   grep -v '^ *+' conftest.er1 >conftest.err
13340   rm -f conftest.er1
13341   cat conftest.err >&5
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); } &&
13344          { ac_try='test -z "$ac_c_werror_flag"
13345                          || test ! -s conftest.err'
13346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347   (eval $ac_try) 2>&5
13348   ac_status=$?
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); }; } &&
13351          { ac_try='test -s conftest$ac_exeext'
13352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353   (eval $ac_try) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); }; }; then
13357   ac_cv_lib_socket_main=yes
13358 else
13359   echo "$as_me: failed program was:" >&5
13360 sed 's/^/| /' conftest.$ac_ext >&5
13361
13362 ac_cv_lib_socket_main=no
13363 fi
13364 rm -f conftest.err conftest.$ac_objext \
13365       conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13367 fi
13368 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
13369 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
13370 if test $ac_cv_lib_socket_main = yes; then
13371   gcj_cv_lib_sockets="-lsocket"
13372 else
13373   gcj_checkBoth=1
13374 fi
13375
13376      fi
13377      if test "$gcj_checkBoth" = 1; then
13378          gcj_oldLibs=$LIBS
13379          LIBS="$LIBS -lsocket -lnsl"
13380          unset ac_cv_func_accept
13381          echo "$as_me:$LINENO: checking for accept" >&5
13382 echo $ECHO_N "checking for accept... $ECHO_C" >&6
13383 if test "${ac_cv_func_accept+set}" = set; then
13384   echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386   if test x$gcc_no_link = xyes; then
13387   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13388 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13389    { (exit 1); exit 1; }; }
13390 fi
13391 cat >conftest.$ac_ext <<_ACEOF
13392 /* confdefs.h.  */
13393 _ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h.  */
13397 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
13398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13399 #define accept innocuous_accept
13400
13401 /* System header to define __stub macros and hopefully few prototypes,
13402     which can conflict with char accept (); below.
13403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13404     <limits.h> exists even on freestanding compilers.  */
13405
13406 #ifdef __STDC__
13407 # include <limits.h>
13408 #else
13409 # include <assert.h>
13410 #endif
13411
13412 #undef accept
13413
13414 /* Override any gcc2 internal prototype to avoid an error.  */
13415 #ifdef __cplusplus
13416 extern "C"
13417 {
13418 #endif
13419 /* We use char because int might match the return type of a gcc2
13420    builtin and then its argument prototype would still apply.  */
13421 char accept ();
13422 /* The GNU C library defines this for functions which it implements
13423     to always fail with ENOSYS.  Some functions are actually named
13424     something starting with __ and the normal name is an alias.  */
13425 #if defined (__stub_accept) || defined (__stub___accept)
13426 choke me
13427 #else
13428 char (*f) () = accept;
13429 #endif
13430 #ifdef __cplusplus
13431 }
13432 #endif
13433
13434 int
13435 main ()
13436 {
13437 return f != accept;
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 rm -f conftest.$ac_objext conftest$ac_exeext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13444   (eval $ac_link) 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag"
13452                          || test ! -s conftest.err'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; } &&
13458          { ac_try='test -s conftest$ac_exeext'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   ac_cv_func_accept=yes
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469 ac_cv_func_accept=no
13470 fi
13471 rm -f conftest.err conftest.$ac_objext \
13472       conftest$ac_exeext conftest.$ac_ext
13473 fi
13474 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13475 echo "${ECHO_T}$ac_cv_func_accept" >&6
13476 if test $ac_cv_func_accept = yes; then
13477   gcj_checkNsl=0
13478                         gcj_cv_lib_sockets="-lsocket -lnsl"
13479 fi
13480
13481          unset ac_cv_func_accept
13482          LIBS=$gcj_oldLibs
13483      fi
13484      unset ac_cv_func_gethostbyname
13485      gcj_oldLibs=$LIBS
13486      LIBS="$LIBS $gcj_cv_lib_sockets"
13487      echo "$as_me:$LINENO: checking for gethostbyname" >&5
13488 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13489 if test "${ac_cv_func_gethostbyname+set}" = set; then
13490   echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492   if test x$gcc_no_link = xyes; then
13493   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13495    { (exit 1); exit 1; }; }
13496 fi
13497 cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h.  */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h.  */
13503 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13505 #define gethostbyname innocuous_gethostbyname
13506
13507 /* System header to define __stub macros and hopefully few prototypes,
13508     which can conflict with char gethostbyname (); below.
13509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13510     <limits.h> exists even on freestanding compilers.  */
13511
13512 #ifdef __STDC__
13513 # include <limits.h>
13514 #else
13515 # include <assert.h>
13516 #endif
13517
13518 #undef gethostbyname
13519
13520 /* Override any gcc2 internal prototype to avoid an error.  */
13521 #ifdef __cplusplus
13522 extern "C"
13523 {
13524 #endif
13525 /* We use char because int might match the return type of a gcc2
13526    builtin and then its argument prototype would still apply.  */
13527 char gethostbyname ();
13528 /* The GNU C library defines this for functions which it implements
13529     to always fail with ENOSYS.  Some functions are actually named
13530     something starting with __ and the normal name is an alias.  */
13531 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13532 choke me
13533 #else
13534 char (*f) () = gethostbyname;
13535 #endif
13536 #ifdef __cplusplus
13537 }
13538 #endif
13539
13540 int
13541 main ()
13542 {
13543 return f != gethostbyname;
13544   ;
13545   return 0;
13546 }
13547 _ACEOF
13548 rm -f conftest.$ac_objext conftest$ac_exeext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13550   (eval $ac_link) 2>conftest.er1
13551   ac_status=$?
13552   grep -v '^ *+' conftest.er1 >conftest.err
13553   rm -f conftest.er1
13554   cat conftest.err >&5
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } &&
13557          { ac_try='test -z "$ac_c_werror_flag"
13558                          || test ! -s conftest.err'
13559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560   (eval $ac_try) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; } &&
13564          { ac_try='test -s conftest$ac_exeext'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; }; then
13570   ac_cv_func_gethostbyname=yes
13571 else
13572   echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 ac_cv_func_gethostbyname=no
13576 fi
13577 rm -f conftest.err conftest.$ac_objext \
13578       conftest$ac_exeext conftest.$ac_ext
13579 fi
13580 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13581 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13582 if test $ac_cv_func_gethostbyname = yes; then
13583   :
13584 else
13585   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13586 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13587 if test "${ac_cv_lib_nsl_main+set}" = set; then
13588   echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590   ac_check_lib_save_LIBS=$LIBS
13591 LIBS="-lnsl  $LIBS"
13592 if test x$gcc_no_link = xyes; then
13593   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13594 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13595    { (exit 1); exit 1; }; }
13596 fi
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h.  */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h.  */
13603
13604
13605 int
13606 main ()
13607 {
13608 main ();
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615   (eval $ac_link) 2>conftest.er1
13616   ac_status=$?
13617   grep -v '^ *+' conftest.er1 >conftest.err
13618   rm -f conftest.er1
13619   cat conftest.err >&5
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } &&
13622          { ac_try='test -z "$ac_c_werror_flag"
13623                          || test ! -s conftest.err'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest$ac_exeext'
13630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631   (eval $ac_try) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; }; then
13635   ac_cv_lib_nsl_main=yes
13636 else
13637   echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640 ac_cv_lib_nsl_main=no
13641 fi
13642 rm -f conftest.err conftest.$ac_objext \
13643       conftest$ac_exeext conftest.$ac_ext
13644 LIBS=$ac_check_lib_save_LIBS
13645 fi
13646 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13647 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13648 if test $ac_cv_lib_nsl_main = yes; then
13649   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13650 fi
13651
13652 fi
13653
13654      unset ac_cv_func_gethostbyname
13655      LIBS=$gcj_oldLIBS
13656
13657 fi
13658 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13659 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13660    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13661
13662    if test "$with_system_zlib" = yes; then
13663       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13664 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13665 if test "${ac_cv_lib_z_deflate+set}" = set; then
13666   echo $ECHO_N "(cached) $ECHO_C" >&6
13667 else
13668   ac_check_lib_save_LIBS=$LIBS
13669 LIBS="-lz  $LIBS"
13670 if test x$gcc_no_link = xyes; then
13671   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13673    { (exit 1); exit 1; }; }
13674 fi
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h.  */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h.  */
13681
13682 /* Override any gcc2 internal prototype to avoid an error.  */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 /* We use char because int might match the return type of a gcc2
13687    builtin and then its argument prototype would still apply.  */
13688 char deflate ();
13689 int
13690 main ()
13691 {
13692 deflate ();
13693   ;
13694   return 0;
13695 }
13696 _ACEOF
13697 rm -f conftest.$ac_objext conftest$ac_exeext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13699   (eval $ac_link) 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } &&
13706          { ac_try='test -z "$ac_c_werror_flag"
13707                          || test ! -s conftest.err'
13708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709   (eval $ac_try) 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; } &&
13713          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13719   ac_cv_lib_z_deflate=yes
13720 else
13721   echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13723
13724 ac_cv_lib_z_deflate=no
13725 fi
13726 rm -f conftest.err conftest.$ac_objext \
13727       conftest$ac_exeext conftest.$ac_ext
13728 LIBS=$ac_check_lib_save_LIBS
13729 fi
13730 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13731 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13732 if test $ac_cv_lib_z_deflate = yes; then
13733   ZLIBSPEC=-lz
13734 else
13735   ZLIBSPEC=
13736 fi
13737
13738    fi
13739
13740    # Test for Gtk stuff, if asked for.
13741    if test "$use_gtk_awt" = yes; then
13742
13743   succeeded=no
13744
13745   if test -z "$PKG_CONFIG"; then
13746     # Extract the first word of "pkg-config", so it can be a program name with args.
13747 set dummy pkg-config; ac_word=$2
13748 echo "$as_me:$LINENO: checking for $ac_word" >&5
13749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13751   echo $ECHO_N "(cached) $ECHO_C" >&6
13752 else
13753   case $PKG_CONFIG in
13754   [\\/]* | ?:[\\/]*)
13755   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13756   ;;
13757   *)
13758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13760 do
13761   IFS=$as_save_IFS
13762   test -z "$as_dir" && as_dir=.
13763   for ac_exec_ext in '' $ac_executable_extensions; do
13764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13767     break 2
13768   fi
13769 done
13770 done
13771
13772   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13773   ;;
13774 esac
13775 fi
13776 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13777
13778 if test -n "$PKG_CONFIG"; then
13779   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13780 echo "${ECHO_T}$PKG_CONFIG" >&6
13781 else
13782   echo "$as_me:$LINENO: result: no" >&5
13783 echo "${ECHO_T}no" >&6
13784 fi
13785
13786   fi
13787
13788   if test "$PKG_CONFIG" = "no" ; then
13789      echo "*** The pkg-config script could not be found. Make sure it is"
13790      echo "*** in your path, or set the PKG_CONFIG environment variable"
13791      echo "*** to the full path to pkg-config."
13792      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13793   else
13794      PKG_CONFIG_MIN_VERSION=0.9.0
13795      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13796         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13797 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13798
13799         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13800             echo "$as_me:$LINENO: result: yes" >&5
13801 echo "${ECHO_T}yes" >&6
13802             succeeded=yes
13803
13804             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13805 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13806             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13807             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13808 echo "${ECHO_T}$GTK_CFLAGS" >&6
13809
13810             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13811 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13812             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13813             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13814 echo "${ECHO_T}$GTK_LIBS" >&6
13815         else
13816             GTK_CFLAGS=""
13817             GTK_LIBS=""
13818             ## If we have a custom action on failure, don't print errors, but
13819             ## do set a variable so people can do so.
13820             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13821             echo $GTK_PKG_ERRORS
13822         fi
13823
13824
13825
13826      else
13827         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13828         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13829      fi
13830   fi
13831
13832   if test $succeeded = yes; then
13833      :
13834   else
13835      { { 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
13836 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;}
13837    { (exit 1); exit 1; }; }
13838   fi
13839
13840
13841
13842
13843
13844   succeeded=no
13845
13846   if test -z "$PKG_CONFIG"; then
13847     # Extract the first word of "pkg-config", so it can be a program name with args.
13848 set dummy pkg-config; ac_word=$2
13849 echo "$as_me:$LINENO: checking for $ac_word" >&5
13850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   case $PKG_CONFIG in
13855   [\\/]* | ?:[\\/]*)
13856   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13857   ;;
13858   *)
13859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13860 for as_dir in $PATH
13861 do
13862   IFS=$as_save_IFS
13863   test -z "$as_dir" && as_dir=.
13864   for ac_exec_ext in '' $ac_executable_extensions; do
13865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13866     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13868     break 2
13869   fi
13870 done
13871 done
13872
13873   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13874   ;;
13875 esac
13876 fi
13877 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13878
13879 if test -n "$PKG_CONFIG"; then
13880   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13881 echo "${ECHO_T}$PKG_CONFIG" >&6
13882 else
13883   echo "$as_me:$LINENO: result: no" >&5
13884 echo "${ECHO_T}no" >&6
13885 fi
13886
13887   fi
13888
13889   if test "$PKG_CONFIG" = "no" ; then
13890      echo "*** The pkg-config script could not be found. Make sure it is"
13891      echo "*** in your path, or set the PKG_CONFIG environment variable"
13892      echo "*** to the full path to pkg-config."
13893      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13894   else
13895      PKG_CONFIG_MIN_VERSION=0.9.0
13896      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13897         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13898 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13899
13900         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13901             echo "$as_me:$LINENO: result: yes" >&5
13902 echo "${ECHO_T}yes" >&6
13903             succeeded=yes
13904
13905             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13906 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13907             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13908             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13909 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13910
13911             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13912 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13913             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13914             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13915 echo "${ECHO_T}$GLIB_LIBS" >&6
13916         else
13917             GLIB_CFLAGS=""
13918             GLIB_LIBS=""
13919             ## If we have a custom action on failure, don't print errors, but
13920             ## do set a variable so people can do so.
13921             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13922             echo $GLIB_PKG_ERRORS
13923         fi
13924
13925
13926
13927      else
13928         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13929         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13930      fi
13931   fi
13932
13933   if test $succeeded = yes; then
13934      :
13935   else
13936      { { 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
13937 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;}
13938    { (exit 1); exit 1; }; }
13939   fi
13940
13941
13942
13943
13944
13945   succeeded=no
13946
13947   if test -z "$PKG_CONFIG"; then
13948     # Extract the first word of "pkg-config", so it can be a program name with args.
13949 set dummy pkg-config; ac_word=$2
13950 echo "$as_me:$LINENO: checking for $ac_word" >&5
13951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13953   echo $ECHO_N "(cached) $ECHO_C" >&6
13954 else
13955   case $PKG_CONFIG in
13956   [\\/]* | ?:[\\/]*)
13957   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13958   ;;
13959   *)
13960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13962 do
13963   IFS=$as_save_IFS
13964   test -z "$as_dir" && as_dir=.
13965   for ac_exec_ext in '' $ac_executable_extensions; do
13966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13967     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13969     break 2
13970   fi
13971 done
13972 done
13973
13974   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13975   ;;
13976 esac
13977 fi
13978 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13979
13980 if test -n "$PKG_CONFIG"; then
13981   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13982 echo "${ECHO_T}$PKG_CONFIG" >&6
13983 else
13984   echo "$as_me:$LINENO: result: no" >&5
13985 echo "${ECHO_T}no" >&6
13986 fi
13987
13988   fi
13989
13990   if test "$PKG_CONFIG" = "no" ; then
13991      echo "*** The pkg-config script could not be found. Make sure it is"
13992      echo "*** in your path, or set the PKG_CONFIG environment variable"
13993      echo "*** to the full path to pkg-config."
13994      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13995   else
13996      PKG_CONFIG_MIN_VERSION=0.9.0
13997      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13998         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13999 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
14000
14001         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14002             echo "$as_me:$LINENO: result: yes" >&5
14003 echo "${ECHO_T}yes" >&6
14004             succeeded=yes
14005
14006             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14007 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
14008             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14009             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
14010 echo "${ECHO_T}$LIBART_CFLAGS" >&6
14011
14012             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
14013 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
14014             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
14015             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
14016 echo "${ECHO_T}$LIBART_LIBS" >&6
14017         else
14018             LIBART_CFLAGS=""
14019             LIBART_LIBS=""
14020             ## If we have a custom action on failure, don't print errors, but
14021             ## do set a variable so people can do so.
14022             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
14023             echo $LIBART_PKG_ERRORS
14024         fi
14025
14026
14027
14028      else
14029         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14030         echo "*** See http://www.freedesktop.org/software/pkgconfig"
14031      fi
14032   fi
14033
14034   if test $succeeded = yes; then
14035      :
14036   else
14037      { { 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
14038 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;}
14039    { (exit 1); exit 1; }; }
14040   fi
14041
14042
14043
14044
14045       # We require the XTest Extension to support java.awt.Robot.
14046       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
14047 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
14048 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 else
14051   ac_check_lib_save_LIBS=$LIBS
14052 LIBS="-lXtst ${X_LIBS} $LIBS"
14053 if test x$gcc_no_link = xyes; then
14054   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14056    { (exit 1); exit 1; }; }
14057 fi
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h.  */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h.  */
14064
14065 /* Override any gcc2 internal prototype to avoid an error.  */
14066 #ifdef __cplusplus
14067 extern "C"
14068 #endif
14069 /* We use char because int might match the return type of a gcc2
14070    builtin and then its argument prototype would still apply.  */
14071 char XTestQueryExtension ();
14072 int
14073 main ()
14074 {
14075 XTestQueryExtension ();
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082   (eval $ac_link) 2>conftest.er1
14083   ac_status=$?
14084   grep -v '^ *+' conftest.er1 >conftest.err
14085   rm -f conftest.er1
14086   cat conftest.err >&5
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); } &&
14089          { ac_try='test -z "$ac_c_werror_flag"
14090                          || test ! -s conftest.err'
14091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092   (eval $ac_try) 2>&5
14093   ac_status=$?
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); }; } &&
14096          { ac_try='test -s conftest$ac_exeext'
14097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098   (eval $ac_try) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; }; then
14102   ac_cv_lib_Xtst_XTestQueryExtension=yes
14103 else
14104   echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 ac_cv_lib_Xtst_XTestQueryExtension=no
14108 fi
14109 rm -f conftest.err conftest.$ac_objext \
14110       conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14112 fi
14113 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
14114 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
14115 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
14116   true
14117 else
14118   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
14119 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
14120    { (exit 1); exit 1; }; }
14121 fi
14122
14123    fi
14124
14125    # On Solaris, and maybe other architectures, the Boehm collector
14126    # requires -ldl.
14127    if test "$GC" = boehm; then
14128       echo "$as_me:$LINENO: checking for main in -ldl" >&5
14129 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
14130 if test "${ac_cv_lib_dl_main+set}" = set; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-ldl  $LIBS"
14135 if test x$gcc_no_link = xyes; then
14136   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14138    { (exit 1); exit 1; }; }
14139 fi
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h.  */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h.  */
14146
14147
14148 int
14149 main ()
14150 {
14151 main ();
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest.$ac_objext conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158   (eval $ac_link) 2>conftest.er1
14159   ac_status=$?
14160   grep -v '^ *+' conftest.er1 >conftest.err
14161   rm -f conftest.er1
14162   cat conftest.err >&5
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); } &&
14165          { ac_try='test -z "$ac_c_werror_flag"
14166                          || test ! -s conftest.err'
14167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168   (eval $ac_try) 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; } &&
14172          { ac_try='test -s conftest$ac_exeext'
14173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174   (eval $ac_try) 2>&5
14175   ac_status=$?
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); }; }; then
14178   ac_cv_lib_dl_main=yes
14179 else
14180   echo "$as_me: failed program was:" >&5
14181 sed 's/^/| /' conftest.$ac_ext >&5
14182
14183 ac_cv_lib_dl_main=no
14184 fi
14185 rm -f conftest.err conftest.$ac_objext \
14186       conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14188 fi
14189 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
14190 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
14191 if test $ac_cv_lib_dl_main = yes; then
14192   SYSTEMSPEC="$SYSTEMSPEC -ldl"
14193 fi
14194
14195    fi
14196 fi
14197
14198 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
14199 case $build in
14200     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
14201     *)         CLASSPATH_SEPARATOR=':' ;;
14202 esac
14203
14204
14205 # We must search the source tree for java.lang, since we still don't
14206 # have libgcj.jar nor java/lang/*.class
14207 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
14208 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
14209
14210 # Since some classes depend on this one, we need its source available
14211 # before we can do any GCJ compilation test :-(
14212 if test ! -f gnu/classpath/Configuration.java; then
14213   test -d gnu || mkdir gnu
14214   test -d gnu/classpath || mkdir gnu/classpath
14215   # Note that it is not crucial that all the values here be correct.
14216   sed -e "s,@prefix@,$prefix," \
14217       -e "s,@VERSION@,$VERSION," \
14218       -e "s,@LIBDEBUG@,false," \
14219       -e "s,@INIT_LOAD_LIBRARY@,false," \
14220       -e "s,@@,$LIBGCJDEBUG," \
14221       -e "s,@default_toolkit@,$TOOLKIT," \
14222       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
14223       -e "s,@GTK_CAIRO_ENABLED@,false," \
14224         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
14225         > gnu/classpath/Configuration.java
14226   # We do not want to redirect the output of the grep below to /dev/null,
14227   # but we add /dev/null to the input list so that grep will print the
14228   # filename of Configuration.java in case it finds any matches.
14229   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
14230     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
14231 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
14232    { (exit 1); exit 1; }; }
14233   fi
14234 fi
14235
14236 if test -n "$ac_tool_prefix"; then
14237   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}gcj; ac_word=$2
14239 echo "$as_me:$LINENO: checking for $ac_word" >&5
14240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14241 if test "${ac_cv_prog_GCJ+set}" = set; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   if test -n "$GCJ"; then
14245   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
14246 else
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14249 do
14250   IFS=$as_save_IFS
14251   test -z "$as_dir" && as_dir=.
14252   for ac_exec_ext in '' $ac_executable_extensions; do
14253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14254     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
14255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14256     break 2
14257   fi
14258 done
14259 done
14260
14261 fi
14262 fi
14263 GCJ=$ac_cv_prog_GCJ
14264 if test -n "$GCJ"; then
14265   echo "$as_me:$LINENO: result: $GCJ" >&5
14266 echo "${ECHO_T}$GCJ" >&6
14267 else
14268   echo "$as_me:$LINENO: result: no" >&5
14269 echo "${ECHO_T}no" >&6
14270 fi
14271
14272 fi
14273 if test -z "$ac_cv_prog_GCJ"; then
14274   ac_ct_GCJ=$GCJ
14275   # Extract the first word of "gcj", so it can be a program name with args.
14276 set dummy gcj; ac_word=$2
14277 echo "$as_me:$LINENO: checking for $ac_word" >&5
14278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14279 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   if test -n "$ac_ct_GCJ"; then
14283   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
14284 else
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14287 do
14288   IFS=$as_save_IFS
14289   test -z "$as_dir" && as_dir=.
14290   for ac_exec_ext in '' $ac_executable_extensions; do
14291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292     ac_cv_prog_ac_ct_GCJ="gcj"
14293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14294     break 2
14295   fi
14296 done
14297 done
14298
14299   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
14300 fi
14301 fi
14302 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
14303 if test -n "$ac_ct_GCJ"; then
14304   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
14305 echo "${ECHO_T}$ac_ct_GCJ" >&6
14306 else
14307   echo "$as_me:$LINENO: result: no" >&5
14308 echo "${ECHO_T}no" >&6
14309 fi
14310
14311   GCJ=$ac_ct_GCJ
14312 else
14313   GCJ="$ac_cv_prog_GCJ"
14314 fi
14315
14316   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
14317
14318
14319
14320
14321 # Now remove it.
14322 rm -f gnu/classpath/Configuration.java
14323
14324 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
14325
14326 echo "$as_me:$LINENO: checking for void *" >&5
14327 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14328 if test "${ac_cv_type_void_p+set}" = set; then
14329   echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331   cat >conftest.$ac_ext <<_ACEOF
14332 /* confdefs.h.  */
14333 _ACEOF
14334 cat confdefs.h >>conftest.$ac_ext
14335 cat >>conftest.$ac_ext <<_ACEOF
14336 /* end confdefs.h.  */
14337 $ac_includes_default
14338 int
14339 main ()
14340 {
14341 if ((void * *) 0)
14342   return 0;
14343 if (sizeof (void *))
14344   return 0;
14345   ;
14346   return 0;
14347 }
14348 _ACEOF
14349 rm -f conftest.$ac_objext
14350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14351   (eval $ac_compile) 2>conftest.er1
14352   ac_status=$?
14353   grep -v '^ *+' conftest.er1 >conftest.err
14354   rm -f conftest.er1
14355   cat conftest.err >&5
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); } &&
14358          { ac_try='test -z "$ac_c_werror_flag"
14359                          || test ! -s conftest.err'
14360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361   (eval $ac_try) 2>&5
14362   ac_status=$?
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); }; } &&
14365          { ac_try='test -s conftest.$ac_objext'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   ac_cv_type_void_p=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376 ac_cv_type_void_p=no
14377 fi
14378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14379 fi
14380 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14381 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14382
14383 echo "$as_me:$LINENO: checking size of void *" >&5
14384 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14385 if test "${ac_cv_sizeof_void_p+set}" = set; then
14386   echo $ECHO_N "(cached) $ECHO_C" >&6
14387 else
14388   if test "$ac_cv_type_void_p" = yes; then
14389   # The cast to unsigned long works around a bug in the HP C Compiler
14390   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14391   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14392   # This bug is HP SR number 8606223364.
14393   if test "$cross_compiling" = yes; then
14394   # Depending upon the size, compute the lo and hi bounds.
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h.  */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h.  */
14401 $ac_includes_default
14402 int
14403 main ()
14404 {
14405 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14406 test_array [0] = 0
14407
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414   (eval $ac_compile) 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } &&
14421          { ac_try='test -z "$ac_c_werror_flag"
14422                          || test ! -s conftest.err'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; } &&
14428          { ac_try='test -s conftest.$ac_objext'
14429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430   (eval $ac_try) 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434   ac_lo=0 ac_mid=0
14435   while :; do
14436     cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 $ac_includes_default
14443 int
14444 main ()
14445 {
14446 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14447 test_array [0] = 0
14448
14449   ;
14450   return 0;
14451 }
14452 _ACEOF
14453 rm -f conftest.$ac_objext
14454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14455   (eval $ac_compile) 2>conftest.er1
14456   ac_status=$?
14457   grep -v '^ *+' conftest.er1 >conftest.err
14458   rm -f conftest.er1
14459   cat conftest.err >&5
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -z "$ac_c_werror_flag"
14463                          || test ! -s conftest.err'
14464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465   (eval $ac_try) 2>&5
14466   ac_status=$?
14467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468   (exit $ac_status); }; } &&
14469          { ac_try='test -s conftest.$ac_objext'
14470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471   (eval $ac_try) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; }; then
14475   ac_hi=$ac_mid; break
14476 else
14477   echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14479
14480 ac_lo=`expr $ac_mid + 1`
14481                     if test $ac_lo -le $ac_mid; then
14482                       ac_lo= ac_hi=
14483                       break
14484                     fi
14485                     ac_mid=`expr 2 '*' $ac_mid + 1`
14486 fi
14487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14488   done
14489 else
14490   echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 cat >conftest.$ac_ext <<_ACEOF
14494 /* confdefs.h.  */
14495 _ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h.  */
14499 $ac_includes_default
14500 int
14501 main ()
14502 {
14503 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14504 test_array [0] = 0
14505
14506   ;
14507   return 0;
14508 }
14509 _ACEOF
14510 rm -f conftest.$ac_objext
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512   (eval $ac_compile) 2>conftest.er1
14513   ac_status=$?
14514   grep -v '^ *+' conftest.er1 >conftest.err
14515   rm -f conftest.er1
14516   cat conftest.err >&5
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); } &&
14519          { ac_try='test -z "$ac_c_werror_flag"
14520                          || test ! -s conftest.err'
14521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522   (eval $ac_try) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; } &&
14526          { ac_try='test -s conftest.$ac_objext'
14527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528   (eval $ac_try) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); }; }; then
14532   ac_hi=-1 ac_mid=-1
14533   while :; do
14534     cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h.  */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h.  */
14540 $ac_includes_default
14541 int
14542 main ()
14543 {
14544 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14545 test_array [0] = 0
14546
14547   ;
14548   return 0;
14549 }
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553   (eval $ac_compile) 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } &&
14560          { ac_try='test -z "$ac_c_werror_flag"
14561                          || test ! -s conftest.err'
14562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563   (eval $ac_try) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; } &&
14567          { ac_try='test -s conftest.$ac_objext'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573   ac_lo=$ac_mid; break
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578 ac_hi=`expr '(' $ac_mid ')' - 1`
14579                        if test $ac_mid -le $ac_hi; then
14580                          ac_lo= ac_hi=
14581                          break
14582                        fi
14583                        ac_mid=`expr 2 '*' $ac_mid`
14584 fi
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14586   done
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 ac_lo= ac_hi=
14592 fi
14593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14594 fi
14595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14596 # Binary search between lo and hi bounds.
14597 while test "x$ac_lo" != "x$ac_hi"; do
14598   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14599   cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h.  */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h.  */
14605 $ac_includes_default
14606 int
14607 main ()
14608 {
14609 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14610 test_array [0] = 0
14611
14612   ;
14613   return 0;
14614 }
14615 _ACEOF
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618   (eval $ac_compile) 2>conftest.er1
14619   ac_status=$?
14620   grep -v '^ *+' conftest.er1 >conftest.err
14621   rm -f conftest.er1
14622   cat conftest.err >&5
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } &&
14625          { ac_try='test -z "$ac_c_werror_flag"
14626                          || test ! -s conftest.err'
14627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628   (eval $ac_try) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638   ac_hi=$ac_mid
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643 ac_lo=`expr '(' $ac_mid ')' + 1`
14644 fi
14645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14646 done
14647 case $ac_lo in
14648 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14649 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14650 See \`config.log' for more details." >&5
14651 echo "$as_me: error: cannot compute sizeof (void *), 77
14652 See \`config.log' for more details." >&2;}
14653    { (exit 1); exit 1; }; } ;;
14654 esac
14655 else
14656   if test "$cross_compiling" = yes; then
14657   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14658 See \`config.log' for more details." >&5
14659 echo "$as_me: error: cannot run test program while cross compiling
14660 See \`config.log' for more details." >&2;}
14661    { (exit 1); exit 1; }; }
14662 else
14663   cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h.  */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h.  */
14669 $ac_includes_default
14670 long longval () { return (long) (sizeof (void *)); }
14671 unsigned long ulongval () { return (long) (sizeof (void *)); }
14672 #include <stdio.h>
14673 #include <stdlib.h>
14674 int
14675 main ()
14676 {
14677
14678   FILE *f = fopen ("conftest.val", "w");
14679   if (! f)
14680     exit (1);
14681   if (((long) (sizeof (void *))) < 0)
14682     {
14683       long i = longval ();
14684       if (i != ((long) (sizeof (void *))))
14685         exit (1);
14686       fprintf (f, "%ld\n", i);
14687     }
14688   else
14689     {
14690       unsigned long i = ulongval ();
14691       if (i != ((long) (sizeof (void *))))
14692         exit (1);
14693       fprintf (f, "%lu\n", i);
14694     }
14695   exit (ferror (f) || fclose (f) != 0);
14696
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 rm -f conftest$ac_exeext
14702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14703   (eval $ac_link) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708   (eval $ac_try) 2>&5
14709   ac_status=$?
14710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711   (exit $ac_status); }; }; then
14712   ac_cv_sizeof_void_p=`cat conftest.val`
14713 else
14714   echo "$as_me: program exited with status $ac_status" >&5
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 ( exit $ac_status )
14719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14720 See \`config.log' for more details." >&5
14721 echo "$as_me: error: cannot compute sizeof (void *), 77
14722 See \`config.log' for more details." >&2;}
14723    { (exit 1); exit 1; }; }
14724 fi
14725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 fi
14728 rm -f conftest.val
14729 else
14730   ac_cv_sizeof_void_p=0
14731 fi
14732 fi
14733 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14734 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14735 cat >>confdefs.h <<_ACEOF
14736 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14737 _ACEOF
14738
14739
14740
14741 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14742 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14743 if test "${ac_cv_c_bigendian+set}" = set; then
14744   echo $ECHO_N "(cached) $ECHO_C" >&6
14745 else
14746   # See if sys/param.h defines the BYTE_ORDER macro.
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753 #include <sys/types.h>
14754 #include <sys/param.h>
14755
14756 int
14757 main ()
14758 {
14759 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14760  bogus endian macros
14761 #endif
14762
14763   ;
14764   return 0;
14765 }
14766 _ACEOF
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769   (eval $ac_compile) 2>conftest.er1
14770   ac_status=$?
14771   grep -v '^ *+' conftest.er1 >conftest.err
14772   rm -f conftest.er1
14773   cat conftest.err >&5
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } &&
14776          { ac_try='test -z "$ac_c_werror_flag"
14777                          || test ! -s conftest.err'
14778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779   (eval $ac_try) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; } &&
14783          { ac_try='test -s conftest.$ac_objext'
14784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785   (eval $ac_try) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); }; }; then
14789   # It does; now see whether it defined to BIG_ENDIAN or not.
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796 #include <sys/types.h>
14797 #include <sys/param.h>
14798
14799 int
14800 main ()
14801 {
14802 #if BYTE_ORDER != BIG_ENDIAN
14803  not big endian
14804 #endif
14805
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812   (eval $ac_compile) 2>conftest.er1
14813   ac_status=$?
14814   grep -v '^ *+' conftest.er1 >conftest.err
14815   rm -f conftest.er1
14816   cat conftest.err >&5
14817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818   (exit $ac_status); } &&
14819          { ac_try='test -z "$ac_c_werror_flag"
14820                          || test ! -s conftest.err'
14821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822   (eval $ac_try) 2>&5
14823   ac_status=$?
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); }; } &&
14826          { ac_try='test -s conftest.$ac_objext'
14827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828   (eval $ac_try) 2>&5
14829   ac_status=$?
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); }; }; then
14832   ac_cv_c_bigendian=yes
14833 else
14834   echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 ac_cv_c_bigendian=no
14838 fi
14839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14840 else
14841   echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844 # It does not; compile a test program.
14845 if test "$cross_compiling" = yes; then
14846   # try to guess the endianness by grepping values into an object file
14847   ac_cv_c_bigendian=unknown
14848   cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14855 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14856 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14857 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14858 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14859 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14860 int
14861 main ()
14862 {
14863  _ascii (); _ebcdic ();
14864   ;
14865   return 0;
14866 }
14867 _ACEOF
14868 rm -f conftest.$ac_objext
14869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14870   (eval $ac_compile) 2>conftest.er1
14871   ac_status=$?
14872   grep -v '^ *+' conftest.er1 >conftest.err
14873   rm -f conftest.er1
14874   cat conftest.err >&5
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); } &&
14877          { ac_try='test -z "$ac_c_werror_flag"
14878                          || test ! -s conftest.err'
14879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880   (eval $ac_try) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; } &&
14884          { ac_try='test -s conftest.$ac_objext'
14885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14886   (eval $ac_try) 2>&5
14887   ac_status=$?
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); }; }; then
14890   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14891   ac_cv_c_bigendian=yes
14892 fi
14893 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14894   if test "$ac_cv_c_bigendian" = unknown; then
14895     ac_cv_c_bigendian=no
14896   else
14897     # finding both strings is unlikely to happen, but who knows?
14898     ac_cv_c_bigendian=unknown
14899   fi
14900 fi
14901 else
14902   echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 fi
14906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14907 else
14908   cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 int
14915 main ()
14916 {
14917   /* Are we little or big endian?  From Harbison&Steele.  */
14918   union
14919   {
14920     long l;
14921     char c[sizeof (long)];
14922   } u;
14923   u.l = 1;
14924   exit (u.c[sizeof (long) - 1] == 1);
14925 }
14926 _ACEOF
14927 rm -f conftest$ac_exeext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14929   (eval $ac_link) 2>&5
14930   ac_status=$?
14931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934   (eval $ac_try) 2>&5
14935   ac_status=$?
14936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937   (exit $ac_status); }; }; then
14938   ac_cv_c_bigendian=no
14939 else
14940   echo "$as_me: program exited with status $ac_status" >&5
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14943
14944 ( exit $ac_status )
14945 ac_cv_c_bigendian=yes
14946 fi
14947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14948 fi
14949 fi
14950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951 fi
14952 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14953 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14954 case $ac_cv_c_bigendian in
14955   yes)
14956
14957 cat >>confdefs.h <<\_ACEOF
14958 #define WORDS_BIGENDIAN 1
14959 _ACEOF
14960  ;;
14961   no)
14962      ;;
14963   *)
14964     { { echo "$as_me:$LINENO: error: unknown endianness
14965 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14966 echo "$as_me: error: unknown endianness
14967 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14968    { (exit 1); exit 1; }; } ;;
14969 esac
14970
14971
14972 ZLIBS=
14973 SYS_ZLIBS=
14974 ZINCS=
14975
14976 if test -z "$ZLIBSPEC"; then
14977    # Use zlib from the GCC tree.
14978    ZINCS='-I$(top_srcdir)/../zlib'
14979    ZLIBS=../zlib/libzgcj_convenience.la
14980 else
14981    # System's zlib.
14982    SYS_ZLIBS="$ZLIBSPEC"
14983 fi
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995 if test "$NATIVE" = yes; then
14996   NATIVE_TRUE=
14997   NATIVE_FALSE='#'
14998 else
14999   NATIVE_TRUE='#'
15000   NATIVE_FALSE=
15001 fi
15002
15003
15004
15005 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
15006   NEEDS_DATA_START_TRUE=
15007   NEEDS_DATA_START_FALSE='#'
15008 else
15009   NEEDS_DATA_START_TRUE='#'
15010   NEEDS_DATA_START_FALSE=
15011 fi
15012
15013
15014
15015 # Process the option "--enable-version-specific-runtime-libs"
15016 # Calculate toolexeclibdir
15017 case ${version_specific_libs} in
15018   yes)
15019     # Need the gcc compiler version to know where to install libraries
15020     # and header files if --enable-version-specific-runtime-libs option
15021     # is selected.
15022     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
15023     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
15024     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
15025     toolexeclibdir=$toolexecmainlibdir
15026     ;;
15027   no)
15028     if test -n "$with_cross_host" &&
15029        test x"$with_cross_host" != x"no"; then
15030       # Install a library built with a cross compiler in tooldir, not libdir.
15031       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
15032       toolexecmainlibdir='$(toolexecdir)/lib'
15033     else
15034       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
15035       toolexecmainlibdir='$(libdir)'
15036     fi
15037     multi_os_directory=`$CC -print-multi-os-directory`
15038     case $multi_os_directory in
15039       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
15040       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
15041     esac
15042     ;;
15043 esac
15044
15045
15046
15047
15048 # Determine where the standard .db file and GNU Classpath JNI
15049 # libraries are found.
15050 multi_os_directory=`$CC -print-multi-os-directory`
15051 case $multi_os_directory in
15052   .)
15053    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
15054    ;;
15055   *)
15056    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
15057    ;;
15058 esac
15059
15060
15061 # Determine gcj version number.
15062 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
15063 GCJVERSION=$gcjversion
15064
15065
15066 cat >>confdefs.h <<_ACEOF
15067 #define GCJVERSION "$GCJVERSION"
15068 _ACEOF
15069
15070
15071
15072 cat >>confdefs.h <<\_ACEOF
15073 #define JV_VERSION "1.4.2"
15074 _ACEOF
15075
15076
15077 cat >>confdefs.h <<\_ACEOF
15078 #define JV_API_VERSION "1.4"
15079 _ACEOF
15080
15081
15082
15083 case "${with_gxx_include_dir}" in
15084   yes)
15085     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
15086 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
15087    { (exit 1); exit 1; }; }
15088     ;;
15089   no | "")
15090     case "${enable_version_specific_runtime_libs}" in
15091       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
15092       *)
15093         libstdcxx_incdir='c++/$(gcc_version)'
15094         gxx_include_dir='include/$(libstdcxx_incdir)'
15095         if test -n "$with_cross_host" &&
15096            test x"$with_cross_host" != x"no"; then
15097           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
15098         else
15099           gxx_include_dir='${prefix}/'"$gxx_include_dir"
15100         fi;;
15101     esac ;;
15102   *) gxx_include_dir=${with_gxx_include_dir} ;;
15103 esac
15104
15105
15106
15107
15108 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
15109 # On that system, sys/ioctl.h will not include sys/filio.h unless
15110 # BSD_COMP is defined; just including sys/filio.h is simpler.
15111 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
15112 # for now.  If you change this, you also must update natFile.cc.
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
15136                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
15137                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
15138                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
15139                   dirent.h sys/rw_lock.h ifaddrs.h
15140 do
15141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15143   echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15146   echo $ECHO_N "(cached) $ECHO_C" >&6
15147 fi
15148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15150 else
15151   # Is the header compilable?
15152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 $ac_includes_default
15161 #include <$ac_header>
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165   (eval $ac_compile) 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } &&
15172          { ac_try='test -z "$ac_c_werror_flag"
15173                          || test ! -s conftest.err'
15174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175   (eval $ac_try) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; } &&
15179          { ac_try='test -s conftest.$ac_objext'
15180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181   (eval $ac_try) 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; }; then
15185   ac_header_compiler=yes
15186 else
15187   echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190 ac_header_compiler=no
15191 fi
15192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15194 echo "${ECHO_T}$ac_header_compiler" >&6
15195
15196 # Is the header present?
15197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h.  */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h.  */
15205 #include <$ac_header>
15206 _ACEOF
15207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15209   ac_status=$?
15210   grep -v '^ *+' conftest.er1 >conftest.err
15211   rm -f conftest.er1
15212   cat conftest.err >&5
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); } >/dev/null; then
15215   if test -s conftest.err; then
15216     ac_cpp_err=$ac_c_preproc_warn_flag
15217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15218   else
15219     ac_cpp_err=
15220   fi
15221 else
15222   ac_cpp_err=yes
15223 fi
15224 if test -z "$ac_cpp_err"; then
15225   ac_header_preproc=yes
15226 else
15227   echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15229
15230   ac_header_preproc=no
15231 fi
15232 rm -f conftest.err conftest.$ac_ext
15233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15234 echo "${ECHO_T}$ac_header_preproc" >&6
15235
15236 # So?  What about this header?
15237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15238   yes:no: )
15239     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15243     ac_header_preproc=yes
15244     ;;
15245   no:yes:* )
15246     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15248     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15249 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15250     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15252     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15253 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15256     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15258     (
15259       cat <<\_ASBOX
15260 ## ---------------------------------- ##
15261 ## Report this to the libjava lists.  ##
15262 ## ---------------------------------- ##
15263 _ASBOX
15264     ) |
15265       sed "s/^/$as_me: WARNING:     /" >&2
15266     ;;
15267 esac
15268 echo "$as_me:$LINENO: checking for $ac_header" >&5
15269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15271   echo $ECHO_N "(cached) $ECHO_C" >&6
15272 else
15273   eval "$as_ac_Header=\$ac_header_preproc"
15274 fi
15275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15277
15278 fi
15279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15280   cat >>confdefs.h <<_ACEOF
15281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15282 _ACEOF
15283
15284 fi
15285
15286 done
15287
15288
15289 for ac_header in inttypes.h
15290 do
15291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15293   echo "$as_me:$LINENO: checking for $ac_header" >&5
15294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15296   echo $ECHO_N "(cached) $ECHO_C" >&6
15297 fi
15298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15300 else
15301   # Is the header compilable?
15302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15304 cat >conftest.$ac_ext <<_ACEOF
15305 /* confdefs.h.  */
15306 _ACEOF
15307 cat confdefs.h >>conftest.$ac_ext
15308 cat >>conftest.$ac_ext <<_ACEOF
15309 /* end confdefs.h.  */
15310 $ac_includes_default
15311 #include <$ac_header>
15312 _ACEOF
15313 rm -f conftest.$ac_objext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15315   (eval $ac_compile) 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } &&
15322          { ac_try='test -z "$ac_c_werror_flag"
15323                          || test ! -s conftest.err'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; } &&
15329          { ac_try='test -s conftest.$ac_objext'
15330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331   (eval $ac_try) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; }; then
15335   ac_header_compiler=yes
15336 else
15337   echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340 ac_header_compiler=no
15341 fi
15342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15344 echo "${ECHO_T}$ac_header_compiler" >&6
15345
15346 # Is the header present?
15347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355 #include <$ac_header>
15356 _ACEOF
15357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } >/dev/null; then
15365   if test -s conftest.err; then
15366     ac_cpp_err=$ac_c_preproc_warn_flag
15367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15368   else
15369     ac_cpp_err=
15370   fi
15371 else
15372   ac_cpp_err=yes
15373 fi
15374 if test -z "$ac_cpp_err"; then
15375   ac_header_preproc=yes
15376 else
15377   echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15379
15380   ac_header_preproc=no
15381 fi
15382 rm -f conftest.err conftest.$ac_ext
15383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384 echo "${ECHO_T}$ac_header_preproc" >&6
15385
15386 # So?  What about this header?
15387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15388   yes:no: )
15389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393     ac_header_preproc=yes
15394     ;;
15395   no:yes:* )
15396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15408     (
15409       cat <<\_ASBOX
15410 ## ---------------------------------- ##
15411 ## Report this to the libjava lists.  ##
15412 ## ---------------------------------- ##
15413 _ASBOX
15414     ) |
15415       sed "s/^/$as_me: WARNING:     /" >&2
15416     ;;
15417 esac
15418 echo "$as_me:$LINENO: checking for $ac_header" >&5
15419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15421   echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423   eval "$as_ac_Header=\$ac_header_preproc"
15424 fi
15425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15427
15428 fi
15429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15430   cat >>confdefs.h <<_ACEOF
15431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15432 _ACEOF
15433
15434
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE_INTTYPES_H 1
15437 _ACEOF
15438
15439
15440 cat >>confdefs.h <<\_ACEOF
15441 #define JV_HAVE_INTTYPES_H 1
15442 _ACEOF
15443
15444
15445 fi
15446
15447 done
15448
15449 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15450 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
15451 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15452   echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454   cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h.  */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h.  */
15460 #include <sys/types.h>
15461 #include <sys/wait.h>
15462 #ifndef WEXITSTATUS
15463 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
15464 #endif
15465 #ifndef WIFEXITED
15466 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15467 #endif
15468
15469 int
15470 main ()
15471 {
15472   int s;
15473   wait (&s);
15474   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15475   ;
15476   return 0;
15477 }
15478 _ACEOF
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481   (eval $ac_compile) 2>conftest.er1
15482   ac_status=$?
15483   grep -v '^ *+' conftest.er1 >conftest.err
15484   rm -f conftest.er1
15485   cat conftest.err >&5
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); } &&
15488          { ac_try='test -z "$ac_c_werror_flag"
15489                          || test ! -s conftest.err'
15490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491   (eval $ac_try) 2>&5
15492   ac_status=$?
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); }; } &&
15495          { ac_try='test -s conftest.$ac_objext'
15496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497   (eval $ac_try) 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; }; then
15501   ac_cv_header_sys_wait_h=yes
15502 else
15503   echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506 ac_cv_header_sys_wait_h=no
15507 fi
15508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15509 fi
15510 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15511 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
15512 if test $ac_cv_header_sys_wait_h = yes; then
15513
15514 cat >>confdefs.h <<\_ACEOF
15515 #define HAVE_SYS_WAIT_H 1
15516 _ACEOF
15517
15518 fi
15519
15520
15521 echo "$as_me:$LINENO: checking for ssize_t" >&5
15522 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15523 if test "${ac_cv_type_ssize_t+set}" = set; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526   cat >conftest.$ac_ext <<_ACEOF
15527 /* confdefs.h.  */
15528 _ACEOF
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h.  */
15532 $ac_includes_default
15533 int
15534 main ()
15535 {
15536 if ((ssize_t *) 0)
15537   return 0;
15538 if (sizeof (ssize_t))
15539   return 0;
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 rm -f conftest.$ac_objext
15545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15546   (eval $ac_compile) 2>conftest.er1
15547   ac_status=$?
15548   grep -v '^ *+' conftest.er1 >conftest.err
15549   rm -f conftest.er1
15550   cat conftest.err >&5
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); } &&
15553          { ac_try='test -z "$ac_c_werror_flag"
15554                          || test ! -s conftest.err'
15555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556   (eval $ac_try) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; } &&
15560          { ac_try='test -s conftest.$ac_objext'
15561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562   (eval $ac_try) 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); }; }; then
15566   ac_cv_type_ssize_t=yes
15567 else
15568   echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15570
15571 ac_cv_type_ssize_t=no
15572 fi
15573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15574 fi
15575 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15576 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15577 if test $ac_cv_type_ssize_t = yes; then
15578   :
15579 else
15580
15581 cat >>confdefs.h <<_ACEOF
15582 #define ssize_t int
15583 _ACEOF
15584
15585 fi
15586
15587
15588 echo "$as_me:$LINENO: checking for in_addr_t" >&5
15589 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
15590 cat >conftest.$ac_ext <<_ACEOF
15591 /* confdefs.h.  */
15592 _ACEOF
15593 cat confdefs.h >>conftest.$ac_ext
15594 cat >>conftest.$ac_ext <<_ACEOF
15595 /* end confdefs.h.  */
15596 #include <sys/types.h>
15597 #if STDC_HEADERS
15598 #include <stdlib.h>
15599 #include <stddef.h>
15600 #endif
15601 #if HAVE_NETINET_IN_H
15602 #include <netinet/in.h>
15603 #endif
15604 int
15605 main ()
15606 {
15607 in_addr_t foo;
15608   ;
15609   return 0;
15610 }
15611 _ACEOF
15612 rm -f conftest.$ac_objext
15613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15614   (eval $ac_compile) 2>conftest.er1
15615   ac_status=$?
15616   grep -v '^ *+' conftest.er1 >conftest.err
15617   rm -f conftest.er1
15618   cat conftest.err >&5
15619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620   (exit $ac_status); } &&
15621          { ac_try='test -z "$ac_c_werror_flag"
15622                          || test ! -s conftest.err'
15623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624   (eval $ac_try) 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; } &&
15628          { ac_try='test -s conftest.$ac_objext'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; }; then
15634
15635 cat >>confdefs.h <<\_ACEOF
15636 #define HAVE_IN_ADDR_T 1
15637 _ACEOF
15638
15639    echo "$as_me:$LINENO: result: yes" >&5
15640 echo "${ECHO_T}yes" >&6
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 echo "$as_me:$LINENO: result: no" >&5
15646 echo "${ECHO_T}no" >&6
15647 fi
15648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15649
15650 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
15651 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h.  */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h.  */
15658 #include <netinet/in.h>
15659 int
15660 main ()
15661 {
15662 struct ip_mreq mreq;
15663   ;
15664   return 0;
15665 }
15666 _ACEOF
15667 rm -f conftest.$ac_objext
15668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15669   (eval $ac_compile) 2>conftest.er1
15670   ac_status=$?
15671   grep -v '^ *+' conftest.er1 >conftest.err
15672   rm -f conftest.er1
15673   cat conftest.err >&5
15674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675   (exit $ac_status); } &&
15676          { ac_try='test -z "$ac_c_werror_flag"
15677                          || test ! -s conftest.err'
15678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15679   (eval $ac_try) 2>&5
15680   ac_status=$?
15681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682   (exit $ac_status); }; } &&
15683          { ac_try='test -s conftest.$ac_objext'
15684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685   (eval $ac_try) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; }; then
15689
15690 cat >>confdefs.h <<\_ACEOF
15691 #define HAVE_STRUCT_IP_MREQ 1
15692 _ACEOF
15693
15694    echo "$as_me:$LINENO: result: yes" >&5
15695 echo "${ECHO_T}yes" >&6
15696 else
15697   echo "$as_me: failed program was:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15699
15700 echo "$as_me:$LINENO: result: no" >&5
15701 echo "${ECHO_T}no" >&6
15702 fi
15703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15704
15705 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15706 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15707 cat >conftest.$ac_ext <<_ACEOF
15708 /* confdefs.h.  */
15709 _ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h.  */
15713 #include <netinet/in.h>
15714 int
15715 main ()
15716 {
15717 struct ipv6_mreq mreq6;
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 rm -f conftest.$ac_objext
15723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15724   (eval $ac_compile) 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -z "$ac_c_werror_flag"
15732                          || test ! -s conftest.err'
15733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734   (eval $ac_try) 2>&5
15735   ac_status=$?
15736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737   (exit $ac_status); }; } &&
15738          { ac_try='test -s conftest.$ac_objext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744
15745 cat >>confdefs.h <<\_ACEOF
15746 #define HAVE_STRUCT_IPV6_MREQ 1
15747 _ACEOF
15748
15749    echo "$as_me:$LINENO: result: yes" >&5
15750 echo "${ECHO_T}yes" >&6
15751 else
15752   echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 echo "$as_me:$LINENO: result: no" >&5
15756 echo "${ECHO_T}no" >&6
15757 fi
15758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759
15760 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15761 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15762 cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 #include <netinet/in.h>
15769 int
15770 main ()
15771 {
15772 struct sockaddr_in6 addr6;
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext
15778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15779   (eval $ac_compile) 2>conftest.er1
15780   ac_status=$?
15781   grep -v '^ *+' conftest.er1 >conftest.err
15782   rm -f conftest.er1
15783   cat conftest.err >&5
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); } &&
15786          { ac_try='test -z "$ac_c_werror_flag"
15787                          || test ! -s conftest.err'
15788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789   (eval $ac_try) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; } &&
15793          { ac_try='test -s conftest.$ac_objext'
15794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795   (eval $ac_try) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799
15800 cat >>confdefs.h <<\_ACEOF
15801 #define HAVE_INET6 1
15802 _ACEOF
15803
15804    echo "$as_me:$LINENO: result: yes" >&5
15805 echo "${ECHO_T}yes" >&6
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810 echo "$as_me:$LINENO: result: no" >&5
15811 echo "${ECHO_T}no" >&6
15812 fi
15813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15814
15815 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15816 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15817 cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h.  */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h.  */
15823 #define _POSIX_PII_SOCKET
15824 #include <sys/types.h>
15825 #include <sys/socket.h>
15826 int
15827 main ()
15828 {
15829 socklen_t x = 5;
15830   ;
15831   return 0;
15832 }
15833 _ACEOF
15834 rm -f conftest.$ac_objext
15835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15836   (eval $ac_compile) 2>conftest.er1
15837   ac_status=$?
15838   grep -v '^ *+' conftest.er1 >conftest.err
15839   rm -f conftest.er1
15840   cat conftest.err >&5
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } &&
15843          { ac_try='test -z "$ac_c_werror_flag"
15844                          || test ! -s conftest.err'
15845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15846   (eval $ac_try) 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); }; } &&
15850          { ac_try='test -s conftest.$ac_objext'
15851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15852   (eval $ac_try) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); }; }; then
15856
15857 cat >>confdefs.h <<\_ACEOF
15858 #define HAVE_SOCKLEN_T 1
15859 _ACEOF
15860
15861    echo "$as_me:$LINENO: result: yes" >&5
15862 echo "${ECHO_T}yes" >&6
15863 else
15864   echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 echo "$as_me:$LINENO: result: no" >&5
15868 echo "${ECHO_T}no" >&6
15869 fi
15870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15871
15872 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15873 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h.  */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h.  */
15880 #include <time.h>
15881 int
15882 main ()
15883 {
15884 struct tm tim; tim.tm_gmtoff = 0;
15885   ;
15886   return 0;
15887 }
15888 _ACEOF
15889 rm -f conftest.$ac_objext
15890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15891   (eval $ac_compile) 2>conftest.er1
15892   ac_status=$?
15893   grep -v '^ *+' conftest.er1 >conftest.err
15894   rm -f conftest.er1
15895   cat conftest.err >&5
15896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897   (exit $ac_status); } &&
15898          { ac_try='test -z "$ac_c_werror_flag"
15899                          || test ! -s conftest.err'
15900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901   (eval $ac_try) 2>&5
15902   ac_status=$?
15903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904   (exit $ac_status); }; } &&
15905          { ac_try='test -s conftest.$ac_objext'
15906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907   (eval $ac_try) 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); }; }; then
15911
15912 cat >>confdefs.h <<\_ACEOF
15913 #define STRUCT_TM_HAS_GMTOFF 1
15914 _ACEOF
15915
15916    echo "$as_me:$LINENO: result: yes" >&5
15917 echo "${ECHO_T}yes" >&6
15918 else
15919   echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15921
15922 echo "$as_me:$LINENO: result: no" >&5
15923 echo "${ECHO_T}no" >&6
15924    echo "$as_me:$LINENO: checking for global timezone variable" >&5
15925 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15926                cat >conftest.$ac_ext <<_ACEOF
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932 #include <time.h>
15933 int
15934 main ()
15935 {
15936 void i(){long z2 = 2*timezone;}
15937   ;
15938   return 0;
15939 }
15940 _ACEOF
15941 rm -f conftest.$ac_objext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15943   (eval $ac_compile) 2>conftest.er1
15944   ac_status=$?
15945   grep -v '^ *+' conftest.er1 >conftest.err
15946   rm -f conftest.er1
15947   cat conftest.err >&5
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } &&
15950          { ac_try='test -z "$ac_c_werror_flag"
15951                          || test ! -s conftest.err'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; } &&
15957          { ac_try='test -s conftest.$ac_objext'
15958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959   (eval $ac_try) 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; }; then
15963
15964 cat >>confdefs.h <<\_ACEOF
15965 #define HAVE_TIMEZONE 1
15966 _ACEOF
15967
15968       echo "$as_me:$LINENO: result: yes" >&5
15969 echo "${ECHO_T}yes" >&6
15970 else
15971   echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15973
15974 echo "$as_me:$LINENO: result: no" >&5
15975 echo "${ECHO_T}no" >&6
15976        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15977 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15978               cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h.  */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h.  */
15984 #include <time.h>
15985 int
15986 main ()
15987 {
15988 long z2 = _timezone;
15989   ;
15990   return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995   (eval $ac_compile) 2>conftest.er1
15996   ac_status=$?
15997   grep -v '^ *+' conftest.er1 >conftest.err
15998   rm -f conftest.er1
15999   cat conftest.err >&5
16000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001   (exit $ac_status); } &&
16002          { ac_try='test -z "$ac_c_werror_flag"
16003                          || test ! -s conftest.err'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; } &&
16009          { ac_try='test -s conftest.$ac_objext'
16010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011   (eval $ac_try) 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); }; }; then
16015
16016 cat >>confdefs.h <<\_ACEOF
16017 #define HAVE_UNDERSCORE_TIMEZONE 1
16018 _ACEOF
16019
16020           echo "$as_me:$LINENO: result: yes" >&5
16021 echo "${ECHO_T}yes" >&6
16022 else
16023   echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16025
16026 echo "$as_me:$LINENO: result: no" >&5
16027 echo "${ECHO_T}no" >&6
16028 fi
16029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16030 fi
16031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16032 fi
16033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16034
16035 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16036 # for constant arguments.  Useless!
16037 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16038 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16039 if test "${ac_cv_working_alloca_h+set}" = set; then
16040   echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042   if test x$gcc_no_link = xyes; then
16043   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16044 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16045    { (exit 1); exit 1; }; }
16046 fi
16047 cat >conftest.$ac_ext <<_ACEOF
16048 /* confdefs.h.  */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h.  */
16053 #include <alloca.h>
16054 int
16055 main ()
16056 {
16057 char *p = (char *) alloca (2 * sizeof (int));
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext conftest$ac_exeext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064   (eval $ac_link) 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } &&
16071          { ac_try='test -z "$ac_c_werror_flag"
16072                          || test ! -s conftest.err'
16073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074   (eval $ac_try) 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); }; } &&
16078          { ac_try='test -s conftest$ac_exeext'
16079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080   (eval $ac_try) 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; }; then
16084   ac_cv_working_alloca_h=yes
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 ac_cv_working_alloca_h=no
16090 fi
16091 rm -f conftest.err conftest.$ac_objext \
16092       conftest$ac_exeext conftest.$ac_ext
16093 fi
16094 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16095 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16096 if test $ac_cv_working_alloca_h = yes; then
16097
16098 cat >>confdefs.h <<\_ACEOF
16099 #define HAVE_ALLOCA_H 1
16100 _ACEOF
16101
16102 fi
16103
16104 echo "$as_me:$LINENO: checking for alloca" >&5
16105 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16106 if test "${ac_cv_func_alloca_works+set}" = set; then
16107   echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109   if test x$gcc_no_link = xyes; then
16110   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16111 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16112    { (exit 1); exit 1; }; }
16113 fi
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h.  */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h.  */
16120 #ifdef __GNUC__
16121 # define alloca __builtin_alloca
16122 #else
16123 # ifdef _MSC_VER
16124 #  include <malloc.h>
16125 #  define alloca _alloca
16126 # else
16127 #  if HAVE_ALLOCA_H
16128 #   include <alloca.h>
16129 #  else
16130 #   ifdef _AIX
16131  #pragma alloca
16132 #   else
16133 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16134 char *alloca ();
16135 #    endif
16136 #   endif
16137 #  endif
16138 # endif
16139 #endif
16140
16141 int
16142 main ()
16143 {
16144 char *p = (char *) alloca (1);
16145   ;
16146   return 0;
16147 }
16148 _ACEOF
16149 rm -f conftest.$ac_objext conftest$ac_exeext
16150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16151   (eval $ac_link) 2>conftest.er1
16152   ac_status=$?
16153   grep -v '^ *+' conftest.er1 >conftest.err
16154   rm -f conftest.er1
16155   cat conftest.err >&5
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); } &&
16158          { ac_try='test -z "$ac_c_werror_flag"
16159                          || test ! -s conftest.err'
16160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161   (eval $ac_try) 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); }; } &&
16165          { ac_try='test -s conftest$ac_exeext'
16166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167   (eval $ac_try) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); }; }; then
16171   ac_cv_func_alloca_works=yes
16172 else
16173   echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176 ac_cv_func_alloca_works=no
16177 fi
16178 rm -f conftest.err conftest.$ac_objext \
16179       conftest$ac_exeext conftest.$ac_ext
16180 fi
16181 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16182 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16183
16184 if test $ac_cv_func_alloca_works = yes; then
16185
16186 cat >>confdefs.h <<\_ACEOF
16187 #define HAVE_ALLOCA 1
16188 _ACEOF
16189
16190 else
16191   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16192 # that cause trouble.  Some versions do not even contain alloca or
16193 # contain a buggy version.  If you still want to use their alloca,
16194 # use ar to extract alloca.o from them instead of compiling alloca.c.
16195
16196 ALLOCA=alloca.$ac_objext
16197
16198 cat >>confdefs.h <<\_ACEOF
16199 #define C_ALLOCA 1
16200 _ACEOF
16201
16202
16203 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16204 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16205 if test "${ac_cv_os_cray+set}" = set; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208   cat >conftest.$ac_ext <<_ACEOF
16209 /* confdefs.h.  */
16210 _ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h.  */
16214 #if defined(CRAY) && ! defined(CRAY2)
16215 webecray
16216 #else
16217 wenotbecray
16218 #endif
16219
16220 _ACEOF
16221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16222   $EGREP "webecray" >/dev/null 2>&1; then
16223   ac_cv_os_cray=yes
16224 else
16225   ac_cv_os_cray=no
16226 fi
16227 rm -f conftest*
16228
16229 fi
16230 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16231 echo "${ECHO_T}$ac_cv_os_cray" >&6
16232 if test $ac_cv_os_cray = yes; then
16233   for ac_func in _getb67 GETB67 getb67; do
16234     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16235 echo "$as_me:$LINENO: checking for $ac_func" >&5
16236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16237 if eval "test \"\${$as_ac_var+set}\" = set"; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   if test x$gcc_no_link = xyes; then
16241   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16243    { (exit 1); exit 1; }; }
16244 fi
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h.  */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h.  */
16251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16253 #define $ac_func innocuous_$ac_func
16254
16255 /* System header to define __stub macros and hopefully few prototypes,
16256     which can conflict with char $ac_func (); below.
16257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16258     <limits.h> exists even on freestanding compilers.  */
16259
16260 #ifdef __STDC__
16261 # include <limits.h>
16262 #else
16263 # include <assert.h>
16264 #endif
16265
16266 #undef $ac_func
16267
16268 /* Override any gcc2 internal prototype to avoid an error.  */
16269 #ifdef __cplusplus
16270 extern "C"
16271 {
16272 #endif
16273 /* We use char because int might match the return type of a gcc2
16274    builtin and then its argument prototype would still apply.  */
16275 char $ac_func ();
16276 /* The GNU C library defines this for functions which it implements
16277     to always fail with ENOSYS.  Some functions are actually named
16278     something starting with __ and the normal name is an alias.  */
16279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16280 choke me
16281 #else
16282 char (*f) () = $ac_func;
16283 #endif
16284 #ifdef __cplusplus
16285 }
16286 #endif
16287
16288 int
16289 main ()
16290 {
16291 return f != $ac_func;
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext conftest$ac_exeext
16297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16298   (eval $ac_link) 2>conftest.er1
16299   ac_status=$?
16300   grep -v '^ *+' conftest.er1 >conftest.err
16301   rm -f conftest.er1
16302   cat conftest.err >&5
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); } &&
16305          { ac_try='test -z "$ac_c_werror_flag"
16306                          || test ! -s conftest.err'
16307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16308   (eval $ac_try) 2>&5
16309   ac_status=$?
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); }; } &&
16312          { ac_try='test -s conftest$ac_exeext'
16313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314   (eval $ac_try) 2>&5
16315   ac_status=$?
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); }; }; then
16318   eval "$as_ac_var=yes"
16319 else
16320   echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16322
16323 eval "$as_ac_var=no"
16324 fi
16325 rm -f conftest.err conftest.$ac_objext \
16326       conftest$ac_exeext conftest.$ac_ext
16327 fi
16328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16330 if test `eval echo '${'$as_ac_var'}'` = yes; then
16331
16332 cat >>confdefs.h <<_ACEOF
16333 #define CRAY_STACKSEG_END $ac_func
16334 _ACEOF
16335
16336     break
16337 fi
16338
16339   done
16340 fi
16341
16342 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16343 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16344 if test "${ac_cv_c_stack_direction+set}" = set; then
16345   echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347   if test "$cross_compiling" = yes; then
16348   ac_cv_c_stack_direction=0
16349 else
16350   cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 int
16357 find_stack_direction ()
16358 {
16359   static char *addr = 0;
16360   auto char dummy;
16361   if (addr == 0)
16362     {
16363       addr = &dummy;
16364       return find_stack_direction ();
16365     }
16366   else
16367     return (&dummy > addr) ? 1 : -1;
16368 }
16369
16370 int
16371 main ()
16372 {
16373   exit (find_stack_direction () < 0);
16374 }
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   ac_cv_c_stack_direction=1
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 ac_cv_c_stack_direction=-1
16395 fi
16396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16397 fi
16398 fi
16399 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16400 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16401
16402 cat >>confdefs.h <<_ACEOF
16403 #define STACK_DIRECTION $ac_cv_c_stack_direction
16404 _ACEOF
16405
16406
16407 fi
16408
16409
16410 for ac_prog in perl
16411 do
16412   # Extract the first word of "$ac_prog", so it can be a program name with args.
16413 set dummy $ac_prog; ac_word=$2
16414 echo "$as_me:$LINENO: checking for $ac_word" >&5
16415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16416 if test "${ac_cv_prog_PERL+set}" = set; then
16417   echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419   if test -n "$PERL"; then
16420   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16421 else
16422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16423 for as_dir in $PATH
16424 do
16425   IFS=$as_save_IFS
16426   test -z "$as_dir" && as_dir=.
16427   for ac_exec_ext in '' $ac_executable_extensions; do
16428   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16429     ac_cv_prog_PERL="$ac_prog"
16430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16431     break 2
16432   fi
16433 done
16434 done
16435
16436 fi
16437 fi
16438 PERL=$ac_cv_prog_PERL
16439 if test -n "$PERL"; then
16440   echo "$as_me:$LINENO: result: $PERL" >&5
16441 echo "${ECHO_T}$PERL" >&6
16442 else
16443   echo "$as_me:$LINENO: result: no" >&5
16444 echo "${ECHO_T}no" >&6
16445 fi
16446
16447   test -n "$PERL" && break
16448 done
16449 test -n "$PERL" || PERL="false"
16450
16451
16452 SYSDEP_SOURCES=
16453 SIGNAL_HANDLER_AUX=
16454
16455 case "${host}" in
16456  i?86-*-linux*)
16457     SIGNAL_HANDLER=include/i386-signal.h
16458     ;;
16459  sparc*-sun-solaris*)
16460     SIGNAL_HANDLER=include/sparc-signal.h
16461     ;;
16462 # ia64-*)
16463 #    SYSDEP_SOURCES=sysdep/ia64.c
16464 #    test -d sysdep || mkdir sysdep
16465 #    ;;
16466  hppa*-*-linux*)
16467     SIGNAL_HANDLER=include/pa-signal.h
16468     ;;
16469  hppa*-hp-hpux*)
16470     SIGNAL_HANDLER=include/hppa-signal.h
16471     ;;
16472  ia64-*-linux*)
16473     SIGNAL_HANDLER=include/dwarf2-signal.h
16474     ;;
16475  powerpc*-*-linux*)
16476     SIGNAL_HANDLER=include/powerpc-signal.h
16477     ;;
16478  alpha*-*-linux*)
16479     SIGNAL_HANDLER=include/dwarf2-signal.h
16480     ;;
16481  s390*-*-linux*)
16482     SIGNAL_HANDLER=include/s390-signal.h
16483     ;;
16484  x86_64*-*-linux*)
16485     SIGNAL_HANDLER=include/x86_64-signal.h
16486     SIGNAL_HANDLER_AUX=include/i386-signal.h
16487     ;;
16488  sparc*-*-linux*)
16489     SIGNAL_HANDLER=include/dwarf2-signal.h
16490     ;;
16491  sh*-*-linux*)
16492     SIGNAL_HANDLER=include/sh-signal.h
16493     ;;
16494  *mingw*)
16495     SIGNAL_HANDLER=include/win32-signal.h
16496     ;;
16497  mips*-*-linux*)
16498     SIGNAL_HANDLER=include/mips-signal.h
16499     ;;
16500  *-*-darwin*)
16501     SIGNAL_HANDLER=include/darwin-signal.h
16502     ;;
16503  *)
16504     SIGNAL_HANDLER=include/default-signal.h
16505     ;;
16506 esac
16507
16508 # If we're using sjlj exceptions, forget what we just learned.
16509 if test "$enable_sjlj_exceptions" = yes; then
16510    SIGNAL_HANDLER=include/default-signal.h
16511    SIGNAL_HANDLER_AUX=
16512 fi
16513
16514
16515
16516 if test -z "$SIGNAL_HANDLER_AUX"; then
16517   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16518 fi
16519
16520                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16521
16522
16523 if test "${multilib}" = "yes"; then
16524   multilib_arg="--enable-multilib"
16525 else
16526   multilib_arg=
16527 fi
16528
16529 # See if we support thread-local storage.
16530
16531    # Check whether --enable-tls or --disable-tls was given.
16532 if test "${enable_tls+set}" = set; then
16533   enableval="$enable_tls"
16534
16535       case "$enableval" in
16536        yes|no) ;;
16537        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
16538 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
16539    { (exit 1); exit 1; }; } ;;
16540       esac
16541
16542 else
16543   enable_tls=yes
16544 fi;
16545
16546   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
16547 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
16548 if test "${have_tls+set}" = set; then
16549   echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551
16552     if test "$cross_compiling" = yes; then
16553   cat >conftest.$ac_ext <<_ACEOF
16554 __thread int foo;
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16558   (eval $ac_compile) 2>conftest.er1
16559   ac_status=$?
16560   grep -v '^ *+' conftest.er1 >conftest.err
16561   rm -f conftest.er1
16562   cat conftest.err >&5
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); } &&
16565          { ac_try='test -z "$ac_c_werror_flag"
16566                          || test ! -s conftest.err'
16567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568   (eval $ac_try) 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; } &&
16572          { ac_try='test -s conftest.$ac_objext'
16573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574   (eval $ac_try) 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; }; then
16578   have_tls=yes
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583 have_tls=no
16584 fi
16585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16586
16587 else
16588   cat >conftest.$ac_ext <<_ACEOF
16589 __thread int a; int b; int main() { return a = b; }
16590 _ACEOF
16591 rm -f conftest$ac_exeext
16592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16593   (eval $ac_link) 2>&5
16594   ac_status=$?
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16598   (eval $ac_try) 2>&5
16599   ac_status=$?
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   (exit $ac_status); }; }; then
16602                     save_LDFLAGS="$LDFLAGS"
16603       LDFLAGS="-static $LDFLAGS"
16604       if test "$cross_compiling" = yes; then
16605   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16606 See \`config.log' for more details." >&5
16607 echo "$as_me: error: cannot run test program while cross compiling
16608 See \`config.log' for more details." >&2;}
16609    { (exit 1); exit 1; }; }
16610 else
16611   cat >conftest.$ac_ext <<_ACEOF
16612 __thread int a; int b; int main() { return a = b; }
16613 _ACEOF
16614 rm -f conftest$ac_exeext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16616   (eval $ac_link) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; }; then
16625   have_tls=yes
16626 else
16627   echo "$as_me: program exited with status $ac_status" >&5
16628 echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ( exit $ac_status )
16632 have_tls=no
16633 fi
16634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16635 fi
16636       LDFLAGS="$save_LDFLAGS"
16637 else
16638   echo "$as_me: program exited with status $ac_status" >&5
16639 echo "$as_me: failed program was:" >&5
16640 sed 's/^/| /' conftest.$ac_ext >&5
16641
16642 ( exit $ac_status )
16643 have_tls=no
16644 fi
16645 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16646 fi
16647 fi
16648 echo "$as_me:$LINENO: result: $have_tls" >&5
16649 echo "${ECHO_T}$have_tls" >&6
16650   if test "$enable_tls $have_tls" = "yes yes"; then
16651
16652 cat >>confdefs.h <<\_ACEOF
16653 #define HAVE_TLS 1
16654 _ACEOF
16655
16656   fi
16657
16658 # Check if linker supports static linking on a per library basis
16659 LD_START_STATIC_SPEC=
16660 LD_FINISH_STATIC_SPEC=
16661 if $LD --help 2>&1 | grep -q -e -call_shared ; then
16662   if $LD --help 2>&1 | grep -q -e -non_shared ; then
16663     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
16664     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
16665   fi
16666 fi
16667
16668
16669
16670 here=`${PWDCMD-pwd}`
16671
16672
16673 # We get this from the environment.
16674
16675
16676                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16677
16678
16679           ac_config_files="$ac_config_files scripts/jar"
16680
16681
16682           ac_config_commands="$ac_config_commands default"
16683
16684
16685 cat >confcache <<\_ACEOF
16686 # This file is a shell script that caches the results of configure
16687 # tests run on this system so they can be shared between configure
16688 # scripts and configure runs, see configure's option --config-cache.
16689 # It is not useful on other systems.  If it contains results you don't
16690 # want to keep, you may remove or edit it.
16691 #
16692 # config.status only pays attention to the cache file if you give it
16693 # the --recheck option to rerun configure.
16694 #
16695 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16696 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16697 # following values.
16698
16699 _ACEOF
16700
16701 # The following way of writing the cache mishandles newlines in values,
16702 # but we know of no workaround that is simple, portable, and efficient.
16703 # So, don't put newlines in cache variables' values.
16704 # Ultrix sh set writes to stderr and can't be redirected directly,
16705 # and sets the high bit in the cache file unless we assign to the vars.
16706 {
16707   (set) 2>&1 |
16708     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16709     *ac_space=\ *)
16710       # `set' does not quote correctly, so add quotes (double-quote
16711       # substitution turns \\\\ into \\, and sed turns \\ into \).
16712       sed -n \
16713         "s/'/'\\\\''/g;
16714           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16715       ;;
16716     *)
16717       # `set' quotes correctly as required by POSIX, so do not add quotes.
16718       sed -n \
16719         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16720       ;;
16721     esac;
16722 } |
16723   sed '
16724      t clear
16725      : clear
16726      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16727      t end
16728      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16729      : end' >>confcache
16730 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16731   if test -w $cache_file; then
16732     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16733     cat confcache >$cache_file
16734   else
16735     echo "not updating unwritable cache $cache_file"
16736   fi
16737 fi
16738 rm -f confcache
16739
16740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16741 # Let make expand exec_prefix.
16742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16743
16744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16746 # trailing colons and then remove the whole line if VPATH becomes empty
16747 # (actually we leave an empty line to preserve line numbers).
16748 if test "x$srcdir" = x.; then
16749   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16750 s/:*\$(srcdir):*/:/;
16751 s/:*\${srcdir}:*/:/;
16752 s/:*@srcdir@:*/:/;
16753 s/^\([^=]*=[     ]*\):*/\1/;
16754 s/:*$//;
16755 s/^[^=]*=[       ]*$//;
16756 }'
16757 fi
16758
16759 DEFS=-DHAVE_CONFIG_H
16760
16761 ac_libobjs=
16762 ac_ltlibobjs=
16763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16764   # 1. Remove the extension, and $U if already installed.
16765   ac_i=`echo "$ac_i" |
16766          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16767   # 2. Add them.
16768   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16769   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16770 done
16771 LIBOBJS=$ac_libobjs
16772
16773 LTLIBOBJS=$ac_ltlibobjs
16774
16775
16776 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16777   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16778 Usually this means the macro was only invoked conditionally." >&5
16779 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16780 Usually this means the macro was only invoked conditionally." >&2;}
16781    { (exit 1); exit 1; }; }
16782 fi
16783 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16784   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16785 Usually this means the macro was only invoked conditionally." >&5
16786 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16787 Usually this means the macro was only invoked conditionally." >&2;}
16788    { (exit 1); exit 1; }; }
16789 fi
16790 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16791   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16792 Usually this means the macro was only invoked conditionally." >&5
16793 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16794 Usually this means the macro was only invoked conditionally." >&2;}
16795    { (exit 1); exit 1; }; }
16796 fi
16797 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
16798   { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
16799 Usually this means the macro was only invoked conditionally." >&5
16800 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
16801 Usually this means the macro was only invoked conditionally." >&2;}
16802    { (exit 1); exit 1; }; }
16803 fi
16804 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16805   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16806 Usually this means the macro was only invoked conditionally." >&5
16807 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16808 Usually this means the macro was only invoked conditionally." >&2;}
16809    { (exit 1); exit 1; }; }
16810 fi
16811 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16812   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16813 Usually this means the macro was only invoked conditionally." >&5
16814 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16815 Usually this means the macro was only invoked conditionally." >&2;}
16816    { (exit 1); exit 1; }; }
16817 fi
16818 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16819   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16820 Usually this means the macro was only invoked conditionally." >&5
16821 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16822 Usually this means the macro was only invoked conditionally." >&2;}
16823    { (exit 1); exit 1; }; }
16824 fi
16825 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16826   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16827 Usually this means the macro was only invoked conditionally." >&5
16828 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16829 Usually this means the macro was only invoked conditionally." >&2;}
16830    { (exit 1); exit 1; }; }
16831 fi
16832 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16833   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16834 Usually this means the macro was only invoked conditionally." >&5
16835 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16836 Usually this means the macro was only invoked conditionally." >&2;}
16837    { (exit 1); exit 1; }; }
16838 fi
16839 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16840   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16841 Usually this means the macro was only invoked conditionally." >&5
16842 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" 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 "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16847   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16848 Usually this means the macro was only invoked conditionally." >&5
16849 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" 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 "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16854   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16855 Usually this means the macro was only invoked conditionally." >&5
16856 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" 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 "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16861   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16862 Usually this means the macro was only invoked conditionally." >&5
16863 echo "$as_me: error: conditional \"USING_BOEHMGC\" 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 "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16868   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16869 Usually this means the macro was only invoked conditionally." >&5
16870 echo "$as_me: error: conditional \"USING_NOGC\" 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 "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16875   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16876 Usually this means the macro was only invoked conditionally." >&5
16877 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" 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 "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16882   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16883 Usually this means the macro was only invoked conditionally." >&5
16884 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" 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 "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16889   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16890 Usually this means the macro was only invoked conditionally." >&5
16891 echo "$as_me: error: conditional \"USING_NO_THREADS\" 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 "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
16896   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
16897 Usually this means the macro was only invoked conditionally." >&5
16898 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" 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 "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16903   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16904 Usually this means the macro was only invoked conditionally." >&5
16905 echo "$as_me: error: conditional \"USING_GCC\" 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 "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16910   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16911 Usually this means the macro was only invoked conditionally." >&5
16912 echo "$as_me: error: conditional \"NATIVE\" 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 "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16917   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16918 Usually this means the macro was only invoked conditionally." >&5
16919 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16920 Usually this means the macro was only invoked conditionally." >&2;}
16921    { (exit 1); exit 1; }; }
16922 fi
16923
16924 : ${CONFIG_STATUS=./config.status}
16925 ac_clean_files_save=$ac_clean_files
16926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16927 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16928 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16929 cat >$CONFIG_STATUS <<_ACEOF
16930 #! $SHELL
16931 # Generated by $as_me.
16932 # Run this file to recreate the current configuration.
16933 # Compiler output produced by configure, useful for debugging
16934 # configure, is in config.log if it exists.
16935
16936 debug=false
16937 ac_cs_recheck=false
16938 ac_cs_silent=false
16939 SHELL=\${CONFIG_SHELL-$SHELL}
16940 _ACEOF
16941
16942 cat >>$CONFIG_STATUS <<\_ACEOF
16943 ## --------------------- ##
16944 ## M4sh Initialization.  ##
16945 ## --------------------- ##
16946
16947 # Be Bourne compatible
16948 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16949   emulate sh
16950   NULLCMD=:
16951   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16952   # is contrary to our usage.  Disable this feature.
16953   alias -g '${1+"$@"}'='"$@"'
16954 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16955   set -o posix
16956 fi
16957 DUALCASE=1; export DUALCASE # for MKS sh
16958
16959 # Support unset when possible.
16960 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16961   as_unset=unset
16962 else
16963   as_unset=false
16964 fi
16965
16966
16967 # Work around bugs in pre-3.0 UWIN ksh.
16968 $as_unset ENV MAIL MAILPATH
16969 PS1='$ '
16970 PS2='> '
16971 PS4='+ '
16972
16973 # NLS nuisances.
16974 for as_var in \
16975   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16976   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16977   LC_TELEPHONE LC_TIME
16978 do
16979   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16980     eval $as_var=C; export $as_var
16981   else
16982     $as_unset $as_var
16983   fi
16984 done
16985
16986 # Required to use basename.
16987 if expr a : '\(a\)' >/dev/null 2>&1; then
16988   as_expr=expr
16989 else
16990   as_expr=false
16991 fi
16992
16993 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16994   as_basename=basename
16995 else
16996   as_basename=false
16997 fi
16998
16999
17000 # Name of the executable.
17001 as_me=`$as_basename "$0" ||
17002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17003          X"$0" : 'X\(//\)$' \| \
17004          X"$0" : 'X\(/\)$' \| \
17005          .     : '\(.\)' 2>/dev/null ||
17006 echo X/"$0" |
17007     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17008           /^X\/\(\/\/\)$/{ s//\1/; q; }
17009           /^X\/\(\/\).*/{ s//\1/; q; }
17010           s/.*/./; q'`
17011
17012
17013 # PATH needs CR, and LINENO needs CR and PATH.
17014 # Avoid depending upon Character Ranges.
17015 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17016 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17017 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17018 as_cr_digits='0123456789'
17019 as_cr_alnum=$as_cr_Letters$as_cr_digits
17020
17021 # The user is always right.
17022 if test "${PATH_SEPARATOR+set}" != set; then
17023   echo "#! /bin/sh" >conf$$.sh
17024   echo  "exit 0"   >>conf$$.sh
17025   chmod +x conf$$.sh
17026   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17027     PATH_SEPARATOR=';'
17028   else
17029     PATH_SEPARATOR=:
17030   fi
17031   rm -f conf$$.sh
17032 fi
17033
17034
17035   as_lineno_1=$LINENO
17036   as_lineno_2=$LINENO
17037   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17038   test "x$as_lineno_1" != "x$as_lineno_2" &&
17039   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17040   # Find who we are.  Look in the path if we contain no path at all
17041   # relative or not.
17042   case $0 in
17043     *[\\/]* ) as_myself=$0 ;;
17044     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17045 for as_dir in $PATH
17046 do
17047   IFS=$as_save_IFS
17048   test -z "$as_dir" && as_dir=.
17049   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17050 done
17051
17052        ;;
17053   esac
17054   # We did not find ourselves, most probably we were run as `sh COMMAND'
17055   # in which case we are not to be found in the path.
17056   if test "x$as_myself" = x; then
17057     as_myself=$0
17058   fi
17059   if test ! -f "$as_myself"; then
17060     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17061 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17062    { (exit 1); exit 1; }; }
17063   fi
17064   case $CONFIG_SHELL in
17065   '')
17066     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17067 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17068 do
17069   IFS=$as_save_IFS
17070   test -z "$as_dir" && as_dir=.
17071   for as_base in sh bash ksh sh5; do
17072          case $as_dir in
17073          /*)
17074            if ("$as_dir/$as_base" -c '
17075   as_lineno_1=$LINENO
17076   as_lineno_2=$LINENO
17077   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17078   test "x$as_lineno_1" != "x$as_lineno_2" &&
17079   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17080              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17081              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17082              CONFIG_SHELL=$as_dir/$as_base
17083              export CONFIG_SHELL
17084              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17085            fi;;
17086          esac
17087        done
17088 done
17089 ;;
17090   esac
17091
17092   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17093   # uniformly replaced by the line number.  The first 'sed' inserts a
17094   # line-number line before each line; the second 'sed' does the real
17095   # work.  The second script uses 'N' to pair each line-number line
17096   # with the numbered line, and appends trailing '-' during
17097   # substitution so that $LINENO is not a special case at line end.
17098   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17099   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17100   sed '=' <$as_myself |
17101     sed '
17102       N
17103       s,$,-,
17104       : loop
17105       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17106       t loop
17107       s,-$,,
17108       s,^['$as_cr_digits']*\n,,
17109     ' >$as_me.lineno &&
17110   chmod +x $as_me.lineno ||
17111     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17112 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17113    { (exit 1); exit 1; }; }
17114
17115   # Don't try to exec as it changes $[0], causing all sort of problems
17116   # (the dirname of $[0] is not the place where we might find the
17117   # original and so on.  Autoconf is especially sensible to this).
17118   . ./$as_me.lineno
17119   # Exit status is that of the last command.
17120   exit
17121 }
17122
17123
17124 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17125   *c*,-n*) ECHO_N= ECHO_C='
17126 ' ECHO_T='      ' ;;
17127   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17128   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17129 esac
17130
17131 if expr a : '\(a\)' >/dev/null 2>&1; then
17132   as_expr=expr
17133 else
17134   as_expr=false
17135 fi
17136
17137 rm -f conf$$ conf$$.exe conf$$.file
17138 echo >conf$$.file
17139 if ln -s conf$$.file conf$$ 2>/dev/null; then
17140   # We could just check for DJGPP; but this test a) works b) is more generic
17141   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17142   if test -f conf$$.exe; then
17143     # Don't use ln at all; we don't have any links
17144     as_ln_s='cp -p'
17145   else
17146     as_ln_s='ln -s'
17147   fi
17148 elif ln conf$$.file conf$$ 2>/dev/null; then
17149   as_ln_s=ln
17150 else
17151   as_ln_s='cp -p'
17152 fi
17153 rm -f conf$$ conf$$.exe conf$$.file
17154
17155 if mkdir -p . 2>/dev/null; then
17156   as_mkdir_p=:
17157 else
17158   test -d ./-p && rmdir ./-p
17159   as_mkdir_p=false
17160 fi
17161
17162 as_executable_p="test -f"
17163
17164 # Sed expression to map a string onto a valid CPP name.
17165 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17166
17167 # Sed expression to map a string onto a valid variable name.
17168 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17169
17170
17171 # IFS
17172 # We need space, tab and new line, in precisely that order.
17173 as_nl='
17174 '
17175 IFS="   $as_nl"
17176
17177 # CDPATH.
17178 $as_unset CDPATH
17179
17180 exec 6>&1
17181
17182 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17183 # report actual input values of CONFIG_FILES etc. instead of their
17184 # values after options handling.  Logging --version etc. is OK.
17185 exec 5>>config.log
17186 {
17187   echo
17188   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17189 ## Running $as_me. ##
17190 _ASBOX
17191 } >&5
17192 cat >&5 <<_CSEOF
17193
17194 This file was extended by libjava $as_me version-unused, which was
17195 generated by GNU Autoconf 2.59.  Invocation command line was
17196
17197   CONFIG_FILES    = $CONFIG_FILES
17198   CONFIG_HEADERS  = $CONFIG_HEADERS
17199   CONFIG_LINKS    = $CONFIG_LINKS
17200   CONFIG_COMMANDS = $CONFIG_COMMANDS
17201   $ $0 $@
17202
17203 _CSEOF
17204 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17205 echo >&5
17206 _ACEOF
17207
17208 # Files that config.status was made for.
17209 if test -n "$ac_config_files"; then
17210   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17211 fi
17212
17213 if test -n "$ac_config_headers"; then
17214   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17215 fi
17216
17217 if test -n "$ac_config_links"; then
17218   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17219 fi
17220
17221 if test -n "$ac_config_commands"; then
17222   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17223 fi
17224
17225 cat >>$CONFIG_STATUS <<\_ACEOF
17226
17227 ac_cs_usage="\
17228 \`$as_me' instantiates files from templates according to the
17229 current configuration.
17230
17231 Usage: $0 [OPTIONS] [FILE]...
17232
17233   -h, --help       print this help, then exit
17234   -V, --version    print version number, then exit
17235   -q, --quiet      do not print progress messages
17236   -d, --debug      don't remove temporary files
17237       --recheck    update $as_me by reconfiguring in the same conditions
17238   --file=FILE[:TEMPLATE]
17239                    instantiate the configuration file FILE
17240   --header=FILE[:TEMPLATE]
17241                    instantiate the configuration header FILE
17242
17243 Configuration files:
17244 $config_files
17245
17246 Configuration headers:
17247 $config_headers
17248
17249 Configuration links:
17250 $config_links
17251
17252 Configuration commands:
17253 $config_commands
17254
17255 Report bugs to <bug-autoconf@gnu.org>."
17256 _ACEOF
17257
17258 cat >>$CONFIG_STATUS <<_ACEOF
17259 ac_cs_version="\\
17260 libjava config.status version-unused
17261 configured by $0, generated by GNU Autoconf 2.59,
17262   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17263
17264 Copyright (C) 2003 Free Software Foundation, Inc.
17265 This config.status script is free software; the Free Software Foundation
17266 gives unlimited permission to copy, distribute and modify it."
17267 srcdir=$srcdir
17268 INSTALL="$INSTALL"
17269 _ACEOF
17270
17271 cat >>$CONFIG_STATUS <<\_ACEOF
17272 # If no file are specified by the user, then we need to provide default
17273 # value.  By we need to know if files were specified by the user.
17274 ac_need_defaults=:
17275 while test $# != 0
17276 do
17277   case $1 in
17278   --*=*)
17279     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17280     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17281     ac_shift=:
17282     ;;
17283   -*)
17284     ac_option=$1
17285     ac_optarg=$2
17286     ac_shift=shift
17287     ;;
17288   *) # This is not an option, so the user has probably given explicit
17289      # arguments.
17290      ac_option=$1
17291      ac_need_defaults=false;;
17292   esac
17293
17294   case $ac_option in
17295   # Handling of the options.
17296 _ACEOF
17297 cat >>$CONFIG_STATUS <<\_ACEOF
17298   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17299     ac_cs_recheck=: ;;
17300   --version | --vers* | -V )
17301     echo "$ac_cs_version"; exit 0 ;;
17302   --he | --h)
17303     # Conflict between --help and --header
17304     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17305 Try \`$0 --help' for more information." >&5
17306 echo "$as_me: error: ambiguous option: $1
17307 Try \`$0 --help' for more information." >&2;}
17308    { (exit 1); exit 1; }; };;
17309   --help | --hel | -h )
17310     echo "$ac_cs_usage"; exit 0 ;;
17311   --debug | --d* | -d )
17312     debug=: ;;
17313   --file | --fil | --fi | --f )
17314     $ac_shift
17315     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17316     ac_need_defaults=false;;
17317   --header | --heade | --head | --hea )
17318     $ac_shift
17319     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17320     ac_need_defaults=false;;
17321   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17322   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17323     ac_cs_silent=: ;;
17324
17325   # This is an error.
17326   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17327 Try \`$0 --help' for more information." >&5
17328 echo "$as_me: error: unrecognized option: $1
17329 Try \`$0 --help' for more information." >&2;}
17330    { (exit 1); exit 1; }; } ;;
17331
17332   *) ac_config_targets="$ac_config_targets $1" ;;
17333
17334   esac
17335   shift
17336 done
17337
17338 ac_configure_extra_args=
17339
17340 if $ac_cs_silent; then
17341   exec 6>/dev/null
17342   ac_configure_extra_args="$ac_configure_extra_args --silent"
17343 fi
17344
17345 _ACEOF
17346 cat >>$CONFIG_STATUS <<_ACEOF
17347 if \$ac_cs_recheck; then
17348   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17349   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17350 fi
17351
17352 _ACEOF
17353
17354 cat >>$CONFIG_STATUS <<_ACEOF
17355 #
17356 # INIT-COMMANDS section.
17357 #
17358
17359 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17360 srcdir=${srcdir}
17361 host=${host}
17362 target=${target}
17363 with_multisubdir=${with_multisubdir}
17364 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17365 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17366 libgcj_basedir=${libgcj_basedir}
17367 CC="${CC}"
17368 CXX="${CXX}"
17369 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
17370
17371
17372 _ACEOF
17373
17374
17375
17376 cat >>$CONFIG_STATUS <<\_ACEOF
17377 for ac_config_target in $ac_config_targets
17378 do
17379   case "$ac_config_target" in
17380   # Handling of arguments.
17381   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17382   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17383   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17384   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17385   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17386   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17387   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17388   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
17389   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17390   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17391   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17392   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17393   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17394   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
17395   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17396   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17397   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17398   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17399   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17400   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17401   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17402   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17403   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
17404   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
17405   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17406   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17407   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17408   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17409   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17410   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17411   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17412 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17413    { (exit 1); exit 1; }; };;
17414   esac
17415 done
17416
17417 # If the user did not use the arguments to specify the items to instantiate,
17418 # then the envvar interface is used.  Set only those that are not.
17419 # We use the long form for the default assignment because of an extremely
17420 # bizarre bug on SunOS 4.1.3.
17421 if $ac_need_defaults; then
17422   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17423   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17424   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17425   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17426 fi
17427
17428 # Have a temporary directory for convenience.  Make it in the build tree
17429 # simply because there is no reason to put it here, and in addition,
17430 # creating and moving files from /tmp can sometimes cause problems.
17431 # Create a temporary directory, and hook for its removal unless debugging.
17432 $debug ||
17433 {
17434   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17435   trap '{ (exit 1); exit 1; }' 1 2 13 15
17436 }
17437
17438 # Create a (secure) tmp directory for tmp files.
17439
17440 {
17441   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17442   test -n "$tmp" && test -d "$tmp"
17443 }  ||
17444 {
17445   tmp=./confstat$$-$RANDOM
17446   (umask 077 && mkdir $tmp)
17447 } ||
17448 {
17449    echo "$me: cannot create a temporary directory in ." >&2
17450    { (exit 1); exit 1; }
17451 }
17452
17453 _ACEOF
17454
17455 cat >>$CONFIG_STATUS <<_ACEOF
17456
17457 #
17458 # CONFIG_FILES section.
17459 #
17460
17461 # No need to generate the scripts if there are no CONFIG_FILES.
17462 # This happens for instance when ./config.status config.h
17463 if test -n "\$CONFIG_FILES"; then
17464   # Protect against being on the right side of a sed subst in config.status.
17465   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17466    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17467 s,@SHELL@,$SHELL,;t t
17468 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17469 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17470 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17471 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17472 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17473 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17474 s,@exec_prefix@,$exec_prefix,;t t
17475 s,@prefix@,$prefix,;t t
17476 s,@program_transform_name@,$program_transform_name,;t t
17477 s,@bindir@,$bindir,;t t
17478 s,@sbindir@,$sbindir,;t t
17479 s,@libexecdir@,$libexecdir,;t t
17480 s,@datadir@,$datadir,;t t
17481 s,@sysconfdir@,$sysconfdir,;t t
17482 s,@sharedstatedir@,$sharedstatedir,;t t
17483 s,@localstatedir@,$localstatedir,;t t
17484 s,@libdir@,$libdir,;t t
17485 s,@includedir@,$includedir,;t t
17486 s,@oldincludedir@,$oldincludedir,;t t
17487 s,@infodir@,$infodir,;t t
17488 s,@mandir@,$mandir,;t t
17489 s,@build_alias@,$build_alias,;t t
17490 s,@host_alias@,$host_alias,;t t
17491 s,@target_alias@,$target_alias,;t t
17492 s,@DEFS@,$DEFS,;t t
17493 s,@ECHO_C@,$ECHO_C,;t t
17494 s,@ECHO_N@,$ECHO_N,;t t
17495 s,@ECHO_T@,$ECHO_T,;t t
17496 s,@LIBS@,$LIBS,;t t
17497 s,@build@,$build,;t t
17498 s,@build_cpu@,$build_cpu,;t t
17499 s,@build_vendor@,$build_vendor,;t t
17500 s,@build_os@,$build_os,;t t
17501 s,@build_libsubdir@,$build_libsubdir,;t t
17502 s,@build_subdir@,$build_subdir,;t t
17503 s,@host_subdir@,$host_subdir,;t t
17504 s,@target_subdir@,$target_subdir,;t t
17505 s,@libgcj_basedir@,$libgcj_basedir,;t t
17506 s,@host@,$host,;t t
17507 s,@host_cpu@,$host_cpu,;t t
17508 s,@host_vendor@,$host_vendor,;t t
17509 s,@host_os@,$host_os,;t t
17510 s,@target@,$target,;t t
17511 s,@target_cpu@,$target_cpu,;t t
17512 s,@target_vendor@,$target_vendor,;t t
17513 s,@target_os@,$target_os,;t t
17514 s,@target_noncanonical@,$target_noncanonical,;t t
17515 s,@LN_S@,$LN_S,;t t
17516 s,@mkinstalldirs@,$mkinstalldirs,;t t
17517 s,@CC@,$CC,;t t
17518 s,@ac_ct_CC@,$ac_ct_CC,;t t
17519 s,@EXEEXT@,$EXEEXT,;t t
17520 s,@OBJEXT@,$OBJEXT,;t t
17521 s,@CXX@,$CXX,;t t
17522 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17523 s,@CFLAGS@,$CFLAGS,;t t
17524 s,@CXXFLAGS@,$CXXFLAGS,;t t
17525 s,@LDFLAGS@,$LDFLAGS,;t t
17526 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17527 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17528 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17529 s,@CYGPATH_W@,$CYGPATH_W,;t t
17530 s,@PACKAGE@,$PACKAGE,;t t
17531 s,@VERSION@,$VERSION,;t t
17532 s,@ACLOCAL@,$ACLOCAL,;t t
17533 s,@AUTOCONF@,$AUTOCONF,;t t
17534 s,@AUTOMAKE@,$AUTOMAKE,;t t
17535 s,@AUTOHEADER@,$AUTOHEADER,;t t
17536 s,@MAKEINFO@,$MAKEINFO,;t t
17537 s,@install_sh@,$install_sh,;t t
17538 s,@STRIP@,$STRIP,;t t
17539 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17540 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17541 s,@mkdir_p@,$mkdir_p,;t t
17542 s,@AWK@,$AWK,;t t
17543 s,@SET_MAKE@,$SET_MAKE,;t t
17544 s,@am__leading_dot@,$am__leading_dot,;t t
17545 s,@AMTAR@,$AMTAR,;t t
17546 s,@am__tar@,$am__tar,;t t
17547 s,@am__untar@,$am__untar,;t t
17548 s,@DEPDIR@,$DEPDIR,;t t
17549 s,@am__include@,$am__include,;t t
17550 s,@am__quote@,$am__quote,;t t
17551 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17552 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17553 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17554 s,@CCDEPMODE@,$CCDEPMODE,;t t
17555 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17556 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17557 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17558 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17559 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17560 s,@AS@,$AS,;t t
17561 s,@ac_ct_AS@,$ac_ct_AS,;t t
17562 s,@LD@,$LD,;t t
17563 s,@ac_ct_LD@,$ac_ct_LD,;t t
17564 s,@AR@,$AR,;t t
17565 s,@ac_ct_AR@,$ac_ct_AR,;t t
17566 s,@RANLIB@,$RANLIB,;t t
17567 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17568 s,@JAR@,$JAR,;t t
17569 s,@ZIP@,$ZIP,;t t
17570 s,@UNZIP@,$UNZIP,;t t
17571 s,@BASH_JAR_TRUE@,$BASH_JAR_TRUE,;t t
17572 s,@BASH_JAR_FALSE@,$BASH_JAR_FALSE,;t t
17573 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17574 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17575 s,@MAINT@,$MAINT,;t t
17576 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17577 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17578 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17579 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17580 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17581 s,@TOOLKIT@,$TOOLKIT,;t t
17582 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17583 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17584 s,@GCJH@,$GCJH,;t t
17585 s,@INCLTDL@,$INCLTDL,;t t
17586 s,@LIBLTDL@,$LIBLTDL,;t t
17587 s,@DIRLTDL@,$DIRLTDL,;t t
17588 s,@LIBTOOL@,$LIBTOOL,;t t
17589 s,@CXXCPP@,$CXXCPP,;t t
17590 s,@CPPFLAGS@,$CPPFLAGS,;t t
17591 s,@GCJ@,$GCJ,;t t
17592 s,@GCJFLAGS@,$GCJFLAGS,;t t
17593 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17594 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17595 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17596 s,@subdirs@,$subdirs,;t t
17597 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17598 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17599 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17600 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17601 s,@JAVA_HOME@,$JAVA_HOME,;t t
17602 s,@INTERPRETER@,$INTERPRETER,;t t
17603 s,@LIBFFI@,$LIBFFI,;t t
17604 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17605 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17606 s,@CPP@,$CPP,;t t
17607 s,@EGREP@,$EGREP,;t t
17608 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17609 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17610 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17611 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17612 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17613 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17614 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17615 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17616 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17617 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17618 s,@X_CFLAGS@,$X_CFLAGS,;t t
17619 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17620 s,@X_LIBS@,$X_LIBS,;t t
17621 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17622 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17623 s,@GCLIBS@,$GCLIBS,;t t
17624 s,@GCINCS@,$GCINCS,;t t
17625 s,@GCDEPS@,$GCDEPS,;t t
17626 s,@GCSPEC@,$GCSPEC,;t t
17627 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17628 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17629 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17630 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17631 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17632 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17633 s,@THREADLIBS@,$THREADLIBS,;t t
17634 s,@THREADINCS@,$THREADINCS,;t t
17635 s,@THREADDEPS@,$THREADDEPS,;t t
17636 s,@THREADSPEC@,$THREADSPEC,;t t
17637 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
17638 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17639 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17640 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17641 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17642 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17643 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17644 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17645 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17646 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
17647 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
17648 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
17649 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17650 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17651 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17652 s,@LIBICONV@,$LIBICONV,;t t
17653 s,@LTLIBICONV@,$LTLIBICONV,;t t
17654 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17655 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17656 s,@GTK_LIBS@,$GTK_LIBS,;t t
17657 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17658 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17659 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17660 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17661 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17662 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17663 s,@ZLIBS@,$ZLIBS,;t t
17664 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17665 s,@ZINCS@,$ZINCS,;t t
17666 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17667 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17668 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17669 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17670 s,@IEEESPEC@,$IEEESPEC,;t t
17671 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17672 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17673 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17674 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17675 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17676 s,@toolexecdir@,$toolexecdir,;t t
17677 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17678 s,@toolexeclibdir@,$toolexeclibdir,;t t
17679 s,@dbexecdir@,$dbexecdir,;t t
17680 s,@GCJVERSION@,$GCJVERSION,;t t
17681 s,@gxx_include_dir@,$gxx_include_dir,;t t
17682 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17683 s,@ALLOCA@,$ALLOCA,;t t
17684 s,@PERL@,$PERL,;t t
17685 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17686 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
17687 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
17688 s,@here@,$here,;t t
17689 s,@LIBOBJS@,$LIBOBJS,;t t
17690 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17691 CEOF
17692
17693 _ACEOF
17694
17695   cat >>$CONFIG_STATUS <<\_ACEOF
17696   # Split the substitutions into bite-sized pieces for seds with
17697   # small command number limits, like on Digital OSF/1 and HP-UX.
17698   ac_max_sed_lines=48
17699   ac_sed_frag=1 # Number of current file.
17700   ac_beg=1 # First line for current file.
17701   ac_end=$ac_max_sed_lines # Line after last line for current file.
17702   ac_more_lines=:
17703   ac_sed_cmds=
17704   while $ac_more_lines; do
17705     if test $ac_beg -gt 1; then
17706       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17707     else
17708       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17709     fi
17710     if test ! -s $tmp/subs.frag; then
17711       ac_more_lines=false
17712     else
17713       # The purpose of the label and of the branching condition is to
17714       # speed up the sed processing (if there are no `@' at all, there
17715       # is no need to browse any of the substitutions).
17716       # These are the two extra sed commands mentioned above.
17717       (echo ':t
17718   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17719       if test -z "$ac_sed_cmds"; then
17720         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17721       else
17722         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17723       fi
17724       ac_sed_frag=`expr $ac_sed_frag + 1`
17725       ac_beg=$ac_end
17726       ac_end=`expr $ac_end + $ac_max_sed_lines`
17727     fi
17728   done
17729   if test -z "$ac_sed_cmds"; then
17730     ac_sed_cmds=cat
17731   fi
17732 fi # test -n "$CONFIG_FILES"
17733
17734 _ACEOF
17735 cat >>$CONFIG_STATUS <<\_ACEOF
17736 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17737   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17738   case $ac_file in
17739   - | *:- | *:-:* ) # input from stdin
17740         cat >$tmp/stdin
17741         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17742         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17743   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17744         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17745   * )   ac_file_in=$ac_file.in ;;
17746   esac
17747
17748   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17749   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17751          X"$ac_file" : 'X\(//\)[^/]' \| \
17752          X"$ac_file" : 'X\(//\)$' \| \
17753          X"$ac_file" : 'X\(/\)' \| \
17754          .     : '\(.\)' 2>/dev/null ||
17755 echo X"$ac_file" |
17756     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17757           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17758           /^X\(\/\/\)$/{ s//\1/; q; }
17759           /^X\(\/\).*/{ s//\1/; q; }
17760           s/.*/./; q'`
17761   { if $as_mkdir_p; then
17762     mkdir -p "$ac_dir"
17763   else
17764     as_dir="$ac_dir"
17765     as_dirs=
17766     while test ! -d "$as_dir"; do
17767       as_dirs="$as_dir $as_dirs"
17768       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17769 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17770          X"$as_dir" : 'X\(//\)[^/]' \| \
17771          X"$as_dir" : 'X\(//\)$' \| \
17772          X"$as_dir" : 'X\(/\)' \| \
17773          .     : '\(.\)' 2>/dev/null ||
17774 echo X"$as_dir" |
17775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17776           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17777           /^X\(\/\/\)$/{ s//\1/; q; }
17778           /^X\(\/\).*/{ s//\1/; q; }
17779           s/.*/./; q'`
17780     done
17781     test ! -n "$as_dirs" || mkdir $as_dirs
17782   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17783 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17784    { (exit 1); exit 1; }; }; }
17785
17786   ac_builddir=.
17787
17788 if test "$ac_dir" != .; then
17789   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17790   # A "../" for each directory in $ac_dir_suffix.
17791   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17792 else
17793   ac_dir_suffix= ac_top_builddir=
17794 fi
17795
17796 case $srcdir in
17797   .)  # No --srcdir option.  We are building in place.
17798     ac_srcdir=.
17799     if test -z "$ac_top_builddir"; then
17800        ac_top_srcdir=.
17801     else
17802        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17803     fi ;;
17804   [\\/]* | ?:[\\/]* )  # Absolute path.
17805     ac_srcdir=$srcdir$ac_dir_suffix;
17806     ac_top_srcdir=$srcdir ;;
17807   *) # Relative path.
17808     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17809     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17810 esac
17811
17812 # Do not use `cd foo && pwd` to compute absolute paths, because
17813 # the directories may not exist.
17814 case `pwd` in
17815 .) ac_abs_builddir="$ac_dir";;
17816 *)
17817   case "$ac_dir" in
17818   .) ac_abs_builddir=`pwd`;;
17819   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17820   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17821   esac;;
17822 esac
17823 case $ac_abs_builddir in
17824 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17825 *)
17826   case ${ac_top_builddir}. in
17827   .) ac_abs_top_builddir=$ac_abs_builddir;;
17828   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17829   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17830   esac;;
17831 esac
17832 case $ac_abs_builddir in
17833 .) ac_abs_srcdir=$ac_srcdir;;
17834 *)
17835   case $ac_srcdir in
17836   .) ac_abs_srcdir=$ac_abs_builddir;;
17837   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17838   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17839   esac;;
17840 esac
17841 case $ac_abs_builddir in
17842 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17843 *)
17844   case $ac_top_srcdir in
17845   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17846   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17847   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17848   esac;;
17849 esac
17850
17851
17852   case $INSTALL in
17853   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17854   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17855   esac
17856
17857   if test x"$ac_file" != x-; then
17858     { echo "$as_me:$LINENO: creating $ac_file" >&5
17859 echo "$as_me: creating $ac_file" >&6;}
17860     rm -f "$ac_file"
17861   fi
17862   # Let's still pretend it is `configure' which instantiates (i.e., don't
17863   # use $as_me), people would be surprised to read:
17864   #    /* config.h.  Generated by config.status.  */
17865   if test x"$ac_file" = x-; then
17866     configure_input=
17867   else
17868     configure_input="$ac_file.  "
17869   fi
17870   configure_input=$configure_input"Generated from `echo $ac_file_in |
17871                                      sed 's,.*/,,'` by configure."
17872
17873   # First look for the input files in the build tree, otherwise in the
17874   # src tree.
17875   ac_file_inputs=`IFS=:
17876     for f in $ac_file_in; do
17877       case $f in
17878       -) echo $tmp/stdin ;;
17879       [\\/$]*)
17880          # Absolute (can't be DOS-style, as IFS=:)
17881          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17882 echo "$as_me: error: cannot find input file: $f" >&2;}
17883    { (exit 1); exit 1; }; }
17884          echo "$f";;
17885       *) # Relative
17886          if test -f "$f"; then
17887            # Build tree
17888            echo "$f"
17889          elif test -f "$srcdir/$f"; then
17890            # Source tree
17891            echo "$srcdir/$f"
17892          else
17893            # /dev/null tree
17894            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17895 echo "$as_me: error: cannot find input file: $f" >&2;}
17896    { (exit 1); exit 1; }; }
17897          fi;;
17898       esac
17899     done` || { (exit 1); exit 1; }
17900 _ACEOF
17901 cat >>$CONFIG_STATUS <<_ACEOF
17902   sed "$ac_vpsub
17903 $extrasub
17904 _ACEOF
17905 cat >>$CONFIG_STATUS <<\_ACEOF
17906 :t
17907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17908 s,@configure_input@,$configure_input,;t t
17909 s,@srcdir@,$ac_srcdir,;t t
17910 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17911 s,@top_srcdir@,$ac_top_srcdir,;t t
17912 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17913 s,@builddir@,$ac_builddir,;t t
17914 s,@abs_builddir@,$ac_abs_builddir,;t t
17915 s,@top_builddir@,$ac_top_builddir,;t t
17916 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17917 s,@INSTALL@,$ac_INSTALL,;t t
17918 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17919   rm -f $tmp/stdin
17920   if test x"$ac_file" != x-; then
17921     mv $tmp/out $ac_file
17922   else
17923     cat $tmp/out
17924     rm -f $tmp/out
17925   fi
17926
17927   # Run the commands associated with the file.
17928   case $ac_file in
17929     scripts/jar ) chmod +x scripts/jar ;;
17930   esac
17931 done
17932 _ACEOF
17933 cat >>$CONFIG_STATUS <<\_ACEOF
17934
17935 #
17936 # CONFIG_HEADER section.
17937 #
17938
17939 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17940 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17941 #
17942 # ac_d sets the value in "#define NAME VALUE" lines.
17943 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17944 ac_dB='[         ].*$,\1#\2'
17945 ac_dC=' '
17946 ac_dD=',;t'
17947 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17948 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17949 ac_uB='$,\1#\2define\3'
17950 ac_uC=' '
17951 ac_uD=',;t'
17952
17953 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17954   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17955   case $ac_file in
17956   - | *:- | *:-:* ) # input from stdin
17957         cat >$tmp/stdin
17958         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17959         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17960   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17961         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17962   * )   ac_file_in=$ac_file.in ;;
17963   esac
17964
17965   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17966 echo "$as_me: creating $ac_file" >&6;}
17967
17968   # First look for the input files in the build tree, otherwise in the
17969   # src tree.
17970   ac_file_inputs=`IFS=:
17971     for f in $ac_file_in; do
17972       case $f in
17973       -) echo $tmp/stdin ;;
17974       [\\/$]*)
17975          # Absolute (can't be DOS-style, as IFS=:)
17976          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17977 echo "$as_me: error: cannot find input file: $f" >&2;}
17978    { (exit 1); exit 1; }; }
17979          # Do quote $f, to prevent DOS paths from being IFS'd.
17980          echo "$f";;
17981       *) # Relative
17982          if test -f "$f"; then
17983            # Build tree
17984            echo "$f"
17985          elif test -f "$srcdir/$f"; then
17986            # Source tree
17987            echo "$srcdir/$f"
17988          else
17989            # /dev/null tree
17990            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17991 echo "$as_me: error: cannot find input file: $f" >&2;}
17992    { (exit 1); exit 1; }; }
17993          fi;;
17994       esac
17995     done` || { (exit 1); exit 1; }
17996   # Remove the trailing spaces.
17997   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17998
17999 _ACEOF
18000
18001 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18002 # `conftest.undefs', that substitutes the proper values into
18003 # config.h.in to produce config.h.  The first handles `#define'
18004 # templates, and the second `#undef' templates.
18005 # And first: Protect against being on the right side of a sed subst in
18006 # config.status.  Protect against being in an unquoted here document
18007 # in config.status.
18008 rm -f conftest.defines conftest.undefs
18009 # Using a here document instead of a string reduces the quoting nightmare.
18010 # Putting comments in sed scripts is not portable.
18011 #
18012 # `end' is used to avoid that the second main sed command (meant for
18013 # 0-ary CPP macros) applies to n-ary macro definitions.
18014 # See the Autoconf documentation for `clear'.
18015 cat >confdef2sed.sed <<\_ACEOF
18016 s/[\\&,]/\\&/g
18017 s,[\\$`],\\&,g
18018 t clear
18019 : clear
18020 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18021 t end
18022 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18023 : end
18024 _ACEOF
18025 # If some macros were called several times there might be several times
18026 # the same #defines, which is useless.  Nevertheless, we may not want to
18027 # sort them, since we want the *last* AC-DEFINE to be honored.
18028 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18029 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18030 rm -f confdef2sed.sed
18031
18032 # This sed command replaces #undef with comments.  This is necessary, for
18033 # example, in the case of _POSIX_SOURCE, which is predefined and required
18034 # on some systems where configure will not decide to define it.
18035 cat >>conftest.undefs <<\_ACEOF
18036 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18037 _ACEOF
18038
18039 # Break up conftest.defines because some shells have a limit on the size
18040 # of here documents, and old seds have small limits too (100 cmds).
18041 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18042 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18043 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18044 echo '  :' >>$CONFIG_STATUS
18045 rm -f conftest.tail
18046 while grep . conftest.defines >/dev/null
18047 do
18048   # Write a limited-size here document to $tmp/defines.sed.
18049   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18050   # Speed up: don't consider the non `#define' lines.
18051   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18052   # Work around the forget-to-reset-the-flag bug.
18053   echo 't clr' >>$CONFIG_STATUS
18054   echo ': clr' >>$CONFIG_STATUS
18055   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18056   echo 'CEOF
18057   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18058   rm -f $tmp/in
18059   mv $tmp/out $tmp/in
18060 ' >>$CONFIG_STATUS
18061   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18062   rm -f conftest.defines
18063   mv conftest.tail conftest.defines
18064 done
18065 rm -f conftest.defines
18066 echo '  fi # grep' >>$CONFIG_STATUS
18067 echo >>$CONFIG_STATUS
18068
18069 # Break up conftest.undefs because some shells have a limit on the size
18070 # of here documents, and old seds have small limits too (100 cmds).
18071 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
18072 rm -f conftest.tail
18073 while grep . conftest.undefs >/dev/null
18074 do
18075   # Write a limited-size here document to $tmp/undefs.sed.
18076   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18077   # Speed up: don't consider the non `#undef'
18078   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18079   # Work around the forget-to-reset-the-flag bug.
18080   echo 't clr' >>$CONFIG_STATUS
18081   echo ': clr' >>$CONFIG_STATUS
18082   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18083   echo 'CEOF
18084   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18085   rm -f $tmp/in
18086   mv $tmp/out $tmp/in
18087 ' >>$CONFIG_STATUS
18088   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18089   rm -f conftest.undefs
18090   mv conftest.tail conftest.undefs
18091 done
18092 rm -f conftest.undefs
18093
18094 cat >>$CONFIG_STATUS <<\_ACEOF
18095   # Let's still pretend it is `configure' which instantiates (i.e., don't
18096   # use $as_me), people would be surprised to read:
18097   #    /* config.h.  Generated by config.status.  */
18098   if test x"$ac_file" = x-; then
18099     echo "/* Generated by configure.  */" >$tmp/config.h
18100   else
18101     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18102   fi
18103   cat $tmp/in >>$tmp/config.h
18104   rm -f $tmp/in
18105   if test x"$ac_file" != x-; then
18106     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18107       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18108 echo "$as_me: $ac_file is unchanged" >&6;}
18109     else
18110       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18111 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18112          X"$ac_file" : 'X\(//\)[^/]' \| \
18113          X"$ac_file" : 'X\(//\)$' \| \
18114          X"$ac_file" : 'X\(/\)' \| \
18115          .     : '\(.\)' 2>/dev/null ||
18116 echo X"$ac_file" |
18117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18118           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18119           /^X\(\/\/\)$/{ s//\1/; q; }
18120           /^X\(\/\).*/{ s//\1/; q; }
18121           s/.*/./; q'`
18122       { if $as_mkdir_p; then
18123     mkdir -p "$ac_dir"
18124   else
18125     as_dir="$ac_dir"
18126     as_dirs=
18127     while test ! -d "$as_dir"; do
18128       as_dirs="$as_dir $as_dirs"
18129       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18131          X"$as_dir" : 'X\(//\)[^/]' \| \
18132          X"$as_dir" : 'X\(//\)$' \| \
18133          X"$as_dir" : 'X\(/\)' \| \
18134          .     : '\(.\)' 2>/dev/null ||
18135 echo X"$as_dir" |
18136     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18137           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18138           /^X\(\/\/\)$/{ s//\1/; q; }
18139           /^X\(\/\).*/{ s//\1/; q; }
18140           s/.*/./; q'`
18141     done
18142     test ! -n "$as_dirs" || mkdir $as_dirs
18143   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18144 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18145    { (exit 1); exit 1; }; }; }
18146
18147       rm -f $ac_file
18148       mv $tmp/config.h $ac_file
18149     fi
18150   else
18151     cat $tmp/config.h
18152     rm -f $tmp/config.h
18153   fi
18154 # Compute $ac_file's index in $config_headers.
18155 _am_stamp_count=1
18156 for _am_header in $config_headers :; do
18157   case $_am_header in
18158     $ac_file | $ac_file:* )
18159       break ;;
18160     * )
18161       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18162   esac
18163 done
18164 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18165 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18166          X$ac_file : 'X\(//\)[^/]' \| \
18167          X$ac_file : 'X\(//\)$' \| \
18168          X$ac_file : 'X\(/\)' \| \
18169          .     : '\(.\)' 2>/dev/null ||
18170 echo X$ac_file |
18171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18172           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18173           /^X\(\/\/\)$/{ s//\1/; q; }
18174           /^X\(\/\).*/{ s//\1/; q; }
18175           s/.*/./; q'`/stamp-h$_am_stamp_count
18176 done
18177 _ACEOF
18178 cat >>$CONFIG_STATUS <<\_ACEOF
18179
18180 #
18181 # CONFIG_LINKS section.
18182 #
18183
18184 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18185   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18186   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18187
18188   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
18189 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18190
18191   if test ! -r $srcdir/$ac_source; then
18192     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
18193 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
18194    { (exit 1); exit 1; }; }
18195   fi
18196   rm -f $ac_dest
18197
18198   # Make relative symlinks.
18199   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
18200 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18201          X"$ac_dest" : 'X\(//\)[^/]' \| \
18202          X"$ac_dest" : 'X\(//\)$' \| \
18203          X"$ac_dest" : 'X\(/\)' \| \
18204          .     : '\(.\)' 2>/dev/null ||
18205 echo X"$ac_dest" |
18206     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18207           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18208           /^X\(\/\/\)$/{ s//\1/; q; }
18209           /^X\(\/\).*/{ s//\1/; q; }
18210           s/.*/./; q'`
18211   { if $as_mkdir_p; then
18212     mkdir -p "$ac_dest_dir"
18213   else
18214     as_dir="$ac_dest_dir"
18215     as_dirs=
18216     while test ! -d "$as_dir"; do
18217       as_dirs="$as_dir $as_dirs"
18218       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18220          X"$as_dir" : 'X\(//\)[^/]' \| \
18221          X"$as_dir" : 'X\(//\)$' \| \
18222          X"$as_dir" : 'X\(/\)' \| \
18223          .     : '\(.\)' 2>/dev/null ||
18224 echo X"$as_dir" |
18225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18226           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18227           /^X\(\/\/\)$/{ s//\1/; q; }
18228           /^X\(\/\).*/{ s//\1/; q; }
18229           s/.*/./; q'`
18230     done
18231     test ! -n "$as_dirs" || mkdir $as_dirs
18232   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
18233 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
18234    { (exit 1); exit 1; }; }; }
18235
18236   ac_builddir=.
18237
18238 if test "$ac_dest_dir" != .; then
18239   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
18240   # A "../" for each directory in $ac_dir_suffix.
18241   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18242 else
18243   ac_dir_suffix= ac_top_builddir=
18244 fi
18245
18246 case $srcdir in
18247   .)  # No --srcdir option.  We are building in place.
18248     ac_srcdir=.
18249     if test -z "$ac_top_builddir"; then
18250        ac_top_srcdir=.
18251     else
18252        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18253     fi ;;
18254   [\\/]* | ?:[\\/]* )  # Absolute path.
18255     ac_srcdir=$srcdir$ac_dir_suffix;
18256     ac_top_srcdir=$srcdir ;;
18257   *) # Relative path.
18258     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18259     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18260 esac
18261
18262 # Do not use `cd foo && pwd` to compute absolute paths, because
18263 # the directories may not exist.
18264 case `pwd` in
18265 .) ac_abs_builddir="$ac_dest_dir";;
18266 *)
18267   case "$ac_dest_dir" in
18268   .) ac_abs_builddir=`pwd`;;
18269   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
18270   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
18271   esac;;
18272 esac
18273 case $ac_abs_builddir in
18274 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18275 *)
18276   case ${ac_top_builddir}. in
18277   .) ac_abs_top_builddir=$ac_abs_builddir;;
18278   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18279   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18280   esac;;
18281 esac
18282 case $ac_abs_builddir in
18283 .) ac_abs_srcdir=$ac_srcdir;;
18284 *)
18285   case $ac_srcdir in
18286   .) ac_abs_srcdir=$ac_abs_builddir;;
18287   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18288   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18289   esac;;
18290 esac
18291 case $ac_abs_builddir in
18292 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18293 *)
18294   case $ac_top_srcdir in
18295   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18296   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18297   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18298   esac;;
18299 esac
18300
18301
18302   case $srcdir in
18303   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18304       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
18305   esac
18306
18307   # Try a symlink, then a hard link, then a copy.
18308   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18309     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
18310     cp -p $srcdir/$ac_source $ac_dest ||
18311     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
18312 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
18313    { (exit 1); exit 1; }; }
18314 done
18315 _ACEOF
18316 cat >>$CONFIG_STATUS <<\_ACEOF
18317
18318 #
18319 # CONFIG_COMMANDS section.
18320 #
18321 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18322   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18323   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18324   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18325 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18326          X"$ac_dest" : 'X\(//\)[^/]' \| \
18327          X"$ac_dest" : 'X\(//\)$' \| \
18328          X"$ac_dest" : 'X\(/\)' \| \
18329          .     : '\(.\)' 2>/dev/null ||
18330 echo X"$ac_dest" |
18331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18332           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18333           /^X\(\/\/\)$/{ s//\1/; q; }
18334           /^X\(\/\).*/{ s//\1/; q; }
18335           s/.*/./; q'`
18336   { if $as_mkdir_p; then
18337     mkdir -p "$ac_dir"
18338   else
18339     as_dir="$ac_dir"
18340     as_dirs=
18341     while test ! -d "$as_dir"; do
18342       as_dirs="$as_dir $as_dirs"
18343       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18345          X"$as_dir" : 'X\(//\)[^/]' \| \
18346          X"$as_dir" : 'X\(//\)$' \| \
18347          X"$as_dir" : 'X\(/\)' \| \
18348          .     : '\(.\)' 2>/dev/null ||
18349 echo X"$as_dir" |
18350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18351           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18352           /^X\(\/\/\)$/{ s//\1/; q; }
18353           /^X\(\/\).*/{ s//\1/; q; }
18354           s/.*/./; q'`
18355     done
18356     test ! -n "$as_dirs" || mkdir $as_dirs
18357   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18358 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18359    { (exit 1); exit 1; }; }; }
18360
18361   ac_builddir=.
18362
18363 if test "$ac_dir" != .; then
18364   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18365   # A "../" for each directory in $ac_dir_suffix.
18366   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18367 else
18368   ac_dir_suffix= ac_top_builddir=
18369 fi
18370
18371 case $srcdir in
18372   .)  # No --srcdir option.  We are building in place.
18373     ac_srcdir=.
18374     if test -z "$ac_top_builddir"; then
18375        ac_top_srcdir=.
18376     else
18377        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18378     fi ;;
18379   [\\/]* | ?:[\\/]* )  # Absolute path.
18380     ac_srcdir=$srcdir$ac_dir_suffix;
18381     ac_top_srcdir=$srcdir ;;
18382   *) # Relative path.
18383     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18384     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18385 esac
18386
18387 # Do not use `cd foo && pwd` to compute absolute paths, because
18388 # the directories may not exist.
18389 case `pwd` in
18390 .) ac_abs_builddir="$ac_dir";;
18391 *)
18392   case "$ac_dir" in
18393   .) ac_abs_builddir=`pwd`;;
18394   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18395   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18396   esac;;
18397 esac
18398 case $ac_abs_builddir in
18399 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18400 *)
18401   case ${ac_top_builddir}. in
18402   .) ac_abs_top_builddir=$ac_abs_builddir;;
18403   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18404   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18405   esac;;
18406 esac
18407 case $ac_abs_builddir in
18408 .) ac_abs_srcdir=$ac_srcdir;;
18409 *)
18410   case $ac_srcdir in
18411   .) ac_abs_srcdir=$ac_abs_builddir;;
18412   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18413   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18414   esac;;
18415 esac
18416 case $ac_abs_builddir in
18417 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18418 *)
18419   case $ac_top_srcdir in
18420   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18421   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18422   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18423   esac;;
18424 esac
18425
18426
18427   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18428 echo "$as_me: executing $ac_dest commands" >&6;}
18429   case $ac_dest in
18430     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18431   # Strip MF so we end up with the name of the file.
18432   mf=`echo "$mf" | sed -e 's/:.*$//'`
18433   # Check whether this is an Automake generated Makefile or not.
18434   # We used to match only the files named `Makefile.in', but
18435   # some people rename them; so instead we look at the file content.
18436   # Grep'ing the first line is not enough: some people post-process
18437   # each Makefile.in and add a new line on top of each file to say so.
18438   # So let's grep whole file.
18439   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18440     dirpart=`(dirname "$mf") 2>/dev/null ||
18441 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18442          X"$mf" : 'X\(//\)[^/]' \| \
18443          X"$mf" : 'X\(//\)$' \| \
18444          X"$mf" : 'X\(/\)' \| \
18445          .     : '\(.\)' 2>/dev/null ||
18446 echo X"$mf" |
18447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18448           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18449           /^X\(\/\/\)$/{ s//\1/; q; }
18450           /^X\(\/\).*/{ s//\1/; q; }
18451           s/.*/./; q'`
18452   else
18453     continue
18454   fi
18455   # Extract the definition of DEPDIR, am__include, and am__quote
18456   # from the Makefile without running `make'.
18457   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18458   test -z "$DEPDIR" && continue
18459   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18460   test -z "am__include" && continue
18461   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18462   # When using ansi2knr, U may be empty or an underscore; expand it
18463   U=`sed -n 's/^U = //p' < "$mf"`
18464   # Find all dependency output files, they are included files with
18465   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18466   # simplest approach to changing $(DEPDIR) to its actual value in the
18467   # expansion.
18468   for file in `sed -n "
18469     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18470        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18471     # Make sure the directory exists.
18472     test -f "$dirpart/$file" && continue
18473     fdir=`(dirname "$file") 2>/dev/null ||
18474 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18475          X"$file" : 'X\(//\)[^/]' \| \
18476          X"$file" : 'X\(//\)$' \| \
18477          X"$file" : 'X\(/\)' \| \
18478          .     : '\(.\)' 2>/dev/null ||
18479 echo X"$file" |
18480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18481           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18482           /^X\(\/\/\)$/{ s//\1/; q; }
18483           /^X\(\/\).*/{ s//\1/; q; }
18484           s/.*/./; q'`
18485     { if $as_mkdir_p; then
18486     mkdir -p $dirpart/$fdir
18487   else
18488     as_dir=$dirpart/$fdir
18489     as_dirs=
18490     while test ! -d "$as_dir"; do
18491       as_dirs="$as_dir $as_dirs"
18492       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18494          X"$as_dir" : 'X\(//\)[^/]' \| \
18495          X"$as_dir" : 'X\(//\)$' \| \
18496          X"$as_dir" : 'X\(/\)' \| \
18497          .     : '\(.\)' 2>/dev/null ||
18498 echo X"$as_dir" |
18499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18500           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18501           /^X\(\/\/\)$/{ s//\1/; q; }
18502           /^X\(\/\).*/{ s//\1/; q; }
18503           s/.*/./; q'`
18504     done
18505     test ! -n "$as_dirs" || mkdir $as_dirs
18506   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18507 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18508    { (exit 1); exit 1; }; }; }
18509
18510     # echo "creating $dirpart/$file"
18511     echo '# dummy' > "$dirpart/$file"
18512   done
18513 done
18514  ;;
18515     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18516 case " $CONFIG_FILES " in
18517  *" Makefile "*)
18518    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18519    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18520    ;;
18521 esac
18522 for ac_multi_file in $CONFIG_FILES; do
18523   case $ac_multi_file in
18524   */Makefile)
18525     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18526   esac
18527 done
18528  ;;
18529   esac
18530 done
18531 _ACEOF
18532
18533 cat >>$CONFIG_STATUS <<\_ACEOF
18534
18535 { (exit 0); exit 0; }
18536 _ACEOF
18537 chmod +x $CONFIG_STATUS
18538 ac_clean_files=$ac_clean_files_save
18539
18540
18541 # configure is writing to config.log, and then calls config.status.
18542 # config.status does its own redirection, appending to config.log.
18543 # Unfortunately, on DOS this fails, as config.log is still kept open
18544 # by configure, so config.status won't be able to write to it; its
18545 # output is simply discarded.  So we exec the FD to /dev/null,
18546 # effectively closing config.log, so it can be properly (re)opened and
18547 # appended to by config.status.  When coming back to configure, we
18548 # need to make the FD available again.
18549 if test "$no_create" != yes; then
18550   ac_cs_success=:
18551   ac_config_status_args=
18552   test "$silent" = yes &&
18553     ac_config_status_args="$ac_config_status_args --quiet"
18554   exec 5>/dev/null
18555   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18556   exec 5>>config.log
18557   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18558   # would make configure fail if this is the last instruction.
18559   $ac_cs_success || { (exit 1); exit 1; }
18560 fi
18561
18562 #
18563 # CONFIG_SUBDIRS section.
18564 #
18565 if test "$no_recursion" != yes; then
18566
18567   # Remove --cache-file and --srcdir arguments so they do not pile up.
18568   ac_sub_configure_args=
18569   ac_prev=
18570   for ac_arg in $ac_configure_args; do
18571     if test -n "$ac_prev"; then
18572       ac_prev=
18573       continue
18574     fi
18575     case $ac_arg in
18576     -cache-file | --cache-file | --cache-fil | --cache-fi \
18577     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18578       ac_prev=cache_file ;;
18579     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18580     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18581     | --c=*)
18582       ;;
18583     --config-cache | -C)
18584       ;;
18585     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18586       ac_prev=srcdir ;;
18587     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18588       ;;
18589     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18590       ac_prev=prefix ;;
18591     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18592       ;;
18593     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18594     esac
18595   done
18596
18597   # Always prepend --prefix to ensure using the same prefix
18598   # in subdir configurations.
18599   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18600
18601   ac_popdir=`pwd`
18602   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18603
18604     # Do not complain, so a configure script can configure whichever
18605     # parts of a large source tree are present.
18606     test -d $srcdir/$ac_dir || continue
18607
18608     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18609 echo "$as_me: configuring in $ac_dir" >&6;}
18610     { if $as_mkdir_p; then
18611     mkdir -p "$ac_dir"
18612   else
18613     as_dir="$ac_dir"
18614     as_dirs=
18615     while test ! -d "$as_dir"; do
18616       as_dirs="$as_dir $as_dirs"
18617       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18619          X"$as_dir" : 'X\(//\)[^/]' \| \
18620          X"$as_dir" : 'X\(//\)$' \| \
18621          X"$as_dir" : 'X\(/\)' \| \
18622          .     : '\(.\)' 2>/dev/null ||
18623 echo X"$as_dir" |
18624     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18625           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18626           /^X\(\/\/\)$/{ s//\1/; q; }
18627           /^X\(\/\).*/{ s//\1/; q; }
18628           s/.*/./; q'`
18629     done
18630     test ! -n "$as_dirs" || mkdir $as_dirs
18631   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18633    { (exit 1); exit 1; }; }; }
18634
18635     ac_builddir=.
18636
18637 if test "$ac_dir" != .; then
18638   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18639   # A "../" for each directory in $ac_dir_suffix.
18640   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18641 else
18642   ac_dir_suffix= ac_top_builddir=
18643 fi
18644
18645 case $srcdir in
18646   .)  # No --srcdir option.  We are building in place.
18647     ac_srcdir=.
18648     if test -z "$ac_top_builddir"; then
18649        ac_top_srcdir=.
18650     else
18651        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18652     fi ;;
18653   [\\/]* | ?:[\\/]* )  # Absolute path.
18654     ac_srcdir=$srcdir$ac_dir_suffix;
18655     ac_top_srcdir=$srcdir ;;
18656   *) # Relative path.
18657     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18658     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18659 esac
18660
18661 # Do not use `cd foo && pwd` to compute absolute paths, because
18662 # the directories may not exist.
18663 case `pwd` in
18664 .) ac_abs_builddir="$ac_dir";;
18665 *)
18666   case "$ac_dir" in
18667   .) ac_abs_builddir=`pwd`;;
18668   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18669   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18670   esac;;
18671 esac
18672 case $ac_abs_builddir in
18673 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18674 *)
18675   case ${ac_top_builddir}. in
18676   .) ac_abs_top_builddir=$ac_abs_builddir;;
18677   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18678   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18679   esac;;
18680 esac
18681 case $ac_abs_builddir in
18682 .) ac_abs_srcdir=$ac_srcdir;;
18683 *)
18684   case $ac_srcdir in
18685   .) ac_abs_srcdir=$ac_abs_builddir;;
18686   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18687   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18688   esac;;
18689 esac
18690 case $ac_abs_builddir in
18691 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18692 *)
18693   case $ac_top_srcdir in
18694   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18695   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18696   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18697   esac;;
18698 esac
18699
18700
18701     cd $ac_dir
18702
18703     # Check for guested configure; otherwise get Cygnus style configure.
18704     if test -f $ac_srcdir/configure.gnu; then
18705       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18706     elif test -f $ac_srcdir/configure; then
18707       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18708     elif test -f $ac_srcdir/configure.in; then
18709       ac_sub_configure=$ac_configure
18710     else
18711       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18712 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18713       ac_sub_configure=
18714     fi
18715
18716     # The recursion is here.
18717     if test -n "$ac_sub_configure"; then
18718       # Make the cache file name correct relative to the subdirectory.
18719       case $cache_file in
18720       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18721       *) # Relative path.
18722         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18723       esac
18724
18725       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18726 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18727       # The eval makes quoting arguments work.
18728       eval $ac_sub_configure $ac_sub_configure_args \
18729            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18730         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18731 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18732    { (exit 1); exit 1; }; }
18733     fi
18734
18735     cd $ac_popdir
18736   done
18737 fi
18738