OSDN Git Service

2005-04-29 Michael Koch <konqueror@gmx.de>
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766
767 #
768 # Report the --help message.
769 #
770 if test "$ac_init_help" = "long"; then
771   # Omit some internal or obsolete options to make the list less imposing.
772   # This message is too long to be a string in the A/UX 3.1 sh.
773   cat <<_ACEOF
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
775
776 Usage: $0 [OPTION]... [VAR=VALUE]...
777
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE.  See below for descriptions of some of the useful variables.
780
781 Defaults for the options are specified in brackets.
782
783 Configuration:
784   -h, --help              display this help and exit
785       --help=short        display options specific to this package
786       --help=recursive    display the short help of all the included packages
787   -V, --version           display version information and exit
788   -q, --quiet, --silent   do not print \`checking...' messages
789       --cache-file=FILE   cache test results in FILE [disabled]
790   -C, --config-cache      alias for \`--cache-file=config.cache'
791   -n, --no-create         do not create output files
792       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
793
794 _ACEOF
795
796   cat <<_ACEOF
797 Installation directories:
798   --prefix=PREFIX         install architecture-independent files in PREFIX
799                           [$ac_default_prefix]
800   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
801                           [PREFIX]
802
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
807
808 For better control, use the options below.
809
810 Fine tuning of the installation directories:
811   --bindir=DIR           user executables [EPREFIX/bin]
812   --sbindir=DIR          system admin executables [EPREFIX/sbin]
813   --libexecdir=DIR       program executables [EPREFIX/libexec]
814   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
815   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
816   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
817   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
818   --libdir=DIR           object code libraries [EPREFIX/lib]
819   --includedir=DIR       C header files [PREFIX/include]
820   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
821   --infodir=DIR          info documentation [PREFIX/info]
822   --mandir=DIR           man documentation [PREFIX/man]
823 _ACEOF
824
825   cat <<\_ACEOF
826
827 Program names:
828   --program-prefix=PREFIX            prepend PREFIX to installed program names
829   --program-suffix=SUFFIX            append SUFFIX to installed program names
830   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
831
832 X features:
833   --x-includes=DIR    X include files are in DIR
834   --x-libraries=DIR   X library files are in DIR
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libjava version-unused:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-version-specific-runtime-libs
853                           specify that runtime libraries should be installed
854                           in a compiler-specific directory
855   --enable-multilib       build many library versions (default)
856   --disable-dependency-tracking  speeds up one-time build
857   --enable-dependency-tracking   do not reject slow dependency extractors
858   --enable-maintainer-mode  enable make rules and dependencies not useful
859                           (and sometimes confusing) to the casual installer
860   --enable-shared=PKGS  build shared libraries default=yes
861   --enable-static=PKGS  build static libraries default=yes
862   --enable-fast-install=PKGS  optimize for fast installation default=yes
863   --disable-libtool-lock  avoid locking (might break parallel builds)
864   --disable-getenv-properties
865                           don't set system properties from GCJ_PROPERTIES
866   --enable-hash-synchronization
867                           use global hash table for monitor locks
868   --enable-libgcj-multifile
869                  allow compilation of several files at once
870
871   --enable-libgcj-debug   enable runtime debugging code
872   --enable-gc-debug       include full support for pointer backtracing etc.
873   --enable-interpreter    enable interpreter
874   --enable-sjlj-exceptions
875                           force use of builtin_setjmp for exceptions
876   --disable-java-net      disable java.net
877   --disable-jvmpi         disable JVMPI support
878   --enable-java-awt       list of AWT peer implementations to be built
879   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
880   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
881   --disable-rpath         do not hardcode runtime library paths
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886   --with-target-subdir=SUBDIR
887                           configure in a subdirectory
888   --with-cross-host=HOST  configure with a cross compiler from HOST
889   --with-newlib           configure with newlib
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-pic              try to use only PIC/non-PIC objects default=use both
892   --with-java-home=DIRECTORY
893                           value of java.home system property
894   --with-win32-nlsapi=ansi or unicows or unicode
895                           native MinGW libgcj Win32 OS API (default is ansi)
896   --without-libffi        don't use libffi
897   --with-ecos             enable runtime eCos target support
898   --with-system-zlib      use installed libz
899   --with-x                use the X Window System
900   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
901   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
902
903 Some influential environment variables:
904   CC          C compiler command
905   CFLAGS      C compiler flags
906   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
907               nonstandard directory <lib dir>
908   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
909               headers in a nonstandard directory <include dir>
910   CXX         C++ compiler command
911   CXXFLAGS    C++ compiler flags
912   CXXCPP      C++ preprocessor
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957   case "$ac_dir" in
958   .) ac_abs_builddir=`pwd`;;
959   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960   *) ac_abs_builddir=`pwd`/"$ac_dir";;
961   esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966   case ${ac_top_builddir}. in
967   .) ac_abs_top_builddir=$ac_abs_builddir;;
968   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970   esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975   case $ac_srcdir in
976   .) ac_abs_srcdir=$ac_abs_builddir;;
977   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979   esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984   case $ac_top_srcdir in
985   .) ac_abs_top_srcdir=$ac_abs_builddir;;
986   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988   esac;;
989 esac
990
991     cd $ac_dir
992     # Check for guested configure; otherwise get Cygnus style configure.
993     if test -f $ac_srcdir/configure.gnu; then
994       echo
995       $SHELL $ac_srcdir/configure.gnu  --help=recursive
996     elif test -f $ac_srcdir/configure; then
997       echo
998       $SHELL $ac_srcdir/configure  --help=recursive
999     elif test -f $ac_srcdir/configure.ac ||
1000            test -f $ac_srcdir/configure.in; then
1001       echo
1002       $ac_configure --help
1003     else
1004       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005     fi
1006     cd "$ac_popdir"
1007   done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012   cat <<\_ACEOF
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1015
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1019 _ACEOF
1020   exit 0
1021 fi
1022 exec 5>config.log
1023 cat >&5 <<_ACEOF
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1026
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59.  Invocation command line was
1029
1030   $ $0 $@
1031
1032 _ACEOF
1033 {
1034 cat <<_ASUNAME
1035 ## --------- ##
1036 ## Platform. ##
1037 ## --------- ##
1038
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1044
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1047
1048 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1049 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1052 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1053 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1054 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1055
1056 _ASUNAME
1057
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 for as_dir in $PATH
1060 do
1061   IFS=$as_save_IFS
1062   test -z "$as_dir" && as_dir=.
1063   echo "PATH: $as_dir"
1064 done
1065
1066 } >&5
1067
1068 cat >&5 <<_ACEOF
1069
1070
1071 ## ----------- ##
1072 ## Core tests. ##
1073 ## ----------- ##
1074
1075 _ACEOF
1076
1077
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1083 ac_configure_args=
1084 ac_configure_args0=
1085 ac_configure_args1=
1086 ac_sep=
1087 ac_must_keep_next=false
1088 for ac_pass in 1 2
1089 do
1090   for ac_arg
1091   do
1092     case $ac_arg in
1093     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095     | -silent | --silent | --silen | --sile | --sil)
1096       continue ;;
1097     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099     esac
1100     case $ac_pass in
1101     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1102     2)
1103       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104       if test $ac_must_keep_next = true; then
1105         ac_must_keep_next=false # Got value, back to normal.
1106       else
1107         case $ac_arg in
1108           *=* | --config-cache | -C | -disable-* | --disable-* \
1109           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111           | -with-* | --with-* | -without-* | --without-* | --x)
1112             case "$ac_configure_args0 " in
1113               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114             esac
1115             ;;
1116           -* ) ac_must_keep_next=true ;;
1117         esac
1118       fi
1119       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120       # Get rid of the leading space.
1121       ac_sep=" "
1122       ;;
1123     esac
1124   done
1125 done
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1128
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log.  We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135   # Save into config.log some information that might help in debugging.
1136   {
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1143 _ASBOX
1144     echo
1145     # The following way of writing the cache mishandles newlines in values,
1146 {
1147   (set) 2>&1 |
1148     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149     *ac_space=\ *)
1150       sed -n \
1151         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153       ;;
1154     *)
1155       sed -n \
1156         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1157       ;;
1158     esac;
1159 }
1160     echo
1161
1162     cat <<\_ASBOX
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1166 _ASBOX
1167     echo
1168     for ac_var in $ac_subst_vars
1169     do
1170       eval ac_val=$`echo $ac_var`
1171       echo "$ac_var='"'"'$ac_val'"'"'"
1172     done | sort
1173     echo
1174
1175     if test -n "$ac_subst_files"; then
1176       cat <<\_ASBOX
1177 ## ------------- ##
1178 ## Output files. ##
1179 ## ------------- ##
1180 _ASBOX
1181       echo
1182       for ac_var in $ac_subst_files
1183       do
1184         eval ac_val=$`echo $ac_var`
1185         echo "$ac_var='"'"'$ac_val'"'"'"
1186       done | sort
1187       echo
1188     fi
1189
1190     if test -s confdefs.h; then
1191       cat <<\_ASBOX
1192 ## ----------- ##
1193 ## confdefs.h. ##
1194 ## ----------- ##
1195 _ASBOX
1196       echo
1197       sed "/^$/d" confdefs.h | sort
1198       echo
1199     fi
1200     test "$ac_signal" != 0 &&
1201       echo "$as_me: caught signal $ac_signal"
1202     echo "$as_me: exit $exit_status"
1203   } >&5
1204   rm -f core *.core &&
1205   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206     exit $exit_status
1207      ' 0
1208 for ac_signal in 1 2 13 15; do
1209   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 done
1211 ac_signal=0
1212
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 echo >confdefs.h
1217
1218 # Predefined preprocessor variables.
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 _ACEOF
1243
1244
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248   if test "x$prefix" != xNONE; then
1249     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1250   else
1251     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252   fi
1253 fi
1254 for ac_site_file in $CONFIG_SITE; do
1255   if test -r "$ac_site_file"; then
1256     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258     sed 's/^/| /' "$ac_site_file" >&5
1259     . "$ac_site_file"
1260   fi
1261 done
1262
1263 if test -r "$cache_file"; then
1264   # Some versions of bash will fail to source /dev/null (special
1265   # files actually), so we avoid doing that.
1266   if test -f "$cache_file"; then
1267     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1269     case $cache_file in
1270       [\\/]* | ?:[\\/]* ) . $cache_file;;
1271       *)                      . ./$cache_file;;
1272     esac
1273   fi
1274 else
1275   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1277   >$cache_file
1278 fi
1279
1280 # Check that the precious variables saved in the cache have kept the same
1281 # value.
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286   eval ac_new_set=\$ac_env_${ac_var}_set
1287   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288   eval ac_new_val="\$ac_env_${ac_var}_value"
1289   case $ac_old_set,$ac_new_set in
1290     set,)
1291       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293       ac_cache_corrupted=: ;;
1294     ,set)
1295       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297       ac_cache_corrupted=: ;;
1298     ,);;
1299     *)
1300       if test "x$ac_old_val" != "x$ac_new_val"; then
1301         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1304 echo "$as_me:   former value:  $ac_old_val" >&2;}
1305         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1306 echo "$as_me:   current value: $ac_new_val" >&2;}
1307         ac_cache_corrupted=:
1308       fi;;
1309   esac
1310   # Pass precious variables to config.status.
1311   if test "$ac_new_set" = set; then
1312     case $ac_new_val in
1313     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315     *) ac_arg=$ac_var=$ac_new_val ;;
1316     esac
1317     case " $ac_configure_args " in
1318       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1319       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320     esac
1321   fi
1322 done
1323 if $ac_cache_corrupted; then
1324   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328    { (exit 1); exit 1; }; }
1329 fi
1330
1331 ac_ext=c
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ac_aux_dir=
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368   if test -f $ac_dir/install-sh; then
1369     ac_aux_dir=$ac_dir
1370     ac_install_sh="$ac_aux_dir/install-sh -c"
1371     break
1372   elif test -f $ac_dir/install.sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install.sh -c"
1375     break
1376   elif test -f $ac_dir/shtool; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/shtool install -c"
1379     break
1380   fi
1381 done
1382 if test -z "$ac_aux_dir"; then
1383   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1390
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395    { (exit 1); exit 1; }; }
1396
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400   echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402   ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404   ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408    { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412    { (exit 1); exit 1; }; }
1413
1414 fi
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1417 build=$ac_cv_build
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421
1422
1423  case ${build_alias} in
1424   "") build_noncanonical=${build} ;;
1425   *) build_noncanonical=${build_alias} ;;
1426 esac
1427
1428  case ${host_alias} in
1429   "") host_noncanonical=${build_noncanonical} ;;
1430   *) host_noncanonical=${host_alias} ;;
1431 esac
1432
1433  case ${target_alias} in
1434   "") target_noncanonical=${host_noncanonical} ;;
1435   *) target_noncanonical=${target_alias} ;;
1436 esac
1437
1438   # Prefix 'build-' so this never conflicts with target_subdir.
1439 build_subdir="build-${build_noncanonical}"
1440 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1441 if ( test $srcdir = . && test -d gcc ) \
1442    || test -d $srcdir/../host-${host_noncanonical}; then
1443   host_subdir="host-${host_noncanonical}"
1444 else
1445   host_subdir=.
1446 fi
1447 # No prefix.
1448 target_subdir=${target_noncanonical}
1449
1450
1451 # We use these options to decide which functions to include.
1452
1453 # Check whether --with-target-subdir or --without-target-subdir was given.
1454 if test "${with_target_subdir+set}" = set; then
1455   withval="$with_target_subdir"
1456
1457 fi;
1458
1459 # We may get other options which we don't document:
1460 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1461
1462 # When building with srcdir == objdir, links to the source files will
1463 # be created in directories within the target_subdir.  We have to
1464 # adjust toplevel_srcdir accordingly, so that configure finds
1465 # install-sh and other auxiliary files that live in the top-level
1466 # source directory.
1467 if test "${srcdir}" = "."; then
1468   if test -z "${with_target_subdir}"; then
1469     toprel=".."
1470   else
1471     if test "${with_target_subdir}" != "."; then
1472       toprel="${with_multisrctop}../.."
1473     else
1474       toprel="${with_multisrctop}.."
1475     fi
1476   fi
1477 else
1478   toprel=".."
1479 fi
1480
1481 libgcj_basedir=$srcdir/$toprel/./libjava
1482
1483
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487   echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489   ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491   ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495    { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1500 host=$ac_cv_host
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509   echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511   ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513   ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531   test "$program_prefix$program_suffix$program_transform_name" = \
1532     NONENONEs,x,x, &&
1533   program_prefix=${target_alias}-
1534  case ${build_alias} in
1535   "") build_noncanonical=${build} ;;
1536   *) build_noncanonical=${build_alias} ;;
1537 esac
1538
1539  case ${target_alias} in
1540   "") target_noncanonical=${host_noncanonical} ;;
1541   *) target_noncanonical=${target_alias} ;;
1542 esac
1543
1544
1545
1546
1547 # This works around the fact that libtool configuration may change LD
1548 # for this particular configuration, but some shells, instead of
1549 # keeping the changes in LD private, export them just because LD is
1550 # exported.
1551 ORIGINAL_LD_FOR_MULTILIBS=$LD
1552
1553 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1555 LN_S=$as_ln_s
1556 if test "$LN_S" = "ln -s"; then
1557   echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1559 else
1560   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1561 echo "${ECHO_T}no, using $LN_S" >&6
1562 fi
1563
1564
1565 # This works around an automake problem.
1566 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567
1568
1569
1570 # Check whether --with-cross-host or --without-cross-host was given.
1571 if test "${with_cross_host+set}" = set; then
1572   withval="$with_cross_host"
1573
1574 fi;
1575
1576
1577 # Check whether --with-newlib or --without-newlib was given.
1578 if test "${with_newlib+set}" = set; then
1579   withval="$with_newlib"
1580
1581 fi;
1582
1583 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1584 if test "${enable_version_specific_runtime_libs+set}" = set; then
1585   enableval="$enable_version_specific_runtime_libs"
1586   case "$enableval" in
1587       yes) version_specific_libs=yes ;;
1588       no)  version_specific_libs=no ;;
1589       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1590 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1591    { (exit 1); exit 1; }; };;
1592      esac
1593 else
1594   version_specific_libs=no
1595
1596 fi;
1597
1598 # Default to --enable-multilib
1599 # Check whether --enable-multilib or --disable-multilib was given.
1600 if test "${enable_multilib+set}" = set; then
1601   enableval="$enable_multilib"
1602   case "${enableval}" in
1603   yes) multilib=yes ;;
1604   no)  multilib=no ;;
1605   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1606 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1607    { (exit 1); exit 1; }; } ;;
1608  esac
1609 else
1610   multilib=yes
1611 fi;
1612 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1613
1614
1615 # (1) We use an abnormal CXX (without library references), so we
1616 # must cache it under a different name.
1617 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1618 # the non-multilib-adjusted value will be used in multilibs.
1619 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1620 # (4) As another side effect, automake doesn't automatically include them
1621 # in Makefile.in.
1622 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1623 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1624 # used in later tests.  This may not be necessary in libjava; I don't know.
1625
1626
1627
1628 save_CXXFLAGS="$CXXFLAGS"
1629 CXXFLAGS="$CXXFLAGS -fno-builtin"
1630 ac_ext=c
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641   echo $ECHO_N "(cached) $ECHO_C" >&6
1642 else
1643   if test -n "$CC"; then
1644   ac_cv_prog_CC="$CC" # Let the user override the test.
1645 else
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655     break 2
1656   fi
1657 done
1658 done
1659
1660 fi
1661 fi
1662 CC=$ac_cv_prog_CC
1663 if test -n "$CC"; then
1664   echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1666 else
1667   echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1669 fi
1670
1671 fi
1672 if test -z "$ac_cv_prog_CC"; then
1673   ac_ct_CC=$CC
1674   # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679   echo $ECHO_N "(cached) $ECHO_C" >&6
1680 else
1681   if test -n "$ac_ct_CC"; then
1682   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 else
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 for as_dir in $PATH
1686 do
1687   IFS=$as_save_IFS
1688   test -z "$as_dir" && as_dir=.
1689   for ac_exec_ext in '' $ac_executable_extensions; do
1690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691     ac_cv_prog_ac_ct_CC="gcc"
1692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693     break 2
1694   fi
1695 done
1696 done
1697
1698 fi
1699 fi
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1704 else
1705   echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1707 fi
1708
1709   CC=$ac_ct_CC
1710 else
1711   CC="$ac_cv_prog_CC"
1712 fi
1713
1714 if test -z "$CC"; then
1715   if test -n "$ac_tool_prefix"; then
1716   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   if test -n "$CC"; then
1724   ac_cv_prog_CC="$CC" # Let the user override the test.
1725 else
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 for as_dir in $PATH
1728 do
1729   IFS=$as_save_IFS
1730   test -z "$as_dir" && as_dir=.
1731   for ac_exec_ext in '' $ac_executable_extensions; do
1732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733     ac_cv_prog_CC="${ac_tool_prefix}cc"
1734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735     break 2
1736   fi
1737 done
1738 done
1739
1740 fi
1741 fi
1742 CC=$ac_cv_prog_CC
1743 if test -n "$CC"; then
1744   echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1746 else
1747   echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1749 fi
1750
1751 fi
1752 if test -z "$ac_cv_prog_CC"; then
1753   ac_ct_CC=$CC
1754   # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759   echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761   if test -n "$ac_ct_CC"; then
1762   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 else
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 for as_dir in $PATH
1766 do
1767   IFS=$as_save_IFS
1768   test -z "$as_dir" && as_dir=.
1769   for ac_exec_ext in '' $ac_executable_extensions; do
1770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771     ac_cv_prog_ac_ct_CC="cc"
1772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773     break 2
1774   fi
1775 done
1776 done
1777
1778 fi
1779 fi
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1784 else
1785   echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1787 fi
1788
1789   CC=$ac_ct_CC
1790 else
1791   CC="$ac_cv_prog_CC"
1792 fi
1793
1794 fi
1795 if test -z "$CC"; then
1796   # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$CC"; then
1804   ac_cv_prog_CC="$CC" # Let the user override the test.
1805 else
1806   ac_prog_rejected=no
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815        ac_prog_rejected=yes
1816        continue
1817      fi
1818     ac_cv_prog_CC="cc"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 if test $ac_prog_rejected = yes; then
1826   # We found a bogon in the path, so make sure we never use it.
1827   set dummy $ac_cv_prog_CC
1828   shift
1829   if test $# != 0; then
1830     # We chose a different compiler from the bogus one.
1831     # However, it has the same basename, so the bogon will be chosen
1832     # first if we set CC to just the basename; use the full file name.
1833     shift
1834     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1835   fi
1836 fi
1837 fi
1838 fi
1839 CC=$ac_cv_prog_CC
1840 if test -n "$CC"; then
1841   echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1843 else
1844   echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 fi
1849 if test -z "$CC"; then
1850   if test -n "$ac_tool_prefix"; then
1851   for ac_prog in cl
1852   do
1853     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858   echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860   if test -n "$CC"; then
1861   ac_cv_prog_CC="$CC" # Let the user override the test.
1862 else
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   test -z "$as_dir" && as_dir=.
1868   for ac_exec_ext in '' $ac_executable_extensions; do
1869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1872     break 2
1873   fi
1874 done
1875 done
1876
1877 fi
1878 fi
1879 CC=$ac_cv_prog_CC
1880 if test -n "$CC"; then
1881   echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888     test -n "$CC" && break
1889   done
1890 fi
1891 if test -z "$CC"; then
1892   ac_ct_CC=$CC
1893   for ac_prog in cl
1894 do
1895   # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900   echo $ECHO_N "(cached) $ECHO_C" >&6
1901 else
1902   if test -n "$ac_ct_CC"; then
1903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 else
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 for as_dir in $PATH
1907 do
1908   IFS=$as_save_IFS
1909   test -z "$as_dir" && as_dir=.
1910   for ac_exec_ext in '' $ac_executable_extensions; do
1911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912     ac_cv_prog_ac_ct_CC="$ac_prog"
1913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914     break 2
1915   fi
1916 done
1917 done
1918
1919 fi
1920 fi
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1925 else
1926   echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930   test -n "$ac_ct_CC" && break
1931 done
1932
1933   CC=$ac_ct_CC
1934 fi
1935
1936 fi
1937
1938
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943    { (exit 1); exit 1; }; }
1944
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947      "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950   (eval $ac_compiler --version </dev/null >&5) 2>&5
1951   ac_status=$?
1952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953   (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955   (eval $ac_compiler -v </dev/null >&5) 2>&5
1956   ac_status=$?
1957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958   (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960   (eval $ac_compiler -V </dev/null >&5) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }
1964
1965 cat >conftest.$ac_ext <<_ACEOF
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 # FIXME: Cleanup?
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982   (eval $ac_link) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   gcc_no_link=no
1987 else
1988   gcc_no_link=yes
1989 fi
1990
1991 if test x$gcc_no_link = xyes; then
1992   # Setting cross_compile will disable run tests; it will
1993   # also disable AC_CHECK_FILE but that's generally
1994   # correct if we can't link.
1995   cross_compiling=yes
1996   EXEEXT=
1997 else
1998   cat >conftest.$ac_ext <<_ACEOF
1999 /* confdefs.h.  */
2000 _ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h.  */
2004
2005 int
2006 main ()
2007 {
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 ac_clean_files_save=$ac_clean_files
2014 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2015 # Try to create an executable without -o first, disregard a.out.
2016 # It will help us diagnose broken compilers, and finding out an intuition
2017 # of exeext.
2018 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2019 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2020 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2021 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2022   (eval $ac_link_default) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; then
2026   # Find the output, starting from the most likely.  This scheme is
2027 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2028 # resort.
2029
2030 # Be careful to initialize this variable, since it used to be cached.
2031 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2032 ac_cv_exeext=
2033 # b.out is created by i960 compilers.
2034 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2035 do
2036   test -f "$ac_file" || continue
2037   case $ac_file in
2038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039         ;;
2040     conftest.$ac_ext )
2041         # This is the source file.
2042         ;;
2043     [ab].out )
2044         # We found the default executable, but exeext='' is most
2045         # certainly right.
2046         break;;
2047     *.* )
2048         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049         # FIXME: I believe we export ac_cv_exeext for Libtool,
2050         # but it would be cool to find out if it's true.  Does anybody
2051         # maintain Libtool? --akim.
2052         export ac_cv_exeext
2053         break;;
2054     * )
2055         break;;
2056   esac
2057 done
2058 else
2059   echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2061
2062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&2;}
2066    { (exit 77); exit 77; }; }
2067 fi
2068
2069 ac_exeext=$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_file" >&5
2071 echo "${ECHO_T}$ac_file" >&6
2072
2073 # Check the compiler produces executables we can run.  If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2078 # If not cross compiling, check that we can run a simple program.
2079 if test "$cross_compiling" != yes; then
2080   if { ac_try='./$ac_file'
2081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082   (eval $ac_try) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); }; }; then
2086     cross_compiling=no
2087   else
2088     if test "$cross_compiling" = maybe; then
2089         cross_compiling=yes
2090     else
2091         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098     fi
2099   fi
2100 fi
2101 echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6
2103
2104 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2105 ac_clean_files=$ac_clean_files_save
2106 # Check the compiler produces executables we can run.  If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2109 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2110 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2111 echo "${ECHO_T}$cross_compiling" >&6
2112
2113 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2114 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116   (eval $ac_link) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }; then
2120   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2121 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2122 # work properly (i.e., refer to `conftest.exe'), while it won't with
2123 # `rm'.
2124 for ac_file in conftest.exe conftest conftest.*; do
2125   test -f "$ac_file" || continue
2126   case $ac_file in
2127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2128     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2129           export ac_cv_exeext
2130           break;;
2131     * ) break;;
2132   esac
2133 done
2134 else
2135   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&2;}
2139    { (exit 1); exit 1; }; }
2140 fi
2141
2142 rm -f conftest$ac_cv_exeext
2143 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2144 echo "${ECHO_T}$ac_cv_exeext" >&6
2145
2146 rm -f conftest.$ac_ext
2147 EXEEXT=$ac_cv_exeext
2148 ac_exeext=$EXEEXT
2149 fi
2150 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152 if test "${ac_cv_objext+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   cat >conftest.$ac_ext <<_ACEOF
2156 /* confdefs.h.  */
2157 _ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h.  */
2161
2162 int
2163 main ()
2164 {
2165
2166   ;
2167   return 0;
2168 }
2169 _ACEOF
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172   (eval $ac_compile) 2>&5
2173   ac_status=$?
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); }; then
2176   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2177   case $ac_file in
2178     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2180        break;;
2181   esac
2182 done
2183 else
2184   echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190 See \`config.log' for more details." >&2;}
2191    { (exit 1); exit 1; }; }
2192 fi
2193
2194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2195 fi
2196 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197 echo "${ECHO_T}$ac_cv_objext" >&6
2198 OBJEXT=$ac_cv_objext
2199 ac_objext=$OBJEXT
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211
2212 int
2213 main ()
2214 {
2215 #ifndef __GNUC__
2216        choke me
2217 #endif
2218
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>conftest.er1
2226   ac_status=$?
2227   grep -v '^ *+' conftest.er1 >conftest.err
2228   rm -f conftest.er1
2229   cat conftest.err >&5
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); } &&
2232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234   (eval $ac_try) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; } &&
2238          { ac_try='test -s conftest.$ac_objext'
2239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240   (eval $ac_try) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; }; then
2244   ac_compiler_gnu=yes
2245 else
2246   echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249 ac_compiler_gnu=no
2250 fi
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253
2254 fi
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2260 CFLAGS="-g"
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264   echo $ECHO_N "(cached) $ECHO_C" >&6
2265 else
2266   cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h.  */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h.  */
2272
2273 int
2274 main ()
2275 {
2276
2277   ;
2278   return 0;
2279 }
2280 _ACEOF
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283   (eval $ac_compile) 2>conftest.er1
2284   ac_status=$?
2285   grep -v '^ *+' conftest.er1 >conftest.err
2286   rm -f conftest.er1
2287   cat conftest.err >&5
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); } &&
2290          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292   (eval $ac_try) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); }; } &&
2296          { ac_try='test -s conftest.$ac_objext'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; }; then
2302   ac_cv_prog_cc_g=yes
2303 else
2304   echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2306
2307 ac_cv_prog_cc_g=no
2308 fi
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 fi
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313 if test "$ac_test_CFLAGS" = set; then
2314   CFLAGS=$ac_save_CFLAGS
2315 elif test $ac_cv_prog_cc_g = yes; then
2316   if test "$GCC" = yes; then
2317     CFLAGS="-g -O2"
2318   else
2319     CFLAGS="-g"
2320   fi
2321 else
2322   if test "$GCC" = yes; then
2323     CFLAGS="-O2"
2324   else
2325     CFLAGS=
2326   fi
2327 fi
2328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   ac_cv_prog_cc_stdc=no
2334 ac_save_CC=$CC
2335 cat >conftest.$ac_ext <<_ACEOF
2336 /* confdefs.h.  */
2337 _ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h.  */
2341 #include <stdarg.h>
2342 #include <stdio.h>
2343 #include <sys/types.h>
2344 #include <sys/stat.h>
2345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2346 struct buf { int x; };
2347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2348 static char *e (p, i)
2349      char **p;
2350      int i;
2351 {
2352   return p[i];
2353 }
2354 static char *f (char * (*g) (char **, int), char **p, ...)
2355 {
2356   char *s;
2357   va_list v;
2358   va_start (v,p);
2359   s = g (p, va_arg (v,int));
2360   va_end (v);
2361   return s;
2362 }
2363
2364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2365    function prototypes and stuff, but not '\xHH' hex character constants.
2366    These don't provoke an error unfortunately, instead are silently treated
2367    as 'x'.  The following induces an error, until -std1 is added to get
2368    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2369    array size at least.  It's necessary to write '\x00'==0 to get something
2370    that's true only with -std1.  */
2371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372
2373 int test (int i, double x);
2374 struct s1 {int (*f) (int a);};
2375 struct s2 {int (*f) (double a);};
2376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2377 int argc;
2378 char **argv;
2379 int
2380 main ()
2381 {
2382 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 # Don't try gcc -ansi; that turns off useful extensions and
2388 # breaks some systems' header files.
2389 # AIX                   -qlanglvl=ansi
2390 # Ultrix and OSF/1      -std1
2391 # HP-UX 10.20 and later -Ae
2392 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2393 # SVR4                  -Xc -D__EXTENSIONS__
2394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395 do
2396   CC="$ac_save_CC $ac_arg"
2397   rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399   (eval $ac_compile) 2>conftest.er1
2400   ac_status=$?
2401   grep -v '^ *+' conftest.er1 >conftest.err
2402   rm -f conftest.er1
2403   cat conftest.err >&5
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); } &&
2406          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408   (eval $ac_try) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; } &&
2412          { ac_try='test -s conftest.$ac_objext'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; }; then
2418   ac_cv_prog_cc_stdc=$ac_arg
2419 break
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 fi
2425 rm -f conftest.err conftest.$ac_objext
2426 done
2427 rm -f conftest.$ac_ext conftest.$ac_objext
2428 CC=$ac_save_CC
2429
2430 fi
2431
2432 case "x$ac_cv_prog_cc_stdc" in
2433   x|xno)
2434     echo "$as_me:$LINENO: result: none needed" >&5
2435 echo "${ECHO_T}none needed" >&6 ;;
2436   *)
2437     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439     CC="$CC $ac_cv_prog_cc_stdc" ;;
2440 esac
2441
2442 # Some people use a C++ compiler to compile C.  Since we use `exit',
2443 # in C++ we need to declare it.  In case someone uses the same compiler
2444 # for both compiling C and C++ we need to have the C++ compiler decide
2445 # the declaration of exit, since it's the most demanding environment.
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #ifndef __cplusplus
2448   choke me
2449 #endif
2450 _ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453   (eval $ac_compile) 2>conftest.er1
2454   ac_status=$?
2455   grep -v '^ *+' conftest.er1 >conftest.err
2456   rm -f conftest.er1
2457   cat conftest.err >&5
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); } &&
2460          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; } &&
2466          { ac_try='test -s conftest.$ac_objext'
2467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468   (eval $ac_try) 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }; }; then
2472   for ac_declaration in \
2473    '' \
2474    'extern "C" void std::exit (int) throw (); using std::exit;' \
2475    'extern "C" void std::exit (int); using std::exit;' \
2476    'extern "C" void exit (int) throw ();' \
2477    'extern "C" void exit (int);' \
2478    'void exit (int);'
2479 do
2480   cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h.  */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h.  */
2486 $ac_declaration
2487 #include <stdlib.h>
2488 int
2489 main ()
2490 {
2491 exit (42);
2492   ;
2493   return 0;
2494 }
2495 _ACEOF
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498   (eval $ac_compile) 2>conftest.er1
2499   ac_status=$?
2500   grep -v '^ *+' conftest.er1 >conftest.err
2501   rm -f conftest.er1
2502   cat conftest.err >&5
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); } &&
2505          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; }; then
2517   :
2518 else
2519   echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 continue
2523 fi
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525   cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531 $ac_declaration
2532 int
2533 main ()
2534 {
2535 exit (42);
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; } &&
2555          { ac_try='test -s conftest.$ac_objext'
2556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557   (eval $ac_try) 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; }; then
2561   break
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 fi
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2568 done
2569 rm -f conftest*
2570 if test -n "$ac_declaration"; then
2571   echo '#ifdef __cplusplus' >>confdefs.h
2572   echo $ac_declaration      >>confdefs.h
2573   echo '#endif'             >>confdefs.h
2574 fi
2575
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 fi
2581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2582 ac_ext=c
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2587
2588 ac_ext=cc
2589 ac_cpp='$CXXCPP $CPPFLAGS'
2590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2593 if test -n "$ac_tool_prefix"; then
2594   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2595   do
2596     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$CXX"; then
2604   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619
2620 fi
2621 fi
2622 CXX=$glibcxx_cv_prog_CXX
2623 if test -n "$CXX"; then
2624   echo "$as_me:$LINENO: result: $CXX" >&5
2625 echo "${ECHO_T}$CXX" >&6
2626 else
2627   echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2629 fi
2630
2631     test -n "$CXX" && break
2632   done
2633 fi
2634 if test -z "$CXX"; then
2635   ac_ct_CXX=$CXX
2636   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2637 do
2638   # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2643   echo $ECHO_N "(cached) $ECHO_C" >&6
2644 else
2645   if test -n "$ac_ct_CXX"; then
2646   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2650 do
2651   IFS=$as_save_IFS
2652   test -z "$as_dir" && as_dir=.
2653   for ac_exec_ext in '' $ac_executable_extensions; do
2654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655     ac_cv_prog_ac_ct_CXX="$ac_prog"
2656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657     break 2
2658   fi
2659 done
2660 done
2661
2662 fi
2663 fi
2664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2665 if test -n "$ac_ct_CXX"; then
2666   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2667 echo "${ECHO_T}$ac_ct_CXX" >&6
2668 else
2669   echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2671 fi
2672
2673   test -n "$ac_ct_CXX" && break
2674 done
2675 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2676
2677   CXX=$ac_ct_CXX
2678 fi
2679
2680
2681 # Provide some information about the compiler.
2682 echo "$as_me:$LINENO:" \
2683      "checking for C++ compiler version" >&5
2684 ac_compiler=`set X $ac_compile; echo $2`
2685 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2686   (eval $ac_compiler --version </dev/null >&5) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2691   (eval $ac_compiler -v </dev/null >&5) 2>&5
2692   ac_status=$?
2693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694   (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2696   (eval $ac_compiler -V </dev/null >&5) 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }
2700
2701 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2702 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2703 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2704   echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706   cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h.  */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h.  */
2712
2713 int
2714 main ()
2715 {
2716 #ifndef __GNUC__
2717        choke me
2718 #endif
2719
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726   (eval $ac_compile) 2>conftest.er1
2727   ac_status=$?
2728   grep -v '^ *+' conftest.er1 >conftest.err
2729   rm -f conftest.er1
2730   cat conftest.err >&5
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); } &&
2733          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735   (eval $ac_try) 2>&5
2736   ac_status=$?
2737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738   (exit $ac_status); }; } &&
2739          { ac_try='test -s conftest.$ac_objext'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; }; then
2745   ac_compiler_gnu=yes
2746 else
2747   echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 ac_compiler_gnu=no
2751 fi
2752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2754
2755 fi
2756 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2757 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2758 GXX=`test $ac_compiler_gnu = yes && echo yes`
2759 ac_test_CXXFLAGS=${CXXFLAGS+set}
2760 ac_save_CXXFLAGS=$CXXFLAGS
2761 CXXFLAGS="-g"
2762 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2763 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cxx_g+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773
2774 int
2775 main ()
2776 {
2777
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784   (eval $ac_compile) 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } &&
2791          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest.$ac_objext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_cv_prog_cxx_g=yes
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 ac_cv_prog_cxx_g=no
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 fi
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2814 if test "$ac_test_CXXFLAGS" = set; then
2815   CXXFLAGS=$ac_save_CXXFLAGS
2816 elif test $ac_cv_prog_cxx_g = yes; then
2817   if test "$GXX" = yes; then
2818     CXXFLAGS="-g -O2"
2819   else
2820     CXXFLAGS="-g"
2821   fi
2822 else
2823   if test "$GXX" = yes; then
2824     CXXFLAGS="-O2"
2825   else
2826     CXXFLAGS=
2827   fi
2828 fi
2829 for ac_declaration in \
2830    '' \
2831    'extern "C" void std::exit (int) throw (); using std::exit;' \
2832    'extern "C" void std::exit (int); using std::exit;' \
2833    'extern "C" void exit (int) throw ();' \
2834    'extern "C" void exit (int);' \
2835    'void exit (int);'
2836 do
2837   cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843 $ac_declaration
2844 #include <stdlib.h>
2845 int
2846 main ()
2847 {
2848 exit (42);
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855   (eval $ac_compile) 2>conftest.er1
2856   ac_status=$?
2857   grep -v '^ *+' conftest.er1 >conftest.err
2858   rm -f conftest.er1
2859   cat conftest.err >&5
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   :
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 continue
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882   cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 $ac_declaration
2889 int
2890 main ()
2891 {
2892 exit (42);
2893   ;
2894   return 0;
2895 }
2896 _ACEOF
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899   (eval $ac_compile) 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } &&
2906          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; } &&
2912          { ac_try='test -s conftest.$ac_objext'
2913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914   (eval $ac_try) 2>&5
2915   ac_status=$?
2916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917   (exit $ac_status); }; }; then
2918   break
2919 else
2920   echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2922
2923 fi
2924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2925 done
2926 rm -f conftest*
2927 if test -n "$ac_declaration"; then
2928   echo '#ifdef __cplusplus' >>confdefs.h
2929   echo $ac_declaration      >>confdefs.h
2930   echo '#endif'             >>confdefs.h
2931 fi
2932
2933 ac_ext=c
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938
2939 CXXFLAGS="$save_CXXFLAGS"
2940
2941
2942
2943
2944
2945 am__api_version="1.9"
2946 # Find a good install program.  We prefer a C program (faster),
2947 # so one script is as good as another.  But avoid the broken or
2948 # incompatible versions:
2949 # SysV /etc/install, /usr/sbin/install
2950 # SunOS /usr/etc/install
2951 # IRIX /sbin/install
2952 # AIX /bin/install
2953 # AmigaOS /C/install, which installs bootblocks on floppy discs
2954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957 # OS/2's system install, which has a completely different semantic
2958 # ./install, which can be erroneously created by make from ./install.sh.
2959 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2960 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2961 if test -z "$INSTALL"; then
2962 if test "${ac_cv_path_install+set}" = set; then
2963   echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970   # Account for people who put trailing slashes in PATH elements.
2971 case $as_dir/ in
2972   ./ | .// | /cC/* | \
2973   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2974   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2975   /usr/ucb/* ) ;;
2976   *)
2977     # OSF1 and SCO ODT 3.0 have their own names for install.
2978     # Don't use installbsd from OSF since it installs stuff as root
2979     # by default.
2980     for ac_prog in ginstall scoinst install; do
2981       for ac_exec_ext in '' $ac_executable_extensions; do
2982         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2983           if test $ac_prog = install &&
2984             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985             # AIX install.  It has an incompatible calling convention.
2986             :
2987           elif test $ac_prog = install &&
2988             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2989             # program-specific install script used by HP pwplus--don't use.
2990             :
2991           else
2992             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2993             break 3
2994           fi
2995         fi
2996       done
2997     done
2998     ;;
2999 esac
3000 done
3001
3002
3003 fi
3004   if test "${ac_cv_path_install+set}" = set; then
3005     INSTALL=$ac_cv_path_install
3006   else
3007     # As a last resort, use the slow shell script.  We don't cache a
3008     # path for INSTALL within a source directory, because that will
3009     # break other packages using the cache if that directory is
3010     # removed, or if the path is relative.
3011     INSTALL=$ac_install_sh
3012   fi
3013 fi
3014 echo "$as_me:$LINENO: result: $INSTALL" >&5
3015 echo "${ECHO_T}$INSTALL" >&6
3016
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3020
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3022
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3024
3025 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3026 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3027 # Just in case
3028 sleep 1
3029 echo timestamp > conftest.file
3030 # Do `set' in a subshell so we don't clobber the current shell's
3031 # arguments.  Must try -L first in case configure is actually a
3032 # symlink; some systems play weird games with the mod time of symlinks
3033 # (eg FreeBSD returns the mod time of the symlink's containing
3034 # directory).
3035 if (
3036    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3037    if test "$*" = "X"; then
3038       # -L didn't work.
3039       set X `ls -t $srcdir/configure conftest.file`
3040    fi
3041    rm -f conftest.file
3042    if test "$*" != "X $srcdir/configure conftest.file" \
3043       && test "$*" != "X conftest.file $srcdir/configure"; then
3044
3045       # If neither matched, then we have a broken ls.  This can happen
3046       # if, for instance, CONFIG_SHELL is bash and it inherits a
3047       # broken ls alias from the environment.  This has actually
3048       # happened.  Such a system could not be considered "sane".
3049       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3050 alias in your environment" >&5
3051 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3052 alias in your environment" >&2;}
3053    { (exit 1); exit 1; }; }
3054    fi
3055
3056    test "$2" = conftest.file
3057    )
3058 then
3059    # Ok.
3060    :
3061 else
3062    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3063 Check your system clock" >&5
3064 echo "$as_me: error: newly created file is older than distributed files!
3065 Check your system clock" >&2;}
3066    { (exit 1); exit 1; }; }
3067 fi
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070 test "$program_prefix" != NONE &&
3071   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3072 # Use a double $ so make ignores it.
3073 test "$program_suffix" != NONE &&
3074   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3075 # Double any \ or $.  echo might interpret backslashes.
3076 # By default was `s,x,x', remove it if useless.
3077 cat <<\_ACEOF >conftest.sed
3078 s/[\\$]/&&/g;s/;s,x,x,$//
3079 _ACEOF
3080 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3081 rm conftest.sed
3082
3083 # expand $ac_aux_dir to an absolute path
3084 am_aux_dir=`cd $ac_aux_dir && pwd`
3085
3086 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3087 # Use eval to expand $SHELL
3088 if eval "$MISSING --run true"; then
3089   am_missing_run="$MISSING --run "
3090 else
3091   am_missing_run=
3092   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3093 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3094 fi
3095
3096 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3097   # We used to keeping the `.' as first argument, in order to
3098   # allow $(mkdir_p) to be used without argument.  As in
3099   #   $(mkdir_p) $(somedir)
3100   # where $(somedir) is conditionally defined.  However this is wrong
3101   # for two reasons:
3102   #  1. if the package is installed by a user who cannot write `.'
3103   #     make install will fail,
3104   #  2. the above comment should most certainly read
3105   #     $(mkdir_p) $(DESTDIR)$(somedir)
3106   #     so it does not work when $(somedir) is undefined and
3107   #     $(DESTDIR) is not.
3108   #  To support the latter case, we have to write
3109   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3110   #  so the `.' trick is pointless.
3111   mkdir_p='mkdir -p --'
3112 else
3113   # On NextStep and OpenStep, the `mkdir' command does not
3114   # recognize any option.  It will interpret all options as
3115   # directories to create, and then abort because `.' already
3116   # exists.
3117   for d in ./-p ./--version;
3118   do
3119     test -d $d && rmdir $d
3120   done
3121   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3122   if test -f "$ac_aux_dir/mkinstalldirs"; then
3123     mkdir_p='$(mkinstalldirs)'
3124   else
3125     mkdir_p='$(install_sh) -d'
3126   fi
3127 fi
3128
3129 for ac_prog in gawk mawk nawk awk
3130 do
3131   # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135 if test "${ac_cv_prog_AWK+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   if test -n "$AWK"; then
3139   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3143 do
3144   IFS=$as_save_IFS
3145   test -z "$as_dir" && as_dir=.
3146   for ac_exec_ext in '' $ac_executable_extensions; do
3147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148     ac_cv_prog_AWK="$ac_prog"
3149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150     break 2
3151   fi
3152 done
3153 done
3154
3155 fi
3156 fi
3157 AWK=$ac_cv_prog_AWK
3158 if test -n "$AWK"; then
3159   echo "$as_me:$LINENO: result: $AWK" >&5
3160 echo "${ECHO_T}$AWK" >&6
3161 else
3162   echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6
3164 fi
3165
3166   test -n "$AWK" && break
3167 done
3168
3169 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3170 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3171 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3172 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   cat >conftest.make <<\_ACEOF
3176 all:
3177         @echo 'ac_maketemp="$(MAKE)"'
3178 _ACEOF
3179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3181 if test -n "$ac_maketemp"; then
3182   eval ac_cv_prog_make_${ac_make}_set=yes
3183 else
3184   eval ac_cv_prog_make_${ac_make}_set=no
3185 fi
3186 rm -f conftest.make
3187 fi
3188 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3189   echo "$as_me:$LINENO: result: yes" >&5
3190 echo "${ECHO_T}yes" >&6
3191   SET_MAKE=
3192 else
3193   echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3195   SET_MAKE="MAKE=${MAKE-make}"
3196 fi
3197
3198 rm -rf .tst 2>/dev/null
3199 mkdir .tst 2>/dev/null
3200 if test -d .tst; then
3201   am__leading_dot=.
3202 else
3203   am__leading_dot=_
3204 fi
3205 rmdir .tst 2>/dev/null
3206
3207 DEPDIR="${am__leading_dot}deps"
3208
3209           ac_config_commands="$ac_config_commands depfiles"
3210
3211
3212 am_make=${MAKE-make}
3213 cat > confinc << 'END'
3214 am__doit:
3215         @echo done
3216 .PHONY: am__doit
3217 END
3218 # If we don't find an include directive, just comment out the code.
3219 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3220 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3221 am__include="#"
3222 am__quote=
3223 _am_result=none
3224 # First try GNU make style include.
3225 echo "include confinc" > confmf
3226 # We grep out `Entering directory' and `Leaving directory'
3227 # messages which can occur if `w' ends up in MAKEFLAGS.
3228 # In particular we don't look at `^make:' because GNU make might
3229 # be invoked under some other name (usually "gmake"), in which
3230 # case it prints its new name instead of `make'.
3231 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3232    am__include=include
3233    am__quote=
3234    _am_result=GNU
3235 fi
3236 # Now try BSD make style include.
3237 if test "$am__include" = "#"; then
3238    echo '.include "confinc"' > confmf
3239    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3240       am__include=.include
3241       am__quote="\""
3242       _am_result=BSD
3243    fi
3244 fi
3245
3246
3247 echo "$as_me:$LINENO: result: $_am_result" >&5
3248 echo "${ECHO_T}$_am_result" >&6
3249 rm -f confinc confmf
3250
3251 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3252 if test "${enable_dependency_tracking+set}" = set; then
3253   enableval="$enable_dependency_tracking"
3254
3255 fi;
3256 if test "x$enable_dependency_tracking" != xno; then
3257   am_depcomp="$ac_aux_dir/depcomp"
3258   AMDEPBACKSLASH='\'
3259 fi
3260
3261
3262 if test "x$enable_dependency_tracking" != xno; then
3263   AMDEP_TRUE=
3264   AMDEP_FALSE='#'
3265 else
3266   AMDEP_TRUE='#'
3267   AMDEP_FALSE=
3268 fi
3269
3270
3271
3272 # test to see if srcdir already configured
3273 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3274    test -f $srcdir/config.status; then
3275   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3276 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3277    { (exit 1); exit 1; }; }
3278 fi
3279
3280 # test whether we have cygpath
3281 if test -z "$CYGPATH_W"; then
3282   if (cygpath --version) >/dev/null 2>/dev/null; then
3283     CYGPATH_W='cygpath -w'
3284   else
3285     CYGPATH_W=echo
3286   fi
3287 fi
3288
3289
3290 # Define the identity of the package.
3291  PACKAGE='libjava'
3292  VERSION='version-unused'
3293
3294
3295 cat >>confdefs.h <<_ACEOF
3296 #define PACKAGE "$PACKAGE"
3297 _ACEOF
3298
3299
3300 cat >>confdefs.h <<_ACEOF
3301 #define VERSION "$VERSION"
3302 _ACEOF
3303
3304 # Some tools Automake needs.
3305
3306 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3307
3308
3309 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3310
3311
3312 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3313
3314
3315 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3316
3317
3318 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3319
3320 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3321
3322 # Installed binaries are usually stripped using `strip' when the user
3323 # run `make install-strip'.  However `strip' might not be the right
3324 # tool to use in cross-compilation environments, therefore Automake
3325 # will honor the `STRIP' environment variable to overrule this program.
3326 if test "$cross_compiling" != no; then
3327   if test -n "$ac_tool_prefix"; then
3328   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}strip; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_STRIP+set}" = set; then
3333   echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335   if test -n "$STRIP"; then
3336   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3337 else
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343   for ac_exec_ext in '' $ac_executable_extensions; do
3344   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347     break 2
3348   fi
3349 done
3350 done
3351
3352 fi
3353 fi
3354 STRIP=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356   echo "$as_me:$LINENO: result: $STRIP" >&5
3357 echo "${ECHO_T}$STRIP" >&6
3358 else
3359   echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3361 fi
3362
3363 fi
3364 if test -z "$ac_cv_prog_STRIP"; then
3365   ac_ct_STRIP=$STRIP
3366   # Extract the first word of "strip", so it can be a program name with args.
3367 set dummy strip; ac_word=$2
3368 echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3371   echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373   if test -n "$ac_ct_STRIP"; then
3374   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379   IFS=$as_save_IFS
3380   test -z "$as_dir" && as_dir=.
3381   for ac_exec_ext in '' $ac_executable_extensions; do
3382   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383     ac_cv_prog_ac_ct_STRIP="strip"
3384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388 done
3389
3390   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3391 fi
3392 fi
3393 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3394 if test -n "$ac_ct_STRIP"; then
3395   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3396 echo "${ECHO_T}$ac_ct_STRIP" >&6
3397 else
3398   echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3400 fi
3401
3402   STRIP=$ac_ct_STRIP
3403 else
3404   STRIP="$ac_cv_prog_STRIP"
3405 fi
3406
3407 fi
3408 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3409
3410 # We need awk for the "check" target.  The system "awk" is bad on
3411 # some platforms.
3412 # Always define AMTAR for backward compatibility.
3413
3414 AMTAR=${AMTAR-"${am_missing_run}tar"}
3415
3416 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3417
3418
3419
3420
3421 depcc="$CC"   am_compiler_list=
3422
3423 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3424 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3425 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3429   # We make a subdir and do the tests there.  Otherwise we can end up
3430   # making bogus files that we don't know about and never remove.  For
3431   # instance it was reported that on HP-UX the gcc test will end up
3432   # making a dummy file named `D' -- because `-MD' means `put the output
3433   # in D'.
3434   mkdir conftest.dir
3435   # Copy depcomp to subdir because otherwise we won't find it if we're
3436   # using a relative directory.
3437   cp "$am_depcomp" conftest.dir
3438   cd conftest.dir
3439   # We will build objects and dependencies in a subdirectory because
3440   # it helps to detect inapplicable dependency modes.  For instance
3441   # both Tru64's cc and ICC support -MD to output dependencies as a
3442   # side effect of compilation, but ICC will put the dependencies in
3443   # the current directory while Tru64 will put them in the object
3444   # directory.
3445   mkdir sub
3446
3447   am_cv_CC_dependencies_compiler_type=none
3448   if test "$am_compiler_list" = ""; then
3449      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3450   fi
3451   for depmode in $am_compiler_list; do
3452     # Setup a source with many dependencies, because some compilers
3453     # like to wrap large dependency lists on column 80 (with \), and
3454     # we should not choose a depcomp mode which is confused by this.
3455     #
3456     # We need to recreate these files for each test, as the compiler may
3457     # overwrite some of them when testing with obscure command lines.
3458     # This happens at least with the AIX C compiler.
3459     : > sub/conftest.c
3460     for i in 1 2 3 4 5 6; do
3461       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3462       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3463       # Solaris 8's {/usr,}/bin/sh.
3464       touch sub/conftst$i.h
3465     done
3466     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3467
3468     case $depmode in
3469     nosideeffect)
3470       # after this tag, mechanisms are not by side-effect, so they'll
3471       # only be used when explicitly requested
3472       if test "x$enable_dependency_tracking" = xyes; then
3473         continue
3474       else
3475         break
3476       fi
3477       ;;
3478     none) break ;;
3479     esac
3480     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3481     # mode.  It turns out that the SunPro C++ compiler does not properly
3482     # handle `-M -o', and we need to detect this.
3483     if depmode=$depmode \
3484        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3485        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3486        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3487          >/dev/null 2>conftest.err &&
3488        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3489        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3490        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3491       # icc doesn't choke on unknown options, it will just issue warnings
3492       # or remarks (even with -Werror).  So we grep stderr for any message
3493       # that says an option was ignored or not supported.
3494       # When given -MP, icc 7.0 and 7.1 complain thusly:
3495       #   icc: Command line warning: ignoring option '-M'; no argument required
3496       # The diagnosis changed in icc 8.0:
3497       #   icc: Command line remark: option '-MP' not supported
3498       if (grep 'ignoring option' conftest.err ||
3499           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3500         am_cv_CC_dependencies_compiler_type=$depmode
3501         break
3502       fi
3503     fi
3504   done
3505
3506   cd ..
3507   rm -rf conftest.dir
3508 else
3509   am_cv_CC_dependencies_compiler_type=none
3510 fi
3511
3512 fi
3513 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3514 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3515 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3516
3517
3518
3519 if
3520   test "x$enable_dependency_tracking" != xno \
3521   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3522   am__fastdepCC_TRUE=
3523   am__fastdepCC_FALSE='#'
3524 else
3525   am__fastdepCC_TRUE='#'
3526   am__fastdepCC_FALSE=
3527 fi
3528
3529
3530 depcc="$CXX"  am_compiler_list=
3531
3532 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3533 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3534 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3538   # We make a subdir and do the tests there.  Otherwise we can end up
3539   # making bogus files that we don't know about and never remove.  For
3540   # instance it was reported that on HP-UX the gcc test will end up
3541   # making a dummy file named `D' -- because `-MD' means `put the output
3542   # in D'.
3543   mkdir conftest.dir
3544   # Copy depcomp to subdir because otherwise we won't find it if we're
3545   # using a relative directory.
3546   cp "$am_depcomp" conftest.dir
3547   cd conftest.dir
3548   # We will build objects and dependencies in a subdirectory because
3549   # it helps to detect inapplicable dependency modes.  For instance
3550   # both Tru64's cc and ICC support -MD to output dependencies as a
3551   # side effect of compilation, but ICC will put the dependencies in
3552   # the current directory while Tru64 will put them in the object
3553   # directory.
3554   mkdir sub
3555
3556   am_cv_CXX_dependencies_compiler_type=none
3557   if test "$am_compiler_list" = ""; then
3558      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3559   fi
3560   for depmode in $am_compiler_list; do
3561     # Setup a source with many dependencies, because some compilers
3562     # like to wrap large dependency lists on column 80 (with \), and
3563     # we should not choose a depcomp mode which is confused by this.
3564     #
3565     # We need to recreate these files for each test, as the compiler may
3566     # overwrite some of them when testing with obscure command lines.
3567     # This happens at least with the AIX C compiler.
3568     : > sub/conftest.c
3569     for i in 1 2 3 4 5 6; do
3570       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3571       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3572       # Solaris 8's {/usr,}/bin/sh.
3573       touch sub/conftst$i.h
3574     done
3575     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3576
3577     case $depmode in
3578     nosideeffect)
3579       # after this tag, mechanisms are not by side-effect, so they'll
3580       # only be used when explicitly requested
3581       if test "x$enable_dependency_tracking" = xyes; then
3582         continue
3583       else
3584         break
3585       fi
3586       ;;
3587     none) break ;;
3588     esac
3589     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3590     # mode.  It turns out that the SunPro C++ compiler does not properly
3591     # handle `-M -o', and we need to detect this.
3592     if depmode=$depmode \
3593        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3594        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3595        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3596          >/dev/null 2>conftest.err &&
3597        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3598        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3599        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3600       # icc doesn't choke on unknown options, it will just issue warnings
3601       # or remarks (even with -Werror).  So we grep stderr for any message
3602       # that says an option was ignored or not supported.
3603       # When given -MP, icc 7.0 and 7.1 complain thusly:
3604       #   icc: Command line warning: ignoring option '-M'; no argument required
3605       # The diagnosis changed in icc 8.0:
3606       #   icc: Command line remark: option '-MP' not supported
3607       if (grep 'ignoring option' conftest.err ||
3608           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3609         am_cv_CXX_dependencies_compiler_type=$depmode
3610         break
3611       fi
3612     fi
3613   done
3614
3615   cd ..
3616   rm -rf conftest.dir
3617 else
3618   am_cv_CXX_dependencies_compiler_type=none
3619 fi
3620
3621 fi
3622 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3623 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3624 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3625
3626
3627
3628 if
3629   test "x$enable_dependency_tracking" != xno \
3630   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3631   am__fastdepCXX_TRUE=
3632   am__fastdepCXX_FALSE='#'
3633 else
3634   am__fastdepCXX_TRUE='#'
3635   am__fastdepCXX_FALSE=
3636 fi
3637
3638
3639
3640
3641 if test -n "$ac_tool_prefix"; then
3642   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}as; ac_word=$2
3644 echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_prog_AS+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649   if test -n "$AS"; then
3650   ac_cv_prog_AS="$AS" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657   for ac_exec_ext in '' $ac_executable_extensions; do
3658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659     ac_cv_prog_AS="${ac_tool_prefix}as"
3660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664 done
3665
3666 fi
3667 fi
3668 AS=$ac_cv_prog_AS
3669 if test -n "$AS"; then
3670   echo "$as_me:$LINENO: result: $AS" >&5
3671 echo "${ECHO_T}$AS" >&6
3672 else
3673   echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3675 fi
3676
3677 fi
3678 if test -z "$ac_cv_prog_AS"; then
3679   ac_ct_AS=$AS
3680   # Extract the first word of "as", so it can be a program name with args.
3681 set dummy as; ac_word=$2
3682 echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   if test -n "$ac_ct_AS"; then
3688   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693   IFS=$as_save_IFS
3694   test -z "$as_dir" && as_dir=.
3695   for ac_exec_ext in '' $ac_executable_extensions; do
3696   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697     ac_cv_prog_ac_ct_AS="as"
3698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699     break 2
3700   fi
3701 done
3702 done
3703
3704 fi
3705 fi
3706 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3707 if test -n "$ac_ct_AS"; then
3708   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3709 echo "${ECHO_T}$ac_ct_AS" >&6
3710 else
3711   echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3713 fi
3714
3715   AS=$ac_ct_AS
3716 else
3717   AS="$ac_cv_prog_AS"
3718 fi
3719
3720 if test -n "$ac_tool_prefix"; then
3721   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}ar; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_prog_AR+set}" = set; then
3726   echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728   if test -n "$AR"; then
3729   ac_cv_prog_AR="$AR" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734   IFS=$as_save_IFS
3735   test -z "$as_dir" && as_dir=.
3736   for ac_exec_ext in '' $ac_executable_extensions; do
3737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738     ac_cv_prog_AR="${ac_tool_prefix}ar"
3739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740     break 2
3741   fi
3742 done
3743 done
3744
3745 fi
3746 fi
3747 AR=$ac_cv_prog_AR
3748 if test -n "$AR"; then
3749   echo "$as_me:$LINENO: result: $AR" >&5
3750 echo "${ECHO_T}$AR" >&6
3751 else
3752   echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6
3754 fi
3755
3756 fi
3757 if test -z "$ac_cv_prog_AR"; then
3758   ac_ct_AR=$AR
3759   # Extract the first word of "ar", so it can be a program name with args.
3760 set dummy ar; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   if test -n "$ac_ct_AR"; then
3767   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774   for ac_exec_ext in '' $ac_executable_extensions; do
3775   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776     ac_cv_prog_ac_ct_AR="ar"
3777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781 done
3782
3783 fi
3784 fi
3785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3786 if test -n "$ac_ct_AR"; then
3787   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3788 echo "${ECHO_T}$ac_ct_AR" >&6
3789 else
3790   echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3792 fi
3793
3794   AR=$ac_ct_AR
3795 else
3796   AR="$ac_cv_prog_AR"
3797 fi
3798
3799 if test -n "$ac_tool_prefix"; then
3800   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_RANLIB+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   if test -n "$RANLIB"; then
3808   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813   IFS=$as_save_IFS
3814   test -z "$as_dir" && as_dir=.
3815   for ac_exec_ext in '' $ac_executable_extensions; do
3816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3819     break 2
3820   fi
3821 done
3822 done
3823
3824 fi
3825 fi
3826 RANLIB=$ac_cv_prog_RANLIB
3827 if test -n "$RANLIB"; then
3828   echo "$as_me:$LINENO: result: $RANLIB" >&5
3829 echo "${ECHO_T}$RANLIB" >&6
3830 else
3831   echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3833 fi
3834
3835 fi
3836 if test -z "$ac_cv_prog_RANLIB"; then
3837   ac_ct_RANLIB=$RANLIB
3838   # Extract the first word of "ranlib", so it can be a program name with args.
3839 set dummy ranlib; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   if test -n "$ac_ct_RANLIB"; then
3846   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3847 else
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 for as_dir in $PATH
3850 do
3851   IFS=$as_save_IFS
3852   test -z "$as_dir" && as_dir=.
3853   for ac_exec_ext in '' $ac_executable_extensions; do
3854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_ac_ct_RANLIB="ranlib"
3856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860 done
3861
3862   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3863 fi
3864 fi
3865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3866 if test -n "$ac_ct_RANLIB"; then
3867   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3868 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3869 else
3870   echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872 fi
3873
3874   RANLIB=$ac_ct_RANLIB
3875 else
3876   RANLIB="$ac_cv_prog_RANLIB"
3877 fi
3878
3879
3880 # Find a good install program.  We prefer a C program (faster),
3881 # so one script is as good as another.  But avoid the broken or
3882 # incompatible versions:
3883 # SysV /etc/install, /usr/sbin/install
3884 # SunOS /usr/etc/install
3885 # IRIX /sbin/install
3886 # AIX /bin/install
3887 # AmigaOS /C/install, which installs bootblocks on floppy discs
3888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3891 # OS/2's system install, which has a completely different semantic
3892 # ./install, which can be erroneously created by make from ./install.sh.
3893 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3894 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3895 if test -z "$INSTALL"; then
3896 if test "${ac_cv_path_install+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH
3901 do
3902   IFS=$as_save_IFS
3903   test -z "$as_dir" && as_dir=.
3904   # Account for people who put trailing slashes in PATH elements.
3905 case $as_dir/ in
3906   ./ | .// | /cC/* | \
3907   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3908   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3909   /usr/ucb/* ) ;;
3910   *)
3911     # OSF1 and SCO ODT 3.0 have their own names for install.
3912     # Don't use installbsd from OSF since it installs stuff as root
3913     # by default.
3914     for ac_prog in ginstall scoinst install; do
3915       for ac_exec_ext in '' $ac_executable_extensions; do
3916         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3917           if test $ac_prog = install &&
3918             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3919             # AIX install.  It has an incompatible calling convention.
3920             :
3921           elif test $ac_prog = install &&
3922             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923             # program-specific install script used by HP pwplus--don't use.
3924             :
3925           else
3926             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3927             break 3
3928           fi
3929         fi
3930       done
3931     done
3932     ;;
3933 esac
3934 done
3935
3936
3937 fi
3938   if test "${ac_cv_path_install+set}" = set; then
3939     INSTALL=$ac_cv_path_install
3940   else
3941     # As a last resort, use the slow shell script.  We don't cache a
3942     # path for INSTALL within a source directory, because that will
3943     # break other packages using the cache if that directory is
3944     # removed, or if the path is relative.
3945     INSTALL=$ac_install_sh
3946   fi
3947 fi
3948 echo "$as_me:$LINENO: result: $INSTALL" >&5
3949 echo "${ECHO_T}$INSTALL" >&6
3950
3951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3952 # It thinks the first close brace ends the variable substitution.
3953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3954
3955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3956
3957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3958
3959
3960 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3961 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3962     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3963 if test "${enable_maintainer_mode+set}" = set; then
3964   enableval="$enable_maintainer_mode"
3965   USE_MAINTAINER_MODE=$enableval
3966 else
3967   USE_MAINTAINER_MODE=no
3968 fi;
3969   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3970 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3971
3972
3973 if test $USE_MAINTAINER_MODE = yes; then
3974   MAINTAINER_MODE_TRUE=
3975   MAINTAINER_MODE_FALSE='#'
3976 else
3977   MAINTAINER_MODE_TRUE='#'
3978   MAINTAINER_MODE_FALSE=
3979 fi
3980
3981   MAINT=$MAINTAINER_MODE_TRUE
3982
3983
3984
3985
3986
3987 # configure.host sets the following important variables
3988 #       libgcj_cflags    - host specific C compiler flags
3989 #       libgcj_cxxflags  - host specific C++ compiler flags
3990 #       libgcj_javaflags - host specific Java compiler flags
3991
3992 libgcj_cflags=
3993 libgcj_cxxflags=
3994 libgcj_javaflags=
3995
3996 . ${srcdir}/configure.host
3997
3998 LIBGCJ_CFLAGS="${libgcj_cflags}"
3999 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4000 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4001 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4002
4003
4004
4005
4006
4007                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4008
4009
4010 # Only use libltdl for non-newlib builds.
4011 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4012      case $enable_ltdl_convenience in
4013   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4014 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4015    { (exit 1); exit 1; }; } ;;
4016   "") enable_ltdl_convenience=yes
4017       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4018   esac
4019   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4020   INCLTDL='-I${top_srcdir}/''libltdl'
4021
4022
4023    DIRLTDL=libltdl
4024
4025 cat >>confdefs.h <<\_ACEOF
4026 #define USE_LTDL 1
4027 _ACEOF
4028
4029    # Sigh.  Libtool's macro doesn't do the right thing.
4030    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4031    # FIXME: this is a hack.
4032    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4033    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4034 fi
4035
4036
4037
4038 # Check whether --enable-shared or --disable-shared was given.
4039 if test "${enable_shared+set}" = set; then
4040   enableval="$enable_shared"
4041   p=${PACKAGE-default}
4042 case $enableval in
4043 yes) enable_shared=yes ;;
4044 no) enable_shared=no ;;
4045 *)
4046   enable_shared=no
4047   # Look at the argument we got.  We use all the common list separators.
4048   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4049   for pkg in $enableval; do
4050     if test "X$pkg" = "X$p"; then
4051       enable_shared=yes
4052     fi
4053   done
4054   IFS="$ac_save_ifs"
4055   ;;
4056 esac
4057 else
4058   enable_shared=yes
4059 fi;
4060 # Check whether --enable-static or --disable-static was given.
4061 if test "${enable_static+set}" = set; then
4062   enableval="$enable_static"
4063   p=${PACKAGE-default}
4064 case $enableval in
4065 yes) enable_static=yes ;;
4066 no) enable_static=no ;;
4067 *)
4068   enable_static=no
4069   # Look at the argument we got.  We use all the common list separators.
4070   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4071   for pkg in $enableval; do
4072     if test "X$pkg" = "X$p"; then
4073       enable_static=yes
4074     fi
4075   done
4076   IFS="$ac_save_ifs"
4077   ;;
4078 esac
4079 else
4080   enable_static=yes
4081 fi;
4082 # Check whether --enable-fast-install or --disable-fast-install was given.
4083 if test "${enable_fast_install+set}" = set; then
4084   enableval="$enable_fast_install"
4085   p=${PACKAGE-default}
4086 case $enableval in
4087 yes) enable_fast_install=yes ;;
4088 no) enable_fast_install=no ;;
4089 *)
4090   enable_fast_install=no
4091   # Look at the argument we got.  We use all the common list separators.
4092   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4093   for pkg in $enableval; do
4094     if test "X$pkg" = "X$p"; then
4095       enable_fast_install=yes
4096     fi
4097   done
4098   IFS="$ac_save_ifs"
4099   ;;
4100 esac
4101 else
4102   enable_fast_install=yes
4103 fi;
4104
4105 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4106 if test "${with_gnu_ld+set}" = set; then
4107   withval="$with_gnu_ld"
4108   test "$withval" = no || with_gnu_ld=yes
4109 else
4110   with_gnu_ld=no
4111 fi;
4112 ac_prog=ld
4113 if test "$GCC" = yes; then
4114   # Check if gcc -print-prog-name=ld gives a path.
4115   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4116 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4117   case $host in
4118   *-*-mingw*)
4119     # gcc leaves a trailing carriage return which upsets mingw
4120     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4121   *)
4122     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4123   esac
4124   case $ac_prog in
4125     # Accept absolute paths.
4126     [\\/]* | [A-Za-z]:[\\/]*)
4127       re_direlt='/[^/][^/]*/\.\./'
4128       # Canonicalize the path of ld
4129       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4130       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4131         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4132       done
4133       test -z "$LD" && LD="$ac_prog"
4134       ;;
4135   "")
4136     # If it fails, then pretend we aren't using GCC.
4137     ac_prog=ld
4138     ;;
4139   *)
4140     # If it is relative, then search for the first ld in PATH.
4141     with_gnu_ld=unknown
4142     ;;
4143   esac
4144 elif test "$with_gnu_ld" = yes; then
4145   echo "$as_me:$LINENO: checking for GNU ld" >&5
4146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4147 else
4148   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4150 fi
4151 if test "${lt_cv_path_LD+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   if test -z "$LD"; then
4155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4156   for ac_dir in $PATH; do
4157     test -z "$ac_dir" && ac_dir=.
4158     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4159       lt_cv_path_LD="$ac_dir/$ac_prog"
4160       # Check to see if the program is GNU ld.  I'd rather use --version,
4161       # but apparently some GNU ld's only accept -v.
4162       # Break only if it was the GNU/non-GNU ld that we prefer.
4163       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4164         test "$with_gnu_ld" != no && break
4165       else
4166         test "$with_gnu_ld" != yes && break
4167       fi
4168     fi
4169   done
4170   IFS="$ac_save_ifs"
4171 else
4172   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4173 fi
4174 fi
4175
4176 LD="$lt_cv_path_LD"
4177 if test -n "$LD"; then
4178   echo "$as_me:$LINENO: result: $LD" >&5
4179 echo "${ECHO_T}$LD" >&6
4180 else
4181   echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4183 fi
4184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186    { (exit 1); exit 1; }; }
4187 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4193 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4194   lt_cv_prog_gnu_ld=yes
4195 else
4196   lt_cv_prog_gnu_ld=no
4197 fi
4198 fi
4199 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4200 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4201 with_gnu_ld=$lt_cv_prog_gnu_ld
4202
4203
4204 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4205 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4206 if test "${lt_cv_ld_reload_flag+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   lt_cv_ld_reload_flag='-r'
4210 fi
4211 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4212 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4213 reload_flag=$lt_cv_ld_reload_flag
4214 test -n "$reload_flag" && reload_flag=" $reload_flag"
4215
4216 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4217 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4218 if test "${lt_cv_path_NM+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$NM"; then
4222   # Let the user override the test.
4223   lt_cv_path_NM="$NM"
4224 else
4225   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4226   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4227     test -z "$ac_dir" && ac_dir=.
4228     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4229     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4230       # Check to see if the nm accepts a BSD-compat flag.
4231       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4232       #   nm: unknown option "B" ignored
4233       # Tru64's nm complains that /dev/null is an invalid object file
4234       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4235         lt_cv_path_NM="$tmp_nm -B"
4236         break
4237       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4238         lt_cv_path_NM="$tmp_nm -p"
4239         break
4240       else
4241         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4242         continue # so that we can try to find one that supports BSD flags
4243       fi
4244     fi
4245   done
4246   IFS="$ac_save_ifs"
4247   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4248 fi
4249 fi
4250
4251 NM="$lt_cv_path_NM"
4252 echo "$as_me:$LINENO: result: $NM" >&5
4253 echo "${ECHO_T}$NM" >&6
4254
4255 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4256 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4257 if test "${lt_cv_deplibs_check_method+set}" = set; then
4258   echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260   lt_cv_file_magic_cmd='$MAGIC_CMD'
4261 lt_cv_file_magic_test_file=
4262 lt_cv_deplibs_check_method='unknown'
4263 # Need to set the preceding variable on all platforms that support
4264 # interlibrary dependencies.
4265 # 'none' -- dependencies not supported.
4266 # `unknown' -- same as none, but documents that we really don't know.
4267 # 'pass_all' -- all dependencies passed with no checks.
4268 # 'test_compile' -- check by making test program.
4269 # 'file_magic [regex]' -- check by looking for files in library path
4270 # which responds to the $file_magic_cmd with a given egrep regex.
4271 # If you have `file' or equivalent on your system and you're not sure
4272 # whether `pass_all' will *always* work, you probably want this one.
4273
4274 case $host_os in
4275 aix*)
4276   lt_cv_deplibs_check_method=pass_all
4277   ;;
4278
4279 beos*)
4280   lt_cv_deplibs_check_method=pass_all
4281   ;;
4282
4283 bsdi4*)
4284   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4285   lt_cv_file_magic_cmd='/usr/bin/file -L'
4286   lt_cv_file_magic_test_file=/shlib/libc.so
4287   ;;
4288
4289 cygwin* | mingw* |pw32*)
4290   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4291   lt_cv_file_magic_cmd='$OBJDUMP -f'
4292   ;;
4293
4294 darwin* | rhapsody*)
4295   # this will be overwritten by pass_all, but leave it in just in case
4296   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4297   lt_cv_file_magic_cmd='/usr/bin/file -L'
4298   case "$host_os" in
4299   rhapsody* | darwin1.012)
4300     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4301     ;;
4302   *) # Darwin 1.3 on
4303     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4304     ;;
4305   esac
4306   lt_cv_deplibs_check_method=pass_all
4307   ;;
4308
4309 freebsd* | kfreebsd*-gnu)
4310   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4311     case $host_cpu in
4312     i*86 )
4313       # Not sure whether the presence of OpenBSD here was a mistake.
4314       # Let's accept both of them until this is cleared up.
4315       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4316       lt_cv_file_magic_cmd=/usr/bin/file
4317       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4318       ;;
4319     esac
4320   else
4321     lt_cv_deplibs_check_method=pass_all
4322   fi
4323   ;;
4324
4325 gnu*)
4326   lt_cv_deplibs_check_method=pass_all
4327   ;;
4328
4329 hpux10.20*|hpux11*)
4330   case $host_cpu in
4331   hppa*)
4332     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4333     lt_cv_file_magic_cmd=/usr/bin/file
4334     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4335     ;;
4336   ia64*)
4337     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4338     lt_cv_file_magic_cmd=/usr/bin/file
4339     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4340     ;;
4341   esac
4342   ;;
4343
4344 irix5* | irix6*)
4345   case $host_os in
4346   irix5*)
4347     # this will be overridden with pass_all, but let us keep it just in case
4348     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4349     ;;
4350   *)
4351     case $LD in
4352     *-32|*"-32 ") libmagic=32-bit;;
4353     *-n32|*"-n32 ") libmagic=N32;;
4354     *-64|*"-64 ") libmagic=64-bit;;
4355     *) libmagic=never-match;;
4356     esac
4357     # this will be overridden with pass_all, but let us keep it just in case
4358     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4359     ;;
4360   esac
4361   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4362   lt_cv_deplibs_check_method=pass_all
4363   ;;
4364
4365 # This must be Linux ELF.
4366 linux-gnu*)
4367   lt_cv_deplibs_check_method=pass_all
4368   ;;
4369
4370 netbsd* | knetbsd*-gnu)
4371   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4372     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4373   else
4374     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4375   fi
4376   ;;
4377
4378 newsos6)
4379   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4380   lt_cv_file_magic_cmd=/usr/bin/file
4381   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4382   ;;
4383
4384 osf3* | osf4* | osf5*)
4385   # this will be overridden with pass_all, but let us keep it just in case
4386   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4387   lt_cv_file_magic_test_file=/shlib/libc.so
4388   lt_cv_deplibs_check_method=pass_all
4389   ;;
4390
4391 sco3.2v5*)
4392   lt_cv_deplibs_check_method=pass_all
4393   ;;
4394
4395 solaris*)
4396   lt_cv_deplibs_check_method=pass_all
4397   lt_cv_file_magic_test_file=/lib/libc.so
4398   ;;
4399
4400 sysv5uw[78]* | sysv4*uw2*)
4401   lt_cv_deplibs_check_method=pass_all
4402   ;;
4403
4404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4405   case $host_vendor in
4406   ncr)
4407     lt_cv_deplibs_check_method=pass_all
4408     ;;
4409   motorola)
4410     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]'
4411     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4412     ;;
4413   esac
4414   ;;
4415 esac
4416
4417 fi
4418 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4420 file_magic_cmd=$lt_cv_file_magic_cmd
4421 deplibs_check_method=$lt_cv_deplibs_check_method
4422
4423
4424
4425
4426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4427
4428 # find the maximum length of command line arguments
4429 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434     i=0
4435   teststring="ABCD"
4436
4437   case $build_os in
4438   msdosdjgpp*)
4439     # On DJGPP, this test can blow up pretty badly due to problems in libc
4440     # (any single argument exceeding 2000 bytes causes a buffer overrun
4441     # during glob expansion).  Even if it were fixed, the result of this
4442     # check would be larger than it should be.
4443     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4444     ;;
4445
4446   cygwin* | mingw*)
4447     # On Win9x/ME, this test blows up -- it succeeds, but takes
4448     # about 5 minutes as the teststring grows exponentially.
4449     # Worse, since 9x/ME are not pre-emptively multitasking,
4450     # you end up with a "frozen" computer, even though with patience
4451     # the test eventually succeeds (with a max line length of 256k).
4452     # Instead, let's just punt: use the minimum linelength reported by
4453     # all of the supported platforms: 8192 (on NT/2K/XP).
4454     lt_cv_sys_max_cmd_len=8192;
4455     ;;
4456
4457   amigaos*)
4458     # On AmigaOS with pdksh, this test takes hours, literally.
4459     # So we just punt and use a minimum line length of 8192.
4460     lt_cv_sys_max_cmd_len=8192;
4461     ;;
4462
4463   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4464     # This has been around since 386BSD, at least.  Likely further.
4465     if test -x /sbin/sysctl; then
4466       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4467     elif test -x /usr/sbin/sysctl; then
4468       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4469     else
4470       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4471     fi
4472     # And add a safety zone
4473     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4474     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4475     ;;
4476   esac
4477
4478 fi
4479
4480 if test -n $lt_cv_sys_max_cmd_len ; then
4481   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4482 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4483 else
4484   echo "$as_me:$LINENO: result: none" >&5
4485 echo "${ECHO_T}none" >&6
4486 fi
4487
4488
4489 # Only perform the check for file, if the check method requires it
4490 case $deplibs_check_method in
4491 file_magic*)
4492   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4493     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4494 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4495 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4496   echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498   case $MAGIC_CMD in
4499   /*)
4500   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4501   ;;
4502   ?:/*)
4503   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4504   ;;
4505   *)
4506   ac_save_MAGIC_CMD="$MAGIC_CMD"
4507   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4508   ac_dummy="/usr/bin:$PATH"
4509   for ac_dir in $ac_dummy; do
4510     test -z "$ac_dir" && ac_dir=.
4511     if test -f $ac_dir/${ac_tool_prefix}file; then
4512       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4513       if test -n "$file_magic_test_file"; then
4514         case $deplibs_check_method in
4515         "file_magic "*)
4516           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4517           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4518           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4519             egrep "$file_magic_regex" > /dev/null; then
4520             :
4521           else
4522             cat <<EOF 1>&2
4523
4524 *** Warning: the command libtool uses to detect shared libraries,
4525 *** $file_magic_cmd, produces output that libtool cannot recognize.
4526 *** The result is that libtool may fail to recognize shared libraries
4527 *** as such.  This will affect the creation of libtool libraries that
4528 *** depend on shared libraries, but programs linked with such libtool
4529 *** libraries will work regardless of this problem.  Nevertheless, you
4530 *** may want to report the problem to your system manager and/or to
4531 *** bug-libtool@gnu.org
4532
4533 EOF
4534           fi ;;
4535         esac
4536       fi
4537       break
4538     fi
4539   done
4540   IFS="$ac_save_ifs"
4541   MAGIC_CMD="$ac_save_MAGIC_CMD"
4542   ;;
4543 esac
4544 fi
4545
4546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4547 if test -n "$MAGIC_CMD"; then
4548   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4549 echo "${ECHO_T}$MAGIC_CMD" >&6
4550 else
4551   echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4553 fi
4554
4555 if test -z "$lt_cv_path_MAGIC_CMD"; then
4556   if test -n "$ac_tool_prefix"; then
4557     echo "$as_me:$LINENO: checking for file" >&5
4558 echo $ECHO_N "checking for file... $ECHO_C" >&6
4559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4560   echo $ECHO_N "(cached) $ECHO_C" >&6
4561 else
4562   case $MAGIC_CMD in
4563   /*)
4564   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4565   ;;
4566   ?:/*)
4567   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4568   ;;
4569   *)
4570   ac_save_MAGIC_CMD="$MAGIC_CMD"
4571   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4572   ac_dummy="/usr/bin:$PATH"
4573   for ac_dir in $ac_dummy; do
4574     test -z "$ac_dir" && ac_dir=.
4575     if test -f $ac_dir/file; then
4576       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4577       if test -n "$file_magic_test_file"; then
4578         case $deplibs_check_method in
4579         "file_magic "*)
4580           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4581           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4582           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4583             egrep "$file_magic_regex" > /dev/null; then
4584             :
4585           else
4586             cat <<EOF 1>&2
4587
4588 *** Warning: the command libtool uses to detect shared libraries,
4589 *** $file_magic_cmd, produces output that libtool cannot recognize.
4590 *** The result is that libtool may fail to recognize shared libraries
4591 *** as such.  This will affect the creation of libtool libraries that
4592 *** depend on shared libraries, but programs linked with such libtool
4593 *** libraries will work regardless of this problem.  Nevertheless, you
4594 *** may want to report the problem to your system manager and/or to
4595 *** bug-libtool@gnu.org
4596
4597 EOF
4598           fi ;;
4599         esac
4600       fi
4601       break
4602     fi
4603   done
4604   IFS="$ac_save_ifs"
4605   MAGIC_CMD="$ac_save_MAGIC_CMD"
4606   ;;
4607 esac
4608 fi
4609
4610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4611 if test -n "$MAGIC_CMD"; then
4612   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4613 echo "${ECHO_T}$MAGIC_CMD" >&6
4614 else
4615   echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4617 fi
4618
4619   else
4620     MAGIC_CMD=:
4621   fi
4622 fi
4623
4624   fi
4625   ;;
4626 esac
4627
4628 if test -n "$ac_tool_prefix"; then
4629   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4631 echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4633 if test "${ac_cv_prog_RANLIB+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   if test -n "$RANLIB"; then
4637   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648     break 2
4649   fi
4650 done
4651 done
4652
4653 fi
4654 fi
4655 RANLIB=$ac_cv_prog_RANLIB
4656 if test -n "$RANLIB"; then
4657   echo "$as_me:$LINENO: result: $RANLIB" >&5
4658 echo "${ECHO_T}$RANLIB" >&6
4659 else
4660   echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4662 fi
4663
4664 fi
4665 if test -z "$ac_cv_prog_RANLIB"; then
4666   ac_ct_RANLIB=$RANLIB
4667   # Extract the first word of "ranlib", so it can be a program name with args.
4668 set dummy ranlib; ac_word=$2
4669 echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   if test -n "$ac_ct_RANLIB"; then
4675   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682   for ac_exec_ext in '' $ac_executable_extensions; do
4683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684     ac_cv_prog_ac_ct_RANLIB="ranlib"
4685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4686     break 2
4687   fi
4688 done
4689 done
4690
4691   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4692 fi
4693 fi
4694 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4695 if test -n "$ac_ct_RANLIB"; then
4696   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4697 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4698 else
4699   echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6
4701 fi
4702
4703   RANLIB=$ac_ct_RANLIB
4704 else
4705   RANLIB="$ac_cv_prog_RANLIB"
4706 fi
4707
4708 if test -n "$ac_tool_prefix"; then
4709   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4710 set dummy ${ac_tool_prefix}strip; ac_word=$2
4711 echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713 if test "${ac_cv_prog_STRIP+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   if test -n "$STRIP"; then
4717   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724   for ac_exec_ext in '' $ac_executable_extensions; do
4725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731 done
4732
4733 fi
4734 fi
4735 STRIP=$ac_cv_prog_STRIP
4736 if test -n "$STRIP"; then
4737   echo "$as_me:$LINENO: result: $STRIP" >&5
4738 echo "${ECHO_T}$STRIP" >&6
4739 else
4740   echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4742 fi
4743
4744 fi
4745 if test -z "$ac_cv_prog_STRIP"; then
4746   ac_ct_STRIP=$STRIP
4747   # Extract the first word of "strip", so it can be a program name with args.
4748 set dummy strip; ac_word=$2
4749 echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4752   echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754   if test -n "$ac_ct_STRIP"; then
4755   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_exec_ext in '' $ac_executable_extensions; do
4763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764     ac_cv_prog_ac_ct_STRIP="strip"
4765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769 done
4770
4771   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4772 fi
4773 fi
4774 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4775 if test -n "$ac_ct_STRIP"; then
4776   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4777 echo "${ECHO_T}$ac_ct_STRIP" >&6
4778 else
4779   echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4781 fi
4782
4783   STRIP=$ac_ct_STRIP
4784 else
4785   STRIP="$ac_cv_prog_STRIP"
4786 fi
4787
4788
4789 # Check for any special flags to pass to ltconfig.
4790 libtool_flags="--cache-file=$cache_file"
4791 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4792 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4793 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4794 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4795 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4796
4797
4798 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4799 if test "${enable_libtool_lock+set}" = set; then
4800   enableval="$enable_libtool_lock"
4801
4802 fi;
4803 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4804 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4805
4806
4807 # Check whether --with-pic or --without-pic was given.
4808 if test "${with_pic+set}" = set; then
4809   withval="$with_pic"
4810   pic_mode="$withval"
4811 else
4812   pic_mode=default
4813 fi;
4814 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4815 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4816
4817 # Some flags need to be propagated to the compiler or linker for good
4818 # libtool support.
4819 case $host in
4820 *-*-irix6*)
4821   # Find out which ABI we are using.
4822   echo '#line 4822 "configure"' > conftest.$ac_ext
4823   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824   (eval $ac_compile) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; then
4828    if test "$lt_cv_prog_gnu_ld" = yes; then
4829     case `/usr/bin/file conftest.$ac_objext` in
4830     *32-bit*)
4831       LD="${LD-ld} -melf32bsmip"
4832       ;;
4833     *N32*)
4834       LD="${LD-ld} -melf32bmipn32"
4835       ;;
4836     *64-bit*)
4837       LD="${LD-ld} -melf64bmip"
4838       ;;
4839     esac
4840    else
4841     case `/usr/bin/file conftest.$ac_objext` in
4842     *32-bit*)
4843       LD="${LD-ld} -32"
4844       ;;
4845     *N32*)
4846       LD="${LD-ld} -n32"
4847       ;;
4848     *64-bit*)
4849       LD="${LD-ld} -64"
4850       ;;
4851     esac
4852    fi
4853   fi
4854   rm -rf conftest*
4855   ;;
4856
4857 ia64-*-hpux*)
4858   # Find out which ABI we are using.
4859   echo 'int i;' > conftest.$ac_ext
4860   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861   (eval $ac_compile) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }; then
4865     case "`/usr/bin/file conftest.o`" in
4866     *ELF-32*)
4867       HPUX_IA64_MODE="32"
4868       ;;
4869     *ELF-64*)
4870       HPUX_IA64_MODE="64"
4871       ;;
4872     esac
4873   fi
4874   rm -rf conftest*
4875   ;;
4876
4877 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4878   # Find out which ABI we are using.
4879   echo 'int i;' > conftest.$ac_ext
4880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881   (eval $ac_compile) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; then
4885     case "`/usr/bin/file conftest.o`" in
4886     *32-bit*)
4887       case $host in
4888         x86_64-*linux*)
4889           LD="${LD-ld} -m elf_i386"
4890           ;;
4891         ppc64-*linux*|powerpc64-*linux*)
4892           LD="${LD-ld} -m elf32ppclinux"
4893           ;;
4894         s390x-*linux*)
4895           LD="${LD-ld} -m elf_s390"
4896           ;;
4897         sparc64-*linux*)
4898           LD="${LD-ld} -m elf32_sparc"
4899           ;;
4900       esac
4901       ;;
4902     *64-bit*)
4903       case $host in
4904         x86_64-*linux*)
4905           LD="${LD-ld} -m elf_x86_64"
4906           ;;
4907         ppc*-*linux*|powerpc*-*linux*)
4908           LD="${LD-ld} -m elf64ppc"
4909           ;;
4910         s390*-*linux*)
4911           LD="${LD-ld} -m elf64_s390"
4912           ;;
4913         sparc*-*linux*)
4914           LD="${LD-ld} -m elf64_sparc"
4915           ;;
4916       esac
4917       ;;
4918     esac
4919   fi
4920   rm -rf conftest*
4921   ;;
4922
4923 *-*-sco3.2v5*)
4924   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4925   SAVE_CFLAGS="$CFLAGS"
4926   CFLAGS="$CFLAGS -belf"
4927   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4928 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4929 if test "${lt_cv_cc_needs_belf+set}" = set; then
4930   echo $ECHO_N "(cached) $ECHO_C" >&6
4931 else
4932
4933
4934      ac_ext=c
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4939
4940      if test x$gcc_no_link = xyes; then
4941   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4943    { (exit 1); exit 1; }; }
4944 fi
4945 cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h.  */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h.  */
4951
4952 int
4953 main ()
4954 {
4955
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962   (eval $ac_link) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971   (eval $ac_try) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); }; } &&
4975          { ac_try='test -s conftest$ac_exeext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   lt_cv_cc_needs_belf=yes
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 lt_cv_cc_needs_belf=no
4987 fi
4988 rm -f conftest.err conftest.$ac_objext \
4989       conftest$ac_exeext conftest.$ac_ext
4990      ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996 fi
4997 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4998 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4999   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5000     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5001     CFLAGS="$SAVE_CFLAGS"
5002   fi
5003   ;;
5004
5005
5006 esac
5007
5008
5009 # Save cache, so that ltconfig can load it
5010 cat >confcache <<\_ACEOF
5011 # This file is a shell script that caches the results of configure
5012 # tests run on this system so they can be shared between configure
5013 # scripts and configure runs, see configure's option --config-cache.
5014 # It is not useful on other systems.  If it contains results you don't
5015 # want to keep, you may remove or edit it.
5016 #
5017 # config.status only pays attention to the cache file if you give it
5018 # the --recheck option to rerun configure.
5019 #
5020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5022 # following values.
5023
5024 _ACEOF
5025
5026 # The following way of writing the cache mishandles newlines in values,
5027 # but we know of no workaround that is simple, portable, and efficient.
5028 # So, don't put newlines in cache variables' values.
5029 # Ultrix sh set writes to stderr and can't be redirected directly,
5030 # and sets the high bit in the cache file unless we assign to the vars.
5031 {
5032   (set) 2>&1 |
5033     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5034     *ac_space=\ *)
5035       # `set' does not quote correctly, so add quotes (double-quote
5036       # substitution turns \\\\ into \\, and sed turns \\ into \).
5037       sed -n \
5038         "s/'/'\\\\''/g;
5039           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5040       ;;
5041     *)
5042       # `set' quotes correctly as required by POSIX, so do not add quotes.
5043       sed -n \
5044         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5045       ;;
5046     esac;
5047 } |
5048   sed '
5049      t clear
5050      : clear
5051      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5052      t end
5053      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5054      : end' >>confcache
5055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5056   if test -w $cache_file; then
5057     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5058     cat confcache >$cache_file
5059   else
5060     echo "not updating unwritable cache $cache_file"
5061   fi
5062 fi
5063 rm -f confcache
5064
5065 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5066 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5067 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5068 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5069 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5070 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5071 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5072 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5073 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5074 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5075 echo "$as_me: error: libtool configure failed" >&2;}
5076    { (exit 1); exit 1; }; }
5077
5078 # Reload cache, that may have been modified by ltconfig
5079 if test -r "$cache_file"; then
5080   # Some versions of bash will fail to source /dev/null (special
5081   # files actually), so we avoid doing that.
5082   if test -f "$cache_file"; then
5083     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5084 echo "$as_me: loading cache $cache_file" >&6;}
5085     case $cache_file in
5086       [\\/]* | ?:[\\/]* ) . $cache_file;;
5087       *)                      . ./$cache_file;;
5088     esac
5089   fi
5090 else
5091   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5092 echo "$as_me: creating cache $cache_file" >&6;}
5093   >$cache_file
5094 fi
5095
5096
5097 # This can be used to rebuild libtool when needed
5098 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5099
5100 # Always use our own libtool.
5101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5102
5103 # Redirect the config.log output again, so that the ltconfig log is not
5104 # clobbered by the next message.
5105 exec 5>>./config.log
5106
5107 ac_ext=cc
5108 ac_cpp='$CXXCPP $CPPFLAGS'
5109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5112 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5113 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5114 if test -z "$CXXCPP"; then
5115   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5116   echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118       # Double quotes because CXXCPP needs to be expanded
5119     for CXXCPP in "$CXX -E" "/lib/cpp"
5120     do
5121       ac_preproc_ok=false
5122 for ac_cxx_preproc_warn_flag in '' yes
5123 do
5124   # Use a header file that comes with gcc, so configuring glibc
5125   # with a fresh cross-compiler works.
5126   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127   # <limits.h> exists even on freestanding compilers.
5128   # On the NeXT, cc -E runs the code through the compiler's parser,
5129   # not just through cpp. "Syntax error" is here to catch this case.
5130   cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136 #ifdef __STDC__
5137 # include <limits.h>
5138 #else
5139 # include <assert.h>
5140 #endif
5141                      Syntax error
5142 _ACEOF
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5145   ac_status=$?
5146   grep -v '^ *+' conftest.er1 >conftest.err
5147   rm -f conftest.er1
5148   cat conftest.err >&5
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); } >/dev/null; then
5151   if test -s conftest.err; then
5152     ac_cpp_err=$ac_cxx_preproc_warn_flag
5153     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5154   else
5155     ac_cpp_err=
5156   fi
5157 else
5158   ac_cpp_err=yes
5159 fi
5160 if test -z "$ac_cpp_err"; then
5161   :
5162 else
5163   echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5165
5166   # Broken: fails on valid input.
5167 continue
5168 fi
5169 rm -f conftest.err conftest.$ac_ext
5170
5171   # OK, works on sane cases.  Now check whether non-existent headers
5172   # can be detected and how.
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 #include <ac_nonexistent.h>
5180 _ACEOF
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5183   ac_status=$?
5184   grep -v '^ *+' conftest.er1 >conftest.err
5185   rm -f conftest.er1
5186   cat conftest.err >&5
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } >/dev/null; then
5189   if test -s conftest.err; then
5190     ac_cpp_err=$ac_cxx_preproc_warn_flag
5191     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5192   else
5193     ac_cpp_err=
5194   fi
5195 else
5196   ac_cpp_err=yes
5197 fi
5198 if test -z "$ac_cpp_err"; then
5199   # Broken: success on invalid input.
5200 continue
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205   # Passes both tests.
5206 ac_preproc_ok=:
5207 break
5208 fi
5209 rm -f conftest.err conftest.$ac_ext
5210
5211 done
5212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213 rm -f conftest.err conftest.$ac_ext
5214 if $ac_preproc_ok; then
5215   break
5216 fi
5217
5218     done
5219     ac_cv_prog_CXXCPP=$CXXCPP
5220
5221 fi
5222   CXXCPP=$ac_cv_prog_CXXCPP
5223 else
5224   ac_cv_prog_CXXCPP=$CXXCPP
5225 fi
5226 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5227 echo "${ECHO_T}$CXXCPP" >&6
5228 ac_preproc_ok=false
5229 for ac_cxx_preproc_warn_flag in '' yes
5230 do
5231   # Use a header file that comes with gcc, so configuring glibc
5232   # with a fresh cross-compiler works.
5233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234   # <limits.h> exists even on freestanding compilers.
5235   # On the NeXT, cc -E runs the code through the compiler's parser,
5236   # not just through cpp. "Syntax error" is here to catch this case.
5237   cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h.  */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h.  */
5243 #ifdef __STDC__
5244 # include <limits.h>
5245 #else
5246 # include <assert.h>
5247 #endif
5248                      Syntax error
5249 _ACEOF
5250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5252   ac_status=$?
5253   grep -v '^ *+' conftest.er1 >conftest.err
5254   rm -f conftest.er1
5255   cat conftest.err >&5
5256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257   (exit $ac_status); } >/dev/null; then
5258   if test -s conftest.err; then
5259     ac_cpp_err=$ac_cxx_preproc_warn_flag
5260     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5261   else
5262     ac_cpp_err=
5263   fi
5264 else
5265   ac_cpp_err=yes
5266 fi
5267 if test -z "$ac_cpp_err"; then
5268   :
5269 else
5270   echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273   # Broken: fails on valid input.
5274 continue
5275 fi
5276 rm -f conftest.err conftest.$ac_ext
5277
5278   # OK, works on sane cases.  Now check whether non-existent headers
5279   # can be detected and how.
5280   cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 #include <ac_nonexistent.h>
5287 _ACEOF
5288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5290   ac_status=$?
5291   grep -v '^ *+' conftest.er1 >conftest.err
5292   rm -f conftest.er1
5293   cat conftest.err >&5
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); } >/dev/null; then
5296   if test -s conftest.err; then
5297     ac_cpp_err=$ac_cxx_preproc_warn_flag
5298     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5299   else
5300     ac_cpp_err=
5301   fi
5302 else
5303   ac_cpp_err=yes
5304 fi
5305 if test -z "$ac_cpp_err"; then
5306   # Broken: success on invalid input.
5307 continue
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312   # Passes both tests.
5313 ac_preproc_ok=:
5314 break
5315 fi
5316 rm -f conftest.err conftest.$ac_ext
5317
5318 done
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.err conftest.$ac_ext
5321 if $ac_preproc_ok; then
5322   :
5323 else
5324   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5325 See \`config.log' for more details." >&5
5326 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5327 See \`config.log' for more details." >&2;}
5328    { (exit 1); exit 1; }; }
5329 fi
5330
5331 ac_ext=c
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5336
5337
5338
5339 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5340 lt_save_CC="$CC"
5341 lt_save_CFLAGS="$CFLAGS"
5342 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5343 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5344 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5345 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5346 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5347 deplibs_check_method="$deplibs_check_method" \
5348 file_magic_cmd="$file_magic_cmd" \
5349 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5350 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5351 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5352 echo "$as_me: error: libtool tag configuration failed" >&2;}
5353    { (exit 1); exit 1; }; }
5354 CC="$lt_save_CC"
5355 CFLAGS="$lt_save_CFLAGS"
5356
5357 # Redirect the config.log output again, so that the ltconfig log is not
5358 # clobbered by the next message.
5359 exec 5>>./config.log
5360
5361
5362
5363
5364
5365
5366
5367 for ac_prog in gcj
5368 do
5369   # Extract the first word of "$ac_prog", so it can be a program name with args.
5370 set dummy $ac_prog; ac_word=$2
5371 echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373 if test "${ac_cv_prog_GCJ+set}" = set; then
5374   echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376   if test -n "$GCJ"; then
5377   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382   IFS=$as_save_IFS
5383   test -z "$as_dir" && as_dir=.
5384   for ac_exec_ext in '' $ac_executable_extensions; do
5385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386     ac_cv_prog_GCJ="$ac_prog"
5387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388     break 2
5389   fi
5390 done
5391 done
5392
5393 fi
5394 fi
5395 GCJ=$ac_cv_prog_GCJ
5396 if test -n "$GCJ"; then
5397   echo "$as_me:$LINENO: result: $GCJ" >&5
5398 echo "${ECHO_T}$GCJ" >&6
5399 else
5400   echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5402 fi
5403
5404   test -n "$GCJ" && break
5405 done
5406 test -n "$GCJ" || GCJ="gcj"
5407
5408 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5409 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5410    { (exit 1); exit 1; }; }
5411 if test "x${GCJFLAGS-unset}" = xunset; then
5412    GCJFLAGS="-g -O2"
5413 fi
5414
5415
5416 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5417
5418 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5420 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5424   # We make a subdir and do the tests there.  Otherwise we can end up
5425   # making bogus files that we don't know about and never remove.  For
5426   # instance it was reported that on HP-UX the gcc test will end up
5427   # making a dummy file named `D' -- because `-MD' means `put the output
5428   # in D'.
5429   mkdir conftest.dir
5430   # Copy depcomp to subdir because otherwise we won't find it if we're
5431   # using a relative directory.
5432   cp "$am_depcomp" conftest.dir
5433   cd conftest.dir
5434   # We will build objects and dependencies in a subdirectory because
5435   # it helps to detect inapplicable dependency modes.  For instance
5436   # both Tru64's cc and ICC support -MD to output dependencies as a
5437   # side effect of compilation, but ICC will put the dependencies in
5438   # the current directory while Tru64 will put them in the object
5439   # directory.
5440   mkdir sub
5441
5442   am_cv_GCJ_dependencies_compiler_type=none
5443   if test "$am_compiler_list" = ""; then
5444      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5445   fi
5446   for depmode in $am_compiler_list; do
5447     # Setup a source with many dependencies, because some compilers
5448     # like to wrap large dependency lists on column 80 (with \), and
5449     # we should not choose a depcomp mode which is confused by this.
5450     #
5451     # We need to recreate these files for each test, as the compiler may
5452     # overwrite some of them when testing with obscure command lines.
5453     # This happens at least with the AIX C compiler.
5454     : > sub/conftest.c
5455     for i in 1 2 3 4 5 6; do
5456       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5457       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5458       # Solaris 8's {/usr,}/bin/sh.
5459       touch sub/conftst$i.h
5460     done
5461     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5462
5463     case $depmode in
5464     nosideeffect)
5465       # after this tag, mechanisms are not by side-effect, so they'll
5466       # only be used when explicitly requested
5467       if test "x$enable_dependency_tracking" = xyes; then
5468         continue
5469       else
5470         break
5471       fi
5472       ;;
5473     none) break ;;
5474     esac
5475     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5476     # mode.  It turns out that the SunPro C++ compiler does not properly
5477     # handle `-M -o', and we need to detect this.
5478     if depmode=$depmode \
5479        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5480        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5481        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5482          >/dev/null 2>conftest.err &&
5483        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5484        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5485        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5486       # icc doesn't choke on unknown options, it will just issue warnings
5487       # or remarks (even with -Werror).  So we grep stderr for any message
5488       # that says an option was ignored or not supported.
5489       # When given -MP, icc 7.0 and 7.1 complain thusly:
5490       #   icc: Command line warning: ignoring option '-M'; no argument required
5491       # The diagnosis changed in icc 8.0:
5492       #   icc: Command line remark: option '-MP' not supported
5493       if (grep 'ignoring option' conftest.err ||
5494           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5495         am_cv_GCJ_dependencies_compiler_type=$depmode
5496         break
5497       fi
5498     fi
5499   done
5500
5501   cd ..
5502   rm -rf conftest.dir
5503 else
5504   am_cv_GCJ_dependencies_compiler_type=none
5505 fi
5506
5507 fi
5508 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5509 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5510 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5511
5512
5513
5514 if
5515   test "x$enable_dependency_tracking" != xno \
5516   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5517   am__fastdepGCJ_TRUE=
5518   am__fastdepGCJ_FALSE='#'
5519 else
5520   am__fastdepGCJ_TRUE='#'
5521   am__fastdepGCJ_FALSE=
5522 fi
5523
5524
5525
5526
5527 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5528 lt_save_CC="$CC"
5529 lt_save_CFLAGS="$CFLAGS"
5530 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5531 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5532 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5533 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5534 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5535 deplibs_check_method="$deplibs_check_method" \
5536 file_magic_cmd="$file_magic_cmd" \
5537 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5538 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5539 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5540 echo "$as_me: error: libtool tag configuration failed" >&2;}
5541    { (exit 1); exit 1; }; }
5542 CC="$lt_save_CC"
5543 CFLAGS="$lt_save_CFLAGS"
5544
5545 # Redirect the config.log output again, so that the ltconfig log is not
5546 # clobbered by the next message.
5547 exec 5>>./config.log
5548
5549
5550
5551 if test "x$CC" != xcc; then
5552   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5553 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5554 else
5555   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5556 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5557 fi
5558 set dummy $CC; ac_cc=`echo $2 |
5559                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5560 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h.  */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h.  */
5569
5570 int
5571 main ()
5572 {
5573
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 # Make sure it works both with $CC and with simple cc.
5579 # We do the test twice because some compilers refuse to overwrite an
5580 # existing .o file with -o, though they will create one.
5581 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5582 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583   (eval $ac_try) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); } &&
5587    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588   (eval $ac_try) 2>&5
5589   ac_status=$?
5590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591   (exit $ac_status); };
5592 then
5593   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5594   if test "x$CC" != xcc; then
5595     # Test first that cc exists at all.
5596     if { ac_try='cc -c conftest.$ac_ext >&5'
5597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598   (eval $ac_try) 2>&5
5599   ac_status=$?
5600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601   (exit $ac_status); }; }; then
5602       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5603       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604   (eval $ac_try) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } &&
5608          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); };
5613       then
5614         # cc works too.
5615         :
5616       else
5617         # cc exists but doesn't like -o.
5618         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5619       fi
5620     fi
5621   fi
5622 else
5623   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5624 fi
5625 rm -f conftest*
5626
5627 fi
5628 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5629   echo "$as_me:$LINENO: result: yes" >&5
5630 echo "${ECHO_T}yes" >&6
5631 else
5632   echo "$as_me:$LINENO: result: no" >&5
5633 echo "${ECHO_T}no" >&6
5634
5635 cat >>confdefs.h <<\_ACEOF
5636 #define NO_MINUS_C_MINUS_O 1
5637 _ACEOF
5638
5639 fi
5640
5641 # FIXME: we rely on the cache variable name because
5642 # there is no other way.
5643 set dummy $CC
5644 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5645 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5646    # Losing compiler, so override with the script.
5647    # FIXME: It is wrong to rewrite CC.
5648    # But if we don't then we get into trouble of one sort or another.
5649    # A longer-term fix would be to have automake use am__CC in this case,
5650    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5651    CC="$am_aux_dir/compile $CC"
5652 fi
5653
5654
5655
5656 subdirs="$subdirs libltdl"
5657
5658
5659 # The -no-testsuite modules omit the test subdir.
5660
5661
5662 if test -d $srcdir/testsuite; then
5663   TESTSUBDIR_TRUE=
5664   TESTSUBDIR_FALSE='#'
5665 else
5666   TESTSUBDIR_TRUE='#'
5667   TESTSUBDIR_FALSE=
5668 fi
5669
5670
5671 # Should the runtime set system properties by examining the
5672 # environment variable GCJ_PROPERTIES?
5673 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5674 if test "${enable_getenv_properties+set}" = set; then
5675   enableval="$enable_getenv_properties"
5676
5677 fi;
5678
5679 # Whether GCJ_PROPERTIES is used depends on the target.
5680 if test -z "$enable_getenv_properties"; then
5681    enable_getenv_properties=${enable_getenv_properties_default-yes}
5682 fi
5683 if test "$enable_getenv_properties" = no; then
5684
5685 cat >>confdefs.h <<\_ACEOF
5686 #define DISABLE_GETENV_PROPERTIES 1
5687 _ACEOF
5688
5689 fi
5690
5691 # Whether we should use arguments to main()
5692 if test -z "$enable_main_args"; then
5693    enable_main_args=${enable_main_args_default-yes}
5694 fi
5695 if test "$enable_main_args" = no; then
5696
5697 cat >>confdefs.h <<\_ACEOF
5698 #define DISABLE_MAIN_ARGS 1
5699 _ACEOF
5700
5701 fi
5702
5703
5704 # Should we use hashtable-based synchronization?
5705 # Currently works only for Linux X86/ia64
5706 # Typically faster and more space-efficient
5707 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5708 if test "${enable_hash_synchronization+set}" = set; then
5709   enableval="$enable_hash_synchronization"
5710
5711 fi;
5712
5713 if test -z "$enable_hash_synchronization"; then
5714    enable_hash_synchronization=$enable_hash_synchronization_default
5715 fi
5716
5717 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5718 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5719 if test "${enable_libgcj_multifile+set}" = set; then
5720   enableval="$enable_libgcj_multifile"
5721   case "${enableval}" in
5722   yes) enable_libgcj_multifile=yes ;;
5723   no)  enable_libgcj_multifile=no ;;
5724   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5725 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5726    { (exit 1); exit 1; }; } ;;
5727 esac
5728 else
5729   enable_libgcj_multifile=no
5730 fi;
5731
5732
5733 if test "$enable_libgcj_multifile" = yes; then
5734   ONESTEP_TRUE=
5735   ONESTEP_FALSE='#'
5736 else
5737   ONESTEP_TRUE='#'
5738   ONESTEP_FALSE=
5739 fi
5740
5741
5742
5743 # Check whether --with-java-home or --without-java-home was given.
5744 if test "${with_java_home+set}" = set; then
5745   withval="$with_java_home"
5746   JAVA_HOME="${withval}"
5747 else
5748   JAVA_HOME=""
5749 fi;
5750
5751
5752 if test ! -z "$JAVA_HOME"; then
5753   JAVA_HOME_SET_TRUE=
5754   JAVA_HOME_SET_FALSE='#'
5755 else
5756   JAVA_HOME_SET_TRUE='#'
5757   JAVA_HOME_SET_FALSE=
5758 fi
5759
5760
5761
5762 # What is the native OS API for MinGW?
5763
5764 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5765 if test "${with_win32_nlsapi+set}" = set; then
5766   withval="$with_win32_nlsapi"
5767   case "${withval}" in
5768   ansi) with_win32_nlsapi=ansi ;;
5769   unicows) with_win32_nlsapi=unicows ;;
5770   unicode) with_win32_nlsapi=unicode ;;
5771   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5772 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5773    { (exit 1); exit 1; }; } ;;
5774 esac
5775 else
5776   with_win32_nlsapi=ansi
5777 fi;
5778
5779 case "${with_win32_nlsapi}" in
5780   unicows | unicode)
5781
5782 cat >>confdefs.h <<\_ACEOF
5783 #define MINGW_LIBGCJ_UNICODE 1
5784 _ACEOF
5785
5786     ;;
5787 esac
5788
5789 # configure.host sets slow_pthread_self if the synchronization code should
5790 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5791 if test "${slow_pthread_self}" = "yes"; then
5792
5793 cat >>confdefs.h <<\_ACEOF
5794 #define SLOW_PTHREAD_SELF 1
5795 _ACEOF
5796
5797 fi
5798
5799
5800 # See if the user has requested runtime debugging.
5801 LIBGCJDEBUG="false"
5802
5803 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5804 if test "${enable_libgcj_debug+set}" = set; then
5805   enableval="$enable_libgcj_debug"
5806   if test "$enable_libgcj_debug" = yes; then
5807
5808 cat >>confdefs.h <<\_ACEOF
5809 #define DEBUG 1
5810 _ACEOF
5811
5812     LIBGCJDEBUG="true"
5813   fi
5814 fi;
5815
5816 # Check for gc debugging.  This option is handled both here and in the GC.
5817 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5818 if test "${enable_gc_debug+set}" = set; then
5819   enableval="$enable_gc_debug"
5820    if test "$enable_gc_debug" = "yes"; then
5821
5822 cat >>confdefs.h <<\_ACEOF
5823 #define LIBGCJ_GC_DEBUG 1
5824 _ACEOF
5825
5826   fi
5827 fi;
5828
5829 # See if the user has the interpreter included.
5830 # Check whether --enable-interpreter or --disable-interpreter was given.
5831 if test "${enable_interpreter+set}" = set; then
5832   enableval="$enable_interpreter"
5833   if test "$enable_interpreter" = yes; then
5834     # This can also be set in configure.host.
5835     libgcj_interpreter=yes
5836   elif test "$enable_interpreter" = no; then
5837     libgcj_interpreter=no
5838   fi
5839 fi;
5840
5841 if test "$libgcj_interpreter" = yes; then
5842
5843 cat >>confdefs.h <<\_ACEOF
5844 #define INTERPRETER 1
5845 _ACEOF
5846
5847 fi
5848 INTERPRETER="$libgcj_interpreter"
5849
5850
5851 echo "$as_me:$LINENO: checking for exception model to use" >&5
5852 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5853 ac_ext=cc
5854 ac_cpp='$CXXCPP $CPPFLAGS'
5855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5858
5859 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5860 if test "${enable_sjlj_exceptions+set}" = set; then
5861   enableval="$enable_sjlj_exceptions"
5862   :
5863 else
5864   cat > conftest.$ac_ext << EOF
5865 #line 5865 "configure"
5866 struct S { ~S(); };
5867 void bar();
5868 void foo()
5869 {
5870   S s;
5871   bar();
5872 }
5873 EOF
5874 old_CXXFLAGS="$CXXFLAGS"
5875 CXXFLAGS=-S
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877   (eval $ac_compile) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; then
5881   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5882     enable_sjlj_exceptions=yes
5883   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5884     enable_sjlj_exceptions=no
5885   fi
5886 fi
5887 CXXFLAGS="$old_CXXFLAGS"
5888 rm -f conftest*
5889 fi;
5890 if test x$enable_sjlj_exceptions = xyes; then
5891
5892 cat >>confdefs.h <<\_ACEOF
5893 #define SJLJ_EXCEPTIONS 1
5894 _ACEOF
5895
5896   ac_exception_model_name=sjlj
5897 elif test x$enable_sjlj_exceptions = xno; then
5898   ac_exception_model_name="call frame"
5899 else
5900   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5901 echo "$as_me: error: unable to detect exception model" >&2;}
5902    { (exit 1); exit 1; }; }
5903 fi
5904 ac_ext=c
5905 ac_cpp='$CPP $CPPFLAGS'
5906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5909
5910 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5911 echo "${ECHO_T}$ac_exception_model_name" >&6
5912
5913 # If we are non using SJLJ exceptions, and this host does not have support
5914 # for unwinding from a signal handler, enable checked dereferences and divides.
5915 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5916   CHECKREFSPEC=-fcheck-references
5917   DIVIDESPEC=-fuse-divide-subroutine
5918   EXCEPTIONSPEC=
5919 fi
5920
5921 # See if the user wants to disable java.net.  This is the mildly
5922 # ugly way that we admit that target-side configuration sucks.
5923 # Check whether --enable-java-net or --disable-java-net was given.
5924 if test "${enable_java_net+set}" = set; then
5925   enableval="$enable_java_net"
5926
5927 fi;
5928
5929 # Whether java.net is built by default can depend on the target.
5930 if test -z "$enable_java_net"; then
5931    enable_java_net=${enable_java_net_default-yes}
5932 fi
5933 if test "$enable_java_net" = no; then
5934
5935 cat >>confdefs.h <<\_ACEOF
5936 #define DISABLE_JAVA_NET 1
5937 _ACEOF
5938
5939 fi
5940
5941 # See if the user wants to configure without libffi.  Some
5942 # architectures don't support it, and default values are set in
5943 # configure.host.
5944
5945 # Check whether --with-libffi or --without-libffi was given.
5946 if test "${with_libffi+set}" = set; then
5947   withval="$with_libffi"
5948   :
5949 else
5950   with_libffi=${with_libffi_default-yes}
5951 fi;
5952
5953 LIBFFI=
5954 LIBFFIINCS=
5955 if test "$with_libffi" != no; then
5956
5957 cat >>confdefs.h <<\_ACEOF
5958 #define USE_LIBFFI 1
5959 _ACEOF
5960
5961    LIBFFI=../libffi/libffi_convenience.la
5962    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5963 fi
5964
5965
5966
5967 # See if the user wants to disable JVMPI support.
5968 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5969 if test "${enable_jvmpi+set}" = set; then
5970   enableval="$enable_jvmpi"
5971
5972 fi;
5973
5974 if test "$enable_jvmpi" != no; then
5975
5976 cat >>confdefs.h <<\_ACEOF
5977 #define ENABLE_JVMPI 1
5978 _ACEOF
5979
5980 fi
5981
5982 # If the target is an eCos system, use the appropriate eCos
5983 # I/O routines.
5984 # FIXME: this should not be a local option but a global target
5985 # system; at present there is no eCos target.
5986 TARGET_ECOS=${PROCESS-"no"}
5987
5988 # Check whether --with-ecos or --without-ecos was given.
5989 if test "${with_ecos+set}" = set; then
5990   withval="$with_ecos"
5991   TARGET_ECOS="$with_ecos"
5992
5993 fi;
5994
5995 supply_backtrace=no
5996
5997 PLATFORM_INNER_NAT_HDRS=
5998 case "$TARGET_ECOS" in
5999    no) case "$host" in
6000       *mingw*)
6001             PLATFORM=Win32
6002             PLATFORMNET=Win32
6003             PLATFORMH=win32.h
6004
6005 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6006 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6007 LD_PROG=`$CC --print-prog-name=ld`
6008 LD_VERSION=`$LD_PROG --version`
6009 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6010 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6011 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6012   LD_OK="ok"
6013 else
6014   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6015     LD_OK="ok"
6016   fi
6017 fi
6018 if test "x$LD_OK" != x; then
6019   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6020 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6021 else
6022   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6023 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6024   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6025 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6026
6027 cat >>confdefs.h <<\_ACEOF
6028 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6029 _ACEOF
6030
6031 fi
6032       ;;
6033       *)
6034             PLATFORM=Posix
6035             PLATFORMNET=Posix
6036             PLATFORMH=posix.h
6037             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6038       ;;
6039       esac
6040       ;;
6041    *)
6042       PLATFORM=Ecos
6043       PLATFORMNET=NoNet
6044
6045 cat >>confdefs.h <<\_ACEOF
6046 #define ECOS 1
6047 _ACEOF
6048
6049       PLATFORMH=posix.h
6050       ;;
6051 esac
6052
6053           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6054
6055
6056 ac_ext=c
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6062 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6063 # On Suns, sometimes $CPP names a directory.
6064 if test -n "$CPP" && test -d "$CPP"; then
6065   CPP=
6066 fi
6067 if test -z "$CPP"; then
6068   if test "${ac_cv_prog_CPP+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071       # Double quotes because CPP needs to be expanded
6072     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6073     do
6074       ac_preproc_ok=false
6075 for ac_c_preproc_warn_flag in '' yes
6076 do
6077   # Use a header file that comes with gcc, so configuring glibc
6078   # with a fresh cross-compiler works.
6079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080   # <limits.h> exists even on freestanding compilers.
6081   # On the NeXT, cc -E runs the code through the compiler's parser,
6082   # not just through cpp. "Syntax error" is here to catch this case.
6083   cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h.  */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h.  */
6089 #ifdef __STDC__
6090 # include <limits.h>
6091 #else
6092 # include <assert.h>
6093 #endif
6094                      Syntax error
6095 _ACEOF
6096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098   ac_status=$?
6099   grep -v '^ *+' conftest.er1 >conftest.err
6100   rm -f conftest.er1
6101   cat conftest.err >&5
6102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103   (exit $ac_status); } >/dev/null; then
6104   if test -s conftest.err; then
6105     ac_cpp_err=$ac_c_preproc_warn_flag
6106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6107   else
6108     ac_cpp_err=
6109   fi
6110 else
6111   ac_cpp_err=yes
6112 fi
6113 if test -z "$ac_cpp_err"; then
6114   :
6115 else
6116   echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119   # Broken: fails on valid input.
6120 continue
6121 fi
6122 rm -f conftest.err conftest.$ac_ext
6123
6124   # OK, works on sane cases.  Now check whether non-existent headers
6125   # can be detected and how.
6126   cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132 #include <ac_nonexistent.h>
6133 _ACEOF
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136   ac_status=$?
6137   grep -v '^ *+' conftest.er1 >conftest.err
6138   rm -f conftest.er1
6139   cat conftest.err >&5
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } >/dev/null; then
6142   if test -s conftest.err; then
6143     ac_cpp_err=$ac_c_preproc_warn_flag
6144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145   else
6146     ac_cpp_err=
6147   fi
6148 else
6149   ac_cpp_err=yes
6150 fi
6151 if test -z "$ac_cpp_err"; then
6152   # Broken: success on invalid input.
6153 continue
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158   # Passes both tests.
6159 ac_preproc_ok=:
6160 break
6161 fi
6162 rm -f conftest.err conftest.$ac_ext
6163
6164 done
6165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6166 rm -f conftest.err conftest.$ac_ext
6167 if $ac_preproc_ok; then
6168   break
6169 fi
6170
6171     done
6172     ac_cv_prog_CPP=$CPP
6173
6174 fi
6175   CPP=$ac_cv_prog_CPP
6176 else
6177   ac_cv_prog_CPP=$CPP
6178 fi
6179 echo "$as_me:$LINENO: result: $CPP" >&5
6180 echo "${ECHO_T}$CPP" >&6
6181 ac_preproc_ok=false
6182 for ac_c_preproc_warn_flag in '' yes
6183 do
6184   # Use a header file that comes with gcc, so configuring glibc
6185   # with a fresh cross-compiler works.
6186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187   # <limits.h> exists even on freestanding compilers.
6188   # On the NeXT, cc -E runs the code through the compiler's parser,
6189   # not just through cpp. "Syntax error" is here to catch this case.
6190   cat >conftest.$ac_ext <<_ACEOF
6191 /* confdefs.h.  */
6192 _ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h.  */
6196 #ifdef __STDC__
6197 # include <limits.h>
6198 #else
6199 # include <assert.h>
6200 #endif
6201                      Syntax error
6202 _ACEOF
6203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6205   ac_status=$?
6206   grep -v '^ *+' conftest.er1 >conftest.err
6207   rm -f conftest.er1
6208   cat conftest.err >&5
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); } >/dev/null; then
6211   if test -s conftest.err; then
6212     ac_cpp_err=$ac_c_preproc_warn_flag
6213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6214   else
6215     ac_cpp_err=
6216   fi
6217 else
6218   ac_cpp_err=yes
6219 fi
6220 if test -z "$ac_cpp_err"; then
6221   :
6222 else
6223   echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6225
6226   # Broken: fails on valid input.
6227 continue
6228 fi
6229 rm -f conftest.err conftest.$ac_ext
6230
6231   # OK, works on sane cases.  Now check whether non-existent headers
6232   # can be detected and how.
6233   cat >conftest.$ac_ext <<_ACEOF
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239 #include <ac_nonexistent.h>
6240 _ACEOF
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243   ac_status=$?
6244   grep -v '^ *+' conftest.er1 >conftest.err
6245   rm -f conftest.er1
6246   cat conftest.err >&5
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } >/dev/null; then
6249   if test -s conftest.err; then
6250     ac_cpp_err=$ac_c_preproc_warn_flag
6251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6252   else
6253     ac_cpp_err=
6254   fi
6255 else
6256   ac_cpp_err=yes
6257 fi
6258 if test -z "$ac_cpp_err"; then
6259   # Broken: success on invalid input.
6260 continue
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265   # Passes both tests.
6266 ac_preproc_ok=:
6267 break
6268 fi
6269 rm -f conftest.err conftest.$ac_ext
6270
6271 done
6272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6273 rm -f conftest.err conftest.$ac_ext
6274 if $ac_preproc_ok; then
6275   :
6276 else
6277   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6278 See \`config.log' for more details." >&5
6279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6280 See \`config.log' for more details." >&2;}
6281    { (exit 1); exit 1; }; }
6282 fi
6283
6284 ac_ext=c
6285 ac_cpp='$CPP $CPPFLAGS'
6286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6289
6290
6291 echo "$as_me:$LINENO: checking for egrep" >&5
6292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6293 if test "${ac_cv_prog_egrep+set}" = set; then
6294   echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6297     then ac_cv_prog_egrep='grep -E'
6298     else ac_cv_prog_egrep='egrep'
6299     fi
6300 fi
6301 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6303  EGREP=$ac_cv_prog_egrep
6304
6305
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h.  */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h.  */
6312 #include <stdint.h>
6313
6314 _ACEOF
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316   $EGREP "uint32_t" >/dev/null 2>&1; then
6317
6318 cat >>confdefs.h <<\_ACEOF
6319 #define HAVE_INT32_DEFINED 1
6320 _ACEOF
6321
6322 fi
6323 rm -f conftest*
6324
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 #include <inttypes.h>
6332
6333 _ACEOF
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335   $EGREP "uint32_t" >/dev/null 2>&1; then
6336
6337 cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_INT32_DEFINED 1
6339 _ACEOF
6340
6341 fi
6342 rm -f conftest*
6343
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h.  */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h.  */
6350 #include <sys/types.h>
6351
6352 _ACEOF
6353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354   $EGREP "u_int32_t" >/dev/null 2>&1; then
6355
6356 cat >>confdefs.h <<\_ACEOF
6357 #define HAVE_BSD_INT32_DEFINED 1
6358 _ACEOF
6359
6360 fi
6361 rm -f conftest*
6362
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369 #include <sys/config.h>
6370
6371 _ACEOF
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373   $EGREP "u_int32_t" >/dev/null 2>&1; then
6374
6375 cat >>confdefs.h <<\_ACEOF
6376 #define HAVE_BSD_INT32_DEFINED 1
6377 _ACEOF
6378
6379 fi
6380 rm -f conftest*
6381
6382
6383
6384
6385 if test "$PLATFORM" = Win32; then
6386   USING_WIN32_PLATFORM_TRUE=
6387   USING_WIN32_PLATFORM_FALSE='#'
6388 else
6389   USING_WIN32_PLATFORM_TRUE='#'
6390   USING_WIN32_PLATFORM_FALSE=
6391 fi
6392
6393
6394
6395 if test "$PLATFORM" = Posix; then
6396   USING_POSIX_PLATFORM_TRUE=
6397   USING_POSIX_PLATFORM_FALSE='#'
6398 else
6399   USING_POSIX_PLATFORM_TRUE='#'
6400   USING_POSIX_PLATFORM_FALSE=
6401 fi
6402
6403
6404
6405 if test "$PLATFORM" = Ecos; then
6406   USING_ECOS_PLATFORM_TRUE=
6407   USING_ECOS_PLATFORM_FALSE='#'
6408 else
6409   USING_ECOS_PLATFORM_TRUE='#'
6410   USING_ECOS_PLATFORM_FALSE=
6411 fi
6412
6413
6414 case "$host" in
6415   *-darwin*) DARWIN_CRT=true ;;
6416   *) DARWIN_CRT=false ;;
6417 esac
6418
6419
6420 if $DARWIN_CRT; then
6421   USING_DARWIN_CRT_TRUE=
6422   USING_DARWIN_CRT_FALSE='#'
6423 else
6424   USING_DARWIN_CRT_TRUE='#'
6425   USING_DARWIN_CRT_FALSE=
6426 fi
6427
6428
6429 # These may not be defined in a non-ANS conformant embedded system.
6430 # FIXME: Should these case a runtime exception in that case?
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 #include <time.h>
6438
6439 _ACEOF
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441   $EGREP "mktime" >/dev/null 2>&1; then
6442
6443 cat >>confdefs.h <<\_ACEOF
6444 #define HAVE_MKTIME 1
6445 _ACEOF
6446
6447 fi
6448 rm -f conftest*
6449
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h.  */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h.  */
6456 #include <time.h>
6457
6458 _ACEOF
6459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6460   $EGREP "localtime" >/dev/null 2>&1; then
6461
6462 cat >>confdefs.h <<\_ACEOF
6463 #define HAVE_LOCALTIME 1
6464 _ACEOF
6465
6466 fi
6467 rm -f conftest*
6468
6469
6470 # Create the subdirectory for natFile.cc, or the attempt
6471 # to create the link will fail.
6472 test -d java || mkdir java
6473 test -d java/io || mkdir java/io
6474 test -d gnu || mkdir gnu
6475           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6476
6477
6478 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6479 test -d java/lang || mkdir java/lang
6480           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6481
6482           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6483
6484
6485 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6486 test -d java/net || mkdir java/net
6487           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6488
6489           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6490
6491
6492 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6493 test -d gnu/java || mkdir gnu/java
6494 test -d gnu/java/net || mkdir gnu/java/net
6495           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6496
6497           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6498
6499
6500 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6501 test -d gnu/java/nio || mkdir gnu/java/nio
6502           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6503
6504           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6505
6506 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6507           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6508
6509
6510 case "${host}" in
6511     *mingw*)
6512       SYSTEMSPEC="-lgdi32 -lws2_32"
6513       if test "${with_win32_nlsapi}" = "unicows"; then
6514         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6515       fi
6516     ;;
6517     *)
6518       SYSTEMSPEC=
6519     ;;
6520 esac
6521
6522
6523 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6524
6525
6526
6527 # Check whether --with-system-zlib or --without-system-zlib was given.
6528 if test "${with_system_zlib+set}" = set; then
6529   withval="$with_system_zlib"
6530
6531 fi;
6532 ZLIBSPEC=
6533
6534 ZLIBTESTSPEC=
6535
6536
6537
6538 if test "x$ac_path_x_has_been_run" != xyes; then
6539   echo "$as_me:$LINENO: checking for X" >&5
6540 echo $ECHO_N "checking for X... $ECHO_C" >&6
6541
6542 ac_path_x_has_been_run=yes
6543
6544 # Check whether --with-x or --without-x was given.
6545 if test "${with_x+set}" = set; then
6546   withval="$with_x"
6547
6548 fi;
6549 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6550 if test "x$with_x" = xno; then
6551   # The user explicitly disabled X.
6552   have_x=disabled
6553 else
6554   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6555     # Both variables are already set.
6556     have_x=yes
6557   else
6558     if test "${ac_cv_have_x+set}" = set; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561   # One or both of the vars are not set, and there is no cached value.
6562 ac_x_includes=no ac_x_libraries=no
6563 rm -fr conftest.dir
6564 if mkdir conftest.dir; then
6565   cd conftest.dir
6566   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6567   cat >Imakefile <<'_ACEOF'
6568 acfindx:
6569         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6570 _ACEOF
6571   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6572     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6573     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6574     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6575     for ac_extension in a so sl; do
6576       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6577          test -f $ac_im_libdir/libX11.$ac_extension; then
6578         ac_im_usrlibdir=$ac_im_libdir; break
6579       fi
6580     done
6581     # Screen out bogus values from the imake configuration.  They are
6582     # bogus both because they are the default anyway, and because
6583     # using them would break gcc on systems where it needs fixed includes.
6584     case $ac_im_incroot in
6585         /usr/include) ;;
6586         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6587     esac
6588     case $ac_im_usrlibdir in
6589         /usr/lib | /lib) ;;
6590         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6591     esac
6592   fi
6593   cd ..
6594   rm -fr conftest.dir
6595 fi
6596
6597 # Standard set of common directories for X headers.
6598 # Check X11 before X11Rn because it is often a symlink to the current release.
6599 ac_x_header_dirs='
6600 /usr/X11/include
6601 /usr/X11R6/include
6602 /usr/X11R5/include
6603 /usr/X11R4/include
6604
6605 /usr/include/X11
6606 /usr/include/X11R6
6607 /usr/include/X11R5
6608 /usr/include/X11R4
6609
6610 /usr/local/X11/include
6611 /usr/local/X11R6/include
6612 /usr/local/X11R5/include
6613 /usr/local/X11R4/include
6614
6615 /usr/local/include/X11
6616 /usr/local/include/X11R6
6617 /usr/local/include/X11R5
6618 /usr/local/include/X11R4
6619
6620 /usr/X386/include
6621 /usr/x386/include
6622 /usr/XFree86/include/X11
6623
6624 /usr/include
6625 /usr/local/include
6626 /usr/unsupported/include
6627 /usr/athena/include
6628 /usr/local/x11r5/include
6629 /usr/lpp/Xamples/include
6630
6631 /usr/openwin/include
6632 /usr/openwin/share/include'
6633
6634 if test "$ac_x_includes" = no; then
6635   # Guess where to find include files, by looking for a specified header file.
6636   # First, try using that file with no special directory specified.
6637   cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643 #include <X11/Intrinsic.h>
6644 _ACEOF
6645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647   ac_status=$?
6648   grep -v '^ *+' conftest.er1 >conftest.err
6649   rm -f conftest.er1
6650   cat conftest.err >&5
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } >/dev/null; then
6653   if test -s conftest.err; then
6654     ac_cpp_err=$ac_c_preproc_warn_flag
6655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6656   else
6657     ac_cpp_err=
6658   fi
6659 else
6660   ac_cpp_err=yes
6661 fi
6662 if test -z "$ac_cpp_err"; then
6663   # We can compile using X headers with no special include directory.
6664 ac_x_includes=
6665 else
6666   echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669   for ac_dir in $ac_x_header_dirs; do
6670   if test -r "$ac_dir/X11/Intrinsic.h"; then
6671     ac_x_includes=$ac_dir
6672     break
6673   fi
6674 done
6675 fi
6676 rm -f conftest.err conftest.$ac_ext
6677 fi # $ac_x_includes = no
6678
6679 if test "$ac_x_libraries" = no; then
6680   # Check for the libraries.
6681   # See if we find them without any special options.
6682   # Don't add to $LIBS permanently.
6683   ac_save_LIBS=$LIBS
6684   LIBS="-lXt $LIBS"
6685   if test x$gcc_no_link = xyes; then
6686   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6688    { (exit 1); exit 1; }; }
6689 fi
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h.  */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h.  */
6696 #include <X11/Intrinsic.h>
6697 int
6698 main ()
6699 {
6700 XtMalloc (0)
6701   ;
6702   return 0;
6703 }
6704 _ACEOF
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707   (eval $ac_link) 2>conftest.er1
6708   ac_status=$?
6709   grep -v '^ *+' conftest.er1 >conftest.err
6710   rm -f conftest.er1
6711   cat conftest.err >&5
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); } &&
6714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716   (eval $ac_try) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); }; } &&
6720          { ac_try='test -s conftest$ac_exeext'
6721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722   (eval $ac_try) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); }; }; then
6726   LIBS=$ac_save_LIBS
6727 # We can link X programs with no special library path.
6728 ac_x_libraries=
6729 else
6730   echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 LIBS=$ac_save_LIBS
6734 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6735 do
6736   # Don't even attempt the hair of trying to link an X program!
6737   for ac_extension in a so sl; do
6738     if test -r $ac_dir/libXt.$ac_extension; then
6739       ac_x_libraries=$ac_dir
6740       break 2
6741     fi
6742   done
6743 done
6744 fi
6745 rm -f conftest.err conftest.$ac_objext \
6746       conftest$ac_exeext conftest.$ac_ext
6747 fi # $ac_x_libraries = no
6748
6749 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6750   # Didn't find X anywhere.  Cache the known absence of X.
6751   ac_cv_have_x="have_x=no"
6752 else
6753   # Record where we found X for the cache.
6754   ac_cv_have_x="have_x=yes \
6755                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6756 fi
6757 fi
6758
6759   fi
6760   eval "$ac_cv_have_x"
6761 fi # $with_x != no
6762
6763 if test "$have_x" != yes; then
6764   echo "$as_me:$LINENO: result: $have_x" >&5
6765 echo "${ECHO_T}$have_x" >&6
6766   no_x=yes
6767 else
6768   # If each of the values was on the command line, it overrides each guess.
6769   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6770   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6771   # Update the cache value to reflect the command line values.
6772   ac_cv_have_x="have_x=yes \
6773                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6774   # It might be that x_includes is empty (headers are found in the
6775   # standard search path. Then output the corresponding message
6776   ac_out_x_includes=$x_includes
6777   test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6778   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6779 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6780 fi
6781
6782 fi
6783 if test "$no_x" = yes; then
6784   # Not all programs may use this symbol, but it does not hurt to define it.
6785
6786 cat >>confdefs.h <<\_ACEOF
6787 #define X_DISPLAY_MISSING 1
6788 _ACEOF
6789
6790   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6791 else
6792   if test -n "$x_includes"; then
6793     X_CFLAGS="$X_CFLAGS -I$x_includes"
6794   fi
6795
6796   # It would also be nice to do this for all -L options, not just this one.
6797   if test -n "$x_libraries"; then
6798     X_LIBS="$X_LIBS -L$x_libraries"
6799     # For Solaris; some versions of Sun CC require a space after -R and
6800     # others require no space.  Words are not sufficient . . . .
6801     case `(uname -sr) 2>/dev/null` in
6802     "SunOS 5"*)
6803       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6804 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6805       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6806       if test x$gcc_no_link = xyes; then
6807   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6809    { (exit 1); exit 1; }; }
6810 fi
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817
6818 int
6819 main ()
6820 {
6821
6822   ;
6823   return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828   (eval $ac_link) 2>conftest.er1
6829   ac_status=$?
6830   grep -v '^ *+' conftest.er1 >conftest.err
6831   rm -f conftest.er1
6832   cat conftest.err >&5
6833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834   (exit $ac_status); } &&
6835          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837   (eval $ac_try) 2>&5
6838   ac_status=$?
6839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); }; } &&
6841          { ac_try='test -s conftest$ac_exeext'
6842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843   (eval $ac_try) 2>&5
6844   ac_status=$?
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); }; }; then
6847   ac_R_nospace=yes
6848 else
6849   echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852 ac_R_nospace=no
6853 fi
6854 rm -f conftest.err conftest.$ac_objext \
6855       conftest$ac_exeext conftest.$ac_ext
6856       if test $ac_R_nospace = yes; then
6857         echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6
6859         X_LIBS="$X_LIBS -R$x_libraries"
6860       else
6861         LIBS="$ac_xsave_LIBS -R $x_libraries"
6862         if test x$gcc_no_link = xyes; then
6863   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6865    { (exit 1); exit 1; }; }
6866 fi
6867 cat >conftest.$ac_ext <<_ACEOF
6868 /* confdefs.h.  */
6869 _ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h.  */
6873
6874 int
6875 main ()
6876 {
6877
6878   ;
6879   return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884   (eval $ac_link) 2>conftest.er1
6885   ac_status=$?
6886   grep -v '^ *+' conftest.er1 >conftest.err
6887   rm -f conftest.er1
6888   cat conftest.err >&5
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); } &&
6891          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893   (eval $ac_try) 2>&5
6894   ac_status=$?
6895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896   (exit $ac_status); }; } &&
6897          { ac_try='test -s conftest$ac_exeext'
6898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899   (eval $ac_try) 2>&5
6900   ac_status=$?
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); }; }; then
6903   ac_R_space=yes
6904 else
6905   echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6907
6908 ac_R_space=no
6909 fi
6910 rm -f conftest.err conftest.$ac_objext \
6911       conftest$ac_exeext conftest.$ac_ext
6912         if test $ac_R_space = yes; then
6913           echo "$as_me:$LINENO: result: yes" >&5
6914 echo "${ECHO_T}yes" >&6
6915           X_LIBS="$X_LIBS -R $x_libraries"
6916         else
6917           echo "$as_me:$LINENO: result: neither works" >&5
6918 echo "${ECHO_T}neither works" >&6
6919         fi
6920       fi
6921       LIBS=$ac_xsave_LIBS
6922     esac
6923   fi
6924
6925   # Check for system-dependent libraries X programs must link with.
6926   # Do this before checking for the system-independent R6 libraries
6927   # (-lICE), since we may need -lsocket or whatever for X linking.
6928
6929   if test "$ISC" = yes; then
6930     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6931   else
6932     # Martyn Johnson says this is needed for Ultrix, if the X
6933     # libraries were built with DECnet support.  And Karl Berry says
6934     # the Alpha needs dnet_stub (dnet does not exist).
6935     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6936     if test x$gcc_no_link = xyes; then
6937   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6939    { (exit 1); exit 1; }; }
6940 fi
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947
6948 /* Override any gcc2 internal prototype to avoid an error.  */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 /* We use char because int might match the return type of a gcc2
6953    builtin and then its argument prototype would still apply.  */
6954 char XOpenDisplay ();
6955 int
6956 main ()
6957 {
6958 XOpenDisplay ();
6959   ;
6960   return 0;
6961 }
6962 _ACEOF
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965   (eval $ac_link) 2>conftest.er1
6966   ac_status=$?
6967   grep -v '^ *+' conftest.er1 >conftest.err
6968   rm -f conftest.er1
6969   cat conftest.err >&5
6970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971   (exit $ac_status); } &&
6972          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974   (eval $ac_try) 2>&5
6975   ac_status=$?
6976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977   (exit $ac_status); }; } &&
6978          { ac_try='test -s conftest$ac_exeext'
6979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980   (eval $ac_try) 2>&5
6981   ac_status=$?
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); }; }; then
6984   :
6985 else
6986   echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6988
6989 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6990 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6991 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   ac_check_lib_save_LIBS=$LIBS
6995 LIBS="-ldnet  $LIBS"
6996 if test x$gcc_no_link = xyes; then
6997   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6999    { (exit 1); exit 1; }; }
7000 fi
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007
7008 /* Override any gcc2 internal prototype to avoid an error.  */
7009 #ifdef __cplusplus
7010 extern "C"
7011 #endif
7012 /* We use char because int might match the return type of a gcc2
7013    builtin and then its argument prototype would still apply.  */
7014 char dnet_ntoa ();
7015 int
7016 main ()
7017 {
7018 dnet_ntoa ();
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 rm -f conftest.$ac_objext conftest$ac_exeext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025   (eval $ac_link) 2>conftest.er1
7026   ac_status=$?
7027   grep -v '^ *+' conftest.er1 >conftest.err
7028   rm -f conftest.er1
7029   cat conftest.err >&5
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); } &&
7032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034   (eval $ac_try) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); }; } &&
7038          { ac_try='test -s conftest$ac_exeext'
7039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040   (eval $ac_try) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); }; }; then
7044   ac_cv_lib_dnet_dnet_ntoa=yes
7045 else
7046   echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 ac_cv_lib_dnet_dnet_ntoa=no
7050 fi
7051 rm -f conftest.err conftest.$ac_objext \
7052       conftest$ac_exeext conftest.$ac_ext
7053 LIBS=$ac_check_lib_save_LIBS
7054 fi
7055 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7058   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7059 fi
7060
7061     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7062       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7065   echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067   ac_check_lib_save_LIBS=$LIBS
7068 LIBS="-ldnet_stub  $LIBS"
7069 if test x$gcc_no_link = xyes; then
7070   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7072    { (exit 1); exit 1; }; }
7073 fi
7074 cat >conftest.$ac_ext <<_ACEOF
7075 /* confdefs.h.  */
7076 _ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h.  */
7080
7081 /* Override any gcc2 internal prototype to avoid an error.  */
7082 #ifdef __cplusplus
7083 extern "C"
7084 #endif
7085 /* We use char because int might match the return type of a gcc2
7086    builtin and then its argument prototype would still apply.  */
7087 char dnet_ntoa ();
7088 int
7089 main ()
7090 {
7091 dnet_ntoa ();
7092   ;
7093   return 0;
7094 }
7095 _ACEOF
7096 rm -f conftest.$ac_objext conftest$ac_exeext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7098   (eval $ac_link) 2>conftest.er1
7099   ac_status=$?
7100   grep -v '^ *+' conftest.er1 >conftest.err
7101   rm -f conftest.er1
7102   cat conftest.err >&5
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); } &&
7105          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7107   (eval $ac_try) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); }; } &&
7111          { ac_try='test -s conftest$ac_exeext'
7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113   (eval $ac_try) 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); }; }; then
7117   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122 ac_cv_lib_dnet_stub_dnet_ntoa=no
7123 fi
7124 rm -f conftest.err conftest.$ac_objext \
7125       conftest$ac_exeext conftest.$ac_ext
7126 LIBS=$ac_check_lib_save_LIBS
7127 fi
7128 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7129 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7130 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7131   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7132 fi
7133
7134     fi
7135 fi
7136 rm -f conftest.err conftest.$ac_objext \
7137       conftest$ac_exeext conftest.$ac_ext
7138     LIBS="$ac_xsave_LIBS"
7139
7140     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7141     # to get the SysV transport functions.
7142     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7143     # needs -lnsl.
7144     # The nsl library prevents programs from opening the X display
7145     # on Irix 5.2, according to T.E. Dickey.
7146     # The functions gethostbyname, getservbyname, and inet_addr are
7147     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7148     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7149 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7150 if test "${ac_cv_func_gethostbyname+set}" = set; then
7151   echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153   if test x$gcc_no_link = xyes; then
7154   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7156    { (exit 1); exit 1; }; }
7157 fi
7158 cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7166 #define gethostbyname innocuous_gethostbyname
7167
7168 /* System header to define __stub macros and hopefully few prototypes,
7169     which can conflict with char gethostbyname (); below.
7170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7171     <limits.h> exists even on freestanding compilers.  */
7172
7173 #ifdef __STDC__
7174 # include <limits.h>
7175 #else
7176 # include <assert.h>
7177 #endif
7178
7179 #undef gethostbyname
7180
7181 /* Override any gcc2 internal prototype to avoid an error.  */
7182 #ifdef __cplusplus
7183 extern "C"
7184 {
7185 #endif
7186 /* We use char because int might match the return type of a gcc2
7187    builtin and then its argument prototype would still apply.  */
7188 char gethostbyname ();
7189 /* The GNU C library defines this for functions which it implements
7190     to always fail with ENOSYS.  Some functions are actually named
7191     something starting with __ and the normal name is an alias.  */
7192 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7193 choke me
7194 #else
7195 char (*f) () = gethostbyname;
7196 #endif
7197 #ifdef __cplusplus
7198 }
7199 #endif
7200
7201 int
7202 main ()
7203 {
7204 return f != gethostbyname;
7205   ;
7206   return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211   (eval $ac_link) 2>conftest.er1
7212   ac_status=$?
7213   grep -v '^ *+' conftest.er1 >conftest.err
7214   rm -f conftest.er1
7215   cat conftest.err >&5
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); } &&
7218          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7220   (eval $ac_try) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); }; } &&
7224          { ac_try='test -s conftest$ac_exeext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   ac_cv_func_gethostbyname=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ac_cv_func_gethostbyname=no
7236 fi
7237 rm -f conftest.err conftest.$ac_objext \
7238       conftest$ac_exeext conftest.$ac_ext
7239 fi
7240 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7241 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7242
7243     if test $ac_cv_func_gethostbyname = no; then
7244       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7245 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7246 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   ac_check_lib_save_LIBS=$LIBS
7250 LIBS="-lnsl  $LIBS"
7251 if test x$gcc_no_link = xyes; then
7252   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7254    { (exit 1); exit 1; }; }
7255 fi
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h.  */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h.  */
7262
7263 /* Override any gcc2 internal prototype to avoid an error.  */
7264 #ifdef __cplusplus
7265 extern "C"
7266 #endif
7267 /* We use char because int might match the return type of a gcc2
7268    builtin and then its argument prototype would still apply.  */
7269 char gethostbyname ();
7270 int
7271 main ()
7272 {
7273 gethostbyname ();
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280   (eval $ac_link) 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } &&
7287          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7289   (eval $ac_try) 2>&5
7290   ac_status=$?
7291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292   (exit $ac_status); }; } &&
7293          { ac_try='test -s conftest$ac_exeext'
7294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295   (eval $ac_try) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; }; then
7299   ac_cv_lib_nsl_gethostbyname=yes
7300 else
7301   echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7303
7304 ac_cv_lib_nsl_gethostbyname=no
7305 fi
7306 rm -f conftest.err conftest.$ac_objext \
7307       conftest$ac_exeext conftest.$ac_ext
7308 LIBS=$ac_check_lib_save_LIBS
7309 fi
7310 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7311 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7312 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7313   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7314 fi
7315
7316       if test $ac_cv_lib_nsl_gethostbyname = no; then
7317         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7318 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7319 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322   ac_check_lib_save_LIBS=$LIBS
7323 LIBS="-lbsd  $LIBS"
7324 if test x$gcc_no_link = xyes; then
7325   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7327    { (exit 1); exit 1; }; }
7328 fi
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h.  */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h.  */
7335
7336 /* Override any gcc2 internal prototype to avoid an error.  */
7337 #ifdef __cplusplus
7338 extern "C"
7339 #endif
7340 /* We use char because int might match the return type of a gcc2
7341    builtin and then its argument prototype would still apply.  */
7342 char gethostbyname ();
7343 int
7344 main ()
7345 {
7346 gethostbyname ();
7347   ;
7348   return 0;
7349 }
7350 _ACEOF
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353   (eval $ac_link) 2>conftest.er1
7354   ac_status=$?
7355   grep -v '^ *+' conftest.er1 >conftest.err
7356   rm -f conftest.er1
7357   cat conftest.err >&5
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); } &&
7360          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362   (eval $ac_try) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); }; } &&
7366          { ac_try='test -s conftest$ac_exeext'
7367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368   (eval $ac_try) 2>&5
7369   ac_status=$?
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; }; then
7372   ac_cv_lib_bsd_gethostbyname=yes
7373 else
7374   echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7376
7377 ac_cv_lib_bsd_gethostbyname=no
7378 fi
7379 rm -f conftest.err conftest.$ac_objext \
7380       conftest$ac_exeext conftest.$ac_ext
7381 LIBS=$ac_check_lib_save_LIBS
7382 fi
7383 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7384 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7385 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7386   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7387 fi
7388
7389       fi
7390     fi
7391
7392     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7393     # socket/setsockopt and other routines are undefined under SCO ODT
7394     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7395     # on later versions), says Simon Leinen: it contains gethostby*
7396     # variants that don't use the name server (or something).  -lsocket
7397     # must be given before -lnsl if both are needed.  We assume that
7398     # if connect needs -lnsl, so does gethostbyname.
7399     echo "$as_me:$LINENO: checking for connect" >&5
7400 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7401 if test "${ac_cv_func_connect+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   if test x$gcc_no_link = xyes; then
7405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7407    { (exit 1); exit 1; }; }
7408 fi
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h.  */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h.  */
7415 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7417 #define connect innocuous_connect
7418
7419 /* System header to define __stub macros and hopefully few prototypes,
7420     which can conflict with char connect (); below.
7421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422     <limits.h> exists even on freestanding compilers.  */
7423
7424 #ifdef __STDC__
7425 # include <limits.h>
7426 #else
7427 # include <assert.h>
7428 #endif
7429
7430 #undef connect
7431
7432 /* Override any gcc2 internal prototype to avoid an error.  */
7433 #ifdef __cplusplus
7434 extern "C"
7435 {
7436 #endif
7437 /* We use char because int might match the return type of a gcc2
7438    builtin and then its argument prototype would still apply.  */
7439 char connect ();
7440 /* The GNU C library defines this for functions which it implements
7441     to always fail with ENOSYS.  Some functions are actually named
7442     something starting with __ and the normal name is an alias.  */
7443 #if defined (__stub_connect) || defined (__stub___connect)
7444 choke me
7445 #else
7446 char (*f) () = connect;
7447 #endif
7448 #ifdef __cplusplus
7449 }
7450 #endif
7451
7452 int
7453 main ()
7454 {
7455 return f != connect;
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462   (eval $ac_link) 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } &&
7469          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7471   (eval $ac_try) 2>&5
7472   ac_status=$?
7473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); }; } &&
7475          { ac_try='test -s conftest$ac_exeext'
7476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477   (eval $ac_try) 2>&5
7478   ac_status=$?
7479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480   (exit $ac_status); }; }; then
7481   ac_cv_func_connect=yes
7482 else
7483   echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486 ac_cv_func_connect=no
7487 fi
7488 rm -f conftest.err conftest.$ac_objext \
7489       conftest$ac_exeext conftest.$ac_ext
7490 fi
7491 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7492 echo "${ECHO_T}$ac_cv_func_connect" >&6
7493
7494     if test $ac_cv_func_connect = no; then
7495       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7496 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7497 if test "${ac_cv_lib_socket_connect+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   ac_check_lib_save_LIBS=$LIBS
7501 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7502 if test x$gcc_no_link = xyes; then
7503   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7505    { (exit 1); exit 1; }; }
7506 fi
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h.  */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h.  */
7513
7514 /* Override any gcc2 internal prototype to avoid an error.  */
7515 #ifdef __cplusplus
7516 extern "C"
7517 #endif
7518 /* We use char because int might match the return type of a gcc2
7519    builtin and then its argument prototype would still apply.  */
7520 char connect ();
7521 int
7522 main ()
7523 {
7524 connect ();
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531   (eval $ac_link) 2>conftest.er1
7532   ac_status=$?
7533   grep -v '^ *+' conftest.er1 >conftest.err
7534   rm -f conftest.er1
7535   cat conftest.err >&5
7536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); } &&
7538          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7540   (eval $ac_try) 2>&5
7541   ac_status=$?
7542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543   (exit $ac_status); }; } &&
7544          { ac_try='test -s conftest$ac_exeext'
7545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546   (eval $ac_try) 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); }; }; then
7550   ac_cv_lib_socket_connect=yes
7551 else
7552   echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7554
7555 ac_cv_lib_socket_connect=no
7556 fi
7557 rm -f conftest.err conftest.$ac_objext \
7558       conftest$ac_exeext conftest.$ac_ext
7559 LIBS=$ac_check_lib_save_LIBS
7560 fi
7561 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7562 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7563 if test $ac_cv_lib_socket_connect = yes; then
7564   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7565 fi
7566
7567     fi
7568
7569     # Guillermo Gomez says -lposix is necessary on A/UX.
7570     echo "$as_me:$LINENO: checking for remove" >&5
7571 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7572 if test "${ac_cv_func_remove+set}" = set; then
7573   echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575   if test x$gcc_no_link = xyes; then
7576   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7578    { (exit 1); exit 1; }; }
7579 fi
7580 cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h.  */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h.  */
7586 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7588 #define remove innocuous_remove
7589
7590 /* System header to define __stub macros and hopefully few prototypes,
7591     which can conflict with char remove (); below.
7592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7593     <limits.h> exists even on freestanding compilers.  */
7594
7595 #ifdef __STDC__
7596 # include <limits.h>
7597 #else
7598 # include <assert.h>
7599 #endif
7600
7601 #undef remove
7602
7603 /* Override any gcc2 internal prototype to avoid an error.  */
7604 #ifdef __cplusplus
7605 extern "C"
7606 {
7607 #endif
7608 /* We use char because int might match the return type of a gcc2
7609    builtin and then its argument prototype would still apply.  */
7610 char remove ();
7611 /* The GNU C library defines this for functions which it implements
7612     to always fail with ENOSYS.  Some functions are actually named
7613     something starting with __ and the normal name is an alias.  */
7614 #if defined (__stub_remove) || defined (__stub___remove)
7615 choke me
7616 #else
7617 char (*f) () = remove;
7618 #endif
7619 #ifdef __cplusplus
7620 }
7621 #endif
7622
7623 int
7624 main ()
7625 {
7626 return f != remove;
7627   ;
7628   return 0;
7629 }
7630 _ACEOF
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633   (eval $ac_link) 2>conftest.er1
7634   ac_status=$?
7635   grep -v '^ *+' conftest.er1 >conftest.err
7636   rm -f conftest.er1
7637   cat conftest.err >&5
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); } &&
7640          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642   (eval $ac_try) 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; } &&
7646          { ac_try='test -s conftest$ac_exeext'
7647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7648   (eval $ac_try) 2>&5
7649   ac_status=$?
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); }; }; then
7652   ac_cv_func_remove=yes
7653 else
7654   echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657 ac_cv_func_remove=no
7658 fi
7659 rm -f conftest.err conftest.$ac_objext \
7660       conftest$ac_exeext conftest.$ac_ext
7661 fi
7662 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7663 echo "${ECHO_T}$ac_cv_func_remove" >&6
7664
7665     if test $ac_cv_func_remove = no; then
7666       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7667 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7668 if test "${ac_cv_lib_posix_remove+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   ac_check_lib_save_LIBS=$LIBS
7672 LIBS="-lposix  $LIBS"
7673 if test x$gcc_no_link = xyes; then
7674   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7675 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7676    { (exit 1); exit 1; }; }
7677 fi
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h.  */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h.  */
7684
7685 /* Override any gcc2 internal prototype to avoid an error.  */
7686 #ifdef __cplusplus
7687 extern "C"
7688 #endif
7689 /* We use char because int might match the return type of a gcc2
7690    builtin and then its argument prototype would still apply.  */
7691 char remove ();
7692 int
7693 main ()
7694 {
7695 remove ();
7696   ;
7697   return 0;
7698 }
7699 _ACEOF
7700 rm -f conftest.$ac_objext conftest$ac_exeext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702   (eval $ac_link) 2>conftest.er1
7703   ac_status=$?
7704   grep -v '^ *+' conftest.er1 >conftest.err
7705   rm -f conftest.er1
7706   cat conftest.err >&5
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); } &&
7709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711   (eval $ac_try) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; } &&
7715          { ac_try='test -s conftest$ac_exeext'
7716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7717   (eval $ac_try) 2>&5
7718   ac_status=$?
7719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); }; }; then
7721   ac_cv_lib_posix_remove=yes
7722 else
7723   echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7725
7726 ac_cv_lib_posix_remove=no
7727 fi
7728 rm -f conftest.err conftest.$ac_objext \
7729       conftest$ac_exeext conftest.$ac_ext
7730 LIBS=$ac_check_lib_save_LIBS
7731 fi
7732 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7733 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7734 if test $ac_cv_lib_posix_remove = yes; then
7735   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7736 fi
7737
7738     fi
7739
7740     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7741     echo "$as_me:$LINENO: checking for shmat" >&5
7742 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7743 if test "${ac_cv_func_shmat+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   if test x$gcc_no_link = xyes; then
7747   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7749    { (exit 1); exit 1; }; }
7750 fi
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7759 #define shmat innocuous_shmat
7760
7761 /* System header to define __stub macros and hopefully few prototypes,
7762     which can conflict with char shmat (); below.
7763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764     <limits.h> exists even on freestanding compilers.  */
7765
7766 #ifdef __STDC__
7767 # include <limits.h>
7768 #else
7769 # include <assert.h>
7770 #endif
7771
7772 #undef shmat
7773
7774 /* Override any gcc2 internal prototype to avoid an error.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 {
7778 #endif
7779 /* We use char because int might match the return type of a gcc2
7780    builtin and then its argument prototype would still apply.  */
7781 char shmat ();
7782 /* The GNU C library defines this for functions which it implements
7783     to always fail with ENOSYS.  Some functions are actually named
7784     something starting with __ and the normal name is an alias.  */
7785 #if defined (__stub_shmat) || defined (__stub___shmat)
7786 choke me
7787 #else
7788 char (*f) () = shmat;
7789 #endif
7790 #ifdef __cplusplus
7791 }
7792 #endif
7793
7794 int
7795 main ()
7796 {
7797 return f != shmat;
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804   (eval $ac_link) 2>conftest.er1
7805   ac_status=$?
7806   grep -v '^ *+' conftest.er1 >conftest.err
7807   rm -f conftest.er1
7808   cat conftest.err >&5
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); } &&
7811          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7813   (eval $ac_try) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); }; } &&
7817          { ac_try='test -s conftest$ac_exeext'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; }; then
7823   ac_cv_func_shmat=yes
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 ac_cv_func_shmat=no
7829 fi
7830 rm -f conftest.err conftest.$ac_objext \
7831       conftest$ac_exeext conftest.$ac_ext
7832 fi
7833 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7834 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7835
7836     if test $ac_cv_func_shmat = no; then
7837       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7838 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7839 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7840   echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842   ac_check_lib_save_LIBS=$LIBS
7843 LIBS="-lipc  $LIBS"
7844 if test x$gcc_no_link = xyes; then
7845   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7847    { (exit 1); exit 1; }; }
7848 fi
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h.  */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h.  */
7855
7856 /* Override any gcc2 internal prototype to avoid an error.  */
7857 #ifdef __cplusplus
7858 extern "C"
7859 #endif
7860 /* We use char because int might match the return type of a gcc2
7861    builtin and then its argument prototype would still apply.  */
7862 char shmat ();
7863 int
7864 main ()
7865 {
7866 shmat ();
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873   (eval $ac_link) 2>conftest.er1
7874   ac_status=$?
7875   grep -v '^ *+' conftest.er1 >conftest.err
7876   rm -f conftest.er1
7877   cat conftest.err >&5
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); } &&
7880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; } &&
7886          { ac_try='test -s conftest$ac_exeext'
7887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888   (eval $ac_try) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   ac_cv_lib_ipc_shmat=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7896
7897 ac_cv_lib_ipc_shmat=no
7898 fi
7899 rm -f conftest.err conftest.$ac_objext \
7900       conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7904 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7905 if test $ac_cv_lib_ipc_shmat = yes; then
7906   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7907 fi
7908
7909     fi
7910   fi
7911
7912   # Check for libraries that X11R6 Xt/Xaw programs need.
7913   ac_save_LDFLAGS=$LDFLAGS
7914   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7915   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7916   # check for ICE first), but we must link in the order -lSM -lICE or
7917   # we get undefined symbols.  So assume we have SM if we have ICE.
7918   # These have to be linked with before -lX11, unlike the other
7919   # libraries we check for below, so use a different variable.
7920   # John Interrante, Karl Berry
7921   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7922 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7923 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7924   echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926   ac_check_lib_save_LIBS=$LIBS
7927 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7928 if test x$gcc_no_link = xyes; then
7929   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7931    { (exit 1); exit 1; }; }
7932 fi
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h.  */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h.  */
7939
7940 /* Override any gcc2 internal prototype to avoid an error.  */
7941 #ifdef __cplusplus
7942 extern "C"
7943 #endif
7944 /* We use char because int might match the return type of a gcc2
7945    builtin and then its argument prototype would still apply.  */
7946 char IceConnectionNumber ();
7947 int
7948 main ()
7949 {
7950 IceConnectionNumber ();
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957   (eval $ac_link) 2>conftest.er1
7958   ac_status=$?
7959   grep -v '^ *+' conftest.er1 >conftest.err
7960   rm -f conftest.er1
7961   cat conftest.err >&5
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); } &&
7964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966   (eval $ac_try) 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; } &&
7970          { ac_try='test -s conftest$ac_exeext'
7971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972   (eval $ac_try) 2>&5
7973   ac_status=$?
7974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975   (exit $ac_status); }; }; then
7976   ac_cv_lib_ICE_IceConnectionNumber=yes
7977 else
7978   echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7980
7981 ac_cv_lib_ICE_IceConnectionNumber=no
7982 fi
7983 rm -f conftest.err conftest.$ac_objext \
7984       conftest$ac_exeext conftest.$ac_ext
7985 LIBS=$ac_check_lib_save_LIBS
7986 fi
7987 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7988 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7989 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7990   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7991 fi
7992
7993   LDFLAGS=$ac_save_LDFLAGS
7994
7995 fi
7996
7997
7998 # Determine which AWT peer libraries to build
7999 # Check whether --enable-java-awt or --disable-java-awt was given.
8000 if test "${enable_java_awt+set}" = set; then
8001   enableval="$enable_java_awt"
8002
8003 fi;
8004
8005 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
8006 use_xlib_awt=""
8007 use_gtk_awt=""
8008 # The default toolkit to use is the first one specified.
8009 TOOLKIT=
8010
8011
8012 for peer in $peerlibs ; do
8013   case $peer in
8014     xlib)
8015       if test "$no_x" = yes; then
8016         echo "*** xlib peers requested but no X library available" 1>&2
8017         exit 1
8018       else
8019         use_xlib_awt="yes"
8020         if test -z "$TOOLKIT"; then
8021            TOOLKIT=gnu.awt.xlib.XToolkit
8022         fi
8023       fi
8024       ;;
8025     gtk)
8026       if test "$no_x" = yes; then
8027          echo "*** xlib peers requested but no X library available" 1>&2
8028          exit 1
8029       else
8030          use_gtk_awt=yes
8031          if test -z "$TOOLKIT"; then
8032             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8033          fi
8034          test -d jniinclude || mkdir jniinclude
8035       fi
8036       ;;
8037     no)
8038       use_xlib_awt=
8039       use_gtk_awt=
8040       break
8041       ;;
8042     *)
8043       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8044       exit 1
8045   esac
8046 done
8047
8048
8049
8050 if test "$use_xlib_awt" = yes; then
8051   XLIB_AWT_TRUE=
8052   XLIB_AWT_FALSE='#'
8053 else
8054   XLIB_AWT_TRUE='#'
8055   XLIB_AWT_FALSE=
8056 fi
8057
8058
8059
8060 if test "$use_gtk_awt" = yes; then
8061   GTK_AWT_TRUE=
8062   GTK_AWT_FALSE='#'
8063 else
8064   GTK_AWT_TRUE='#'
8065   GTK_AWT_FALSE=
8066 fi
8067
8068
8069 # determine whether to enable the cairo GTK Graphics2D backend
8070 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8071 if test "${enable_gtk_cairo+set}" = set; then
8072   enableval="$enable_gtk_cairo"
8073
8074 fi;
8075
8076
8077 if test "x${enable_gtk_cairo}" = xyes; then
8078   GTK_CAIRO_TRUE=
8079   GTK_CAIRO_FALSE='#'
8080 else
8081   GTK_CAIRO_TRUE='#'
8082   GTK_CAIRO_FALSE=
8083 fi
8084
8085 if test "x${enable_gtk_cairo}" = xyes
8086 then
8087
8088   succeeded=no
8089
8090   if test -z "$PKG_CONFIG"; then
8091     # Extract the first word of "pkg-config", so it can be a program name with args.
8092 set dummy pkg-config; ac_word=$2
8093 echo "$as_me:$LINENO: checking for $ac_word" >&5
8094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 else
8098   case $PKG_CONFIG in
8099   [\\/]* | ?:[\\/]*)
8100   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8101   ;;
8102   *)
8103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in $PATH
8105 do
8106   IFS=$as_save_IFS
8107   test -z "$as_dir" && as_dir=.
8108   for ac_exec_ext in '' $ac_executable_extensions; do
8109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8112     break 2
8113   fi
8114 done
8115 done
8116
8117   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8118   ;;
8119 esac
8120 fi
8121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8122
8123 if test -n "$PKG_CONFIG"; then
8124   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8125 echo "${ECHO_T}$PKG_CONFIG" >&6
8126 else
8127   echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8129 fi
8130
8131   fi
8132
8133   if test "$PKG_CONFIG" = "no" ; then
8134      echo "*** The pkg-config script could not be found. Make sure it is"
8135      echo "*** in your path, or set the PKG_CONFIG environment variable"
8136      echo "*** to the full path to pkg-config."
8137      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8138   else
8139      PKG_CONFIG_MIN_VERSION=0.9.0
8140      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8141         echo "$as_me:$LINENO: checking for cairo" >&5
8142 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8143
8144         if $PKG_CONFIG --exists "cairo" ; then
8145             echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8147             succeeded=yes
8148
8149             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8150 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8151             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8152             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8153 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8154
8155             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8156 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8157             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8158             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8159 echo "${ECHO_T}$CAIRO_LIBS" >&6
8160         else
8161             CAIRO_CFLAGS=""
8162             CAIRO_LIBS=""
8163             ## If we have a custom action on failure, don't print errors, but
8164             ## do set a variable so people can do so.
8165             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8166             echo $CAIRO_PKG_ERRORS
8167         fi
8168
8169
8170
8171      else
8172         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8173         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8174      fi
8175   fi
8176
8177   if test $succeeded = yes; then
8178      :
8179   else
8180      { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8181 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8182    { (exit 1); exit 1; }; }
8183   fi
8184
8185
8186   succeeded=no
8187
8188   if test -z "$PKG_CONFIG"; then
8189     # Extract the first word of "pkg-config", so it can be a program name with args.
8190 set dummy pkg-config; ac_word=$2
8191 echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8193 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   case $PKG_CONFIG in
8197   [\\/]* | ?:[\\/]*)
8198   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8199   ;;
8200   *)
8201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204   IFS=$as_save_IFS
8205   test -z "$as_dir" && as_dir=.
8206   for ac_exec_ext in '' $ac_executable_extensions; do
8207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8210     break 2
8211   fi
8212 done
8213 done
8214
8215   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8216   ;;
8217 esac
8218 fi
8219 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8220
8221 if test -n "$PKG_CONFIG"; then
8222   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8223 echo "${ECHO_T}$PKG_CONFIG" >&6
8224 else
8225   echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8227 fi
8228
8229   fi
8230
8231   if test "$PKG_CONFIG" = "no" ; then
8232      echo "*** The pkg-config script could not be found. Make sure it is"
8233      echo "*** in your path, or set the PKG_CONFIG environment variable"
8234      echo "*** to the full path to pkg-config."
8235      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8236   else
8237      PKG_CONFIG_MIN_VERSION=0.9.0
8238      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8239         echo "$as_me:$LINENO: checking for pangoft2" >&5
8240 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8241
8242         if $PKG_CONFIG --exists "pangoft2" ; then
8243             echo "$as_me:$LINENO: result: yes" >&5
8244 echo "${ECHO_T}yes" >&6
8245             succeeded=yes
8246
8247             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8248 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8249             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8250             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8251 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8252
8253             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8254 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8255             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8256             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8257 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8258         else
8259             PANGOFT2_CFLAGS=""
8260             PANGOFT2_LIBS=""
8261             ## If we have a custom action on failure, don't print errors, but
8262             ## do set a variable so people can do so.
8263             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8264             echo $PANGOFT2_PKG_ERRORS
8265         fi
8266
8267
8268
8269      else
8270         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8271         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8272      fi
8273   fi
8274
8275   if test $succeeded = yes; then
8276      :
8277   else
8278      { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
8279 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
8280    { (exit 1); exit 1; }; }
8281   fi
8282
8283 fi
8284
8285
8286
8287
8288
8289 # FIXME: this should be _libs on some hosts.
8290 libsubdir=.libs
8291
8292 # Allow the GC to be disabled.  Can be useful when debugging.
8293 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8294 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8295 # Check whether --enable-java-gc or --disable-java-gc was given.
8296 if test "${enable_java_gc+set}" = set; then
8297   enableval="$enable_java_gc"
8298   GC=$enableval
8299 else
8300   GC=boehm
8301 fi;
8302 GCLIBS=
8303 GCINCS=
8304 GCDEPS=
8305 GCSPEC=
8306 JC1GCSPEC=
8307 GCTESTSPEC=
8308 case "$GC" in
8309  boehm)
8310     echo "$as_me:$LINENO: result: boehm" >&5
8311 echo "${ECHO_T}boehm" >&6
8312     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8313     JC1GCSPEC='-fuse-boehm-gc'
8314     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8315     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8316     GCOBJS=boehm.lo
8317     GCHDR=boehm-gc.h
8318     # The POSIX thread support needs to know this.
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_BOEHM_GC 1
8322 _ACEOF
8323
8324     ;;
8325  no)
8326     echo "$as_me:$LINENO: result: none" >&5
8327 echo "${ECHO_T}none" >&6
8328     GCHDR=no-gc.h
8329     ;;
8330  *)
8331     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8332 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8333    { (exit 1); exit 1; }; }
8334     ;;
8335 esac
8336
8337
8338
8339
8340
8341
8342           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8343
8344
8345
8346 if test "$GC" = boehm; then
8347   USING_BOEHMGC_TRUE=
8348   USING_BOEHMGC_FALSE='#'
8349 else
8350   USING_BOEHMGC_TRUE='#'
8351   USING_BOEHMGC_FALSE=
8352 fi
8353
8354
8355
8356 if test "$GC" = no; then
8357   USING_NOGC_TRUE=
8358   USING_NOGC_FALSE='#'
8359 else
8360   USING_NOGC_TRUE='#'
8361   USING_NOGC_FALSE=
8362 fi
8363
8364
8365
8366 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8367 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8368 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8369 echo "$as_me:$LINENO: result: $THREADS" >&5
8370 echo "${ECHO_T}$THREADS" >&6
8371
8372 case "$THREADS" in
8373  no | none | single)
8374     THREADS=none
8375     ;;
8376  posix | posix95 | pthreads)
8377     THREADS=posix
8378     case "$host" in
8379      *-*-linux*)
8380
8381 cat >>confdefs.h <<\_ACEOF
8382 #define LINUX_THREADS 1
8383 _ACEOF
8384
8385         ;;
8386     esac
8387     ;;
8388  win32)
8389     ;;
8390  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8391     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8392 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8393    { (exit 1); exit 1; }; }
8394     ;;
8395  *)
8396     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8397 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8398    { (exit 1); exit 1; }; }
8399     ;;
8400 esac
8401
8402 THREADCXXFLAGS=
8403 THREADLDFLAGS=
8404 THREADLIBS=
8405 THREADINCS=
8406 THREADDEPS=
8407 THREADH=
8408 THREADSPEC=
8409 case "$THREADS" in
8410  posix)
8411     case "$host" in
8412      *-*-cygwin*)
8413         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8414         ;;
8415      *-*-freebsd[1234]*)
8416         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8417         # merely adds pthread_* functions) but it does have a -pthread switch
8418         # which is required at link-time to select -lc_r *instead* of -lc.
8419         THREADLDFLAGS=-pthread
8420         # Don't set THREADSPEC here as might be expected since -pthread is
8421         # not processed when found within a spec file, it must come from
8422         # the command line.  For now, the user must provide the -pthread
8423         # switch to link code compiled with gcj.  In future, consider adding
8424         # support for weak references to pthread_* functions ala gthr.h API.
8425         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8426         ;;
8427      *-*-freebsd*)
8428         # FreeBSD 5 implements a model much closer to other modern UNIX
8429         # which support threads.  However, it still does not support
8430         # -lpthread.
8431         THREADLDFLAGS=-pthread
8432         THREADSPEC=-lc_r
8433         ;;
8434      alpha*-dec-osf*)
8435         THREADCXXFLAGS=-pthread
8436         # boehm-gc needs some functions from librt, so link that too.
8437         THREADLIBS='-lpthread -lrt'
8438         THREADSPEC='-lpthread -lrt'
8439         ;;
8440      *)
8441         THREADLIBS=-lpthread
8442         THREADSPEC=-lpthread
8443         ;;
8444     esac
8445     THREADH=posix-threads.h
8446     # MIT pthreads doesn't seem to have the mutexattr functions.
8447     # But for now we don't check for it.  We just assume you aren't
8448     # using MIT pthreads.
8449
8450 cat >>confdefs.h <<\_ACEOF
8451 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8452 _ACEOF
8453
8454
8455     # If we're using the Boehm GC, then we happen to know that it
8456     # defines _REENTRANT, so we don't bother.  Eww.
8457     if test "$GC" != boehm; then
8458
8459 cat >>confdefs.h <<\_ACEOF
8460 #define _REENTRANT 1
8461 _ACEOF
8462
8463     fi
8464
8465 cat >>confdefs.h <<\_ACEOF
8466 #define _POSIX_PTHREAD_SEMANTICS 1
8467 _ACEOF
8468
8469     ;;
8470
8471  win32)
8472     THREADH=win32-threads.h
8473     ;;
8474
8475  none)
8476     THREADH=no-threads.h
8477     ;;
8478 esac
8479           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 if test "$THREADS" = posix; then
8490   USING_POSIX_THREADS_TRUE=
8491   USING_POSIX_THREADS_FALSE='#'
8492 else
8493   USING_POSIX_THREADS_TRUE='#'
8494   USING_POSIX_THREADS_FALSE=
8495 fi
8496
8497
8498
8499 if test "$THREADS" = win32; then
8500   USING_WIN32_THREADS_TRUE=
8501   USING_WIN32_THREADS_FALSE='#'
8502 else
8503   USING_WIN32_THREADS_TRUE='#'
8504   USING_WIN32_THREADS_FALSE=
8505 fi
8506
8507
8508
8509 if test "$THREADS" = none; then
8510   USING_NO_THREADS_TRUE=
8511   USING_NO_THREADS_FALSE='#'
8512 else
8513   USING_NO_THREADS_TRUE='#'
8514   USING_NO_THREADS_FALSE=
8515 fi
8516
8517
8518 if test -d sysdep; then true; else mkdir sysdep; fi
8519           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8520
8521           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8522
8523
8524 HASH_SYNC_SPEC=
8525 # Hash synchronization is only useful with posix threads right now.
8526 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8527    HASH_SYNC_SPEC=-fhash-synchronization
8528
8529 cat >>confdefs.h <<\_ACEOF
8530 #define JV_HASH_SYNCHRONIZATION 1
8531 _ACEOF
8532
8533 fi
8534
8535
8536
8537
8538 if test "$GCC" = yes; then
8539   USING_GCC_TRUE=
8540   USING_GCC_FALSE='#'
8541 else
8542   USING_GCC_TRUE='#'
8543   USING_GCC_FALSE=
8544 fi
8545
8546
8547 # We're in the tree with gcc, and need to include some of its headers.
8548 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8549
8550 if test "x${with_newlib}" = "xyes"; then
8551    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8552    # may not work correctly, because the compiler may not be able to
8553    # link executables.
8554
8555    # We assume newlib.  This lets us hard-code the functions we know
8556    # we'll have.
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_MEMMOVE 1
8560 _ACEOF
8561
8562
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_MEMCPY 1
8565 _ACEOF
8566
8567
8568 cat >>confdefs.h <<\_ACEOF
8569 #define HAVE_STRERROR 1
8570 _ACEOF
8571
8572
8573 cat >>confdefs.h <<\_ACEOF
8574 #define HAVE_TIME 1
8575 _ACEOF
8576
8577
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_GMTIME_R 1
8580 _ACEOF
8581
8582
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_LOCALTIME_R 1
8585 _ACEOF
8586
8587
8588 cat >>confdefs.h <<\_ACEOF
8589 #define HAVE_USLEEP_DECL 1
8590 _ACEOF
8591
8592    # This is only for POSIX threads.
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8596 _ACEOF
8597
8598    # We also assume we are using gcc, which provides alloca.
8599    cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_ALLOCA 1
8601 _ACEOF
8602
8603
8604    # Assume we do not have getuid and friends.
8605
8606 cat >>confdefs.h <<\_ACEOF
8607 #define NO_GETUID 1
8608 _ACEOF
8609
8610    PLATFORMNET=NoNet
8611 else
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8645                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8646                    access stat mkdir rename rmdir unlink realpath utime chmod \
8647                    nl_langinfo setlocale \
8648                    inet_pton uname inet_ntoa \
8649                    fork execvp pipe sigaction ftruncate
8650 do
8651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8652 echo "$as_me:$LINENO: checking for $ac_func" >&5
8653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_var+set}\" = set"; then
8655   echo $ECHO_N "(cached) $ECHO_C" >&6
8656 else
8657   if test x$gcc_no_link = xyes; then
8658   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8660    { (exit 1); exit 1; }; }
8661 fi
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8670 #define $ac_func innocuous_$ac_func
8671
8672 /* System header to define __stub macros and hopefully few prototypes,
8673     which can conflict with char $ac_func (); below.
8674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8675     <limits.h> exists even on freestanding compilers.  */
8676
8677 #ifdef __STDC__
8678 # include <limits.h>
8679 #else
8680 # include <assert.h>
8681 #endif
8682
8683 #undef $ac_func
8684
8685 /* Override any gcc2 internal prototype to avoid an error.  */
8686 #ifdef __cplusplus
8687 extern "C"
8688 {
8689 #endif
8690 /* We use char because int might match the return type of a gcc2
8691    builtin and then its argument prototype would still apply.  */
8692 char $ac_func ();
8693 /* The GNU C library defines this for functions which it implements
8694     to always fail with ENOSYS.  Some functions are actually named
8695     something starting with __ and the normal name is an alias.  */
8696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8697 choke me
8698 #else
8699 char (*f) () = $ac_func;
8700 #endif
8701 #ifdef __cplusplus
8702 }
8703 #endif
8704
8705 int
8706 main ()
8707 {
8708 return f != $ac_func;
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715   (eval $ac_link) 2>conftest.er1
8716   ac_status=$?
8717   grep -v '^ *+' conftest.er1 >conftest.err
8718   rm -f conftest.er1
8719   cat conftest.err >&5
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); } &&
8722          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724   (eval $ac_try) 2>&5
8725   ac_status=$?
8726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727   (exit $ac_status); }; } &&
8728          { ac_try='test -s conftest$ac_exeext'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; }; then
8734   eval "$as_ac_var=yes"
8735 else
8736   echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8738
8739 eval "$as_ac_var=no"
8740 fi
8741 rm -f conftest.err conftest.$ac_objext \
8742       conftest$ac_exeext conftest.$ac_ext
8743 fi
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747   cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8749 _ACEOF
8750
8751 fi
8752 done
8753
8754
8755
8756 for ac_func in inet_aton inet_addr
8757 do
8758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8759 echo "$as_me:$LINENO: checking for $ac_func" >&5
8760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8761 if eval "test \"\${$as_ac_var+set}\" = set"; then
8762   echo $ECHO_N "(cached) $ECHO_C" >&6
8763 else
8764   if test x$gcc_no_link = xyes; then
8765   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8767    { (exit 1); exit 1; }; }
8768 fi
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8777 #define $ac_func innocuous_$ac_func
8778
8779 /* System header to define __stub macros and hopefully few prototypes,
8780     which can conflict with char $ac_func (); below.
8781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8782     <limits.h> exists even on freestanding compilers.  */
8783
8784 #ifdef __STDC__
8785 # include <limits.h>
8786 #else
8787 # include <assert.h>
8788 #endif
8789
8790 #undef $ac_func
8791
8792 /* Override any gcc2 internal prototype to avoid an error.  */
8793 #ifdef __cplusplus
8794 extern "C"
8795 {
8796 #endif
8797 /* We use char because int might match the return type of a gcc2
8798    builtin and then its argument prototype would still apply.  */
8799 char $ac_func ();
8800 /* The GNU C library defines this for functions which it implements
8801     to always fail with ENOSYS.  Some functions are actually named
8802     something starting with __ and the normal name is an alias.  */
8803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8804 choke me
8805 #else
8806 char (*f) () = $ac_func;
8807 #endif
8808 #ifdef __cplusplus
8809 }
8810 #endif
8811
8812 int
8813 main ()
8814 {
8815 return f != $ac_func;
8816   ;
8817   return 0;
8818 }
8819 _ACEOF
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822   (eval $ac_link) 2>conftest.er1
8823   ac_status=$?
8824   grep -v '^ *+' conftest.er1 >conftest.err
8825   rm -f conftest.er1
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; } &&
8835          { ac_try='test -s conftest$ac_exeext'
8836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837   (eval $ac_try) 2>&5
8838   ac_status=$?
8839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840   (exit $ac_status); }; }; then
8841   eval "$as_ac_var=yes"
8842 else
8843   echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8845
8846 eval "$as_ac_var=no"
8847 fi
8848 rm -f conftest.err conftest.$ac_objext \
8849       conftest$ac_exeext conftest.$ac_ext
8850 fi
8851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8853 if test `eval echo '${'$as_ac_var'}'` = yes; then
8854   cat >>confdefs.h <<_ACEOF
8855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8856 _ACEOF
8857  break
8858 fi
8859 done
8860
8861    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8863 if test "${ac_cv_header_stdc+set}" = set; then
8864   echo $ECHO_N "(cached) $ECHO_C" >&6
8865 else
8866   cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872 #include <stdlib.h>
8873 #include <stdarg.h>
8874 #include <string.h>
8875 #include <float.h>
8876
8877 int
8878 main ()
8879 {
8880
8881   ;
8882   return 0;
8883 }
8884 _ACEOF
8885 rm -f conftest.$ac_objext
8886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8887   (eval $ac_compile) 2>conftest.er1
8888   ac_status=$?
8889   grep -v '^ *+' conftest.er1 >conftest.err
8890   rm -f conftest.er1
8891   cat conftest.err >&5
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); } &&
8894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; } &&
8900          { ac_try='test -s conftest.$ac_objext'
8901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902   (eval $ac_try) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; }; then
8906   ac_cv_header_stdc=yes
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 ac_cv_header_stdc=no
8912 fi
8913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8914
8915 if test $ac_cv_header_stdc = yes; then
8916   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8917   cat >conftest.$ac_ext <<_ACEOF
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923 #include <string.h>
8924
8925 _ACEOF
8926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8927   $EGREP "memchr" >/dev/null 2>&1; then
8928   :
8929 else
8930   ac_cv_header_stdc=no
8931 fi
8932 rm -f conftest*
8933
8934 fi
8935
8936 if test $ac_cv_header_stdc = yes; then
8937   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8938   cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944 #include <stdlib.h>
8945
8946 _ACEOF
8947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948   $EGREP "free" >/dev/null 2>&1; then
8949   :
8950 else
8951   ac_cv_header_stdc=no
8952 fi
8953 rm -f conftest*
8954
8955 fi
8956
8957 if test $ac_cv_header_stdc = yes; then
8958   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8959   if test "$cross_compiling" = yes; then
8960   :
8961 else
8962   cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h.  */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h.  */
8968 #include <ctype.h>
8969 #if ((' ' & 0x0FF) == 0x020)
8970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8972 #else
8973 # define ISLOWER(c) \
8974                    (('a' <= (c) && (c) <= 'i') \
8975                      || ('j' <= (c) && (c) <= 'r') \
8976                      || ('s' <= (c) && (c) <= 'z'))
8977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8978 #endif
8979
8980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8981 int
8982 main ()
8983 {
8984   int i;
8985   for (i = 0; i < 256; i++)
8986     if (XOR (islower (i), ISLOWER (i))
8987         || toupper (i) != TOUPPER (i))
8988       exit(2);
8989   exit (0);
8990 }
8991 _ACEOF
8992 rm -f conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994   (eval $ac_link) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   :
9004 else
9005   echo "$as_me: program exited with status $ac_status" >&5
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ( exit $ac_status )
9010 ac_cv_header_stdc=no
9011 fi
9012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9013 fi
9014 fi
9015 fi
9016 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9017 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9018 if test $ac_cv_header_stdc = yes; then
9019
9020 cat >>confdefs.h <<\_ACEOF
9021 #define STDC_HEADERS 1
9022 _ACEOF
9023
9024 fi
9025
9026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9037                   inttypes.h stdint.h unistd.h
9038 do
9039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9040 echo "$as_me:$LINENO: checking for $ac_header" >&5
9041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043   echo $ECHO_N "(cached) $ECHO_C" >&6
9044 else
9045   cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051 $ac_includes_default
9052
9053 #include <$ac_header>
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057   (eval $ac_compile) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; } &&
9070          { ac_try='test -s conftest.$ac_objext'
9071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072   (eval $ac_try) 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); }; }; then
9076   eval "$as_ac_Header=yes"
9077 else
9078   echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081 eval "$as_ac_Header=no"
9082 fi
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9088   cat >>confdefs.h <<_ACEOF
9089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9090 _ACEOF
9091
9092 fi
9093
9094 done
9095
9096
9097
9098
9099
9100 for ac_header in execinfo.h unistd.h dlfcn.h
9101 do
9102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104   echo "$as_me:$LINENO: checking for $ac_header" >&5
9105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 fi
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9111 else
9112   # Is the header compilable?
9113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h.  */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h.  */
9121 $ac_includes_default
9122 #include <$ac_header>
9123 _ACEOF
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126   (eval $ac_compile) 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; } &&
9139          { ac_try='test -s conftest.$ac_objext'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; }; then
9145   ac_header_compiler=yes
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 ac_header_compiler=no
9151 fi
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9154 echo "${ECHO_T}$ac_header_compiler" >&6
9155
9156 # Is the header present?
9157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h.  */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h.  */
9165 #include <$ac_header>
9166 _ACEOF
9167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9169   ac_status=$?
9170   grep -v '^ *+' conftest.er1 >conftest.err
9171   rm -f conftest.er1
9172   cat conftest.err >&5
9173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); } >/dev/null; then
9175   if test -s conftest.err; then
9176     ac_cpp_err=$ac_c_preproc_warn_flag
9177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9178   else
9179     ac_cpp_err=
9180   fi
9181 else
9182   ac_cpp_err=yes
9183 fi
9184 if test -z "$ac_cpp_err"; then
9185   ac_header_preproc=yes
9186 else
9187   echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190   ac_header_preproc=no
9191 fi
9192 rm -f conftest.err conftest.$ac_ext
9193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9194 echo "${ECHO_T}$ac_header_preproc" >&6
9195
9196 # So?  What about this header?
9197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9198   yes:no: )
9199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9203     ac_header_preproc=yes
9204     ;;
9205   no:yes:* )
9206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9218     (
9219       cat <<\_ASBOX
9220 ## ---------------------------------- ##
9221 ## Report this to the libjava lists.  ##
9222 ## ---------------------------------- ##
9223 _ASBOX
9224     ) |
9225       sed "s/^/$as_me: WARNING:     /" >&2
9226     ;;
9227 esac
9228 echo "$as_me:$LINENO: checking for $ac_header" >&5
9229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   eval "$as_ac_Header=\$ac_header_preproc"
9234 fi
9235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9237
9238 fi
9239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9240   cat >>confdefs.h <<_ACEOF
9241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9242 _ACEOF
9243
9244 fi
9245
9246 done
9247
9248    echo "$as_me:$LINENO: checking for backtrace" >&5
9249 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9250 if test "${ac_cv_func_backtrace+set}" = set; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253   if test x$gcc_no_link = xyes; then
9254   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9256    { (exit 1); exit 1; }; }
9257 fi
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h.  */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h.  */
9264 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9266 #define backtrace innocuous_backtrace
9267
9268 /* System header to define __stub macros and hopefully few prototypes,
9269     which can conflict with char backtrace (); below.
9270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9271     <limits.h> exists even on freestanding compilers.  */
9272
9273 #ifdef __STDC__
9274 # include <limits.h>
9275 #else
9276 # include <assert.h>
9277 #endif
9278
9279 #undef backtrace
9280
9281 /* Override any gcc2 internal prototype to avoid an error.  */
9282 #ifdef __cplusplus
9283 extern "C"
9284 {
9285 #endif
9286 /* We use char because int might match the return type of a gcc2
9287    builtin and then its argument prototype would still apply.  */
9288 char backtrace ();
9289 /* The GNU C library defines this for functions which it implements
9290     to always fail with ENOSYS.  Some functions are actually named
9291     something starting with __ and the normal name is an alias.  */
9292 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9293 choke me
9294 #else
9295 char (*f) () = backtrace;
9296 #endif
9297 #ifdef __cplusplus
9298 }
9299 #endif
9300
9301 int
9302 main ()
9303 {
9304 return f != backtrace;
9305   ;
9306   return 0;
9307 }
9308 _ACEOF
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311   (eval $ac_link) 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } &&
9318          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; } &&
9324          { ac_try='test -s conftest$ac_exeext'
9325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326   (eval $ac_try) 2>&5
9327   ac_status=$?
9328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329   (exit $ac_status); }; }; then
9330   ac_cv_func_backtrace=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335 ac_cv_func_backtrace=no
9336 fi
9337 rm -f conftest.err conftest.$ac_objext \
9338       conftest$ac_exeext conftest.$ac_ext
9339 fi
9340 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9341 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9342 if test $ac_cv_func_backtrace = yes; then
9343
9344      case "$host" in
9345        ia64-*-linux*)
9346          # Has broken backtrace()
9347          ;;
9348        mips*-*-linux*)
9349          # Has broken backtrace(), but we supply our own.
9350          if test -d sysdep; then true; else mkdir -p sysdep; fi
9351          supply_backtrace=yes
9352
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HAVE_BACKTRACE 1
9355 _ACEOF
9356
9357          ;;
9358        *)
9359
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_BACKTRACE 1
9362 _ACEOF
9363
9364          ;;
9365      esac
9366
9367 else
9368
9369      case "$host" in
9370        *mingw*)
9371          # Has backtrace() defined in libgcj itself
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_BACKTRACE 1
9375 _ACEOF
9376
9377          ;;
9378      esac
9379
9380 fi
9381
9382
9383    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9384 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9385 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9386   echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388   ac_check_lib_save_LIBS=$LIBS
9389 LIBS="-ldl  $LIBS"
9390 if test x$gcc_no_link = xyes; then
9391   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9393    { (exit 1); exit 1; }; }
9394 fi
9395 cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401
9402 /* Override any gcc2 internal prototype to avoid an error.  */
9403 #ifdef __cplusplus
9404 extern "C"
9405 #endif
9406 /* We use char because int might match the return type of a gcc2
9407    builtin and then its argument prototype would still apply.  */
9408 char dladdr ();
9409 int
9410 main ()
9411 {
9412 dladdr ();
9413   ;
9414   return 0;
9415 }
9416 _ACEOF
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419   (eval $ac_link) 2>conftest.er1
9420   ac_status=$?
9421   grep -v '^ *+' conftest.er1 >conftest.err
9422   rm -f conftest.er1
9423   cat conftest.err >&5
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } &&
9426          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   ac_cv_lib_dl_dladdr=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 ac_cv_lib_dl_dladdr=no
9444 fi
9445 rm -f conftest.err conftest.$ac_objext \
9446       conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9448 fi
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9450 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9451 if test $ac_cv_lib_dl_dladdr = yes; then
9452
9453      if test "x${disable_dladdr}" = "xyes"; then
9454        #Broken dladdr().
9455        true
9456      else
9457
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_DLADDR 1
9460 _ACEOF
9461
9462      fi
9463
9464 fi
9465
9466    if test x"$build" = x"$host"; then
9467      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9468 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9469 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9470   echo $ECHO_N "(cached) $ECHO_C" >&6
9471 else
9472   test "$cross_compiling" = yes &&
9473   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9474 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9475    { (exit 1); exit 1; }; }
9476 if test -r "/proc/self/exe"; then
9477   ac_cv_file__proc_self_exe=yes
9478 else
9479   ac_cv_file__proc_self_exe=no
9480 fi
9481 fi
9482 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9483 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9484 if test $ac_cv_file__proc_self_exe = yes; then
9485
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE__PROC_SELF_EXE 1
9488 _ACEOF
9489
9490
9491
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_PROC_SELF_EXE 1
9494 _ACEOF
9495
9496 fi
9497
9498    else
9499      case $host in
9500      *-linux*)
9501
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_PROC_SELF_EXE 1
9504 _ACEOF
9505
9506        ;;
9507      esac
9508    fi
9509
9510
9511       if test "X$prefix" = "XNONE"; then
9512     acl_final_prefix="$ac_default_prefix"
9513   else
9514     acl_final_prefix="$prefix"
9515   fi
9516   if test "X$exec_prefix" = "XNONE"; then
9517     acl_final_exec_prefix='${prefix}'
9518   else
9519     acl_final_exec_prefix="$exec_prefix"
9520   fi
9521   acl_save_prefix="$prefix"
9522   prefix="$acl_final_prefix"
9523   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9524   prefix="$acl_save_prefix"
9525
9526
9527 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9528 if test "${with_gnu_ld+set}" = set; then
9529   withval="$with_gnu_ld"
9530   test "$withval" = no || with_gnu_ld=yes
9531 else
9532   with_gnu_ld=no
9533 fi;
9534 # Prepare PATH_SEPARATOR.
9535 # The user is always right.
9536 if test "${PATH_SEPARATOR+set}" != set; then
9537   echo "#! /bin/sh" >conf$$.sh
9538   echo  "exit 0"   >>conf$$.sh
9539   chmod +x conf$$.sh
9540   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9541     PATH_SEPARATOR=';'
9542   else
9543     PATH_SEPARATOR=:
9544   fi
9545   rm -f conf$$.sh
9546 fi
9547 ac_prog=ld
9548 if test "$GCC" = yes; then
9549   # Check if gcc -print-prog-name=ld gives a path.
9550   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9551 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9552   case $host in
9553   *-*-mingw*)
9554     # gcc leaves a trailing carriage return which upsets mingw
9555     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9556   *)
9557     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9558   esac
9559   case $ac_prog in
9560     # Accept absolute paths.
9561     [\\/]* | [A-Za-z]:[\\/]*)
9562       re_direlt='/[^/][^/]*/\.\./'
9563       # Canonicalize the path of ld
9564       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9565       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9566         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9567       done
9568       test -z "$LD" && LD="$ac_prog"
9569       ;;
9570   "")
9571     # If it fails, then pretend we aren't using GCC.
9572     ac_prog=ld
9573     ;;
9574   *)
9575     # If it is relative, then search for the first ld in PATH.
9576     with_gnu_ld=unknown
9577     ;;
9578   esac
9579 elif test "$with_gnu_ld" = yes; then
9580   echo "$as_me:$LINENO: checking for GNU ld" >&5
9581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9582 else
9583   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9585 fi
9586 if test "${acl_cv_path_LD+set}" = set; then
9587   echo $ECHO_N "(cached) $ECHO_C" >&6
9588 else
9589   if test -z "$LD"; then
9590   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9591   for ac_dir in $PATH; do
9592     test -z "$ac_dir" && ac_dir=.
9593     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9594       acl_cv_path_LD="$ac_dir/$ac_prog"
9595       # Check to see if the program is GNU ld.  I'd rather use --version,
9596       # but apparently some GNU ld's only accept -v.
9597       # Break only if it was the GNU/non-GNU ld that we prefer.
9598       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9599         test "$with_gnu_ld" != no && break
9600       else
9601         test "$with_gnu_ld" != yes && break
9602       fi
9603     fi
9604   done
9605   IFS="$ac_save_ifs"
9606 else
9607   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9608 fi
9609 fi
9610
9611 LD="$acl_cv_path_LD"
9612 if test -n "$LD"; then
9613   echo "$as_me:$LINENO: result: $LD" >&5
9614 echo "${ECHO_T}$LD" >&6
9615 else
9616   echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6
9618 fi
9619 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9620 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9621    { (exit 1); exit 1; }; }
9622 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9623 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9624 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9625   echo $ECHO_N "(cached) $ECHO_C" >&6
9626 else
9627   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9628 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9629   acl_cv_prog_gnu_ld=yes
9630 else
9631   acl_cv_prog_gnu_ld=no
9632 fi
9633 fi
9634 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9635 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9636 with_gnu_ld=$acl_cv_prog_gnu_ld
9637
9638
9639
9640                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9641 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9642 if test "${acl_cv_rpath+set}" = set; then
9643   echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645
9646     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9647     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9648     . ./conftest.sh
9649     rm -f ./conftest.sh
9650     acl_cv_rpath=done
9651
9652 fi
9653 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9654 echo "${ECHO_T}$acl_cv_rpath" >&6
9655   wl="$acl_cv_wl"
9656   libext="$acl_cv_libext"
9657   shlibext="$acl_cv_shlibext"
9658   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9659   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9660   hardcode_direct="$acl_cv_hardcode_direct"
9661   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9662     # Check whether --enable-rpath or --disable-rpath was given.
9663 if test "${enable_rpath+set}" = set; then
9664   enableval="$enable_rpath"
9665   :
9666 else
9667   enable_rpath=yes
9668 fi;
9669
9670
9671
9672
9673
9674
9675
9676     use_additional=yes
9677
9678   acl_save_prefix="$prefix"
9679   prefix="$acl_final_prefix"
9680   acl_save_exec_prefix="$exec_prefix"
9681   exec_prefix="$acl_final_exec_prefix"
9682
9683     eval additional_includedir=\"$includedir\"
9684     eval additional_libdir=\"$libdir\"
9685
9686   exec_prefix="$acl_save_exec_prefix"
9687   prefix="$acl_save_prefix"
9688
9689
9690 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9691 if test "${with_libiconv_prefix+set}" = set; then
9692   withval="$with_libiconv_prefix"
9693
9694     if test "X$withval" = "Xno"; then
9695       use_additional=no
9696     else
9697       if test "X$withval" = "X"; then
9698
9699   acl_save_prefix="$prefix"
9700   prefix="$acl_final_prefix"
9701   acl_save_exec_prefix="$exec_prefix"
9702   exec_prefix="$acl_final_exec_prefix"
9703
9704           eval additional_includedir=\"$includedir\"
9705           eval additional_libdir=\"$libdir\"
9706
9707   exec_prefix="$acl_save_exec_prefix"
9708   prefix="$acl_save_prefix"
9709
9710       else
9711         additional_includedir="$withval/include"
9712         additional_libdir="$withval/lib"
9713       fi
9714     fi
9715
9716 fi;
9717       LIBICONV=
9718   LTLIBICONV=
9719   INCICONV=
9720   rpathdirs=
9721   ltrpathdirs=
9722   names_already_handled=
9723   names_next_round='iconv '
9724   while test -n "$names_next_round"; do
9725     names_this_round="$names_next_round"
9726     names_next_round=
9727     for name in $names_this_round; do
9728       already_handled=
9729       for n in $names_already_handled; do
9730         if test "$n" = "$name"; then
9731           already_handled=yes
9732           break
9733         fi
9734       done
9735       if test -z "$already_handled"; then
9736         names_already_handled="$names_already_handled $name"
9737                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9738         eval value=\"\$HAVE_LIB$uppername\"
9739         if test -n "$value"; then
9740           if test "$value" = yes; then
9741             eval value=\"\$LIB$uppername\"
9742             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9743             eval value=\"\$LTLIB$uppername\"
9744             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9745           else
9746                                     :
9747           fi
9748         else
9749                               found_dir=
9750           found_la=
9751           found_so=
9752           found_a=
9753           if test $use_additional = yes; then
9754             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9755               found_dir="$additional_libdir"
9756               found_so="$additional_libdir/lib$name.$shlibext"
9757               if test -f "$additional_libdir/lib$name.la"; then
9758                 found_la="$additional_libdir/lib$name.la"
9759               fi
9760             else
9761               if test -f "$additional_libdir/lib$name.$libext"; then
9762                 found_dir="$additional_libdir"
9763                 found_a="$additional_libdir/lib$name.$libext"
9764                 if test -f "$additional_libdir/lib$name.la"; then
9765                   found_la="$additional_libdir/lib$name.la"
9766                 fi
9767               fi
9768             fi
9769           fi
9770           if test "X$found_dir" = "X"; then
9771             for x in $LDFLAGS $LTLIBICONV; do
9772
9773   acl_save_prefix="$prefix"
9774   prefix="$acl_final_prefix"
9775   acl_save_exec_prefix="$exec_prefix"
9776   exec_prefix="$acl_final_exec_prefix"
9777   eval x=\"$x\"
9778   exec_prefix="$acl_save_exec_prefix"
9779   prefix="$acl_save_prefix"
9780
9781               case "$x" in
9782                 -L*)
9783                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9784                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9785                     found_dir="$dir"
9786                     found_so="$dir/lib$name.$shlibext"
9787                     if test -f "$dir/lib$name.la"; then
9788                       found_la="$dir/lib$name.la"
9789                     fi
9790                   else
9791                     if test -f "$dir/lib$name.$libext"; then
9792                       found_dir="$dir"
9793                       found_a="$dir/lib$name.$libext"
9794                       if test -f "$dir/lib$name.la"; then
9795                         found_la="$dir/lib$name.la"
9796                       fi
9797                     fi
9798                   fi
9799                   ;;
9800               esac
9801               if test "X$found_dir" != "X"; then
9802                 break
9803               fi
9804             done
9805           fi
9806           if test "X$found_dir" != "X"; then
9807                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9808             if test "X$found_so" != "X"; then
9809                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9810                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9811               else
9812                                                                                 haveit=
9813                 for x in $ltrpathdirs; do
9814                   if test "X$x" = "X$found_dir"; then
9815                     haveit=yes
9816                     break
9817                   fi
9818                 done
9819                 if test -z "$haveit"; then
9820                   ltrpathdirs="$ltrpathdirs $found_dir"
9821                 fi
9822                                 if test "$hardcode_direct" = yes; then
9823                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9824                 else
9825                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9826                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9827                                                             haveit=
9828                     for x in $rpathdirs; do
9829                       if test "X$x" = "X$found_dir"; then
9830                         haveit=yes
9831                         break
9832                       fi
9833                     done
9834                     if test -z "$haveit"; then
9835                       rpathdirs="$rpathdirs $found_dir"
9836                     fi
9837                   else
9838                                                                                 haveit=
9839                     for x in $LDFLAGS $LIBICONV; do
9840
9841   acl_save_prefix="$prefix"
9842   prefix="$acl_final_prefix"
9843   acl_save_exec_prefix="$exec_prefix"
9844   exec_prefix="$acl_final_exec_prefix"
9845   eval x=\"$x\"
9846   exec_prefix="$acl_save_exec_prefix"
9847   prefix="$acl_save_prefix"
9848
9849                       if test "X$x" = "X-L$found_dir"; then
9850                         haveit=yes
9851                         break
9852                       fi
9853                     done
9854                     if test -z "$haveit"; then
9855                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9856                     fi
9857                     if test "$hardcode_minus_L" != no; then
9858                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9859                     else
9860                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9861                     fi
9862                   fi
9863                 fi
9864               fi
9865             else
9866               if test "X$found_a" != "X"; then
9867                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9868               else
9869                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9870               fi
9871             fi
9872                         additional_includedir=
9873             case "$found_dir" in
9874               */lib | */lib/)
9875                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9876                 additional_includedir="$basedir/include"
9877                 ;;
9878             esac
9879             if test "X$additional_includedir" != "X"; then
9880                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9881                 haveit=
9882                 if test "X$additional_includedir" = "X/usr/local/include"; then
9883                   if test -n "$GCC"; then
9884                     case $host_os in
9885                       linux*) haveit=yes;;
9886                     esac
9887                   fi
9888                 fi
9889                 if test -z "$haveit"; then
9890                   for x in $CPPFLAGS $INCICONV; do
9891
9892   acl_save_prefix="$prefix"
9893   prefix="$acl_final_prefix"
9894   acl_save_exec_prefix="$exec_prefix"
9895   exec_prefix="$acl_final_exec_prefix"
9896   eval x=\"$x\"
9897   exec_prefix="$acl_save_exec_prefix"
9898   prefix="$acl_save_prefix"
9899
9900                     if test "X$x" = "X-I$additional_includedir"; then
9901                       haveit=yes
9902                       break
9903                     fi
9904                   done
9905                   if test -z "$haveit"; then
9906                     if test -d "$additional_includedir"; then
9907                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9908                     fi
9909                   fi
9910                 fi
9911               fi
9912             fi
9913                         if test -n "$found_la"; then
9914                                                         save_libdir="$libdir"
9915               case "$found_la" in
9916                 */* | *\\*) . "$found_la" ;;
9917                 *) . "./$found_la" ;;
9918               esac
9919               libdir="$save_libdir"
9920                             for dep in $dependency_libs; do
9921                 case "$dep" in
9922                   -L*)
9923                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9924                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9925                       haveit=
9926                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9927                         if test -n "$GCC"; then
9928                           case $host_os in
9929                             linux*) haveit=yes;;
9930                           esac
9931                         fi
9932                       fi
9933                       if test -z "$haveit"; then
9934                         haveit=
9935                         for x in $LDFLAGS $LIBICONV; do
9936
9937   acl_save_prefix="$prefix"
9938   prefix="$acl_final_prefix"
9939   acl_save_exec_prefix="$exec_prefix"
9940   exec_prefix="$acl_final_exec_prefix"
9941   eval x=\"$x\"
9942   exec_prefix="$acl_save_exec_prefix"
9943   prefix="$acl_save_prefix"
9944
9945                           if test "X$x" = "X-L$additional_libdir"; then
9946                             haveit=yes
9947                             break
9948                           fi
9949                         done
9950                         if test -z "$haveit"; then
9951                           if test -d "$additional_libdir"; then
9952                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9953                           fi
9954                         fi
9955                         haveit=
9956                         for x in $LDFLAGS $LTLIBICONV; do
9957
9958   acl_save_prefix="$prefix"
9959   prefix="$acl_final_prefix"
9960   acl_save_exec_prefix="$exec_prefix"
9961   exec_prefix="$acl_final_exec_prefix"
9962   eval x=\"$x\"
9963   exec_prefix="$acl_save_exec_prefix"
9964   prefix="$acl_save_prefix"
9965
9966                           if test "X$x" = "X-L$additional_libdir"; then
9967                             haveit=yes
9968                             break
9969                           fi
9970                         done
9971                         if test -z "$haveit"; then
9972                           if test -d "$additional_libdir"; then
9973                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9974                           fi
9975                         fi
9976                       fi
9977                     fi
9978                     ;;
9979                   -R*)
9980                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9981                     if test "$enable_rpath" != no; then
9982                                                                   haveit=
9983                       for x in $rpathdirs; do
9984                         if test "X$x" = "X$dir"; then
9985                           haveit=yes
9986                           break
9987                         fi
9988                       done
9989                       if test -z "$haveit"; then
9990                         rpathdirs="$rpathdirs $dir"
9991                       fi
9992                                                                   haveit=
9993                       for x in $ltrpathdirs; do
9994                         if test "X$x" = "X$dir"; then
9995                           haveit=yes
9996                           break
9997                         fi
9998                       done
9999                       if test -z "$haveit"; then
10000                         ltrpathdirs="$ltrpathdirs $dir"
10001                       fi
10002                     fi
10003                     ;;
10004                   -l*)
10005                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10006                     ;;
10007                   *.la)
10008                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10009                     ;;
10010                   *)
10011                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10012                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10013                     ;;
10014                 esac
10015               done
10016             fi
10017           else
10018                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10019             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10020           fi
10021         fi
10022       fi
10023     done
10024   done
10025   if test "X$rpathdirs" != "X"; then
10026     if test -n "$hardcode_libdir_separator"; then
10027                         alldirs=
10028       for found_dir in $rpathdirs; do
10029         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10030       done
10031             acl_save_libdir="$libdir"
10032       libdir="$alldirs"
10033       eval flag=\"$hardcode_libdir_flag_spec\"
10034       libdir="$acl_save_libdir"
10035       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10036     else
10037             for found_dir in $rpathdirs; do
10038         acl_save_libdir="$libdir"
10039         libdir="$found_dir"
10040         eval flag=\"$hardcode_libdir_flag_spec\"
10041         libdir="$acl_save_libdir"
10042         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10043       done
10044     fi
10045   fi
10046   if test "X$ltrpathdirs" != "X"; then
10047             for found_dir in $ltrpathdirs; do
10048       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10049     done
10050   fi
10051
10052
10053
10054
10055
10056
10057
10058           am_save_CPPFLAGS="$CPPFLAGS"
10059
10060   for element in $INCICONV; do
10061     haveit=
10062     for x in $CPPFLAGS; do
10063
10064   acl_save_prefix="$prefix"
10065   prefix="$acl_final_prefix"
10066   acl_save_exec_prefix="$exec_prefix"
10067   exec_prefix="$acl_final_exec_prefix"
10068   eval x=\"$x\"
10069   exec_prefix="$acl_save_exec_prefix"
10070   prefix="$acl_save_prefix"
10071
10072       if test "X$x" = "X$element"; then
10073         haveit=yes
10074         break
10075       fi
10076     done
10077     if test -z "$haveit"; then
10078       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10079     fi
10080   done
10081
10082
10083   echo "$as_me:$LINENO: checking for iconv" >&5
10084 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10085 if test "${am_cv_func_iconv+set}" = set; then
10086   echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088
10089     am_cv_func_iconv="no, consider installing GNU libiconv"
10090     am_cv_lib_iconv=no
10091     if test x$gcc_no_link = xyes; then
10092   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10093 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10094    { (exit 1); exit 1; }; }
10095 fi
10096 cat >conftest.$ac_ext <<_ACEOF
10097 /* confdefs.h.  */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h.  */
10102 #include <stdlib.h>
10103 #include <iconv.h>
10104 int
10105 main ()
10106 {
10107 iconv_t cd = iconv_open("","");
10108        iconv(cd,NULL,NULL,NULL,NULL);
10109        iconv_close(cd);
10110   ;
10111   return 0;
10112 }
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116   (eval $ac_link) 2>conftest.er1
10117   ac_status=$?
10118   grep -v '^ *+' conftest.er1 >conftest.err
10119   rm -f conftest.er1
10120   cat conftest.err >&5
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } &&
10123          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; } &&
10129          { ac_try='test -s conftest$ac_exeext'
10130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131   (eval $ac_try) 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; }; then
10135   am_cv_func_iconv=yes
10136 else
10137   echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140 fi
10141 rm -f conftest.err conftest.$ac_objext \
10142       conftest$ac_exeext conftest.$ac_ext
10143     if test "$am_cv_func_iconv" != yes; then
10144       am_save_LIBS="$LIBS"
10145       LIBS="$LIBS $LIBICONV"
10146       if test x$gcc_no_link = xyes; then
10147   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10149    { (exit 1); exit 1; }; }
10150 fi
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157 #include <stdlib.h>
10158 #include <iconv.h>
10159 int
10160 main ()
10161 {
10162 iconv_t cd = iconv_open("","");
10163          iconv(cd,NULL,NULL,NULL,NULL);
10164          iconv_close(cd);
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171   (eval $ac_link) 2>conftest.er1
10172   ac_status=$?
10173   grep -v '^ *+' conftest.er1 >conftest.err
10174   rm -f conftest.er1
10175   cat conftest.err >&5
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; } &&
10184          { ac_try='test -s conftest$ac_exeext'
10185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186   (eval $ac_try) 2>&5
10187   ac_status=$?
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); }; }; then
10190   am_cv_lib_iconv=yes
10191         am_cv_func_iconv=yes
10192 else
10193   echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 fi
10197 rm -f conftest.err conftest.$ac_objext \
10198       conftest$ac_exeext conftest.$ac_ext
10199       LIBS="$am_save_LIBS"
10200     fi
10201
10202 fi
10203 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10204 echo "${ECHO_T}$am_cv_func_iconv" >&6
10205   if test "$am_cv_func_iconv" = yes; then
10206
10207 cat >>confdefs.h <<\_ACEOF
10208 #define HAVE_ICONV 1
10209 _ACEOF
10210
10211   fi
10212   if test "$am_cv_lib_iconv" = yes; then
10213     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10214 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10215     echo "$as_me:$LINENO: result: $LIBICONV" >&5
10216 echo "${ECHO_T}$LIBICONV" >&6
10217   else
10218             CPPFLAGS="$am_save_CPPFLAGS"
10219     LIBICONV=
10220     LTLIBICONV=
10221   fi
10222
10223
10224
10225   if test "$am_cv_func_iconv" = yes; then
10226     echo "$as_me:$LINENO: checking for iconv declaration" >&5
10227 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10228     if test "${am_cv_proto_iconv+set}" = set; then
10229   echo $ECHO_N "(cached) $ECHO_C" >&6
10230 else
10231
10232       cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h.  */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h.  */
10238
10239 #include <stdlib.h>
10240 #include <iconv.h>
10241 extern
10242 #ifdef __cplusplus
10243 "C"
10244 #endif
10245 #if defined(__STDC__) || defined(__cplusplus)
10246 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10247 #else
10248 size_t iconv();
10249 #endif
10250
10251 int
10252 main ()
10253 {
10254
10255   ;
10256   return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261   (eval $ac_compile) 2>conftest.er1
10262   ac_status=$?
10263   grep -v '^ *+' conftest.er1 >conftest.err
10264   rm -f conftest.er1
10265   cat conftest.err >&5
10266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267   (exit $ac_status); } &&
10268          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270   (eval $ac_try) 2>&5
10271   ac_status=$?
10272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273   (exit $ac_status); }; } &&
10274          { ac_try='test -s conftest.$ac_objext'
10275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276   (eval $ac_try) 2>&5
10277   ac_status=$?
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); }; }; then
10280   am_cv_proto_iconv_arg1=""
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285 am_cv_proto_iconv_arg1="const"
10286 fi
10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288       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);"
10289 fi
10290
10291     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10292     echo "$as_me:$LINENO: result: ${ac_t:-
10293          }$am_cv_proto_iconv" >&5
10294 echo "${ECHO_T}${ac_t:-
10295          }$am_cv_proto_iconv" >&6
10296
10297 cat >>confdefs.h <<_ACEOF
10298 #define ICONV_CONST $am_cv_proto_iconv_arg1
10299 _ACEOF
10300
10301   fi
10302
10303
10304   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10305 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10306 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10307   echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309   if test x$gcc_no_link = xyes; then
10310   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10312    { (exit 1); exit 1; }; }
10313 fi
10314 cat >conftest.$ac_ext <<_ACEOF
10315 /* confdefs.h.  */
10316 _ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h.  */
10320 #include <locale.h>
10321 int
10322 main ()
10323 {
10324 return LC_MESSAGES
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331   (eval $ac_link) 2>conftest.er1
10332   ac_status=$?
10333   grep -v '^ *+' conftest.er1 >conftest.err
10334   rm -f conftest.er1
10335   cat conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); } &&
10338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340   (eval $ac_try) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; } &&
10344          { ac_try='test -s conftest$ac_exeext'
10345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346   (eval $ac_try) 2>&5
10347   ac_status=$?
10348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349   (exit $ac_status); }; }; then
10350   am_cv_val_LC_MESSAGES=yes
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 am_cv_val_LC_MESSAGES=no
10356 fi
10357 rm -f conftest.err conftest.$ac_objext \
10358       conftest$ac_exeext conftest.$ac_ext
10359 fi
10360 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10361 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10362   if test $am_cv_val_LC_MESSAGES = yes; then
10363
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_LC_MESSAGES 1
10366 _ACEOF
10367
10368   fi
10369
10370    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10371 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10372 if test "${ac_cv_struct_tm+set}" = set; then
10373   echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375   cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h.  */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h.  */
10381 #include <sys/types.h>
10382 #include <time.h>
10383
10384 int
10385 main ()
10386 {
10387 struct tm *tp; tp->tm_sec;
10388   ;
10389   return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest.$ac_objext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394   (eval $ac_compile) 2>conftest.er1
10395   ac_status=$?
10396   grep -v '^ *+' conftest.er1 >conftest.err
10397   rm -f conftest.er1
10398   cat conftest.err >&5
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } &&
10401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403   (eval $ac_try) 2>&5
10404   ac_status=$?
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); }; } &&
10407          { ac_try='test -s conftest.$ac_objext'
10408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409   (eval $ac_try) 2>&5
10410   ac_status=$?
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); }; }; then
10413   ac_cv_struct_tm=time.h
10414 else
10415   echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_cv_struct_tm=sys/time.h
10419 fi
10420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10421 fi
10422 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10423 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10424 if test $ac_cv_struct_tm = sys/time.h; then
10425
10426 cat >>confdefs.h <<\_ACEOF
10427 #define TM_IN_SYS_TIME 1
10428 _ACEOF
10429
10430 fi
10431
10432 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10433 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10434 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437   cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443 #include <sys/types.h>
10444 #include <$ac_cv_struct_tm>
10445
10446
10447 int
10448 main ()
10449 {
10450 static struct tm ac_aggr;
10451 if (ac_aggr.tm_zone)
10452 return 0;
10453   ;
10454   return 0;
10455 }
10456 _ACEOF
10457 rm -f conftest.$ac_objext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10459   (eval $ac_compile) 2>conftest.er1
10460   ac_status=$?
10461   grep -v '^ *+' conftest.er1 >conftest.err
10462   rm -f conftest.er1
10463   cat conftest.err >&5
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); } &&
10466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; } &&
10472          { ac_try='test -s conftest.$ac_objext'
10473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474   (eval $ac_try) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); }; }; then
10478   ac_cv_member_struct_tm_tm_zone=yes
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h.  */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h.  */
10489 #include <sys/types.h>
10490 #include <$ac_cv_struct_tm>
10491
10492
10493 int
10494 main ()
10495 {
10496 static struct tm ac_aggr;
10497 if (sizeof ac_aggr.tm_zone)
10498 return 0;
10499   ;
10500   return 0;
10501 }
10502 _ACEOF
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505   (eval $ac_compile) 2>conftest.er1
10506   ac_status=$?
10507   grep -v '^ *+' conftest.er1 >conftest.err
10508   rm -f conftest.er1
10509   cat conftest.err >&5
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } &&
10512          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514   (eval $ac_try) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); }; } &&
10518          { ac_try='test -s conftest.$ac_objext'
10519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520   (eval $ac_try) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); }; }; then
10524   ac_cv_member_struct_tm_tm_zone=yes
10525 else
10526   echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10528
10529 ac_cv_member_struct_tm_tm_zone=no
10530 fi
10531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10532 fi
10533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10534 fi
10535 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10536 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10537 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10538
10539 cat >>confdefs.h <<_ACEOF
10540 #define HAVE_STRUCT_TM_TM_ZONE 1
10541 _ACEOF
10542
10543
10544 fi
10545
10546 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10547
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_TM_ZONE 1
10550 _ACEOF
10551
10552 else
10553   echo "$as_me:$LINENO: checking for tzname" >&5
10554 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10555 if test "${ac_cv_var_tzname+set}" = set; then
10556   echo $ECHO_N "(cached) $ECHO_C" >&6
10557 else
10558   if test x$gcc_no_link = xyes; then
10559   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10561    { (exit 1); exit 1; }; }
10562 fi
10563 cat >conftest.$ac_ext <<_ACEOF
10564 /* confdefs.h.  */
10565 _ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h.  */
10569 #include <time.h>
10570 #ifndef tzname /* For SGI.  */
10571 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10572 #endif
10573
10574 int
10575 main ()
10576 {
10577 atoi(*tzname);
10578   ;
10579   return 0;
10580 }
10581 _ACEOF
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584   (eval $ac_link) 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } &&
10591          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593   (eval $ac_try) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; } &&
10597          { ac_try='test -s conftest$ac_exeext'
10598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599   (eval $ac_try) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); }; }; then
10603   ac_cv_var_tzname=yes
10604 else
10605   echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10607
10608 ac_cv_var_tzname=no
10609 fi
10610 rm -f conftest.err conftest.$ac_objext \
10611       conftest$ac_exeext conftest.$ac_ext
10612 fi
10613 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10614 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10615   if test $ac_cv_var_tzname = yes; then
10616
10617 cat >>confdefs.h <<\_ACEOF
10618 #define HAVE_TZNAME 1
10619 _ACEOF
10620
10621   fi
10622 fi
10623
10624
10625
10626
10627 for ac_func in gethostbyname_r
10628 do
10629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10630 echo "$as_me:$LINENO: checking for $ac_func" >&5
10631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10632 if eval "test \"\${$as_ac_var+set}\" = set"; then
10633   echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635   if test x$gcc_no_link = xyes; then
10636   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10638    { (exit 1); exit 1; }; }
10639 fi
10640 cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10648 #define $ac_func innocuous_$ac_func
10649
10650 /* System header to define __stub macros and hopefully few prototypes,
10651     which can conflict with char $ac_func (); below.
10652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653     <limits.h> exists even on freestanding compilers.  */
10654
10655 #ifdef __STDC__
10656 # include <limits.h>
10657 #else
10658 # include <assert.h>
10659 #endif
10660
10661 #undef $ac_func
10662
10663 /* Override any gcc2 internal prototype to avoid an error.  */
10664 #ifdef __cplusplus
10665 extern "C"
10666 {
10667 #endif
10668 /* We use char because int might match the return type of a gcc2
10669    builtin and then its argument prototype would still apply.  */
10670 char $ac_func ();
10671 /* The GNU C library defines this for functions which it implements
10672     to always fail with ENOSYS.  Some functions are actually named
10673     something starting with __ and the normal name is an alias.  */
10674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10675 choke me
10676 #else
10677 char (*f) () = $ac_func;
10678 #endif
10679 #ifdef __cplusplus
10680 }
10681 #endif
10682
10683 int
10684 main ()
10685 {
10686 return f != $ac_func;
10687   ;
10688   return 0;
10689 }
10690 _ACEOF
10691 rm -f conftest.$ac_objext conftest$ac_exeext
10692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10693   (eval $ac_link) 2>conftest.er1
10694   ac_status=$?
10695   grep -v '^ *+' conftest.er1 >conftest.err
10696   rm -f conftest.er1
10697   cat conftest.err >&5
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); } &&
10700          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702   (eval $ac_try) 2>&5
10703   ac_status=$?
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); }; } &&
10706          { ac_try='test -s conftest$ac_exeext'
10707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708   (eval $ac_try) 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; }; then
10712   eval "$as_ac_var=yes"
10713 else
10714   echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717 eval "$as_ac_var=no"
10718 fi
10719 rm -f conftest.err conftest.$ac_objext \
10720       conftest$ac_exeext conftest.$ac_ext
10721 fi
10722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725   cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10727 _ACEOF
10728
10729
10730 cat >>confdefs.h <<\_ACEOF
10731 #define HAVE_GETHOSTBYNAME_R 1
10732 _ACEOF
10733
10734      # There are two different kinds of gethostbyname_r.
10735      # We look for the one that returns `int'.
10736      # Hopefully this check is robust enough.
10737      cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 #include <netdb.h>
10744
10745 _ACEOF
10746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10747   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10748
10749
10750 cat >>confdefs.h <<\_ACEOF
10751 #define GETHOSTBYNAME_R_RETURNS_INT 1
10752 _ACEOF
10753
10754 fi
10755 rm -f conftest*
10756
10757
10758      case " $GCINCS " in
10759      *" -D_REENTRANT "*) ;;
10760      *)
10761                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10762 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10763 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10764   echo $ECHO_N "(cached) $ECHO_C" >&6
10765 else
10766    ac_ext=cc
10767 ac_cpp='$CXXCPP $CPPFLAGS'
10768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10771
10772           cat >conftest.$ac_ext <<_ACEOF
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778 #include <netdb.h>
10779 int
10780 main ()
10781 {
10782 gethostbyname_r("", 0, 0);
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789   (eval $ac_compile) 2>conftest.er1
10790   ac_status=$?
10791   grep -v '^ *+' conftest.er1 >conftest.err
10792   rm -f conftest.er1
10793   cat conftest.err >&5
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); } &&
10796          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798   (eval $ac_try) 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; } &&
10802          { ac_try='test -s conftest.$ac_objext'
10803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804   (eval $ac_try) 2>&5
10805   ac_status=$?
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); }; }; then
10808   libjava_cv_gethostbyname_r_needs_reentrant=no
10809 else
10810   echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10812
10813                 CPPFLAGS_SAVE="$CPPFLAGS"
10814                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10815                 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h.  */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h.  */
10821 #include <netdb.h>
10822 int
10823 main ()
10824 {
10825 gethostbyname_r("", 0, 0);
10826   ;
10827   return 0;
10828 }
10829 _ACEOF
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832   (eval $ac_compile) 2>conftest.er1
10833   ac_status=$?
10834   grep -v '^ *+' conftest.er1 >conftest.err
10835   rm -f conftest.er1
10836   cat conftest.err >&5
10837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838   (exit $ac_status); } &&
10839          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841   (eval $ac_try) 2>&5
10842   ac_status=$?
10843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844   (exit $ac_status); }; } &&
10845          { ac_try='test -s conftest.$ac_objext'
10846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847   (eval $ac_try) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); }; }; then
10851   libjava_cv_gethostbyname_r_needs_reentrant=yes
10852 else
10853   echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 libjava_cv_gethostbyname_r_needs_reentrant=fail
10857 fi
10858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10859                 CPPFLAGS="$CPPFLAGS_SAVE"
10860
10861 fi
10862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10863           ac_ext=c
10864 ac_cpp='$CPP $CPPFLAGS'
10865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10868
10869
10870 fi
10871 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10872 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10873         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10874
10875 cat >>confdefs.h <<\_ACEOF
10876 #define _REENTRANT 1
10877 _ACEOF
10878
10879         fi
10880      ;;
10881      esac
10882
10883      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10884 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10885 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10886   echo $ECHO_N "(cached) $ECHO_C" >&6
10887 else
10888         cat >conftest.$ac_ext <<_ACEOF
10889 /* confdefs.h.  */
10890 _ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h.  */
10894
10895 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10896 # define _REENTRANT 1
10897 #endif
10898 #include <netdb.h>
10899 int
10900 main ()
10901 {
10902 struct hostent_data data;
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909   (eval $ac_compile) 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } &&
10916          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918   (eval $ac_try) 2>&5
10919   ac_status=$?
10920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921   (exit $ac_status); }; } &&
10922          { ac_try='test -s conftest.$ac_objext'
10923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924   (eval $ac_try) 2>&5
10925   ac_status=$?
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); }; }; then
10928   libjava_cv_struct_hostent_data=yes
10929 else
10930   echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10932
10933 libjava_cv_struct_hostent_data=no
10934 fi
10935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10936 fi
10937 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10938 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10939      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10940
10941 cat >>confdefs.h <<\_ACEOF
10942 #define HAVE_STRUCT_HOSTENT_DATA 1
10943 _ACEOF
10944
10945      fi
10946
10947 fi
10948 done
10949
10950
10951    # FIXME: libjava source code expects to find a prototype for
10952    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10953    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10954    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10955    # linkage check is enough, yet C++ code requires proper prototypes.)
10956    cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 #include <netdb.h>
10963
10964 _ACEOF
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10967
10968
10969 for ac_func in gethostbyaddr_r
10970 do
10971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10972 echo "$as_me:$LINENO: checking for $ac_func" >&5
10973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10974 if eval "test \"\${$as_ac_var+set}\" = set"; then
10975   echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977   if test x$gcc_no_link = xyes; then
10978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10980    { (exit 1); exit 1; }; }
10981 fi
10982 cat >conftest.$ac_ext <<_ACEOF
10983 /* confdefs.h.  */
10984 _ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h.  */
10988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10990 #define $ac_func innocuous_$ac_func
10991
10992 /* System header to define __stub macros and hopefully few prototypes,
10993     which can conflict with char $ac_func (); below.
10994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10995     <limits.h> exists even on freestanding compilers.  */
10996
10997 #ifdef __STDC__
10998 # include <limits.h>
10999 #else
11000 # include <assert.h>
11001 #endif
11002
11003 #undef $ac_func
11004
11005 /* Override any gcc2 internal prototype to avoid an error.  */
11006 #ifdef __cplusplus
11007 extern "C"
11008 {
11009 #endif
11010 /* We use char because int might match the return type of a gcc2
11011    builtin and then its argument prototype would still apply.  */
11012 char $ac_func ();
11013 /* The GNU C library defines this for functions which it implements
11014     to always fail with ENOSYS.  Some functions are actually named
11015     something starting with __ and the normal name is an alias.  */
11016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11017 choke me
11018 #else
11019 char (*f) () = $ac_func;
11020 #endif
11021 #ifdef __cplusplus
11022 }
11023 #endif
11024
11025 int
11026 main ()
11027 {
11028 return f != $ac_func;
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035   (eval $ac_link) 2>conftest.er1
11036   ac_status=$?
11037   grep -v '^ *+' conftest.er1 >conftest.err
11038   rm -f conftest.er1
11039   cat conftest.err >&5
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); } &&
11042          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044   (eval $ac_try) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; } &&
11048          { ac_try='test -s conftest$ac_exeext'
11049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050   (eval $ac_try) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; }; then
11054   eval "$as_ac_var=yes"
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 eval "$as_ac_var=no"
11060 fi
11061 rm -f conftest.err conftest.$ac_objext \
11062       conftest$ac_exeext conftest.$ac_ext
11063 fi
11064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11066 if test `eval echo '${'$as_ac_var'}'` = yes; then
11067   cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11069 _ACEOF
11070
11071
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_GETHOSTBYADDR_R 1
11074 _ACEOF
11075
11076      # There are two different kinds of gethostbyaddr_r.
11077      # We look for the one that returns `int'.
11078      # Hopefully this check is robust enough.
11079      cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h.  */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h.  */
11085 #include <netdb.h>
11086
11087 _ACEOF
11088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11089   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11090
11091
11092 cat >>confdefs.h <<\_ACEOF
11093 #define GETHOSTBYADDR_R_RETURNS_INT 1
11094 _ACEOF
11095
11096 fi
11097 rm -f conftest*
11098
11099 fi
11100 done
11101
11102 fi
11103 rm -f conftest*
11104
11105
11106
11107 for ac_func in gethostname
11108 do
11109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11110 echo "$as_me:$LINENO: checking for $ac_func" >&5
11111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11112 if eval "test \"\${$as_ac_var+set}\" = set"; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   if test x$gcc_no_link = xyes; then
11116   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11118    { (exit 1); exit 1; }; }
11119 fi
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11128 #define $ac_func innocuous_$ac_func
11129
11130 /* System header to define __stub macros and hopefully few prototypes,
11131     which can conflict with char $ac_func (); below.
11132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11133     <limits.h> exists even on freestanding compilers.  */
11134
11135 #ifdef __STDC__
11136 # include <limits.h>
11137 #else
11138 # include <assert.h>
11139 #endif
11140
11141 #undef $ac_func
11142
11143 /* Override any gcc2 internal prototype to avoid an error.  */
11144 #ifdef __cplusplus
11145 extern "C"
11146 {
11147 #endif
11148 /* We use char because int might match the return type of a gcc2
11149    builtin and then its argument prototype would still apply.  */
11150 char $ac_func ();
11151 /* The GNU C library defines this for functions which it implements
11152     to always fail with ENOSYS.  Some functions are actually named
11153     something starting with __ and the normal name is an alias.  */
11154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11155 choke me
11156 #else
11157 char (*f) () = $ac_func;
11158 #endif
11159 #ifdef __cplusplus
11160 }
11161 #endif
11162
11163 int
11164 main ()
11165 {
11166 return f != $ac_func;
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11173   (eval $ac_link) 2>conftest.er1
11174   ac_status=$?
11175   grep -v '^ *+' conftest.er1 >conftest.err
11176   rm -f conftest.er1
11177   cat conftest.err >&5
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); } &&
11180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182   (eval $ac_try) 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); }; } &&
11186          { ac_try='test -s conftest$ac_exeext'
11187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188   (eval $ac_try) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; }; then
11192   eval "$as_ac_var=yes"
11193 else
11194   echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 eval "$as_ac_var=no"
11198 fi
11199 rm -f conftest.err conftest.$ac_objext \
11200       conftest$ac_exeext conftest.$ac_ext
11201 fi
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11204 if test `eval echo '${'$as_ac_var'}'` = yes; then
11205   cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11207 _ACEOF
11208
11209
11210 cat >>confdefs.h <<\_ACEOF
11211 #define HAVE_GETHOSTNAME 1
11212 _ACEOF
11213
11214      cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h.  */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h.  */
11220 #include <unistd.h>
11221
11222 _ACEOF
11223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11224   $EGREP "gethostname" >/dev/null 2>&1; then
11225
11226
11227 cat >>confdefs.h <<\_ACEOF
11228 #define HAVE_GETHOSTNAME_DECL 1
11229 _ACEOF
11230
11231 fi
11232 rm -f conftest*
11233
11234 fi
11235 done
11236
11237
11238
11239 for ac_func in usleep
11240 do
11241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11242 echo "$as_me:$LINENO: checking for $ac_func" >&5
11243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_var+set}\" = set"; then
11245   echo $ECHO_N "(cached) $ECHO_C" >&6
11246 else
11247   if test x$gcc_no_link = xyes; then
11248   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11249 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11250    { (exit 1); exit 1; }; }
11251 fi
11252 cat >conftest.$ac_ext <<_ACEOF
11253 /* confdefs.h.  */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h.  */
11258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11260 #define $ac_func innocuous_$ac_func
11261
11262 /* System header to define __stub macros and hopefully few prototypes,
11263     which can conflict with char $ac_func (); below.
11264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11265     <limits.h> exists even on freestanding compilers.  */
11266
11267 #ifdef __STDC__
11268 # include <limits.h>
11269 #else
11270 # include <assert.h>
11271 #endif
11272
11273 #undef $ac_func
11274
11275 /* Override any gcc2 internal prototype to avoid an error.  */
11276 #ifdef __cplusplus
11277 extern "C"
11278 {
11279 #endif
11280 /* We use char because int might match the return type of a gcc2
11281    builtin and then its argument prototype would still apply.  */
11282 char $ac_func ();
11283 /* The GNU C library defines this for functions which it implements
11284     to always fail with ENOSYS.  Some functions are actually named
11285     something starting with __ and the normal name is an alias.  */
11286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11287 choke me
11288 #else
11289 char (*f) () = $ac_func;
11290 #endif
11291 #ifdef __cplusplus
11292 }
11293 #endif
11294
11295 int
11296 main ()
11297 {
11298 return f != $ac_func;
11299   ;
11300   return 0;
11301 }
11302 _ACEOF
11303 rm -f conftest.$ac_objext conftest$ac_exeext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305   (eval $ac_link) 2>conftest.er1
11306   ac_status=$?
11307   grep -v '^ *+' conftest.er1 >conftest.err
11308   rm -f conftest.er1
11309   cat conftest.err >&5
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); } &&
11312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314   (eval $ac_try) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; } &&
11318          { ac_try='test -s conftest$ac_exeext'
11319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   eval "$as_ac_var=yes"
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 eval "$as_ac_var=no"
11330 fi
11331 rm -f conftest.err conftest.$ac_objext \
11332       conftest$ac_exeext conftest.$ac_ext
11333 fi
11334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11336 if test `eval echo '${'$as_ac_var'}'` = yes; then
11337   cat >>confdefs.h <<_ACEOF
11338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11339 _ACEOF
11340
11341      cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 #include <unistd.h>
11348
11349 _ACEOF
11350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11351   $EGREP "usleep" >/dev/null 2>&1; then
11352
11353
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_USLEEP_DECL 1
11356 _ACEOF
11357
11358 fi
11359 rm -f conftest*
11360
11361 fi
11362 done
11363
11364
11365    # Look for these functions in the thread library, but only bother
11366    # if using POSIX threads.
11367    if test "$THREADS" = posix; then
11368       save_LIBS="$LIBS"
11369       LIBS="$LIBS $THREADLIBS"
11370       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11371       # E.g., Solaris.
11372
11373
11374 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11375 do
11376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377 echo "$as_me:$LINENO: checking for $ac_func" >&5
11378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11379 if eval "test \"\${$as_ac_var+set}\" = set"; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   if test x$gcc_no_link = xyes; then
11383   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11385    { (exit 1); exit 1; }; }
11386 fi
11387 cat >conftest.$ac_ext <<_ACEOF
11388 /* confdefs.h.  */
11389 _ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h.  */
11393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11395 #define $ac_func innocuous_$ac_func
11396
11397 /* System header to define __stub macros and hopefully few prototypes,
11398     which can conflict with char $ac_func (); below.
11399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11400     <limits.h> exists even on freestanding compilers.  */
11401
11402 #ifdef __STDC__
11403 # include <limits.h>
11404 #else
11405 # include <assert.h>
11406 #endif
11407
11408 #undef $ac_func
11409
11410 /* Override any gcc2 internal prototype to avoid an error.  */
11411 #ifdef __cplusplus
11412 extern "C"
11413 {
11414 #endif
11415 /* We use char because int might match the return type of a gcc2
11416    builtin and then its argument prototype would still apply.  */
11417 char $ac_func ();
11418 /* The GNU C library defines this for functions which it implements
11419     to always fail with ENOSYS.  Some functions are actually named
11420     something starting with __ and the normal name is an alias.  */
11421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11422 choke me
11423 #else
11424 char (*f) () = $ac_func;
11425 #endif
11426 #ifdef __cplusplus
11427 }
11428 #endif
11429
11430 int
11431 main ()
11432 {
11433 return f != $ac_func;
11434   ;
11435   return 0;
11436 }
11437 _ACEOF
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11440   (eval $ac_link) 2>conftest.er1
11441   ac_status=$?
11442   grep -v '^ *+' conftest.er1 >conftest.err
11443   rm -f conftest.er1
11444   cat conftest.err >&5
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); } &&
11447          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449   (eval $ac_try) 2>&5
11450   ac_status=$?
11451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452   (exit $ac_status); }; } &&
11453          { ac_try='test -s conftest$ac_exeext'
11454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455   (eval $ac_try) 2>&5
11456   ac_status=$?
11457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458   (exit $ac_status); }; }; then
11459   eval "$as_ac_var=yes"
11460 else
11461   echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11463
11464 eval "$as_ac_var=no"
11465 fi
11466 rm -f conftest.err conftest.$ac_objext \
11467       conftest$ac_exeext conftest.$ac_ext
11468 fi
11469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11471 if test `eval echo '${'$as_ac_var'}'` = yes; then
11472   cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11474 _ACEOF
11475
11476 fi
11477 done
11478
11479
11480       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11481       # Solaris 7 the name librt is preferred.
11482
11483 for ac_func in sched_yield
11484 do
11485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11486 echo "$as_me:$LINENO: checking for $ac_func" >&5
11487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11488 if eval "test \"\${$as_ac_var+set}\" = set"; then
11489   echo $ECHO_N "(cached) $ECHO_C" >&6
11490 else
11491   if test x$gcc_no_link = xyes; then
11492   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11494    { (exit 1); exit 1; }; }
11495 fi
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11503    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11504 #define $ac_func innocuous_$ac_func
11505
11506 /* System header to define __stub macros and hopefully few prototypes,
11507     which can conflict with char $ac_func (); below.
11508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11509     <limits.h> exists even on freestanding compilers.  */
11510
11511 #ifdef __STDC__
11512 # include <limits.h>
11513 #else
11514 # include <assert.h>
11515 #endif
11516
11517 #undef $ac_func
11518
11519 /* Override any gcc2 internal prototype to avoid an error.  */
11520 #ifdef __cplusplus
11521 extern "C"
11522 {
11523 #endif
11524 /* We use char because int might match the return type of a gcc2
11525    builtin and then its argument prototype would still apply.  */
11526 char $ac_func ();
11527 /* The GNU C library defines this for functions which it implements
11528     to always fail with ENOSYS.  Some functions are actually named
11529     something starting with __ and the normal name is an alias.  */
11530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11531 choke me
11532 #else
11533 char (*f) () = $ac_func;
11534 #endif
11535 #ifdef __cplusplus
11536 }
11537 #endif
11538
11539 int
11540 main ()
11541 {
11542 return f != $ac_func;
11543   ;
11544   return 0;
11545 }
11546 _ACEOF
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549   (eval $ac_link) 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } &&
11556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558   (eval $ac_try) 2>&5
11559   ac_status=$?
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); }; } &&
11562          { ac_try='test -s conftest$ac_exeext'
11563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564   (eval $ac_try) 2>&5
11565   ac_status=$?
11566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567   (exit $ac_status); }; }; then
11568   eval "$as_ac_var=yes"
11569 else
11570   echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11572
11573 eval "$as_ac_var=no"
11574 fi
11575 rm -f conftest.err conftest.$ac_objext \
11576       conftest$ac_exeext conftest.$ac_ext
11577 fi
11578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11580 if test `eval echo '${'$as_ac_var'}'` = yes; then
11581   cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11583 _ACEOF
11584
11585 else
11586
11587         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11588 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11589 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11590   echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592   ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lrt  $LIBS"
11594 if test x$gcc_no_link = xyes; then
11595   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11597    { (exit 1); exit 1; }; }
11598 fi
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h.  */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h.  */
11605
11606 /* Override any gcc2 internal prototype to avoid an error.  */
11607 #ifdef __cplusplus
11608 extern "C"
11609 #endif
11610 /* We use char because int might match the return type of a gcc2
11611    builtin and then its argument prototype would still apply.  */
11612 char sched_yield ();
11613 int
11614 main ()
11615 {
11616 sched_yield ();
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623   (eval $ac_link) 2>conftest.er1
11624   ac_status=$?
11625   grep -v '^ *+' conftest.er1 >conftest.err
11626   rm -f conftest.er1
11627   cat conftest.err >&5
11628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629   (exit $ac_status); } &&
11630          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632   (eval $ac_try) 2>&5
11633   ac_status=$?
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); }; } &&
11636          { ac_try='test -s conftest$ac_exeext'
11637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638   (eval $ac_try) 2>&5
11639   ac_status=$?
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); }; }; then
11642   ac_cv_lib_rt_sched_yield=yes
11643 else
11644   echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647 ac_cv_lib_rt_sched_yield=no
11648 fi
11649 rm -f conftest.err conftest.$ac_objext \
11650       conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11652 fi
11653 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11654 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11655 if test $ac_cv_lib_rt_sched_yield = yes; then
11656
11657           cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_SCHED_YIELD 1
11659 _ACEOF
11660
11661           THREADLIBS="$THREADLIBS -lrt"
11662           THREADSPEC="$THREADSPEC -lrt"
11663 else
11664
11665           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11666 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11667 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11668   echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670   ac_check_lib_save_LIBS=$LIBS
11671 LIBS="-lposix4  $LIBS"
11672 if test x$gcc_no_link = xyes; then
11673   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11675    { (exit 1); exit 1; }; }
11676 fi
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683
11684 /* Override any gcc2 internal prototype to avoid an error.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 /* We use char because int might match the return type of a gcc2
11689    builtin and then its argument prototype would still apply.  */
11690 char sched_yield ();
11691 int
11692 main ()
11693 {
11694 sched_yield ();
11695   ;
11696   return 0;
11697 }
11698 _ACEOF
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701   (eval $ac_link) 2>conftest.er1
11702   ac_status=$?
11703   grep -v '^ *+' conftest.er1 >conftest.err
11704   rm -f conftest.er1
11705   cat conftest.err >&5
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } &&
11708          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; } &&
11714          { ac_try='test -s conftest$ac_exeext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   ac_cv_lib_posix4_sched_yield=yes
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ac_cv_lib_posix4_sched_yield=no
11726 fi
11727 rm -f conftest.err conftest.$ac_objext \
11728       conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11730 fi
11731 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11732 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11733 if test $ac_cv_lib_posix4_sched_yield = yes; then
11734
11735             cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_SCHED_YIELD 1
11737 _ACEOF
11738
11739             THREADLIBS="$THREADLIBS -lposix4"
11740             THREADSPEC="$THREADSPEC -lposix4"
11741 fi
11742
11743 fi
11744
11745 fi
11746 done
11747
11748       LIBS="$save_LIBS"
11749
11750       # We can save a little space at runtime if the mutex has m_count
11751       # or __m_count.  This is a nice hack for Linux.
11752       cat >conftest.$ac_ext <<_ACEOF
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 #include <pthread.h>
11759 int
11760 main ()
11761 {
11762
11763           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11764
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771   (eval $ac_compile) 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } &&
11778          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
11784          { ac_try='test -s conftest.$ac_objext'
11785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786   (eval $ac_try) 2>&5
11787   ac_status=$?
11788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789   (exit $ac_status); }; }; then
11790
11791 cat >>confdefs.h <<\_ACEOF
11792 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11793 _ACEOF
11794
11795 else
11796   echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799
11800         cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #include <pthread.h>
11807 int
11808 main ()
11809 {
11810
11811             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11812
11813   ;
11814   return 0;
11815 }
11816 _ACEOF
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819   (eval $ac_compile) 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } &&
11826          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828   (eval $ac_try) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; } &&
11832          { ac_try='test -s conftest.$ac_objext'
11833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834   (eval $ac_try) 2>&5
11835   ac_status=$?
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); }; }; then
11838
11839 cat >>confdefs.h <<\_ACEOF
11840 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11841 _ACEOF
11842
11843 else
11844   echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11846
11847 fi
11848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11849 fi
11850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11851    fi
11852
11853    # We require a way to get the time.
11854    time_found=no
11855
11856
11857
11858 for ac_func in gettimeofday time ftime
11859 do
11860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861 echo "$as_me:$LINENO: checking for $ac_func" >&5
11862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11863 if eval "test \"\${$as_ac_var+set}\" = set"; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   if test x$gcc_no_link = xyes; then
11867   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11869    { (exit 1); exit 1; }; }
11870 fi
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11879 #define $ac_func innocuous_$ac_func
11880
11881 /* System header to define __stub macros and hopefully few prototypes,
11882     which can conflict with char $ac_func (); below.
11883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11884     <limits.h> exists even on freestanding compilers.  */
11885
11886 #ifdef __STDC__
11887 # include <limits.h>
11888 #else
11889 # include <assert.h>
11890 #endif
11891
11892 #undef $ac_func
11893
11894 /* Override any gcc2 internal prototype to avoid an error.  */
11895 #ifdef __cplusplus
11896 extern "C"
11897 {
11898 #endif
11899 /* We use char because int might match the return type of a gcc2
11900    builtin and then its argument prototype would still apply.  */
11901 char $ac_func ();
11902 /* The GNU C library defines this for functions which it implements
11903     to always fail with ENOSYS.  Some functions are actually named
11904     something starting with __ and the normal name is an alias.  */
11905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11906 choke me
11907 #else
11908 char (*f) () = $ac_func;
11909 #endif
11910 #ifdef __cplusplus
11911 }
11912 #endif
11913
11914 int
11915 main ()
11916 {
11917 return f != $ac_func;
11918   ;
11919   return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924   (eval $ac_link) 2>conftest.er1
11925   ac_status=$?
11926   grep -v '^ *+' conftest.er1 >conftest.err
11927   rm -f conftest.er1
11928   cat conftest.err >&5
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); } &&
11931          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933   (eval $ac_try) 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; } &&
11937          { ac_try='test -s conftest$ac_exeext'
11938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939   (eval $ac_try) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; }; then
11943   eval "$as_ac_var=yes"
11944 else
11945   echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11947
11948 eval "$as_ac_var=no"
11949 fi
11950 rm -f conftest.err conftest.$ac_objext \
11951       conftest$ac_exeext conftest.$ac_ext
11952 fi
11953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11955 if test `eval echo '${'$as_ac_var'}'` = yes; then
11956   cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 _ACEOF
11959  time_found=yes
11960 fi
11961 done
11962
11963    if test "$time_found" = no; then
11964       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11965 echo "$as_me: error: no function found to get the time" >&2;}
11966    { (exit 1); exit 1; }; }
11967    fi
11968
11969
11970 for ac_func in memmove
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"                   || test ! -s conftest.err'
12044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045   (eval $ac_try) 2>&5
12046   ac_status=$?
12047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048   (exit $ac_status); }; } &&
12049          { ac_try='test -s conftest$ac_exeext'
12050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051   (eval $ac_try) 2>&5
12052   ac_status=$?
12053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054   (exit $ac_status); }; }; then
12055   eval "$as_ac_var=yes"
12056 else
12057   echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060 eval "$as_ac_var=no"
12061 fi
12062 rm -f conftest.err conftest.$ac_objext \
12063       conftest$ac_exeext conftest.$ac_ext
12064 fi
12065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068   cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12070 _ACEOF
12071
12072 fi
12073 done
12074
12075
12076    # We require memcpy.
12077    memcpy_found=no
12078
12079 for ac_func in memcpy
12080 do
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_var+set}\" = set"; then
12085   echo $ECHO_N "(cached) $ECHO_C" >&6
12086 else
12087   if test x$gcc_no_link = xyes; then
12088   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12090    { (exit 1); exit 1; }; }
12091 fi
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h.  */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h.  */
12098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12100 #define $ac_func innocuous_$ac_func
12101
12102 /* System header to define __stub macros and hopefully few prototypes,
12103     which can conflict with char $ac_func (); below.
12104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12105     <limits.h> exists even on freestanding compilers.  */
12106
12107 #ifdef __STDC__
12108 # include <limits.h>
12109 #else
12110 # include <assert.h>
12111 #endif
12112
12113 #undef $ac_func
12114
12115 /* Override any gcc2 internal prototype to avoid an error.  */
12116 #ifdef __cplusplus
12117 extern "C"
12118 {
12119 #endif
12120 /* We use char because int might match the return type of a gcc2
12121    builtin and then its argument prototype would still apply.  */
12122 char $ac_func ();
12123 /* The GNU C library defines this for functions which it implements
12124     to always fail with ENOSYS.  Some functions are actually named
12125     something starting with __ and the normal name is an alias.  */
12126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12127 choke me
12128 #else
12129 char (*f) () = $ac_func;
12130 #endif
12131 #ifdef __cplusplus
12132 }
12133 #endif
12134
12135 int
12136 main ()
12137 {
12138 return f != $ac_func;
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145   (eval $ac_link) 2>conftest.er1
12146   ac_status=$?
12147   grep -v '^ *+' conftest.er1 >conftest.err
12148   rm -f conftest.er1
12149   cat conftest.err >&5
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); } &&
12152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154   (eval $ac_try) 2>&5
12155   ac_status=$?
12156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157   (exit $ac_status); }; } &&
12158          { ac_try='test -s conftest$ac_exeext'
12159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160   (eval $ac_try) 2>&5
12161   ac_status=$?
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); }; }; then
12164   eval "$as_ac_var=yes"
12165 else
12166   echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169 eval "$as_ac_var=no"
12170 fi
12171 rm -f conftest.err conftest.$ac_objext \
12172       conftest$ac_exeext conftest.$ac_ext
12173 fi
12174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12176 if test `eval echo '${'$as_ac_var'}'` = yes; then
12177   cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12179 _ACEOF
12180  memcpy_found=yes
12181 fi
12182 done
12183
12184    if test "$memcpy_found" = no; then
12185       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12186 echo "$as_me: error: memcpy is required" >&2;}
12187    { (exit 1); exit 1; }; }
12188    fi
12189
12190    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12193   echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195   ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-ldl  $LIBS"
12197 if test x$gcc_no_link = xyes; then
12198   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12200    { (exit 1); exit 1; }; }
12201 fi
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h.  */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h.  */
12208
12209 /* Override any gcc2 internal prototype to avoid an error.  */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 /* We use char because int might match the return type of a gcc2
12214    builtin and then its argument prototype would still apply.  */
12215 char dlopen ();
12216 int
12217 main ()
12218 {
12219 dlopen ();
12220   ;
12221   return 0;
12222 }
12223 _ACEOF
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226   (eval $ac_link) 2>conftest.er1
12227   ac_status=$?
12228   grep -v '^ *+' conftest.er1 >conftest.err
12229   rm -f conftest.er1
12230   cat conftest.err >&5
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); } &&
12233          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235   (eval $ac_try) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; } &&
12239          { ac_try='test -s conftest$ac_exeext'
12240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241   (eval $ac_try) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; }; then
12245   ac_cv_lib_dl_dlopen=yes
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250 ac_cv_lib_dl_dlopen=no
12251 fi
12252 rm -f conftest.err conftest.$ac_objext \
12253       conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12255 fi
12256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12258 if test $ac_cv_lib_dl_dlopen = yes; then
12259
12260
12261 cat >>confdefs.h <<\_ACEOF
12262 #define HAVE_DLOPEN 1
12263 _ACEOF
12264
12265 fi
12266
12267
12268    # Some library-finding code we stole from Tcl.
12269    #--------------------------------------------------------------------
12270    #    Check for the existence of the -lsocket and -lnsl libraries.
12271    #    The order here is important, so that they end up in the right
12272    #    order in the command line generated by make.  Here are some
12273    #    special considerations:
12274    #    1. Use "connect" and "accept" to check for -lsocket, and
12275    #       "gethostbyname" to check for -lnsl.
12276    #    2. Use each function name only once:  can't redo a check because
12277    #       autoconf caches the results of the last check and won't redo it.
12278    #    3. Use -lnsl and -lsocket only if they supply procedures that
12279    #       aren't already present in the normal libraries.  This is because
12280    #       IRIX 5.2 has libraries, but they aren't needed and they're
12281    #       bogus:  they goof up name resolution if used.
12282    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12283    #       To get around this problem, check for both libraries together
12284    #       if -lsocket doesn't work by itself.
12285    #--------------------------------------------------------------------
12286
12287    echo "$as_me:$LINENO: checking for socket libraries" >&5
12288 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12289 if test "${gcj_cv_lib_sockets+set}" = set; then
12290   echo $ECHO_N "(cached) $ECHO_C" >&6
12291 else
12292   gcj_cv_lib_sockets=
12293      gcj_checkBoth=0
12294      unset ac_cv_func_connect
12295      echo "$as_me:$LINENO: checking for connect" >&5
12296 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12297 if test "${ac_cv_func_connect+set}" = set; then
12298   echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300   if test x$gcc_no_link = xyes; then
12301   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12303    { (exit 1); exit 1; }; }
12304 fi
12305 cat >conftest.$ac_ext <<_ACEOF
12306 /* confdefs.h.  */
12307 _ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h.  */
12311 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12313 #define connect innocuous_connect
12314
12315 /* System header to define __stub macros and hopefully few prototypes,
12316     which can conflict with char connect (); below.
12317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12318     <limits.h> exists even on freestanding compilers.  */
12319
12320 #ifdef __STDC__
12321 # include <limits.h>
12322 #else
12323 # include <assert.h>
12324 #endif
12325
12326 #undef connect
12327
12328 /* Override any gcc2 internal prototype to avoid an error.  */
12329 #ifdef __cplusplus
12330 extern "C"
12331 {
12332 #endif
12333 /* We use char because int might match the return type of a gcc2
12334    builtin and then its argument prototype would still apply.  */
12335 char connect ();
12336 /* The GNU C library defines this for functions which it implements
12337     to always fail with ENOSYS.  Some functions are actually named
12338     something starting with __ and the normal name is an alias.  */
12339 #if defined (__stub_connect) || defined (__stub___connect)
12340 choke me
12341 #else
12342 char (*f) () = connect;
12343 #endif
12344 #ifdef __cplusplus
12345 }
12346 #endif
12347
12348 int
12349 main ()
12350 {
12351 return f != connect;
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358   (eval $ac_link) 2>conftest.er1
12359   ac_status=$?
12360   grep -v '^ *+' conftest.er1 >conftest.err
12361   rm -f conftest.er1
12362   cat conftest.err >&5
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); } &&
12365          { ac_try='test -z "$ac_c_werror_flag"                   || 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_func_connect=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382 ac_cv_func_connect=no
12383 fi
12384 rm -f conftest.err conftest.$ac_objext \
12385       conftest$ac_exeext conftest.$ac_ext
12386 fi
12387 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12388 echo "${ECHO_T}$ac_cv_func_connect" >&6
12389 if test $ac_cv_func_connect = yes; then
12390   gcj_checkSocket=0
12391 else
12392   gcj_checkSocket=1
12393 fi
12394
12395      if test "$gcj_checkSocket" = 1; then
12396          unset ac_cv_func_connect
12397          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12398 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12399 if test "${ac_cv_lib_socket_main+set}" = set; then
12400   echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402   ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-lsocket  $LIBS"
12404 if test x$gcc_no_link = xyes; then
12405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12407    { (exit 1); exit 1; }; }
12408 fi
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h.  */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h.  */
12415
12416
12417 int
12418 main ()
12419 {
12420 main ();
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427   (eval $ac_link) 2>conftest.er1
12428   ac_status=$?
12429   grep -v '^ *+' conftest.er1 >conftest.err
12430   rm -f conftest.er1
12431   cat conftest.err >&5
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); } &&
12434          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436   (eval $ac_try) 2>&5
12437   ac_status=$?
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); }; } &&
12440          { ac_try='test -s conftest$ac_exeext'
12441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442   (eval $ac_try) 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); }; }; then
12446   ac_cv_lib_socket_main=yes
12447 else
12448   echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 ac_cv_lib_socket_main=no
12452 fi
12453 rm -f conftest.err conftest.$ac_objext \
12454       conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12456 fi
12457 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12458 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12459 if test $ac_cv_lib_socket_main = yes; then
12460   gcj_cv_lib_sockets="-lsocket"
12461 else
12462   gcj_checkBoth=1
12463 fi
12464
12465      fi
12466      if test "$gcj_checkBoth" = 1; then
12467          gcj_oldLibs=$LIBS
12468          LIBS="$LIBS -lsocket -lnsl"
12469          unset ac_cv_func_accept
12470          echo "$as_me:$LINENO: checking for accept" >&5
12471 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12472 if test "${ac_cv_func_accept+set}" = set; then
12473   echo $ECHO_N "(cached) $ECHO_C" >&6
12474 else
12475   if test x$gcc_no_link = xyes; then
12476   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12478    { (exit 1); exit 1; }; }
12479 fi
12480 cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12488 #define accept innocuous_accept
12489
12490 /* System header to define __stub macros and hopefully few prototypes,
12491     which can conflict with char accept (); below.
12492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12493     <limits.h> exists even on freestanding compilers.  */
12494
12495 #ifdef __STDC__
12496 # include <limits.h>
12497 #else
12498 # include <assert.h>
12499 #endif
12500
12501 #undef accept
12502
12503 /* Override any gcc2 internal prototype to avoid an error.  */
12504 #ifdef __cplusplus
12505 extern "C"
12506 {
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 accept ();
12511 /* The GNU C library defines this for functions which it implements
12512     to always fail with ENOSYS.  Some functions are actually named
12513     something starting with __ and the normal name is an alias.  */
12514 #if defined (__stub_accept) || defined (__stub___accept)
12515 choke me
12516 #else
12517 char (*f) () = accept;
12518 #endif
12519 #ifdef __cplusplus
12520 }
12521 #endif
12522
12523 int
12524 main ()
12525 {
12526 return f != accept;
12527   ;
12528   return 0;
12529 }
12530 _ACEOF
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12533   (eval $ac_link) 2>conftest.er1
12534   ac_status=$?
12535   grep -v '^ *+' conftest.er1 >conftest.err
12536   rm -f conftest.er1
12537   cat conftest.err >&5
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); } &&
12540          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542   (eval $ac_try) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; } &&
12546          { ac_try='test -s conftest$ac_exeext'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   ac_cv_func_accept=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 ac_cv_func_accept=no
12558 fi
12559 rm -f conftest.err conftest.$ac_objext \
12560       conftest$ac_exeext conftest.$ac_ext
12561 fi
12562 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12563 echo "${ECHO_T}$ac_cv_func_accept" >&6
12564 if test $ac_cv_func_accept = yes; then
12565   gcj_checkNsl=0
12566                         gcj_cv_lib_sockets="-lsocket -lnsl"
12567 fi
12568
12569          unset ac_cv_func_accept
12570          LIBS=$gcj_oldLibs
12571      fi
12572      unset ac_cv_func_gethostbyname
12573      gcj_oldLibs=$LIBS
12574      LIBS="$LIBS $gcj_cv_lib_sockets"
12575      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12576 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12577 if test "${ac_cv_func_gethostbyname+set}" = set; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   if test x$gcc_no_link = xyes; then
12581   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12583    { (exit 1); exit 1; }; }
12584 fi
12585 cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12593 #define gethostbyname innocuous_gethostbyname
12594
12595 /* System header to define __stub macros and hopefully few prototypes,
12596     which can conflict with char gethostbyname (); below.
12597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12598     <limits.h> exists even on freestanding compilers.  */
12599
12600 #ifdef __STDC__
12601 # include <limits.h>
12602 #else
12603 # include <assert.h>
12604 #endif
12605
12606 #undef gethostbyname
12607
12608 /* Override any gcc2 internal prototype to avoid an error.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 {
12612 #endif
12613 /* We use char because int might match the return type of a gcc2
12614    builtin and then its argument prototype would still apply.  */
12615 char gethostbyname ();
12616 /* The GNU C library defines this for functions which it implements
12617     to always fail with ENOSYS.  Some functions are actually named
12618     something starting with __ and the normal name is an alias.  */
12619 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12620 choke me
12621 #else
12622 char (*f) () = gethostbyname;
12623 #endif
12624 #ifdef __cplusplus
12625 }
12626 #endif
12627
12628 int
12629 main ()
12630 {
12631 return f != gethostbyname;
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638   (eval $ac_link) 2>conftest.er1
12639   ac_status=$?
12640   grep -v '^ *+' conftest.er1 >conftest.err
12641   rm -f conftest.er1
12642   cat conftest.err >&5
12643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644   (exit $ac_status); } &&
12645          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; } &&
12651          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12657   ac_cv_func_gethostbyname=yes
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_cv_func_gethostbyname=no
12663 fi
12664 rm -f conftest.err conftest.$ac_objext \
12665       conftest$ac_exeext conftest.$ac_ext
12666 fi
12667 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12668 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12669 if test $ac_cv_func_gethostbyname = yes; then
12670   :
12671 else
12672   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12673 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12674 if test "${ac_cv_lib_nsl_main+set}" = set; then
12675   echo $ECHO_N "(cached) $ECHO_C" >&6
12676 else
12677   ac_check_lib_save_LIBS=$LIBS
12678 LIBS="-lnsl  $LIBS"
12679 if test x$gcc_no_link = xyes; then
12680   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12682    { (exit 1); exit 1; }; }
12683 fi
12684 cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h.  */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h.  */
12690
12691
12692 int
12693 main ()
12694 {
12695 main ();
12696   ;
12697   return 0;
12698 }
12699 _ACEOF
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702   (eval $ac_link) 2>conftest.er1
12703   ac_status=$?
12704   grep -v '^ *+' conftest.er1 >conftest.err
12705   rm -f conftest.er1
12706   cat conftest.err >&5
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); } &&
12709          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711   (eval $ac_try) 2>&5
12712   ac_status=$?
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); }; } &&
12715          { ac_try='test -s conftest$ac_exeext'
12716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717   (eval $ac_try) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_cv_lib_nsl_main=yes
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_cv_lib_nsl_main=no
12727 fi
12728 rm -f conftest.err conftest.$ac_objext \
12729       conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12731 fi
12732 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12733 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12734 if test $ac_cv_lib_nsl_main = yes; then
12735   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12736 fi
12737
12738 fi
12739
12740      unset ac_cv_func_gethostbyname
12741      LIBS=$gcj_oldLIBS
12742
12743 fi
12744 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12745 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12746    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12747
12748    if test "$with_system_zlib" = yes; then
12749       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12750 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12751 if test "${ac_cv_lib_z_deflate+set}" = set; then
12752   echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754   ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lz  $LIBS"
12756 if test x$gcc_no_link = xyes; then
12757   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12759    { (exit 1); exit 1; }; }
12760 fi
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767
12768 /* Override any gcc2 internal prototype to avoid an error.  */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773    builtin and then its argument prototype would still apply.  */
12774 char deflate ();
12775 int
12776 main ()
12777 {
12778 deflate ();
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785   (eval $ac_link) 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; } &&
12798          { ac_try='test -s conftest$ac_exeext'
12799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800   (eval $ac_try) 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); }; }; then
12804   ac_cv_lib_z_deflate=yes
12805 else
12806   echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12808
12809 ac_cv_lib_z_deflate=no
12810 fi
12811 rm -f conftest.err conftest.$ac_objext \
12812       conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12814 fi
12815 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12816 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12817 if test $ac_cv_lib_z_deflate = yes; then
12818   ZLIBSPEC=-lz
12819 else
12820   ZLIBSPEC=
12821 fi
12822
12823    fi
12824
12825    # Test for Gtk stuff, if asked for.
12826    if test "$use_gtk_awt" = yes; then
12827
12828   succeeded=no
12829
12830   if test -z "$PKG_CONFIG"; then
12831     # Extract the first word of "pkg-config", so it can be a program name with args.
12832 set dummy pkg-config; ac_word=$2
12833 echo "$as_me:$LINENO: checking for $ac_word" >&5
12834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   case $PKG_CONFIG in
12839   [\\/]* | ?:[\\/]*)
12840   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12841   ;;
12842   *)
12843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12845 do
12846   IFS=$as_save_IFS
12847   test -z "$as_dir" && as_dir=.
12848   for ac_exec_ext in '' $ac_executable_extensions; do
12849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12852     break 2
12853   fi
12854 done
12855 done
12856
12857   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12858   ;;
12859 esac
12860 fi
12861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12862
12863 if test -n "$PKG_CONFIG"; then
12864   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12865 echo "${ECHO_T}$PKG_CONFIG" >&6
12866 else
12867   echo "$as_me:$LINENO: result: no" >&5
12868 echo "${ECHO_T}no" >&6
12869 fi
12870
12871   fi
12872
12873   if test "$PKG_CONFIG" = "no" ; then
12874      echo "*** The pkg-config script could not be found. Make sure it is"
12875      echo "*** in your path, or set the PKG_CONFIG environment variable"
12876      echo "*** to the full path to pkg-config."
12877      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12878   else
12879      PKG_CONFIG_MIN_VERSION=0.9.0
12880      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12881         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12882 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12883
12884         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12885             echo "$as_me:$LINENO: result: yes" >&5
12886 echo "${ECHO_T}yes" >&6
12887             succeeded=yes
12888
12889             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12890 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12891             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12892             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12893 echo "${ECHO_T}$GTK_CFLAGS" >&6
12894
12895             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12896 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12897             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12898             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12899 echo "${ECHO_T}$GTK_LIBS" >&6
12900         else
12901             GTK_CFLAGS=""
12902             GTK_LIBS=""
12903             ## If we have a custom action on failure, don't print errors, but
12904             ## do set a variable so people can do so.
12905             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12906             echo $GTK_PKG_ERRORS
12907         fi
12908
12909
12910
12911      else
12912         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12913         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12914      fi
12915   fi
12916
12917   if test $succeeded = yes; then
12918      :
12919   else
12920      { { 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
12921 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;}
12922    { (exit 1); exit 1; }; }
12923   fi
12924
12925
12926
12927
12928
12929   succeeded=no
12930
12931   if test -z "$PKG_CONFIG"; then
12932     # Extract the first word of "pkg-config", so it can be a program name with args.
12933 set dummy pkg-config; ac_word=$2
12934 echo "$as_me:$LINENO: checking for $ac_word" >&5
12935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   case $PKG_CONFIG in
12940   [\\/]* | ?:[\\/]*)
12941   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12942   ;;
12943   *)
12944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12946 do
12947   IFS=$as_save_IFS
12948   test -z "$as_dir" && as_dir=.
12949   for ac_exec_ext in '' $ac_executable_extensions; do
12950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12953     break 2
12954   fi
12955 done
12956 done
12957
12958   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12959   ;;
12960 esac
12961 fi
12962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12963
12964 if test -n "$PKG_CONFIG"; then
12965   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12966 echo "${ECHO_T}$PKG_CONFIG" >&6
12967 else
12968   echo "$as_me:$LINENO: result: no" >&5
12969 echo "${ECHO_T}no" >&6
12970 fi
12971
12972   fi
12973
12974   if test "$PKG_CONFIG" = "no" ; then
12975      echo "*** The pkg-config script could not be found. Make sure it is"
12976      echo "*** in your path, or set the PKG_CONFIG environment variable"
12977      echo "*** to the full path to pkg-config."
12978      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12979   else
12980      PKG_CONFIG_MIN_VERSION=0.9.0
12981      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12982         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12983 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12984
12985         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12986             echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6
12988             succeeded=yes
12989
12990             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12991 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12992             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12993             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12994 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12995
12996             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12997 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12998             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12999             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13000 echo "${ECHO_T}$GLIB_LIBS" >&6
13001         else
13002             GLIB_CFLAGS=""
13003             GLIB_LIBS=""
13004             ## If we have a custom action on failure, don't print errors, but
13005             ## do set a variable so people can do so.
13006             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13007             echo $GLIB_PKG_ERRORS
13008         fi
13009
13010
13011
13012      else
13013         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13014         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13015      fi
13016   fi
13017
13018   if test $succeeded = yes; then
13019      :
13020   else
13021      { { 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
13022 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;}
13023    { (exit 1); exit 1; }; }
13024   fi
13025
13026
13027
13028
13029
13030   succeeded=no
13031
13032   if test -z "$PKG_CONFIG"; then
13033     # Extract the first word of "pkg-config", so it can be a program name with args.
13034 set dummy pkg-config; ac_word=$2
13035 echo "$as_me:$LINENO: checking for $ac_word" >&5
13036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13038   echo $ECHO_N "(cached) $ECHO_C" >&6
13039 else
13040   case $PKG_CONFIG in
13041   [\\/]* | ?:[\\/]*)
13042   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13043   ;;
13044   *)
13045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13047 do
13048   IFS=$as_save_IFS
13049   test -z "$as_dir" && as_dir=.
13050   for ac_exec_ext in '' $ac_executable_extensions; do
13051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13054     break 2
13055   fi
13056 done
13057 done
13058
13059   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13060   ;;
13061 esac
13062 fi
13063 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13064
13065 if test -n "$PKG_CONFIG"; then
13066   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13067 echo "${ECHO_T}$PKG_CONFIG" >&6
13068 else
13069   echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6
13071 fi
13072
13073   fi
13074
13075   if test "$PKG_CONFIG" = "no" ; then
13076      echo "*** The pkg-config script could not be found. Make sure it is"
13077      echo "*** in your path, or set the PKG_CONFIG environment variable"
13078      echo "*** to the full path to pkg-config."
13079      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13080   else
13081      PKG_CONFIG_MIN_VERSION=0.9.0
13082      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13083         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13084 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13085
13086         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13087             echo "$as_me:$LINENO: result: yes" >&5
13088 echo "${ECHO_T}yes" >&6
13089             succeeded=yes
13090
13091             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13092 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13093             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13094             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13095 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13096
13097             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13098 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13099             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13100             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13101 echo "${ECHO_T}$LIBART_LIBS" >&6
13102         else
13103             LIBART_CFLAGS=""
13104             LIBART_LIBS=""
13105             ## If we have a custom action on failure, don't print errors, but
13106             ## do set a variable so people can do so.
13107             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13108             echo $LIBART_PKG_ERRORS
13109         fi
13110
13111
13112
13113      else
13114         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13115         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13116      fi
13117   fi
13118
13119   if test $succeeded = yes; then
13120      :
13121   else
13122      { { 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
13123 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;}
13124    { (exit 1); exit 1; }; }
13125   fi
13126
13127
13128
13129
13130       # We require the XTest Extension to support java.awt.Robot.
13131       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13132 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13133 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13134   echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136   ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-lXtst ${X_LIBS} $LIBS"
13138 if test x$gcc_no_link = xyes; then
13139   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13141    { (exit 1); exit 1; }; }
13142 fi
13143 cat >conftest.$ac_ext <<_ACEOF
13144 /* confdefs.h.  */
13145 _ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h.  */
13149
13150 /* Override any gcc2 internal prototype to avoid an error.  */
13151 #ifdef __cplusplus
13152 extern "C"
13153 #endif
13154 /* We use char because int might match the return type of a gcc2
13155    builtin and then its argument prototype would still apply.  */
13156 char XTestQueryExtension ();
13157 int
13158 main ()
13159 {
13160 XTestQueryExtension ();
13161   ;
13162   return 0;
13163 }
13164 _ACEOF
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13167   (eval $ac_link) 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } &&
13174          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176   (eval $ac_try) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); }; } &&
13180          { ac_try='test -s conftest$ac_exeext'
13181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182   (eval $ac_try) 2>&5
13183   ac_status=$?
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); }; }; then
13186   ac_cv_lib_Xtst_XTestQueryExtension=yes
13187 else
13188   echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 ac_cv_lib_Xtst_XTestQueryExtension=no
13192 fi
13193 rm -f conftest.err conftest.$ac_objext \
13194       conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13196 fi
13197 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13198 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13199 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13200   true
13201 else
13202   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13203 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13204    { (exit 1); exit 1; }; }
13205 fi
13206
13207    fi
13208
13209    # On Solaris, and maybe other architectures, the Boehm collector
13210    # requires -ldl.
13211    if test "$GC" = boehm; then
13212       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13213 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13214 if test "${ac_cv_lib_dl_main+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   ac_check_lib_save_LIBS=$LIBS
13218 LIBS="-ldl  $LIBS"
13219 if test x$gcc_no_link = xyes; then
13220   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13222    { (exit 1); exit 1; }; }
13223 fi
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230
13231
13232 int
13233 main ()
13234 {
13235 main ();
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242   (eval $ac_link) 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } &&
13249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251   (eval $ac_try) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; } &&
13255          { ac_try='test -s conftest$ac_exeext'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; }; then
13261   ac_cv_lib_dl_main=yes
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266 ac_cv_lib_dl_main=no
13267 fi
13268 rm -f conftest.err conftest.$ac_objext \
13269       conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13271 fi
13272 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13273 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13274 if test $ac_cv_lib_dl_main = yes; then
13275   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13276 fi
13277
13278    fi
13279 fi
13280
13281
13282 if test "$supply_backtrace" = yes; then
13283   SUPPLY_BACKTRACE_TRUE=
13284   SUPPLY_BACKTRACE_FALSE='#'
13285 else
13286   SUPPLY_BACKTRACE_TRUE='#'
13287   SUPPLY_BACKTRACE_FALSE=
13288 fi
13289
13290
13291 if test -z "${with_multisubdir}"; then
13292    builddotdot=.
13293 else
13294    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13295 fi
13296
13297 NATIVE=yes
13298
13299 # Which gcj do we use?
13300 which_gcj=default
13301 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13302 if test -n "${with_cross_host}"; then
13303   # We are being configured with a cross compiler. We can't
13304   # use ac_exeext, because that is for the target platform.
13305   NATIVE=no
13306   cross_host_exeext=
13307   case "${with_cross_host}" in
13308      *mingw* | *cygwin*)
13309          cross_host_exeext=.exe
13310      ;;
13311   esac
13312   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13313      if test x"$build_noncanonical" = x"$with_cross_host"; then
13314         # Ordinary cross (host!=target and host=build)
13315         which_gcj=built
13316      else
13317         # Canadian cross (host!=target and host!=build)
13318         which_gcj=cross
13319      fi
13320   else
13321      which_gcj=cross
13322   fi
13323 else
13324   # We are being configured with a native or crossed-native compiler
13325   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13326      if test x"$build" = x"$host"; then
13327         # True native build (host=target and host=build)
13328         which_gcj=built
13329      else
13330         # Crossed-native build (host=target and host!=build)
13331         which_gcj=cross
13332      fi
13333   else
13334      which_gcj=path
13335   fi
13336 fi
13337 case "${which_gcj}" in
13338    built)
13339       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13340       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13341       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13342    ;;
13343    cross)
13344       if test "x${with_newlib}" = "xyes"; then
13345          # FIXME (comment): Why is this needed?
13346          GCC_UNWIND_INCLUDE=
13347          GCJ="${target_noncanonical}-gcj"
13348       else
13349          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13350       fi
13351       ZIP='$(target_noncanonical)-fastjar'
13352       GCJH='$(target_noncanonical)-gcjh'
13353    ;;
13354    path)
13355       GCJ="gcj -B`${PWDCMD-pwd}`/"
13356       ## In this case, gcj is found outside the build tree.  However, zip is
13357       ## found in the build tree.
13358       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13359       GCJH=gcjh
13360    ;;
13361 esac
13362
13363
13364
13365
13366 # Create it, so that compile/link tests don't fail
13367 test -f libgcj.spec || touch libgcj.spec
13368
13369 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13370 case $build in
13371     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13372     *)         CLASSPATH_SEPARATOR=':' ;;
13373 esac
13374
13375
13376 # We must search the source tree for java.lang, since we still don't
13377 # have libgcj.jar nor java/lang/*.class
13378 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13379 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13380
13381 # Since some classes depend on this one, we need its source available
13382 # before we can do any GCJ compilation test :-(
13383 if test ! -f gnu/classpath/Configuration.java; then
13384   test -d gnu || mkdir gnu
13385   test -d gnu/classpath || mkdir gnu/classpath
13386   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13387       -e 's,@TOOLKIT@,$TOOLKIT,' \
13388         < $srcdir/gnu/classpath/Configuration.java.in \
13389         > gnu/classpath/Configuration.java
13390   # We do not want to redirect the output of the grep below to /dev/null,
13391   # but we add /dev/null to the input list so that grep will print the
13392   # filename of Configuration.java in case it finds any matches.
13393   if grep @ gnu/classpath/Configuration.java /dev/null; then
13394     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13395 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13396    { (exit 1); exit 1; }; }
13397   fi
13398 fi
13399
13400 if test -n "$ac_tool_prefix"; then
13401   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13402 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13403 echo "$as_me:$LINENO: checking for $ac_word" >&5
13404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13405 if test "${ac_cv_prog_GCJ+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   if test -n "$GCJ"; then
13409   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13410 else
13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13413 do
13414   IFS=$as_save_IFS
13415   test -z "$as_dir" && as_dir=.
13416   for ac_exec_ext in '' $ac_executable_extensions; do
13417   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13418     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13420     break 2
13421   fi
13422 done
13423 done
13424
13425 fi
13426 fi
13427 GCJ=$ac_cv_prog_GCJ
13428 if test -n "$GCJ"; then
13429   echo "$as_me:$LINENO: result: $GCJ" >&5
13430 echo "${ECHO_T}$GCJ" >&6
13431 else
13432   echo "$as_me:$LINENO: result: no" >&5
13433 echo "${ECHO_T}no" >&6
13434 fi
13435
13436 fi
13437 if test -z "$ac_cv_prog_GCJ"; then
13438   ac_ct_GCJ=$GCJ
13439   # Extract the first word of "gcj", so it can be a program name with args.
13440 set dummy gcj; ac_word=$2
13441 echo "$as_me:$LINENO: checking for $ac_word" >&5
13442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13443 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13444   echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446   if test -n "$ac_ct_GCJ"; then
13447   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13448 else
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13451 do
13452   IFS=$as_save_IFS
13453   test -z "$as_dir" && as_dir=.
13454   for ac_exec_ext in '' $ac_executable_extensions; do
13455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456     ac_cv_prog_ac_ct_GCJ="gcj"
13457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13458     break 2
13459   fi
13460 done
13461 done
13462
13463   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13464 fi
13465 fi
13466 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13467 if test -n "$ac_ct_GCJ"; then
13468   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13469 echo "${ECHO_T}$ac_ct_GCJ" >&6
13470 else
13471   echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6
13473 fi
13474
13475   GCJ=$ac_ct_GCJ
13476 else
13477   GCJ="$ac_cv_prog_GCJ"
13478 fi
13479
13480   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13481
13482
13483
13484
13485 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13486
13487 echo "$as_me:$LINENO: checking size of void *" >&5
13488 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13489 if test "${ac_cv_sizeof_void_p+set}" = set; then
13490   echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
13493   cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 #include "confdefs.h"
13500 #include <sys/types.h>
13501
13502
13503 int
13504 main ()
13505 {
13506 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13507   ;
13508   return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513   (eval $ac_compile) 2>conftest.er1
13514   ac_status=$?
13515   grep -v '^ *+' conftest.er1 >conftest.err
13516   rm -f conftest.er1
13517   cat conftest.err >&5
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); } &&
13520          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522   (eval $ac_try) 2>&5
13523   ac_status=$?
13524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525   (exit $ac_status); }; } &&
13526          { ac_try='test -s conftest.$ac_objext'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; }; then
13532   ac_cv_sizeof_void_p=$ac_size
13533 else
13534   echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 fi
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539   if test x$ac_cv_sizeof_void_p != x ; then break; fi
13540 done
13541
13542 fi
13543
13544 if test x$ac_cv_sizeof_void_p = x ; then
13545   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13546 echo "$as_me: error: cannot determine a size for void *" >&2;}
13547    { (exit 1); exit 1; }; }
13548 fi
13549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13550 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13551
13552 cat >>confdefs.h <<_ACEOF
13553 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13554 _ACEOF
13555
13556
13557
13558 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13559 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13560 if test "${ac_cv_c_bigendian+set}" = set; then
13561   echo $ECHO_N "(cached) $ECHO_C" >&6
13562 else
13563   ac_cv_c_bigendian=unknown
13564 # See if sys/param.h defines the BYTE_ORDER macro.
13565 cat >conftest.$ac_ext <<_ACEOF
13566 /* confdefs.h.  */
13567 _ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h.  */
13571 #include <sys/types.h>
13572 #include <sys/param.h>
13573 int
13574 main ()
13575 {
13576
13577 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13578  bogus endian macros
13579 #endif
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 rm -f conftest.$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586   (eval $ac_compile) 2>conftest.er1
13587   ac_status=$?
13588   grep -v '^ *+' conftest.er1 >conftest.err
13589   rm -f conftest.er1
13590   cat conftest.err >&5
13591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592   (exit $ac_status); } &&
13593          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595   (eval $ac_try) 2>&5
13596   ac_status=$?
13597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598   (exit $ac_status); }; } &&
13599          { ac_try='test -s conftest.$ac_objext'
13600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601   (eval $ac_try) 2>&5
13602   ac_status=$?
13603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604   (exit $ac_status); }; }; then
13605   # It does; now see whether it defined to BIG_ENDIAN or not.
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h.  */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h.  */
13612 #include <sys/types.h>
13613 #include <sys/param.h>
13614 int
13615 main ()
13616 {
13617
13618 #if BYTE_ORDER != BIG_ENDIAN
13619  not big endian
13620 #endif
13621   ;
13622   return 0;
13623 }
13624 _ACEOF
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627   (eval $ac_compile) 2>conftest.er1
13628   ac_status=$?
13629   grep -v '^ *+' conftest.er1 >conftest.err
13630   rm -f conftest.er1
13631   cat conftest.err >&5
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); } &&
13634          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636   (eval $ac_try) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); }; } &&
13640          { ac_try='test -s conftest.$ac_objext'
13641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642   (eval $ac_try) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; }; then
13646   ac_cv_c_bigendian=yes
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 ac_cv_c_bigendian=no
13652 fi
13653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13654 else
13655   echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 fi
13659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13660 if test $ac_cv_c_bigendian = unknown; then
13661 if test "$cross_compiling" = yes; then
13662    echo $ac_n "cross-compiling... " 2>&6
13663 else
13664   cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670 main () {
13671   /* Are we little or big endian?  From Harbison&Steele.  */
13672   union
13673   {
13674     long l;
13675     char c[sizeof (long)];
13676   } u;
13677   u.l = 1;
13678   exit (u.c[sizeof (long) - 1] == 1);
13679 }
13680 _ACEOF
13681 rm -f conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683   (eval $ac_link) 2>&5
13684   ac_status=$?
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688   (eval $ac_try) 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); }; }; then
13692   ac_cv_c_bigendian=no
13693 else
13694   echo "$as_me: program exited with status $ac_status" >&5
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698 ( exit $ac_status )
13699 ac_cv_c_bigendian=yes
13700 fi
13701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13702 fi
13703 fi
13704 fi
13705 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13706 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13707 if test $ac_cv_c_bigendian = unknown; then
13708 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13709 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13710
13711 cat >conftest.c <<EOF
13712 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13713 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13714 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13715 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13716 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13717 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13718 int main() { _ascii (); _ebcdic (); return 0; }
13719 EOF
13720  if test -f conftest.c ; then
13721      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13722         if test `grep -l BIGenDianSyS conftest.o` ; then
13723            echo $ac_n ' big endian probe OK, ' 1>&6
13724            ac_cv_c_bigendian=yes
13725         fi
13726         if test `grep -l LiTTleEnDian conftest.o` ; then
13727            echo $ac_n ' little endian probe OK, ' 1>&6
13728            if test $ac_cv_c_bigendian = yes ; then
13729             ac_cv_c_bigendian=unknown;
13730            else
13731             ac_cv_c_bigendian=no
13732            fi
13733         fi
13734         echo $ac_n 'guessing bigendian ...  ' >&6
13735      fi
13736   fi
13737 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13738 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13739 fi
13740 if test $ac_cv_c_bigendian = yes; then
13741
13742 cat >>confdefs.h <<\_ACEOF
13743 #define WORDS_BIGENDIAN 1
13744 _ACEOF
13745
13746
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HOST_WORDS_BIG_ENDIAN 1
13749 _ACEOF
13750
13751   BYTEORDER=4321
13752 else
13753   BYTEORDER=1234
13754 fi
13755
13756 cat >>confdefs.h <<_ACEOF
13757 #define BYTEORDER $BYTEORDER
13758 _ACEOF
13759
13760 if test $ac_cv_c_bigendian = unknown; then
13761   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13762 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13763    { (exit 1); exit 1; }; }
13764 fi
13765
13766
13767 ZLIBS=
13768 SYS_ZLIBS=
13769 ZINCS=
13770
13771 if test -z "$ZLIBSPEC"; then
13772    # Use zlib from the GCC tree.
13773    ZINCS='-I$(top_srcdir)/../zlib'
13774    ZLIBS=../zlib/libzgcj_convenience.la
13775 else
13776    # System's zlib.
13777    SYS_ZLIBS="$ZLIBSPEC"
13778 fi
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789 if test "$NATIVE" = yes; then
13790   NATIVE_TRUE=
13791   NATIVE_FALSE='#'
13792 else
13793   NATIVE_TRUE='#'
13794   NATIVE_FALSE=
13795 fi
13796
13797
13798
13799 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13800   NEEDS_DATA_START_TRUE=
13801   NEEDS_DATA_START_FALSE='#'
13802 else
13803   NEEDS_DATA_START_TRUE='#'
13804   NEEDS_DATA_START_FALSE=
13805 fi
13806
13807
13808
13809 # Process the option "--enable-version-specific-runtime-libs"
13810 # Calculate toolexeclibdir
13811 case ${version_specific_libs} in
13812   yes)
13813     # Need the gcc compiler version to know where to install libraries
13814     # and header files if --enable-version-specific-runtime-libs option
13815     # is selected.
13816     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13817     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13818     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13819     toolexeclibdir=$toolexecmainlibdir
13820     ;;
13821   no)
13822     if test -n "$with_cross_host" &&
13823        test x"$with_cross_host" != x"no"; then
13824       # Install a library built with a cross compiler in tooldir, not libdir.
13825       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13826       toolexecmainlibdir='$(toolexecdir)/lib'
13827     else
13828       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13829       toolexecmainlibdir='$(libdir)'
13830     fi
13831     multi_os_directory=`$CC -print-multi-os-directory`
13832     case $multi_os_directory in
13833       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13834       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13835     esac
13836     ;;
13837 esac
13838
13839
13840
13841
13842 # Determine gcj version number.
13843 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13844 GCJVERSION=$gcjversion
13845
13846
13847 cat >>confdefs.h <<_ACEOF
13848 #define GCJVERSION "$GCJVERSION"
13849 _ACEOF
13850
13851
13852
13853 cat >>confdefs.h <<\_ACEOF
13854 #define JV_VERSION "1.4.2"
13855 _ACEOF
13856
13857
13858 cat >>confdefs.h <<\_ACEOF
13859 #define JV_API_VERSION "1.4"
13860 _ACEOF
13861
13862
13863
13864 case "${with_gxx_include_dir}" in
13865   yes)
13866     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13867 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13868    { (exit 1); exit 1; }; }
13869     ;;
13870   no | "")
13871     case "${enable_version_specific_runtime_libs}" in
13872       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
13873       *)
13874         libstdcxx_incdir='c++/$(gcc_version)'
13875         gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
13876     esac ;;
13877   *) gxx_include_dir=${with_gxx_include_dir} ;;
13878 esac
13879
13880
13881
13882
13883 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13884 # On that system, sys/ioctl.h will not include sys/filio.h unless
13885 # BSD_COMP is defined; just including sys/filio.h is simpler.
13886 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13887 # for now.  If you change this, you also must update natFile.cc.
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13909                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13910                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13911                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
13912                   dirent.h
13913 do
13914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13916   echo "$as_me:$LINENO: checking for $ac_header" >&5
13917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13919   echo $ECHO_N "(cached) $ECHO_C" >&6
13920 fi
13921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13923 else
13924   # Is the header compilable?
13925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h.  */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h.  */
13933 $ac_includes_default
13934 #include <$ac_header>
13935 _ACEOF
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938   (eval $ac_compile) 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } &&
13945          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947   (eval $ac_try) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); }; } &&
13951          { ac_try='test -s conftest.$ac_objext'
13952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953   (eval $ac_try) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   ac_header_compiler=yes
13958 else
13959   echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13961
13962 ac_header_compiler=no
13963 fi
13964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13966 echo "${ECHO_T}$ac_header_compiler" >&6
13967
13968 # Is the header present?
13969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13971 cat >conftest.$ac_ext <<_ACEOF
13972 /* confdefs.h.  */
13973 _ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h.  */
13977 #include <$ac_header>
13978 _ACEOF
13979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13980   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13981   ac_status=$?
13982   grep -v '^ *+' conftest.er1 >conftest.err
13983   rm -f conftest.er1
13984   cat conftest.err >&5
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } >/dev/null; then
13987   if test -s conftest.err; then
13988     ac_cpp_err=$ac_c_preproc_warn_flag
13989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13990   else
13991     ac_cpp_err=
13992   fi
13993 else
13994   ac_cpp_err=yes
13995 fi
13996 if test -z "$ac_cpp_err"; then
13997   ac_header_preproc=yes
13998 else
13999   echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14001
14002   ac_header_preproc=no
14003 fi
14004 rm -f conftest.err conftest.$ac_ext
14005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14006 echo "${ECHO_T}$ac_header_preproc" >&6
14007
14008 # So?  What about this header?
14009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14010   yes:no: )
14011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14015     ac_header_preproc=yes
14016     ;;
14017   no:yes:* )
14018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14030     (
14031       cat <<\_ASBOX
14032 ## ---------------------------------- ##
14033 ## Report this to the libjava lists.  ##
14034 ## ---------------------------------- ##
14035 _ASBOX
14036     ) |
14037       sed "s/^/$as_me: WARNING:     /" >&2
14038     ;;
14039 esac
14040 echo "$as_me:$LINENO: checking for $ac_header" >&5
14041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045   eval "$as_ac_Header=\$ac_header_preproc"
14046 fi
14047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14049
14050 fi
14051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14052   cat >>confdefs.h <<_ACEOF
14053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14054 _ACEOF
14055
14056 fi
14057
14058 done
14059
14060
14061 for ac_header in inttypes.h
14062 do
14063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14065   echo "$as_me:$LINENO: checking for $ac_header" >&5
14066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14068   echo $ECHO_N "(cached) $ECHO_C" >&6
14069 fi
14070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14072 else
14073   # Is the header compilable?
14074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h.  */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h.  */
14082 $ac_includes_default
14083 #include <$ac_header>
14084 _ACEOF
14085 rm -f conftest.$ac_objext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14087   (eval $ac_compile) 2>conftest.er1
14088   ac_status=$?
14089   grep -v '^ *+' conftest.er1 >conftest.err
14090   rm -f conftest.er1
14091   cat conftest.err >&5
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); } &&
14094          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096   (eval $ac_try) 2>&5
14097   ac_status=$?
14098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099   (exit $ac_status); }; } &&
14100          { ac_try='test -s conftest.$ac_objext'
14101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102   (eval $ac_try) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); }; }; then
14106   ac_header_compiler=yes
14107 else
14108   echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14110
14111 ac_header_compiler=no
14112 fi
14113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14115 echo "${ECHO_T}$ac_header_compiler" >&6
14116
14117 # Is the header present?
14118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14120 cat >conftest.$ac_ext <<_ACEOF
14121 /* confdefs.h.  */
14122 _ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h.  */
14126 #include <$ac_header>
14127 _ACEOF
14128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14130   ac_status=$?
14131   grep -v '^ *+' conftest.er1 >conftest.err
14132   rm -f conftest.er1
14133   cat conftest.err >&5
14134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135   (exit $ac_status); } >/dev/null; then
14136   if test -s conftest.err; then
14137     ac_cpp_err=$ac_c_preproc_warn_flag
14138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14139   else
14140     ac_cpp_err=
14141   fi
14142 else
14143   ac_cpp_err=yes
14144 fi
14145 if test -z "$ac_cpp_err"; then
14146   ac_header_preproc=yes
14147 else
14148   echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14150
14151   ac_header_preproc=no
14152 fi
14153 rm -f conftest.err conftest.$ac_ext
14154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14155 echo "${ECHO_T}$ac_header_preproc" >&6
14156
14157 # So?  What about this header?
14158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14159   yes:no: )
14160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14164     ac_header_preproc=yes
14165     ;;
14166   no:yes:* )
14167     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14169     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14170 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14171     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14173     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14174 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14177     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14179     (
14180       cat <<\_ASBOX
14181 ## ---------------------------------- ##
14182 ## Report this to the libjava lists.  ##
14183 ## ---------------------------------- ##
14184 _ASBOX
14185     ) |
14186       sed "s/^/$as_me: WARNING:     /" >&2
14187     ;;
14188 esac
14189 echo "$as_me:$LINENO: checking for $ac_header" >&5
14190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14192   echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194   eval "$as_ac_Header=\$ac_header_preproc"
14195 fi
14196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14198
14199 fi
14200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14201   cat >>confdefs.h <<_ACEOF
14202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14203 _ACEOF
14204
14205
14206 cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_INTTYPES_H 1
14208 _ACEOF
14209
14210
14211 cat >>confdefs.h <<\_ACEOF
14212 #define JV_HAVE_INTTYPES_H 1
14213 _ACEOF
14214
14215
14216 fi
14217
14218 done
14219
14220 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14221 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14222 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   cat >conftest.$ac_ext <<_ACEOF
14226 /* confdefs.h.  */
14227 _ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h.  */
14231 #include <sys/types.h>
14232 #include <sys/wait.h>
14233 #ifndef WEXITSTATUS
14234 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14235 #endif
14236 #ifndef WIFEXITED
14237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14238 #endif
14239
14240 int
14241 main ()
14242 {
14243   int s;
14244   wait (&s);
14245   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14246   ;
14247   return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252   (eval $ac_compile) 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } &&
14259          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; } &&
14265          { ac_try='test -s conftest.$ac_objext'
14266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267   (eval $ac_try) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; }; then
14271   ac_cv_header_sys_wait_h=yes
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276 ac_cv_header_sys_wait_h=no
14277 fi
14278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14279 fi
14280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14282 if test $ac_cv_header_sys_wait_h = yes; then
14283
14284 cat >>confdefs.h <<\_ACEOF
14285 #define HAVE_SYS_WAIT_H 1
14286 _ACEOF
14287
14288 fi
14289
14290
14291 echo "$as_me:$LINENO: checking for ssize_t" >&5
14292 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14293 if test "${ac_cv_type_ssize_t+set}" = set; then
14294   echo $ECHO_N "(cached) $ECHO_C" >&6
14295 else
14296   cat >conftest.$ac_ext <<_ACEOF
14297 /* confdefs.h.  */
14298 _ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h.  */
14302 $ac_includes_default
14303 int
14304 main ()
14305 {
14306 if ((ssize_t *) 0)
14307   return 0;
14308 if (sizeof (ssize_t))
14309   return 0;
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14316   (eval $ac_compile) 2>conftest.er1
14317   ac_status=$?
14318   grep -v '^ *+' conftest.er1 >conftest.err
14319   rm -f conftest.er1
14320   cat conftest.err >&5
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); } &&
14323          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325   (eval $ac_try) 2>&5
14326   ac_status=$?
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); }; } &&
14329          { ac_try='test -s conftest.$ac_objext'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; }; then
14335   ac_cv_type_ssize_t=yes
14336 else
14337   echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 ac_cv_type_ssize_t=no
14341 fi
14342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14343 fi
14344 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14345 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14346 if test $ac_cv_type_ssize_t = yes; then
14347   :
14348 else
14349
14350 cat >>confdefs.h <<_ACEOF
14351 #define ssize_t int
14352 _ACEOF
14353
14354 fi
14355
14356
14357 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14358 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 #include <sys/types.h>
14366 #if STDC_HEADERS
14367 #include <stdlib.h>
14368 #include <stddef.h>
14369 #endif
14370 #if HAVE_NETINET_IN_H
14371 #include <netinet/in.h>
14372 #endif
14373 int
14374 main ()
14375 {
14376 in_addr_t foo;
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383   (eval $ac_compile) 2>conftest.er1
14384   ac_status=$?
14385   grep -v '^ *+' conftest.er1 >conftest.err
14386   rm -f conftest.er1
14387   cat conftest.err >&5
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); } &&
14390          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392   (eval $ac_try) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; } &&
14396          { ac_try='test -s conftest.$ac_objext'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402
14403 cat >>confdefs.h <<\_ACEOF
14404 #define HAVE_IN_ADDR_T 1
14405 _ACEOF
14406
14407    echo "$as_me:$LINENO: result: yes" >&5
14408 echo "${ECHO_T}yes" >&6
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6
14415 fi
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14417
14418 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14419 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426 #include <netinet/in.h>
14427 int
14428 main ()
14429 {
14430 struct ip_mreq mreq;
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437   (eval $ac_compile) 2>conftest.er1
14438   ac_status=$?
14439   grep -v '^ *+' conftest.er1 >conftest.err
14440   rm -f conftest.er1
14441   cat conftest.err >&5
14442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443   (exit $ac_status); } &&
14444          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446   (eval $ac_try) 2>&5
14447   ac_status=$?
14448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449   (exit $ac_status); }; } &&
14450          { ac_try='test -s conftest.$ac_objext'
14451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452   (eval $ac_try) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; }; then
14456
14457 cat >>confdefs.h <<\_ACEOF
14458 #define HAVE_STRUCT_IP_MREQ 1
14459 _ACEOF
14460
14461    echo "$as_me:$LINENO: result: yes" >&5
14462 echo "${ECHO_T}yes" >&6
14463 else
14464   echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 echo "$as_me:$LINENO: result: no" >&5
14468 echo "${ECHO_T}no" >&6
14469 fi
14470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14471
14472 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14473 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h.  */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h.  */
14480 #include <netinet/in.h>
14481 int
14482 main ()
14483 {
14484 struct ipv6_mreq mreq6;
14485   ;
14486   return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491   (eval $ac_compile) 2>conftest.er1
14492   ac_status=$?
14493   grep -v '^ *+' conftest.er1 >conftest.err
14494   rm -f conftest.er1
14495   cat conftest.err >&5
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); } &&
14498          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; } &&
14504          { ac_try='test -s conftest.$ac_objext'
14505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506   (eval $ac_try) 2>&5
14507   ac_status=$?
14508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509   (exit $ac_status); }; }; then
14510
14511 cat >>confdefs.h <<\_ACEOF
14512 #define HAVE_STRUCT_IPV6_MREQ 1
14513 _ACEOF
14514
14515    echo "$as_me:$LINENO: result: yes" >&5
14516 echo "${ECHO_T}yes" >&6
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 echo "$as_me:$LINENO: result: no" >&5
14522 echo "${ECHO_T}no" >&6
14523 fi
14524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14525
14526 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14527 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14528 cat >conftest.$ac_ext <<_ACEOF
14529 /* confdefs.h.  */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h.  */
14534 #include <netinet/in.h>
14535 int
14536 main ()
14537 {
14538 struct sockaddr_in6 addr6;
14539   ;
14540   return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545   (eval $ac_compile) 2>conftest.er1
14546   ac_status=$?
14547   grep -v '^ *+' conftest.er1 >conftest.err
14548   rm -f conftest.er1
14549   cat conftest.err >&5
14550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551   (exit $ac_status); } &&
14552          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554   (eval $ac_try) 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; } &&
14558          { ac_try='test -s conftest.$ac_objext'
14559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560   (eval $ac_try) 2>&5
14561   ac_status=$?
14562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563   (exit $ac_status); }; }; then
14564
14565 cat >>confdefs.h <<\_ACEOF
14566 #define HAVE_INET6 1
14567 _ACEOF
14568
14569    echo "$as_me:$LINENO: result: yes" >&5
14570 echo "${ECHO_T}yes" >&6
14571 else
14572   echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 echo "$as_me:$LINENO: result: no" >&5
14576 echo "${ECHO_T}no" >&6
14577 fi
14578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14579
14580 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14581 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h.  */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h.  */
14588 #define _POSIX_PII_SOCKET
14589 #include <sys/types.h>
14590 #include <sys/socket.h>
14591 int
14592 main ()
14593 {
14594 socklen_t x = 5;
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601   (eval $ac_compile) 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610   (eval $ac_try) 2>&5
14611   ac_status=$?
14612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613   (exit $ac_status); }; } &&
14614          { ac_try='test -s conftest.$ac_objext'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; }; then
14620
14621 cat >>confdefs.h <<\_ACEOF
14622 #define HAVE_SOCKLEN_T 1
14623 _ACEOF
14624
14625    echo "$as_me:$LINENO: result: yes" >&5
14626 echo "${ECHO_T}yes" >&6
14627 else
14628   echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 echo "$as_me:$LINENO: result: no" >&5
14632 echo "${ECHO_T}no" >&6
14633 fi
14634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14635
14636 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14637 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14638 cat >conftest.$ac_ext <<_ACEOF
14639 /* confdefs.h.  */
14640 _ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h.  */
14644 #include <time.h>
14645 int
14646 main ()
14647 {
14648 struct tm tim; tim.tm_gmtoff = 0;
14649   ;
14650   return 0;
14651 }
14652 _ACEOF
14653 rm -f conftest.$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655   (eval $ac_compile) 2>conftest.er1
14656   ac_status=$?
14657   grep -v '^ *+' conftest.er1 >conftest.err
14658   rm -f conftest.er1
14659   cat conftest.err >&5
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664   (eval $ac_try) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; } &&
14668          { ac_try='test -s conftest.$ac_objext'
14669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670   (eval $ac_try) 2>&5
14671   ac_status=$?
14672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673   (exit $ac_status); }; }; then
14674
14675 cat >>confdefs.h <<\_ACEOF
14676 #define STRUCT_TM_HAS_GMTOFF 1
14677 _ACEOF
14678
14679    echo "$as_me:$LINENO: result: yes" >&5
14680 echo "${ECHO_T}yes" >&6
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685 echo "$as_me:$LINENO: result: no" >&5
14686 echo "${ECHO_T}no" >&6
14687    echo "$as_me:$LINENO: checking for global timezone variable" >&5
14688 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14689                cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695 #include <time.h>
14696 int
14697 main ()
14698 {
14699 void i(){long z2 = 2*timezone;}
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706   (eval $ac_compile) 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; } &&
14719          { ac_try='test -s conftest.$ac_objext'
14720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721   (eval $ac_try) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; }; then
14725
14726 cat >>confdefs.h <<\_ACEOF
14727 #define HAVE_TIMEZONE 1
14728 _ACEOF
14729
14730       echo "$as_me:$LINENO: result: yes" >&5
14731 echo "${ECHO_T}yes" >&6
14732 else
14733   echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14735
14736 echo "$as_me:$LINENO: result: no" >&5
14737 echo "${ECHO_T}no" >&6
14738        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14739 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14740               cat >conftest.$ac_ext <<_ACEOF
14741 /* confdefs.h.  */
14742 _ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h.  */
14746 #include <time.h>
14747 int
14748 main ()
14749 {
14750 long z2 = _timezone;
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757   (eval $ac_compile) 2>conftest.er1
14758   ac_status=$?
14759   grep -v '^ *+' conftest.er1 >conftest.err
14760   rm -f conftest.er1
14761   cat conftest.err >&5
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } &&
14764          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766   (eval $ac_try) 2>&5
14767   ac_status=$?
14768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769   (exit $ac_status); }; } &&
14770          { ac_try='test -s conftest.$ac_objext'
14771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772   (eval $ac_try) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); }; }; then
14776
14777 cat >>confdefs.h <<\_ACEOF
14778 #define HAVE_UNDERSCORE_TIMEZONE 1
14779 _ACEOF
14780
14781           echo "$as_me:$LINENO: result: yes" >&5
14782 echo "${ECHO_T}yes" >&6
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6
14789 fi
14790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14791 fi
14792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14793 fi
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14795
14796 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14797 # for constant arguments.  Useless!
14798 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14799 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14800 if test "${ac_cv_working_alloca_h+set}" = set; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   if test x$gcc_no_link = xyes; then
14804   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14806    { (exit 1); exit 1; }; }
14807 fi
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h.  */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h.  */
14814 #include <alloca.h>
14815 int
14816 main ()
14817 {
14818 char *p = (char *) alloca (2 * sizeof (int));
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext conftest$ac_exeext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14825   (eval $ac_link) 2>conftest.er1
14826   ac_status=$?
14827   grep -v '^ *+' conftest.er1 >conftest.err
14828   rm -f conftest.er1
14829   cat conftest.err >&5
14830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831   (exit $ac_status); } &&
14832          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834   (eval $ac_try) 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); }; } &&
14838          { ac_try='test -s conftest$ac_exeext'
14839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840   (eval $ac_try) 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; }; then
14844   ac_cv_working_alloca_h=yes
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_cv_working_alloca_h=no
14850 fi
14851 rm -f conftest.err conftest.$ac_objext \
14852       conftest$ac_exeext conftest.$ac_ext
14853 fi
14854 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14855 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14856 if test $ac_cv_working_alloca_h = yes; then
14857
14858 cat >>confdefs.h <<\_ACEOF
14859 #define HAVE_ALLOCA_H 1
14860 _ACEOF
14861
14862 fi
14863
14864 echo "$as_me:$LINENO: checking for alloca" >&5
14865 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14866 if test "${ac_cv_func_alloca_works+set}" = set; then
14867   echo $ECHO_N "(cached) $ECHO_C" >&6
14868 else
14869   if test x$gcc_no_link = xyes; then
14870   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14872    { (exit 1); exit 1; }; }
14873 fi
14874 cat >conftest.$ac_ext <<_ACEOF
14875 /* confdefs.h.  */
14876 _ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h.  */
14880 #ifdef __GNUC__
14881 # define alloca __builtin_alloca
14882 #else
14883 # ifdef _MSC_VER
14884 #  include <malloc.h>
14885 #  define alloca _alloca
14886 # else
14887 #  if HAVE_ALLOCA_H
14888 #   include <alloca.h>
14889 #  else
14890 #   ifdef _AIX
14891  #pragma alloca
14892 #   else
14893 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14894 char *alloca ();
14895 #    endif
14896 #   endif
14897 #  endif
14898 # endif
14899 #endif
14900
14901 int
14902 main ()
14903 {
14904 char *p = (char *) alloca (1);
14905   ;
14906   return 0;
14907 }
14908 _ACEOF
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911   (eval $ac_link) 2>conftest.er1
14912   ac_status=$?
14913   grep -v '^ *+' conftest.er1 >conftest.err
14914   rm -f conftest.er1
14915   cat conftest.err >&5
14916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917   (exit $ac_status); } &&
14918          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920   (eval $ac_try) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; } &&
14924          { ac_try='test -s conftest$ac_exeext'
14925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926   (eval $ac_try) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930   ac_cv_func_alloca_works=yes
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14934
14935 ac_cv_func_alloca_works=no
14936 fi
14937 rm -f conftest.err conftest.$ac_objext \
14938       conftest$ac_exeext conftest.$ac_ext
14939 fi
14940 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14941 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14942
14943 if test $ac_cv_func_alloca_works = yes; then
14944
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_ALLOCA 1
14947 _ACEOF
14948
14949 else
14950   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14951 # that cause trouble.  Some versions do not even contain alloca or
14952 # contain a buggy version.  If you still want to use their alloca,
14953 # use ar to extract alloca.o from them instead of compiling alloca.c.
14954
14955 ALLOCA=alloca.$ac_objext
14956
14957 cat >>confdefs.h <<\_ACEOF
14958 #define C_ALLOCA 1
14959 _ACEOF
14960
14961
14962 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14963 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14964 if test "${ac_cv_os_cray+set}" = set; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967   cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973 #if defined(CRAY) && ! defined(CRAY2)
14974 webecray
14975 #else
14976 wenotbecray
14977 #endif
14978
14979 _ACEOF
14980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14981   $EGREP "webecray" >/dev/null 2>&1; then
14982   ac_cv_os_cray=yes
14983 else
14984   ac_cv_os_cray=no
14985 fi
14986 rm -f conftest*
14987
14988 fi
14989 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14990 echo "${ECHO_T}$ac_cv_os_cray" >&6
14991 if test $ac_cv_os_cray = yes; then
14992   for ac_func in _getb67 GETB67 getb67; do
14993     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14994 echo "$as_me:$LINENO: checking for $ac_func" >&5
14995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14996 if eval "test \"\${$as_ac_var+set}\" = set"; then
14997   echo $ECHO_N "(cached) $ECHO_C" >&6
14998 else
14999   if test x$gcc_no_link = xyes; then
15000   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15002    { (exit 1); exit 1; }; }
15003 fi
15004 cat >conftest.$ac_ext <<_ACEOF
15005 /* confdefs.h.  */
15006 _ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h.  */
15010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15012 #define $ac_func innocuous_$ac_func
15013
15014 /* System header to define __stub macros and hopefully few prototypes,
15015     which can conflict with char $ac_func (); below.
15016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15017     <limits.h> exists even on freestanding compilers.  */
15018
15019 #ifdef __STDC__
15020 # include <limits.h>
15021 #else
15022 # include <assert.h>
15023 #endif
15024
15025 #undef $ac_func
15026
15027 /* Override any gcc2 internal prototype to avoid an error.  */
15028 #ifdef __cplusplus
15029 extern "C"
15030 {
15031 #endif
15032 /* We use char because int might match the return type of a gcc2
15033    builtin and then its argument prototype would still apply.  */
15034 char $ac_func ();
15035 /* The GNU C library defines this for functions which it implements
15036     to always fail with ENOSYS.  Some functions are actually named
15037     something starting with __ and the normal name is an alias.  */
15038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15039 choke me
15040 #else
15041 char (*f) () = $ac_func;
15042 #endif
15043 #ifdef __cplusplus
15044 }
15045 #endif
15046
15047 int
15048 main ()
15049 {
15050 return f != $ac_func;
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057   (eval $ac_link) 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066   (eval $ac_try) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; } &&
15070          { ac_try='test -s conftest$ac_exeext'
15071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072   (eval $ac_try) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; }; then
15076   eval "$as_ac_var=yes"
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 eval "$as_ac_var=no"
15082 fi
15083 rm -f conftest.err conftest.$ac_objext \
15084       conftest$ac_exeext conftest.$ac_ext
15085 fi
15086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15088 if test `eval echo '${'$as_ac_var'}'` = yes; then
15089
15090 cat >>confdefs.h <<_ACEOF
15091 #define CRAY_STACKSEG_END $ac_func
15092 _ACEOF
15093
15094     break
15095 fi
15096
15097   done
15098 fi
15099
15100 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15101 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15102 if test "${ac_cv_c_stack_direction+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   if test "$cross_compiling" = yes; then
15106   ac_cv_c_stack_direction=0
15107 else
15108   cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h.  */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h.  */
15114 int
15115 find_stack_direction ()
15116 {
15117   static char *addr = 0;
15118   auto char dummy;
15119   if (addr == 0)
15120     {
15121       addr = &dummy;
15122       return find_stack_direction ();
15123     }
15124   else
15125     return (&dummy > addr) ? 1 : -1;
15126 }
15127
15128 int
15129 main ()
15130 {
15131   exit (find_stack_direction () < 0);
15132 }
15133 _ACEOF
15134 rm -f conftest$ac_exeext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15136   (eval $ac_link) 2>&5
15137   ac_status=$?
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141   (eval $ac_try) 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   ac_cv_c_stack_direction=1
15146 else
15147   echo "$as_me: program exited with status $ac_status" >&5
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151 ( exit $ac_status )
15152 ac_cv_c_stack_direction=-1
15153 fi
15154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15155 fi
15156 fi
15157 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15158 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15159
15160 cat >>confdefs.h <<_ACEOF
15161 #define STACK_DIRECTION $ac_cv_c_stack_direction
15162 _ACEOF
15163
15164
15165 fi
15166
15167 if test x$gcc_no_link = xyes; then
15168   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15169     ac_cv_func_mmap_fixed_mapped=no
15170   fi
15171 fi
15172 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15173
15174
15175 for ac_header in stdlib.h unistd.h
15176 do
15177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15179   echo "$as_me:$LINENO: checking for $ac_header" >&5
15180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 fi
15184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15186 else
15187   # Is the header compilable?
15188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15190 cat >conftest.$ac_ext <<_ACEOF
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 $ac_includes_default
15197 #include <$ac_header>
15198 _ACEOF
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201   (eval $ac_compile) 2>conftest.er1
15202   ac_status=$?
15203   grep -v '^ *+' conftest.er1 >conftest.err
15204   rm -f conftest.er1
15205   cat conftest.err >&5
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } &&
15208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210   (eval $ac_try) 2>&5
15211   ac_status=$?
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); }; } &&
15214          { ac_try='test -s conftest.$ac_objext'
15215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216   (eval $ac_try) 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; }; then
15220   ac_header_compiler=yes
15221 else
15222   echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15224
15225 ac_header_compiler=no
15226 fi
15227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15229 echo "${ECHO_T}$ac_header_compiler" >&6
15230
15231 # Is the header present?
15232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15234 cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h.  */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h.  */
15240 #include <$ac_header>
15241 _ACEOF
15242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15244   ac_status=$?
15245   grep -v '^ *+' conftest.er1 >conftest.err
15246   rm -f conftest.er1
15247   cat conftest.err >&5
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); } >/dev/null; then
15250   if test -s conftest.err; then
15251     ac_cpp_err=$ac_c_preproc_warn_flag
15252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15253   else
15254     ac_cpp_err=
15255   fi
15256 else
15257   ac_cpp_err=yes
15258 fi
15259 if test -z "$ac_cpp_err"; then
15260   ac_header_preproc=yes
15261 else
15262   echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15264
15265   ac_header_preproc=no
15266 fi
15267 rm -f conftest.err conftest.$ac_ext
15268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15269 echo "${ECHO_T}$ac_header_preproc" >&6
15270
15271 # So?  What about this header?
15272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15273   yes:no: )
15274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15278     ac_header_preproc=yes
15279     ;;
15280   no:yes:* )
15281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15293     (
15294       cat <<\_ASBOX
15295 ## ---------------------------------- ##
15296 ## Report this to the libjava lists.  ##
15297 ## ---------------------------------- ##
15298 _ASBOX
15299     ) |
15300       sed "s/^/$as_me: WARNING:     /" >&2
15301     ;;
15302 esac
15303 echo "$as_me:$LINENO: checking for $ac_header" >&5
15304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   eval "$as_ac_Header=\$ac_header_preproc"
15309 fi
15310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15312
15313 fi
15314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15315   cat >>confdefs.h <<_ACEOF
15316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15317 _ACEOF
15318
15319 fi
15320
15321 done
15322
15323
15324 for ac_func in getpagesize
15325 do
15326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15327 echo "$as_me:$LINENO: checking for $ac_func" >&5
15328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_var+set}\" = set"; then
15330   echo $ECHO_N "(cached) $ECHO_C" >&6
15331 else
15332   if test x$gcc_no_link = xyes; then
15333   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15335    { (exit 1); exit 1; }; }
15336 fi
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15345 #define $ac_func innocuous_$ac_func
15346
15347 /* System header to define __stub macros and hopefully few prototypes,
15348     which can conflict with char $ac_func (); below.
15349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15350     <limits.h> exists even on freestanding compilers.  */
15351
15352 #ifdef __STDC__
15353 # include <limits.h>
15354 #else
15355 # include <assert.h>
15356 #endif
15357
15358 #undef $ac_func
15359
15360 /* Override any gcc2 internal prototype to avoid an error.  */
15361 #ifdef __cplusplus
15362 extern "C"
15363 {
15364 #endif
15365 /* We use char because int might match the return type of a gcc2
15366    builtin and then its argument prototype would still apply.  */
15367 char $ac_func ();
15368 /* The GNU C library defines this for functions which it implements
15369     to always fail with ENOSYS.  Some functions are actually named
15370     something starting with __ and the normal name is an alias.  */
15371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15372 choke me
15373 #else
15374 char (*f) () = $ac_func;
15375 #endif
15376 #ifdef __cplusplus
15377 }
15378 #endif
15379
15380 int
15381 main ()
15382 {
15383 return f != $ac_func;
15384   ;
15385   return 0;
15386 }
15387 _ACEOF
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390   (eval $ac_link) 2>conftest.er1
15391   ac_status=$?
15392   grep -v '^ *+' conftest.er1 >conftest.err
15393   rm -f conftest.er1
15394   cat conftest.err >&5
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); } &&
15397          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; } &&
15403          { ac_try='test -s conftest$ac_exeext'
15404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405   (eval $ac_try) 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; }; then
15409   eval "$as_ac_var=yes"
15410 else
15411   echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15413
15414 eval "$as_ac_var=no"
15415 fi
15416 rm -f conftest.err conftest.$ac_objext \
15417       conftest$ac_exeext conftest.$ac_ext
15418 fi
15419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15421 if test `eval echo '${'$as_ac_var'}'` = yes; then
15422   cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15424 _ACEOF
15425
15426 fi
15427 done
15428
15429 echo "$as_me:$LINENO: checking for working mmap" >&5
15430 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15431 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15432   echo $ECHO_N "(cached) $ECHO_C" >&6
15433 else
15434   if test "$cross_compiling" = yes; then
15435   ac_cv_func_mmap_fixed_mapped=no
15436 else
15437   cat >conftest.$ac_ext <<_ACEOF
15438 /* confdefs.h.  */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h.  */
15443 $ac_includes_default
15444 /* malloc might have been renamed as rpl_malloc. */
15445 #undef malloc
15446
15447 /* Thanks to Mike Haertel and Jim Avera for this test.
15448    Here is a matrix of mmap possibilities:
15449         mmap private not fixed
15450         mmap private fixed at somewhere currently unmapped
15451         mmap private fixed at somewhere already mapped
15452         mmap shared not fixed
15453         mmap shared fixed at somewhere currently unmapped
15454         mmap shared fixed at somewhere already mapped
15455    For private mappings, we should verify that changes cannot be read()
15456    back from the file, nor mmap's back from the file at a different
15457    address.  (There have been systems where private was not correctly
15458    implemented like the infamous i386 svr4.0, and systems where the
15459    VM page cache was not coherent with the file system buffer cache
15460    like early versions of FreeBSD and possibly contemporary NetBSD.)
15461    For shared mappings, we should conversely verify that changes get
15462    propagated back to all the places they're supposed to be.
15463
15464    Grep wants private fixed already mapped.
15465    The main things grep needs to know about mmap are:
15466    * does it exist and is it safe to write into the mmap'd area
15467    * how to use it (BSD variants)  */
15468
15469 #include <fcntl.h>
15470 #include <sys/mman.h>
15471
15472 #if !STDC_HEADERS && !HAVE_STDLIB_H
15473 char *malloc ();
15474 #endif
15475
15476 /* This mess was copied from the GNU getpagesize.h.  */
15477 #if !HAVE_GETPAGESIZE
15478 /* Assume that all systems that can run configure have sys/param.h.  */
15479 # if !HAVE_SYS_PARAM_H
15480 #  define HAVE_SYS_PARAM_H 1
15481 # endif
15482
15483 # ifdef _SC_PAGESIZE
15484 #  define getpagesize() sysconf(_SC_PAGESIZE)
15485 # else /* no _SC_PAGESIZE */
15486 #  if HAVE_SYS_PARAM_H
15487 #   include <sys/param.h>
15488 #   ifdef EXEC_PAGESIZE
15489 #    define getpagesize() EXEC_PAGESIZE
15490 #   else /* no EXEC_PAGESIZE */
15491 #    ifdef NBPG
15492 #     define getpagesize() NBPG * CLSIZE
15493 #     ifndef CLSIZE
15494 #      define CLSIZE 1
15495 #     endif /* no CLSIZE */
15496 #    else /* no NBPG */
15497 #     ifdef NBPC
15498 #      define getpagesize() NBPC
15499 #     else /* no NBPC */
15500 #      ifdef PAGESIZE
15501 #       define getpagesize() PAGESIZE
15502 #      endif /* PAGESIZE */
15503 #     endif /* no NBPC */
15504 #    endif /* no NBPG */
15505 #   endif /* no EXEC_PAGESIZE */
15506 #  else /* no HAVE_SYS_PARAM_H */
15507 #   define getpagesize() 8192   /* punt totally */
15508 #  endif /* no HAVE_SYS_PARAM_H */
15509 # endif /* no _SC_PAGESIZE */
15510
15511 #endif /* no HAVE_GETPAGESIZE */
15512
15513 int
15514 main ()
15515 {
15516   char *data, *data2, *data3;
15517   int i, pagesize;
15518   int fd;
15519
15520   pagesize = getpagesize ();
15521
15522   /* First, make a file with some known garbage in it. */
15523   data = (char *) malloc (pagesize);
15524   if (!data)
15525     exit (1);
15526   for (i = 0; i < pagesize; ++i)
15527     *(data + i) = rand ();
15528   umask (0);
15529   fd = creat ("conftest.mmap", 0600);
15530   if (fd < 0)
15531     exit (1);
15532   if (write (fd, data, pagesize) != pagesize)
15533     exit (1);
15534   close (fd);
15535
15536   /* Next, try to mmap the file at a fixed address which already has
15537      something else allocated at it.  If we can, also make sure that
15538      we see the same garbage.  */
15539   fd = open ("conftest.mmap", O_RDWR);
15540   if (fd < 0)
15541     exit (1);
15542   data2 = (char *) malloc (2 * pagesize);
15543   if (!data2)
15544     exit (1);
15545   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15546   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15547                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15548     exit (1);
15549   for (i = 0; i < pagesize; ++i)
15550     if (*(data + i) != *(data2 + i))
15551       exit (1);
15552
15553   /* Finally, make sure that changes to the mapped area do not
15554      percolate back to the file as seen by read().  (This is a bug on
15555      some variants of i386 svr4.0.)  */
15556   for (i = 0; i < pagesize; ++i)
15557     *(data2 + i) = *(data2 + i) + 1;
15558   data3 = (char *) malloc (pagesize);
15559   if (!data3)
15560     exit (1);
15561   if (read (fd, data3, pagesize) != pagesize)
15562     exit (1);
15563   for (i = 0; i < pagesize; ++i)
15564     if (*(data + i) != *(data3 + i))
15565       exit (1);
15566   close (fd);
15567   exit (0);
15568 }
15569 _ACEOF
15570 rm -f conftest$ac_exeext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15572   (eval $ac_link) 2>&5
15573   ac_status=$?
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577   (eval $ac_try) 2>&5
15578   ac_status=$?
15579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580   (exit $ac_status); }; }; then
15581   ac_cv_func_mmap_fixed_mapped=yes
15582 else
15583   echo "$as_me: program exited with status $ac_status" >&5
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587 ( exit $ac_status )
15588 ac_cv_func_mmap_fixed_mapped=no
15589 fi
15590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15591 fi
15592 fi
15593 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15594 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15595 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15596
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_MMAP 1
15599 _ACEOF
15600
15601 fi
15602 rm -f conftest.mmap
15603
15604 fi
15605
15606 for ac_prog in perl
15607 do
15608   # Extract the first word of "$ac_prog", so it can be a program name with args.
15609 set dummy $ac_prog; ac_word=$2
15610 echo "$as_me:$LINENO: checking for $ac_word" >&5
15611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15612 if test "${ac_cv_prog_PERL+set}" = set; then
15613   echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615   if test -n "$PERL"; then
15616   ac_cv_prog_PERL="$PERL" # Let the user override the test.
15617 else
15618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15619 for as_dir in $PATH
15620 do
15621   IFS=$as_save_IFS
15622   test -z "$as_dir" && as_dir=.
15623   for ac_exec_ext in '' $ac_executable_extensions; do
15624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15625     ac_cv_prog_PERL="$ac_prog"
15626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15627     break 2
15628   fi
15629 done
15630 done
15631
15632 fi
15633 fi
15634 PERL=$ac_cv_prog_PERL
15635 if test -n "$PERL"; then
15636   echo "$as_me:$LINENO: result: $PERL" >&5
15637 echo "${ECHO_T}$PERL" >&6
15638 else
15639   echo "$as_me:$LINENO: result: no" >&5
15640 echo "${ECHO_T}no" >&6
15641 fi
15642
15643   test -n "$PERL" && break
15644 done
15645 test -n "$PERL" || PERL="false"
15646
15647
15648 SYSDEP_SOURCES=
15649 SIGNAL_HANDLER_AUX=
15650
15651 case "${host}" in
15652  i?86-*-linux*)
15653     SIGNAL_HANDLER=include/i386-signal.h
15654     ;;
15655  sparc*-sun-solaris*)
15656     SIGNAL_HANDLER=include/sparc-signal.h
15657     ;;
15658 # ia64-*)
15659 #    SYSDEP_SOURCES=sysdep/ia64.c
15660 #    test -d sysdep || mkdir sysdep
15661 #    ;;
15662  hppa*-*-linux*)
15663     SIGNAL_HANDLER=include/pa-signal.h
15664     ;;
15665  ia64-*-linux*)
15666     SIGNAL_HANDLER=include/dwarf2-signal.h
15667     ;;
15668  powerpc*-*-linux*)
15669     SIGNAL_HANDLER=include/powerpc-signal.h
15670     ;;
15671  alpha*-*-linux*)
15672     SIGNAL_HANDLER=include/dwarf2-signal.h
15673     ;;
15674  s390*-*-linux*)
15675     SIGNAL_HANDLER=include/s390-signal.h
15676     ;;
15677  x86_64*-*-linux*)
15678     SIGNAL_HANDLER=include/x86_64-signal.h
15679     SIGNAL_HANDLER_AUX=include/i386-signal.h
15680     ;;
15681  sparc*-*-linux*)
15682     SIGNAL_HANDLER=include/dwarf2-signal.h
15683     ;;
15684  sh*-*-linux*)
15685     SIGNAL_HANDLER=include/sh-signal.h
15686     ;;
15687  *mingw*)
15688     SIGNAL_HANDLER=include/win32-signal.h
15689     ;;
15690  mips*-*-linux*)
15691     SIGNAL_HANDLER=include/mips-signal.h
15692     ;;
15693  *-*-darwin*)
15694     SIGNAL_HANDLER=include/darwin-signal.h
15695     ;;
15696  *)
15697     SIGNAL_HANDLER=include/default-signal.h
15698     ;;
15699 esac
15700
15701 # If we're using sjlj exceptions, forget what we just learned.
15702 if test "$enable_sjlj_exceptions" = yes; then
15703    SIGNAL_HANDLER=include/default-signal.h
15704    SIGNAL_HANDLER_AUX=
15705 fi
15706
15707 # Define here any compiler flags that you need in order to make backtrace() work.
15708 BACKTRACESPEC=
15709 case "${host}" in
15710  x86_64*-*-linux*|i?86-*)
15711     BACKTRACESPEC=-fno-omit-frame-pointer
15712     ;;
15713 esac
15714
15715
15716
15717
15718 if test -z "$SIGNAL_HANDLER_AUX"; then
15719   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15720 fi
15721
15722                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15723
15724
15725 if test "${multilib}" = "yes"; then
15726   multilib_arg="--enable-multilib"
15727 else
15728   multilib_arg=
15729 fi
15730
15731
15732
15733 here=`${PWDCMD-pwd}`
15734
15735
15736 # We get this from the environment.
15737
15738
15739                                                                                                               ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15740
15741
15742           ac_config_commands="$ac_config_commands default"
15743
15744
15745 cat >confcache <<\_ACEOF
15746 # This file is a shell script that caches the results of configure
15747 # tests run on this system so they can be shared between configure
15748 # scripts and configure runs, see configure's option --config-cache.
15749 # It is not useful on other systems.  If it contains results you don't
15750 # want to keep, you may remove or edit it.
15751 #
15752 # config.status only pays attention to the cache file if you give it
15753 # the --recheck option to rerun configure.
15754 #
15755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15757 # following values.
15758
15759 _ACEOF
15760
15761 # The following way of writing the cache mishandles newlines in values,
15762 # but we know of no workaround that is simple, portable, and efficient.
15763 # So, don't put newlines in cache variables' values.
15764 # Ultrix sh set writes to stderr and can't be redirected directly,
15765 # and sets the high bit in the cache file unless we assign to the vars.
15766 {
15767   (set) 2>&1 |
15768     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15769     *ac_space=\ *)
15770       # `set' does not quote correctly, so add quotes (double-quote
15771       # substitution turns \\\\ into \\, and sed turns \\ into \).
15772       sed -n \
15773         "s/'/'\\\\''/g;
15774           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15775       ;;
15776     *)
15777       # `set' quotes correctly as required by POSIX, so do not add quotes.
15778       sed -n \
15779         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15780       ;;
15781     esac;
15782 } |
15783   sed '
15784      t clear
15785      : clear
15786      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15787      t end
15788      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15789      : end' >>confcache
15790 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15791   if test -w $cache_file; then
15792     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15793     cat confcache >$cache_file
15794   else
15795     echo "not updating unwritable cache $cache_file"
15796   fi
15797 fi
15798 rm -f confcache
15799
15800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15801 # Let make expand exec_prefix.
15802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15803
15804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15806 # trailing colons and then remove the whole line if VPATH becomes empty
15807 # (actually we leave an empty line to preserve line numbers).
15808 if test "x$srcdir" = x.; then
15809   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15810 s/:*\$(srcdir):*/:/;
15811 s/:*\${srcdir}:*/:/;
15812 s/:*@srcdir@:*/:/;
15813 s/^\([^=]*=[     ]*\):*/\1/;
15814 s/:*$//;
15815 s/^[^=]*=[       ]*$//;
15816 }'
15817 fi
15818
15819 DEFS=-DHAVE_CONFIG_H
15820
15821 ac_libobjs=
15822 ac_ltlibobjs=
15823 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15824   # 1. Remove the extension, and $U if already installed.
15825   ac_i=`echo "$ac_i" |
15826          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15827   # 2. Add them.
15828   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15829   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15830 done
15831 LIBOBJS=$ac_libobjs
15832
15833 LTLIBOBJS=$ac_ltlibobjs
15834
15835
15836 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15837   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15838 Usually this means the macro was only invoked conditionally." >&5
15839 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15840 Usually this means the macro was only invoked conditionally." >&2;}
15841    { (exit 1); exit 1; }; }
15842 fi
15843 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15844   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15845 Usually this means the macro was only invoked conditionally." >&5
15846 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15847 Usually this means the macro was only invoked conditionally." >&2;}
15848    { (exit 1); exit 1; }; }
15849 fi
15850 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15851   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15852 Usually this means the macro was only invoked conditionally." >&5
15853 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15854 Usually this means the macro was only invoked conditionally." >&2;}
15855    { (exit 1); exit 1; }; }
15856 fi
15857 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15858   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15859 Usually this means the macro was only invoked conditionally." >&5
15860 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15861 Usually this means the macro was only invoked conditionally." >&2;}
15862    { (exit 1); exit 1; }; }
15863 fi
15864 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15865   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15866 Usually this means the macro was only invoked conditionally." >&5
15867 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15868 Usually this means the macro was only invoked conditionally." >&2;}
15869    { (exit 1); exit 1; }; }
15870 fi
15871 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15872   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15873 Usually this means the macro was only invoked conditionally." >&5
15874 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15875 Usually this means the macro was only invoked conditionally." >&2;}
15876    { (exit 1); exit 1; }; }
15877 fi
15878 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15879   { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15880 Usually this means the macro was only invoked conditionally." >&5
15881 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15882 Usually this means the macro was only invoked conditionally." >&2;}
15883    { (exit 1); exit 1; }; }
15884 fi
15885 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15886   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15887 Usually this means the macro was only invoked conditionally." >&5
15888 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15889 Usually this means the macro was only invoked conditionally." >&2;}
15890    { (exit 1); exit 1; }; }
15891 fi
15892 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15893   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15894 Usually this means the macro was only invoked conditionally." >&5
15895 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15896 Usually this means the macro was only invoked conditionally." >&2;}
15897    { (exit 1); exit 1; }; }
15898 fi
15899 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15900   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15901 Usually this means the macro was only invoked conditionally." >&5
15902 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15903 Usually this means the macro was only invoked conditionally." >&2;}
15904    { (exit 1); exit 1; }; }
15905 fi
15906 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15907   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15908 Usually this means the macro was only invoked conditionally." >&5
15909 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15910 Usually this means the macro was only invoked conditionally." >&2;}
15911    { (exit 1); exit 1; }; }
15912 fi
15913 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15914   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15915 Usually this means the macro was only invoked conditionally." >&5
15916 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15917 Usually this means the macro was only invoked conditionally." >&2;}
15918    { (exit 1); exit 1; }; }
15919 fi
15920 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15921   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15922 Usually this means the macro was only invoked conditionally." >&5
15923 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15924 Usually this means the macro was only invoked conditionally." >&2;}
15925    { (exit 1); exit 1; }; }
15926 fi
15927 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15928   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15929 Usually this means the macro was only invoked conditionally." >&5
15930 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15931 Usually this means the macro was only invoked conditionally." >&2;}
15932    { (exit 1); exit 1; }; }
15933 fi
15934 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15935   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15936 Usually this means the macro was only invoked conditionally." >&5
15937 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15938 Usually this means the macro was only invoked conditionally." >&2;}
15939    { (exit 1); exit 1; }; }
15940 fi
15941 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15942   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15943 Usually this means the macro was only invoked conditionally." >&5
15944 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15945 Usually this means the macro was only invoked conditionally." >&2;}
15946    { (exit 1); exit 1; }; }
15947 fi
15948 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15949   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15950 Usually this means the macro was only invoked conditionally." >&5
15951 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15952 Usually this means the macro was only invoked conditionally." >&2;}
15953    { (exit 1); exit 1; }; }
15954 fi
15955 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15956   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15957 Usually this means the macro was only invoked conditionally." >&5
15958 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15959 Usually this means the macro was only invoked conditionally." >&2;}
15960    { (exit 1); exit 1; }; }
15961 fi
15962 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15963   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15964 Usually this means the macro was only invoked conditionally." >&5
15965 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15966 Usually this means the macro was only invoked conditionally." >&2;}
15967    { (exit 1); exit 1; }; }
15968 fi
15969 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15970   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15971 Usually this means the macro was only invoked conditionally." >&5
15972 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15973 Usually this means the macro was only invoked conditionally." >&2;}
15974    { (exit 1); exit 1; }; }
15975 fi
15976 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15977   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15978 Usually this means the macro was only invoked conditionally." >&5
15979 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15980 Usually this means the macro was only invoked conditionally." >&2;}
15981    { (exit 1); exit 1; }; }
15982 fi
15983 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15984   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15985 Usually this means the macro was only invoked conditionally." >&5
15986 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15987 Usually this means the macro was only invoked conditionally." >&2;}
15988    { (exit 1); exit 1; }; }
15989 fi
15990 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15991   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15992 Usually this means the macro was only invoked conditionally." >&5
15993 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15994 Usually this means the macro was only invoked conditionally." >&2;}
15995    { (exit 1); exit 1; }; }
15996 fi
15997 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15998   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15999 Usually this means the macro was only invoked conditionally." >&5
16000 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16001 Usually this means the macro was only invoked conditionally." >&2;}
16002    { (exit 1); exit 1; }; }
16003 fi
16004
16005 : ${CONFIG_STATUS=./config.status}
16006 ac_clean_files_save=$ac_clean_files
16007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16008 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16009 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16010 cat >$CONFIG_STATUS <<_ACEOF
16011 #! $SHELL
16012 # Generated by $as_me.
16013 # Run this file to recreate the current configuration.
16014 # Compiler output produced by configure, useful for debugging
16015 # configure, is in config.log if it exists.
16016
16017 debug=false
16018 ac_cs_recheck=false
16019 ac_cs_silent=false
16020 SHELL=\${CONFIG_SHELL-$SHELL}
16021 _ACEOF
16022
16023 cat >>$CONFIG_STATUS <<\_ACEOF
16024 ## --------------------- ##
16025 ## M4sh Initialization.  ##
16026 ## --------------------- ##
16027
16028 # Be Bourne compatible
16029 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16030   emulate sh
16031   NULLCMD=:
16032   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16033   # is contrary to our usage.  Disable this feature.
16034   alias -g '${1+"$@"}'='"$@"'
16035 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16036   set -o posix
16037 fi
16038 DUALCASE=1; export DUALCASE # for MKS sh
16039
16040 # Support unset when possible.
16041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16042   as_unset=unset
16043 else
16044   as_unset=false
16045 fi
16046
16047
16048 # Work around bugs in pre-3.0 UWIN ksh.
16049 $as_unset ENV MAIL MAILPATH
16050 PS1='$ '
16051 PS2='> '
16052 PS4='+ '
16053
16054 # NLS nuisances.
16055 for as_var in \
16056   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16057   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16058   LC_TELEPHONE LC_TIME
16059 do
16060   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16061     eval $as_var=C; export $as_var
16062   else
16063     $as_unset $as_var
16064   fi
16065 done
16066
16067 # Required to use basename.
16068 if expr a : '\(a\)' >/dev/null 2>&1; then
16069   as_expr=expr
16070 else
16071   as_expr=false
16072 fi
16073
16074 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16075   as_basename=basename
16076 else
16077   as_basename=false
16078 fi
16079
16080
16081 # Name of the executable.
16082 as_me=`$as_basename "$0" ||
16083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16084          X"$0" : 'X\(//\)$' \| \
16085          X"$0" : 'X\(/\)$' \| \
16086          .     : '\(.\)' 2>/dev/null ||
16087 echo X/"$0" |
16088     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16089           /^X\/\(\/\/\)$/{ s//\1/; q; }
16090           /^X\/\(\/\).*/{ s//\1/; q; }
16091           s/.*/./; q'`
16092
16093
16094 # PATH needs CR, and LINENO needs CR and PATH.
16095 # Avoid depending upon Character Ranges.
16096 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16097 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16098 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16099 as_cr_digits='0123456789'
16100 as_cr_alnum=$as_cr_Letters$as_cr_digits
16101
16102 # The user is always right.
16103 if test "${PATH_SEPARATOR+set}" != set; then
16104   echo "#! /bin/sh" >conf$$.sh
16105   echo  "exit 0"   >>conf$$.sh
16106   chmod +x conf$$.sh
16107   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16108     PATH_SEPARATOR=';'
16109   else
16110     PATH_SEPARATOR=:
16111   fi
16112   rm -f conf$$.sh
16113 fi
16114
16115
16116   as_lineno_1=$LINENO
16117   as_lineno_2=$LINENO
16118   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16119   test "x$as_lineno_1" != "x$as_lineno_2" &&
16120   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16121   # Find who we are.  Look in the path if we contain no path at all
16122   # relative or not.
16123   case $0 in
16124     *[\\/]* ) as_myself=$0 ;;
16125     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16127 do
16128   IFS=$as_save_IFS
16129   test -z "$as_dir" && as_dir=.
16130   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16131 done
16132
16133        ;;
16134   esac
16135   # We did not find ourselves, most probably we were run as `sh COMMAND'
16136   # in which case we are not to be found in the path.
16137   if test "x$as_myself" = x; then
16138     as_myself=$0
16139   fi
16140   if test ! -f "$as_myself"; then
16141     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16142 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16143    { (exit 1); exit 1; }; }
16144   fi
16145   case $CONFIG_SHELL in
16146   '')
16147     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16149 do
16150   IFS=$as_save_IFS
16151   test -z "$as_dir" && as_dir=.
16152   for as_base in sh bash ksh sh5; do
16153          case $as_dir in
16154          /*)
16155            if ("$as_dir/$as_base" -c '
16156   as_lineno_1=$LINENO
16157   as_lineno_2=$LINENO
16158   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16159   test "x$as_lineno_1" != "x$as_lineno_2" &&
16160   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16161              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16162              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16163              CONFIG_SHELL=$as_dir/$as_base
16164              export CONFIG_SHELL
16165              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16166            fi;;
16167          esac
16168        done
16169 done
16170 ;;
16171   esac
16172
16173   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16174   # uniformly replaced by the line number.  The first 'sed' inserts a
16175   # line-number line before each line; the second 'sed' does the real
16176   # work.  The second script uses 'N' to pair each line-number line
16177   # with the numbered line, and appends trailing '-' during
16178   # substitution so that $LINENO is not a special case at line end.
16179   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16180   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16181   sed '=' <$as_myself |
16182     sed '
16183       N
16184       s,$,-,
16185       : loop
16186       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16187       t loop
16188       s,-$,,
16189       s,^['$as_cr_digits']*\n,,
16190     ' >$as_me.lineno &&
16191   chmod +x $as_me.lineno ||
16192     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16193 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16194    { (exit 1); exit 1; }; }
16195
16196   # Don't try to exec as it changes $[0], causing all sort of problems
16197   # (the dirname of $[0] is not the place where we might find the
16198   # original and so on.  Autoconf is especially sensible to this).
16199   . ./$as_me.lineno
16200   # Exit status is that of the last command.
16201   exit
16202 }
16203
16204
16205 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16206   *c*,-n*) ECHO_N= ECHO_C='
16207 ' ECHO_T='      ' ;;
16208   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16209   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16210 esac
16211
16212 if expr a : '\(a\)' >/dev/null 2>&1; then
16213   as_expr=expr
16214 else
16215   as_expr=false
16216 fi
16217
16218 rm -f conf$$ conf$$.exe conf$$.file
16219 echo >conf$$.file
16220 if ln -s conf$$.file conf$$ 2>/dev/null; then
16221   # We could just check for DJGPP; but this test a) works b) is more generic
16222   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16223   if test -f conf$$.exe; then
16224     # Don't use ln at all; we don't have any links
16225     as_ln_s='cp -p'
16226   else
16227     as_ln_s='ln -s'
16228   fi
16229 elif ln conf$$.file conf$$ 2>/dev/null; then
16230   as_ln_s=ln
16231 else
16232   as_ln_s='cp -p'
16233 fi
16234 rm -f conf$$ conf$$.exe conf$$.file
16235
16236 if mkdir -p . 2>/dev/null; then
16237   as_mkdir_p=:
16238 else
16239   test -d ./-p && rmdir ./-p
16240   as_mkdir_p=false
16241 fi
16242
16243 as_executable_p="test -f"
16244
16245 # Sed expression to map a string onto a valid CPP name.
16246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16247
16248 # Sed expression to map a string onto a valid variable name.
16249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16250
16251
16252 # IFS
16253 # We need space, tab and new line, in precisely that order.
16254 as_nl='
16255 '
16256 IFS="   $as_nl"
16257
16258 # CDPATH.
16259 $as_unset CDPATH
16260
16261 exec 6>&1
16262
16263 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16264 # report actual input values of CONFIG_FILES etc. instead of their
16265 # values after options handling.  Logging --version etc. is OK.
16266 exec 5>>config.log
16267 {
16268   echo
16269   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16270 ## Running $as_me. ##
16271 _ASBOX
16272 } >&5
16273 cat >&5 <<_CSEOF
16274
16275 This file was extended by libjava $as_me version-unused, which was
16276 generated by GNU Autoconf 2.59.  Invocation command line was
16277
16278   CONFIG_FILES    = $CONFIG_FILES
16279   CONFIG_HEADERS  = $CONFIG_HEADERS
16280   CONFIG_LINKS    = $CONFIG_LINKS
16281   CONFIG_COMMANDS = $CONFIG_COMMANDS
16282   $ $0 $@
16283
16284 _CSEOF
16285 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16286 echo >&5
16287 _ACEOF
16288
16289 # Files that config.status was made for.
16290 if test -n "$ac_config_files"; then
16291   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16292 fi
16293
16294 if test -n "$ac_config_headers"; then
16295   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16296 fi
16297
16298 if test -n "$ac_config_links"; then
16299   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16300 fi
16301
16302 if test -n "$ac_config_commands"; then
16303   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16304 fi
16305
16306 cat >>$CONFIG_STATUS <<\_ACEOF
16307
16308 ac_cs_usage="\
16309 \`$as_me' instantiates files from templates according to the
16310 current configuration.
16311
16312 Usage: $0 [OPTIONS] [FILE]...
16313
16314   -h, --help       print this help, then exit
16315   -V, --version    print version number, then exit
16316   -q, --quiet      do not print progress messages
16317   -d, --debug      don't remove temporary files
16318       --recheck    update $as_me by reconfiguring in the same conditions
16319   --file=FILE[:TEMPLATE]
16320                    instantiate the configuration file FILE
16321   --header=FILE[:TEMPLATE]
16322                    instantiate the configuration header FILE
16323
16324 Configuration files:
16325 $config_files
16326
16327 Configuration headers:
16328 $config_headers
16329
16330 Configuration links:
16331 $config_links
16332
16333 Configuration commands:
16334 $config_commands
16335
16336 Report bugs to <bug-autoconf@gnu.org>."
16337 _ACEOF
16338
16339 cat >>$CONFIG_STATUS <<_ACEOF
16340 ac_cs_version="\\
16341 libjava config.status version-unused
16342 configured by $0, generated by GNU Autoconf 2.59,
16343   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16344
16345 Copyright (C) 2003 Free Software Foundation, Inc.
16346 This config.status script is free software; the Free Software Foundation
16347 gives unlimited permission to copy, distribute and modify it."
16348 srcdir=$srcdir
16349 INSTALL="$INSTALL"
16350 _ACEOF
16351
16352 cat >>$CONFIG_STATUS <<\_ACEOF
16353 # If no file are specified by the user, then we need to provide default
16354 # value.  By we need to know if files were specified by the user.
16355 ac_need_defaults=:
16356 while test $# != 0
16357 do
16358   case $1 in
16359   --*=*)
16360     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16361     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16362     ac_shift=:
16363     ;;
16364   -*)
16365     ac_option=$1
16366     ac_optarg=$2
16367     ac_shift=shift
16368     ;;
16369   *) # This is not an option, so the user has probably given explicit
16370      # arguments.
16371      ac_option=$1
16372      ac_need_defaults=false;;
16373   esac
16374
16375   case $ac_option in
16376   # Handling of the options.
16377 _ACEOF
16378 cat >>$CONFIG_STATUS <<\_ACEOF
16379   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16380     ac_cs_recheck=: ;;
16381   --version | --vers* | -V )
16382     echo "$ac_cs_version"; exit 0 ;;
16383   --he | --h)
16384     # Conflict between --help and --header
16385     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16386 Try \`$0 --help' for more information." >&5
16387 echo "$as_me: error: ambiguous option: $1
16388 Try \`$0 --help' for more information." >&2;}
16389    { (exit 1); exit 1; }; };;
16390   --help | --hel | -h )
16391     echo "$ac_cs_usage"; exit 0 ;;
16392   --debug | --d* | -d )
16393     debug=: ;;
16394   --file | --fil | --fi | --f )
16395     $ac_shift
16396     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16397     ac_need_defaults=false;;
16398   --header | --heade | --head | --hea )
16399     $ac_shift
16400     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16401     ac_need_defaults=false;;
16402   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16403   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16404     ac_cs_silent=: ;;
16405
16406   # This is an error.
16407   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16408 Try \`$0 --help' for more information." >&5
16409 echo "$as_me: error: unrecognized option: $1
16410 Try \`$0 --help' for more information." >&2;}
16411    { (exit 1); exit 1; }; } ;;
16412
16413   *) ac_config_targets="$ac_config_targets $1" ;;
16414
16415   esac
16416   shift
16417 done
16418
16419 ac_configure_extra_args=
16420
16421 if $ac_cs_silent; then
16422   exec 6>/dev/null
16423   ac_configure_extra_args="$ac_configure_extra_args --silent"
16424 fi
16425
16426 _ACEOF
16427 cat >>$CONFIG_STATUS <<_ACEOF
16428 if \$ac_cs_recheck; then
16429   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16430   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16431 fi
16432
16433 _ACEOF
16434
16435 cat >>$CONFIG_STATUS <<_ACEOF
16436 #
16437 # INIT-COMMANDS section.
16438 #
16439
16440 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16441 srcdir=${srcdir}
16442 host=${host}
16443 target=${target}
16444 with_multisubdir=${with_multisubdir}
16445 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16446 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16447 libgcj_basedir=${libgcj_basedir}
16448 CC="${CC}"
16449 CXX="${CXX}"
16450 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16451
16452
16453 _ACEOF
16454
16455
16456
16457 cat >>$CONFIG_STATUS <<\_ACEOF
16458 for ac_config_target in $ac_config_targets
16459 do
16460   case "$ac_config_target" in
16461   # Handling of arguments.
16462   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16463   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16464   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16465   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16466   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16467   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16468   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16469   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16470   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16471   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16472   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16473   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16474   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16475   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16476   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16477   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16478   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16479   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16480   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16481   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16482   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16483   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16484   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16485   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16486   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16487   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16488   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16489   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16490   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16491   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16492   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16493   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16494   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16495 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16496    { (exit 1); exit 1; }; };;
16497   esac
16498 done
16499
16500 # If the user did not use the arguments to specify the items to instantiate,
16501 # then the envvar interface is used.  Set only those that are not.
16502 # We use the long form for the default assignment because of an extremely
16503 # bizarre bug on SunOS 4.1.3.
16504 if $ac_need_defaults; then
16505   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16506   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16507   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16508   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16509 fi
16510
16511 # Have a temporary directory for convenience.  Make it in the build tree
16512 # simply because there is no reason to put it here, and in addition,
16513 # creating and moving files from /tmp can sometimes cause problems.
16514 # Create a temporary directory, and hook for its removal unless debugging.
16515 $debug ||
16516 {
16517   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16518   trap '{ (exit 1); exit 1; }' 1 2 13 15
16519 }
16520
16521 # Create a (secure) tmp directory for tmp files.
16522
16523 {
16524   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16525   test -n "$tmp" && test -d "$tmp"
16526 }  ||
16527 {
16528   tmp=./confstat$$-$RANDOM
16529   (umask 077 && mkdir $tmp)
16530 } ||
16531 {
16532    echo "$me: cannot create a temporary directory in ." >&2
16533    { (exit 1); exit 1; }
16534 }
16535
16536 _ACEOF
16537
16538 cat >>$CONFIG_STATUS <<_ACEOF
16539
16540 #
16541 # CONFIG_FILES section.
16542 #
16543
16544 # No need to generate the scripts if there are no CONFIG_FILES.
16545 # This happens for instance when ./config.status config.h
16546 if test -n "\$CONFIG_FILES"; then
16547   # Protect against being on the right side of a sed subst in config.status.
16548   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16549    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16550 s,@SHELL@,$SHELL,;t t
16551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16557 s,@exec_prefix@,$exec_prefix,;t t
16558 s,@prefix@,$prefix,;t t
16559 s,@program_transform_name@,$program_transform_name,;t t
16560 s,@bindir@,$bindir,;t t
16561 s,@sbindir@,$sbindir,;t t
16562 s,@libexecdir@,$libexecdir,;t t
16563 s,@datadir@,$datadir,;t t
16564 s,@sysconfdir@,$sysconfdir,;t t
16565 s,@sharedstatedir@,$sharedstatedir,;t t
16566 s,@localstatedir@,$localstatedir,;t t
16567 s,@libdir@,$libdir,;t t
16568 s,@includedir@,$includedir,;t t
16569 s,@oldincludedir@,$oldincludedir,;t t
16570 s,@infodir@,$infodir,;t t
16571 s,@mandir@,$mandir,;t t
16572 s,@build_alias@,$build_alias,;t t
16573 s,@host_alias@,$host_alias,;t t
16574 s,@target_alias@,$target_alias,;t t
16575 s,@DEFS@,$DEFS,;t t
16576 s,@ECHO_C@,$ECHO_C,;t t
16577 s,@ECHO_N@,$ECHO_N,;t t
16578 s,@ECHO_T@,$ECHO_T,;t t
16579 s,@LIBS@,$LIBS,;t t
16580 s,@build@,$build,;t t
16581 s,@build_cpu@,$build_cpu,;t t
16582 s,@build_vendor@,$build_vendor,;t t
16583 s,@build_os@,$build_os,;t t
16584 s,@build_subdir@,$build_subdir,;t t
16585 s,@host_subdir@,$host_subdir,;t t
16586 s,@target_subdir@,$target_subdir,;t t
16587 s,@libgcj_basedir@,$libgcj_basedir,;t t
16588 s,@host@,$host,;t t
16589 s,@host_cpu@,$host_cpu,;t t
16590 s,@host_vendor@,$host_vendor,;t t
16591 s,@host_os@,$host_os,;t t
16592 s,@target@,$target,;t t
16593 s,@target_cpu@,$target_cpu,;t t
16594 s,@target_vendor@,$target_vendor,;t t
16595 s,@target_os@,$target_os,;t t
16596 s,@target_noncanonical@,$target_noncanonical,;t t
16597 s,@LN_S@,$LN_S,;t t
16598 s,@mkinstalldirs@,$mkinstalldirs,;t t
16599 s,@CC@,$CC,;t t
16600 s,@ac_ct_CC@,$ac_ct_CC,;t t
16601 s,@EXEEXT@,$EXEEXT,;t t
16602 s,@OBJEXT@,$OBJEXT,;t t
16603 s,@CXX@,$CXX,;t t
16604 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16605 s,@CFLAGS@,$CFLAGS,;t t
16606 s,@CXXFLAGS@,$CXXFLAGS,;t t
16607 s,@LDFLAGS@,$LDFLAGS,;t t
16608 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16609 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16610 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16611 s,@CYGPATH_W@,$CYGPATH_W,;t t
16612 s,@PACKAGE@,$PACKAGE,;t t
16613 s,@VERSION@,$VERSION,;t t
16614 s,@ACLOCAL@,$ACLOCAL,;t t
16615 s,@AUTOCONF@,$AUTOCONF,;t t
16616 s,@AUTOMAKE@,$AUTOMAKE,;t t
16617 s,@AUTOHEADER@,$AUTOHEADER,;t t
16618 s,@MAKEINFO@,$MAKEINFO,;t t
16619 s,@install_sh@,$install_sh,;t t
16620 s,@STRIP@,$STRIP,;t t
16621 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16622 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16623 s,@mkdir_p@,$mkdir_p,;t t
16624 s,@AWK@,$AWK,;t t
16625 s,@SET_MAKE@,$SET_MAKE,;t t
16626 s,@am__leading_dot@,$am__leading_dot,;t t
16627 s,@AMTAR@,$AMTAR,;t t
16628 s,@am__tar@,$am__tar,;t t
16629 s,@am__untar@,$am__untar,;t t
16630 s,@DEPDIR@,$DEPDIR,;t t
16631 s,@am__include@,$am__include,;t t
16632 s,@am__quote@,$am__quote,;t t
16633 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16634 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16635 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16636 s,@CCDEPMODE@,$CCDEPMODE,;t t
16637 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16638 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16639 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16640 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16641 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16642 s,@AS@,$AS,;t t
16643 s,@ac_ct_AS@,$ac_ct_AS,;t t
16644 s,@AR@,$AR,;t t
16645 s,@ac_ct_AR@,$ac_ct_AR,;t t
16646 s,@RANLIB@,$RANLIB,;t t
16647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16648 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16649 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16650 s,@MAINT@,$MAINT,;t t
16651 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16652 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16653 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16654 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16655 s,@INCLTDL@,$INCLTDL,;t t
16656 s,@LIBLTDL@,$LIBLTDL,;t t
16657 s,@DIRLTDL@,$DIRLTDL,;t t
16658 s,@LIBTOOL@,$LIBTOOL,;t t
16659 s,@CXXCPP@,$CXXCPP,;t t
16660 s,@CPPFLAGS@,$CPPFLAGS,;t t
16661 s,@GCJ@,$GCJ,;t t
16662 s,@GCJFLAGS@,$GCJFLAGS,;t t
16663 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16664 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16665 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16666 s,@subdirs@,$subdirs,;t t
16667 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16668 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16669 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16670 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16671 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16672 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16673 s,@JAVA_HOME@,$JAVA_HOME,;t t
16674 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16675 s,@INTERPRETER@,$INTERPRETER,;t t
16676 s,@LIBFFI@,$LIBFFI,;t t
16677 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16678 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16679 s,@CPP@,$CPP,;t t
16680 s,@EGREP@,$EGREP,;t t
16681 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16682 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16683 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16684 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16685 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16686 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16687 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16688 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16689 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16690 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16691 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16692 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16693 s,@X_CFLAGS@,$X_CFLAGS,;t t
16694 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16695 s,@X_LIBS@,$X_LIBS,;t t
16696 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16697 s,@TOOLKIT@,$TOOLKIT,;t t
16698 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16699 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16700 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16701 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16702 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16703 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16704 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16705 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16706 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16707 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16708 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16709 s,@GCLIBS@,$GCLIBS,;t t
16710 s,@GCINCS@,$GCINCS,;t t
16711 s,@GCDEPS@,$GCDEPS,;t t
16712 s,@GCSPEC@,$GCSPEC,;t t
16713 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16714 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16715 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16716 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16717 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16718 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16719 s,@THREADLIBS@,$THREADLIBS,;t t
16720 s,@THREADINCS@,$THREADINCS,;t t
16721 s,@THREADDEPS@,$THREADDEPS,;t t
16722 s,@THREADSPEC@,$THREADSPEC,;t t
16723 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16724 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16725 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16726 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16727 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16728 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16729 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16730 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16731 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16732 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16733 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16734 s,@LIBICONV@,$LIBICONV,;t t
16735 s,@LTLIBICONV@,$LTLIBICONV,;t t
16736 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16737 s,@GTK_LIBS@,$GTK_LIBS,;t t
16738 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16739 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16740 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16741 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16742 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16743 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16744 s,@GCJH@,$GCJH,;t t
16745 s,@ZIP@,$ZIP,;t t
16746 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16747 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16748 s,@ZLIBS@,$ZLIBS,;t t
16749 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16750 s,@ZINCS@,$ZINCS,;t t
16751 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16752 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16753 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16754 s,@IEEESPEC@,$IEEESPEC,;t t
16755 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16756 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16757 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16758 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16759 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16760 s,@toolexecdir@,$toolexecdir,;t t
16761 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16762 s,@toolexeclibdir@,$toolexeclibdir,;t t
16763 s,@GCJVERSION@,$GCJVERSION,;t t
16764 s,@gxx_include_dir@,$gxx_include_dir,;t t
16765 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16766 s,@ALLOCA@,$ALLOCA,;t t
16767 s,@PERL@,$PERL,;t t
16768 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16769 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16770 s,@here@,$here,;t t
16771 s,@LIBOBJS@,$LIBOBJS,;t t
16772 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16773 CEOF
16774
16775 _ACEOF
16776
16777   cat >>$CONFIG_STATUS <<\_ACEOF
16778   # Split the substitutions into bite-sized pieces for seds with
16779   # small command number limits, like on Digital OSF/1 and HP-UX.
16780   ac_max_sed_lines=48
16781   ac_sed_frag=1 # Number of current file.
16782   ac_beg=1 # First line for current file.
16783   ac_end=$ac_max_sed_lines # Line after last line for current file.
16784   ac_more_lines=:
16785   ac_sed_cmds=
16786   while $ac_more_lines; do
16787     if test $ac_beg -gt 1; then
16788       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16789     else
16790       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16791     fi
16792     if test ! -s $tmp/subs.frag; then
16793       ac_more_lines=false
16794     else
16795       # The purpose of the label and of the branching condition is to
16796       # speed up the sed processing (if there are no `@' at all, there
16797       # is no need to browse any of the substitutions).
16798       # These are the two extra sed commands mentioned above.
16799       (echo ':t
16800   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16801       if test -z "$ac_sed_cmds"; then
16802         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16803       else
16804         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16805       fi
16806       ac_sed_frag=`expr $ac_sed_frag + 1`
16807       ac_beg=$ac_end
16808       ac_end=`expr $ac_end + $ac_max_sed_lines`
16809     fi
16810   done
16811   if test -z "$ac_sed_cmds"; then
16812     ac_sed_cmds=cat
16813   fi
16814 fi # test -n "$CONFIG_FILES"
16815
16816 _ACEOF
16817 cat >>$CONFIG_STATUS <<\_ACEOF
16818 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16819   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16820   case $ac_file in
16821   - | *:- | *:-:* ) # input from stdin
16822         cat >$tmp/stdin
16823         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16824         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16825   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16826         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16827   * )   ac_file_in=$ac_file.in ;;
16828   esac
16829
16830   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16831   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16833          X"$ac_file" : 'X\(//\)[^/]' \| \
16834          X"$ac_file" : 'X\(//\)$' \| \
16835          X"$ac_file" : 'X\(/\)' \| \
16836          .     : '\(.\)' 2>/dev/null ||
16837 echo X"$ac_file" |
16838     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16839           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16840           /^X\(\/\/\)$/{ s//\1/; q; }
16841           /^X\(\/\).*/{ s//\1/; q; }
16842           s/.*/./; q'`
16843   { if $as_mkdir_p; then
16844     mkdir -p "$ac_dir"
16845   else
16846     as_dir="$ac_dir"
16847     as_dirs=
16848     while test ! -d "$as_dir"; do
16849       as_dirs="$as_dir $as_dirs"
16850       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16852          X"$as_dir" : 'X\(//\)[^/]' \| \
16853          X"$as_dir" : 'X\(//\)$' \| \
16854          X"$as_dir" : 'X\(/\)' \| \
16855          .     : '\(.\)' 2>/dev/null ||
16856 echo X"$as_dir" |
16857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16858           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16859           /^X\(\/\/\)$/{ s//\1/; q; }
16860           /^X\(\/\).*/{ s//\1/; q; }
16861           s/.*/./; q'`
16862     done
16863     test ! -n "$as_dirs" || mkdir $as_dirs
16864   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16865 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16866    { (exit 1); exit 1; }; }; }
16867
16868   ac_builddir=.
16869
16870 if test "$ac_dir" != .; then
16871   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16872   # A "../" for each directory in $ac_dir_suffix.
16873   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16874 else
16875   ac_dir_suffix= ac_top_builddir=
16876 fi
16877
16878 case $srcdir in
16879   .)  # No --srcdir option.  We are building in place.
16880     ac_srcdir=.
16881     if test -z "$ac_top_builddir"; then
16882        ac_top_srcdir=.
16883     else
16884        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16885     fi ;;
16886   [\\/]* | ?:[\\/]* )  # Absolute path.
16887     ac_srcdir=$srcdir$ac_dir_suffix;
16888     ac_top_srcdir=$srcdir ;;
16889   *) # Relative path.
16890     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16891     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16892 esac
16893
16894 # Do not use `cd foo && pwd` to compute absolute paths, because
16895 # the directories may not exist.
16896 case `pwd` in
16897 .) ac_abs_builddir="$ac_dir";;
16898 *)
16899   case "$ac_dir" in
16900   .) ac_abs_builddir=`pwd`;;
16901   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16902   *) ac_abs_builddir=`pwd`/"$ac_dir";;
16903   esac;;
16904 esac
16905 case $ac_abs_builddir in
16906 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16907 *)
16908   case ${ac_top_builddir}. in
16909   .) ac_abs_top_builddir=$ac_abs_builddir;;
16910   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16911   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16912   esac;;
16913 esac
16914 case $ac_abs_builddir in
16915 .) ac_abs_srcdir=$ac_srcdir;;
16916 *)
16917   case $ac_srcdir in
16918   .) ac_abs_srcdir=$ac_abs_builddir;;
16919   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16920   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16921   esac;;
16922 esac
16923 case $ac_abs_builddir in
16924 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16925 *)
16926   case $ac_top_srcdir in
16927   .) ac_abs_top_srcdir=$ac_abs_builddir;;
16928   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16929   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16930   esac;;
16931 esac
16932
16933
16934   case $INSTALL in
16935   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16936   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16937   esac
16938
16939   # Let's still pretend it is `configure' which instantiates (i.e., don't
16940   # use $as_me), people would be surprised to read:
16941   #    /* config.h.  Generated by config.status.  */
16942   if test x"$ac_file" = x-; then
16943     configure_input=
16944   else
16945     configure_input="$ac_file.  "
16946   fi
16947   configure_input=$configure_input"Generated from `echo $ac_file_in |
16948                                      sed 's,.*/,,'` by configure."
16949
16950   # First look for the input files in the build tree, otherwise in the
16951   # src tree.
16952   ac_file_inputs=`IFS=:
16953     for f in $ac_file_in; do
16954       case $f in
16955       -) echo $tmp/stdin ;;
16956       [\\/$]*)
16957          # Absolute (can't be DOS-style, as IFS=:)
16958          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16959 echo "$as_me: error: cannot find input file: $f" >&2;}
16960    { (exit 1); exit 1; }; }
16961          echo "$f";;
16962       *) # Relative
16963          if test -f "$f"; then
16964            # Build tree
16965            echo "$f"
16966          elif test -f "$srcdir/$f"; then
16967            # Source tree
16968            echo "$srcdir/$f"
16969          else
16970            # /dev/null tree
16971            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16972 echo "$as_me: error: cannot find input file: $f" >&2;}
16973    { (exit 1); exit 1; }; }
16974          fi;;
16975       esac
16976     done` || { (exit 1); exit 1; }
16977
16978   if test x"$ac_file" != x-; then
16979     { echo "$as_me:$LINENO: creating $ac_file" >&5
16980 echo "$as_me: creating $ac_file" >&6;}
16981     rm -f "$ac_file"
16982   fi
16983 _ACEOF
16984 cat >>$CONFIG_STATUS <<_ACEOF
16985   sed "$ac_vpsub
16986 $extrasub
16987 _ACEOF
16988 cat >>$CONFIG_STATUS <<\_ACEOF
16989 :t
16990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16991 s,@configure_input@,$configure_input,;t t
16992 s,@srcdir@,$ac_srcdir,;t t
16993 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16994 s,@top_srcdir@,$ac_top_srcdir,;t t
16995 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16996 s,@builddir@,$ac_builddir,;t t
16997 s,@abs_builddir@,$ac_abs_builddir,;t t
16998 s,@top_builddir@,$ac_top_builddir,;t t
16999 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17000 s,@INSTALL@,$ac_INSTALL,;t t
17001 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17002   rm -f $tmp/stdin
17003   if test x"$ac_file" != x-; then
17004     mv $tmp/out $ac_file
17005   else
17006     cat $tmp/out
17007     rm -f $tmp/out
17008   fi
17009
17010 done
17011 _ACEOF
17012 cat >>$CONFIG_STATUS <<\_ACEOF
17013
17014 #
17015 # CONFIG_HEADER section.
17016 #
17017
17018 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17019 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17020 #
17021 # ac_d sets the value in "#define NAME VALUE" lines.
17022 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17023 ac_dB='[         ].*$,\1#\2'
17024 ac_dC=' '
17025 ac_dD=',;t'
17026 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17027 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17028 ac_uB='$,\1#\2define\3'
17029 ac_uC=' '
17030 ac_uD=',;t'
17031
17032 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17033   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17034   case $ac_file in
17035   - | *:- | *:-:* ) # input from stdin
17036         cat >$tmp/stdin
17037         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17038         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17039   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17040         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17041   * )   ac_file_in=$ac_file.in ;;
17042   esac
17043
17044   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17045 echo "$as_me: creating $ac_file" >&6;}
17046
17047   # First look for the input files in the build tree, otherwise in the
17048   # src tree.
17049   ac_file_inputs=`IFS=:
17050     for f in $ac_file_in; do
17051       case $f in
17052       -) echo $tmp/stdin ;;
17053       [\\/$]*)
17054          # Absolute (can't be DOS-style, as IFS=:)
17055          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17056 echo "$as_me: error: cannot find input file: $f" >&2;}
17057    { (exit 1); exit 1; }; }
17058          # Do quote $f, to prevent DOS paths from being IFS'd.
17059          echo "$f";;
17060       *) # Relative
17061          if test -f "$f"; then
17062            # Build tree
17063            echo "$f"
17064          elif test -f "$srcdir/$f"; then
17065            # Source tree
17066            echo "$srcdir/$f"
17067          else
17068            # /dev/null tree
17069            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17070 echo "$as_me: error: cannot find input file: $f" >&2;}
17071    { (exit 1); exit 1; }; }
17072          fi;;
17073       esac
17074     done` || { (exit 1); exit 1; }
17075   # Remove the trailing spaces.
17076   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17077
17078 _ACEOF
17079
17080 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17081 # `conftest.undefs', that substitutes the proper values into
17082 # config.h.in to produce config.h.  The first handles `#define'
17083 # templates, and the second `#undef' templates.
17084 # And first: Protect against being on the right side of a sed subst in
17085 # config.status.  Protect against being in an unquoted here document
17086 # in config.status.
17087 rm -f conftest.defines conftest.undefs
17088 # Using a here document instead of a string reduces the quoting nightmare.
17089 # Putting comments in sed scripts is not portable.
17090 #
17091 # `end' is used to avoid that the second main sed command (meant for
17092 # 0-ary CPP macros) applies to n-ary macro definitions.
17093 # See the Autoconf documentation for `clear'.
17094 cat >confdef2sed.sed <<\_ACEOF
17095 s/[\\&,]/\\&/g
17096 s,[\\$`],\\&,g
17097 t clear
17098 : clear
17099 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17100 t end
17101 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17102 : end
17103 _ACEOF
17104 # If some macros were called several times there might be several times
17105 # the same #defines, which is useless.  Nevertheless, we may not want to
17106 # sort them, since we want the *last* AC-DEFINE to be honored.
17107 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17108 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17109 rm -f confdef2sed.sed
17110
17111 # This sed command replaces #undef with comments.  This is necessary, for
17112 # example, in the case of _POSIX_SOURCE, which is predefined and required
17113 # on some systems where configure will not decide to define it.
17114 cat >>conftest.undefs <<\_ACEOF
17115 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17116 _ACEOF
17117
17118 # Break up conftest.defines because some shells have a limit on the size
17119 # of here documents, and old seds have small limits too (100 cmds).
17120 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17121 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17122 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17123 echo '  :' >>$CONFIG_STATUS
17124 rm -f conftest.tail
17125 while grep . conftest.defines >/dev/null
17126 do
17127   # Write a limited-size here document to $tmp/defines.sed.
17128   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17129   # Speed up: don't consider the non `#define' lines.
17130   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17131   # Work around the forget-to-reset-the-flag bug.
17132   echo 't clr' >>$CONFIG_STATUS
17133   echo ': clr' >>$CONFIG_STATUS
17134   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17135   echo 'CEOF
17136   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17137   rm -f $tmp/in
17138   mv $tmp/out $tmp/in
17139 ' >>$CONFIG_STATUS
17140   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17141   rm -f conftest.defines
17142   mv conftest.tail conftest.defines
17143 done
17144 rm -f conftest.defines
17145 echo '  fi # grep' >>$CONFIG_STATUS
17146 echo >>$CONFIG_STATUS
17147
17148 # Break up conftest.undefs because some shells have a limit on the size
17149 # of here documents, and old seds have small limits too (100 cmds).
17150 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17151 rm -f conftest.tail
17152 while grep . conftest.undefs >/dev/null
17153 do
17154   # Write a limited-size here document to $tmp/undefs.sed.
17155   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17156   # Speed up: don't consider the non `#undef'
17157   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17158   # Work around the forget-to-reset-the-flag bug.
17159   echo 't clr' >>$CONFIG_STATUS
17160   echo ': clr' >>$CONFIG_STATUS
17161   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17162   echo 'CEOF
17163   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17164   rm -f $tmp/in
17165   mv $tmp/out $tmp/in
17166 ' >>$CONFIG_STATUS
17167   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17168   rm -f conftest.undefs
17169   mv conftest.tail conftest.undefs
17170 done
17171 rm -f conftest.undefs
17172
17173 cat >>$CONFIG_STATUS <<\_ACEOF
17174   # Let's still pretend it is `configure' which instantiates (i.e., don't
17175   # use $as_me), people would be surprised to read:
17176   #    /* config.h.  Generated by config.status.  */
17177   if test x"$ac_file" = x-; then
17178     echo "/* Generated by configure.  */" >$tmp/config.h
17179   else
17180     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17181   fi
17182   cat $tmp/in >>$tmp/config.h
17183   rm -f $tmp/in
17184   if test x"$ac_file" != x-; then
17185     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17186       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17187 echo "$as_me: $ac_file is unchanged" >&6;}
17188     else
17189       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191          X"$ac_file" : 'X\(//\)[^/]' \| \
17192          X"$ac_file" : 'X\(//\)$' \| \
17193          X"$ac_file" : 'X\(/\)' \| \
17194          .     : '\(.\)' 2>/dev/null ||
17195 echo X"$ac_file" |
17196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17197           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17198           /^X\(\/\/\)$/{ s//\1/; q; }
17199           /^X\(\/\).*/{ s//\1/; q; }
17200           s/.*/./; q'`
17201       { if $as_mkdir_p; then
17202     mkdir -p "$ac_dir"
17203   else
17204     as_dir="$ac_dir"
17205     as_dirs=
17206     while test ! -d "$as_dir"; do
17207       as_dirs="$as_dir $as_dirs"
17208       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210          X"$as_dir" : 'X\(//\)[^/]' \| \
17211          X"$as_dir" : 'X\(//\)$' \| \
17212          X"$as_dir" : 'X\(/\)' \| \
17213          .     : '\(.\)' 2>/dev/null ||
17214 echo X"$as_dir" |
17215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17216           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17217           /^X\(\/\/\)$/{ s//\1/; q; }
17218           /^X\(\/\).*/{ s//\1/; q; }
17219           s/.*/./; q'`
17220     done
17221     test ! -n "$as_dirs" || mkdir $as_dirs
17222   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17224    { (exit 1); exit 1; }; }; }
17225
17226       rm -f $ac_file
17227       mv $tmp/config.h $ac_file
17228     fi
17229   else
17230     cat $tmp/config.h
17231     rm -f $tmp/config.h
17232   fi
17233 # Compute $ac_file's index in $config_headers.
17234 _am_stamp_count=1
17235 for _am_header in $config_headers :; do
17236   case $_am_header in
17237     $ac_file | $ac_file:* )
17238       break ;;
17239     * )
17240       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17241   esac
17242 done
17243 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17244 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245          X$ac_file : 'X\(//\)[^/]' \| \
17246          X$ac_file : 'X\(//\)$' \| \
17247          X$ac_file : 'X\(/\)' \| \
17248          .     : '\(.\)' 2>/dev/null ||
17249 echo X$ac_file |
17250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17252           /^X\(\/\/\)$/{ s//\1/; q; }
17253           /^X\(\/\).*/{ s//\1/; q; }
17254           s/.*/./; q'`/stamp-h$_am_stamp_count
17255 done
17256 _ACEOF
17257 cat >>$CONFIG_STATUS <<\_ACEOF
17258
17259 #
17260 # CONFIG_LINKS section.
17261 #
17262
17263 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17264   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17265   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17266
17267   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17268 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17269
17270   if test ! -r $srcdir/$ac_source; then
17271     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17272 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17273    { (exit 1); exit 1; }; }
17274   fi
17275   rm -f $ac_dest
17276
17277   # Make relative symlinks.
17278   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17279 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280          X"$ac_dest" : 'X\(//\)[^/]' \| \
17281          X"$ac_dest" : 'X\(//\)$' \| \
17282          X"$ac_dest" : 'X\(/\)' \| \
17283          .     : '\(.\)' 2>/dev/null ||
17284 echo X"$ac_dest" |
17285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17287           /^X\(\/\/\)$/{ s//\1/; q; }
17288           /^X\(\/\).*/{ s//\1/; q; }
17289           s/.*/./; q'`
17290   { if $as_mkdir_p; then
17291     mkdir -p "$ac_dest_dir"
17292   else
17293     as_dir="$ac_dest_dir"
17294     as_dirs=
17295     while test ! -d "$as_dir"; do
17296       as_dirs="$as_dir $as_dirs"
17297       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17299          X"$as_dir" : 'X\(//\)[^/]' \| \
17300          X"$as_dir" : 'X\(//\)$' \| \
17301          X"$as_dir" : 'X\(/\)' \| \
17302          .     : '\(.\)' 2>/dev/null ||
17303 echo X"$as_dir" |
17304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17306           /^X\(\/\/\)$/{ s//\1/; q; }
17307           /^X\(\/\).*/{ s//\1/; q; }
17308           s/.*/./; q'`
17309     done
17310     test ! -n "$as_dirs" || mkdir $as_dirs
17311   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17312 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17313    { (exit 1); exit 1; }; }; }
17314
17315   ac_builddir=.
17316
17317 if test "$ac_dest_dir" != .; then
17318   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17319   # A "../" for each directory in $ac_dir_suffix.
17320   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17321 else
17322   ac_dir_suffix= ac_top_builddir=
17323 fi
17324
17325 case $srcdir in
17326   .)  # No --srcdir option.  We are building in place.
17327     ac_srcdir=.
17328     if test -z "$ac_top_builddir"; then
17329        ac_top_srcdir=.
17330     else
17331        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17332     fi ;;
17333   [\\/]* | ?:[\\/]* )  # Absolute path.
17334     ac_srcdir=$srcdir$ac_dir_suffix;
17335     ac_top_srcdir=$srcdir ;;
17336   *) # Relative path.
17337     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17338     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17339 esac
17340
17341 # Do not use `cd foo && pwd` to compute absolute paths, because
17342 # the directories may not exist.
17343 case `pwd` in
17344 .) ac_abs_builddir="$ac_dest_dir";;
17345 *)
17346   case "$ac_dest_dir" in
17347   .) ac_abs_builddir=`pwd`;;
17348   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17349   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17350   esac;;
17351 esac
17352 case $ac_abs_builddir in
17353 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17354 *)
17355   case ${ac_top_builddir}. in
17356   .) ac_abs_top_builddir=$ac_abs_builddir;;
17357   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17358   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17359   esac;;
17360 esac
17361 case $ac_abs_builddir in
17362 .) ac_abs_srcdir=$ac_srcdir;;
17363 *)
17364   case $ac_srcdir in
17365   .) ac_abs_srcdir=$ac_abs_builddir;;
17366   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17367   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17368   esac;;
17369 esac
17370 case $ac_abs_builddir in
17371 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17372 *)
17373   case $ac_top_srcdir in
17374   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17375   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17376   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17377   esac;;
17378 esac
17379
17380
17381   case $srcdir in
17382   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17383       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17384   esac
17385
17386   # Try a symlink, then a hard link, then a copy.
17387   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17388     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17389     cp -p $srcdir/$ac_source $ac_dest ||
17390     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17391 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17392    { (exit 1); exit 1; }; }
17393 done
17394 _ACEOF
17395 cat >>$CONFIG_STATUS <<\_ACEOF
17396
17397 #
17398 # CONFIG_COMMANDS section.
17399 #
17400 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17401   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17402   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17403   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17404 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17405          X"$ac_dest" : 'X\(//\)[^/]' \| \
17406          X"$ac_dest" : 'X\(//\)$' \| \
17407          X"$ac_dest" : 'X\(/\)' \| \
17408          .     : '\(.\)' 2>/dev/null ||
17409 echo X"$ac_dest" |
17410     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17411           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17412           /^X\(\/\/\)$/{ s//\1/; q; }
17413           /^X\(\/\).*/{ s//\1/; q; }
17414           s/.*/./; q'`
17415   { if $as_mkdir_p; then
17416     mkdir -p "$ac_dir"
17417   else
17418     as_dir="$ac_dir"
17419     as_dirs=
17420     while test ! -d "$as_dir"; do
17421       as_dirs="$as_dir $as_dirs"
17422       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17424          X"$as_dir" : 'X\(//\)[^/]' \| \
17425          X"$as_dir" : 'X\(//\)$' \| \
17426          X"$as_dir" : 'X\(/\)' \| \
17427          .     : '\(.\)' 2>/dev/null ||
17428 echo X"$as_dir" |
17429     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17430           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17431           /^X\(\/\/\)$/{ s//\1/; q; }
17432           /^X\(\/\).*/{ s//\1/; q; }
17433           s/.*/./; q'`
17434     done
17435     test ! -n "$as_dirs" || mkdir $as_dirs
17436   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17438    { (exit 1); exit 1; }; }; }
17439
17440   ac_builddir=.
17441
17442 if test "$ac_dir" != .; then
17443   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17444   # A "../" for each directory in $ac_dir_suffix.
17445   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17446 else
17447   ac_dir_suffix= ac_top_builddir=
17448 fi
17449
17450 case $srcdir in
17451   .)  # No --srcdir option.  We are building in place.
17452     ac_srcdir=.
17453     if test -z "$ac_top_builddir"; then
17454        ac_top_srcdir=.
17455     else
17456        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17457     fi ;;
17458   [\\/]* | ?:[\\/]* )  # Absolute path.
17459     ac_srcdir=$srcdir$ac_dir_suffix;
17460     ac_top_srcdir=$srcdir ;;
17461   *) # Relative path.
17462     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17463     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17464 esac
17465
17466 # Do not use `cd foo && pwd` to compute absolute paths, because
17467 # the directories may not exist.
17468 case `pwd` in
17469 .) ac_abs_builddir="$ac_dir";;
17470 *)
17471   case "$ac_dir" in
17472   .) ac_abs_builddir=`pwd`;;
17473   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17474   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17475   esac;;
17476 esac
17477 case $ac_abs_builddir in
17478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17479 *)
17480   case ${ac_top_builddir}. in
17481   .) ac_abs_top_builddir=$ac_abs_builddir;;
17482   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17483   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17484   esac;;
17485 esac
17486 case $ac_abs_builddir in
17487 .) ac_abs_srcdir=$ac_srcdir;;
17488 *)
17489   case $ac_srcdir in
17490   .) ac_abs_srcdir=$ac_abs_builddir;;
17491   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17492   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17493   esac;;
17494 esac
17495 case $ac_abs_builddir in
17496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17497 *)
17498   case $ac_top_srcdir in
17499   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17500   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17501   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17502   esac;;
17503 esac
17504
17505
17506   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17507 echo "$as_me: executing $ac_dest commands" >&6;}
17508   case $ac_dest in
17509     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17510   # Strip MF so we end up with the name of the file.
17511   mf=`echo "$mf" | sed -e 's/:.*$//'`
17512   # Check whether this is an Automake generated Makefile or not.
17513   # We used to match only the files named `Makefile.in', but
17514   # some people rename them; so instead we look at the file content.
17515   # Grep'ing the first line is not enough: some people post-process
17516   # each Makefile.in and add a new line on top of each file to say so.
17517   # So let's grep whole file.
17518   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17519     dirpart=`(dirname "$mf") 2>/dev/null ||
17520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17521          X"$mf" : 'X\(//\)[^/]' \| \
17522          X"$mf" : 'X\(//\)$' \| \
17523          X"$mf" : 'X\(/\)' \| \
17524          .     : '\(.\)' 2>/dev/null ||
17525 echo X"$mf" |
17526     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17527           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17528           /^X\(\/\/\)$/{ s//\1/; q; }
17529           /^X\(\/\).*/{ s//\1/; q; }
17530           s/.*/./; q'`
17531   else
17532     continue
17533   fi
17534   # Extract the definition of DEPDIR, am__include, and am__quote
17535   # from the Makefile without running `make'.
17536   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17537   test -z "$DEPDIR" && continue
17538   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17539   test -z "am__include" && continue
17540   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17541   # When using ansi2knr, U may be empty or an underscore; expand it
17542   U=`sed -n 's/^U = //p' < "$mf"`
17543   # Find all dependency output files, they are included files with
17544   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17545   # simplest approach to changing $(DEPDIR) to its actual value in the
17546   # expansion.
17547   for file in `sed -n "
17548     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17549        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17550     # Make sure the directory exists.
17551     test -f "$dirpart/$file" && continue
17552     fdir=`(dirname "$file") 2>/dev/null ||
17553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17554          X"$file" : 'X\(//\)[^/]' \| \
17555          X"$file" : 'X\(//\)$' \| \
17556          X"$file" : 'X\(/\)' \| \
17557          .     : '\(.\)' 2>/dev/null ||
17558 echo X"$file" |
17559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17560           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17561           /^X\(\/\/\)$/{ s//\1/; q; }
17562           /^X\(\/\).*/{ s//\1/; q; }
17563           s/.*/./; q'`
17564     { if $as_mkdir_p; then
17565     mkdir -p $dirpart/$fdir
17566   else
17567     as_dir=$dirpart/$fdir
17568     as_dirs=
17569     while test ! -d "$as_dir"; do
17570       as_dirs="$as_dir $as_dirs"
17571       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17573          X"$as_dir" : 'X\(//\)[^/]' \| \
17574          X"$as_dir" : 'X\(//\)$' \| \
17575          X"$as_dir" : 'X\(/\)' \| \
17576          .     : '\(.\)' 2>/dev/null ||
17577 echo X"$as_dir" |
17578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17579           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17580           /^X\(\/\/\)$/{ s//\1/; q; }
17581           /^X\(\/\).*/{ s//\1/; q; }
17582           s/.*/./; q'`
17583     done
17584     test ! -n "$as_dirs" || mkdir $as_dirs
17585   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17586 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17587    { (exit 1); exit 1; }; }; }
17588
17589     # echo "creating $dirpart/$file"
17590     echo '# dummy' > "$dirpart/$file"
17591   done
17592 done
17593  ;;
17594     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17595 case " $CONFIG_FILES " in
17596  *" Makefile "*)
17597    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17598    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17599    ;;
17600 esac
17601 for ac_multi_file in $CONFIG_FILES; do
17602   case $ac_multi_file in
17603   */Makefile)
17604     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17605   esac
17606 done
17607  ;;
17608   esac
17609 done
17610 _ACEOF
17611
17612 cat >>$CONFIG_STATUS <<\_ACEOF
17613
17614 { (exit 0); exit 0; }
17615 _ACEOF
17616 chmod +x $CONFIG_STATUS
17617 ac_clean_files=$ac_clean_files_save
17618
17619
17620 # configure is writing to config.log, and then calls config.status.
17621 # config.status does its own redirection, appending to config.log.
17622 # Unfortunately, on DOS this fails, as config.log is still kept open
17623 # by configure, so config.status won't be able to write to it; its
17624 # output is simply discarded.  So we exec the FD to /dev/null,
17625 # effectively closing config.log, so it can be properly (re)opened and
17626 # appended to by config.status.  When coming back to configure, we
17627 # need to make the FD available again.
17628 if test "$no_create" != yes; then
17629   ac_cs_success=:
17630   ac_config_status_args=
17631   test "$silent" = yes &&
17632     ac_config_status_args="$ac_config_status_args --quiet"
17633   exec 5>/dev/null
17634   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17635   exec 5>>config.log
17636   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17637   # would make configure fail if this is the last instruction.
17638   $ac_cs_success || { (exit 1); exit 1; }
17639 fi
17640
17641 #
17642 # CONFIG_SUBDIRS section.
17643 #
17644 if test "$no_recursion" != yes; then
17645
17646   # Remove --cache-file and --srcdir arguments so they do not pile up.
17647   ac_sub_configure_args=
17648   ac_prev=
17649   for ac_arg in $ac_configure_args; do
17650     if test -n "$ac_prev"; then
17651       ac_prev=
17652       continue
17653     fi
17654     case $ac_arg in
17655     -cache-file | --cache-file | --cache-fil | --cache-fi \
17656     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17657       ac_prev=cache_file ;;
17658     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17659     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17660     | --c=*)
17661       ;;
17662     --config-cache | -C)
17663       ;;
17664     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17665       ac_prev=srcdir ;;
17666     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17667       ;;
17668     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17669       ac_prev=prefix ;;
17670     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17671       ;;
17672     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17673     esac
17674   done
17675
17676   # Always prepend --prefix to ensure using the same prefix
17677   # in subdir configurations.
17678   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17679
17680   ac_popdir=`pwd`
17681   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17682
17683     # Do not complain, so a configure script can configure whichever
17684     # parts of a large source tree are present.
17685     test -d $srcdir/$ac_dir || continue
17686
17687     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17688 echo "$as_me: configuring in $ac_dir" >&6;}
17689     { if $as_mkdir_p; then
17690     mkdir -p "$ac_dir"
17691   else
17692     as_dir="$ac_dir"
17693     as_dirs=
17694     while test ! -d "$as_dir"; do
17695       as_dirs="$as_dir $as_dirs"
17696       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698          X"$as_dir" : 'X\(//\)[^/]' \| \
17699          X"$as_dir" : 'X\(//\)$' \| \
17700          X"$as_dir" : 'X\(/\)' \| \
17701          .     : '\(.\)' 2>/dev/null ||
17702 echo X"$as_dir" |
17703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17705           /^X\(\/\/\)$/{ s//\1/; q; }
17706           /^X\(\/\).*/{ s//\1/; q; }
17707           s/.*/./; q'`
17708     done
17709     test ! -n "$as_dirs" || mkdir $as_dirs
17710   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17711 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17712    { (exit 1); exit 1; }; }; }
17713
17714     ac_builddir=.
17715
17716 if test "$ac_dir" != .; then
17717   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17718   # A "../" for each directory in $ac_dir_suffix.
17719   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17720 else
17721   ac_dir_suffix= ac_top_builddir=
17722 fi
17723
17724 case $srcdir in
17725   .)  # No --srcdir option.  We are building in place.
17726     ac_srcdir=.
17727     if test -z "$ac_top_builddir"; then
17728        ac_top_srcdir=.
17729     else
17730        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17731     fi ;;
17732   [\\/]* | ?:[\\/]* )  # Absolute path.
17733     ac_srcdir=$srcdir$ac_dir_suffix;
17734     ac_top_srcdir=$srcdir ;;
17735   *) # Relative path.
17736     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17737     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17738 esac
17739
17740 # Do not use `cd foo && pwd` to compute absolute paths, because
17741 # the directories may not exist.
17742 case `pwd` in
17743 .) ac_abs_builddir="$ac_dir";;
17744 *)
17745   case "$ac_dir" in
17746   .) ac_abs_builddir=`pwd`;;
17747   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17748   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17749   esac;;
17750 esac
17751 case $ac_abs_builddir in
17752 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17753 *)
17754   case ${ac_top_builddir}. in
17755   .) ac_abs_top_builddir=$ac_abs_builddir;;
17756   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17757   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17758   esac;;
17759 esac
17760 case $ac_abs_builddir in
17761 .) ac_abs_srcdir=$ac_srcdir;;
17762 *)
17763   case $ac_srcdir in
17764   .) ac_abs_srcdir=$ac_abs_builddir;;
17765   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17766   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17767   esac;;
17768 esac
17769 case $ac_abs_builddir in
17770 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17771 *)
17772   case $ac_top_srcdir in
17773   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17774   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17775   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17776   esac;;
17777 esac
17778
17779
17780     cd $ac_dir
17781
17782     # Check for guested configure; otherwise get Cygnus style configure.
17783     if test -f $ac_srcdir/configure.gnu; then
17784       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17785     elif test -f $ac_srcdir/configure; then
17786       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17787     elif test -f $ac_srcdir/configure.in; then
17788       ac_sub_configure=$ac_configure
17789     else
17790       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17791 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17792       ac_sub_configure=
17793     fi
17794
17795     # The recursion is here.
17796     if test -n "$ac_sub_configure"; then
17797       # Make the cache file name correct relative to the subdirectory.
17798       case $cache_file in
17799       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17800       *) # Relative path.
17801         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17802       esac
17803
17804       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17805 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17806       # The eval makes quoting arguments work.
17807       eval $ac_sub_configure $ac_sub_configure_args \
17808            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17809         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17810 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17811    { (exit 1); exit 1; }; }
17812     fi
17813
17814     cd "$ac_popdir"
17815   done
17816 fi
17817