OSDN Git Service

* java/lang/natClassLoader.cc (_Jv_NewClass): Use
[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 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-debug   enable runtime debugging code
869   --enable-gc-debug       include full support for pointer backtracing etc.
870   --enable-interpreter    enable interpreter
871   --enable-sjlj-exceptions
872                           force use of builtin_setjmp for exceptions
873   --disable-java-net      disable java.net
874   --disable-jvmpi         disable JVMPI support
875   --enable-java-awt       list of AWT peer implementations to be built
876   --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
877   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
878   --disable-rpath         do not hardcode runtime library paths
879
880 Optional Packages:
881   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
882   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
883   --with-target-subdir=SUBDIR
884                           configure in a subdirectory
885   --with-cross-host=HOST  configure with a cross compiler from HOST
886   --with-newlib           configure with newlib
887   --with-gnu-ld           assume the C compiler uses GNU ld default=no
888   --with-pic              try to use only PIC/non-PIC objects default=use both
889   --with-java-home=DIRECTORY
890                           value of java.home system property
891   --with-win32-nlsapi=ansi or unicows or unicode
892                           native MinGW libgcj Win32 OS API (default is ansi)
893   --without-libffi        don't use libffi
894   --with-ecos             enable runtime eCos target support
895   --with-system-zlib      use installed libz
896   --with-x                use the X Window System
897   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
898   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
899
900 Some influential environment variables:
901   CC          C compiler command
902   CFLAGS      C compiler flags
903   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
904               nonstandard directory <lib dir>
905   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
906               headers in a nonstandard directory <include dir>
907   CXX         C++ compiler command
908   CXXFLAGS    C++ compiler flags
909   CXXCPP      C++ preprocessor
910   CPP         C preprocessor
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919   # If there are subdirs, report their specific --help.
920   ac_popdir=`pwd`
921   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922     test -d $ac_dir || continue
923     ac_builddir=.
924
925 if test "$ac_dir" != .; then
926   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927   # A "../" for each directory in $ac_dir_suffix.
928   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930   ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934   .)  # No --srcdir option.  We are building in place.
935     ac_srcdir=.
936     if test -z "$ac_top_builddir"; then
937        ac_top_srcdir=.
938     else
939        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940     fi ;;
941   [\\/]* | ?:[\\/]* )  # Absolute path.
942     ac_srcdir=$srcdir$ac_dir_suffix;
943     ac_top_srcdir=$srcdir ;;
944   *) # Relative path.
945     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946     ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
953 *)
954   case "$ac_dir" in
955   .) ac_abs_builddir=`pwd`;;
956   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957   *) ac_abs_builddir=`pwd`/"$ac_dir";;
958   esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *)
963   case ${ac_top_builddir}. in
964   .) ac_abs_top_builddir=$ac_abs_builddir;;
965   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967   esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
971 *)
972   case $ac_srcdir in
973   .) ac_abs_srcdir=$ac_abs_builddir;;
974   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976   esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *)
981   case $ac_top_srcdir in
982   .) ac_abs_top_srcdir=$ac_abs_builddir;;
983   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985   esac;;
986 esac
987
988     cd $ac_dir
989     # Check for guested configure; otherwise get Cygnus style configure.
990     if test -f $ac_srcdir/configure.gnu; then
991       echo
992       $SHELL $ac_srcdir/configure.gnu  --help=recursive
993     elif test -f $ac_srcdir/configure; then
994       echo
995       $SHELL $ac_srcdir/configure  --help=recursive
996     elif test -f $ac_srcdir/configure.ac ||
997            test -f $ac_srcdir/configure.in; then
998       echo
999       $ac_configure --help
1000     else
1001       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002     fi
1003     cd $ac_popdir
1004   done
1005 fi
1006
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009   cat <<\_ACEOF
1010 libjava configure version-unused
1011 generated by GNU Autoconf 2.59
1012
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017   exit 0
1018 fi
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1023
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59.  Invocation command line was
1026
1027   $ $0 $@
1028
1029 _ACEOF
1030 {
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1035
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1044
1045 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1046 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1049 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1050 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1051 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1052
1053 _ASUNAME
1054
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1057 do
1058   IFS=$as_save_IFS
1059   test -z "$as_dir" && as_dir=.
1060   echo "PATH: $as_dir"
1061 done
1062
1063 } >&5
1064
1065 cat >&5 <<_ACEOF
1066
1067
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1071
1072 _ACEOF
1073
1074
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1086 do
1087   for ac_arg
1088   do
1089     case $ac_arg in
1090     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092     | -silent | --silent | --silen | --sile | --sil)
1093       continue ;;
1094     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096     esac
1097     case $ac_pass in
1098     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099     2)
1100       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101       if test $ac_must_keep_next = true; then
1102         ac_must_keep_next=false # Got value, back to normal.
1103       else
1104         case $ac_arg in
1105           *=* | --config-cache | -C | -disable-* | --disable-* \
1106           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108           | -with-* | --with-* | -without-* | --without-* | --x)
1109             case "$ac_configure_args0 " in
1110               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111             esac
1112             ;;
1113           -* ) ac_must_keep_next=true ;;
1114         esac
1115       fi
1116       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117       # Get rid of the leading space.
1118       ac_sep=" "
1119       ;;
1120     esac
1121   done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log.  We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132   # Save into config.log some information that might help in debugging.
1133   {
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141     echo
1142     # The following way of writing the cache mishandles newlines in values,
1143 {
1144   (set) 2>&1 |
1145     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146     *ac_space=\ *)
1147       sed -n \
1148         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150       ;;
1151     *)
1152       sed -n \
1153         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154       ;;
1155     esac;
1156 }
1157     echo
1158
1159     cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164     echo
1165     for ac_var in $ac_subst_vars
1166     do
1167       eval ac_val=$`echo $ac_var`
1168       echo "$ac_var='"'"'$ac_val'"'"'"
1169     done | sort
1170     echo
1171
1172     if test -n "$ac_subst_files"; then
1173       cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178       echo
1179       for ac_var in $ac_subst_files
1180       do
1181         eval ac_val=$`echo $ac_var`
1182         echo "$ac_var='"'"'$ac_val'"'"'"
1183       done | sort
1184       echo
1185     fi
1186
1187     if test -s confdefs.h; then
1188       cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193       echo
1194       sed "/^$/d" confdefs.h | sort
1195       echo
1196     fi
1197     test "$ac_signal" != 0 &&
1198       echo "$as_me: caught signal $ac_signal"
1199     echo "$as_me: exit $exit_status"
1200   } >&5
1201   rm -f core *.core &&
1202   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203     exit $exit_status
1204      ' 0
1205 for ac_signal in 1 2 13 15; do
1206   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1209
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1214
1215 # Predefined preprocessor variables.
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1230
1231
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1235
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1240
1241
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245   if test "x$prefix" != xNONE; then
1246     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247   else
1248     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249   fi
1250 fi
1251 for ac_site_file in $CONFIG_SITE; do
1252   if test -r "$ac_site_file"; then
1253     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255     sed 's/^/| /' "$ac_site_file" >&5
1256     . "$ac_site_file"
1257   fi
1258 done
1259
1260 if test -r "$cache_file"; then
1261   # Some versions of bash will fail to source /dev/null (special
1262   # files actually), so we avoid doing that.
1263   if test -f "$cache_file"; then
1264     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266     case $cache_file in
1267       [\\/]* | ?:[\\/]* ) . $cache_file;;
1268       *)                      . ./$cache_file;;
1269     esac
1270   fi
1271 else
1272   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274   >$cache_file
1275 fi
1276
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283   eval ac_new_set=\$ac_env_${ac_var}_set
1284   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285   eval ac_new_val="\$ac_env_${ac_var}_value"
1286   case $ac_old_set,$ac_new_set in
1287     set,)
1288       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290       ac_cache_corrupted=: ;;
1291     ,set)
1292       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294       ac_cache_corrupted=: ;;
1295     ,);;
1296     *)
1297       if test "x$ac_old_val" != "x$ac_new_val"; then
1298         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1301 echo "$as_me:   former value:  $ac_old_val" >&2;}
1302         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1303 echo "$as_me:   current value: $ac_new_val" >&2;}
1304         ac_cache_corrupted=:
1305       fi;;
1306   esac
1307   # Pass precious variables to config.status.
1308   if test "$ac_new_set" = set; then
1309     case $ac_new_val in
1310     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312     *) ac_arg=$ac_var=$ac_new_val ;;
1313     esac
1314     case " $ac_configure_args " in
1315       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1316       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317     esac
1318   fi
1319 done
1320 if $ac_cache_corrupted; then
1321   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325    { (exit 1); exit 1; }; }
1326 fi
1327
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363 ac_aux_dir=
1364 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365   if test -f $ac_dir/install-sh; then
1366     ac_aux_dir=$ac_dir
1367     ac_install_sh="$ac_aux_dir/install-sh -c"
1368     break
1369   elif test -f $ac_dir/install.sh; then
1370     ac_aux_dir=$ac_dir
1371     ac_install_sh="$ac_aux_dir/install.sh -c"
1372     break
1373   elif test -f $ac_dir/shtool; then
1374     ac_aux_dir=$ac_dir
1375     ac_install_sh="$ac_aux_dir/shtool install -c"
1376     break
1377   fi
1378 done
1379 if test -z "$ac_aux_dir"; then
1380   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382    { (exit 1); exit 1; }; }
1383 fi
1384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1387
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392    { (exit 1); exit 1; }; }
1393
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397   echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399   ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401   ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405    { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409    { (exit 1); exit 1; }; }
1410
1411 fi
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1414 build=$ac_cv_build
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1418
1419
1420  case ${build_alias} in
1421   "") build_noncanonical=${build} ;;
1422   *) build_noncanonical=${build_alias} ;;
1423 esac
1424
1425  case ${host_alias} in
1426   "") host_noncanonical=${build_noncanonical} ;;
1427   *) host_noncanonical=${host_alias} ;;
1428 esac
1429
1430  case ${target_alias} in
1431   "") target_noncanonical=${host_noncanonical} ;;
1432   *) target_noncanonical=${target_alias} ;;
1433 esac
1434
1435   # Prefix 'build-' so this never conflicts with target_subdir.
1436 build_subdir="build-${build_noncanonical}"
1437 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1438 if ( test $srcdir = . && test -d gcc ) \
1439    || test -d $srcdir/../host-${host_noncanonical}; then
1440   host_subdir="host-${host_noncanonical}"
1441 else
1442   host_subdir=.
1443 fi
1444 # No prefix.
1445 target_subdir=${target_noncanonical}
1446
1447
1448 # We use these options to decide which functions to include.
1449
1450 # Check whether --with-target-subdir or --without-target-subdir was given.
1451 if test "${with_target_subdir+set}" = set; then
1452   withval="$with_target_subdir"
1453
1454 fi;
1455
1456 # We may get other options which we don't document:
1457 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1458
1459 # When building with srcdir == objdir, links to the source files will
1460 # be created in directories within the target_subdir.  We have to
1461 # adjust toplevel_srcdir accordingly, so that configure finds
1462 # install-sh and other auxiliary files that live in the top-level
1463 # source directory.
1464 if test "${srcdir}" = "."; then
1465   if test -z "${with_target_subdir}"; then
1466     toprel=".."
1467   else
1468     if test "${with_target_subdir}" != "."; then
1469       toprel="${with_multisrctop}../.."
1470     else
1471       toprel="${with_multisrctop}.."
1472     fi
1473   fi
1474 else
1475   toprel=".."
1476 fi
1477
1478 libgcj_basedir=$srcdir/$toprel/./libjava
1479
1480
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488   ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492    { (exit 1); exit 1; }; }
1493
1494 fi
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1497 host=$ac_cv_host
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1501
1502
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506   echo $ECHO_N "(cached) $ECHO_C" >&6
1507 else
1508   ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510   ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514    { (exit 1); exit 1; }; }
1515
1516 fi
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1523
1524
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528   test "$program_prefix$program_suffix$program_transform_name" = \
1529     NONENONEs,x,x, &&
1530   program_prefix=${target_alias}-
1531  case ${build_alias} in
1532   "") build_noncanonical=${build} ;;
1533   *) build_noncanonical=${build_alias} ;;
1534 esac
1535
1536  case ${target_alias} in
1537   "") target_noncanonical=${host_noncanonical} ;;
1538   *) target_noncanonical=${target_alias} ;;
1539 esac
1540
1541
1542
1543
1544 # This works around the fact that libtool configuration may change LD
1545 # for this particular configuration, but some shells, instead of
1546 # keeping the changes in LD private, export them just because LD is
1547 # exported.
1548 ORIGINAL_LD_FOR_MULTILIBS=$LD
1549
1550 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1552 LN_S=$as_ln_s
1553 if test "$LN_S" = "ln -s"; then
1554   echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1558 echo "${ECHO_T}no, using $LN_S" >&6
1559 fi
1560
1561
1562 # This works around an automake problem.
1563 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1564
1565
1566
1567 # Check whether --with-cross-host or --without-cross-host was given.
1568 if test "${with_cross_host+set}" = set; then
1569   withval="$with_cross_host"
1570
1571 fi;
1572
1573
1574 # Check whether --with-newlib or --without-newlib was given.
1575 if test "${with_newlib+set}" = set; then
1576   withval="$with_newlib"
1577
1578 fi;
1579
1580 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1581 if test "${enable_version_specific_runtime_libs+set}" = set; then
1582   enableval="$enable_version_specific_runtime_libs"
1583   case "$enableval" in
1584       yes) version_specific_libs=yes ;;
1585       no)  version_specific_libs=no ;;
1586       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1587 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1588    { (exit 1); exit 1; }; };;
1589      esac
1590 else
1591   version_specific_libs=no
1592
1593 fi;
1594
1595 # Default to --enable-multilib
1596 # Check whether --enable-multilib or --disable-multilib was given.
1597 if test "${enable_multilib+set}" = set; then
1598   enableval="$enable_multilib"
1599   case "${enableval}" in
1600   yes) multilib=yes ;;
1601   no)  multilib=no ;;
1602   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1603 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1604    { (exit 1); exit 1; }; } ;;
1605  esac
1606 else
1607   multilib=yes
1608 fi;
1609 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1610
1611
1612 # (1) We use an abnormal CXX (without library references), so we
1613 # must cache it under a different name.
1614 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1615 # the non-multilib-adjusted value will be used in multilibs.
1616 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1617 # (4) As another side effect, automake doesn't automatically include them
1618 # in Makefile.in.
1619 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1620 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1621 # used in later tests.  This may not be necessary in libjava; I don't know.
1622
1623
1624
1625 save_CXXFLAGS="$CXXFLAGS"
1626 CXXFLAGS="$CXXFLAGS -fno-builtin"
1627 ac_ext=c
1628 ac_cpp='$CPP $CPPFLAGS'
1629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632 if test -n "$ac_tool_prefix"; then
1633   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   if test -n "$CC"; then
1641   ac_cv_prog_CC="$CC" # Let the user override the test.
1642 else
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 for as_dir in $PATH
1645 do
1646   IFS=$as_save_IFS
1647   test -z "$as_dir" && as_dir=.
1648   for ac_exec_ext in '' $ac_executable_extensions; do
1649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1652     break 2
1653   fi
1654 done
1655 done
1656
1657 fi
1658 fi
1659 CC=$ac_cv_prog_CC
1660 if test -n "$CC"; then
1661   echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1663 else
1664   echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1666 fi
1667
1668 fi
1669 if test -z "$ac_cv_prog_CC"; then
1670   ac_ct_CC=$CC
1671   # Extract the first word of "gcc", so it can be a program name with args.
1672 set dummy gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676   echo $ECHO_N "(cached) $ECHO_C" >&6
1677 else
1678   if test -n "$ac_ct_CC"; then
1679   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1680 else
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682 for as_dir in $PATH
1683 do
1684   IFS=$as_save_IFS
1685   test -z "$as_dir" && as_dir=.
1686   for ac_exec_ext in '' $ac_executable_extensions; do
1687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688     ac_cv_prog_ac_ct_CC="gcc"
1689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690     break 2
1691   fi
1692 done
1693 done
1694
1695 fi
1696 fi
1697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1701 else
1702   echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1704 fi
1705
1706   CC=$ac_ct_CC
1707 else
1708   CC="$ac_cv_prog_CC"
1709 fi
1710
1711 if test -z "$CC"; then
1712   if test -n "$ac_tool_prefix"; then
1713   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718   echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720   if test -n "$CC"; then
1721   ac_cv_prog_CC="$CC" # Let the user override the test.
1722 else
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1724 for as_dir in $PATH
1725 do
1726   IFS=$as_save_IFS
1727   test -z "$as_dir" && as_dir=.
1728   for ac_exec_ext in '' $ac_executable_extensions; do
1729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730     ac_cv_prog_CC="${ac_tool_prefix}cc"
1731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732     break 2
1733   fi
1734 done
1735 done
1736
1737 fi
1738 fi
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741   echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748 fi
1749 if test -z "$ac_cv_prog_CC"; then
1750   ac_ct_CC=$CC
1751   # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   if test -n "$ac_ct_CC"; then
1759   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764   IFS=$as_save_IFS
1765   test -z "$as_dir" && as_dir=.
1766   for ac_exec_ext in '' $ac_executable_extensions; do
1767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768     ac_cv_prog_ac_ct_CC="cc"
1769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770     break 2
1771   fi
1772 done
1773 done
1774
1775 fi
1776 fi
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1781 else
1782   echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 fi
1785
1786   CC=$ac_ct_CC
1787 else
1788   CC="$ac_cv_prog_CC"
1789 fi
1790
1791 fi
1792 if test -z "$CC"; then
1793   # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798   echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800   if test -n "$CC"; then
1801   ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803   ac_prog_rejected=no
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1806 do
1807   IFS=$as_save_IFS
1808   test -z "$as_dir" && as_dir=.
1809   for ac_exec_ext in '' $ac_executable_extensions; do
1810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812        ac_prog_rejected=yes
1813        continue
1814      fi
1815     ac_cv_prog_CC="cc"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821
1822 if test $ac_prog_rejected = yes; then
1823   # We found a bogon in the path, so make sure we never use it.
1824   set dummy $ac_cv_prog_CC
1825   shift
1826   if test $# != 0; then
1827     # We chose a different compiler from the bogus one.
1828     # However, it has the same basename, so the bogon will be chosen
1829     # first if we set CC to just the basename; use the full file name.
1830     shift
1831     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1832   fi
1833 fi
1834 fi
1835 fi
1836 CC=$ac_cv_prog_CC
1837 if test -n "$CC"; then
1838   echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845 fi
1846 if test -z "$CC"; then
1847   if test -n "$ac_tool_prefix"; then
1848   for ac_prog in cl
1849   do
1850     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855   echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857   if test -n "$CC"; then
1858   ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863   IFS=$as_save_IFS
1864   test -z "$as_dir" && as_dir=.
1865   for ac_exec_ext in '' $ac_executable_extensions; do
1866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869     break 2
1870   fi
1871 done
1872 done
1873
1874 fi
1875 fi
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878   echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881   echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885     test -n "$CC" && break
1886   done
1887 fi
1888 if test -z "$CC"; then
1889   ac_ct_CC=$CC
1890   for ac_prog in cl
1891 do
1892   # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897   echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899   if test -n "$ac_ct_CC"; then
1900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1904 do
1905   IFS=$as_save_IFS
1906   test -z "$as_dir" && as_dir=.
1907   for ac_exec_ext in '' $ac_executable_extensions; do
1908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909     ac_cv_prog_ac_ct_CC="$ac_prog"
1910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911     break 2
1912   fi
1913 done
1914 done
1915
1916 fi
1917 fi
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1922 else
1923   echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1925 fi
1926
1927   test -n "$ac_ct_CC" && break
1928 done
1929
1930   CC=$ac_ct_CC
1931 fi
1932
1933 fi
1934
1935
1936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&2;}
1940    { (exit 1); exit 1; }; }
1941
1942 # Provide some information about the compiler.
1943 echo "$as_me:$LINENO:" \
1944      "checking for C compiler version" >&5
1945 ac_compiler=`set X $ac_compile; echo $2`
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1947   (eval $ac_compiler --version </dev/null >&5) 2>&5
1948   ac_status=$?
1949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950   (exit $ac_status); }
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1952   (eval $ac_compiler -v </dev/null >&5) 2>&5
1953   ac_status=$?
1954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955   (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1957   (eval $ac_compiler -V </dev/null >&5) 2>&5
1958   ac_status=$?
1959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960   (exit $ac_status); }
1961
1962 cat >conftest.$ac_ext <<_ACEOF
1963 /* confdefs.h.  */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h.  */
1968
1969 int
1970 main ()
1971 {
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 # FIXME: Cleanup?
1978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979   (eval $ac_link) 2>&5
1980   ac_status=$?
1981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982   (exit $ac_status); }; then
1983   gcc_no_link=no
1984 else
1985   gcc_no_link=yes
1986 fi
1987
1988 if test x$gcc_no_link = xyes; then
1989   # Setting cross_compile will disable run tests; it will
1990   # also disable AC_CHECK_FILE but that's generally
1991   # correct if we can't link.
1992   cross_compiling=yes
1993   EXEEXT=
1994 else
1995   cat >conftest.$ac_ext <<_ACEOF
1996 /* confdefs.h.  */
1997 _ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h.  */
2001
2002 int
2003 main ()
2004 {
2005
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2014 # of exeext.
2015 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019   (eval $ac_link_default) 2>&5
2020   ac_status=$?
2021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022   (exit $ac_status); }; then
2023   # Find the output, starting from the most likely.  This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025 # resort.
2026
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029 ac_cv_exeext=
2030 # b.out is created by i960 compilers.
2031 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2032 do
2033   test -f "$ac_file" || continue
2034   case $ac_file in
2035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2036         ;;
2037     conftest.$ac_ext )
2038         # This is the source file.
2039         ;;
2040     [ab].out )
2041         # We found the default executable, but exeext='' is most
2042         # certainly right.
2043         break;;
2044     *.* )
2045         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046         # FIXME: I believe we export ac_cv_exeext for Libtool,
2047         # but it would be cool to find out if it's true.  Does anybody
2048         # maintain Libtool? --akim.
2049         export ac_cv_exeext
2050         break;;
2051     * )
2052         break;;
2053   esac
2054 done
2055 else
2056   echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&2;}
2063    { (exit 77); exit 77; }; }
2064 fi
2065
2066 ac_exeext=$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_file" >&5
2068 echo "${ECHO_T}$ac_file" >&6
2069
2070 # Check the compiler produces executables we can run.  If not, either
2071 # the compiler is broken, or we cross compile.
2072 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075 # If not cross compiling, check that we can run a simple program.
2076 if test "$cross_compiling" != yes; then
2077   if { ac_try='./$ac_file'
2078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079   (eval $ac_try) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }; }; then
2083     cross_compiling=no
2084   else
2085     if test "$cross_compiling" = maybe; then
2086         cross_compiling=yes
2087     else
2088         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089 If you meant to cross compile, use \`--host'.
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&2;}
2094    { (exit 1); exit 1; }; }
2095     fi
2096   fi
2097 fi
2098 echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6
2100
2101 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102 ac_clean_files=$ac_clean_files_save
2103 # Check the compiler produces executables we can run.  If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108 echo "${ECHO_T}$cross_compiling" >&6
2109
2110 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113   (eval $ac_link) 2>&5
2114   ac_status=$?
2115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116   (exit $ac_status); }; then
2117   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2119 # work properly (i.e., refer to `conftest.exe'), while it won't with
2120 # `rm'.
2121 for ac_file in conftest.exe conftest conftest.*; do
2122   test -f "$ac_file" || continue
2123   case $ac_file in
2124     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126           export ac_cv_exeext
2127           break;;
2128     * ) break;;
2129   esac
2130 done
2131 else
2132   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&2;}
2136    { (exit 1); exit 1; }; }
2137 fi
2138
2139 rm -f conftest$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141 echo "${ECHO_T}$ac_cv_exeext" >&6
2142
2143 rm -f conftest.$ac_ext
2144 EXEEXT=$ac_cv_exeext
2145 ac_exeext=$EXEEXT
2146 fi
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h.  */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h.  */
2158
2159 int
2160 main ()
2161 {
2162
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 rm -f conftest.o conftest.obj
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169   (eval $ac_compile) 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }; then
2173   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2174   case $ac_file in
2175     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2176     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2177        break;;
2178   esac
2179 done
2180 else
2181   echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&2;}
2188    { (exit 1); exit 1; }; }
2189 fi
2190
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2192 fi
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2196 ac_objext=$OBJEXT
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   cat >conftest.$ac_ext <<_ACEOF
2203 /* confdefs.h.  */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h.  */
2208
2209 int
2210 main ()
2211 {
2212 #ifndef __GNUC__
2213        choke me
2214 #endif
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222   (eval $ac_compile) 2>conftest.er1
2223   ac_status=$?
2224   grep -v '^ *+' conftest.er1 >conftest.err
2225   rm -f conftest.er1
2226   cat conftest.err >&5
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -z "$ac_c_werror_flag"
2230                          || test ! -s conftest.err'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; } &&
2236          { ac_try='test -s conftest.$ac_objext'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242   ac_compiler_gnu=yes
2243 else
2244   echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2246
2247 ac_compiler_gnu=no
2248 fi
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2251
2252 fi
2253 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2254 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255 GCC=`test $ac_compiler_gnu = yes && echo yes`
2256 ac_test_CFLAGS=${CFLAGS+set}
2257 ac_save_CFLAGS=$CFLAGS
2258 CFLAGS="-g"
2259 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_g+set}" = set; then
2262   echo $ECHO_N "(cached) $ECHO_C" >&6
2263 else
2264   cat >conftest.$ac_ext <<_ACEOF
2265 /* confdefs.h.  */
2266 _ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h.  */
2270
2271 int
2272 main ()
2273 {
2274
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281   (eval $ac_compile) 2>conftest.er1
2282   ac_status=$?
2283   grep -v '^ *+' conftest.er1 >conftest.err
2284   rm -f conftest.er1
2285   cat conftest.err >&5
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); } &&
2288          { ac_try='test -z "$ac_c_werror_flag"
2289                          || test ! -s conftest.err'
2290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2291   (eval $ac_try) 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }; } &&
2295          { ac_try='test -s conftest.$ac_objext'
2296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297   (eval $ac_try) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; }; then
2301   ac_cv_prog_cc_g=yes
2302 else
2303   echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305
2306 ac_cv_prog_cc_g=no
2307 fi
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2309 fi
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312 if test "$ac_test_CFLAGS" = set; then
2313   CFLAGS=$ac_save_CFLAGS
2314 elif test $ac_cv_prog_cc_g = yes; then
2315   if test "$GCC" = yes; then
2316     CFLAGS="-g -O2"
2317   else
2318     CFLAGS="-g"
2319   fi
2320 else
2321   if test "$GCC" = yes; then
2322     CFLAGS="-O2"
2323   else
2324     CFLAGS=
2325   fi
2326 fi
2327 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   ac_cv_prog_cc_stdc=no
2333 ac_save_CC=$CC
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 #include <stdarg.h>
2341 #include <stdio.h>
2342 #include <sys/types.h>
2343 #include <sys/stat.h>
2344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2348      char **p;
2349      int i;
2350 {
2351   return p[i];
2352 }
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2354 {
2355   char *s;
2356   va_list v;
2357   va_start (v,p);
2358   s = g (p, va_arg (v,int));
2359   va_end (v);
2360   return s;
2361 }
2362
2363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2364    function prototypes and stuff, but not '\xHH' hex character constants.
2365    These don't provoke an error unfortunately, instead are silently treated
2366    as 'x'.  The following induces an error, until -std1 is added to get
2367    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2368    array size at least.  It's necessary to write '\x00'==0 to get something
2369    that's true only with -std1.  */
2370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2371
2372 int test (int i, double x);
2373 struct s1 {int (*f) (int a);};
2374 struct s2 {int (*f) (double a);};
2375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2376 int argc;
2377 char **argv;
2378 int
2379 main ()
2380 {
2381 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2382   ;
2383   return 0;
2384 }
2385 _ACEOF
2386 # Don't try gcc -ansi; that turns off useful extensions and
2387 # breaks some systems' header files.
2388 # AIX                   -qlanglvl=ansi
2389 # Ultrix and OSF/1      -std1
2390 # HP-UX 10.20 and later -Ae
2391 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2392 # SVR4                  -Xc -D__EXTENSIONS__
2393 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2394 do
2395   CC="$ac_save_CC $ac_arg"
2396   rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398   (eval $ac_compile) 2>conftest.er1
2399   ac_status=$?
2400   grep -v '^ *+' conftest.er1 >conftest.err
2401   rm -f conftest.er1
2402   cat conftest.err >&5
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } &&
2405          { ac_try='test -z "$ac_c_werror_flag"
2406                          || 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"
2461                          || test ! -s conftest.err'
2462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463   (eval $ac_try) 2>&5
2464   ac_status=$?
2465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466   (exit $ac_status); }; } &&
2467          { ac_try='test -s conftest.$ac_objext'
2468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469   (eval $ac_try) 2>&5
2470   ac_status=$?
2471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472   (exit $ac_status); }; }; then
2473   for ac_declaration in \
2474    '' \
2475    'extern "C" void std::exit (int) throw (); using std::exit;' \
2476    'extern "C" void std::exit (int); using std::exit;' \
2477    'extern "C" void exit (int) throw ();' \
2478    'extern "C" void exit (int);' \
2479    'void exit (int);'
2480 do
2481   cat >conftest.$ac_ext <<_ACEOF
2482 /* confdefs.h.  */
2483 _ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h.  */
2487 $ac_declaration
2488 #include <stdlib.h>
2489 int
2490 main ()
2491 {
2492 exit (42);
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499   (eval $ac_compile) 2>conftest.er1
2500   ac_status=$?
2501   grep -v '^ *+' conftest.er1 >conftest.err
2502   rm -f conftest.er1
2503   cat conftest.err >&5
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); } &&
2506          { ac_try='test -z "$ac_c_werror_flag"
2507                          || test ! -s conftest.err'
2508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509   (eval $ac_try) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   :
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 continue
2525 fi
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527   cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h.  */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h.  */
2533 $ac_declaration
2534 int
2535 main ()
2536 {
2537 exit (42);
2538   ;
2539   return 0;
2540 }
2541 _ACEOF
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544   (eval $ac_compile) 2>conftest.er1
2545   ac_status=$?
2546   grep -v '^ *+' conftest.er1 >conftest.err
2547   rm -f conftest.er1
2548   cat conftest.err >&5
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); } &&
2551          { ac_try='test -z "$ac_c_werror_flag"
2552                          || test ! -s conftest.err'
2553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554   (eval $ac_try) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; } &&
2558          { ac_try='test -s conftest.$ac_objext'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564   break
2565 else
2566   echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 fi
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2571 done
2572 rm -f conftest*
2573 if test -n "$ac_declaration"; then
2574   echo '#ifdef __cplusplus' >>confdefs.h
2575   echo $ac_declaration      >>confdefs.h
2576   echo '#endif'             >>confdefs.h
2577 fi
2578
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 fi
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590
2591 ac_ext=cc
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2598   do
2599     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2604   echo $ECHO_N "(cached) $ECHO_C" >&6
2605 else
2606   if test -n "$CXX"; then
2607   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2608 else
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614   for ac_exec_ext in '' $ac_executable_extensions; do
2615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618     break 2
2619   fi
2620 done
2621 done
2622
2623 fi
2624 fi
2625 CXX=$glibcxx_cv_prog_CXX
2626 if test -n "$CXX"; then
2627   echo "$as_me:$LINENO: result: $CXX" >&5
2628 echo "${ECHO_T}$CXX" >&6
2629 else
2630   echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2632 fi
2633
2634     test -n "$CXX" && break
2635   done
2636 fi
2637 if test -z "$CXX"; then
2638   ac_ct_CXX=$CXX
2639   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2640 do
2641   # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   if test -n "$ac_ct_CXX"; then
2649   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656   for ac_exec_ext in '' $ac_executable_extensions; do
2657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658     ac_cv_prog_ac_ct_CXX="$ac_prog"
2659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663 done
2664
2665 fi
2666 fi
2667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2668 if test -n "$ac_ct_CXX"; then
2669   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2670 echo "${ECHO_T}$ac_ct_CXX" >&6
2671 else
2672   echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2674 fi
2675
2676   test -n "$ac_ct_CXX" && break
2677 done
2678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2679
2680   CXX=$ac_ct_CXX
2681 fi
2682
2683
2684 # Provide some information about the compiler.
2685 echo "$as_me:$LINENO:" \
2686      "checking for C++ compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2689   (eval $ac_compiler --version </dev/null >&5) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2694   (eval $ac_compiler -v </dev/null >&5) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }
2698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2699   (eval $ac_compiler -V </dev/null >&5) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); }
2703
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2706 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715
2716 int
2717 main ()
2718 {
2719 #ifndef __GNUC__
2720        choke me
2721 #endif
2722
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_cxx_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   ac_compiler_gnu=yes
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_compiler_gnu=no
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2758
2759 fi
2760 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2762 GXX=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CXXFLAGS=${CXXFLAGS+set}
2764 ac_save_CXXFLAGS=$CXXFLAGS
2765 CXXFLAGS="-g"
2766 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2767 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cxx_g+set}" = set; then
2769   echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771   cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h.  */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h.  */
2777
2778 int
2779 main ()
2780 {
2781
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788   (eval $ac_compile) 2>conftest.er1
2789   ac_status=$?
2790   grep -v '^ *+' conftest.er1 >conftest.err
2791   rm -f conftest.er1
2792   cat conftest.err >&5
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); } &&
2795          { ac_try='test -z "$ac_cxx_werror_flag"
2796                          || test ! -s conftest.err'
2797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; } &&
2802          { ac_try='test -s conftest.$ac_objext'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; }; then
2808   ac_cv_prog_cxx_g=yes
2809 else
2810   echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 ac_cv_prog_cxx_g=no
2814 fi
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2819 if test "$ac_test_CXXFLAGS" = set; then
2820   CXXFLAGS=$ac_save_CXXFLAGS
2821 elif test $ac_cv_prog_cxx_g = yes; then
2822   if test "$GXX" = yes; then
2823     CXXFLAGS="-g -O2"
2824   else
2825     CXXFLAGS="-g"
2826   fi
2827 else
2828   if test "$GXX" = yes; then
2829     CXXFLAGS="-O2"
2830   else
2831     CXXFLAGS=
2832   fi
2833 fi
2834 for ac_declaration in \
2835    '' \
2836    'extern "C" void std::exit (int) throw (); using std::exit;' \
2837    'extern "C" void std::exit (int); using std::exit;' \
2838    'extern "C" void exit (int) throw ();' \
2839    'extern "C" void exit (int);' \
2840    'void exit (int);'
2841 do
2842   cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h.  */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h.  */
2848 $ac_declaration
2849 #include <stdlib.h>
2850 int
2851 main ()
2852 {
2853 exit (42);
2854   ;
2855   return 0;
2856 }
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860   (eval $ac_compile) 2>conftest.er1
2861   ac_status=$?
2862   grep -v '^ *+' conftest.er1 >conftest.err
2863   rm -f conftest.er1
2864   cat conftest.err >&5
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); } &&
2867          { ac_try='test -z "$ac_cxx_werror_flag"
2868                          || test ! -s conftest.err'
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); }; } &&
2874          { ac_try='test -s conftest.$ac_objext'
2875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; }; then
2880   :
2881 else
2882   echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2884
2885 continue
2886 fi
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894 $ac_declaration
2895 int
2896 main ()
2897 {
2898 exit (42);
2899   ;
2900   return 0;
2901 }
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905   (eval $ac_compile) 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } &&
2912          { ac_try='test -z "$ac_cxx_werror_flag"
2913                          || test ! -s conftest.err'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; } &&
2919          { ac_try='test -s conftest.$ac_objext'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   break
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2929
2930 fi
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 done
2933 rm -f conftest*
2934 if test -n "$ac_declaration"; then
2935   echo '#ifdef __cplusplus' >>confdefs.h
2936   echo $ac_declaration      >>confdefs.h
2937   echo '#endif'             >>confdefs.h
2938 fi
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945
2946 CXXFLAGS="$save_CXXFLAGS"
2947
2948
2949
2950
2951
2952 am__api_version="1.9"
2953 # Find a good install program.  We prefer a C program (faster),
2954 # so one script is as good as another.  But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2959 # AIX /bin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970   echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977   # Account for people who put trailing slashes in PATH elements.
2978 case $as_dir/ in
2979   ./ | .// | /cC/* | \
2980   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2982   /usr/ucb/* ) ;;
2983   *)
2984     # OSF1 and SCO ODT 3.0 have their own names for install.
2985     # Don't use installbsd from OSF since it installs stuff as root
2986     # by default.
2987     for ac_prog in ginstall scoinst install; do
2988       for ac_exec_ext in '' $ac_executable_extensions; do
2989         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2990           if test $ac_prog = install &&
2991             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992             # AIX install.  It has an incompatible calling convention.
2993             :
2994           elif test $ac_prog = install &&
2995             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996             # program-specific install script used by HP pwplus--don't use.
2997             :
2998           else
2999             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3000             break 3
3001           fi
3002         fi
3003       done
3004     done
3005     ;;
3006 esac
3007 done
3008
3009
3010 fi
3011   if test "${ac_cv_path_install+set}" = set; then
3012     INSTALL=$ac_cv_path_install
3013   else
3014     # As a last resort, use the slow shell script.  We don't cache a
3015     # path for INSTALL within a source directory, because that will
3016     # break other packages using the cache if that directory is
3017     # removed, or if the path is relative.
3018     INSTALL=$ac_install_sh
3019   fi
3020 fi
3021 echo "$as_me:$LINENO: result: $INSTALL" >&5
3022 echo "${ECHO_T}$INSTALL" >&6
3023
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3027
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3029
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3031
3032 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3033 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3034 # Just in case
3035 sleep 1
3036 echo timestamp > conftest.file
3037 # Do `set' in a subshell so we don't clobber the current shell's
3038 # arguments.  Must try -L first in case configure is actually a
3039 # symlink; some systems play weird games with the mod time of symlinks
3040 # (eg FreeBSD returns the mod time of the symlink's containing
3041 # directory).
3042 if (
3043    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3044    if test "$*" = "X"; then
3045       # -L didn't work.
3046       set X `ls -t $srcdir/configure conftest.file`
3047    fi
3048    rm -f conftest.file
3049    if test "$*" != "X $srcdir/configure conftest.file" \
3050       && test "$*" != "X conftest.file $srcdir/configure"; then
3051
3052       # If neither matched, then we have a broken ls.  This can happen
3053       # if, for instance, CONFIG_SHELL is bash and it inherits a
3054       # broken ls alias from the environment.  This has actually
3055       # happened.  Such a system could not be considered "sane".
3056       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3057 alias in your environment" >&5
3058 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3059 alias in your environment" >&2;}
3060    { (exit 1); exit 1; }; }
3061    fi
3062
3063    test "$2" = conftest.file
3064    )
3065 then
3066    # Ok.
3067    :
3068 else
3069    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3070 Check your system clock" >&5
3071 echo "$as_me: error: newly created file is older than distributed files!
3072 Check your system clock" >&2;}
3073    { (exit 1); exit 1; }; }
3074 fi
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 test "$program_prefix" != NONE &&
3078   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3082 # Double any \ or $.  echo might interpret backslashes.
3083 # By default was `s,x,x', remove it if useless.
3084 cat <<\_ACEOF >conftest.sed
3085 s/[\\$]/&&/g;s/;s,x,x,$//
3086 _ACEOF
3087 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3088 rm conftest.sed
3089
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3092
3093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096   am_missing_run="$MISSING --run "
3097 else
3098   am_missing_run=
3099   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3101 fi
3102
3103 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3104   # We used to keeping the `.' as first argument, in order to
3105   # allow $(mkdir_p) to be used without argument.  As in
3106   #   $(mkdir_p) $(somedir)
3107   # where $(somedir) is conditionally defined.  However this is wrong
3108   # for two reasons:
3109   #  1. if the package is installed by a user who cannot write `.'
3110   #     make install will fail,
3111   #  2. the above comment should most certainly read
3112   #     $(mkdir_p) $(DESTDIR)$(somedir)
3113   #     so it does not work when $(somedir) is undefined and
3114   #     $(DESTDIR) is not.
3115   #  To support the latter case, we have to write
3116   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3117   #  so the `.' trick is pointless.
3118   mkdir_p='mkdir -p --'
3119 else
3120   # On NextStep and OpenStep, the `mkdir' command does not
3121   # recognize any option.  It will interpret all options as
3122   # directories to create, and then abort because `.' already
3123   # exists.
3124   for d in ./-p ./--version;
3125   do
3126     test -d $d && rmdir $d
3127   done
3128   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3129   if test -f "$ac_aux_dir/mkinstalldirs"; then
3130     mkdir_p='$(mkinstalldirs)'
3131   else
3132     mkdir_p='$(install_sh) -d'
3133   fi
3134 fi
3135
3136 for ac_prog in gawk mawk nawk awk
3137 do
3138   # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AWK+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   if test -n "$AWK"; then
3146   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153   for ac_exec_ext in '' $ac_executable_extensions; do
3154   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155     ac_cv_prog_AWK="$ac_prog"
3156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160 done
3161
3162 fi
3163 fi
3164 AWK=$ac_cv_prog_AWK
3165 if test -n "$AWK"; then
3166   echo "$as_me:$LINENO: result: $AWK" >&5
3167 echo "${ECHO_T}$AWK" >&6
3168 else
3169   echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3171 fi
3172
3173   test -n "$AWK" && break
3174 done
3175
3176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3180   echo $ECHO_N "(cached) $ECHO_C" >&6
3181 else
3182   cat >conftest.make <<\_ACEOF
3183 all:
3184         @echo 'ac_maketemp="$(MAKE)"'
3185 _ACEOF
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3188 if test -n "$ac_maketemp"; then
3189   eval ac_cv_prog_make_${ac_make}_set=yes
3190 else
3191   eval ac_cv_prog_make_${ac_make}_set=no
3192 fi
3193 rm -f conftest.make
3194 fi
3195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3196   echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3198   SET_MAKE=
3199 else
3200   echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202   SET_MAKE="MAKE=${MAKE-make}"
3203 fi
3204
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3208   am__leading_dot=.
3209 else
3210   am__leading_dot=_
3211 fi
3212 rmdir .tst 2>/dev/null
3213
3214 DEPDIR="${am__leading_dot}deps"
3215
3216           ac_config_commands="$ac_config_commands depfiles"
3217
3218
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3221 am__doit:
3222         @echo done
3223 .PHONY: am__doit
3224 END
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3228 am__include="#"
3229 am__quote=
3230 _am_result=none
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3239    am__include=include
3240    am__quote=
3241    _am_result=GNU
3242 fi
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245    echo '.include "confinc"' > confmf
3246    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247       am__include=.include
3248       am__quote="\""
3249       _am_result=BSD
3250    fi
3251 fi
3252
3253
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3257
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260   enableval="$enable_dependency_tracking"
3261
3262 fi;
3263 if test "x$enable_dependency_tracking" != xno; then
3264   am_depcomp="$ac_aux_dir/depcomp"
3265   AMDEPBACKSLASH='\'
3266 fi
3267
3268
3269 if test "x$enable_dependency_tracking" != xno; then
3270   AMDEP_TRUE=
3271   AMDEP_FALSE='#'
3272 else
3273   AMDEP_TRUE='#'
3274   AMDEP_FALSE=
3275 fi
3276
3277
3278
3279 # test to see if srcdir already configured
3280 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3281    test -f $srcdir/config.status; then
3282   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3283 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3284    { (exit 1); exit 1; }; }
3285 fi
3286
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289   if (cygpath --version) >/dev/null 2>/dev/null; then
3290     CYGPATH_W='cygpath -w'
3291   else
3292     CYGPATH_W=echo
3293   fi
3294 fi
3295
3296
3297 # Define the identity of the package.
3298  PACKAGE='libjava'
3299  VERSION='version-unused'
3300
3301
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3304 _ACEOF
3305
3306
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3309 _ACEOF
3310
3311 # Some tools Automake needs.
3312
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3314
3315
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3317
3318
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3320
3321
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3323
3324
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3326
3327 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3328
3329 # Installed binaries are usually stripped using `strip' when the user
3330 # run `make install-strip'.  However `strip' might not be the right
3331 # tool to use in cross-compilation environments, therefore Automake
3332 # will honor the `STRIP' environment variable to overrule this program.
3333 if test "$cross_compiling" != no; then
3334   if test -n "$ac_tool_prefix"; then
3335   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}strip; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_STRIP+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   if test -n "$STRIP"; then
3343   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350   for ac_exec_ext in '' $ac_executable_extensions; do
3351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357 done
3358
3359 fi
3360 fi
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363   echo "$as_me:$LINENO: result: $STRIP" >&5
3364 echo "${ECHO_T}$STRIP" >&6
3365 else
3366   echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3368 fi
3369
3370 fi
3371 if test -z "$ac_cv_prog_STRIP"; then
3372   ac_ct_STRIP=$STRIP
3373   # Extract the first word of "strip", so it can be a program name with args.
3374 set dummy strip; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3378   echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380   if test -n "$ac_ct_STRIP"; then
3381   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388   for ac_exec_ext in '' $ac_executable_extensions; do
3389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_ac_ct_STRIP="strip"
3391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395 done
3396
3397   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3398 fi
3399 fi
3400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401 if test -n "$ac_ct_STRIP"; then
3402   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3403 echo "${ECHO_T}$ac_ct_STRIP" >&6
3404 else
3405   echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3407 fi
3408
3409   STRIP=$ac_ct_STRIP
3410 else
3411   STRIP="$ac_cv_prog_STRIP"
3412 fi
3413
3414 fi
3415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3416
3417 # We need awk for the "check" target.  The system "awk" is bad on
3418 # some platforms.
3419 # Always define AMTAR for backward compatibility.
3420
3421 AMTAR=${AMTAR-"${am_missing_run}tar"}
3422
3423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3424
3425
3426
3427
3428 depcc="$CC"   am_compiler_list=
3429
3430 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3431 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3436   # We make a subdir and do the tests there.  Otherwise we can end up
3437   # making bogus files that we don't know about and never remove.  For
3438   # instance it was reported that on HP-UX the gcc test will end up
3439   # making a dummy file named `D' -- because `-MD' means `put the output
3440   # in D'.
3441   mkdir conftest.dir
3442   # Copy depcomp to subdir because otherwise we won't find it if we're
3443   # using a relative directory.
3444   cp "$am_depcomp" conftest.dir
3445   cd conftest.dir
3446   # We will build objects and dependencies in a subdirectory because
3447   # it helps to detect inapplicable dependency modes.  For instance
3448   # both Tru64's cc and ICC support -MD to output dependencies as a
3449   # side effect of compilation, but ICC will put the dependencies in
3450   # the current directory while Tru64 will put them in the object
3451   # directory.
3452   mkdir sub
3453
3454   am_cv_CC_dependencies_compiler_type=none
3455   if test "$am_compiler_list" = ""; then
3456      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3457   fi
3458   for depmode in $am_compiler_list; do
3459     # Setup a source with many dependencies, because some compilers
3460     # like to wrap large dependency lists on column 80 (with \), and
3461     # we should not choose a depcomp mode which is confused by this.
3462     #
3463     # We need to recreate these files for each test, as the compiler may
3464     # overwrite some of them when testing with obscure command lines.
3465     # This happens at least with the AIX C compiler.
3466     : > sub/conftest.c
3467     for i in 1 2 3 4 5 6; do
3468       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3469       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3470       # Solaris 8's {/usr,}/bin/sh.
3471       touch sub/conftst$i.h
3472     done
3473     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3474
3475     case $depmode in
3476     nosideeffect)
3477       # after this tag, mechanisms are not by side-effect, so they'll
3478       # only be used when explicitly requested
3479       if test "x$enable_dependency_tracking" = xyes; then
3480         continue
3481       else
3482         break
3483       fi
3484       ;;
3485     none) break ;;
3486     esac
3487     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3488     # mode.  It turns out that the SunPro C++ compiler does not properly
3489     # handle `-M -o', and we need to detect this.
3490     if depmode=$depmode \
3491        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3492        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3493        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3494          >/dev/null 2>conftest.err &&
3495        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3497        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3498       # icc doesn't choke on unknown options, it will just issue warnings
3499       # or remarks (even with -Werror).  So we grep stderr for any message
3500       # that says an option was ignored or not supported.
3501       # When given -MP, icc 7.0 and 7.1 complain thusly:
3502       #   icc: Command line warning: ignoring option '-M'; no argument required
3503       # The diagnosis changed in icc 8.0:
3504       #   icc: Command line remark: option '-MP' not supported
3505       if (grep 'ignoring option' conftest.err ||
3506           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3507         am_cv_CC_dependencies_compiler_type=$depmode
3508         break
3509       fi
3510     fi
3511   done
3512
3513   cd ..
3514   rm -rf conftest.dir
3515 else
3516   am_cv_CC_dependencies_compiler_type=none
3517 fi
3518
3519 fi
3520 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3521 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3523
3524
3525
3526 if
3527   test "x$enable_dependency_tracking" != xno \
3528   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3529   am__fastdepCC_TRUE=
3530   am__fastdepCC_FALSE='#'
3531 else
3532   am__fastdepCC_TRUE='#'
3533   am__fastdepCC_FALSE=
3534 fi
3535
3536
3537 depcc="$CXX"  am_compiler_list=
3538
3539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3541 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545   # We make a subdir and do the tests there.  Otherwise we can end up
3546   # making bogus files that we don't know about and never remove.  For
3547   # instance it was reported that on HP-UX the gcc test will end up
3548   # making a dummy file named `D' -- because `-MD' means `put the output
3549   # in D'.
3550   mkdir conftest.dir
3551   # Copy depcomp to subdir because otherwise we won't find it if we're
3552   # using a relative directory.
3553   cp "$am_depcomp" conftest.dir
3554   cd conftest.dir
3555   # We will build objects and dependencies in a subdirectory because
3556   # it helps to detect inapplicable dependency modes.  For instance
3557   # both Tru64's cc and ICC support -MD to output dependencies as a
3558   # side effect of compilation, but ICC will put the dependencies in
3559   # the current directory while Tru64 will put them in the object
3560   # directory.
3561   mkdir sub
3562
3563   am_cv_CXX_dependencies_compiler_type=none
3564   if test "$am_compiler_list" = ""; then
3565      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3566   fi
3567   for depmode in $am_compiler_list; do
3568     # Setup a source with many dependencies, because some compilers
3569     # like to wrap large dependency lists on column 80 (with \), and
3570     # we should not choose a depcomp mode which is confused by this.
3571     #
3572     # We need to recreate these files for each test, as the compiler may
3573     # overwrite some of them when testing with obscure command lines.
3574     # This happens at least with the AIX C compiler.
3575     : > sub/conftest.c
3576     for i in 1 2 3 4 5 6; do
3577       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579       # Solaris 8's {/usr,}/bin/sh.
3580       touch sub/conftst$i.h
3581     done
3582     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3583
3584     case $depmode in
3585     nosideeffect)
3586       # after this tag, mechanisms are not by side-effect, so they'll
3587       # only be used when explicitly requested
3588       if test "x$enable_dependency_tracking" = xyes; then
3589         continue
3590       else
3591         break
3592       fi
3593       ;;
3594     none) break ;;
3595     esac
3596     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597     # mode.  It turns out that the SunPro C++ compiler does not properly
3598     # handle `-M -o', and we need to detect this.
3599     if depmode=$depmode \
3600        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603          >/dev/null 2>conftest.err &&
3604        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607       # icc doesn't choke on unknown options, it will just issue warnings
3608       # or remarks (even with -Werror).  So we grep stderr for any message
3609       # that says an option was ignored or not supported.
3610       # When given -MP, icc 7.0 and 7.1 complain thusly:
3611       #   icc: Command line warning: ignoring option '-M'; no argument required
3612       # The diagnosis changed in icc 8.0:
3613       #   icc: Command line remark: option '-MP' not supported
3614       if (grep 'ignoring option' conftest.err ||
3615           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616         am_cv_CXX_dependencies_compiler_type=$depmode
3617         break
3618       fi
3619     fi
3620   done
3621
3622   cd ..
3623   rm -rf conftest.dir
3624 else
3625   am_cv_CXX_dependencies_compiler_type=none
3626 fi
3627
3628 fi
3629 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3630 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3632
3633
3634
3635 if
3636   test "x$enable_dependency_tracking" != xno \
3637   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638   am__fastdepCXX_TRUE=
3639   am__fastdepCXX_FALSE='#'
3640 else
3641   am__fastdepCXX_TRUE='#'
3642   am__fastdepCXX_FALSE=
3643 fi
3644
3645
3646
3647
3648 if test -n "$ac_tool_prefix"; then
3649   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}as; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_AS+set}" = set; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   if test -n "$AS"; then
3657   ac_cv_prog_AS="$AS" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   for ac_exec_ext in '' $ac_executable_extensions; do
3665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666     ac_cv_prog_AS="${ac_tool_prefix}as"
3667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668     break 2
3669   fi
3670 done
3671 done
3672
3673 fi
3674 fi
3675 AS=$ac_cv_prog_AS
3676 if test -n "$AS"; then
3677   echo "$as_me:$LINENO: result: $AS" >&5
3678 echo "${ECHO_T}$AS" >&6
3679 else
3680   echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3682 fi
3683
3684 fi
3685 if test -z "$ac_cv_prog_AS"; then
3686   ac_ct_AS=$AS
3687   # Extract the first word of "as", so it can be a program name with args.
3688 set dummy as; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3692   echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694   if test -n "$ac_ct_AS"; then
3695   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700   IFS=$as_save_IFS
3701   test -z "$as_dir" && as_dir=.
3702   for ac_exec_ext in '' $ac_executable_extensions; do
3703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704     ac_cv_prog_ac_ct_AS="as"
3705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706     break 2
3707   fi
3708 done
3709 done
3710
3711 fi
3712 fi
3713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3714 if test -n "$ac_ct_AS"; then
3715   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3716 echo "${ECHO_T}$ac_ct_AS" >&6
3717 else
3718   echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3720 fi
3721
3722   AS=$ac_ct_AS
3723 else
3724   AS="$ac_cv_prog_AS"
3725 fi
3726
3727 if test -n "$ac_tool_prefix"; then
3728   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ar; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_AR+set}" = set; then
3733   echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735   if test -n "$AR"; then
3736   ac_cv_prog_AR="$AR" # Let the user override the test.
3737 else
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739 for as_dir in $PATH
3740 do
3741   IFS=$as_save_IFS
3742   test -z "$as_dir" && as_dir=.
3743   for ac_exec_ext in '' $ac_executable_extensions; do
3744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745     ac_cv_prog_AR="${ac_tool_prefix}ar"
3746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747     break 2
3748   fi
3749 done
3750 done
3751
3752 fi
3753 fi
3754 AR=$ac_cv_prog_AR
3755 if test -n "$AR"; then
3756   echo "$as_me:$LINENO: result: $AR" >&5
3757 echo "${ECHO_T}$AR" >&6
3758 else
3759   echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763 fi
3764 if test -z "$ac_cv_prog_AR"; then
3765   ac_ct_AR=$AR
3766   # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   if test -n "$ac_ct_AR"; then
3774   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781   for ac_exec_ext in '' $ac_executable_extensions; do
3782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783     ac_cv_prog_ac_ct_AR="ar"
3784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785     break 2
3786   fi
3787 done
3788 done
3789
3790 fi
3791 fi
3792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3793 if test -n "$ac_ct_AR"; then
3794   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3795 echo "${ECHO_T}$ac_ct_AR" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801   AR=$ac_ct_AR
3802 else
3803   AR="$ac_cv_prog_AR"
3804 fi
3805
3806 if test -n "$ac_tool_prefix"; then
3807   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   if test -n "$RANLIB"; then
3815   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822   for ac_exec_ext in '' $ac_executable_extensions; do
3823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826     break 2
3827   fi
3828 done
3829 done
3830
3831 fi
3832 fi
3833 RANLIB=$ac_cv_prog_RANLIB
3834 if test -n "$RANLIB"; then
3835   echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 echo "${ECHO_T}$RANLIB" >&6
3837 else
3838   echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3840 fi
3841
3842 fi
3843 if test -z "$ac_cv_prog_RANLIB"; then
3844   ac_ct_RANLIB=$RANLIB
3845   # Extract the first word of "ranlib", so it can be a program name with args.
3846 set dummy ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if test -n "$ac_ct_RANLIB"; then
3853   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_ac_ct_RANLIB="ranlib"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3870 fi
3871 fi
3872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873 if test -n "$ac_ct_RANLIB"; then
3874   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881   RANLIB=$ac_ct_RANLIB
3882 else
3883   RANLIB="$ac_cv_prog_RANLIB"
3884 fi
3885
3886
3887 # Find a good install program.  We prefer a C program (faster),
3888 # so one script is as good as another.  But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913   ./ | .// | /cC/* | \
3914   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3916   /usr/ucb/* ) ;;
3917   *)
3918     # OSF1 and SCO ODT 3.0 have their own names for install.
3919     # Don't use installbsd from OSF since it installs stuff as root
3920     # by default.
3921     for ac_prog in ginstall scoinst install; do
3922       for ac_exec_ext in '' $ac_executable_extensions; do
3923         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3924           if test $ac_prog = install &&
3925             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926             # AIX install.  It has an incompatible calling convention.
3927             :
3928           elif test $ac_prog = install &&
3929             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930             # program-specific install script used by HP pwplus--don't use.
3931             :
3932           else
3933             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3934             break 3
3935           fi
3936         fi
3937       done
3938     done
3939     ;;
3940 esac
3941 done
3942
3943
3944 fi
3945   if test "${ac_cv_path_install+set}" = set; then
3946     INSTALL=$ac_cv_path_install
3947   else
3948     # As a last resort, use the slow shell script.  We don't cache a
3949     # path for INSTALL within a source directory, because that will
3950     # break other packages using the cache if that directory is
3951     # removed, or if the path is relative.
3952     INSTALL=$ac_install_sh
3953   fi
3954 fi
3955 echo "$as_me:$LINENO: result: $INSTALL" >&5
3956 echo "${ECHO_T}$INSTALL" >&6
3957
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3961
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3963
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3965
3966
3967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3969     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3970 if test "${enable_maintainer_mode+set}" = set; then
3971   enableval="$enable_maintainer_mode"
3972   USE_MAINTAINER_MODE=$enableval
3973 else
3974   USE_MAINTAINER_MODE=no
3975 fi;
3976   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3978
3979
3980 if test $USE_MAINTAINER_MODE = yes; then
3981   MAINTAINER_MODE_TRUE=
3982   MAINTAINER_MODE_FALSE='#'
3983 else
3984   MAINTAINER_MODE_TRUE='#'
3985   MAINTAINER_MODE_FALSE=
3986 fi
3987
3988   MAINT=$MAINTAINER_MODE_TRUE
3989
3990
3991
3992
3993
3994 # configure.host sets the following important variables
3995 #       libgcj_cflags    - host specific C compiler flags
3996 #       libgcj_cxxflags  - host specific C++ compiler flags
3997 #       libgcj_javaflags - host specific Java compiler flags
3998
3999 libgcj_cflags=
4000 libgcj_cxxflags=
4001 libgcj_javaflags=
4002
4003 . ${srcdir}/configure.host
4004
4005 LIBGCJ_CFLAGS="${libgcj_cflags}"
4006 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4007 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4008 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4009
4010
4011
4012
4013
4014                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4015
4016
4017 # Only use libltdl for non-newlib builds.
4018 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4019      case $enable_ltdl_convenience in
4020   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4021 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4022    { (exit 1); exit 1; }; } ;;
4023   "") enable_ltdl_convenience=yes
4024       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4025   esac
4026   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4027   INCLTDL='-I${top_srcdir}/''libltdl'
4028
4029
4030    DIRLTDL=libltdl
4031
4032 cat >>confdefs.h <<\_ACEOF
4033 #define USE_LTDL 1
4034 _ACEOF
4035
4036    # Sigh.  Libtool's macro doesn't do the right thing.
4037    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4038    # FIXME: this is a hack.
4039    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4040    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4041 fi
4042
4043
4044
4045 # Check whether --enable-shared or --disable-shared was given.
4046 if test "${enable_shared+set}" = set; then
4047   enableval="$enable_shared"
4048   p=${PACKAGE-default}
4049 case $enableval in
4050 yes) enable_shared=yes ;;
4051 no) enable_shared=no ;;
4052 *)
4053   enable_shared=no
4054   # Look at the argument we got.  We use all the common list separators.
4055   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4056   for pkg in $enableval; do
4057     if test "X$pkg" = "X$p"; then
4058       enable_shared=yes
4059     fi
4060   done
4061   IFS="$ac_save_ifs"
4062   ;;
4063 esac
4064 else
4065   enable_shared=yes
4066 fi;
4067 # Check whether --enable-static or --disable-static was given.
4068 if test "${enable_static+set}" = set; then
4069   enableval="$enable_static"
4070   p=${PACKAGE-default}
4071 case $enableval in
4072 yes) enable_static=yes ;;
4073 no) enable_static=no ;;
4074 *)
4075   enable_static=no
4076   # Look at the argument we got.  We use all the common list separators.
4077   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4078   for pkg in $enableval; do
4079     if test "X$pkg" = "X$p"; then
4080       enable_static=yes
4081     fi
4082   done
4083   IFS="$ac_save_ifs"
4084   ;;
4085 esac
4086 else
4087   enable_static=yes
4088 fi;
4089 # Check whether --enable-fast-install or --disable-fast-install was given.
4090 if test "${enable_fast_install+set}" = set; then
4091   enableval="$enable_fast_install"
4092   p=${PACKAGE-default}
4093 case $enableval in
4094 yes) enable_fast_install=yes ;;
4095 no) enable_fast_install=no ;;
4096 *)
4097   enable_fast_install=no
4098   # Look at the argument we got.  We use all the common list separators.
4099   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4100   for pkg in $enableval; do
4101     if test "X$pkg" = "X$p"; then
4102       enable_fast_install=yes
4103     fi
4104   done
4105   IFS="$ac_save_ifs"
4106   ;;
4107 esac
4108 else
4109   enable_fast_install=yes
4110 fi;
4111
4112 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4113 if test "${with_gnu_ld+set}" = set; then
4114   withval="$with_gnu_ld"
4115   test "$withval" = no || with_gnu_ld=yes
4116 else
4117   with_gnu_ld=no
4118 fi;
4119 ac_prog=ld
4120 if test "$GCC" = yes; then
4121   # Check if gcc -print-prog-name=ld gives a path.
4122   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4123 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4124   case $host in
4125   *-*-mingw*)
4126     # gcc leaves a trailing carriage return which upsets mingw
4127     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4128   *)
4129     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4130   esac
4131   case $ac_prog in
4132     # Accept absolute paths.
4133     [\\/]* | [A-Za-z]:[\\/]*)
4134       re_direlt='/[^/][^/]*/\.\./'
4135       # Canonicalize the path of ld
4136       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4137       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4138         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4139       done
4140       test -z "$LD" && LD="$ac_prog"
4141       ;;
4142   "")
4143     # If it fails, then pretend we aren't using GCC.
4144     ac_prog=ld
4145     ;;
4146   *)
4147     # If it is relative, then search for the first ld in PATH.
4148     with_gnu_ld=unknown
4149     ;;
4150   esac
4151 elif test "$with_gnu_ld" = yes; then
4152   echo "$as_me:$LINENO: checking for GNU ld" >&5
4153 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4154 else
4155   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4156 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4157 fi
4158 if test "${lt_cv_path_LD+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test -z "$LD"; then
4162   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4163   for ac_dir in $PATH; do
4164     test -z "$ac_dir" && ac_dir=.
4165     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4166       lt_cv_path_LD="$ac_dir/$ac_prog"
4167       # Check to see if the program is GNU ld.  I'd rather use --version,
4168       # but apparently some GNU ld's only accept -v.
4169       # Break only if it was the GNU/non-GNU ld that we prefer.
4170       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4171         test "$with_gnu_ld" != no && break
4172       else
4173         test "$with_gnu_ld" != yes && break
4174       fi
4175     fi
4176   done
4177   IFS="$ac_save_ifs"
4178 else
4179   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4180 fi
4181 fi
4182
4183 LD="$lt_cv_path_LD"
4184 if test -n "$LD"; then
4185   echo "$as_me:$LINENO: result: $LD" >&5
4186 echo "${ECHO_T}$LD" >&6
4187 else
4188   echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6
4190 fi
4191 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4192 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4193    { (exit 1); exit 1; }; }
4194 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4195 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4197   echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4200 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4201   lt_cv_prog_gnu_ld=yes
4202 else
4203   lt_cv_prog_gnu_ld=no
4204 fi
4205 fi
4206 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4207 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4208 with_gnu_ld=$lt_cv_prog_gnu_ld
4209
4210
4211 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4212 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4213 if test "${lt_cv_ld_reload_flag+set}" = set; then
4214   echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216   lt_cv_ld_reload_flag='-r'
4217 fi
4218 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4219 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4220 reload_flag=$lt_cv_ld_reload_flag
4221 test -n "$reload_flag" && reload_flag=" $reload_flag"
4222
4223 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4224 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4225 if test "${lt_cv_path_NM+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   if test -n "$NM"; then
4229   # Let the user override the test.
4230   lt_cv_path_NM="$NM"
4231 else
4232   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4233   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4234     test -z "$ac_dir" && ac_dir=.
4235     tmp_nm=$ac_dir/${ac_tool_prefix}nm
4236     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4237       # Check to see if the nm accepts a BSD-compat flag.
4238       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4239       #   nm: unknown option "B" ignored
4240       # Tru64's nm complains that /dev/null is an invalid object file
4241       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4242         lt_cv_path_NM="$tmp_nm -B"
4243         break
4244       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4245         lt_cv_path_NM="$tmp_nm -p"
4246         break
4247       else
4248         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4249         continue # so that we can try to find one that supports BSD flags
4250       fi
4251     fi
4252   done
4253   IFS="$ac_save_ifs"
4254   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4255 fi
4256 fi
4257
4258 NM="$lt_cv_path_NM"
4259 echo "$as_me:$LINENO: result: $NM" >&5
4260 echo "${ECHO_T}$NM" >&6
4261
4262 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4263 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4264 if test "${lt_cv_deplibs_check_method+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   lt_cv_file_magic_cmd='$MAGIC_CMD'
4268 lt_cv_file_magic_test_file=
4269 lt_cv_deplibs_check_method='unknown'
4270 # Need to set the preceding variable on all platforms that support
4271 # interlibrary dependencies.
4272 # 'none' -- dependencies not supported.
4273 # `unknown' -- same as none, but documents that we really don't know.
4274 # 'pass_all' -- all dependencies passed with no checks.
4275 # 'test_compile' -- check by making test program.
4276 # 'file_magic [regex]' -- check by looking for files in library path
4277 # which responds to the $file_magic_cmd with a given egrep regex.
4278 # If you have `file' or equivalent on your system and you're not sure
4279 # whether `pass_all' will *always* work, you probably want this one.
4280
4281 case $host_os in
4282 aix*)
4283   lt_cv_deplibs_check_method=pass_all
4284   ;;
4285
4286 beos*)
4287   lt_cv_deplibs_check_method=pass_all
4288   ;;
4289
4290 bsdi4*)
4291   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4292   lt_cv_file_magic_cmd='/usr/bin/file -L'
4293   lt_cv_file_magic_test_file=/shlib/libc.so
4294   ;;
4295
4296 cygwin* | mingw* |pw32*)
4297   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4298   lt_cv_file_magic_cmd='$OBJDUMP -f'
4299   ;;
4300
4301 darwin* | rhapsody*)
4302   # this will be overwritten by pass_all, but leave it in just in case
4303   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4304   lt_cv_file_magic_cmd='/usr/bin/file -L'
4305   case "$host_os" in
4306   rhapsody* | darwin1.012)
4307     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4308     ;;
4309   *) # Darwin 1.3 on
4310     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4311     ;;
4312   esac
4313   lt_cv_deplibs_check_method=pass_all
4314   ;;
4315
4316 freebsd* | kfreebsd*-gnu)
4317   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318     case $host_cpu in
4319     i*86 )
4320       # Not sure whether the presence of OpenBSD here was a mistake.
4321       # Let's accept both of them until this is cleared up.
4322       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4323       lt_cv_file_magic_cmd=/usr/bin/file
4324       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4325       ;;
4326     esac
4327   else
4328     lt_cv_deplibs_check_method=pass_all
4329   fi
4330   ;;
4331
4332 gnu*)
4333   lt_cv_deplibs_check_method=pass_all
4334   ;;
4335
4336 hpux10.20*|hpux11*)
4337   case $host_cpu in
4338   hppa*)
4339     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4340     lt_cv_file_magic_cmd=/usr/bin/file
4341     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4342     ;;
4343   ia64*)
4344     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4345     lt_cv_file_magic_cmd=/usr/bin/file
4346     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4347     ;;
4348   esac
4349   ;;
4350
4351 irix5* | irix6*)
4352   case $host_os in
4353   irix5*)
4354     # this will be overridden with pass_all, but let us keep it just in case
4355     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4356     ;;
4357   *)
4358     case $LD in
4359     *-32|*"-32 ") libmagic=32-bit;;
4360     *-n32|*"-n32 ") libmagic=N32;;
4361     *-64|*"-64 ") libmagic=64-bit;;
4362     *) libmagic=never-match;;
4363     esac
4364     # this will be overridden with pass_all, but let us keep it just in case
4365     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4366     ;;
4367   esac
4368   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4369   lt_cv_deplibs_check_method=pass_all
4370   ;;
4371
4372 # This must be Linux ELF.
4373 linux-gnu*)
4374   lt_cv_deplibs_check_method=pass_all
4375   ;;
4376
4377 netbsd* | knetbsd*-gnu)
4378   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4379     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4380   else
4381     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4382   fi
4383   ;;
4384
4385 newsos6)
4386   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4387   lt_cv_file_magic_cmd=/usr/bin/file
4388   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4389   ;;
4390
4391 osf3* | osf4* | osf5*)
4392   # this will be overridden with pass_all, but let us keep it just in case
4393   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4394   lt_cv_file_magic_test_file=/shlib/libc.so
4395   lt_cv_deplibs_check_method=pass_all
4396   ;;
4397
4398 sco3.2v5*)
4399   lt_cv_deplibs_check_method=pass_all
4400   ;;
4401
4402 solaris*)
4403   lt_cv_deplibs_check_method=pass_all
4404   lt_cv_file_magic_test_file=/lib/libc.so
4405   ;;
4406
4407 sysv5uw[78]* | sysv4*uw2*)
4408   lt_cv_deplibs_check_method=pass_all
4409   ;;
4410
4411 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4412   case $host_vendor in
4413   ncr)
4414     lt_cv_deplibs_check_method=pass_all
4415     ;;
4416   motorola)
4417     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]'
4418     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4419     ;;
4420   esac
4421   ;;
4422 esac
4423
4424 fi
4425 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4426 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4427 file_magic_cmd=$lt_cv_file_magic_cmd
4428 deplibs_check_method=$lt_cv_deplibs_check_method
4429
4430
4431
4432
4433 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4434
4435 # find the maximum length of command line arguments
4436 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4437 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4438 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441     i=0
4442   teststring="ABCD"
4443
4444   case $build_os in
4445   msdosdjgpp*)
4446     # On DJGPP, this test can blow up pretty badly due to problems in libc
4447     # (any single argument exceeding 2000 bytes causes a buffer overrun
4448     # during glob expansion).  Even if it were fixed, the result of this
4449     # check would be larger than it should be.
4450     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4451     ;;
4452
4453   cygwin* | mingw*)
4454     # On Win9x/ME, this test blows up -- it succeeds, but takes
4455     # about 5 minutes as the teststring grows exponentially.
4456     # Worse, since 9x/ME are not pre-emptively multitasking,
4457     # you end up with a "frozen" computer, even though with patience
4458     # the test eventually succeeds (with a max line length of 256k).
4459     # Instead, let's just punt: use the minimum linelength reported by
4460     # all of the supported platforms: 8192 (on NT/2K/XP).
4461     lt_cv_sys_max_cmd_len=8192;
4462     ;;
4463
4464   amigaos*)
4465     # On AmigaOS with pdksh, this test takes hours, literally.
4466     # So we just punt and use a minimum line length of 8192.
4467     lt_cv_sys_max_cmd_len=8192;
4468     ;;
4469
4470   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4471     # This has been around since 386BSD, at least.  Likely further.
4472     if test -x /sbin/sysctl; then
4473       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4474     elif test -x /usr/sbin/sysctl; then
4475       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4476     else
4477       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4478     fi
4479     # And add a safety zone
4480     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4481     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4482     ;;
4483   esac
4484
4485 fi
4486
4487 if test -n "$lt_cv_sys_max_cmd_len" ; then
4488   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4489 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4490 else
4491   echo "$as_me:$LINENO: result: none" >&5
4492 echo "${ECHO_T}none" >&6
4493 fi
4494
4495
4496 # Only perform the check for file, if the check method requires it
4497 case $deplibs_check_method in
4498 file_magic*)
4499   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4500     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4501 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4502 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4503   echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505   case $MAGIC_CMD in
4506   /*)
4507   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4508   ;;
4509   ?:/*)
4510   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4511   ;;
4512   *)
4513   ac_save_MAGIC_CMD="$MAGIC_CMD"
4514   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4515   ac_dummy="/usr/bin:$PATH"
4516   for ac_dir in $ac_dummy; do
4517     test -z "$ac_dir" && ac_dir=.
4518     if test -f $ac_dir/${ac_tool_prefix}file; then
4519       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4520       if test -n "$file_magic_test_file"; then
4521         case $deplibs_check_method in
4522         "file_magic "*)
4523           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4524           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4525           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4526             egrep "$file_magic_regex" > /dev/null; then
4527             :
4528           else
4529             cat <<EOF 1>&2
4530
4531 *** Warning: the command libtool uses to detect shared libraries,
4532 *** $file_magic_cmd, produces output that libtool cannot recognize.
4533 *** The result is that libtool may fail to recognize shared libraries
4534 *** as such.  This will affect the creation of libtool libraries that
4535 *** depend on shared libraries, but programs linked with such libtool
4536 *** libraries will work regardless of this problem.  Nevertheless, you
4537 *** may want to report the problem to your system manager and/or to
4538 *** bug-libtool@gnu.org
4539
4540 EOF
4541           fi ;;
4542         esac
4543       fi
4544       break
4545     fi
4546   done
4547   IFS="$ac_save_ifs"
4548   MAGIC_CMD="$ac_save_MAGIC_CMD"
4549   ;;
4550 esac
4551 fi
4552
4553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4554 if test -n "$MAGIC_CMD"; then
4555   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4556 echo "${ECHO_T}$MAGIC_CMD" >&6
4557 else
4558   echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4560 fi
4561
4562 if test -z "$lt_cv_path_MAGIC_CMD"; then
4563   if test -n "$ac_tool_prefix"; then
4564     echo "$as_me:$LINENO: checking for file" >&5
4565 echo $ECHO_N "checking for file... $ECHO_C" >&6
4566 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   case $MAGIC_CMD in
4570   /*)
4571   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4572   ;;
4573   ?:/*)
4574   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4575   ;;
4576   *)
4577   ac_save_MAGIC_CMD="$MAGIC_CMD"
4578   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4579   ac_dummy="/usr/bin:$PATH"
4580   for ac_dir in $ac_dummy; do
4581     test -z "$ac_dir" && ac_dir=.
4582     if test -f $ac_dir/file; then
4583       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4584       if test -n "$file_magic_test_file"; then
4585         case $deplibs_check_method in
4586         "file_magic "*)
4587           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4588           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4589           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4590             egrep "$file_magic_regex" > /dev/null; then
4591             :
4592           else
4593             cat <<EOF 1>&2
4594
4595 *** Warning: the command libtool uses to detect shared libraries,
4596 *** $file_magic_cmd, produces output that libtool cannot recognize.
4597 *** The result is that libtool may fail to recognize shared libraries
4598 *** as such.  This will affect the creation of libtool libraries that
4599 *** depend on shared libraries, but programs linked with such libtool
4600 *** libraries will work regardless of this problem.  Nevertheless, you
4601 *** may want to report the problem to your system manager and/or to
4602 *** bug-libtool@gnu.org
4603
4604 EOF
4605           fi ;;
4606         esac
4607       fi
4608       break
4609     fi
4610   done
4611   IFS="$ac_save_ifs"
4612   MAGIC_CMD="$ac_save_MAGIC_CMD"
4613   ;;
4614 esac
4615 fi
4616
4617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4618 if test -n "$MAGIC_CMD"; then
4619   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4620 echo "${ECHO_T}$MAGIC_CMD" >&6
4621 else
4622   echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4624 fi
4625
4626   else
4627     MAGIC_CMD=:
4628   fi
4629 fi
4630
4631   fi
4632   ;;
4633 esac
4634
4635 if test -n "$ac_tool_prefix"; then
4636   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4637 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4638 echo "$as_me:$LINENO: checking for $ac_word" >&5
4639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640 if test "${ac_cv_prog_RANLIB+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   if test -n "$RANLIB"; then
4644   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4645 else
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649   IFS=$as_save_IFS
4650   test -z "$as_dir" && as_dir=.
4651   for ac_exec_ext in '' $ac_executable_extensions; do
4652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655     break 2
4656   fi
4657 done
4658 done
4659
4660 fi
4661 fi
4662 RANLIB=$ac_cv_prog_RANLIB
4663 if test -n "$RANLIB"; then
4664   echo "$as_me:$LINENO: result: $RANLIB" >&5
4665 echo "${ECHO_T}$RANLIB" >&6
4666 else
4667   echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4669 fi
4670
4671 fi
4672 if test -z "$ac_cv_prog_RANLIB"; then
4673   ac_ct_RANLIB=$RANLIB
4674   # Extract the first word of "ranlib", so it can be a program name with args.
4675 set dummy ranlib; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   if test -n "$ac_ct_RANLIB"; then
4682   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687   IFS=$as_save_IFS
4688   test -z "$as_dir" && as_dir=.
4689   for ac_exec_ext in '' $ac_executable_extensions; do
4690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691     ac_cv_prog_ac_ct_RANLIB="ranlib"
4692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693     break 2
4694   fi
4695 done
4696 done
4697
4698   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4699 fi
4700 fi
4701 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4702 if test -n "$ac_ct_RANLIB"; then
4703   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4704 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4705 else
4706   echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4708 fi
4709
4710   RANLIB=$ac_ct_RANLIB
4711 else
4712   RANLIB="$ac_cv_prog_RANLIB"
4713 fi
4714
4715 if test -n "$ac_tool_prefix"; then
4716   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}strip; ac_word=$2
4718 echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4720 if test "${ac_cv_prog_STRIP+set}" = set; then
4721   echo $ECHO_N "(cached) $ECHO_C" >&6
4722 else
4723   if test -n "$STRIP"; then
4724   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729   IFS=$as_save_IFS
4730   test -z "$as_dir" && as_dir=.
4731   for ac_exec_ext in '' $ac_executable_extensions; do
4732   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735     break 2
4736   fi
4737 done
4738 done
4739
4740 fi
4741 fi
4742 STRIP=$ac_cv_prog_STRIP
4743 if test -n "$STRIP"; then
4744   echo "$as_me:$LINENO: result: $STRIP" >&5
4745 echo "${ECHO_T}$STRIP" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751 fi
4752 if test -z "$ac_cv_prog_STRIP"; then
4753   ac_ct_STRIP=$STRIP
4754   # Extract the first word of "strip", so it can be a program name with args.
4755 set dummy strip; ac_word=$2
4756 echo "$as_me:$LINENO: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   if test -n "$ac_ct_STRIP"; then
4762   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4763 else
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4771     ac_cv_prog_ac_ct_STRIP="strip"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777
4778   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4779 fi
4780 fi
4781 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4782 if test -n "$ac_ct_STRIP"; then
4783   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4784 echo "${ECHO_T}$ac_ct_STRIP" >&6
4785 else
4786   echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6
4788 fi
4789
4790   STRIP=$ac_ct_STRIP
4791 else
4792   STRIP="$ac_cv_prog_STRIP"
4793 fi
4794
4795
4796 # Check for any special flags to pass to ltconfig.
4797 libtool_flags="--cache-file=$cache_file"
4798 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4799 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4800 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4801 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4802 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4803
4804
4805 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4806 if test "${enable_libtool_lock+set}" = set; then
4807   enableval="$enable_libtool_lock"
4808
4809 fi;
4810 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4811 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4812
4813
4814 # Check whether --with-pic or --without-pic was given.
4815 if test "${with_pic+set}" = set; then
4816   withval="$with_pic"
4817   pic_mode="$withval"
4818 else
4819   pic_mode=default
4820 fi;
4821 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4822 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4823
4824 # Some flags need to be propagated to the compiler or linker for good
4825 # libtool support.
4826 case $host in
4827 *-*-irix6*)
4828   # Find out which ABI we are using.
4829   echo '#line 4829 "configure"' > conftest.$ac_ext
4830   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4831   (eval $ac_compile) 2>&5
4832   ac_status=$?
4833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834   (exit $ac_status); }; then
4835    if test "$lt_cv_prog_gnu_ld" = yes; then
4836     case `/usr/bin/file conftest.$ac_objext` in
4837     *32-bit*)
4838       LD="${LD-ld} -melf32bsmip"
4839       ;;
4840     *N32*)
4841       LD="${LD-ld} -melf32bmipn32"
4842       ;;
4843     *64-bit*)
4844       LD="${LD-ld} -melf64bmip"
4845       ;;
4846     esac
4847    else
4848     case `/usr/bin/file conftest.$ac_objext` in
4849     *32-bit*)
4850       LD="${LD-ld} -32"
4851       ;;
4852     *N32*)
4853       LD="${LD-ld} -n32"
4854       ;;
4855     *64-bit*)
4856       LD="${LD-ld} -64"
4857       ;;
4858     esac
4859    fi
4860   fi
4861   rm -rf conftest*
4862   ;;
4863
4864 ia64-*-hpux*)
4865   # Find out which ABI we are using.
4866   echo 'int i;' > conftest.$ac_ext
4867   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4868   (eval $ac_compile) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; then
4872     case "`/usr/bin/file conftest.o`" in
4873     *ELF-32*)
4874       HPUX_IA64_MODE="32"
4875       ;;
4876     *ELF-64*)
4877       HPUX_IA64_MODE="64"
4878       ;;
4879     esac
4880   fi
4881   rm -rf conftest*
4882   ;;
4883
4884 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4885   # Find out which ABI we are using.
4886   echo 'int i;' > conftest.$ac_ext
4887   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4888   (eval $ac_compile) 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }; then
4892     case "`/usr/bin/file conftest.o`" in
4893     *32-bit*)
4894       case $host in
4895         x86_64-*linux*)
4896           LD="${LD-ld} -m elf_i386"
4897           ;;
4898         ppc64-*linux*|powerpc64-*linux*)
4899           LD="${LD-ld} -m elf32ppclinux"
4900           ;;
4901         s390x-*linux*)
4902           LD="${LD-ld} -m elf_s390"
4903           ;;
4904         sparc64-*linux*)
4905           LD="${LD-ld} -m elf32_sparc"
4906           ;;
4907       esac
4908       ;;
4909     *64-bit*)
4910       case $host in
4911         x86_64-*linux*)
4912           LD="${LD-ld} -m elf_x86_64"
4913           ;;
4914         ppc*-*linux*|powerpc*-*linux*)
4915           LD="${LD-ld} -m elf64ppc"
4916           ;;
4917         s390*-*linux*)
4918           LD="${LD-ld} -m elf64_s390"
4919           ;;
4920         sparc*-*linux*)
4921           LD="${LD-ld} -m elf64_sparc"
4922           ;;
4923       esac
4924       ;;
4925     esac
4926   fi
4927   rm -rf conftest*
4928   ;;
4929
4930 *-*-sco3.2v5*)
4931   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4932   SAVE_CFLAGS="$CFLAGS"
4933   CFLAGS="$CFLAGS -belf"
4934   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4935 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4936 if test "${lt_cv_cc_needs_belf+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939
4940
4941      ac_ext=c
4942 ac_cpp='$CPP $CPPFLAGS'
4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4946
4947      if test x$gcc_no_link = xyes; then
4948   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4949 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4950    { (exit 1); exit 1; }; }
4951 fi
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h.  */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h.  */
4958
4959 int
4960 main ()
4961 {
4962
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969   (eval $ac_link) 2>conftest.er1
4970   ac_status=$?
4971   grep -v '^ *+' conftest.er1 >conftest.err
4972   rm -f conftest.er1
4973   cat conftest.err >&5
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } &&
4976          { ac_try='test -z "$ac_c_werror_flag"
4977                          || test ! -s conftest.err'
4978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979   (eval $ac_try) 2>&5
4980   ac_status=$?
4981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982   (exit $ac_status); }; } &&
4983          { ac_try='test -s conftest$ac_exeext'
4984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985   (eval $ac_try) 2>&5
4986   ac_status=$?
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); }; }; then
4989   lt_cv_cc_needs_belf=yes
4990 else
4991   echo "$as_me: failed program was:" >&5
4992 sed 's/^/| /' conftest.$ac_ext >&5
4993
4994 lt_cv_cc_needs_belf=no
4995 fi
4996 rm -f conftest.err conftest.$ac_objext \
4997       conftest$ac_exeext conftest.$ac_ext
4998      ac_ext=c
4999 ac_cpp='$CPP $CPPFLAGS'
5000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5003
5004 fi
5005 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5006 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5007   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5008     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5009     CFLAGS="$SAVE_CFLAGS"
5010   fi
5011   ;;
5012
5013
5014 esac
5015
5016
5017 # Save cache, so that ltconfig can load it
5018 cat >confcache <<\_ACEOF
5019 # This file is a shell script that caches the results of configure
5020 # tests run on this system so they can be shared between configure
5021 # scripts and configure runs, see configure's option --config-cache.
5022 # It is not useful on other systems.  If it contains results you don't
5023 # want to keep, you may remove or edit it.
5024 #
5025 # config.status only pays attention to the cache file if you give it
5026 # the --recheck option to rerun configure.
5027 #
5028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5030 # following values.
5031
5032 _ACEOF
5033
5034 # The following way of writing the cache mishandles newlines in values,
5035 # but we know of no workaround that is simple, portable, and efficient.
5036 # So, don't put newlines in cache variables' values.
5037 # Ultrix sh set writes to stderr and can't be redirected directly,
5038 # and sets the high bit in the cache file unless we assign to the vars.
5039 {
5040   (set) 2>&1 |
5041     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5042     *ac_space=\ *)
5043       # `set' does not quote correctly, so add quotes (double-quote
5044       # substitution turns \\\\ into \\, and sed turns \\ into \).
5045       sed -n \
5046         "s/'/'\\\\''/g;
5047           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5048       ;;
5049     *)
5050       # `set' quotes correctly as required by POSIX, so do not add quotes.
5051       sed -n \
5052         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5053       ;;
5054     esac;
5055 } |
5056   sed '
5057      t clear
5058      : clear
5059      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5060      t end
5061      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5062      : end' >>confcache
5063 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5064   if test -w $cache_file; then
5065     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5066     cat confcache >$cache_file
5067   else
5068     echo "not updating unwritable cache $cache_file"
5069   fi
5070 fi
5071 rm -f confcache
5072
5073 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
5074 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5075 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5076 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5077 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5078 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5079 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5080 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5081 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5082 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5083 echo "$as_me: error: libtool configure failed" >&2;}
5084    { (exit 1); exit 1; }; }
5085
5086 # Reload cache, that may have been modified by ltconfig
5087 if test -r "$cache_file"; then
5088   # Some versions of bash will fail to source /dev/null (special
5089   # files actually), so we avoid doing that.
5090   if test -f "$cache_file"; then
5091     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5092 echo "$as_me: loading cache $cache_file" >&6;}
5093     case $cache_file in
5094       [\\/]* | ?:[\\/]* ) . $cache_file;;
5095       *)                      . ./$cache_file;;
5096     esac
5097   fi
5098 else
5099   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5100 echo "$as_me: creating cache $cache_file" >&6;}
5101   >$cache_file
5102 fi
5103
5104
5105 # This can be used to rebuild libtool when needed
5106 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5107
5108 # Always use our own libtool.
5109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5110
5111 # Redirect the config.log output again, so that the ltconfig log is not
5112 # clobbered by the next message.
5113 exec 5>>./config.log
5114
5115 ac_ext=cc
5116 ac_cpp='$CXXCPP $CPPFLAGS'
5117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5120 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5121 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5122 if test -z "$CXXCPP"; then
5123   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126       # Double quotes because CXXCPP needs to be expanded
5127     for CXXCPP in "$CXX -E" "/lib/cpp"
5128     do
5129       ac_preproc_ok=false
5130 for ac_cxx_preproc_warn_flag in '' yes
5131 do
5132   # Use a header file that comes with gcc, so configuring glibc
5133   # with a fresh cross-compiler works.
5134   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135   # <limits.h> exists even on freestanding compilers.
5136   # On the NeXT, cc -E runs the code through the compiler's parser,
5137   # not just through cpp. "Syntax error" is here to catch this case.
5138   cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h.  */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h.  */
5144 #ifdef __STDC__
5145 # include <limits.h>
5146 #else
5147 # include <assert.h>
5148 #endif
5149                      Syntax error
5150 _ACEOF
5151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5153   ac_status=$?
5154   grep -v '^ *+' conftest.er1 >conftest.err
5155   rm -f conftest.er1
5156   cat conftest.err >&5
5157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158   (exit $ac_status); } >/dev/null; then
5159   if test -s conftest.err; then
5160     ac_cpp_err=$ac_cxx_preproc_warn_flag
5161     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5162   else
5163     ac_cpp_err=
5164   fi
5165 else
5166   ac_cpp_err=yes
5167 fi
5168 if test -z "$ac_cpp_err"; then
5169   :
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174   # Broken: fails on valid input.
5175 continue
5176 fi
5177 rm -f conftest.err conftest.$ac_ext
5178
5179   # OK, works on sane cases.  Now check whether non-existent headers
5180   # can be detected and how.
5181   cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 #include <ac_nonexistent.h>
5188 _ACEOF
5189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } >/dev/null; then
5197   if test -s conftest.err; then
5198     ac_cpp_err=$ac_cxx_preproc_warn_flag
5199     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5200   else
5201     ac_cpp_err=
5202   fi
5203 else
5204   ac_cpp_err=yes
5205 fi
5206 if test -z "$ac_cpp_err"; then
5207   # Broken: success on invalid input.
5208 continue
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213   # Passes both tests.
5214 ac_preproc_ok=:
5215 break
5216 fi
5217 rm -f conftest.err conftest.$ac_ext
5218
5219 done
5220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5221 rm -f conftest.err conftest.$ac_ext
5222 if $ac_preproc_ok; then
5223   break
5224 fi
5225
5226     done
5227     ac_cv_prog_CXXCPP=$CXXCPP
5228
5229 fi
5230   CXXCPP=$ac_cv_prog_CXXCPP
5231 else
5232   ac_cv_prog_CXXCPP=$CXXCPP
5233 fi
5234 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5235 echo "${ECHO_T}$CXXCPP" >&6
5236 ac_preproc_ok=false
5237 for ac_cxx_preproc_warn_flag in '' yes
5238 do
5239   # Use a header file that comes with gcc, so configuring glibc
5240   # with a fresh cross-compiler works.
5241   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5242   # <limits.h> exists even on freestanding compilers.
5243   # On the NeXT, cc -E runs the code through the compiler's parser,
5244   # not just through cpp. "Syntax error" is here to catch this case.
5245   cat >conftest.$ac_ext <<_ACEOF
5246 /* confdefs.h.  */
5247 _ACEOF
5248 cat confdefs.h >>conftest.$ac_ext
5249 cat >>conftest.$ac_ext <<_ACEOF
5250 /* end confdefs.h.  */
5251 #ifdef __STDC__
5252 # include <limits.h>
5253 #else
5254 # include <assert.h>
5255 #endif
5256                      Syntax error
5257 _ACEOF
5258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5260   ac_status=$?
5261   grep -v '^ *+' conftest.er1 >conftest.err
5262   rm -f conftest.er1
5263   cat conftest.err >&5
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } >/dev/null; then
5266   if test -s conftest.err; then
5267     ac_cpp_err=$ac_cxx_preproc_warn_flag
5268     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5269   else
5270     ac_cpp_err=
5271   fi
5272 else
5273   ac_cpp_err=yes
5274 fi
5275 if test -z "$ac_cpp_err"; then
5276   :
5277 else
5278   echo "$as_me: failed program was:" >&5
5279 sed 's/^/| /' conftest.$ac_ext >&5
5280
5281   # Broken: fails on valid input.
5282 continue
5283 fi
5284 rm -f conftest.err conftest.$ac_ext
5285
5286   # OK, works on sane cases.  Now check whether non-existent headers
5287   # can be detected and how.
5288   cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h.  */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h.  */
5294 #include <ac_nonexistent.h>
5295 _ACEOF
5296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5297   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5298   ac_status=$?
5299   grep -v '^ *+' conftest.er1 >conftest.err
5300   rm -f conftest.er1
5301   cat conftest.err >&5
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); } >/dev/null; then
5304   if test -s conftest.err; then
5305     ac_cpp_err=$ac_cxx_preproc_warn_flag
5306     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5307   else
5308     ac_cpp_err=
5309   fi
5310 else
5311   ac_cpp_err=yes
5312 fi
5313 if test -z "$ac_cpp_err"; then
5314   # Broken: success on invalid input.
5315 continue
5316 else
5317   echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320   # Passes both tests.
5321 ac_preproc_ok=:
5322 break
5323 fi
5324 rm -f conftest.err conftest.$ac_ext
5325
5326 done
5327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5328 rm -f conftest.err conftest.$ac_ext
5329 if $ac_preproc_ok; then
5330   :
5331 else
5332   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5333 See \`config.log' for more details." >&5
5334 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5335 See \`config.log' for more details." >&2;}
5336    { (exit 1); exit 1; }; }
5337 fi
5338
5339 ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344
5345
5346
5347 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5348 lt_save_CC="$CC"
5349 lt_save_CFLAGS="$CFLAGS"
5350 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5351 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5352 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5353 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5354 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5355 deplibs_check_method="$deplibs_check_method" \
5356 file_magic_cmd="$file_magic_cmd" \
5357 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5358 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5359 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5360 echo "$as_me: error: libtool tag configuration failed" >&2;}
5361    { (exit 1); exit 1; }; }
5362 CC="$lt_save_CC"
5363 CFLAGS="$lt_save_CFLAGS"
5364
5365 # Redirect the config.log output again, so that the ltconfig log is not
5366 # clobbered by the next message.
5367 exec 5>>./config.log
5368
5369
5370
5371
5372
5373
5374
5375 for ac_prog in gcj
5376 do
5377   # Extract the first word of "$ac_prog", so it can be a program name with args.
5378 set dummy $ac_prog; ac_word=$2
5379 echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381 if test "${ac_cv_prog_GCJ+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   if test -n "$GCJ"; then
5385   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5386 else
5387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388 for as_dir in $PATH
5389 do
5390   IFS=$as_save_IFS
5391   test -z "$as_dir" && as_dir=.
5392   for ac_exec_ext in '' $ac_executable_extensions; do
5393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394     ac_cv_prog_GCJ="$ac_prog"
5395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396     break 2
5397   fi
5398 done
5399 done
5400
5401 fi
5402 fi
5403 GCJ=$ac_cv_prog_GCJ
5404 if test -n "$GCJ"; then
5405   echo "$as_me:$LINENO: result: $GCJ" >&5
5406 echo "${ECHO_T}$GCJ" >&6
5407 else
5408   echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410 fi
5411
5412   test -n "$GCJ" && break
5413 done
5414 test -n "$GCJ" || GCJ="gcj"
5415
5416 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5417 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5418    { (exit 1); exit 1; }; }
5419 if test "x${GCJFLAGS-unset}" = xunset; then
5420    GCJFLAGS="-g -O2"
5421 fi
5422
5423
5424 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
5425
5426 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5427 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5428 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5432   # We make a subdir and do the tests there.  Otherwise we can end up
5433   # making bogus files that we don't know about and never remove.  For
5434   # instance it was reported that on HP-UX the gcc test will end up
5435   # making a dummy file named `D' -- because `-MD' means `put the output
5436   # in D'.
5437   mkdir conftest.dir
5438   # Copy depcomp to subdir because otherwise we won't find it if we're
5439   # using a relative directory.
5440   cp "$am_depcomp" conftest.dir
5441   cd conftest.dir
5442   # We will build objects and dependencies in a subdirectory because
5443   # it helps to detect inapplicable dependency modes.  For instance
5444   # both Tru64's cc and ICC support -MD to output dependencies as a
5445   # side effect of compilation, but ICC will put the dependencies in
5446   # the current directory while Tru64 will put them in the object
5447   # directory.
5448   mkdir sub
5449
5450   am_cv_GCJ_dependencies_compiler_type=none
5451   if test "$am_compiler_list" = ""; then
5452      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5453   fi
5454   for depmode in $am_compiler_list; do
5455     # Setup a source with many dependencies, because some compilers
5456     # like to wrap large dependency lists on column 80 (with \), and
5457     # we should not choose a depcomp mode which is confused by this.
5458     #
5459     # We need to recreate these files for each test, as the compiler may
5460     # overwrite some of them when testing with obscure command lines.
5461     # This happens at least with the AIX C compiler.
5462     : > sub/conftest.c
5463     for i in 1 2 3 4 5 6; do
5464       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5465       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5466       # Solaris 8's {/usr,}/bin/sh.
5467       touch sub/conftst$i.h
5468     done
5469     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5470
5471     case $depmode in
5472     nosideeffect)
5473       # after this tag, mechanisms are not by side-effect, so they'll
5474       # only be used when explicitly requested
5475       if test "x$enable_dependency_tracking" = xyes; then
5476         continue
5477       else
5478         break
5479       fi
5480       ;;
5481     none) break ;;
5482     esac
5483     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5484     # mode.  It turns out that the SunPro C++ compiler does not properly
5485     # handle `-M -o', and we need to detect this.
5486     if depmode=$depmode \
5487        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5488        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5489        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5490          >/dev/null 2>conftest.err &&
5491        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5492        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5493        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5494       # icc doesn't choke on unknown options, it will just issue warnings
5495       # or remarks (even with -Werror).  So we grep stderr for any message
5496       # that says an option was ignored or not supported.
5497       # When given -MP, icc 7.0 and 7.1 complain thusly:
5498       #   icc: Command line warning: ignoring option '-M'; no argument required
5499       # The diagnosis changed in icc 8.0:
5500       #   icc: Command line remark: option '-MP' not supported
5501       if (grep 'ignoring option' conftest.err ||
5502           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5503         am_cv_GCJ_dependencies_compiler_type=$depmode
5504         break
5505       fi
5506     fi
5507   done
5508
5509   cd ..
5510   rm -rf conftest.dir
5511 else
5512   am_cv_GCJ_dependencies_compiler_type=none
5513 fi
5514
5515 fi
5516 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5517 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5518 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5519
5520
5521
5522 if
5523   test "x$enable_dependency_tracking" != xno \
5524   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5525   am__fastdepGCJ_TRUE=
5526   am__fastdepGCJ_FALSE='#'
5527 else
5528   am__fastdepGCJ_TRUE='#'
5529   am__fastdepGCJ_FALSE=
5530 fi
5531
5532
5533
5534
5535 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5536 lt_save_CC="$CC"
5537 lt_save_CFLAGS="$CFLAGS"
5538 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5539 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5540 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5541 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5542 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5543 deplibs_check_method="$deplibs_check_method" \
5544 file_magic_cmd="$file_magic_cmd" \
5545 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5546 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5547 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5548 echo "$as_me: error: libtool tag configuration failed" >&2;}
5549    { (exit 1); exit 1; }; }
5550 CC="$lt_save_CC"
5551 CFLAGS="$lt_save_CFLAGS"
5552
5553 # Redirect the config.log output again, so that the ltconfig log is not
5554 # clobbered by the next message.
5555 exec 5>>./config.log
5556
5557
5558
5559 if test "x$CC" != xcc; then
5560   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5561 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5562 else
5563   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5564 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5565 fi
5566 set dummy $CC; ac_cc=`echo $2 |
5567                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5568 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577
5578 int
5579 main ()
5580 {
5581
5582   ;
5583   return 0;
5584 }
5585 _ACEOF
5586 # Make sure it works both with $CC and with simple cc.
5587 # We do the test twice because some compilers refuse to overwrite an
5588 # existing .o file with -o, though they will create one.
5589 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5590 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591   (eval $ac_try) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } &&
5595    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); };
5600 then
5601   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5602   if test "x$CC" != xcc; then
5603     # Test first that cc exists at all.
5604     if { ac_try='cc -c conftest.$ac_ext >&5'
5605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606   (eval $ac_try) 2>&5
5607   ac_status=$?
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); }; }; then
5610       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5611       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); } &&
5616          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617   (eval $ac_try) 2>&5
5618   ac_status=$?
5619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620   (exit $ac_status); };
5621       then
5622         # cc works too.
5623         :
5624       else
5625         # cc exists but doesn't like -o.
5626         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5627       fi
5628     fi
5629   fi
5630 else
5631   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5632 fi
5633 rm -f conftest*
5634
5635 fi
5636 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5637   echo "$as_me:$LINENO: result: yes" >&5
5638 echo "${ECHO_T}yes" >&6
5639 else
5640   echo "$as_me:$LINENO: result: no" >&5
5641 echo "${ECHO_T}no" >&6
5642
5643 cat >>confdefs.h <<\_ACEOF
5644 #define NO_MINUS_C_MINUS_O 1
5645 _ACEOF
5646
5647 fi
5648
5649 # FIXME: we rely on the cache variable name because
5650 # there is no other way.
5651 set dummy $CC
5652 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5653 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5654    # Losing compiler, so override with the script.
5655    # FIXME: It is wrong to rewrite CC.
5656    # But if we don't then we get into trouble of one sort or another.
5657    # A longer-term fix would be to have automake use am__CC in this case,
5658    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5659    CC="$am_aux_dir/compile $CC"
5660 fi
5661
5662
5663
5664 subdirs="$subdirs libltdl"
5665
5666
5667 # The -no-testsuite modules omit the test subdir.
5668
5669
5670 if test -d $srcdir/testsuite; then
5671   TESTSUBDIR_TRUE=
5672   TESTSUBDIR_FALSE='#'
5673 else
5674   TESTSUBDIR_TRUE='#'
5675   TESTSUBDIR_FALSE=
5676 fi
5677
5678
5679 # Should the runtime set system properties by examining the
5680 # environment variable GCJ_PROPERTIES?
5681 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5682 if test "${enable_getenv_properties+set}" = set; then
5683   enableval="$enable_getenv_properties"
5684
5685 fi;
5686
5687 # Whether GCJ_PROPERTIES is used depends on the target.
5688 if test -z "$enable_getenv_properties"; then
5689    enable_getenv_properties=${enable_getenv_properties_default-yes}
5690 fi
5691 if test "$enable_getenv_properties" = no; then
5692
5693 cat >>confdefs.h <<\_ACEOF
5694 #define DISABLE_GETENV_PROPERTIES 1
5695 _ACEOF
5696
5697 fi
5698
5699 # Whether we should use arguments to main()
5700 if test -z "$enable_main_args"; then
5701    enable_main_args=${enable_main_args_default-yes}
5702 fi
5703 if test "$enable_main_args" = no; then
5704
5705 cat >>confdefs.h <<\_ACEOF
5706 #define DISABLE_MAIN_ARGS 1
5707 _ACEOF
5708
5709 fi
5710
5711
5712 # Should we use hashtable-based synchronization?
5713 # Currently works only for Linux X86/ia64
5714 # Typically faster and more space-efficient
5715 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5716 if test "${enable_hash_synchronization+set}" = set; then
5717   enableval="$enable_hash_synchronization"
5718
5719 fi;
5720
5721 if test -z "$enable_hash_synchronization"; then
5722    enable_hash_synchronization=$enable_hash_synchronization_default
5723 fi
5724
5725
5726 # Check whether --with-java-home or --without-java-home was given.
5727 if test "${with_java_home+set}" = set; then
5728   withval="$with_java_home"
5729   JAVA_HOME="${withval}"
5730 else
5731   JAVA_HOME=""
5732 fi;
5733
5734
5735 if test ! -z "$JAVA_HOME"; then
5736   JAVA_HOME_SET_TRUE=
5737   JAVA_HOME_SET_FALSE='#'
5738 else
5739   JAVA_HOME_SET_TRUE='#'
5740   JAVA_HOME_SET_FALSE=
5741 fi
5742
5743
5744
5745 # What is the native OS API for MinGW?
5746
5747 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5748 if test "${with_win32_nlsapi+set}" = set; then
5749   withval="$with_win32_nlsapi"
5750   case "${withval}" in
5751   ansi) with_win32_nlsapi=ansi ;;
5752   unicows) with_win32_nlsapi=unicows ;;
5753   unicode) with_win32_nlsapi=unicode ;;
5754   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5755 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5756    { (exit 1); exit 1; }; } ;;
5757 esac
5758 else
5759   with_win32_nlsapi=ansi
5760 fi;
5761
5762 case "${with_win32_nlsapi}" in
5763   unicows | unicode)
5764
5765 cat >>confdefs.h <<\_ACEOF
5766 #define MINGW_LIBGCJ_UNICODE 1
5767 _ACEOF
5768
5769     ;;
5770 esac
5771
5772 # configure.host sets slow_pthread_self if the synchronization code should
5773 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5774 if test "${slow_pthread_self}" = "yes"; then
5775
5776 cat >>confdefs.h <<\_ACEOF
5777 #define SLOW_PTHREAD_SELF 1
5778 _ACEOF
5779
5780 fi
5781
5782
5783 # See if the user has requested runtime debugging.
5784 LIBGCJDEBUG="false"
5785
5786 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5787 if test "${enable_libgcj_debug+set}" = set; then
5788   enableval="$enable_libgcj_debug"
5789   if test "$enable_libgcj_debug" = yes; then
5790
5791 cat >>confdefs.h <<\_ACEOF
5792 #define DEBUG 1
5793 _ACEOF
5794
5795     LIBGCJDEBUG="true"
5796   fi
5797 fi;
5798
5799 # Check for gc debugging.  This option is handled both here and in the GC.
5800 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5801 if test "${enable_gc_debug+set}" = set; then
5802   enableval="$enable_gc_debug"
5803    if test "$enable_gc_debug" = "yes"; then
5804
5805 cat >>confdefs.h <<\_ACEOF
5806 #define LIBGCJ_GC_DEBUG 1
5807 _ACEOF
5808
5809   fi
5810 fi;
5811
5812 # See if the user has the interpreter included.
5813 # Check whether --enable-interpreter or --disable-interpreter was given.
5814 if test "${enable_interpreter+set}" = set; then
5815   enableval="$enable_interpreter"
5816   if test "$enable_interpreter" = yes; then
5817     # This can also be set in configure.host.
5818     libgcj_interpreter=yes
5819   elif test "$enable_interpreter" = no; then
5820     libgcj_interpreter=no
5821   fi
5822 fi;
5823
5824 if test "$libgcj_interpreter" = yes; then
5825
5826 cat >>confdefs.h <<\_ACEOF
5827 #define INTERPRETER 1
5828 _ACEOF
5829
5830 fi
5831 INTERPRETER="$libgcj_interpreter"
5832
5833
5834 echo "$as_me:$LINENO: checking for exception model to use" >&5
5835 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5836 ac_ext=cc
5837 ac_cpp='$CXXCPP $CPPFLAGS'
5838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5841
5842 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5843 if test "${enable_sjlj_exceptions+set}" = set; then
5844   enableval="$enable_sjlj_exceptions"
5845   :
5846 else
5847   cat > conftest.$ac_ext << EOF
5848 #line 5848 "configure"
5849 struct S { ~S(); };
5850 void bar();
5851 void foo()
5852 {
5853   S s;
5854   bar();
5855 }
5856 EOF
5857 old_CXXFLAGS="$CXXFLAGS"
5858 CXXFLAGS=-S
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860   (eval $ac_compile) 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; then
5864   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5865     enable_sjlj_exceptions=yes
5866   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5867     enable_sjlj_exceptions=no
5868   fi
5869 fi
5870 CXXFLAGS="$old_CXXFLAGS"
5871 rm -f conftest*
5872 fi;
5873 if test x$enable_sjlj_exceptions = xyes; then
5874
5875 cat >>confdefs.h <<\_ACEOF
5876 #define SJLJ_EXCEPTIONS 1
5877 _ACEOF
5878
5879   ac_exception_model_name=sjlj
5880 elif test x$enable_sjlj_exceptions = xno; then
5881   ac_exception_model_name="call frame"
5882 else
5883   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5884 echo "$as_me: error: unable to detect exception model" >&2;}
5885    { (exit 1); exit 1; }; }
5886 fi
5887 ac_ext=c
5888 ac_cpp='$CPP $CPPFLAGS'
5889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5892
5893 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5894 echo "${ECHO_T}$ac_exception_model_name" >&6
5895
5896 # If we are non using SJLJ exceptions, and this host does not have support
5897 # for unwinding from a signal handler, enable checked dereferences and divides.
5898 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5899   CHECKREFSPEC=-fcheck-references
5900   DIVIDESPEC=-fuse-divide-subroutine
5901   EXCEPTIONSPEC=
5902 fi
5903
5904 # See if the user wants to disable java.net.  This is the mildly
5905 # ugly way that we admit that target-side configuration sucks.
5906 # Check whether --enable-java-net or --disable-java-net was given.
5907 if test "${enable_java_net+set}" = set; then
5908   enableval="$enable_java_net"
5909
5910 fi;
5911
5912 # Whether java.net is built by default can depend on the target.
5913 if test -z "$enable_java_net"; then
5914    enable_java_net=${enable_java_net_default-yes}
5915 fi
5916 if test "$enable_java_net" = no; then
5917
5918 cat >>confdefs.h <<\_ACEOF
5919 #define DISABLE_JAVA_NET 1
5920 _ACEOF
5921
5922 fi
5923
5924 # See if the user wants to configure without libffi.  Some
5925 # architectures don't support it, and default values are set in
5926 # configure.host.
5927
5928 # Check whether --with-libffi or --without-libffi was given.
5929 if test "${with_libffi+set}" = set; then
5930   withval="$with_libffi"
5931   :
5932 else
5933   with_libffi=${with_libffi_default-yes}
5934 fi;
5935
5936 LIBFFI=
5937 LIBFFIINCS=
5938 if test "$with_libffi" != no; then
5939
5940 cat >>confdefs.h <<\_ACEOF
5941 #define USE_LIBFFI 1
5942 _ACEOF
5943
5944    LIBFFI=../libffi/libffi_convenience.la
5945    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5946 fi
5947
5948
5949
5950 # See if the user wants to disable JVMPI support.
5951 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5952 if test "${enable_jvmpi+set}" = set; then
5953   enableval="$enable_jvmpi"
5954
5955 fi;
5956
5957 if test "$enable_jvmpi" != no; then
5958
5959 cat >>confdefs.h <<\_ACEOF
5960 #define ENABLE_JVMPI 1
5961 _ACEOF
5962
5963 fi
5964
5965 # If the target is an eCos system, use the appropriate eCos
5966 # I/O routines.
5967 # FIXME: this should not be a local option but a global target
5968 # system; at present there is no eCos target.
5969 TARGET_ECOS=${PROCESS-"no"}
5970
5971 # Check whether --with-ecos or --without-ecos was given.
5972 if test "${with_ecos+set}" = set; then
5973   withval="$with_ecos"
5974   TARGET_ECOS="$with_ecos"
5975
5976 fi;
5977
5978 supply_backtrace=no
5979
5980 PLATFORM_INNER_NAT_HDRS=
5981 case "$TARGET_ECOS" in
5982    no) case "$host" in
5983       *mingw*)
5984             PLATFORM=Win32
5985             PLATFORMNET=Win32
5986             PLATFORMH=win32.h
5987
5988 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5989 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5990 LD_PROG=`$CC --print-prog-name=ld`
5991 LD_VERSION=`$LD_PROG --version`
5992 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5993 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5994 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5995   LD_OK="ok"
5996 else
5997   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5998     LD_OK="ok"
5999   fi
6000 fi
6001 if test "x$LD_OK" != x; then
6002   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6003 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6004 else
6005   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6006 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6007   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6008 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6009
6010 cat >>confdefs.h <<\_ACEOF
6011 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6012 _ACEOF
6013
6014 fi
6015       ;;
6016       *)
6017             PLATFORM=Posix
6018             PLATFORMNET=Posix
6019             PLATFORMH=posix.h
6020             PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6021       ;;
6022       esac
6023       ;;
6024    *)
6025       PLATFORM=Ecos
6026       PLATFORMNET=NoNet
6027
6028 cat >>confdefs.h <<\_ACEOF
6029 #define ECOS 1
6030 _ACEOF
6031
6032       PLATFORMH=posix.h
6033       ;;
6034 esac
6035
6036           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6037
6038
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6045 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6046 # On Suns, sometimes $CPP names a directory.
6047 if test -n "$CPP" && test -d "$CPP"; then
6048   CPP=
6049 fi
6050 if test -z "$CPP"; then
6051   if test "${ac_cv_prog_CPP+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054       # Double quotes because CPP needs to be expanded
6055     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6056     do
6057       ac_preproc_ok=false
6058 for ac_c_preproc_warn_flag in '' yes
6059 do
6060   # Use a header file that comes with gcc, so configuring glibc
6061   # with a fresh cross-compiler works.
6062   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6063   # <limits.h> exists even on freestanding compilers.
6064   # On the NeXT, cc -E runs the code through the compiler's parser,
6065   # not just through cpp. "Syntax error" is here to catch this case.
6066   cat >conftest.$ac_ext <<_ACEOF
6067 /* confdefs.h.  */
6068 _ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h.  */
6072 #ifdef __STDC__
6073 # include <limits.h>
6074 #else
6075 # include <assert.h>
6076 #endif
6077                      Syntax error
6078 _ACEOF
6079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } >/dev/null; then
6087   if test -s conftest.err; then
6088     ac_cpp_err=$ac_c_preproc_warn_flag
6089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6090   else
6091     ac_cpp_err=
6092   fi
6093 else
6094   ac_cpp_err=yes
6095 fi
6096 if test -z "$ac_cpp_err"; then
6097   :
6098 else
6099   echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102   # Broken: fails on valid input.
6103 continue
6104 fi
6105 rm -f conftest.err conftest.$ac_ext
6106
6107   # OK, works on sane cases.  Now check whether non-existent headers
6108   # can be detected and how.
6109   cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h.  */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h.  */
6115 #include <ac_nonexistent.h>
6116 _ACEOF
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119   ac_status=$?
6120   grep -v '^ *+' conftest.er1 >conftest.err
6121   rm -f conftest.er1
6122   cat conftest.err >&5
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } >/dev/null; then
6125   if test -s conftest.err; then
6126     ac_cpp_err=$ac_c_preproc_warn_flag
6127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6128   else
6129     ac_cpp_err=
6130   fi
6131 else
6132   ac_cpp_err=yes
6133 fi
6134 if test -z "$ac_cpp_err"; then
6135   # Broken: success on invalid input.
6136 continue
6137 else
6138   echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141   # Passes both tests.
6142 ac_preproc_ok=:
6143 break
6144 fi
6145 rm -f conftest.err conftest.$ac_ext
6146
6147 done
6148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6149 rm -f conftest.err conftest.$ac_ext
6150 if $ac_preproc_ok; then
6151   break
6152 fi
6153
6154     done
6155     ac_cv_prog_CPP=$CPP
6156
6157 fi
6158   CPP=$ac_cv_prog_CPP
6159 else
6160   ac_cv_prog_CPP=$CPP
6161 fi
6162 echo "$as_me:$LINENO: result: $CPP" >&5
6163 echo "${ECHO_T}$CPP" >&6
6164 ac_preproc_ok=false
6165 for ac_c_preproc_warn_flag in '' yes
6166 do
6167   # Use a header file that comes with gcc, so configuring glibc
6168   # with a fresh cross-compiler works.
6169   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170   # <limits.h> exists even on freestanding compilers.
6171   # On the NeXT, cc -E runs the code through the compiler's parser,
6172   # not just through cpp. "Syntax error" is here to catch this case.
6173   cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #ifdef __STDC__
6180 # include <limits.h>
6181 #else
6182 # include <assert.h>
6183 #endif
6184                      Syntax error
6185 _ACEOF
6186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6187   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6188   ac_status=$?
6189   grep -v '^ *+' conftest.er1 >conftest.err
6190   rm -f conftest.er1
6191   cat conftest.err >&5
6192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193   (exit $ac_status); } >/dev/null; then
6194   if test -s conftest.err; then
6195     ac_cpp_err=$ac_c_preproc_warn_flag
6196     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6197   else
6198     ac_cpp_err=
6199   fi
6200 else
6201   ac_cpp_err=yes
6202 fi
6203 if test -z "$ac_cpp_err"; then
6204   :
6205 else
6206   echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209   # Broken: fails on valid input.
6210 continue
6211 fi
6212 rm -f conftest.err conftest.$ac_ext
6213
6214   # OK, works on sane cases.  Now check whether non-existent headers
6215   # can be detected and how.
6216   cat >conftest.$ac_ext <<_ACEOF
6217 /* confdefs.h.  */
6218 _ACEOF
6219 cat confdefs.h >>conftest.$ac_ext
6220 cat >>conftest.$ac_ext <<_ACEOF
6221 /* end confdefs.h.  */
6222 #include <ac_nonexistent.h>
6223 _ACEOF
6224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6226   ac_status=$?
6227   grep -v '^ *+' conftest.er1 >conftest.err
6228   rm -f conftest.er1
6229   cat conftest.err >&5
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } >/dev/null; then
6232   if test -s conftest.err; then
6233     ac_cpp_err=$ac_c_preproc_warn_flag
6234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6235   else
6236     ac_cpp_err=
6237   fi
6238 else
6239   ac_cpp_err=yes
6240 fi
6241 if test -z "$ac_cpp_err"; then
6242   # Broken: success on invalid input.
6243 continue
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248   # Passes both tests.
6249 ac_preproc_ok=:
6250 break
6251 fi
6252 rm -f conftest.err conftest.$ac_ext
6253
6254 done
6255 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6256 rm -f conftest.err conftest.$ac_ext
6257 if $ac_preproc_ok; then
6258   :
6259 else
6260   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6261 See \`config.log' for more details." >&5
6262 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6263 See \`config.log' for more details." >&2;}
6264    { (exit 1); exit 1; }; }
6265 fi
6266
6267 ac_ext=c
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272
6273
6274 echo "$as_me:$LINENO: checking for egrep" >&5
6275 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6276 if test "${ac_cv_prog_egrep+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6280     then ac_cv_prog_egrep='grep -E'
6281     else ac_cv_prog_egrep='egrep'
6282     fi
6283 fi
6284 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6285 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6286  EGREP=$ac_cv_prog_egrep
6287
6288
6289 cat >conftest.$ac_ext <<_ACEOF
6290 /* confdefs.h.  */
6291 _ACEOF
6292 cat confdefs.h >>conftest.$ac_ext
6293 cat >>conftest.$ac_ext <<_ACEOF
6294 /* end confdefs.h.  */
6295 #include <stdint.h>
6296
6297 _ACEOF
6298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299   $EGREP "uint32_t" >/dev/null 2>&1; then
6300
6301 cat >>confdefs.h <<\_ACEOF
6302 #define HAVE_INT32_DEFINED 1
6303 _ACEOF
6304
6305 fi
6306 rm -f conftest*
6307
6308 cat >conftest.$ac_ext <<_ACEOF
6309 /* confdefs.h.  */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h.  */
6314 #include <inttypes.h>
6315
6316 _ACEOF
6317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318   $EGREP "uint32_t" >/dev/null 2>&1; then
6319
6320 cat >>confdefs.h <<\_ACEOF
6321 #define HAVE_INT32_DEFINED 1
6322 _ACEOF
6323
6324 fi
6325 rm -f conftest*
6326
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h.  */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h.  */
6333 #include <sys/types.h>
6334
6335 _ACEOF
6336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6337   $EGREP "u_int32_t" >/dev/null 2>&1; then
6338
6339 cat >>confdefs.h <<\_ACEOF
6340 #define HAVE_BSD_INT32_DEFINED 1
6341 _ACEOF
6342
6343 fi
6344 rm -f conftest*
6345
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352 #include <sys/config.h>
6353
6354 _ACEOF
6355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6356   $EGREP "u_int32_t" >/dev/null 2>&1; then
6357
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_BSD_INT32_DEFINED 1
6360 _ACEOF
6361
6362 fi
6363 rm -f conftest*
6364
6365
6366
6367
6368 if test "$PLATFORM" = Win32; then
6369   USING_WIN32_PLATFORM_TRUE=
6370   USING_WIN32_PLATFORM_FALSE='#'
6371 else
6372   USING_WIN32_PLATFORM_TRUE='#'
6373   USING_WIN32_PLATFORM_FALSE=
6374 fi
6375
6376
6377
6378 if test "$PLATFORM" = Posix; then
6379   USING_POSIX_PLATFORM_TRUE=
6380   USING_POSIX_PLATFORM_FALSE='#'
6381 else
6382   USING_POSIX_PLATFORM_TRUE='#'
6383   USING_POSIX_PLATFORM_FALSE=
6384 fi
6385
6386
6387
6388 if test "$PLATFORM" = Ecos; then
6389   USING_ECOS_PLATFORM_TRUE=
6390   USING_ECOS_PLATFORM_FALSE='#'
6391 else
6392   USING_ECOS_PLATFORM_TRUE='#'
6393   USING_ECOS_PLATFORM_FALSE=
6394 fi
6395
6396
6397 case "$host" in
6398   *-darwin*) DARWIN_CRT=true ;;
6399   *) DARWIN_CRT=false ;;
6400 esac
6401
6402
6403 if $DARWIN_CRT; then
6404   USING_DARWIN_CRT_TRUE=
6405   USING_DARWIN_CRT_FALSE='#'
6406 else
6407   USING_DARWIN_CRT_TRUE='#'
6408   USING_DARWIN_CRT_FALSE=
6409 fi
6410
6411
6412 # These may not be defined in a non-ANS conformant embedded system.
6413 # FIXME: Should these case a runtime exception in that case?
6414 cat >conftest.$ac_ext <<_ACEOF
6415 /* confdefs.h.  */
6416 _ACEOF
6417 cat confdefs.h >>conftest.$ac_ext
6418 cat >>conftest.$ac_ext <<_ACEOF
6419 /* end confdefs.h.  */
6420 #include <time.h>
6421
6422 _ACEOF
6423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424   $EGREP "mktime" >/dev/null 2>&1; then
6425
6426 cat >>confdefs.h <<\_ACEOF
6427 #define HAVE_MKTIME 1
6428 _ACEOF
6429
6430 fi
6431 rm -f conftest*
6432
6433 cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h.  */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h.  */
6439 #include <time.h>
6440
6441 _ACEOF
6442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443   $EGREP "localtime" >/dev/null 2>&1; then
6444
6445 cat >>confdefs.h <<\_ACEOF
6446 #define HAVE_LOCALTIME 1
6447 _ACEOF
6448
6449 fi
6450 rm -f conftest*
6451
6452
6453 # Create the subdirectory for natFile.cc, or the attempt
6454 # to create the link will fail.
6455 test -d java || mkdir java
6456 test -d java/io || mkdir java/io
6457 test -d gnu || mkdir gnu
6458           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6459
6460
6461 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6462 test -d java/lang || mkdir java/lang
6463           ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6464
6465           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6466
6467
6468 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6469 test -d java/net || mkdir java/net
6470           ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6471
6472           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6473
6474
6475 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6476 test -d gnu/java || mkdir gnu/java
6477 test -d gnu/java/net || mkdir gnu/java/net
6478           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6479
6480           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6481
6482
6483 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6484 test -d gnu/java/nio || mkdir gnu/java/nio
6485           ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6486
6487           ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6488
6489 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6490           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6491
6492
6493 case "${host}" in
6494     *mingw*)
6495       SYSTEMSPEC="-lgdi32 -lws2_32"
6496       if test "${with_win32_nlsapi}" = "unicows"; then
6497         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6498       fi
6499     ;;
6500     *)
6501       SYSTEMSPEC=
6502     ;;
6503 esac
6504
6505
6506 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6507
6508
6509
6510 # Check whether --with-system-zlib or --without-system-zlib was given.
6511 if test "${with_system_zlib+set}" = set; then
6512   withval="$with_system_zlib"
6513
6514 fi;
6515 ZLIBSPEC=
6516
6517 ZLIBTESTSPEC=
6518
6519
6520 echo "$as_me:$LINENO: checking for X" >&5
6521 echo $ECHO_N "checking for X... $ECHO_C" >&6
6522
6523
6524 # Check whether --with-x or --without-x was given.
6525 if test "${with_x+set}" = set; then
6526   withval="$with_x"
6527
6528 fi;
6529 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6530 if test "x$with_x" = xno; then
6531   # The user explicitly disabled X.
6532   have_x=disabled
6533 else
6534   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6535     # Both variables are already set.
6536     have_x=yes
6537   else
6538     if test "${ac_cv_have_x+set}" = set; then
6539   echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541   # One or both of the vars are not set, and there is no cached value.
6542 ac_x_includes=no ac_x_libraries=no
6543 rm -fr conftest.dir
6544 if mkdir conftest.dir; then
6545   cd conftest.dir
6546   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6547   cat >Imakefile <<'_ACEOF'
6548 acfindx:
6549         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6550 _ACEOF
6551   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6552     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6553     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6554     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6555     for ac_extension in a so sl; do
6556       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6557          test -f $ac_im_libdir/libX11.$ac_extension; then
6558         ac_im_usrlibdir=$ac_im_libdir; break
6559       fi
6560     done
6561     # Screen out bogus values from the imake configuration.  They are
6562     # bogus both because they are the default anyway, and because
6563     # using them would break gcc on systems where it needs fixed includes.
6564     case $ac_im_incroot in
6565         /usr/include) ;;
6566         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6567     esac
6568     case $ac_im_usrlibdir in
6569         /usr/lib | /lib) ;;
6570         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6571     esac
6572   fi
6573   cd ..
6574   rm -fr conftest.dir
6575 fi
6576
6577 # Standard set of common directories for X headers.
6578 # Check X11 before X11Rn because it is often a symlink to the current release.
6579 ac_x_header_dirs='
6580 /usr/X11/include
6581 /usr/X11R6/include
6582 /usr/X11R5/include
6583 /usr/X11R4/include
6584
6585 /usr/include/X11
6586 /usr/include/X11R6
6587 /usr/include/X11R5
6588 /usr/include/X11R4
6589
6590 /usr/local/X11/include
6591 /usr/local/X11R6/include
6592 /usr/local/X11R5/include
6593 /usr/local/X11R4/include
6594
6595 /usr/local/include/X11
6596 /usr/local/include/X11R6
6597 /usr/local/include/X11R5
6598 /usr/local/include/X11R4
6599
6600 /usr/X386/include
6601 /usr/x386/include
6602 /usr/XFree86/include/X11
6603
6604 /usr/include
6605 /usr/local/include
6606 /usr/unsupported/include
6607 /usr/athena/include
6608 /usr/local/x11r5/include
6609 /usr/lpp/Xamples/include
6610
6611 /usr/openwin/include
6612 /usr/openwin/share/include'
6613
6614 if test "$ac_x_includes" = no; then
6615   # Guess where to find include files, by looking for Intrinsic.h.
6616   # First, try using that file with no special directory specified.
6617   cat >conftest.$ac_ext <<_ACEOF
6618 /* confdefs.h.  */
6619 _ACEOF
6620 cat confdefs.h >>conftest.$ac_ext
6621 cat >>conftest.$ac_ext <<_ACEOF
6622 /* end confdefs.h.  */
6623 #include <X11/Intrinsic.h>
6624 _ACEOF
6625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6626   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6627   ac_status=$?
6628   grep -v '^ *+' conftest.er1 >conftest.err
6629   rm -f conftest.er1
6630   cat conftest.err >&5
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } >/dev/null; then
6633   if test -s conftest.err; then
6634     ac_cpp_err=$ac_c_preproc_warn_flag
6635     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6636   else
6637     ac_cpp_err=
6638   fi
6639 else
6640   ac_cpp_err=yes
6641 fi
6642 if test -z "$ac_cpp_err"; then
6643   # We can compile using X headers with no special include directory.
6644 ac_x_includes=
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649   for ac_dir in $ac_x_header_dirs; do
6650   if test -r "$ac_dir/X11/Intrinsic.h"; then
6651     ac_x_includes=$ac_dir
6652     break
6653   fi
6654 done
6655 fi
6656 rm -f conftest.err conftest.$ac_ext
6657 fi # $ac_x_includes = no
6658
6659 if test "$ac_x_libraries" = no; then
6660   # Check for the libraries.
6661   # See if we find them without any special options.
6662   # Don't add to $LIBS permanently.
6663   ac_save_LIBS=$LIBS
6664   LIBS="-lXt $LIBS"
6665   if test x$gcc_no_link = xyes; then
6666   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6668    { (exit 1); exit 1; }; }
6669 fi
6670 cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <X11/Intrinsic.h>
6677 int
6678 main ()
6679 {
6680 XtMalloc (0)
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 rm -f conftest.$ac_objext conftest$ac_exeext
6686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6687   (eval $ac_link) 2>conftest.er1
6688   ac_status=$?
6689   grep -v '^ *+' conftest.er1 >conftest.err
6690   rm -f conftest.er1
6691   cat conftest.err >&5
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } &&
6694          { ac_try='test -z "$ac_c_werror_flag"
6695                          || test ! -s conftest.err'
6696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697   (eval $ac_try) 2>&5
6698   ac_status=$?
6699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700   (exit $ac_status); }; } &&
6701          { ac_try='test -s conftest$ac_exeext'
6702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703   (eval $ac_try) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); }; }; then
6707   LIBS=$ac_save_LIBS
6708 # We can link X programs with no special library path.
6709 ac_x_libraries=
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714 LIBS=$ac_save_LIBS
6715 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6716 do
6717   # Don't even attempt the hair of trying to link an X program!
6718   for ac_extension in a so sl; do
6719     if test -r $ac_dir/libXt.$ac_extension; then
6720       ac_x_libraries=$ac_dir
6721       break 2
6722     fi
6723   done
6724 done
6725 fi
6726 rm -f conftest.err conftest.$ac_objext \
6727       conftest$ac_exeext conftest.$ac_ext
6728 fi # $ac_x_libraries = no
6729
6730 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6731   # Didn't find X anywhere.  Cache the known absence of X.
6732   ac_cv_have_x="have_x=no"
6733 else
6734   # Record where we found X for the cache.
6735   ac_cv_have_x="have_x=yes \
6736                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6737 fi
6738 fi
6739
6740   fi
6741   eval "$ac_cv_have_x"
6742 fi # $with_x != no
6743
6744 if test "$have_x" != yes; then
6745   echo "$as_me:$LINENO: result: $have_x" >&5
6746 echo "${ECHO_T}$have_x" >&6
6747   no_x=yes
6748 else
6749   # If each of the values was on the command line, it overrides each guess.
6750   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6751   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6752   # Update the cache value to reflect the command line values.
6753   ac_cv_have_x="have_x=yes \
6754                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6755   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6756 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6757 fi
6758
6759 if test "$no_x" = yes; then
6760   # Not all programs may use this symbol, but it does not hurt to define it.
6761
6762 cat >>confdefs.h <<\_ACEOF
6763 #define X_DISPLAY_MISSING 1
6764 _ACEOF
6765
6766   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6767 else
6768   if test -n "$x_includes"; then
6769     X_CFLAGS="$X_CFLAGS -I$x_includes"
6770   fi
6771
6772   # It would also be nice to do this for all -L options, not just this one.
6773   if test -n "$x_libraries"; then
6774     X_LIBS="$X_LIBS -L$x_libraries"
6775     # For Solaris; some versions of Sun CC require a space after -R and
6776     # others require no space.  Words are not sufficient . . . .
6777     case `(uname -sr) 2>/dev/null` in
6778     "SunOS 5"*)
6779       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6780 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6781       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6782       if test x$gcc_no_link = xyes; then
6783   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6785    { (exit 1); exit 1; }; }
6786 fi
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793
6794 int
6795 main ()
6796 {
6797
6798   ;
6799   return 0;
6800 }
6801 _ACEOF
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804   (eval $ac_link) 2>conftest.er1
6805   ac_status=$?
6806   grep -v '^ *+' conftest.er1 >conftest.err
6807   rm -f conftest.er1
6808   cat conftest.err >&5
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); } &&
6811          { ac_try='test -z "$ac_c_werror_flag"
6812                          || test ! -s conftest.err'
6813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814   (eval $ac_try) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; } &&
6818          { ac_try='test -s conftest$ac_exeext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824   ac_R_nospace=yes
6825 else
6826   echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 ac_R_nospace=no
6830 fi
6831 rm -f conftest.err conftest.$ac_objext \
6832       conftest$ac_exeext conftest.$ac_ext
6833       if test $ac_R_nospace = yes; then
6834         echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6836         X_LIBS="$X_LIBS -R$x_libraries"
6837       else
6838         LIBS="$ac_xsave_LIBS -R $x_libraries"
6839         if test x$gcc_no_link = xyes; then
6840   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6841 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6842    { (exit 1); exit 1; }; }
6843 fi
6844 cat >conftest.$ac_ext <<_ACEOF
6845 /* confdefs.h.  */
6846 _ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h.  */
6850
6851 int
6852 main ()
6853 {
6854
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6861   (eval $ac_link) 2>conftest.er1
6862   ac_status=$?
6863   grep -v '^ *+' conftest.er1 >conftest.err
6864   rm -f conftest.er1
6865   cat conftest.err >&5
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); } &&
6868          { ac_try='test -z "$ac_c_werror_flag"
6869                          || test ! -s conftest.err'
6870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871   (eval $ac_try) 2>&5
6872   ac_status=$?
6873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874   (exit $ac_status); }; } &&
6875          { ac_try='test -s conftest$ac_exeext'
6876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877   (eval $ac_try) 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); }; }; then
6881   ac_R_space=yes
6882 else
6883   echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6885
6886 ac_R_space=no
6887 fi
6888 rm -f conftest.err conftest.$ac_objext \
6889       conftest$ac_exeext conftest.$ac_ext
6890         if test $ac_R_space = yes; then
6891           echo "$as_me:$LINENO: result: yes" >&5
6892 echo "${ECHO_T}yes" >&6
6893           X_LIBS="$X_LIBS -R $x_libraries"
6894         else
6895           echo "$as_me:$LINENO: result: neither works" >&5
6896 echo "${ECHO_T}neither works" >&6
6897         fi
6898       fi
6899       LIBS=$ac_xsave_LIBS
6900     esac
6901   fi
6902
6903   # Check for system-dependent libraries X programs must link with.
6904   # Do this before checking for the system-independent R6 libraries
6905   # (-lICE), since we may need -lsocket or whatever for X linking.
6906
6907   if test "$ISC" = yes; then
6908     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6909   else
6910     # Martyn Johnson says this is needed for Ultrix, if the X
6911     # libraries were built with DECnet support.  And Karl Berry says
6912     # the Alpha needs dnet_stub (dnet does not exist).
6913     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6914     if test x$gcc_no_link = xyes; then
6915   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6917    { (exit 1); exit 1; }; }
6918 fi
6919 cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h.  */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h.  */
6925
6926 /* Override any gcc2 internal prototype to avoid an error.  */
6927 #ifdef __cplusplus
6928 extern "C"
6929 #endif
6930 /* We use char because int might match the return type of a gcc2
6931    builtin and then its argument prototype would still apply.  */
6932 char XOpenDisplay ();
6933 int
6934 main ()
6935 {
6936 XOpenDisplay ();
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943   (eval $ac_link) 2>conftest.er1
6944   ac_status=$?
6945   grep -v '^ *+' conftest.er1 >conftest.err
6946   rm -f conftest.er1
6947   cat conftest.err >&5
6948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949   (exit $ac_status); } &&
6950          { ac_try='test -z "$ac_c_werror_flag"
6951                          || test ! -s conftest.err'
6952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953   (eval $ac_try) 2>&5
6954   ac_status=$?
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); }; } &&
6957          { ac_try='test -s conftest$ac_exeext'
6958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959   (eval $ac_try) 2>&5
6960   ac_status=$?
6961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962   (exit $ac_status); }; }; then
6963   :
6964 else
6965   echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6969 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6970 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   ac_check_lib_save_LIBS=$LIBS
6974 LIBS="-ldnet  $LIBS"
6975 if test x$gcc_no_link = xyes; then
6976   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6977 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6978    { (exit 1); exit 1; }; }
6979 fi
6980 cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986
6987 /* Override any gcc2 internal prototype to avoid an error.  */
6988 #ifdef __cplusplus
6989 extern "C"
6990 #endif
6991 /* We use char because int might match the return type of a gcc2
6992    builtin and then its argument prototype would still apply.  */
6993 char dnet_ntoa ();
6994 int
6995 main ()
6996 {
6997 dnet_ntoa ();
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004   (eval $ac_link) 2>conftest.er1
7005   ac_status=$?
7006   grep -v '^ *+' conftest.er1 >conftest.err
7007   rm -f conftest.er1
7008   cat conftest.err >&5
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); } &&
7011          { ac_try='test -z "$ac_c_werror_flag"
7012                          || test ! -s conftest.err'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; } &&
7018          { ac_try='test -s conftest$ac_exeext'
7019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020   (eval $ac_try) 2>&5
7021   ac_status=$?
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); }; }; then
7024   ac_cv_lib_dnet_dnet_ntoa=yes
7025 else
7026   echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 ac_cv_lib_dnet_dnet_ntoa=no
7030 fi
7031 rm -f conftest.err conftest.$ac_objext \
7032       conftest$ac_exeext conftest.$ac_ext
7033 LIBS=$ac_check_lib_save_LIBS
7034 fi
7035 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7036 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7037 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7038   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7039 fi
7040
7041     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7042       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7043 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7044 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   ac_check_lib_save_LIBS=$LIBS
7048 LIBS="-ldnet_stub  $LIBS"
7049 if test x$gcc_no_link = xyes; then
7050   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7052    { (exit 1); exit 1; }; }
7053 fi
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060
7061 /* Override any gcc2 internal prototype to avoid an error.  */
7062 #ifdef __cplusplus
7063 extern "C"
7064 #endif
7065 /* We use char because int might match the return type of a gcc2
7066    builtin and then its argument prototype would still apply.  */
7067 char dnet_ntoa ();
7068 int
7069 main ()
7070 {
7071 dnet_ntoa ();
7072   ;
7073   return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078   (eval $ac_link) 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag"
7086                          || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest$ac_exeext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   ac_cv_lib_dnet_stub_dnet_ntoa=yes
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 ac_cv_lib_dnet_stub_dnet_ntoa=no
7104 fi
7105 rm -f conftest.err conftest.$ac_objext \
7106       conftest$ac_exeext conftest.$ac_ext
7107 LIBS=$ac_check_lib_save_LIBS
7108 fi
7109 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7110 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7111 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7112   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7113 fi
7114
7115     fi
7116 fi
7117 rm -f conftest.err conftest.$ac_objext \
7118       conftest$ac_exeext conftest.$ac_ext
7119     LIBS="$ac_xsave_LIBS"
7120
7121     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7122     # to get the SysV transport functions.
7123     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7124     # needs -lnsl.
7125     # The nsl library prevents programs from opening the X display
7126     # on Irix 5.2, according to T.E. Dickey.
7127     # The functions gethostbyname, getservbyname, and inet_addr are
7128     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7129     echo "$as_me:$LINENO: checking for gethostbyname" >&5
7130 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7131 if test "${ac_cv_func_gethostbyname+set}" = set; then
7132   echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134   if test x$gcc_no_link = xyes; then
7135   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7137    { (exit 1); exit 1; }; }
7138 fi
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h.  */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h.  */
7145 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7147 #define gethostbyname innocuous_gethostbyname
7148
7149 /* System header to define __stub macros and hopefully few prototypes,
7150     which can conflict with char gethostbyname (); below.
7151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152     <limits.h> exists even on freestanding compilers.  */
7153
7154 #ifdef __STDC__
7155 # include <limits.h>
7156 #else
7157 # include <assert.h>
7158 #endif
7159
7160 #undef gethostbyname
7161
7162 /* Override any gcc2 internal prototype to avoid an error.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 {
7166 #endif
7167 /* We use char because int might match the return type of a gcc2
7168    builtin and then its argument prototype would still apply.  */
7169 char gethostbyname ();
7170 /* The GNU C library defines this for functions which it implements
7171     to always fail with ENOSYS.  Some functions are actually named
7172     something starting with __ and the normal name is an alias.  */
7173 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7174 choke me
7175 #else
7176 char (*f) () = gethostbyname;
7177 #endif
7178 #ifdef __cplusplus
7179 }
7180 #endif
7181
7182 int
7183 main ()
7184 {
7185 return f != gethostbyname;
7186   ;
7187   return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192   (eval $ac_link) 2>conftest.er1
7193   ac_status=$?
7194   grep -v '^ *+' conftest.er1 >conftest.err
7195   rm -f conftest.er1
7196   cat conftest.err >&5
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } &&
7199          { ac_try='test -z "$ac_c_werror_flag"
7200                          || test ! -s conftest.err'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; } &&
7206          { ac_try='test -s conftest$ac_exeext'
7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208   (eval $ac_try) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; }; then
7212   ac_cv_func_gethostbyname=yes
7213 else
7214   echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 ac_cv_func_gethostbyname=no
7218 fi
7219 rm -f conftest.err conftest.$ac_objext \
7220       conftest$ac_exeext conftest.$ac_ext
7221 fi
7222 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7223 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7224
7225     if test $ac_cv_func_gethostbyname = no; then
7226       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7227 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7228 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7229   echo $ECHO_N "(cached) $ECHO_C" >&6
7230 else
7231   ac_check_lib_save_LIBS=$LIBS
7232 LIBS="-lnsl  $LIBS"
7233 if test x$gcc_no_link = xyes; then
7234   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7236    { (exit 1); exit 1; }; }
7237 fi
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244
7245 /* Override any gcc2 internal prototype to avoid an error.  */
7246 #ifdef __cplusplus
7247 extern "C"
7248 #endif
7249 /* We use char because int might match the return type of a gcc2
7250    builtin and then its argument prototype would still apply.  */
7251 char gethostbyname ();
7252 int
7253 main ()
7254 {
7255 gethostbyname ();
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7262   (eval $ac_link) 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } &&
7269          { ac_try='test -z "$ac_c_werror_flag"
7270                          || test ! -s conftest.err'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; } &&
7276          { ac_try='test -s conftest$ac_exeext'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; }; then
7282   ac_cv_lib_nsl_gethostbyname=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_lib_nsl_gethostbyname=no
7288 fi
7289 rm -f conftest.err conftest.$ac_objext \
7290       conftest$ac_exeext conftest.$ac_ext
7291 LIBS=$ac_check_lib_save_LIBS
7292 fi
7293 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7294 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7295 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7296   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7297 fi
7298
7299       if test $ac_cv_lib_nsl_gethostbyname = no; then
7300         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7301 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7302 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   ac_check_lib_save_LIBS=$LIBS
7306 LIBS="-lbsd  $LIBS"
7307 if test x$gcc_no_link = xyes; then
7308   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7310    { (exit 1); exit 1; }; }
7311 fi
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318
7319 /* Override any gcc2 internal prototype to avoid an error.  */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 /* We use char because int might match the return type of a gcc2
7324    builtin and then its argument prototype would still apply.  */
7325 char gethostbyname ();
7326 int
7327 main ()
7328 {
7329 gethostbyname ();
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336   (eval $ac_link) 2>conftest.er1
7337   ac_status=$?
7338   grep -v '^ *+' conftest.er1 >conftest.err
7339   rm -f conftest.er1
7340   cat conftest.err >&5
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } &&
7343          { ac_try='test -z "$ac_c_werror_flag"
7344                          || test ! -s conftest.err'
7345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346   (eval $ac_try) 2>&5
7347   ac_status=$?
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); }; } &&
7350          { ac_try='test -s conftest$ac_exeext'
7351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352   (eval $ac_try) 2>&5
7353   ac_status=$?
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); }; }; then
7356   ac_cv_lib_bsd_gethostbyname=yes
7357 else
7358   echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7360
7361 ac_cv_lib_bsd_gethostbyname=no
7362 fi
7363 rm -f conftest.err conftest.$ac_objext \
7364       conftest$ac_exeext conftest.$ac_ext
7365 LIBS=$ac_check_lib_save_LIBS
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7368 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7369 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7370   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7371 fi
7372
7373       fi
7374     fi
7375
7376     # lieder@skyler.mavd.honeywell.com says without -lsocket,
7377     # socket/setsockopt and other routines are undefined under SCO ODT
7378     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
7379     # on later versions), says Simon Leinen: it contains gethostby*
7380     # variants that don't use the name server (or something).  -lsocket
7381     # must be given before -lnsl if both are needed.  We assume that
7382     # if connect needs -lnsl, so does gethostbyname.
7383     echo "$as_me:$LINENO: checking for connect" >&5
7384 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7385 if test "${ac_cv_func_connect+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   if test x$gcc_no_link = xyes; then
7389   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7390 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7391    { (exit 1); exit 1; }; }
7392 fi
7393 cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7401 #define connect innocuous_connect
7402
7403 /* System header to define __stub macros and hopefully few prototypes,
7404     which can conflict with char connect (); below.
7405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7406     <limits.h> exists even on freestanding compilers.  */
7407
7408 #ifdef __STDC__
7409 # include <limits.h>
7410 #else
7411 # include <assert.h>
7412 #endif
7413
7414 #undef connect
7415
7416 /* Override any gcc2 internal prototype to avoid an error.  */
7417 #ifdef __cplusplus
7418 extern "C"
7419 {
7420 #endif
7421 /* We use char because int might match the return type of a gcc2
7422    builtin and then its argument prototype would still apply.  */
7423 char connect ();
7424 /* The GNU C library defines this for functions which it implements
7425     to always fail with ENOSYS.  Some functions are actually named
7426     something starting with __ and the normal name is an alias.  */
7427 #if defined (__stub_connect) || defined (__stub___connect)
7428 choke me
7429 #else
7430 char (*f) () = connect;
7431 #endif
7432 #ifdef __cplusplus
7433 }
7434 #endif
7435
7436 int
7437 main ()
7438 {
7439 return f != connect;
7440   ;
7441   return 0;
7442 }
7443 _ACEOF
7444 rm -f conftest.$ac_objext conftest$ac_exeext
7445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7446   (eval $ac_link) 2>conftest.er1
7447   ac_status=$?
7448   grep -v '^ *+' conftest.er1 >conftest.err
7449   rm -f conftest.er1
7450   cat conftest.err >&5
7451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452   (exit $ac_status); } &&
7453          { ac_try='test -z "$ac_c_werror_flag"
7454                          || test ! -s conftest.err'
7455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456   (eval $ac_try) 2>&5
7457   ac_status=$?
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); }; } &&
7460          { ac_try='test -s conftest$ac_exeext'
7461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462   (eval $ac_try) 2>&5
7463   ac_status=$?
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); }; }; then
7466   ac_cv_func_connect=yes
7467 else
7468   echo "$as_me: failed program was:" >&5
7469 sed 's/^/| /' conftest.$ac_ext >&5
7470
7471 ac_cv_func_connect=no
7472 fi
7473 rm -f conftest.err conftest.$ac_objext \
7474       conftest$ac_exeext conftest.$ac_ext
7475 fi
7476 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7477 echo "${ECHO_T}$ac_cv_func_connect" >&6
7478
7479     if test $ac_cv_func_connect = no; then
7480       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7481 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7482 if test "${ac_cv_lib_socket_connect+set}" = set; then
7483   echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485   ac_check_lib_save_LIBS=$LIBS
7486 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7487 if test x$gcc_no_link = xyes; then
7488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7490    { (exit 1); exit 1; }; }
7491 fi
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h.  */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h.  */
7498
7499 /* Override any gcc2 internal prototype to avoid an error.  */
7500 #ifdef __cplusplus
7501 extern "C"
7502 #endif
7503 /* We use char because int might match the return type of a gcc2
7504    builtin and then its argument prototype would still apply.  */
7505 char connect ();
7506 int
7507 main ()
7508 {
7509 connect ();
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516   (eval $ac_link) 2>conftest.er1
7517   ac_status=$?
7518   grep -v '^ *+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } &&
7523          { ac_try='test -z "$ac_c_werror_flag"
7524                          || test ! -s conftest.err'
7525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526   (eval $ac_try) 2>&5
7527   ac_status=$?
7528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529   (exit $ac_status); }; } &&
7530          { ac_try='test -s conftest$ac_exeext'
7531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7532   (eval $ac_try) 2>&5
7533   ac_status=$?
7534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7535   (exit $ac_status); }; }; then
7536   ac_cv_lib_socket_connect=yes
7537 else
7538   echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7540
7541 ac_cv_lib_socket_connect=no
7542 fi
7543 rm -f conftest.err conftest.$ac_objext \
7544       conftest$ac_exeext conftest.$ac_ext
7545 LIBS=$ac_check_lib_save_LIBS
7546 fi
7547 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7548 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7549 if test $ac_cv_lib_socket_connect = yes; then
7550   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7551 fi
7552
7553     fi
7554
7555     # Guillermo Gomez says -lposix is necessary on A/UX.
7556     echo "$as_me:$LINENO: checking for remove" >&5
7557 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7558 if test "${ac_cv_func_remove+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   if test x$gcc_no_link = xyes; then
7562   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7564    { (exit 1); exit 1; }; }
7565 fi
7566 cat >conftest.$ac_ext <<_ACEOF
7567 /* confdefs.h.  */
7568 _ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h.  */
7572 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7574 #define remove innocuous_remove
7575
7576 /* System header to define __stub macros and hopefully few prototypes,
7577     which can conflict with char remove (); below.
7578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7579     <limits.h> exists even on freestanding compilers.  */
7580
7581 #ifdef __STDC__
7582 # include <limits.h>
7583 #else
7584 # include <assert.h>
7585 #endif
7586
7587 #undef remove
7588
7589 /* Override any gcc2 internal prototype to avoid an error.  */
7590 #ifdef __cplusplus
7591 extern "C"
7592 {
7593 #endif
7594 /* We use char because int might match the return type of a gcc2
7595    builtin and then its argument prototype would still apply.  */
7596 char remove ();
7597 /* The GNU C library defines this for functions which it implements
7598     to always fail with ENOSYS.  Some functions are actually named
7599     something starting with __ and the normal name is an alias.  */
7600 #if defined (__stub_remove) || defined (__stub___remove)
7601 choke me
7602 #else
7603 char (*f) () = remove;
7604 #endif
7605 #ifdef __cplusplus
7606 }
7607 #endif
7608
7609 int
7610 main ()
7611 {
7612 return f != remove;
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619   (eval $ac_link) 2>conftest.er1
7620   ac_status=$?
7621   grep -v '^ *+' conftest.er1 >conftest.err
7622   rm -f conftest.er1
7623   cat conftest.err >&5
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } &&
7626          { ac_try='test -z "$ac_c_werror_flag"
7627                          || test ! -s conftest.err'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; } &&
7633          { ac_try='test -s conftest$ac_exeext'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; }; then
7639   ac_cv_func_remove=yes
7640 else
7641   echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_cv_func_remove=no
7645 fi
7646 rm -f conftest.err conftest.$ac_objext \
7647       conftest$ac_exeext conftest.$ac_ext
7648 fi
7649 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7650 echo "${ECHO_T}$ac_cv_func_remove" >&6
7651
7652     if test $ac_cv_func_remove = no; then
7653       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7654 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7655 if test "${ac_cv_lib_posix_remove+set}" = set; then
7656   echo $ECHO_N "(cached) $ECHO_C" >&6
7657 else
7658   ac_check_lib_save_LIBS=$LIBS
7659 LIBS="-lposix  $LIBS"
7660 if test x$gcc_no_link = xyes; then
7661   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7662 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7663    { (exit 1); exit 1; }; }
7664 fi
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671
7672 /* Override any gcc2 internal prototype to avoid an error.  */
7673 #ifdef __cplusplus
7674 extern "C"
7675 #endif
7676 /* We use char because int might match the return type of a gcc2
7677    builtin and then its argument prototype would still apply.  */
7678 char remove ();
7679 int
7680 main ()
7681 {
7682 remove ();
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7689   (eval $ac_link) 2>conftest.er1
7690   ac_status=$?
7691   grep -v '^ *+' conftest.er1 >conftest.err
7692   rm -f conftest.er1
7693   cat conftest.err >&5
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); } &&
7696          { ac_try='test -z "$ac_c_werror_flag"
7697                          || test ! -s conftest.err'
7698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699   (eval $ac_try) 2>&5
7700   ac_status=$?
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); }; } &&
7703          { ac_try='test -s conftest$ac_exeext'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; }; then
7709   ac_cv_lib_posix_remove=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 ac_cv_lib_posix_remove=no
7715 fi
7716 rm -f conftest.err conftest.$ac_objext \
7717       conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7719 fi
7720 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7721 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7722 if test $ac_cv_lib_posix_remove = yes; then
7723   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7724 fi
7725
7726     fi
7727
7728     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7729     echo "$as_me:$LINENO: checking for shmat" >&5
7730 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7731 if test "${ac_cv_func_shmat+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734   if test x$gcc_no_link = xyes; then
7735   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7737    { (exit 1); exit 1; }; }
7738 fi
7739 cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7747 #define shmat innocuous_shmat
7748
7749 /* System header to define __stub macros and hopefully few prototypes,
7750     which can conflict with char shmat (); below.
7751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7752     <limits.h> exists even on freestanding compilers.  */
7753
7754 #ifdef __STDC__
7755 # include <limits.h>
7756 #else
7757 # include <assert.h>
7758 #endif
7759
7760 #undef shmat
7761
7762 /* Override any gcc2 internal prototype to avoid an error.  */
7763 #ifdef __cplusplus
7764 extern "C"
7765 {
7766 #endif
7767 /* We use char because int might match the return type of a gcc2
7768    builtin and then its argument prototype would still apply.  */
7769 char shmat ();
7770 /* The GNU C library defines this for functions which it implements
7771     to always fail with ENOSYS.  Some functions are actually named
7772     something starting with __ and the normal name is an alias.  */
7773 #if defined (__stub_shmat) || defined (__stub___shmat)
7774 choke me
7775 #else
7776 char (*f) () = shmat;
7777 #endif
7778 #ifdef __cplusplus
7779 }
7780 #endif
7781
7782 int
7783 main ()
7784 {
7785 return f != shmat;
7786   ;
7787   return 0;
7788 }
7789 _ACEOF
7790 rm -f conftest.$ac_objext conftest$ac_exeext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7792   (eval $ac_link) 2>conftest.er1
7793   ac_status=$?
7794   grep -v '^ *+' conftest.er1 >conftest.err
7795   rm -f conftest.er1
7796   cat conftest.err >&5
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); } &&
7799          { ac_try='test -z "$ac_c_werror_flag"
7800                          || test ! -s conftest.err'
7801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802   (eval $ac_try) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; } &&
7806          { ac_try='test -s conftest$ac_exeext'
7807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808   (eval $ac_try) 2>&5
7809   ac_status=$?
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); }; }; then
7812   ac_cv_func_shmat=yes
7813 else
7814   echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7816
7817 ac_cv_func_shmat=no
7818 fi
7819 rm -f conftest.err conftest.$ac_objext \
7820       conftest$ac_exeext conftest.$ac_ext
7821 fi
7822 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7823 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7824
7825     if test $ac_cv_func_shmat = no; then
7826       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7827 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7828 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7829   echo $ECHO_N "(cached) $ECHO_C" >&6
7830 else
7831   ac_check_lib_save_LIBS=$LIBS
7832 LIBS="-lipc  $LIBS"
7833 if test x$gcc_no_link = xyes; then
7834   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7835 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7836    { (exit 1); exit 1; }; }
7837 fi
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h.  */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h.  */
7844
7845 /* Override any gcc2 internal prototype to avoid an error.  */
7846 #ifdef __cplusplus
7847 extern "C"
7848 #endif
7849 /* We use char because int might match the return type of a gcc2
7850    builtin and then its argument prototype would still apply.  */
7851 char shmat ();
7852 int
7853 main ()
7854 {
7855 shmat ();
7856   ;
7857   return 0;
7858 }
7859 _ACEOF
7860 rm -f conftest.$ac_objext conftest$ac_exeext
7861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862   (eval $ac_link) 2>conftest.er1
7863   ac_status=$?
7864   grep -v '^ *+' conftest.er1 >conftest.err
7865   rm -f conftest.er1
7866   cat conftest.err >&5
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); } &&
7869          { ac_try='test -z "$ac_c_werror_flag"
7870                          || test ! -s conftest.err'
7871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872   (eval $ac_try) 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; } &&
7876          { ac_try='test -s conftest$ac_exeext'
7877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7878   (eval $ac_try) 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; }; then
7882   ac_cv_lib_ipc_shmat=yes
7883 else
7884   echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7886
7887 ac_cv_lib_ipc_shmat=no
7888 fi
7889 rm -f conftest.err conftest.$ac_objext \
7890       conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7892 fi
7893 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7894 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7895 if test $ac_cv_lib_ipc_shmat = yes; then
7896   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7897 fi
7898
7899     fi
7900   fi
7901
7902   # Check for libraries that X11R6 Xt/Xaw programs need.
7903   ac_save_LDFLAGS=$LDFLAGS
7904   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7905   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7906   # check for ICE first), but we must link in the order -lSM -lICE or
7907   # we get undefined symbols.  So assume we have SM if we have ICE.
7908   # These have to be linked with before -lX11, unlike the other
7909   # libraries we check for below, so use a different variable.
7910   # John Interrante, Karl Berry
7911   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7912 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7913 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7914   echo $ECHO_N "(cached) $ECHO_C" >&6
7915 else
7916   ac_check_lib_save_LIBS=$LIBS
7917 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7918 if test x$gcc_no_link = xyes; then
7919   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7921    { (exit 1); exit 1; }; }
7922 fi
7923 cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h.  */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h.  */
7929
7930 /* Override any gcc2 internal prototype to avoid an error.  */
7931 #ifdef __cplusplus
7932 extern "C"
7933 #endif
7934 /* We use char because int might match the return type of a gcc2
7935    builtin and then its argument prototype would still apply.  */
7936 char IceConnectionNumber ();
7937 int
7938 main ()
7939 {
7940 IceConnectionNumber ();
7941   ;
7942   return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext conftest$ac_exeext
7946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7947   (eval $ac_link) 2>conftest.er1
7948   ac_status=$?
7949   grep -v '^ *+' conftest.er1 >conftest.err
7950   rm -f conftest.er1
7951   cat conftest.err >&5
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); } &&
7954          { ac_try='test -z "$ac_c_werror_flag"
7955                          || test ! -s conftest.err'
7956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957   (eval $ac_try) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; } &&
7961          { ac_try='test -s conftest$ac_exeext'
7962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963   (eval $ac_try) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   ac_cv_lib_ICE_IceConnectionNumber=yes
7968 else
7969   echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7971
7972 ac_cv_lib_ICE_IceConnectionNumber=no
7973 fi
7974 rm -f conftest.err conftest.$ac_objext \
7975       conftest$ac_exeext conftest.$ac_ext
7976 LIBS=$ac_check_lib_save_LIBS
7977 fi
7978 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7979 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7980 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7981   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7982 fi
7983
7984   LDFLAGS=$ac_save_LDFLAGS
7985
7986 fi
7987
7988
7989 # Determine which AWT peer libraries to build
7990 # Check whether --enable-java-awt or --disable-java-awt was given.
7991 if test "${enable_java_awt+set}" = set; then
7992   enableval="$enable_java_awt"
7993
7994 fi;
7995
7996 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7997 use_xlib_awt=""
7998 use_gtk_awt=""
7999 # The default toolkit to use is the first one specified.
8000 TOOLKIT=
8001
8002
8003 for peer in $peerlibs ; do
8004   case $peer in
8005     xlib)
8006       if test "$no_x" = yes; then
8007         echo "*** xlib peers requested but no X library available" 1>&2
8008         exit 1
8009       else
8010         use_xlib_awt="yes"
8011         if test -z "$TOOLKIT"; then
8012            TOOLKIT=gnu.awt.xlib.XToolkit
8013         fi
8014       fi
8015       ;;
8016     gtk)
8017       if test "$no_x" = yes; then
8018          echo "*** xlib peers requested but no X library available" 1>&2
8019          exit 1
8020       else
8021          use_gtk_awt=yes
8022          if test -z "$TOOLKIT"; then
8023             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8024          fi
8025          test -d jniinclude || mkdir jniinclude
8026       fi
8027       ;;
8028     no)
8029       use_xlib_awt=
8030       use_gtk_awt=
8031       break
8032       ;;
8033     *)
8034       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8035       exit 1
8036   esac
8037 done
8038
8039
8040
8041 if test "$use_xlib_awt" = yes; then
8042   XLIB_AWT_TRUE=
8043   XLIB_AWT_FALSE='#'
8044 else
8045   XLIB_AWT_TRUE='#'
8046   XLIB_AWT_FALSE=
8047 fi
8048
8049
8050
8051 if test "$use_gtk_awt" = yes; then
8052   GTK_AWT_TRUE=
8053   GTK_AWT_FALSE='#'
8054 else
8055   GTK_AWT_TRUE='#'
8056   GTK_AWT_FALSE=
8057 fi
8058
8059
8060 # determine whether to enable the cairo GTK Graphics2D backend
8061 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8062 if test "${enable_gtk_cairo+set}" = set; then
8063   enableval="$enable_gtk_cairo"
8064
8065 fi;
8066
8067
8068 if test "x${enable_gtk_cairo}" = xyes; then
8069   GTK_CAIRO_TRUE=
8070   GTK_CAIRO_FALSE='#'
8071 else
8072   GTK_CAIRO_TRUE='#'
8073   GTK_CAIRO_FALSE=
8074 fi
8075
8076 if test "x${enable_gtk_cairo}" = xyes
8077 then
8078
8079   succeeded=no
8080
8081   if test -z "$PKG_CONFIG"; then
8082     # Extract the first word of "pkg-config", so it can be a program name with args.
8083 set dummy pkg-config; ac_word=$2
8084 echo "$as_me:$LINENO: checking for $ac_word" >&5
8085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8086 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8087   echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089   case $PKG_CONFIG in
8090   [\\/]* | ?:[\\/]*)
8091   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8092   ;;
8093   *)
8094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 for as_dir in $PATH
8096 do
8097   IFS=$as_save_IFS
8098   test -z "$as_dir" && as_dir=.
8099   for ac_exec_ext in '' $ac_executable_extensions; do
8100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8101     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103     break 2
8104   fi
8105 done
8106 done
8107
8108   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8109   ;;
8110 esac
8111 fi
8112 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8113
8114 if test -n "$PKG_CONFIG"; then
8115   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8116 echo "${ECHO_T}$PKG_CONFIG" >&6
8117 else
8118   echo "$as_me:$LINENO: result: no" >&5
8119 echo "${ECHO_T}no" >&6
8120 fi
8121
8122   fi
8123
8124   if test "$PKG_CONFIG" = "no" ; then
8125      echo "*** The pkg-config script could not be found. Make sure it is"
8126      echo "*** in your path, or set the PKG_CONFIG environment variable"
8127      echo "*** to the full path to pkg-config."
8128      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8129   else
8130      PKG_CONFIG_MIN_VERSION=0.9.0
8131      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8132         echo "$as_me:$LINENO: checking for cairo" >&5
8133 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8134
8135         if $PKG_CONFIG --exists "cairo" ; then
8136             echo "$as_me:$LINENO: result: yes" >&5
8137 echo "${ECHO_T}yes" >&6
8138             succeeded=yes
8139
8140             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8141 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8142             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8143             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8144 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8145
8146             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8147 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8148             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8149             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8150 echo "${ECHO_T}$CAIRO_LIBS" >&6
8151         else
8152             CAIRO_CFLAGS=""
8153             CAIRO_LIBS=""
8154             ## If we have a custom action on failure, don't print errors, but
8155             ## do set a variable so people can do so.
8156             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8157             echo $CAIRO_PKG_ERRORS
8158         fi
8159
8160
8161
8162      else
8163         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8164         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8165      fi
8166   fi
8167
8168   if test $succeeded = yes; then
8169      :
8170   else
8171      { { 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
8172 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;}
8173    { (exit 1); exit 1; }; }
8174   fi
8175
8176
8177   succeeded=no
8178
8179   if test -z "$PKG_CONFIG"; then
8180     # Extract the first word of "pkg-config", so it can be a program name with args.
8181 set dummy pkg-config; ac_word=$2
8182 echo "$as_me:$LINENO: checking for $ac_word" >&5
8183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8184 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   case $PKG_CONFIG in
8188   [\\/]* | ?:[\\/]*)
8189   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8190   ;;
8191   *)
8192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197   for ac_exec_ext in '' $ac_executable_extensions; do
8198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204 done
8205
8206   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8207   ;;
8208 esac
8209 fi
8210 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8211
8212 if test -n "$PKG_CONFIG"; then
8213   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8214 echo "${ECHO_T}$PKG_CONFIG" >&6
8215 else
8216   echo "$as_me:$LINENO: result: no" >&5
8217 echo "${ECHO_T}no" >&6
8218 fi
8219
8220   fi
8221
8222   if test "$PKG_CONFIG" = "no" ; then
8223      echo "*** The pkg-config script could not be found. Make sure it is"
8224      echo "*** in your path, or set the PKG_CONFIG environment variable"
8225      echo "*** to the full path to pkg-config."
8226      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8227   else
8228      PKG_CONFIG_MIN_VERSION=0.9.0
8229      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8230         echo "$as_me:$LINENO: checking for pangoft2" >&5
8231 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8232
8233         if $PKG_CONFIG --exists "pangoft2" ; then
8234             echo "$as_me:$LINENO: result: yes" >&5
8235 echo "${ECHO_T}yes" >&6
8236             succeeded=yes
8237
8238             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8239 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8240             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8241             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8242 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8243
8244             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8245 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8246             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8247             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8248 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8249         else
8250             PANGOFT2_CFLAGS=""
8251             PANGOFT2_LIBS=""
8252             ## If we have a custom action on failure, don't print errors, but
8253             ## do set a variable so people can do so.
8254             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8255             echo $PANGOFT2_PKG_ERRORS
8256         fi
8257
8258
8259
8260      else
8261         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8262         echo "*** See http://www.freedesktop.org/software/pkgconfig"
8263      fi
8264   fi
8265
8266   if test $succeeded = yes; then
8267      :
8268   else
8269      { { 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
8270 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;}
8271    { (exit 1); exit 1; }; }
8272   fi
8273
8274 fi
8275
8276
8277
8278
8279
8280 # FIXME: this should be _libs on some hosts.
8281 libsubdir=.libs
8282
8283 # Allow the GC to be disabled.  Can be useful when debugging.
8284 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8285 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8286 # Check whether --enable-java-gc or --disable-java-gc was given.
8287 if test "${enable_java_gc+set}" = set; then
8288   enableval="$enable_java_gc"
8289   GC=$enableval
8290 else
8291   GC=boehm
8292 fi;
8293 GCLIBS=
8294 GCINCS=
8295 GCDEPS=
8296 GCSPEC=
8297 JC1GCSPEC=
8298 GCTESTSPEC=
8299 case "$GC" in
8300  boehm)
8301     echo "$as_me:$LINENO: result: boehm" >&5
8302 echo "${ECHO_T}boehm" >&6
8303     GCLIBS=../boehm-gc/libgcjgc_convenience.la
8304     JC1GCSPEC='-fuse-boehm-gc'
8305     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8306     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8307     GCOBJS=boehm.lo
8308     GCHDR=boehm-gc.h
8309     # The POSIX thread support needs to know this.
8310
8311 cat >>confdefs.h <<\_ACEOF
8312 #define HAVE_BOEHM_GC 1
8313 _ACEOF
8314
8315     ;;
8316  no)
8317     echo "$as_me:$LINENO: result: none" >&5
8318 echo "${ECHO_T}none" >&6
8319     GCHDR=no-gc.h
8320     ;;
8321  *)
8322     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8323 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8324    { (exit 1); exit 1; }; }
8325     ;;
8326 esac
8327
8328
8329
8330
8331
8332
8333           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8334
8335
8336
8337 if test "$GC" = boehm; then
8338   USING_BOEHMGC_TRUE=
8339   USING_BOEHMGC_FALSE='#'
8340 else
8341   USING_BOEHMGC_TRUE='#'
8342   USING_BOEHMGC_FALSE=
8343 fi
8344
8345
8346
8347 if test "$GC" = no; then
8348   USING_NOGC_TRUE=
8349   USING_NOGC_FALSE='#'
8350 else
8351   USING_NOGC_TRUE='#'
8352   USING_NOGC_FALSE=
8353 fi
8354
8355
8356
8357 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8358 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8359 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8360 echo "$as_me:$LINENO: result: $THREADS" >&5
8361 echo "${ECHO_T}$THREADS" >&6
8362
8363 case "$THREADS" in
8364  no | none | single)
8365     THREADS=none
8366     ;;
8367  posix | posix95 | pthreads)
8368     THREADS=posix
8369     case "$host" in
8370      *-*-linux*)
8371
8372 cat >>confdefs.h <<\_ACEOF
8373 #define LINUX_THREADS 1
8374 _ACEOF
8375
8376         ;;
8377     esac
8378     ;;
8379  win32)
8380     ;;
8381  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8382     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8383 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8384    { (exit 1); exit 1; }; }
8385     ;;
8386  *)
8387     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8388 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8389    { (exit 1); exit 1; }; }
8390     ;;
8391 esac
8392
8393 THREADCXXFLAGS=
8394 THREADLDFLAGS=
8395 THREADLIBS=
8396 THREADINCS=
8397 THREADDEPS=
8398 THREADH=
8399 THREADSPEC=
8400 case "$THREADS" in
8401  posix)
8402     case "$host" in
8403      *-*-cygwin*)
8404         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
8405         ;;
8406      *-*-freebsd[1234]*)
8407         # Before FreeBSD 5, it didn't have -lpthread (or any library which
8408         # merely adds pthread_* functions) but it does have a -pthread switch
8409         # which is required at link-time to select -lc_r *instead* of -lc.
8410         THREADLDFLAGS=-pthread
8411         # Don't set THREADSPEC here as might be expected since -pthread is
8412         # not processed when found within a spec file, it must come from
8413         # the command line.  For now, the user must provide the -pthread
8414         # switch to link code compiled with gcj.  In future, consider adding
8415         # support for weak references to pthread_* functions ala gthr.h API.
8416         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8417         ;;
8418      *-*-freebsd*)
8419         # FreeBSD 5 implements a model much closer to other modern UNIX
8420         # which support threads.  However, it still does not support
8421         # -lpthread.
8422         THREADLDFLAGS=-pthread
8423         THREADSPEC=-lc_r
8424         ;;
8425      alpha*-dec-osf*)
8426         THREADCXXFLAGS=-pthread
8427         # boehm-gc needs some functions from librt, so link that too.
8428         THREADLIBS='-lpthread -lrt'
8429         THREADSPEC='-lpthread -lrt'
8430         ;;
8431      *)
8432         THREADLIBS=-lpthread
8433         THREADSPEC=-lpthread
8434         ;;
8435     esac
8436     THREADH=posix-threads.h
8437     # MIT pthreads doesn't seem to have the mutexattr functions.
8438     # But for now we don't check for it.  We just assume you aren't
8439     # using MIT pthreads.
8440
8441 cat >>confdefs.h <<\_ACEOF
8442 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8443 _ACEOF
8444
8445
8446     # If we're using the Boehm GC, then we happen to know that it
8447     # defines _REENTRANT, so we don't bother.  Eww.
8448     if test "$GC" != boehm; then
8449
8450 cat >>confdefs.h <<\_ACEOF
8451 #define _REENTRANT 1
8452 _ACEOF
8453
8454     fi
8455
8456 cat >>confdefs.h <<\_ACEOF
8457 #define _POSIX_PTHREAD_SEMANTICS 1
8458 _ACEOF
8459
8460     ;;
8461
8462  win32)
8463     THREADH=win32-threads.h
8464     ;;
8465
8466  none)
8467     THREADH=no-threads.h
8468     ;;
8469 esac
8470           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480 if test "$THREADS" = posix; then
8481   USING_POSIX_THREADS_TRUE=
8482   USING_POSIX_THREADS_FALSE='#'
8483 else
8484   USING_POSIX_THREADS_TRUE='#'
8485   USING_POSIX_THREADS_FALSE=
8486 fi
8487
8488
8489
8490 if test "$THREADS" = win32; then
8491   USING_WIN32_THREADS_TRUE=
8492   USING_WIN32_THREADS_FALSE='#'
8493 else
8494   USING_WIN32_THREADS_TRUE='#'
8495   USING_WIN32_THREADS_FALSE=
8496 fi
8497
8498
8499
8500 if test "$THREADS" = none; then
8501   USING_NO_THREADS_TRUE=
8502   USING_NO_THREADS_FALSE='#'
8503 else
8504   USING_NO_THREADS_TRUE='#'
8505   USING_NO_THREADS_FALSE=
8506 fi
8507
8508
8509 if test -d sysdep; then true; else mkdir sysdep; fi
8510           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8511
8512           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8513
8514
8515 HASH_SYNC_SPEC=
8516 # Hash synchronization is only useful with posix threads right now.
8517 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8518    HASH_SYNC_SPEC=-fhash-synchronization
8519
8520 cat >>confdefs.h <<\_ACEOF
8521 #define JV_HASH_SYNCHRONIZATION 1
8522 _ACEOF
8523
8524 fi
8525
8526
8527
8528
8529 if test "$GCC" = yes; then
8530   USING_GCC_TRUE=
8531   USING_GCC_FALSE='#'
8532 else
8533   USING_GCC_TRUE='#'
8534   USING_GCC_FALSE=
8535 fi
8536
8537
8538 # We're in the tree with gcc, and need to include some of its headers.
8539 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8540
8541 if test "x${with_newlib}" = "xyes"; then
8542    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
8543    # may not work correctly, because the compiler may not be able to
8544    # link executables.
8545
8546    # We assume newlib.  This lets us hard-code the functions we know
8547    # we'll have.
8548
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_MEMMOVE 1
8551 _ACEOF
8552
8553
8554 cat >>confdefs.h <<\_ACEOF
8555 #define HAVE_MEMCPY 1
8556 _ACEOF
8557
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define HAVE_STRERROR 1
8561 _ACEOF
8562
8563
8564 cat >>confdefs.h <<\_ACEOF
8565 #define HAVE_TIME 1
8566 _ACEOF
8567
8568
8569 cat >>confdefs.h <<\_ACEOF
8570 #define HAVE_GMTIME_R 1
8571 _ACEOF
8572
8573
8574 cat >>confdefs.h <<\_ACEOF
8575 #define HAVE_LOCALTIME_R 1
8576 _ACEOF
8577
8578
8579 cat >>confdefs.h <<\_ACEOF
8580 #define HAVE_USLEEP_DECL 1
8581 _ACEOF
8582
8583    # This is only for POSIX threads.
8584
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8587 _ACEOF
8588
8589    # We also assume we are using gcc, which provides alloca.
8590    cat >>confdefs.h <<\_ACEOF
8591 #define HAVE_ALLOCA 1
8592 _ACEOF
8593
8594
8595    # Assume we do not have getuid and friends.
8596
8597 cat >>confdefs.h <<\_ACEOF
8598 #define NO_GETUID 1
8599 _ACEOF
8600
8601    PLATFORMNET=NoNet
8602 else
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8636                    gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8637                    access stat mkdir rename rmdir unlink realpath utime chmod \
8638                    nl_langinfo setlocale \
8639                    inet_pton uname inet_ntoa \
8640                    fork execvp pipe sigaction ftruncate
8641 do
8642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643 echo "$as_me:$LINENO: checking for $ac_func" >&5
8644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8645 if eval "test \"\${$as_ac_var+set}\" = set"; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   if test x$gcc_no_link = xyes; then
8649   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8651    { (exit 1); exit 1; }; }
8652 fi
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8661 #define $ac_func innocuous_$ac_func
8662
8663 /* System header to define __stub macros and hopefully few prototypes,
8664     which can conflict with char $ac_func (); below.
8665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666     <limits.h> exists even on freestanding compilers.  */
8667
8668 #ifdef __STDC__
8669 # include <limits.h>
8670 #else
8671 # include <assert.h>
8672 #endif
8673
8674 #undef $ac_func
8675
8676 /* Override any gcc2 internal prototype to avoid an error.  */
8677 #ifdef __cplusplus
8678 extern "C"
8679 {
8680 #endif
8681 /* We use char because int might match the return type of a gcc2
8682    builtin and then its argument prototype would still apply.  */
8683 char $ac_func ();
8684 /* The GNU C library defines this for functions which it implements
8685     to always fail with ENOSYS.  Some functions are actually named
8686     something starting with __ and the normal name is an alias.  */
8687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8688 choke me
8689 #else
8690 char (*f) () = $ac_func;
8691 #endif
8692 #ifdef __cplusplus
8693 }
8694 #endif
8695
8696 int
8697 main ()
8698 {
8699 return f != $ac_func;
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706   (eval $ac_link) 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag"
8714                          || test ! -s conftest.err'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; } &&
8720          { ac_try='test -s conftest$ac_exeext'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; }; then
8726   eval "$as_ac_var=yes"
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 eval "$as_ac_var=no"
8732 fi
8733 rm -f conftest.err conftest.$ac_objext \
8734       conftest$ac_exeext conftest.$ac_ext
8735 fi
8736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8738 if test `eval echo '${'$as_ac_var'}'` = yes; then
8739   cat >>confdefs.h <<_ACEOF
8740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8741 _ACEOF
8742
8743 fi
8744 done
8745
8746
8747
8748 for ac_func in inet_aton inet_addr
8749 do
8750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8751 echo "$as_me:$LINENO: checking for $ac_func" >&5
8752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8753 if eval "test \"\${$as_ac_var+set}\" = set"; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756   if test x$gcc_no_link = xyes; then
8757   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759    { (exit 1); exit 1; }; }
8760 fi
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8769 #define $ac_func innocuous_$ac_func
8770
8771 /* System header to define __stub macros and hopefully few prototypes,
8772     which can conflict with char $ac_func (); below.
8773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774     <limits.h> exists even on freestanding compilers.  */
8775
8776 #ifdef __STDC__
8777 # include <limits.h>
8778 #else
8779 # include <assert.h>
8780 #endif
8781
8782 #undef $ac_func
8783
8784 /* Override any gcc2 internal prototype to avoid an error.  */
8785 #ifdef __cplusplus
8786 extern "C"
8787 {
8788 #endif
8789 /* We use char because int might match the return type of a gcc2
8790    builtin and then its argument prototype would still apply.  */
8791 char $ac_func ();
8792 /* The GNU C library defines this for functions which it implements
8793     to always fail with ENOSYS.  Some functions are actually named
8794     something starting with __ and the normal name is an alias.  */
8795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8796 choke me
8797 #else
8798 char (*f) () = $ac_func;
8799 #endif
8800 #ifdef __cplusplus
8801 }
8802 #endif
8803
8804 int
8805 main ()
8806 {
8807 return f != $ac_func;
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814   (eval $ac_link) 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } &&
8821          { ac_try='test -z "$ac_c_werror_flag"
8822                          || test ! -s conftest.err'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; } &&
8828          { ac_try='test -s conftest$ac_exeext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   eval "$as_ac_var=yes"
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 eval "$as_ac_var=no"
8840 fi
8841 rm -f conftest.err conftest.$ac_objext \
8842       conftest$ac_exeext conftest.$ac_ext
8843 fi
8844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8846 if test `eval echo '${'$as_ac_var'}'` = yes; then
8847   cat >>confdefs.h <<_ACEOF
8848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8849 _ACEOF
8850  break
8851 fi
8852 done
8853
8854    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8856 if test "${ac_cv_header_stdc+set}" = set; then
8857   echo $ECHO_N "(cached) $ECHO_C" >&6
8858 else
8859   cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h.  */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h.  */
8865 #include <stdlib.h>
8866 #include <stdarg.h>
8867 #include <string.h>
8868 #include <float.h>
8869
8870 int
8871 main ()
8872 {
8873
8874   ;
8875   return 0;
8876 }
8877 _ACEOF
8878 rm -f conftest.$ac_objext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8880   (eval $ac_compile) 2>conftest.er1
8881   ac_status=$?
8882   grep -v '^ *+' conftest.er1 >conftest.err
8883   rm -f conftest.er1
8884   cat conftest.err >&5
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); } &&
8887          { ac_try='test -z "$ac_c_werror_flag"
8888                          || test ! -s conftest.err'
8889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890   (eval $ac_try) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; } &&
8894          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8900   ac_cv_header_stdc=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 ac_cv_header_stdc=no
8906 fi
8907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8908
8909 if test $ac_cv_header_stdc = yes; then
8910   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8911   cat >conftest.$ac_ext <<_ACEOF
8912 /* confdefs.h.  */
8913 _ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h.  */
8917 #include <string.h>
8918
8919 _ACEOF
8920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8921   $EGREP "memchr" >/dev/null 2>&1; then
8922   :
8923 else
8924   ac_cv_header_stdc=no
8925 fi
8926 rm -f conftest*
8927
8928 fi
8929
8930 if test $ac_cv_header_stdc = yes; then
8931   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8932   cat >conftest.$ac_ext <<_ACEOF
8933 /* confdefs.h.  */
8934 _ACEOF
8935 cat confdefs.h >>conftest.$ac_ext
8936 cat >>conftest.$ac_ext <<_ACEOF
8937 /* end confdefs.h.  */
8938 #include <stdlib.h>
8939
8940 _ACEOF
8941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8942   $EGREP "free" >/dev/null 2>&1; then
8943   :
8944 else
8945   ac_cv_header_stdc=no
8946 fi
8947 rm -f conftest*
8948
8949 fi
8950
8951 if test $ac_cv_header_stdc = yes; then
8952   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8953   if test "$cross_compiling" = yes; then
8954   :
8955 else
8956   cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 #include <ctype.h>
8963 #if ((' ' & 0x0FF) == 0x020)
8964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8966 #else
8967 # define ISLOWER(c) \
8968                    (('a' <= (c) && (c) <= 'i') \
8969                      || ('j' <= (c) && (c) <= 'r') \
8970                      || ('s' <= (c) && (c) <= 'z'))
8971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8972 #endif
8973
8974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8975 int
8976 main ()
8977 {
8978   int i;
8979   for (i = 0; i < 256; i++)
8980     if (XOR (islower (i), ISLOWER (i))
8981         || toupper (i) != TOUPPER (i))
8982       exit(2);
8983   exit (0);
8984 }
8985 _ACEOF
8986 rm -f conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988   (eval $ac_link) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993   (eval $ac_try) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); }; }; then
8997   :
8998 else
8999   echo "$as_me: program exited with status $ac_status" >&5
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 ( exit $ac_status )
9004 ac_cv_header_stdc=no
9005 fi
9006 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9007 fi
9008 fi
9009 fi
9010 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9011 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9012 if test $ac_cv_header_stdc = yes; then
9013
9014 cat >>confdefs.h <<\_ACEOF
9015 #define STDC_HEADERS 1
9016 _ACEOF
9017
9018 fi
9019
9020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9031                   inttypes.h stdint.h unistd.h
9032 do
9033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9034 echo "$as_me:$LINENO: checking for $ac_header" >&5
9035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9037   echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039   cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h.  */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h.  */
9045 $ac_includes_default
9046
9047 #include <$ac_header>
9048 _ACEOF
9049 rm -f conftest.$ac_objext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9051   (eval $ac_compile) 2>conftest.er1
9052   ac_status=$?
9053   grep -v '^ *+' conftest.er1 >conftest.err
9054   rm -f conftest.er1
9055   cat conftest.err >&5
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -z "$ac_c_werror_flag"
9059                          || test ! -s conftest.err'
9060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061   (eval $ac_try) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); }; } &&
9065          { ac_try='test -s conftest.$ac_objext'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; }; then
9071   eval "$as_ac_Header=yes"
9072 else
9073   echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 eval "$as_ac_Header=no"
9077 fi
9078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9079 fi
9080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9083   cat >>confdefs.h <<_ACEOF
9084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9085 _ACEOF
9086
9087 fi
9088
9089 done
9090
9091
9092
9093
9094
9095 for ac_header in execinfo.h unistd.h dlfcn.h
9096 do
9097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9099   echo "$as_me:$LINENO: checking for $ac_header" >&5
9100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 fi
9104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9106 else
9107   # Is the header compilable?
9108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h.  */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h.  */
9116 $ac_includes_default
9117 #include <$ac_header>
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121   (eval $ac_compile) 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -z "$ac_c_werror_flag"
9129                          || test ! -s conftest.err'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; } &&
9135          { ac_try='test -s conftest.$ac_objext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   ac_header_compiler=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 ac_header_compiler=no
9147 fi
9148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9150 echo "${ECHO_T}$ac_header_compiler" >&6
9151
9152 # Is the header present?
9153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h.  */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h.  */
9161 #include <$ac_header>
9162 _ACEOF
9163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9164   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9165   ac_status=$?
9166   grep -v '^ *+' conftest.er1 >conftest.err
9167   rm -f conftest.er1
9168   cat conftest.err >&5
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); } >/dev/null; then
9171   if test -s conftest.err; then
9172     ac_cpp_err=$ac_c_preproc_warn_flag
9173     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9174   else
9175     ac_cpp_err=
9176   fi
9177 else
9178   ac_cpp_err=yes
9179 fi
9180 if test -z "$ac_cpp_err"; then
9181   ac_header_preproc=yes
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186   ac_header_preproc=no
9187 fi
9188 rm -f conftest.err conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9190 echo "${ECHO_T}$ac_header_preproc" >&6
9191
9192 # So?  What about this header?
9193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9194   yes:no: )
9195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9199     ac_header_preproc=yes
9200     ;;
9201   no:yes:* )
9202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9214     (
9215       cat <<\_ASBOX
9216 ## ---------------------------------- ##
9217 ## Report this to the libjava lists.  ##
9218 ## ---------------------------------- ##
9219 _ASBOX
9220     ) |
9221       sed "s/^/$as_me: WARNING:     /" >&2
9222     ;;
9223 esac
9224 echo "$as_me:$LINENO: checking for $ac_header" >&5
9225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   eval "$as_ac_Header=\$ac_header_preproc"
9230 fi
9231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9233
9234 fi
9235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9236   cat >>confdefs.h <<_ACEOF
9237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9238 _ACEOF
9239
9240 fi
9241
9242 done
9243
9244    echo "$as_me:$LINENO: checking for backtrace" >&5
9245 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9246 if test "${ac_cv_func_backtrace+set}" = set; then
9247   echo $ECHO_N "(cached) $ECHO_C" >&6
9248 else
9249   if test x$gcc_no_link = xyes; then
9250   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9251 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9252    { (exit 1); exit 1; }; }
9253 fi
9254 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h.  */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h.  */
9260 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9262 #define backtrace innocuous_backtrace
9263
9264 /* System header to define __stub macros and hopefully few prototypes,
9265     which can conflict with char backtrace (); below.
9266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9267     <limits.h> exists even on freestanding compilers.  */
9268
9269 #ifdef __STDC__
9270 # include <limits.h>
9271 #else
9272 # include <assert.h>
9273 #endif
9274
9275 #undef backtrace
9276
9277 /* Override any gcc2 internal prototype to avoid an error.  */
9278 #ifdef __cplusplus
9279 extern "C"
9280 {
9281 #endif
9282 /* We use char because int might match the return type of a gcc2
9283    builtin and then its argument prototype would still apply.  */
9284 char backtrace ();
9285 /* The GNU C library defines this for functions which it implements
9286     to always fail with ENOSYS.  Some functions are actually named
9287     something starting with __ and the normal name is an alias.  */
9288 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9289 choke me
9290 #else
9291 char (*f) () = backtrace;
9292 #endif
9293 #ifdef __cplusplus
9294 }
9295 #endif
9296
9297 int
9298 main ()
9299 {
9300 return f != backtrace;
9301   ;
9302   return 0;
9303 }
9304 _ACEOF
9305 rm -f conftest.$ac_objext conftest$ac_exeext
9306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9307   (eval $ac_link) 2>conftest.er1
9308   ac_status=$?
9309   grep -v '^ *+' conftest.er1 >conftest.err
9310   rm -f conftest.er1
9311   cat conftest.err >&5
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } &&
9314          { ac_try='test -z "$ac_c_werror_flag"
9315                          || test ! -s conftest.err'
9316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317   (eval $ac_try) 2>&5
9318   ac_status=$?
9319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320   (exit $ac_status); }; } &&
9321          { ac_try='test -s conftest$ac_exeext'
9322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323   (eval $ac_try) 2>&5
9324   ac_status=$?
9325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326   (exit $ac_status); }; }; then
9327   ac_cv_func_backtrace=yes
9328 else
9329   echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 ac_cv_func_backtrace=no
9333 fi
9334 rm -f conftest.err conftest.$ac_objext \
9335       conftest$ac_exeext conftest.$ac_ext
9336 fi
9337 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9338 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9339 if test $ac_cv_func_backtrace = yes; then
9340
9341      case "$host" in
9342        ia64-*-linux*)
9343          # Has broken backtrace()
9344          ;;
9345        mips*-*-linux*)
9346          # Has broken backtrace(), but we supply our own.
9347          if test -d sysdep; then true; else mkdir -p sysdep; fi
9348          supply_backtrace=yes
9349
9350 cat >>confdefs.h <<\_ACEOF
9351 #define HAVE_BACKTRACE 1
9352 _ACEOF
9353
9354          ;;
9355        *)
9356
9357 cat >>confdefs.h <<\_ACEOF
9358 #define HAVE_BACKTRACE 1
9359 _ACEOF
9360
9361          ;;
9362      esac
9363
9364 else
9365
9366      case "$host" in
9367        *mingw*)
9368          # Has backtrace() defined in libgcj itself
9369
9370 cat >>confdefs.h <<\_ACEOF
9371 #define HAVE_BACKTRACE 1
9372 _ACEOF
9373
9374          ;;
9375      esac
9376
9377 fi
9378
9379
9380    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9381 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9382 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   ac_check_lib_save_LIBS=$LIBS
9386 LIBS="-ldl  $LIBS"
9387 if test x$gcc_no_link = xyes; then
9388   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9389 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9390    { (exit 1); exit 1; }; }
9391 fi
9392 cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398
9399 /* Override any gcc2 internal prototype to avoid an error.  */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 /* We use char because int might match the return type of a gcc2
9404    builtin and then its argument prototype would still apply.  */
9405 char dladdr ();
9406 int
9407 main ()
9408 {
9409 dladdr ();
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416   (eval $ac_link) 2>conftest.er1
9417   ac_status=$?
9418   grep -v '^ *+' conftest.er1 >conftest.err
9419   rm -f conftest.er1
9420   cat conftest.err >&5
9421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422   (exit $ac_status); } &&
9423          { ac_try='test -z "$ac_c_werror_flag"
9424                          || test ! -s conftest.err'
9425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426   (eval $ac_try) 2>&5
9427   ac_status=$?
9428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429   (exit $ac_status); }; } &&
9430          { ac_try='test -s conftest$ac_exeext'
9431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; }; then
9436   ac_cv_lib_dl_dladdr=yes
9437 else
9438   echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9440
9441 ac_cv_lib_dl_dladdr=no
9442 fi
9443 rm -f conftest.err conftest.$ac_objext \
9444       conftest$ac_exeext conftest.$ac_ext
9445 LIBS=$ac_check_lib_save_LIBS
9446 fi
9447 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9448 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9449 if test $ac_cv_lib_dl_dladdr = yes; then
9450
9451      if test "x${disable_dladdr}" = "xyes"; then
9452        #Broken dladdr().
9453        true
9454      else
9455
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_DLADDR 1
9458 _ACEOF
9459
9460      fi
9461
9462 fi
9463
9464    if test x"$build" = x"$host"; then
9465      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9466 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9467 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9468   echo $ECHO_N "(cached) $ECHO_C" >&6
9469 else
9470   test "$cross_compiling" = yes &&
9471   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9472 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9473    { (exit 1); exit 1; }; }
9474 if test -r "/proc/self/exe"; then
9475   ac_cv_file__proc_self_exe=yes
9476 else
9477   ac_cv_file__proc_self_exe=no
9478 fi
9479 fi
9480 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9481 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9482 if test $ac_cv_file__proc_self_exe = yes; then
9483
9484 cat >>confdefs.h <<_ACEOF
9485 #define HAVE__PROC_SELF_EXE 1
9486 _ACEOF
9487
9488
9489
9490 cat >>confdefs.h <<\_ACEOF
9491 #define HAVE_PROC_SELF_EXE 1
9492 _ACEOF
9493
9494 fi
9495
9496    else
9497      case $host in
9498      *-linux*)
9499
9500 cat >>confdefs.h <<\_ACEOF
9501 #define HAVE_PROC_SELF_EXE 1
9502 _ACEOF
9503
9504        ;;
9505      esac
9506    fi
9507
9508
9509       if test "X$prefix" = "XNONE"; then
9510     acl_final_prefix="$ac_default_prefix"
9511   else
9512     acl_final_prefix="$prefix"
9513   fi
9514   if test "X$exec_prefix" = "XNONE"; then
9515     acl_final_exec_prefix='${prefix}'
9516   else
9517     acl_final_exec_prefix="$exec_prefix"
9518   fi
9519   acl_save_prefix="$prefix"
9520   prefix="$acl_final_prefix"
9521   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9522   prefix="$acl_save_prefix"
9523
9524
9525 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9526 if test "${with_gnu_ld+set}" = set; then
9527   withval="$with_gnu_ld"
9528   test "$withval" = no || with_gnu_ld=yes
9529 else
9530   with_gnu_ld=no
9531 fi;
9532 # Prepare PATH_SEPARATOR.
9533 # The user is always right.
9534 if test "${PATH_SEPARATOR+set}" != set; then
9535   echo "#! /bin/sh" >conf$$.sh
9536   echo  "exit 0"   >>conf$$.sh
9537   chmod +x conf$$.sh
9538   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9539     PATH_SEPARATOR=';'
9540   else
9541     PATH_SEPARATOR=:
9542   fi
9543   rm -f conf$$.sh
9544 fi
9545 ac_prog=ld
9546 if test "$GCC" = yes; then
9547   # Check if gcc -print-prog-name=ld gives a path.
9548   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9549 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9550   case $host in
9551   *-*-mingw*)
9552     # gcc leaves a trailing carriage return which upsets mingw
9553     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9554   *)
9555     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9556   esac
9557   case $ac_prog in
9558     # Accept absolute paths.
9559     [\\/]* | [A-Za-z]:[\\/]*)
9560       re_direlt='/[^/][^/]*/\.\./'
9561       # Canonicalize the path of ld
9562       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9563       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9564         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9565       done
9566       test -z "$LD" && LD="$ac_prog"
9567       ;;
9568   "")
9569     # If it fails, then pretend we aren't using GCC.
9570     ac_prog=ld
9571     ;;
9572   *)
9573     # If it is relative, then search for the first ld in PATH.
9574     with_gnu_ld=unknown
9575     ;;
9576   esac
9577 elif test "$with_gnu_ld" = yes; then
9578   echo "$as_me:$LINENO: checking for GNU ld" >&5
9579 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9580 else
9581   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9582 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9583 fi
9584 if test "${acl_cv_path_LD+set}" = set; then
9585   echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587   if test -z "$LD"; then
9588   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9589   for ac_dir in $PATH; do
9590     test -z "$ac_dir" && ac_dir=.
9591     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9592       acl_cv_path_LD="$ac_dir/$ac_prog"
9593       # Check to see if the program is GNU ld.  I'd rather use --version,
9594       # but apparently some GNU ld's only accept -v.
9595       # Break only if it was the GNU/non-GNU ld that we prefer.
9596       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9597         test "$with_gnu_ld" != no && break
9598       else
9599         test "$with_gnu_ld" != yes && break
9600       fi
9601     fi
9602   done
9603   IFS="$ac_save_ifs"
9604 else
9605   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9606 fi
9607 fi
9608
9609 LD="$acl_cv_path_LD"
9610 if test -n "$LD"; then
9611   echo "$as_me:$LINENO: result: $LD" >&5
9612 echo "${ECHO_T}$LD" >&6
9613 else
9614   echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6
9616 fi
9617 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9618 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9619    { (exit 1); exit 1; }; }
9620 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9621 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9622 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9623   echo $ECHO_N "(cached) $ECHO_C" >&6
9624 else
9625   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9626 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9627   acl_cv_prog_gnu_ld=yes
9628 else
9629   acl_cv_prog_gnu_ld=no
9630 fi
9631 fi
9632 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9633 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9634 with_gnu_ld=$acl_cv_prog_gnu_ld
9635
9636
9637
9638                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9639 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9640 if test "${acl_cv_rpath+set}" = set; then
9641   echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643
9644     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9645     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9646     . ./conftest.sh
9647     rm -f ./conftest.sh
9648     acl_cv_rpath=done
9649
9650 fi
9651 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9652 echo "${ECHO_T}$acl_cv_rpath" >&6
9653   wl="$acl_cv_wl"
9654   libext="$acl_cv_libext"
9655   shlibext="$acl_cv_shlibext"
9656   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9657   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9658   hardcode_direct="$acl_cv_hardcode_direct"
9659   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9660     # Check whether --enable-rpath or --disable-rpath was given.
9661 if test "${enable_rpath+set}" = set; then
9662   enableval="$enable_rpath"
9663   :
9664 else
9665   enable_rpath=yes
9666 fi;
9667
9668
9669
9670
9671
9672
9673
9674     use_additional=yes
9675
9676   acl_save_prefix="$prefix"
9677   prefix="$acl_final_prefix"
9678   acl_save_exec_prefix="$exec_prefix"
9679   exec_prefix="$acl_final_exec_prefix"
9680
9681     eval additional_includedir=\"$includedir\"
9682     eval additional_libdir=\"$libdir\"
9683
9684   exec_prefix="$acl_save_exec_prefix"
9685   prefix="$acl_save_prefix"
9686
9687
9688 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9689 if test "${with_libiconv_prefix+set}" = set; then
9690   withval="$with_libiconv_prefix"
9691
9692     if test "X$withval" = "Xno"; then
9693       use_additional=no
9694     else
9695       if test "X$withval" = "X"; then
9696
9697   acl_save_prefix="$prefix"
9698   prefix="$acl_final_prefix"
9699   acl_save_exec_prefix="$exec_prefix"
9700   exec_prefix="$acl_final_exec_prefix"
9701
9702           eval additional_includedir=\"$includedir\"
9703           eval additional_libdir=\"$libdir\"
9704
9705   exec_prefix="$acl_save_exec_prefix"
9706   prefix="$acl_save_prefix"
9707
9708       else
9709         additional_includedir="$withval/include"
9710         additional_libdir="$withval/lib"
9711       fi
9712     fi
9713
9714 fi;
9715       LIBICONV=
9716   LTLIBICONV=
9717   INCICONV=
9718   rpathdirs=
9719   ltrpathdirs=
9720   names_already_handled=
9721   names_next_round='iconv '
9722   while test -n "$names_next_round"; do
9723     names_this_round="$names_next_round"
9724     names_next_round=
9725     for name in $names_this_round; do
9726       already_handled=
9727       for n in $names_already_handled; do
9728         if test "$n" = "$name"; then
9729           already_handled=yes
9730           break
9731         fi
9732       done
9733       if test -z "$already_handled"; then
9734         names_already_handled="$names_already_handled $name"
9735                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9736         eval value=\"\$HAVE_LIB$uppername\"
9737         if test -n "$value"; then
9738           if test "$value" = yes; then
9739             eval value=\"\$LIB$uppername\"
9740             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9741             eval value=\"\$LTLIB$uppername\"
9742             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9743           else
9744                                     :
9745           fi
9746         else
9747                               found_dir=
9748           found_la=
9749           found_so=
9750           found_a=
9751           if test $use_additional = yes; then
9752             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9753               found_dir="$additional_libdir"
9754               found_so="$additional_libdir/lib$name.$shlibext"
9755               if test -f "$additional_libdir/lib$name.la"; then
9756                 found_la="$additional_libdir/lib$name.la"
9757               fi
9758             else
9759               if test -f "$additional_libdir/lib$name.$libext"; then
9760                 found_dir="$additional_libdir"
9761                 found_a="$additional_libdir/lib$name.$libext"
9762                 if test -f "$additional_libdir/lib$name.la"; then
9763                   found_la="$additional_libdir/lib$name.la"
9764                 fi
9765               fi
9766             fi
9767           fi
9768           if test "X$found_dir" = "X"; then
9769             for x in $LDFLAGS $LTLIBICONV; do
9770
9771   acl_save_prefix="$prefix"
9772   prefix="$acl_final_prefix"
9773   acl_save_exec_prefix="$exec_prefix"
9774   exec_prefix="$acl_final_exec_prefix"
9775   eval x=\"$x\"
9776   exec_prefix="$acl_save_exec_prefix"
9777   prefix="$acl_save_prefix"
9778
9779               case "$x" in
9780                 -L*)
9781                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9782                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9783                     found_dir="$dir"
9784                     found_so="$dir/lib$name.$shlibext"
9785                     if test -f "$dir/lib$name.la"; then
9786                       found_la="$dir/lib$name.la"
9787                     fi
9788                   else
9789                     if test -f "$dir/lib$name.$libext"; then
9790                       found_dir="$dir"
9791                       found_a="$dir/lib$name.$libext"
9792                       if test -f "$dir/lib$name.la"; then
9793                         found_la="$dir/lib$name.la"
9794                       fi
9795                     fi
9796                   fi
9797                   ;;
9798               esac
9799               if test "X$found_dir" != "X"; then
9800                 break
9801               fi
9802             done
9803           fi
9804           if test "X$found_dir" != "X"; then
9805                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9806             if test "X$found_so" != "X"; then
9807                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9808                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9809               else
9810                                                                                 haveit=
9811                 for x in $ltrpathdirs; do
9812                   if test "X$x" = "X$found_dir"; then
9813                     haveit=yes
9814                     break
9815                   fi
9816                 done
9817                 if test -z "$haveit"; then
9818                   ltrpathdirs="$ltrpathdirs $found_dir"
9819                 fi
9820                                 if test "$hardcode_direct" = yes; then
9821                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9822                 else
9823                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9824                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9825                                                             haveit=
9826                     for x in $rpathdirs; do
9827                       if test "X$x" = "X$found_dir"; then
9828                         haveit=yes
9829                         break
9830                       fi
9831                     done
9832                     if test -z "$haveit"; then
9833                       rpathdirs="$rpathdirs $found_dir"
9834                     fi
9835                   else
9836                                                                                 haveit=
9837                     for x in $LDFLAGS $LIBICONV; do
9838
9839   acl_save_prefix="$prefix"
9840   prefix="$acl_final_prefix"
9841   acl_save_exec_prefix="$exec_prefix"
9842   exec_prefix="$acl_final_exec_prefix"
9843   eval x=\"$x\"
9844   exec_prefix="$acl_save_exec_prefix"
9845   prefix="$acl_save_prefix"
9846
9847                       if test "X$x" = "X-L$found_dir"; then
9848                         haveit=yes
9849                         break
9850                       fi
9851                     done
9852                     if test -z "$haveit"; then
9853                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9854                     fi
9855                     if test "$hardcode_minus_L" != no; then
9856                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9857                     else
9858                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9859                     fi
9860                   fi
9861                 fi
9862               fi
9863             else
9864               if test "X$found_a" != "X"; then
9865                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9866               else
9867                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9868               fi
9869             fi
9870                         additional_includedir=
9871             case "$found_dir" in
9872               */lib | */lib/)
9873                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9874                 additional_includedir="$basedir/include"
9875                 ;;
9876             esac
9877             if test "X$additional_includedir" != "X"; then
9878                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9879                 haveit=
9880                 if test "X$additional_includedir" = "X/usr/local/include"; then
9881                   if test -n "$GCC"; then
9882                     case $host_os in
9883                       linux*) haveit=yes;;
9884                     esac
9885                   fi
9886                 fi
9887                 if test -z "$haveit"; then
9888                   for x in $CPPFLAGS $INCICONV; do
9889
9890   acl_save_prefix="$prefix"
9891   prefix="$acl_final_prefix"
9892   acl_save_exec_prefix="$exec_prefix"
9893   exec_prefix="$acl_final_exec_prefix"
9894   eval x=\"$x\"
9895   exec_prefix="$acl_save_exec_prefix"
9896   prefix="$acl_save_prefix"
9897
9898                     if test "X$x" = "X-I$additional_includedir"; then
9899                       haveit=yes
9900                       break
9901                     fi
9902                   done
9903                   if test -z "$haveit"; then
9904                     if test -d "$additional_includedir"; then
9905                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9906                     fi
9907                   fi
9908                 fi
9909               fi
9910             fi
9911                         if test -n "$found_la"; then
9912                                                         save_libdir="$libdir"
9913               case "$found_la" in
9914                 */* | *\\*) . "$found_la" ;;
9915                 *) . "./$found_la" ;;
9916               esac
9917               libdir="$save_libdir"
9918                             for dep in $dependency_libs; do
9919                 case "$dep" in
9920                   -L*)
9921                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9922                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9923                       haveit=
9924                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9925                         if test -n "$GCC"; then
9926                           case $host_os in
9927                             linux*) haveit=yes;;
9928                           esac
9929                         fi
9930                       fi
9931                       if test -z "$haveit"; then
9932                         haveit=
9933                         for x in $LDFLAGS $LIBICONV; do
9934
9935   acl_save_prefix="$prefix"
9936   prefix="$acl_final_prefix"
9937   acl_save_exec_prefix="$exec_prefix"
9938   exec_prefix="$acl_final_exec_prefix"
9939   eval x=\"$x\"
9940   exec_prefix="$acl_save_exec_prefix"
9941   prefix="$acl_save_prefix"
9942
9943                           if test "X$x" = "X-L$additional_libdir"; then
9944                             haveit=yes
9945                             break
9946                           fi
9947                         done
9948                         if test -z "$haveit"; then
9949                           if test -d "$additional_libdir"; then
9950                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9951                           fi
9952                         fi
9953                         haveit=
9954                         for x in $LDFLAGS $LTLIBICONV; do
9955
9956   acl_save_prefix="$prefix"
9957   prefix="$acl_final_prefix"
9958   acl_save_exec_prefix="$exec_prefix"
9959   exec_prefix="$acl_final_exec_prefix"
9960   eval x=\"$x\"
9961   exec_prefix="$acl_save_exec_prefix"
9962   prefix="$acl_save_prefix"
9963
9964                           if test "X$x" = "X-L$additional_libdir"; then
9965                             haveit=yes
9966                             break
9967                           fi
9968                         done
9969                         if test -z "$haveit"; then
9970                           if test -d "$additional_libdir"; then
9971                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9972                           fi
9973                         fi
9974                       fi
9975                     fi
9976                     ;;
9977                   -R*)
9978                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9979                     if test "$enable_rpath" != no; then
9980                                                                   haveit=
9981                       for x in $rpathdirs; do
9982                         if test "X$x" = "X$dir"; then
9983                           haveit=yes
9984                           break
9985                         fi
9986                       done
9987                       if test -z "$haveit"; then
9988                         rpathdirs="$rpathdirs $dir"
9989                       fi
9990                                                                   haveit=
9991                       for x in $ltrpathdirs; do
9992                         if test "X$x" = "X$dir"; then
9993                           haveit=yes
9994                           break
9995                         fi
9996                       done
9997                       if test -z "$haveit"; then
9998                         ltrpathdirs="$ltrpathdirs $dir"
9999                       fi
10000                     fi
10001                     ;;
10002                   -l*)
10003                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10004                     ;;
10005                   *.la)
10006                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10007                     ;;
10008                   *)
10009                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10010                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10011                     ;;
10012                 esac
10013               done
10014             fi
10015           else
10016                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10017             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10018           fi
10019         fi
10020       fi
10021     done
10022   done
10023   if test "X$rpathdirs" != "X"; then
10024     if test -n "$hardcode_libdir_separator"; then
10025                         alldirs=
10026       for found_dir in $rpathdirs; do
10027         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10028       done
10029             acl_save_libdir="$libdir"
10030       libdir="$alldirs"
10031       eval flag=\"$hardcode_libdir_flag_spec\"
10032       libdir="$acl_save_libdir"
10033       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10034     else
10035             for found_dir in $rpathdirs; do
10036         acl_save_libdir="$libdir"
10037         libdir="$found_dir"
10038         eval flag=\"$hardcode_libdir_flag_spec\"
10039         libdir="$acl_save_libdir"
10040         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10041       done
10042     fi
10043   fi
10044   if test "X$ltrpathdirs" != "X"; then
10045             for found_dir in $ltrpathdirs; do
10046       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10047     done
10048   fi
10049
10050
10051
10052
10053
10054
10055
10056           am_save_CPPFLAGS="$CPPFLAGS"
10057
10058   for element in $INCICONV; do
10059     haveit=
10060     for x in $CPPFLAGS; do
10061
10062   acl_save_prefix="$prefix"
10063   prefix="$acl_final_prefix"
10064   acl_save_exec_prefix="$exec_prefix"
10065   exec_prefix="$acl_final_exec_prefix"
10066   eval x=\"$x\"
10067   exec_prefix="$acl_save_exec_prefix"
10068   prefix="$acl_save_prefix"
10069
10070       if test "X$x" = "X$element"; then
10071         haveit=yes
10072         break
10073       fi
10074     done
10075     if test -z "$haveit"; then
10076       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10077     fi
10078   done
10079
10080
10081   echo "$as_me:$LINENO: checking for iconv" >&5
10082 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10083 if test "${am_cv_func_iconv+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086
10087     am_cv_func_iconv="no, consider installing GNU libiconv"
10088     am_cv_lib_iconv=no
10089     if test x$gcc_no_link = xyes; then
10090   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10091 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10092    { (exit 1); exit 1; }; }
10093 fi
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100 #include <stdlib.h>
10101 #include <iconv.h>
10102 int
10103 main ()
10104 {
10105 iconv_t cd = iconv_open("","");
10106        iconv(cd,NULL,NULL,NULL,NULL);
10107        iconv_close(cd);
10108   ;
10109   return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114   (eval $ac_link) 2>conftest.er1
10115   ac_status=$?
10116   grep -v '^ *+' conftest.er1 >conftest.err
10117   rm -f conftest.er1
10118   cat conftest.err >&5
10119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120   (exit $ac_status); } &&
10121          { ac_try='test -z "$ac_c_werror_flag"
10122                          || test ! -s conftest.err'
10123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124   (eval $ac_try) 2>&5
10125   ac_status=$?
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); }; } &&
10128          { ac_try='test -s conftest$ac_exeext'
10129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130   (eval $ac_try) 2>&5
10131   ac_status=$?
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); }; }; then
10134   am_cv_func_iconv=yes
10135 else
10136   echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 fi
10140 rm -f conftest.err conftest.$ac_objext \
10141       conftest$ac_exeext conftest.$ac_ext
10142     if test "$am_cv_func_iconv" != yes; then
10143       am_save_LIBS="$LIBS"
10144       LIBS="$LIBS $LIBICONV"
10145       if test x$gcc_no_link = xyes; then
10146   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10147 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10148    { (exit 1); exit 1; }; }
10149 fi
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156 #include <stdlib.h>
10157 #include <iconv.h>
10158 int
10159 main ()
10160 {
10161 iconv_t cd = iconv_open("","");
10162          iconv(cd,NULL,NULL,NULL,NULL);
10163          iconv_close(cd);
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext conftest$ac_exeext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170   (eval $ac_link) 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -z "$ac_c_werror_flag"
10178                          || 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"
10269                          || test ! -s conftest.err'
10270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271   (eval $ac_try) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; } &&
10275          { ac_try='test -s conftest.$ac_objext'
10276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277   (eval $ac_try) 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; }; then
10281   am_cv_proto_iconv_arg1=""
10282 else
10283   echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286 am_cv_proto_iconv_arg1="const"
10287 fi
10288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10289       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);"
10290 fi
10291
10292     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10293     echo "$as_me:$LINENO: result: ${ac_t:-
10294          }$am_cv_proto_iconv" >&5
10295 echo "${ECHO_T}${ac_t:-
10296          }$am_cv_proto_iconv" >&6
10297
10298 cat >>confdefs.h <<_ACEOF
10299 #define ICONV_CONST $am_cv_proto_iconv_arg1
10300 _ACEOF
10301
10302   fi
10303
10304
10305   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10306 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10307 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10308   echo $ECHO_N "(cached) $ECHO_C" >&6
10309 else
10310   if test x$gcc_no_link = xyes; then
10311   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10312 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10313    { (exit 1); exit 1; }; }
10314 fi
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h.  */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h.  */
10321 #include <locale.h>
10322 int
10323 main ()
10324 {
10325 return LC_MESSAGES
10326   ;
10327   return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10332   (eval $ac_link) 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } &&
10339          { ac_try='test -z "$ac_c_werror_flag"
10340                          || test ! -s conftest.err'
10341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342   (eval $ac_try) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); }; } &&
10346          { ac_try='test -s conftest$ac_exeext'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   am_cv_val_LC_MESSAGES=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 am_cv_val_LC_MESSAGES=no
10358 fi
10359 rm -f conftest.err conftest.$ac_objext \
10360       conftest$ac_exeext conftest.$ac_ext
10361 fi
10362 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10363 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10364   if test $am_cv_val_LC_MESSAGES = yes; then
10365
10366 cat >>confdefs.h <<\_ACEOF
10367 #define HAVE_LC_MESSAGES 1
10368 _ACEOF
10369
10370   fi
10371
10372    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10373 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10374 if test "${ac_cv_struct_tm+set}" = set; then
10375   echo $ECHO_N "(cached) $ECHO_C" >&6
10376 else
10377   cat >conftest.$ac_ext <<_ACEOF
10378 /* confdefs.h.  */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h.  */
10383 #include <sys/types.h>
10384 #include <time.h>
10385
10386 int
10387 main ()
10388 {
10389 struct tm *tp; tp->tm_sec;
10390   ;
10391   return 0;
10392 }
10393 _ACEOF
10394 rm -f conftest.$ac_objext
10395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10396   (eval $ac_compile) 2>conftest.er1
10397   ac_status=$?
10398   grep -v '^ *+' conftest.er1 >conftest.err
10399   rm -f conftest.er1
10400   cat conftest.err >&5
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -z "$ac_c_werror_flag"
10404                          || test ! -s conftest.err'
10405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10406   (eval $ac_try) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; } &&
10410          { ac_try='test -s conftest.$ac_objext'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }; then
10416   ac_cv_struct_tm=time.h
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_cv_struct_tm=sys/time.h
10422 fi
10423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10424 fi
10425 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10426 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10427 if test $ac_cv_struct_tm = sys/time.h; then
10428
10429 cat >>confdefs.h <<\_ACEOF
10430 #define TM_IN_SYS_TIME 1
10431 _ACEOF
10432
10433 fi
10434
10435 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10436 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10437 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10438   echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440   cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h.  */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h.  */
10446 #include <sys/types.h>
10447 #include <$ac_cv_struct_tm>
10448
10449
10450 int
10451 main ()
10452 {
10453 static struct tm ac_aggr;
10454 if (ac_aggr.tm_zone)
10455 return 0;
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462   (eval $ac_compile) 2>conftest.er1
10463   ac_status=$?
10464   grep -v '^ *+' conftest.er1 >conftest.err
10465   rm -f conftest.er1
10466   cat conftest.err >&5
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); } &&
10469          { ac_try='test -z "$ac_c_werror_flag"
10470                          || test ! -s conftest.err'
10471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472   (eval $ac_try) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }; } &&
10476          { ac_try='test -s conftest.$ac_objext'
10477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478   (eval $ac_try) 2>&5
10479   ac_status=$?
10480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481   (exit $ac_status); }; }; then
10482   ac_cv_member_struct_tm_tm_zone=yes
10483 else
10484   echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493 #include <sys/types.h>
10494 #include <$ac_cv_struct_tm>
10495
10496
10497 int
10498 main ()
10499 {
10500 static struct tm ac_aggr;
10501 if (sizeof ac_aggr.tm_zone)
10502 return 0;
10503   ;
10504   return 0;
10505 }
10506 _ACEOF
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509   (eval $ac_compile) 2>conftest.er1
10510   ac_status=$?
10511   grep -v '^ *+' conftest.er1 >conftest.err
10512   rm -f conftest.er1
10513   cat conftest.err >&5
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); } &&
10516          { ac_try='test -z "$ac_c_werror_flag"
10517                          || test ! -s conftest.err'
10518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10519   (eval $ac_try) 2>&5
10520   ac_status=$?
10521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522   (exit $ac_status); }; } &&
10523          { ac_try='test -s conftest.$ac_objext'
10524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525   (eval $ac_try) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); }; }; then
10529   ac_cv_member_struct_tm_tm_zone=yes
10530 else
10531   echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534 ac_cv_member_struct_tm_tm_zone=no
10535 fi
10536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10537 fi
10538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10539 fi
10540 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10541 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10542 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10543
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STRUCT_TM_TM_ZONE 1
10546 _ACEOF
10547
10548
10549 fi
10550
10551 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10552
10553 cat >>confdefs.h <<\_ACEOF
10554 #define HAVE_TM_ZONE 1
10555 _ACEOF
10556
10557 else
10558   echo "$as_me:$LINENO: checking for tzname" >&5
10559 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10560 if test "${ac_cv_var_tzname+set}" = set; then
10561   echo $ECHO_N "(cached) $ECHO_C" >&6
10562 else
10563   if test x$gcc_no_link = xyes; then
10564   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10566    { (exit 1); exit 1; }; }
10567 fi
10568 cat >conftest.$ac_ext <<_ACEOF
10569 /* confdefs.h.  */
10570 _ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h.  */
10574 #include <time.h>
10575 #ifndef tzname /* For SGI.  */
10576 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10577 #endif
10578
10579 int
10580 main ()
10581 {
10582 atoi(*tzname);
10583   ;
10584   return 0;
10585 }
10586 _ACEOF
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589   (eval $ac_link) 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } &&
10596          { ac_try='test -z "$ac_c_werror_flag"
10597                          || test ! -s conftest.err'
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); }; } &&
10603          { ac_try='test -s conftest$ac_exeext'
10604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605   (eval $ac_try) 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; }; then
10609   ac_cv_var_tzname=yes
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ac_cv_var_tzname=no
10615 fi
10616 rm -f conftest.err conftest.$ac_objext \
10617       conftest$ac_exeext conftest.$ac_ext
10618 fi
10619 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10620 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10621   if test $ac_cv_var_tzname = yes; then
10622
10623 cat >>confdefs.h <<\_ACEOF
10624 #define HAVE_TZNAME 1
10625 _ACEOF
10626
10627   fi
10628 fi
10629
10630
10631
10632
10633 for ac_func in gethostbyname_r
10634 do
10635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10636 echo "$as_me:$LINENO: checking for $ac_func" >&5
10637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10638 if eval "test \"\${$as_ac_var+set}\" = set"; then
10639   echo $ECHO_N "(cached) $ECHO_C" >&6
10640 else
10641   if test x$gcc_no_link = xyes; then
10642   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10644    { (exit 1); exit 1; }; }
10645 fi
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10654 #define $ac_func innocuous_$ac_func
10655
10656 /* System header to define __stub macros and hopefully few prototypes,
10657     which can conflict with char $ac_func (); below.
10658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10659     <limits.h> exists even on freestanding compilers.  */
10660
10661 #ifdef __STDC__
10662 # include <limits.h>
10663 #else
10664 # include <assert.h>
10665 #endif
10666
10667 #undef $ac_func
10668
10669 /* Override any gcc2 internal prototype to avoid an error.  */
10670 #ifdef __cplusplus
10671 extern "C"
10672 {
10673 #endif
10674 /* We use char because int might match the return type of a gcc2
10675    builtin and then its argument prototype would still apply.  */
10676 char $ac_func ();
10677 /* The GNU C library defines this for functions which it implements
10678     to always fail with ENOSYS.  Some functions are actually named
10679     something starting with __ and the normal name is an alias.  */
10680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10681 choke me
10682 #else
10683 char (*f) () = $ac_func;
10684 #endif
10685 #ifdef __cplusplus
10686 }
10687 #endif
10688
10689 int
10690 main ()
10691 {
10692 return f != $ac_func;
10693   ;
10694   return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699   (eval $ac_link) 2>conftest.er1
10700   ac_status=$?
10701   grep -v '^ *+' conftest.er1 >conftest.err
10702   rm -f conftest.er1
10703   cat conftest.err >&5
10704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705   (exit $ac_status); } &&
10706          { ac_try='test -z "$ac_c_werror_flag"
10707                          || test ! -s conftest.err'
10708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709   (eval $ac_try) 2>&5
10710   ac_status=$?
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; } &&
10713          { ac_try='test -s conftest$ac_exeext'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   eval "$as_ac_var=yes"
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724 eval "$as_ac_var=no"
10725 fi
10726 rm -f conftest.err conftest.$ac_objext \
10727       conftest$ac_exeext conftest.$ac_ext
10728 fi
10729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10731 if test `eval echo '${'$as_ac_var'}'` = yes; then
10732   cat >>confdefs.h <<_ACEOF
10733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10734 _ACEOF
10735
10736
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_GETHOSTBYNAME_R 1
10739 _ACEOF
10740
10741      # There are two different kinds of gethostbyname_r.
10742      # We look for the one that returns `int'.
10743      # Hopefully this check is robust enough.
10744      cat >conftest.$ac_ext <<_ACEOF
10745 /* confdefs.h.  */
10746 _ACEOF
10747 cat confdefs.h >>conftest.$ac_ext
10748 cat >>conftest.$ac_ext <<_ACEOF
10749 /* end confdefs.h.  */
10750 #include <netdb.h>
10751
10752 _ACEOF
10753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10754   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10755
10756
10757 cat >>confdefs.h <<\_ACEOF
10758 #define GETHOSTBYNAME_R_RETURNS_INT 1
10759 _ACEOF
10760
10761 fi
10762 rm -f conftest*
10763
10764
10765      case " $GCINCS " in
10766      *" -D_REENTRANT "*) ;;
10767      *)
10768                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10769 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10770 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773    ac_ext=cc
10774 ac_cpp='$CXXCPP $CPPFLAGS'
10775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10778
10779           cat >conftest.$ac_ext <<_ACEOF
10780 /* confdefs.h.  */
10781 _ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h.  */
10785 #include <netdb.h>
10786 int
10787 main ()
10788 {
10789 gethostbyname_r("", 0, 0);
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10796   (eval $ac_compile) 2>conftest.er1
10797   ac_status=$?
10798   grep -v '^ *+' conftest.er1 >conftest.err
10799   rm -f conftest.er1
10800   cat conftest.err >&5
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); } &&
10803          { ac_try='test -z "$ac_cxx_werror_flag"
10804                          || test ! -s conftest.err'
10805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806   (eval $ac_try) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; } &&
10810          { ac_try='test -s conftest.$ac_objext'
10811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812   (eval $ac_try) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   libjava_cv_gethostbyname_r_needs_reentrant=no
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821                 CPPFLAGS_SAVE="$CPPFLAGS"
10822                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10823                 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829 #include <netdb.h>
10830 int
10831 main ()
10832 {
10833 gethostbyname_r("", 0, 0);
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10840   (eval $ac_compile) 2>conftest.er1
10841   ac_status=$?
10842   grep -v '^ *+' conftest.er1 >conftest.err
10843   rm -f conftest.er1
10844   cat conftest.err >&5
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } &&
10847          { ac_try='test -z "$ac_cxx_werror_flag"
10848                          || test ! -s conftest.err'
10849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850   (eval $ac_try) 2>&5
10851   ac_status=$?
10852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853   (exit $ac_status); }; } &&
10854          { ac_try='test -s conftest.$ac_objext'
10855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856   (eval $ac_try) 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; }; then
10860   libjava_cv_gethostbyname_r_needs_reentrant=yes
10861 else
10862   echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865 libjava_cv_gethostbyname_r_needs_reentrant=fail
10866 fi
10867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10868                 CPPFLAGS="$CPPFLAGS_SAVE"
10869
10870 fi
10871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10872           ac_ext=c
10873 ac_cpp='$CPP $CPPFLAGS'
10874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10877
10878
10879 fi
10880 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10881 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10882         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10883
10884 cat >>confdefs.h <<\_ACEOF
10885 #define _REENTRANT 1
10886 _ACEOF
10887
10888         fi
10889      ;;
10890      esac
10891
10892      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10893 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10894 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897         cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903
10904 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10905 # define _REENTRANT 1
10906 #endif
10907 #include <netdb.h>
10908 int
10909 main ()
10910 {
10911 struct hostent_data data;
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918   (eval $ac_compile) 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } &&
10925          { ac_try='test -z "$ac_c_werror_flag"
10926                          || test ! -s conftest.err'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; } &&
10932          { ac_try='test -s conftest.$ac_objext'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   libjava_cv_struct_hostent_data=yes
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 libjava_cv_struct_hostent_data=no
10944 fi
10945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10946 fi
10947 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10948 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10949      if test "x$libjava_cv_struct_hostent_data" = xyes; then
10950
10951 cat >>confdefs.h <<\_ACEOF
10952 #define HAVE_STRUCT_HOSTENT_DATA 1
10953 _ACEOF
10954
10955      fi
10956
10957 fi
10958 done
10959
10960
10961    # FIXME: libjava source code expects to find a prototype for
10962    # gethostbyaddr_r in netdb.h.  The outer check ensures that
10963    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10964    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
10965    # linkage check is enough, yet C++ code requires proper prototypes.)
10966    cat >conftest.$ac_ext <<_ACEOF
10967 /* confdefs.h.  */
10968 _ACEOF
10969 cat confdefs.h >>conftest.$ac_ext
10970 cat >>conftest.$ac_ext <<_ACEOF
10971 /* end confdefs.h.  */
10972 #include <netdb.h>
10973
10974 _ACEOF
10975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10976   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10977
10978
10979 for ac_func in gethostbyaddr_r
10980 do
10981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10982 echo "$as_me:$LINENO: checking for $ac_func" >&5
10983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10984 if eval "test \"\${$as_ac_var+set}\" = set"; then
10985   echo $ECHO_N "(cached) $ECHO_C" >&6
10986 else
10987   if test x$gcc_no_link = xyes; then
10988   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10990    { (exit 1); exit 1; }; }
10991 fi
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11000 #define $ac_func innocuous_$ac_func
11001
11002 /* System header to define __stub macros and hopefully few prototypes,
11003     which can conflict with char $ac_func (); below.
11004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005     <limits.h> exists even on freestanding compilers.  */
11006
11007 #ifdef __STDC__
11008 # include <limits.h>
11009 #else
11010 # include <assert.h>
11011 #endif
11012
11013 #undef $ac_func
11014
11015 /* Override any gcc2 internal prototype to avoid an error.  */
11016 #ifdef __cplusplus
11017 extern "C"
11018 {
11019 #endif
11020 /* We use char because int might match the return type of a gcc2
11021    builtin and then its argument prototype would still apply.  */
11022 char $ac_func ();
11023 /* The GNU C library defines this for functions which it implements
11024     to always fail with ENOSYS.  Some functions are actually named
11025     something starting with __ and the normal name is an alias.  */
11026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11027 choke me
11028 #else
11029 char (*f) () = $ac_func;
11030 #endif
11031 #ifdef __cplusplus
11032 }
11033 #endif
11034
11035 int
11036 main ()
11037 {
11038 return f != $ac_func;
11039   ;
11040   return 0;
11041 }
11042 _ACEOF
11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11045   (eval $ac_link) 2>conftest.er1
11046   ac_status=$?
11047   grep -v '^ *+' conftest.er1 >conftest.err
11048   rm -f conftest.er1
11049   cat conftest.err >&5
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } &&
11052          { ac_try='test -z "$ac_c_werror_flag"
11053                          || test ! -s conftest.err'
11054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11055   (eval $ac_try) 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; } &&
11059          { ac_try='test -s conftest$ac_exeext'
11060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061   (eval $ac_try) 2>&5
11062   ac_status=$?
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); }; }; then
11065   eval "$as_ac_var=yes"
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 eval "$as_ac_var=no"
11071 fi
11072 rm -f conftest.err conftest.$ac_objext \
11073       conftest$ac_exeext conftest.$ac_ext
11074 fi
11075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11077 if test `eval echo '${'$as_ac_var'}'` = yes; then
11078   cat >>confdefs.h <<_ACEOF
11079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11080 _ACEOF
11081
11082
11083 cat >>confdefs.h <<\_ACEOF
11084 #define HAVE_GETHOSTBYADDR_R 1
11085 _ACEOF
11086
11087      # There are two different kinds of gethostbyaddr_r.
11088      # We look for the one that returns `int'.
11089      # Hopefully this check is robust enough.
11090      cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h.  */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h.  */
11096 #include <netdb.h>
11097
11098 _ACEOF
11099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11100   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11101
11102
11103 cat >>confdefs.h <<\_ACEOF
11104 #define GETHOSTBYADDR_R_RETURNS_INT 1
11105 _ACEOF
11106
11107 fi
11108 rm -f conftest*
11109
11110 fi
11111 done
11112
11113 fi
11114 rm -f conftest*
11115
11116
11117
11118 for ac_func in gethostname
11119 do
11120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11121 echo "$as_me:$LINENO: checking for $ac_func" >&5
11122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11123 if eval "test \"\${$as_ac_var+set}\" = set"; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   if test x$gcc_no_link = xyes; then
11127   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11129    { (exit 1); exit 1; }; }
11130 fi
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11139 #define $ac_func innocuous_$ac_func
11140
11141 /* System header to define __stub macros and hopefully few prototypes,
11142     which can conflict with char $ac_func (); below.
11143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144     <limits.h> exists even on freestanding compilers.  */
11145
11146 #ifdef __STDC__
11147 # include <limits.h>
11148 #else
11149 # include <assert.h>
11150 #endif
11151
11152 #undef $ac_func
11153
11154 /* Override any gcc2 internal prototype to avoid an error.  */
11155 #ifdef __cplusplus
11156 extern "C"
11157 {
11158 #endif
11159 /* We use char because int might match the return type of a gcc2
11160    builtin and then its argument prototype would still apply.  */
11161 char $ac_func ();
11162 /* The GNU C library defines this for functions which it implements
11163     to always fail with ENOSYS.  Some functions are actually named
11164     something starting with __ and the normal name is an alias.  */
11165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11166 choke me
11167 #else
11168 char (*f) () = $ac_func;
11169 #endif
11170 #ifdef __cplusplus
11171 }
11172 #endif
11173
11174 int
11175 main ()
11176 {
11177 return f != $ac_func;
11178   ;
11179   return 0;
11180 }
11181 _ACEOF
11182 rm -f conftest.$ac_objext conftest$ac_exeext
11183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11184   (eval $ac_link) 2>conftest.er1
11185   ac_status=$?
11186   grep -v '^ *+' conftest.er1 >conftest.err
11187   rm -f conftest.er1
11188   cat conftest.err >&5
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); } &&
11191          { ac_try='test -z "$ac_c_werror_flag"
11192                          || test ! -s conftest.err'
11193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194   (eval $ac_try) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; } &&
11198          { ac_try='test -s conftest$ac_exeext'
11199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11200   (eval $ac_try) 2>&5
11201   ac_status=$?
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); }; }; then
11204   eval "$as_ac_var=yes"
11205 else
11206   echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209 eval "$as_ac_var=no"
11210 fi
11211 rm -f conftest.err conftest.$ac_objext \
11212       conftest$ac_exeext conftest.$ac_ext
11213 fi
11214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11216 if test `eval echo '${'$as_ac_var'}'` = yes; then
11217   cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11219 _ACEOF
11220
11221
11222 cat >>confdefs.h <<\_ACEOF
11223 #define HAVE_GETHOSTNAME 1
11224 _ACEOF
11225
11226      cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h.  */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h.  */
11232 #include <unistd.h>
11233
11234 _ACEOF
11235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11236   $EGREP "gethostname" >/dev/null 2>&1; then
11237
11238
11239 cat >>confdefs.h <<\_ACEOF
11240 #define HAVE_GETHOSTNAME_DECL 1
11241 _ACEOF
11242
11243 fi
11244 rm -f conftest*
11245
11246 fi
11247 done
11248
11249
11250
11251 for ac_func in usleep
11252 do
11253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11254 echo "$as_me:$LINENO: checking for $ac_func" >&5
11255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11256 if eval "test \"\${$as_ac_var+set}\" = set"; then
11257   echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259   if test x$gcc_no_link = xyes; then
11260   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11261 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11262    { (exit 1); exit 1; }; }
11263 fi
11264 cat >conftest.$ac_ext <<_ACEOF
11265 /* confdefs.h.  */
11266 _ACEOF
11267 cat confdefs.h >>conftest.$ac_ext
11268 cat >>conftest.$ac_ext <<_ACEOF
11269 /* end confdefs.h.  */
11270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11272 #define $ac_func innocuous_$ac_func
11273
11274 /* System header to define __stub macros and hopefully few prototypes,
11275     which can conflict with char $ac_func (); below.
11276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11277     <limits.h> exists even on freestanding compilers.  */
11278
11279 #ifdef __STDC__
11280 # include <limits.h>
11281 #else
11282 # include <assert.h>
11283 #endif
11284
11285 #undef $ac_func
11286
11287 /* Override any gcc2 internal prototype to avoid an error.  */
11288 #ifdef __cplusplus
11289 extern "C"
11290 {
11291 #endif
11292 /* We use char because int might match the return type of a gcc2
11293    builtin and then its argument prototype would still apply.  */
11294 char $ac_func ();
11295 /* The GNU C library defines this for functions which it implements
11296     to always fail with ENOSYS.  Some functions are actually named
11297     something starting with __ and the normal name is an alias.  */
11298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11299 choke me
11300 #else
11301 char (*f) () = $ac_func;
11302 #endif
11303 #ifdef __cplusplus
11304 }
11305 #endif
11306
11307 int
11308 main ()
11309 {
11310 return f != $ac_func;
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 rm -f conftest.$ac_objext conftest$ac_exeext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317   (eval $ac_link) 2>conftest.er1
11318   ac_status=$?
11319   grep -v '^ *+' conftest.er1 >conftest.err
11320   rm -f conftest.er1
11321   cat conftest.err >&5
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } &&
11324          { ac_try='test -z "$ac_c_werror_flag"
11325                          || test ! -s conftest.err'
11326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11327   (eval $ac_try) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); }; } &&
11331          { ac_try='test -s conftest$ac_exeext'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   eval "$as_ac_var=yes"
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 eval "$as_ac_var=no"
11343 fi
11344 rm -f conftest.err conftest.$ac_objext \
11345       conftest$ac_exeext conftest.$ac_ext
11346 fi
11347 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11348 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11349 if test `eval echo '${'$as_ac_var'}'` = yes; then
11350   cat >>confdefs.h <<_ACEOF
11351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11352 _ACEOF
11353
11354      cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h.  */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h.  */
11360 #include <unistd.h>
11361
11362 _ACEOF
11363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11364   $EGREP "usleep" >/dev/null 2>&1; then
11365
11366
11367 cat >>confdefs.h <<\_ACEOF
11368 #define HAVE_USLEEP_DECL 1
11369 _ACEOF
11370
11371 fi
11372 rm -f conftest*
11373
11374 fi
11375 done
11376
11377
11378    # Look for these functions in the thread library, but only bother
11379    # if using POSIX threads.
11380    if test "$THREADS" = posix; then
11381       save_LIBS="$LIBS"
11382       LIBS="$LIBS $THREADLIBS"
11383       # Some POSIX thread systems don't have pthread_mutexattr_settype.
11384       # E.g., Solaris.
11385
11386
11387 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11388 do
11389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11390 echo "$as_me:$LINENO: checking for $ac_func" >&5
11391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11392 if eval "test \"\${$as_ac_var+set}\" = set"; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   if test x$gcc_no_link = xyes; then
11396   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11398    { (exit 1); exit 1; }; }
11399 fi
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11408 #define $ac_func innocuous_$ac_func
11409
11410 /* System header to define __stub macros and hopefully few prototypes,
11411     which can conflict with char $ac_func (); below.
11412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11413     <limits.h> exists even on freestanding compilers.  */
11414
11415 #ifdef __STDC__
11416 # include <limits.h>
11417 #else
11418 # include <assert.h>
11419 #endif
11420
11421 #undef $ac_func
11422
11423 /* Override any gcc2 internal prototype to avoid an error.  */
11424 #ifdef __cplusplus
11425 extern "C"
11426 {
11427 #endif
11428 /* We use char because int might match the return type of a gcc2
11429    builtin and then its argument prototype would still apply.  */
11430 char $ac_func ();
11431 /* The GNU C library defines this for functions which it implements
11432     to always fail with ENOSYS.  Some functions are actually named
11433     something starting with __ and the normal name is an alias.  */
11434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11435 choke me
11436 #else
11437 char (*f) () = $ac_func;
11438 #endif
11439 #ifdef __cplusplus
11440 }
11441 #endif
11442
11443 int
11444 main ()
11445 {
11446 return f != $ac_func;
11447   ;
11448   return 0;
11449 }
11450 _ACEOF
11451 rm -f conftest.$ac_objext conftest$ac_exeext
11452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11453   (eval $ac_link) 2>conftest.er1
11454   ac_status=$?
11455   grep -v '^ *+' conftest.er1 >conftest.err
11456   rm -f conftest.er1
11457   cat conftest.err >&5
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); } &&
11460          { ac_try='test -z "$ac_c_werror_flag"
11461                          || test ! -s conftest.err'
11462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463   (eval $ac_try) 2>&5
11464   ac_status=$?
11465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466   (exit $ac_status); }; } &&
11467          { ac_try='test -s conftest$ac_exeext'
11468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469   (eval $ac_try) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); }; }; then
11473   eval "$as_ac_var=yes"
11474 else
11475   echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 eval "$as_ac_var=no"
11479 fi
11480 rm -f conftest.err conftest.$ac_objext \
11481       conftest$ac_exeext conftest.$ac_ext
11482 fi
11483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11485 if test `eval echo '${'$as_ac_var'}'` = yes; then
11486   cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11488 _ACEOF
11489
11490 fi
11491 done
11492
11493
11494       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
11495       # Solaris 7 the name librt is preferred.
11496
11497 for ac_func in sched_yield
11498 do
11499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11500 echo "$as_me:$LINENO: checking for $ac_func" >&5
11501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11502 if eval "test \"\${$as_ac_var+set}\" = set"; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 else
11505   if test x$gcc_no_link = xyes; then
11506   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11507 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11508    { (exit 1); exit 1; }; }
11509 fi
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h.  */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h.  */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11518 #define $ac_func innocuous_$ac_func
11519
11520 /* System header to define __stub macros and hopefully few prototypes,
11521     which can conflict with char $ac_func (); below.
11522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523     <limits.h> exists even on freestanding compilers.  */
11524
11525 #ifdef __STDC__
11526 # include <limits.h>
11527 #else
11528 # include <assert.h>
11529 #endif
11530
11531 #undef $ac_func
11532
11533 /* Override any gcc2 internal prototype to avoid an error.  */
11534 #ifdef __cplusplus
11535 extern "C"
11536 {
11537 #endif
11538 /* We use char because int might match the return type of a gcc2
11539    builtin and then its argument prototype would still apply.  */
11540 char $ac_func ();
11541 /* The GNU C library defines this for functions which it implements
11542     to always fail with ENOSYS.  Some functions are actually named
11543     something starting with __ and the normal name is an alias.  */
11544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11545 choke me
11546 #else
11547 char (*f) () = $ac_func;
11548 #endif
11549 #ifdef __cplusplus
11550 }
11551 #endif
11552
11553 int
11554 main ()
11555 {
11556 return f != $ac_func;
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563   (eval $ac_link) 2>conftest.er1
11564   ac_status=$?
11565   grep -v '^ *+' conftest.er1 >conftest.err
11566   rm -f conftest.er1
11567   cat conftest.err >&5
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -z "$ac_c_werror_flag"
11571                          || test ! -s conftest.err'
11572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11573   (eval $ac_try) 2>&5
11574   ac_status=$?
11575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576   (exit $ac_status); }; } &&
11577          { ac_try='test -s conftest$ac_exeext'
11578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579   (eval $ac_try) 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; }; then
11583   eval "$as_ac_var=yes"
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588 eval "$as_ac_var=no"
11589 fi
11590 rm -f conftest.err conftest.$ac_objext \
11591       conftest$ac_exeext conftest.$ac_ext
11592 fi
11593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11595 if test `eval echo '${'$as_ac_var'}'` = yes; then
11596   cat >>confdefs.h <<_ACEOF
11597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11598 _ACEOF
11599
11600 else
11601
11602         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11603 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11604 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-lrt  $LIBS"
11609 if test x$gcc_no_link = xyes; then
11610   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11612    { (exit 1); exit 1; }; }
11613 fi
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h.  */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h.  */
11620
11621 /* Override any gcc2 internal prototype to avoid an error.  */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 /* We use char because int might match the return type of a gcc2
11626    builtin and then its argument prototype would still apply.  */
11627 char sched_yield ();
11628 int
11629 main ()
11630 {
11631 sched_yield ();
11632   ;
11633   return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638   (eval $ac_link) 2>conftest.er1
11639   ac_status=$?
11640   grep -v '^ *+' conftest.er1 >conftest.err
11641   rm -f conftest.er1
11642   cat conftest.err >&5
11643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644   (exit $ac_status); } &&
11645          { ac_try='test -z "$ac_c_werror_flag"
11646                          || test ! -s conftest.err'
11647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648   (eval $ac_try) 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; } &&
11652          { ac_try='test -s conftest$ac_exeext'
11653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654   (eval $ac_try) 2>&5
11655   ac_status=$?
11656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657   (exit $ac_status); }; }; then
11658   ac_cv_lib_rt_sched_yield=yes
11659 else
11660   echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 ac_cv_lib_rt_sched_yield=no
11664 fi
11665 rm -f conftest.err conftest.$ac_objext \
11666       conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11670 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11671 if test $ac_cv_lib_rt_sched_yield = yes; then
11672
11673           cat >>confdefs.h <<\_ACEOF
11674 #define HAVE_SCHED_YIELD 1
11675 _ACEOF
11676
11677           THREADLIBS="$THREADLIBS -lrt"
11678           THREADSPEC="$THREADSPEC -lrt"
11679 else
11680
11681           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11682 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11683 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11684   echo $ECHO_N "(cached) $ECHO_C" >&6
11685 else
11686   ac_check_lib_save_LIBS=$LIBS
11687 LIBS="-lposix4  $LIBS"
11688 if test x$gcc_no_link = xyes; then
11689   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11691    { (exit 1); exit 1; }; }
11692 fi
11693 cat >conftest.$ac_ext <<_ACEOF
11694 /* confdefs.h.  */
11695 _ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h.  */
11699
11700 /* Override any gcc2 internal prototype to avoid an error.  */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 /* We use char because int might match the return type of a gcc2
11705    builtin and then its argument prototype would still apply.  */
11706 char sched_yield ();
11707 int
11708 main ()
11709 {
11710 sched_yield ();
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext conftest$ac_exeext
11716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11717   (eval $ac_link) 2>conftest.er1
11718   ac_status=$?
11719   grep -v '^ *+' conftest.er1 >conftest.err
11720   rm -f conftest.er1
11721   cat conftest.err >&5
11722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723   (exit $ac_status); } &&
11724          { ac_try='test -z "$ac_c_werror_flag"
11725                          || test ! -s conftest.err'
11726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11727   (eval $ac_try) 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; } &&
11731          { ac_try='test -s conftest$ac_exeext'
11732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733   (eval $ac_try) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; }; then
11737   ac_cv_lib_posix4_sched_yield=yes
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 ac_cv_lib_posix4_sched_yield=no
11743 fi
11744 rm -f conftest.err conftest.$ac_objext \
11745       conftest$ac_exeext conftest.$ac_ext
11746 LIBS=$ac_check_lib_save_LIBS
11747 fi
11748 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11749 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11750 if test $ac_cv_lib_posix4_sched_yield = yes; then
11751
11752             cat >>confdefs.h <<\_ACEOF
11753 #define HAVE_SCHED_YIELD 1
11754 _ACEOF
11755
11756             THREADLIBS="$THREADLIBS -lposix4"
11757             THREADSPEC="$THREADSPEC -lposix4"
11758 fi
11759
11760 fi
11761
11762 fi
11763 done
11764
11765       LIBS="$save_LIBS"
11766
11767       # We can save a little space at runtime if the mutex has m_count
11768       # or __m_count.  This is a nice hack for Linux.
11769       cat >conftest.$ac_ext <<_ACEOF
11770 /* confdefs.h.  */
11771 _ACEOF
11772 cat confdefs.h >>conftest.$ac_ext
11773 cat >>conftest.$ac_ext <<_ACEOF
11774 /* end confdefs.h.  */
11775 #include <pthread.h>
11776 int
11777 main ()
11778 {
11779
11780           extern pthread_mutex_t *mutex; int q = mutex->m_count;
11781
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 rm -f conftest.$ac_objext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788   (eval $ac_compile) 2>conftest.er1
11789   ac_status=$?
11790   grep -v '^ *+' conftest.er1 >conftest.err
11791   rm -f conftest.er1
11792   cat conftest.err >&5
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } &&
11795          { ac_try='test -z "$ac_c_werror_flag"
11796                          || test ! -s conftest.err'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; } &&
11802          { ac_try='test -s conftest.$ac_objext'
11803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804   (eval $ac_try) 2>&5
11805   ac_status=$?
11806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807   (exit $ac_status); }; }; then
11808
11809 cat >>confdefs.h <<\_ACEOF
11810 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11811 _ACEOF
11812
11813 else
11814   echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11816
11817
11818         cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <pthread.h>
11825 int
11826 main ()
11827 {
11828
11829             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11830
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11837   (eval $ac_compile) 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } &&
11844          { ac_try='test -z "$ac_c_werror_flag"
11845                          || test ! -s conftest.err'
11846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847   (eval $ac_try) 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; } &&
11851          { ac_try='test -s conftest.$ac_objext'
11852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853   (eval $ac_try) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); }; }; then
11857
11858 cat >>confdefs.h <<\_ACEOF
11859 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11860 _ACEOF
11861
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866 fi
11867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11868 fi
11869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11870    fi
11871
11872    # We require a way to get the time.
11873    time_found=no
11874
11875
11876
11877 for ac_func in gettimeofday time ftime
11878 do
11879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11880 echo "$as_me:$LINENO: checking for $ac_func" >&5
11881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11882 if eval "test \"\${$as_ac_var+set}\" = set"; then
11883   echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885   if test x$gcc_no_link = xyes; then
11886   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11888    { (exit 1); exit 1; }; }
11889 fi
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11898 #define $ac_func innocuous_$ac_func
11899
11900 /* System header to define __stub macros and hopefully few prototypes,
11901     which can conflict with char $ac_func (); below.
11902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11903     <limits.h> exists even on freestanding compilers.  */
11904
11905 #ifdef __STDC__
11906 # include <limits.h>
11907 #else
11908 # include <assert.h>
11909 #endif
11910
11911 #undef $ac_func
11912
11913 /* Override any gcc2 internal prototype to avoid an error.  */
11914 #ifdef __cplusplus
11915 extern "C"
11916 {
11917 #endif
11918 /* We use char because int might match the return type of a gcc2
11919    builtin and then its argument prototype would still apply.  */
11920 char $ac_func ();
11921 /* The GNU C library defines this for functions which it implements
11922     to always fail with ENOSYS.  Some functions are actually named
11923     something starting with __ and the normal name is an alias.  */
11924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11925 choke me
11926 #else
11927 char (*f) () = $ac_func;
11928 #endif
11929 #ifdef __cplusplus
11930 }
11931 #endif
11932
11933 int
11934 main ()
11935 {
11936 return f != $ac_func;
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 rm -f conftest.$ac_objext conftest$ac_exeext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11943   (eval $ac_link) 2>conftest.er1
11944   ac_status=$?
11945   grep -v '^ *+' conftest.er1 >conftest.err
11946   rm -f conftest.er1
11947   cat conftest.err >&5
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); } &&
11950          { ac_try='test -z "$ac_c_werror_flag"
11951                          || test ! -s conftest.err'
11952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953   (eval $ac_try) 2>&5
11954   ac_status=$?
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); }; } &&
11957          { ac_try='test -s conftest$ac_exeext'
11958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959   (eval $ac_try) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); }; }; then
11963   eval "$as_ac_var=yes"
11964 else
11965   echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 eval "$as_ac_var=no"
11969 fi
11970 rm -f conftest.err conftest.$ac_objext \
11971       conftest$ac_exeext conftest.$ac_ext
11972 fi
11973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976   cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11978 _ACEOF
11979  time_found=yes
11980 fi
11981 done
11982
11983    if test "$time_found" = no; then
11984       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11985 echo "$as_me: error: no function found to get the time" >&2;}
11986    { (exit 1); exit 1; }; }
11987    fi
11988
11989
11990 for ac_func in memmove
11991 do
11992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11993 echo "$as_me:$LINENO: checking for $ac_func" >&5
11994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11995 if eval "test \"\${$as_ac_var+set}\" = set"; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   if test x$gcc_no_link = xyes; then
11999   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12000 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12001    { (exit 1); exit 1; }; }
12002 fi
12003 cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12011 #define $ac_func innocuous_$ac_func
12012
12013 /* System header to define __stub macros and hopefully few prototypes,
12014     which can conflict with char $ac_func (); below.
12015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016     <limits.h> exists even on freestanding compilers.  */
12017
12018 #ifdef __STDC__
12019 # include <limits.h>
12020 #else
12021 # include <assert.h>
12022 #endif
12023
12024 #undef $ac_func
12025
12026 /* Override any gcc2 internal prototype to avoid an error.  */
12027 #ifdef __cplusplus
12028 extern "C"
12029 {
12030 #endif
12031 /* We use char because int might match the return type of a gcc2
12032    builtin and then its argument prototype would still apply.  */
12033 char $ac_func ();
12034 /* The GNU C library defines this for functions which it implements
12035     to always fail with ENOSYS.  Some functions are actually named
12036     something starting with __ and the normal name is an alias.  */
12037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12038 choke me
12039 #else
12040 char (*f) () = $ac_func;
12041 #endif
12042 #ifdef __cplusplus
12043 }
12044 #endif
12045
12046 int
12047 main ()
12048 {
12049 return f != $ac_func;
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056   (eval $ac_link) 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -z "$ac_c_werror_flag"
12064                          || test ! -s conftest.err'
12065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066   (eval $ac_try) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; } &&
12070          { ac_try='test -s conftest$ac_exeext'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   eval "$as_ac_var=yes"
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 eval "$as_ac_var=no"
12082 fi
12083 rm -f conftest.err conftest.$ac_objext \
12084       conftest$ac_exeext conftest.$ac_ext
12085 fi
12086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12088 if test `eval echo '${'$as_ac_var'}'` = yes; then
12089   cat >>confdefs.h <<_ACEOF
12090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12091 _ACEOF
12092
12093 fi
12094 done
12095
12096
12097    # We require memcpy.
12098    memcpy_found=no
12099
12100 for ac_func in memcpy
12101 do
12102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12103 echo "$as_me:$LINENO: checking for $ac_func" >&5
12104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12105 if eval "test \"\${$as_ac_var+set}\" = set"; then
12106   echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108   if test x$gcc_no_link = xyes; then
12109   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12111    { (exit 1); exit 1; }; }
12112 fi
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h.  */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h.  */
12119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12121 #define $ac_func innocuous_$ac_func
12122
12123 /* System header to define __stub macros and hopefully few prototypes,
12124     which can conflict with char $ac_func (); below.
12125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12126     <limits.h> exists even on freestanding compilers.  */
12127
12128 #ifdef __STDC__
12129 # include <limits.h>
12130 #else
12131 # include <assert.h>
12132 #endif
12133
12134 #undef $ac_func
12135
12136 /* Override any gcc2 internal prototype to avoid an error.  */
12137 #ifdef __cplusplus
12138 extern "C"
12139 {
12140 #endif
12141 /* We use char because int might match the return type of a gcc2
12142    builtin and then its argument prototype would still apply.  */
12143 char $ac_func ();
12144 /* The GNU C library defines this for functions which it implements
12145     to always fail with ENOSYS.  Some functions are actually named
12146     something starting with __ and the normal name is an alias.  */
12147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12148 choke me
12149 #else
12150 char (*f) () = $ac_func;
12151 #endif
12152 #ifdef __cplusplus
12153 }
12154 #endif
12155
12156 int
12157 main ()
12158 {
12159 return f != $ac_func;
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12166   (eval $ac_link) 2>conftest.er1
12167   ac_status=$?
12168   grep -v '^ *+' conftest.er1 >conftest.err
12169   rm -f conftest.er1
12170   cat conftest.err >&5
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); } &&
12173          { ac_try='test -z "$ac_c_werror_flag"
12174                          || test ! -s conftest.err'
12175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176   (eval $ac_try) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; } &&
12180          { ac_try='test -s conftest$ac_exeext'
12181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182   (eval $ac_try) 2>&5
12183   ac_status=$?
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); }; }; then
12186   eval "$as_ac_var=yes"
12187 else
12188   echo "$as_me: failed program was:" >&5
12189 sed 's/^/| /' conftest.$ac_ext >&5
12190
12191 eval "$as_ac_var=no"
12192 fi
12193 rm -f conftest.err conftest.$ac_objext \
12194       conftest$ac_exeext conftest.$ac_ext
12195 fi
12196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12198 if test `eval echo '${'$as_ac_var'}'` = yes; then
12199   cat >>confdefs.h <<_ACEOF
12200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12201 _ACEOF
12202  memcpy_found=yes
12203 fi
12204 done
12205
12206    if test "$memcpy_found" = no; then
12207       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12208 echo "$as_me: error: memcpy is required" >&2;}
12209    { (exit 1); exit 1; }; }
12210    fi
12211
12212    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12213 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12214 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12215   echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217   ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-ldl  $LIBS"
12219 if test x$gcc_no_link = xyes; then
12220   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12222    { (exit 1); exit 1; }; }
12223 fi
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h.  */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h.  */
12230
12231 /* Override any gcc2 internal prototype to avoid an error.  */
12232 #ifdef __cplusplus
12233 extern "C"
12234 #endif
12235 /* We use char because int might match the return type of a gcc2
12236    builtin and then its argument prototype would still apply.  */
12237 char dlopen ();
12238 int
12239 main ()
12240 {
12241 dlopen ();
12242   ;
12243   return 0;
12244 }
12245 _ACEOF
12246 rm -f conftest.$ac_objext conftest$ac_exeext
12247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12248   (eval $ac_link) 2>conftest.er1
12249   ac_status=$?
12250   grep -v '^ *+' conftest.er1 >conftest.err
12251   rm -f conftest.er1
12252   cat conftest.err >&5
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } &&
12255          { ac_try='test -z "$ac_c_werror_flag"
12256                          || test ! -s conftest.err'
12257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258   (eval $ac_try) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); }; } &&
12262          { ac_try='test -s conftest$ac_exeext'
12263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264   (eval $ac_try) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; }; then
12268   ac_cv_lib_dl_dlopen=yes
12269 else
12270   echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273 ac_cv_lib_dl_dlopen=no
12274 fi
12275 rm -f conftest.err conftest.$ac_objext \
12276       conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12278 fi
12279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12281 if test $ac_cv_lib_dl_dlopen = yes; then
12282
12283
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_DLOPEN 1
12286 _ACEOF
12287
12288 fi
12289
12290
12291    # Some library-finding code we stole from Tcl.
12292    #--------------------------------------------------------------------
12293    #    Check for the existence of the -lsocket and -lnsl libraries.
12294    #    The order here is important, so that they end up in the right
12295    #    order in the command line generated by make.  Here are some
12296    #    special considerations:
12297    #    1. Use "connect" and "accept" to check for -lsocket, and
12298    #       "gethostbyname" to check for -lnsl.
12299    #    2. Use each function name only once:  can't redo a check because
12300    #       autoconf caches the results of the last check and won't redo it.
12301    #    3. Use -lnsl and -lsocket only if they supply procedures that
12302    #       aren't already present in the normal libraries.  This is because
12303    #       IRIX 5.2 has libraries, but they aren't needed and they're
12304    #       bogus:  they goof up name resolution if used.
12305    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12306    #       To get around this problem, check for both libraries together
12307    #       if -lsocket doesn't work by itself.
12308    #--------------------------------------------------------------------
12309
12310    echo "$as_me:$LINENO: checking for socket libraries" >&5
12311 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12312 if test "${gcj_cv_lib_sockets+set}" = set; then
12313   echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315   gcj_cv_lib_sockets=
12316      gcj_checkBoth=0
12317      unset ac_cv_func_connect
12318      echo "$as_me:$LINENO: checking for connect" >&5
12319 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12320 if test "${ac_cv_func_connect+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323   if test x$gcc_no_link = xyes; then
12324   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12326    { (exit 1); exit 1; }; }
12327 fi
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h.  */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h.  */
12334 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12336 #define connect innocuous_connect
12337
12338 /* System header to define __stub macros and hopefully few prototypes,
12339     which can conflict with char connect (); below.
12340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12341     <limits.h> exists even on freestanding compilers.  */
12342
12343 #ifdef __STDC__
12344 # include <limits.h>
12345 #else
12346 # include <assert.h>
12347 #endif
12348
12349 #undef connect
12350
12351 /* Override any gcc2 internal prototype to avoid an error.  */
12352 #ifdef __cplusplus
12353 extern "C"
12354 {
12355 #endif
12356 /* We use char because int might match the return type of a gcc2
12357    builtin and then its argument prototype would still apply.  */
12358 char connect ();
12359 /* The GNU C library defines this for functions which it implements
12360     to always fail with ENOSYS.  Some functions are actually named
12361     something starting with __ and the normal name is an alias.  */
12362 #if defined (__stub_connect) || defined (__stub___connect)
12363 choke me
12364 #else
12365 char (*f) () = connect;
12366 #endif
12367 #ifdef __cplusplus
12368 }
12369 #endif
12370
12371 int
12372 main ()
12373 {
12374 return f != connect;
12375   ;
12376   return 0;
12377 }
12378 _ACEOF
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381   (eval $ac_link) 2>conftest.er1
12382   ac_status=$?
12383   grep -v '^ *+' conftest.er1 >conftest.err
12384   rm -f conftest.er1
12385   cat conftest.err >&5
12386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387   (exit $ac_status); } &&
12388          { ac_try='test -z "$ac_c_werror_flag"
12389                          || test ! -s conftest.err'
12390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391   (eval $ac_try) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; } &&
12395          { ac_try='test -s conftest$ac_exeext'
12396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397   (eval $ac_try) 2>&5
12398   ac_status=$?
12399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400   (exit $ac_status); }; }; then
12401   ac_cv_func_connect=yes
12402 else
12403   echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 ac_cv_func_connect=no
12407 fi
12408 rm -f conftest.err conftest.$ac_objext \
12409       conftest$ac_exeext conftest.$ac_ext
12410 fi
12411 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12412 echo "${ECHO_T}$ac_cv_func_connect" >&6
12413 if test $ac_cv_func_connect = yes; then
12414   gcj_checkSocket=0
12415 else
12416   gcj_checkSocket=1
12417 fi
12418
12419      if test "$gcj_checkSocket" = 1; then
12420          unset ac_cv_func_connect
12421          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12422 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12423 if test "${ac_cv_lib_socket_main+set}" = set; then
12424   echo $ECHO_N "(cached) $ECHO_C" >&6
12425 else
12426   ac_check_lib_save_LIBS=$LIBS
12427 LIBS="-lsocket  $LIBS"
12428 if test x$gcc_no_link = xyes; then
12429   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12430 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12431    { (exit 1); exit 1; }; }
12432 fi
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439
12440
12441 int
12442 main ()
12443 {
12444 main ();
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 rm -f conftest.$ac_objext conftest$ac_exeext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12451   (eval $ac_link) 2>conftest.er1
12452   ac_status=$?
12453   grep -v '^ *+' conftest.er1 >conftest.err
12454   rm -f conftest.er1
12455   cat conftest.err >&5
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); } &&
12458          { ac_try='test -z "$ac_c_werror_flag"
12459                          || test ! -s conftest.err'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; } &&
12465          { ac_try='test -s conftest$ac_exeext'
12466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467   (eval $ac_try) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; }; then
12471   ac_cv_lib_socket_main=yes
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476 ac_cv_lib_socket_main=no
12477 fi
12478 rm -f conftest.err conftest.$ac_objext \
12479       conftest$ac_exeext conftest.$ac_ext
12480 LIBS=$ac_check_lib_save_LIBS
12481 fi
12482 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12483 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12484 if test $ac_cv_lib_socket_main = yes; then
12485   gcj_cv_lib_sockets="-lsocket"
12486 else
12487   gcj_checkBoth=1
12488 fi
12489
12490      fi
12491      if test "$gcj_checkBoth" = 1; then
12492          gcj_oldLibs=$LIBS
12493          LIBS="$LIBS -lsocket -lnsl"
12494          unset ac_cv_func_accept
12495          echo "$as_me:$LINENO: checking for accept" >&5
12496 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12497 if test "${ac_cv_func_accept+set}" = set; then
12498   echo $ECHO_N "(cached) $ECHO_C" >&6
12499 else
12500   if test x$gcc_no_link = xyes; then
12501   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12502 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12503    { (exit 1); exit 1; }; }
12504 fi
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12512    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12513 #define accept innocuous_accept
12514
12515 /* System header to define __stub macros and hopefully few prototypes,
12516     which can conflict with char accept (); below.
12517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12518     <limits.h> exists even on freestanding compilers.  */
12519
12520 #ifdef __STDC__
12521 # include <limits.h>
12522 #else
12523 # include <assert.h>
12524 #endif
12525
12526 #undef accept
12527
12528 /* Override any gcc2 internal prototype to avoid an error.  */
12529 #ifdef __cplusplus
12530 extern "C"
12531 {
12532 #endif
12533 /* We use char because int might match the return type of a gcc2
12534    builtin and then its argument prototype would still apply.  */
12535 char accept ();
12536 /* The GNU C library defines this for functions which it implements
12537     to always fail with ENOSYS.  Some functions are actually named
12538     something starting with __ and the normal name is an alias.  */
12539 #if defined (__stub_accept) || defined (__stub___accept)
12540 choke me
12541 #else
12542 char (*f) () = accept;
12543 #endif
12544 #ifdef __cplusplus
12545 }
12546 #endif
12547
12548 int
12549 main ()
12550 {
12551 return f != accept;
12552   ;
12553   return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12558   (eval $ac_link) 2>conftest.er1
12559   ac_status=$?
12560   grep -v '^ *+' conftest.er1 >conftest.err
12561   rm -f conftest.er1
12562   cat conftest.err >&5
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); } &&
12565          { ac_try='test -z "$ac_c_werror_flag"
12566                          || test ! -s conftest.err'
12567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568   (eval $ac_try) 2>&5
12569   ac_status=$?
12570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571   (exit $ac_status); }; } &&
12572          { ac_try='test -s conftest$ac_exeext'
12573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574   (eval $ac_try) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); }; }; then
12578   ac_cv_func_accept=yes
12579 else
12580   echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ac_cv_func_accept=no
12584 fi
12585 rm -f conftest.err conftest.$ac_objext \
12586       conftest$ac_exeext conftest.$ac_ext
12587 fi
12588 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12589 echo "${ECHO_T}$ac_cv_func_accept" >&6
12590 if test $ac_cv_func_accept = yes; then
12591   gcj_checkNsl=0
12592                         gcj_cv_lib_sockets="-lsocket -lnsl"
12593 fi
12594
12595          unset ac_cv_func_accept
12596          LIBS=$gcj_oldLibs
12597      fi
12598      unset ac_cv_func_gethostbyname
12599      gcj_oldLibs=$LIBS
12600      LIBS="$LIBS $gcj_cv_lib_sockets"
12601      echo "$as_me:$LINENO: checking for gethostbyname" >&5
12602 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12603 if test "${ac_cv_func_gethostbyname+set}" = set; then
12604   echo $ECHO_N "(cached) $ECHO_C" >&6
12605 else
12606   if test x$gcc_no_link = xyes; then
12607   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12608 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12609    { (exit 1); exit 1; }; }
12610 fi
12611 cat >conftest.$ac_ext <<_ACEOF
12612 /* confdefs.h.  */
12613 _ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h.  */
12617 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12619 #define gethostbyname innocuous_gethostbyname
12620
12621 /* System header to define __stub macros and hopefully few prototypes,
12622     which can conflict with char gethostbyname (); below.
12623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624     <limits.h> exists even on freestanding compilers.  */
12625
12626 #ifdef __STDC__
12627 # include <limits.h>
12628 #else
12629 # include <assert.h>
12630 #endif
12631
12632 #undef gethostbyname
12633
12634 /* Override any gcc2 internal prototype to avoid an error.  */
12635 #ifdef __cplusplus
12636 extern "C"
12637 {
12638 #endif
12639 /* We use char because int might match the return type of a gcc2
12640    builtin and then its argument prototype would still apply.  */
12641 char gethostbyname ();
12642 /* The GNU C library defines this for functions which it implements
12643     to always fail with ENOSYS.  Some functions are actually named
12644     something starting with __ and the normal name is an alias.  */
12645 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12646 choke me
12647 #else
12648 char (*f) () = gethostbyname;
12649 #endif
12650 #ifdef __cplusplus
12651 }
12652 #endif
12653
12654 int
12655 main ()
12656 {
12657 return f != gethostbyname;
12658   ;
12659   return 0;
12660 }
12661 _ACEOF
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664   (eval $ac_link) 2>conftest.er1
12665   ac_status=$?
12666   grep -v '^ *+' conftest.er1 >conftest.err
12667   rm -f conftest.er1
12668   cat conftest.err >&5
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } &&
12671          { ac_try='test -z "$ac_c_werror_flag"
12672                          || test ! -s conftest.err'
12673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12674   (eval $ac_try) 2>&5
12675   ac_status=$?
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); }; } &&
12678          { ac_try='test -s conftest$ac_exeext'
12679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12680   (eval $ac_try) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); }; }; then
12684   ac_cv_func_gethostbyname=yes
12685 else
12686   echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12688
12689 ac_cv_func_gethostbyname=no
12690 fi
12691 rm -f conftest.err conftest.$ac_objext \
12692       conftest$ac_exeext conftest.$ac_ext
12693 fi
12694 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12695 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12696 if test $ac_cv_func_gethostbyname = yes; then
12697   :
12698 else
12699   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12700 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12701 if test "${ac_cv_lib_nsl_main+set}" = set; then
12702   echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704   ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-lnsl  $LIBS"
12706 if test x$gcc_no_link = xyes; then
12707   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12709    { (exit 1); exit 1; }; }
12710 fi
12711 cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h.  */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h.  */
12717
12718
12719 int
12720 main ()
12721 {
12722 main ();
12723   ;
12724   return 0;
12725 }
12726 _ACEOF
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12729   (eval $ac_link) 2>conftest.er1
12730   ac_status=$?
12731   grep -v '^ *+' conftest.er1 >conftest.err
12732   rm -f conftest.er1
12733   cat conftest.err >&5
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); } &&
12736          { ac_try='test -z "$ac_c_werror_flag"
12737                          || test ! -s conftest.err'
12738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739   (eval $ac_try) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); }; } &&
12743          { ac_try='test -s conftest$ac_exeext'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; }; then
12749   ac_cv_lib_nsl_main=yes
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 ac_cv_lib_nsl_main=no
12755 fi
12756 rm -f conftest.err conftest.$ac_objext \
12757       conftest$ac_exeext conftest.$ac_ext
12758 LIBS=$ac_check_lib_save_LIBS
12759 fi
12760 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12761 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12762 if test $ac_cv_lib_nsl_main = yes; then
12763   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12764 fi
12765
12766 fi
12767
12768      unset ac_cv_func_gethostbyname
12769      LIBS=$gcj_oldLIBS
12770
12771 fi
12772 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12773 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12774    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12775
12776    if test "$with_system_zlib" = yes; then
12777       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12778 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12779 if test "${ac_cv_lib_z_deflate+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lz  $LIBS"
12784 if test x$gcc_no_link = xyes; then
12785   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12787    { (exit 1); exit 1; }; }
12788 fi
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12795
12796 /* Override any gcc2 internal prototype to avoid an error.  */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 /* We use char because int might match the return type of a gcc2
12801    builtin and then its argument prototype would still apply.  */
12802 char deflate ();
12803 int
12804 main ()
12805 {
12806 deflate ();
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 rm -f conftest.$ac_objext conftest$ac_exeext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12813   (eval $ac_link) 2>conftest.er1
12814   ac_status=$?
12815   grep -v '^ *+' conftest.er1 >conftest.err
12816   rm -f conftest.er1
12817   cat conftest.err >&5
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -z "$ac_c_werror_flag"
12821                          || test ! -s conftest.err'
12822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12823   (eval $ac_try) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); }; } &&
12827          { ac_try='test -s conftest$ac_exeext'
12828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829   (eval $ac_try) 2>&5
12830   ac_status=$?
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); }; }; then
12833   ac_cv_lib_z_deflate=yes
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_cv_lib_z_deflate=no
12839 fi
12840 rm -f conftest.err conftest.$ac_objext \
12841       conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12843 fi
12844 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12845 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12846 if test $ac_cv_lib_z_deflate = yes; then
12847   ZLIBSPEC=-lz
12848 else
12849   ZLIBSPEC=
12850 fi
12851
12852    fi
12853
12854    # Test for Gtk stuff, if asked for.
12855    if test "$use_gtk_awt" = yes; then
12856
12857   succeeded=no
12858
12859   if test -z "$PKG_CONFIG"; then
12860     # Extract the first word of "pkg-config", so it can be a program name with args.
12861 set dummy pkg-config; ac_word=$2
12862 echo "$as_me:$LINENO: checking for $ac_word" >&5
12863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12864 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12865   echo $ECHO_N "(cached) $ECHO_C" >&6
12866 else
12867   case $PKG_CONFIG in
12868   [\\/]* | ?:[\\/]*)
12869   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12870   ;;
12871   *)
12872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12874 do
12875   IFS=$as_save_IFS
12876   test -z "$as_dir" && as_dir=.
12877   for ac_exec_ext in '' $ac_executable_extensions; do
12878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12879     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12881     break 2
12882   fi
12883 done
12884 done
12885
12886   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12887   ;;
12888 esac
12889 fi
12890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12891
12892 if test -n "$PKG_CONFIG"; then
12893   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12894 echo "${ECHO_T}$PKG_CONFIG" >&6
12895 else
12896   echo "$as_me:$LINENO: result: no" >&5
12897 echo "${ECHO_T}no" >&6
12898 fi
12899
12900   fi
12901
12902   if test "$PKG_CONFIG" = "no" ; then
12903      echo "*** The pkg-config script could not be found. Make sure it is"
12904      echo "*** in your path, or set the PKG_CONFIG environment variable"
12905      echo "*** to the full path to pkg-config."
12906      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12907   else
12908      PKG_CONFIG_MIN_VERSION=0.9.0
12909      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12910         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12911 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12912
12913         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12914             echo "$as_me:$LINENO: result: yes" >&5
12915 echo "${ECHO_T}yes" >&6
12916             succeeded=yes
12917
12918             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12919 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12920             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12921             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12922 echo "${ECHO_T}$GTK_CFLAGS" >&6
12923
12924             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12925 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12926             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12927             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12928 echo "${ECHO_T}$GTK_LIBS" >&6
12929         else
12930             GTK_CFLAGS=""
12931             GTK_LIBS=""
12932             ## If we have a custom action on failure, don't print errors, but
12933             ## do set a variable so people can do so.
12934             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12935             echo $GTK_PKG_ERRORS
12936         fi
12937
12938
12939
12940      else
12941         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12942         echo "*** See http://www.freedesktop.org/software/pkgconfig"
12943      fi
12944   fi
12945
12946   if test $succeeded = yes; then
12947      :
12948   else
12949      { { 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
12950 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;}
12951    { (exit 1); exit 1; }; }
12952   fi
12953
12954
12955
12956
12957
12958   succeeded=no
12959
12960   if test -z "$PKG_CONFIG"; then
12961     # Extract the first word of "pkg-config", so it can be a program name with args.
12962 set dummy pkg-config; ac_word=$2
12963 echo "$as_me:$LINENO: checking for $ac_word" >&5
12964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12966   echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968   case $PKG_CONFIG in
12969   [\\/]* | ?:[\\/]*)
12970   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12971   ;;
12972   *)
12973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12975 do
12976   IFS=$as_save_IFS
12977   test -z "$as_dir" && as_dir=.
12978   for ac_exec_ext in '' $ac_executable_extensions; do
12979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12980     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12982     break 2
12983   fi
12984 done
12985 done
12986
12987   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12988   ;;
12989 esac
12990 fi
12991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12992
12993 if test -n "$PKG_CONFIG"; then
12994   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12995 echo "${ECHO_T}$PKG_CONFIG" >&6
12996 else
12997   echo "$as_me:$LINENO: result: no" >&5
12998 echo "${ECHO_T}no" >&6
12999 fi
13000
13001   fi
13002
13003   if test "$PKG_CONFIG" = "no" ; then
13004      echo "*** The pkg-config script could not be found. Make sure it is"
13005      echo "*** in your path, or set the PKG_CONFIG environment variable"
13006      echo "*** to the full path to pkg-config."
13007      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13008   else
13009      PKG_CONFIG_MIN_VERSION=0.9.0
13010      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13011         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13012 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13013
13014         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13015             echo "$as_me:$LINENO: result: yes" >&5
13016 echo "${ECHO_T}yes" >&6
13017             succeeded=yes
13018
13019             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13020 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13021             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13022             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13023 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13024
13025             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13026 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13027             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13028             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13029 echo "${ECHO_T}$GLIB_LIBS" >&6
13030         else
13031             GLIB_CFLAGS=""
13032             GLIB_LIBS=""
13033             ## If we have a custom action on failure, don't print errors, but
13034             ## do set a variable so people can do so.
13035             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13036             echo $GLIB_PKG_ERRORS
13037         fi
13038
13039
13040
13041      else
13042         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13043         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13044      fi
13045   fi
13046
13047   if test $succeeded = yes; then
13048      :
13049   else
13050      { { 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
13051 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;}
13052    { (exit 1); exit 1; }; }
13053   fi
13054
13055
13056
13057
13058
13059   succeeded=no
13060
13061   if test -z "$PKG_CONFIG"; then
13062     # Extract the first word of "pkg-config", so it can be a program name with args.
13063 set dummy pkg-config; ac_word=$2
13064 echo "$as_me:$LINENO: checking for $ac_word" >&5
13065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13066 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   case $PKG_CONFIG in
13070   [\\/]* | ?:[\\/]*)
13071   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13072   ;;
13073   *)
13074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13076 do
13077   IFS=$as_save_IFS
13078   test -z "$as_dir" && as_dir=.
13079   for ac_exec_ext in '' $ac_executable_extensions; do
13080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13081     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13083     break 2
13084   fi
13085 done
13086 done
13087
13088   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13089   ;;
13090 esac
13091 fi
13092 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13093
13094 if test -n "$PKG_CONFIG"; then
13095   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13096 echo "${ECHO_T}$PKG_CONFIG" >&6
13097 else
13098   echo "$as_me:$LINENO: result: no" >&5
13099 echo "${ECHO_T}no" >&6
13100 fi
13101
13102   fi
13103
13104   if test "$PKG_CONFIG" = "no" ; then
13105      echo "*** The pkg-config script could not be found. Make sure it is"
13106      echo "*** in your path, or set the PKG_CONFIG environment variable"
13107      echo "*** to the full path to pkg-config."
13108      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13109   else
13110      PKG_CONFIG_MIN_VERSION=0.9.0
13111      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13112         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13113 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13114
13115         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13116             echo "$as_me:$LINENO: result: yes" >&5
13117 echo "${ECHO_T}yes" >&6
13118             succeeded=yes
13119
13120             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13121 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13122             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13123             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13124 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13125
13126             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13127 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13128             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13129             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13130 echo "${ECHO_T}$LIBART_LIBS" >&6
13131         else
13132             LIBART_CFLAGS=""
13133             LIBART_LIBS=""
13134             ## If we have a custom action on failure, don't print errors, but
13135             ## do set a variable so people can do so.
13136             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13137             echo $LIBART_PKG_ERRORS
13138         fi
13139
13140
13141
13142      else
13143         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13144         echo "*** See http://www.freedesktop.org/software/pkgconfig"
13145      fi
13146   fi
13147
13148   if test $succeeded = yes; then
13149      :
13150   else
13151      { { 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
13152 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;}
13153    { (exit 1); exit 1; }; }
13154   fi
13155
13156
13157
13158
13159       # We require the XTest Extension to support java.awt.Robot.
13160       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13161 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13162 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   ac_check_lib_save_LIBS=$LIBS
13166 LIBS="-lXtst ${X_LIBS} $LIBS"
13167 if test x$gcc_no_link = xyes; then
13168   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13170    { (exit 1); exit 1; }; }
13171 fi
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h.  */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h.  */
13178
13179 /* Override any gcc2 internal prototype to avoid an error.  */
13180 #ifdef __cplusplus
13181 extern "C"
13182 #endif
13183 /* We use char because int might match the return type of a gcc2
13184    builtin and then its argument prototype would still apply.  */
13185 char XTestQueryExtension ();
13186 int
13187 main ()
13188 {
13189 XTestQueryExtension ();
13190   ;
13191   return 0;
13192 }
13193 _ACEOF
13194 rm -f conftest.$ac_objext conftest$ac_exeext
13195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13196   (eval $ac_link) 2>conftest.er1
13197   ac_status=$?
13198   grep -v '^ *+' conftest.er1 >conftest.err
13199   rm -f conftest.er1
13200   cat conftest.err >&5
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); } &&
13203          { ac_try='test -z "$ac_c_werror_flag"
13204                          || test ! -s conftest.err'
13205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206   (eval $ac_try) 2>&5
13207   ac_status=$?
13208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209   (exit $ac_status); }; } &&
13210          { ac_try='test -s conftest$ac_exeext'
13211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212   (eval $ac_try) 2>&5
13213   ac_status=$?
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); }; }; then
13216   ac_cv_lib_Xtst_XTestQueryExtension=yes
13217 else
13218   echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_cv_lib_Xtst_XTestQueryExtension=no
13222 fi
13223 rm -f conftest.err conftest.$ac_objext \
13224       conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13226 fi
13227 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13228 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13229 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13230   true
13231 else
13232   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13233 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13234    { (exit 1); exit 1; }; }
13235 fi
13236
13237    fi
13238
13239    # On Solaris, and maybe other architectures, the Boehm collector
13240    # requires -ldl.
13241    if test "$GC" = boehm; then
13242       echo "$as_me:$LINENO: checking for main in -ldl" >&5
13243 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13244 if test "${ac_cv_lib_dl_main+set}" = set; then
13245   echo $ECHO_N "(cached) $ECHO_C" >&6
13246 else
13247   ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-ldl  $LIBS"
13249 if test x$gcc_no_link = xyes; then
13250   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13251 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13252    { (exit 1); exit 1; }; }
13253 fi
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h.  */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h.  */
13260
13261
13262 int
13263 main ()
13264 {
13265 main ();
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272   (eval $ac_link) 2>conftest.er1
13273   ac_status=$?
13274   grep -v '^ *+' conftest.er1 >conftest.err
13275   rm -f conftest.er1
13276   cat conftest.err >&5
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } &&
13279          { ac_try='test -z "$ac_c_werror_flag"
13280                          || test ! -s conftest.err'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; } &&
13286          { ac_try='test -s conftest$ac_exeext'
13287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288   (eval $ac_try) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); }; }; then
13292   ac_cv_lib_dl_main=yes
13293 else
13294   echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_cv_lib_dl_main=no
13298 fi
13299 rm -f conftest.err conftest.$ac_objext \
13300       conftest$ac_exeext conftest.$ac_ext
13301 LIBS=$ac_check_lib_save_LIBS
13302 fi
13303 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13304 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13305 if test $ac_cv_lib_dl_main = yes; then
13306   SYSTEMSPEC="$SYSTEMSPEC -ldl"
13307 fi
13308
13309    fi
13310 fi
13311
13312
13313 if test "$supply_backtrace" = yes; then
13314   SUPPLY_BACKTRACE_TRUE=
13315   SUPPLY_BACKTRACE_FALSE='#'
13316 else
13317   SUPPLY_BACKTRACE_TRUE='#'
13318   SUPPLY_BACKTRACE_FALSE=
13319 fi
13320
13321
13322 if test -z "${with_multisubdir}"; then
13323    builddotdot=.
13324 else
13325    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13326 fi
13327
13328 NATIVE=yes
13329
13330 # Which gcj do we use?
13331 which_gcj=default
13332 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13333 if test -n "${with_cross_host}"; then
13334   # We are being configured with a cross compiler. We can't
13335   # use ac_exeext, because that is for the target platform.
13336   NATIVE=no
13337   cross_host_exeext=
13338   case "${with_cross_host}" in
13339      *mingw* | *cygwin*)
13340          cross_host_exeext=.exe
13341      ;;
13342   esac
13343   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13344      if test x"$build_noncanonical" = x"$with_cross_host"; then
13345         # Ordinary cross (host!=target and host=build)
13346         which_gcj=built
13347      else
13348         # Canadian cross (host!=target and host!=build)
13349         which_gcj=cross
13350      fi
13351   else
13352      which_gcj=cross
13353   fi
13354 else
13355   # We are being configured with a native or crossed-native compiler
13356   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13357      if test x"$build" = x"$host"; then
13358         # True native build (host=target and host=build)
13359         which_gcj=built
13360      else
13361         # Crossed-native build (host=target and host!=build)
13362         which_gcj=cross
13363      fi
13364   else
13365      which_gcj=path
13366   fi
13367 fi
13368 case "${which_gcj}" in
13369    built)
13370       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13371       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13372       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13373    ;;
13374    cross)
13375       if test "x${with_newlib}" = "xyes"; then
13376          # FIXME (comment): Why is this needed?
13377          GCC_UNWIND_INCLUDE=
13378          GCJ="${target_noncanonical}-gcj"
13379       else
13380          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13381       fi
13382       ZIP='$(target_noncanonical)-fastjar'
13383       GCJH='$(target_noncanonical)-gcjh'
13384    ;;
13385    path)
13386       GCJ="gcj -B`${PWDCMD-pwd}`/"
13387       ## In this case, gcj is found outside the build tree.  However, zip is
13388       ## found in the build tree.
13389       ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13390       GCJH=gcjh
13391    ;;
13392 esac
13393
13394
13395
13396
13397 # Create it, so that compile/link tests don't fail
13398 test -f libgcj.spec || touch libgcj.spec
13399
13400 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13401 case $build in
13402     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13403     *)         CLASSPATH_SEPARATOR=':' ;;
13404 esac
13405
13406
13407 # We must search the source tree for java.lang, since we still don't
13408 # have libgcj.jar nor java/lang/*.class
13409 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13410 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13411
13412 # Since some classes depend on this one, we need its source available
13413 # before we can do any GCJ compilation test :-(
13414 if test ! -f gnu/classpath/Configuration.java; then
13415   test -d gnu || mkdir gnu
13416   test -d gnu/classpath || mkdir gnu/classpath
13417   sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13418       -e 's,@TOOLKIT@,$TOOLKIT,' \
13419         < $srcdir/gnu/classpath/Configuration.java.in \
13420         > gnu/classpath/Configuration.java
13421   # We do not want to redirect the output of the grep below to /dev/null,
13422   # but we add /dev/null to the input list so that grep will print the
13423   # filename of Configuration.java in case it finds any matches.
13424   if grep @ gnu/classpath/Configuration.java /dev/null; then
13425     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13426 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13427    { (exit 1); exit 1; }; }
13428   fi
13429 fi
13430
13431 if test -n "$ac_tool_prefix"; then
13432   # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13433 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13434 echo "$as_me:$LINENO: checking for $ac_word" >&5
13435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13436 if test "${ac_cv_prog_GCJ+set}" = set; then
13437   echo $ECHO_N "(cached) $ECHO_C" >&6
13438 else
13439   if test -n "$GCJ"; then
13440   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13441 else
13442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13443 for as_dir in $PATH
13444 do
13445   IFS=$as_save_IFS
13446   test -z "$as_dir" && as_dir=.
13447   for ac_exec_ext in '' $ac_executable_extensions; do
13448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13449     ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13451     break 2
13452   fi
13453 done
13454 done
13455
13456 fi
13457 fi
13458 GCJ=$ac_cv_prog_GCJ
13459 if test -n "$GCJ"; then
13460   echo "$as_me:$LINENO: result: $GCJ" >&5
13461 echo "${ECHO_T}$GCJ" >&6
13462 else
13463   echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13465 fi
13466
13467 fi
13468 if test -z "$ac_cv_prog_GCJ"; then
13469   ac_ct_GCJ=$GCJ
13470   # Extract the first word of "gcj", so it can be a program name with args.
13471 set dummy gcj; ac_word=$2
13472 echo "$as_me:$LINENO: checking for $ac_word" >&5
13473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13474 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   if test -n "$ac_ct_GCJ"; then
13478   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13479 else
13480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481 for as_dir in $PATH
13482 do
13483   IFS=$as_save_IFS
13484   test -z "$as_dir" && as_dir=.
13485   for ac_exec_ext in '' $ac_executable_extensions; do
13486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13487     ac_cv_prog_ac_ct_GCJ="gcj"
13488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13489     break 2
13490   fi
13491 done
13492 done
13493
13494   test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13495 fi
13496 fi
13497 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13498 if test -n "$ac_ct_GCJ"; then
13499   echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13500 echo "${ECHO_T}$ac_ct_GCJ" >&6
13501 else
13502   echo "$as_me:$LINENO: result: no" >&5
13503 echo "${ECHO_T}no" >&6
13504 fi
13505
13506   GCJ=$ac_ct_GCJ
13507 else
13508   GCJ="$ac_cv_prog_GCJ"
13509 fi
13510
13511   test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13512
13513
13514
13515
13516 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13517
13518 echo "$as_me:$LINENO: checking for void *" >&5
13519 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13520 if test "${ac_cv_type_void_p+set}" = set; then
13521   echo $ECHO_N "(cached) $ECHO_C" >&6
13522 else
13523   cat >conftest.$ac_ext <<_ACEOF
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 $ac_includes_default
13530 int
13531 main ()
13532 {
13533 if ((void * *) 0)
13534   return 0;
13535 if (sizeof (void *))
13536   return 0;
13537   ;
13538   return 0;
13539 }
13540 _ACEOF
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543   (eval $ac_compile) 2>conftest.er1
13544   ac_status=$?
13545   grep -v '^ *+' conftest.er1 >conftest.err
13546   rm -f conftest.er1
13547   cat conftest.err >&5
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); } &&
13550          { ac_try='test -z "$ac_c_werror_flag"
13551                          || test ! -s conftest.err'
13552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553   (eval $ac_try) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); }; } &&
13557          { ac_try='test -s conftest.$ac_objext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   ac_cv_type_void_p=yes
13564 else
13565   echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568 ac_cv_type_void_p=no
13569 fi
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13571 fi
13572 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13573 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13574
13575 echo "$as_me:$LINENO: checking size of void *" >&5
13576 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13577 if test "${ac_cv_sizeof_void_p+set}" = set; then
13578   echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580   if test "$ac_cv_type_void_p" = yes; then
13581   # The cast to unsigned long works around a bug in the HP C Compiler
13582   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13583   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13584   # This bug is HP SR number 8606223364.
13585   if test "$cross_compiling" = yes; then
13586   # Depending upon the size, compute the lo and hi bounds.
13587 cat >conftest.$ac_ext <<_ACEOF
13588 /* confdefs.h.  */
13589 _ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h.  */
13593 $ac_includes_default
13594 int
13595 main ()
13596 {
13597 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13598 test_array [0] = 0
13599
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606   (eval $ac_compile) 2>conftest.er1
13607   ac_status=$?
13608   grep -v '^ *+' conftest.er1 >conftest.err
13609   rm -f conftest.er1
13610   cat conftest.err >&5
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -z "$ac_c_werror_flag"
13614                          || test ! -s conftest.err'
13615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616   (eval $ac_try) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); }; } &&
13620          { ac_try='test -s conftest.$ac_objext'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; }; then
13626   ac_lo=0 ac_mid=0
13627   while :; do
13628     cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 $ac_includes_default
13635 int
13636 main ()
13637 {
13638 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13639 test_array [0] = 0
13640
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647   (eval $ac_compile) 2>conftest.er1
13648   ac_status=$?
13649   grep -v '^ *+' conftest.er1 >conftest.err
13650   rm -f conftest.er1
13651   cat conftest.err >&5
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); } &&
13654          { ac_try='test -z "$ac_c_werror_flag"
13655                          || test ! -s conftest.err'
13656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657   (eval $ac_try) 2>&5
13658   ac_status=$?
13659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660   (exit $ac_status); }; } &&
13661          { ac_try='test -s conftest.$ac_objext'
13662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663   (eval $ac_try) 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; }; then
13667   ac_hi=$ac_mid; break
13668 else
13669   echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_lo=`expr $ac_mid + 1`
13673                     if test $ac_lo -le $ac_mid; then
13674                       ac_lo= ac_hi=
13675                       break
13676                     fi
13677                     ac_mid=`expr 2 '*' $ac_mid + 1`
13678 fi
13679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13680   done
13681 else
13682   echo "$as_me: failed program was:" >&5
13683 sed 's/^/| /' conftest.$ac_ext >&5
13684
13685 cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691 $ac_includes_default
13692 int
13693 main ()
13694 {
13695 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13696 test_array [0] = 0
13697
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 rm -f conftest.$ac_objext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704   (eval $ac_compile) 2>conftest.er1
13705   ac_status=$?
13706   grep -v '^ *+' conftest.er1 >conftest.err
13707   rm -f conftest.er1
13708   cat conftest.err >&5
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); } &&
13711          { ac_try='test -z "$ac_c_werror_flag"
13712                          || test ! -s conftest.err'
13713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714   (eval $ac_try) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; } &&
13718          { ac_try='test -s conftest.$ac_objext'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; }; then
13724   ac_hi=-1 ac_mid=-1
13725   while :; do
13726     cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 $ac_includes_default
13733 int
13734 main ()
13735 {
13736 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13737 test_array [0] = 0
13738
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 rm -f conftest.$ac_objext
13744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13745   (eval $ac_compile) 2>conftest.er1
13746   ac_status=$?
13747   grep -v '^ *+' conftest.er1 >conftest.err
13748   rm -f conftest.er1
13749   cat conftest.err >&5
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); } &&
13752          { ac_try='test -z "$ac_c_werror_flag"
13753                          || test ! -s conftest.err'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest.$ac_objext'
13760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761   (eval $ac_try) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; }; then
13765   ac_lo=$ac_mid; break
13766 else
13767   echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770 ac_hi=`expr '(' $ac_mid ')' - 1`
13771                        if test $ac_mid -le $ac_hi; then
13772                          ac_lo= ac_hi=
13773                          break
13774                        fi
13775                        ac_mid=`expr 2 '*' $ac_mid`
13776 fi
13777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13778   done
13779 else
13780   echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 ac_lo= ac_hi=
13784 fi
13785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13786 fi
13787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13788 # Binary search between lo and hi bounds.
13789 while test "x$ac_lo" != "x$ac_hi"; do
13790   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13791   cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h.  */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h.  */
13797 $ac_includes_default
13798 int
13799 main ()
13800 {
13801 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13802 test_array [0] = 0
13803
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 rm -f conftest.$ac_objext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13810   (eval $ac_compile) 2>conftest.er1
13811   ac_status=$?
13812   grep -v '^ *+' conftest.er1 >conftest.err
13813   rm -f conftest.er1
13814   cat conftest.err >&5
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } &&
13817          { ac_try='test -z "$ac_c_werror_flag"
13818                          || test ! -s conftest.err'
13819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820   (eval $ac_try) 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; } &&
13824          { ac_try='test -s conftest.$ac_objext'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; }; then
13830   ac_hi=$ac_mid
13831 else
13832   echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 ac_lo=`expr '(' $ac_mid ')' + 1`
13836 fi
13837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13838 done
13839 case $ac_lo in
13840 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13841 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13842 See \`config.log' for more details." >&5
13843 echo "$as_me: error: cannot compute sizeof (void *), 77
13844 See \`config.log' for more details." >&2;}
13845    { (exit 1); exit 1; }; } ;;
13846 esac
13847 else
13848   if test "$cross_compiling" = yes; then
13849   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13850 See \`config.log' for more details." >&5
13851 echo "$as_me: error: cannot run test program while cross compiling
13852 See \`config.log' for more details." >&2;}
13853    { (exit 1); exit 1; }; }
13854 else
13855   cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861 $ac_includes_default
13862 long longval () { return (long) (sizeof (void *)); }
13863 unsigned long ulongval () { return (long) (sizeof (void *)); }
13864 #include <stdio.h>
13865 #include <stdlib.h>
13866 int
13867 main ()
13868 {
13869
13870   FILE *f = fopen ("conftest.val", "w");
13871   if (! f)
13872     exit (1);
13873   if (((long) (sizeof (void *))) < 0)
13874     {
13875       long i = longval ();
13876       if (i != ((long) (sizeof (void *))))
13877         exit (1);
13878       fprintf (f, "%ld\n", i);
13879     }
13880   else
13881     {
13882       unsigned long i = ulongval ();
13883       if (i != ((long) (sizeof (void *))))
13884         exit (1);
13885       fprintf (f, "%lu\n", i);
13886     }
13887   exit (ferror (f) || fclose (f) != 0);
13888
13889   ;
13890   return 0;
13891 }
13892 _ACEOF
13893 rm -f conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895   (eval $ac_link) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900   (eval $ac_try) 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; }; then
13904   ac_cv_sizeof_void_p=`cat conftest.val`
13905 else
13906   echo "$as_me: program exited with status $ac_status" >&5
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910 ( exit $ac_status )
13911 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13912 See \`config.log' for more details." >&5
13913 echo "$as_me: error: cannot compute sizeof (void *), 77
13914 See \`config.log' for more details." >&2;}
13915    { (exit 1); exit 1; }; }
13916 fi
13917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13918 fi
13919 fi
13920 rm -f conftest.val
13921 else
13922   ac_cv_sizeof_void_p=0
13923 fi
13924 fi
13925 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13926 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13927 cat >>confdefs.h <<_ACEOF
13928 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13929 _ACEOF
13930
13931
13932
13933 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13934 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13935 if test "${ac_cv_c_bigendian+set}" = set; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   # See if sys/param.h defines the BYTE_ORDER macro.
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h.  */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h.  */
13945 #include <sys/types.h>
13946 #include <sys/param.h>
13947
13948 int
13949 main ()
13950 {
13951 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13952  bogus endian macros
13953 #endif
13954
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961   (eval $ac_compile) 2>conftest.er1
13962   ac_status=$?
13963   grep -v '^ *+' conftest.er1 >conftest.err
13964   rm -f conftest.er1
13965   cat conftest.err >&5
13966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967   (exit $ac_status); } &&
13968          { ac_try='test -z "$ac_c_werror_flag"
13969                          || test ! -s conftest.err'
13970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971   (eval $ac_try) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; } &&
13975          { ac_try='test -s conftest.$ac_objext'
13976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977   (eval $ac_try) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; }; then
13981   # It does; now see whether it defined to BIG_ENDIAN or not.
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h.  */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h.  */
13988 #include <sys/types.h>
13989 #include <sys/param.h>
13990
13991 int
13992 main ()
13993 {
13994 #if BYTE_ORDER != BIG_ENDIAN
13995  not big endian
13996 #endif
13997
13998   ;
13999   return 0;
14000 }
14001 _ACEOF
14002 rm -f conftest.$ac_objext
14003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14004   (eval $ac_compile) 2>conftest.er1
14005   ac_status=$?
14006   grep -v '^ *+' conftest.er1 >conftest.err
14007   rm -f conftest.er1
14008   cat conftest.err >&5
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); } &&
14011          { ac_try='test -z "$ac_c_werror_flag"
14012                          || test ! -s conftest.err'
14013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014   (eval $ac_try) 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); }; } &&
14018          { ac_try='test -s conftest.$ac_objext'
14019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020   (eval $ac_try) 2>&5
14021   ac_status=$?
14022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023   (exit $ac_status); }; }; then
14024   ac_cv_c_bigendian=yes
14025 else
14026   echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029 ac_cv_c_bigendian=no
14030 fi
14031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 # It does not; compile a test program.
14037 if test "$cross_compiling" = yes; then
14038   # try to guess the endianness by grepping values into an object file
14039   ac_cv_c_bigendian=unknown
14040   cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14047 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14048 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14049 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14050 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14051 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14052 int
14053 main ()
14054 {
14055  _ascii (); _ebcdic ();
14056   ;
14057   return 0;
14058 }
14059 _ACEOF
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14062   (eval $ac_compile) 2>conftest.er1
14063   ac_status=$?
14064   grep -v '^ *+' conftest.er1 >conftest.err
14065   rm -f conftest.er1
14066   cat conftest.err >&5
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } &&
14069          { ac_try='test -z "$ac_c_werror_flag"
14070                          || test ! -s conftest.err'
14071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14072   (eval $ac_try) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14083   ac_cv_c_bigendian=yes
14084 fi
14085 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14086   if test "$ac_cv_c_bigendian" = unknown; then
14087     ac_cv_c_bigendian=no
14088   else
14089     # finding both strings is unlikely to happen, but who knows?
14090     ac_cv_c_bigendian=unknown
14091   fi
14092 fi
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 fi
14098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14099 else
14100   cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 int
14107 main ()
14108 {
14109   /* Are we little or big endian?  From Harbison&Steele.  */
14110   union
14111   {
14112     long l;
14113     char c[sizeof (long)];
14114   } u;
14115   u.l = 1;
14116   exit (u.c[sizeof (long) - 1] == 1);
14117 }
14118 _ACEOF
14119 rm -f conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121   (eval $ac_link) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126   (eval $ac_try) 2>&5
14127   ac_status=$?
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); }; }; then
14130   ac_cv_c_bigendian=no
14131 else
14132   echo "$as_me: program exited with status $ac_status" >&5
14133 echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 ( exit $ac_status )
14137 ac_cv_c_bigendian=yes
14138 fi
14139 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14140 fi
14141 fi
14142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14143 fi
14144 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14145 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14146 case $ac_cv_c_bigendian in
14147   yes)
14148
14149 cat >>confdefs.h <<\_ACEOF
14150 #define WORDS_BIGENDIAN 1
14151 _ACEOF
14152  ;;
14153   no)
14154      ;;
14155   *)
14156     { { echo "$as_me:$LINENO: error: unknown endianness
14157 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14158 echo "$as_me: error: unknown endianness
14159 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14160    { (exit 1); exit 1; }; } ;;
14161 esac
14162
14163
14164 ZLIBS=
14165 SYS_ZLIBS=
14166 ZINCS=
14167
14168 if test -z "$ZLIBSPEC"; then
14169    # Use zlib from the GCC tree.
14170    ZINCS='-I$(top_srcdir)/../zlib'
14171    ZLIBS=../zlib/libzgcj_convenience.la
14172 else
14173    # System's zlib.
14174    SYS_ZLIBS="$ZLIBSPEC"
14175 fi
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186 if test "$NATIVE" = yes; then
14187   NATIVE_TRUE=
14188   NATIVE_FALSE='#'
14189 else
14190   NATIVE_TRUE='#'
14191   NATIVE_FALSE=
14192 fi
14193
14194
14195
14196 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14197   NEEDS_DATA_START_TRUE=
14198   NEEDS_DATA_START_FALSE='#'
14199 else
14200   NEEDS_DATA_START_TRUE='#'
14201   NEEDS_DATA_START_FALSE=
14202 fi
14203
14204
14205
14206 # Process the option "--enable-version-specific-runtime-libs"
14207 # Calculate toolexeclibdir
14208 case ${version_specific_libs} in
14209   yes)
14210     # Need the gcc compiler version to know where to install libraries
14211     # and header files if --enable-version-specific-runtime-libs option
14212     # is selected.
14213     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14214     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14215     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14216     toolexeclibdir=$toolexecmainlibdir
14217     ;;
14218   no)
14219     if test -n "$with_cross_host" &&
14220        test x"$with_cross_host" != x"no"; then
14221       # Install a library built with a cross compiler in tooldir, not libdir.
14222       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14223       toolexecmainlibdir='$(toolexecdir)/lib'
14224     else
14225       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14226       toolexecmainlibdir='$(libdir)'
14227     fi
14228     multi_os_directory=`$CC -print-multi-os-directory`
14229     case $multi_os_directory in
14230       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14231       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14232     esac
14233     ;;
14234 esac
14235
14236
14237
14238
14239 # Determine gcj version number.
14240 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14241 GCJVERSION=$gcjversion
14242
14243
14244 cat >>confdefs.h <<_ACEOF
14245 #define GCJVERSION "$GCJVERSION"
14246 _ACEOF
14247
14248
14249
14250 cat >>confdefs.h <<\_ACEOF
14251 #define JV_VERSION "1.4.2"
14252 _ACEOF
14253
14254
14255 cat >>confdefs.h <<\_ACEOF
14256 #define JV_API_VERSION "1.4"
14257 _ACEOF
14258
14259
14260
14261 case "${with_gxx_include_dir}" in
14262   yes)
14263     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14264 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14265    { (exit 1); exit 1; }; }
14266     ;;
14267   no | "")
14268     case "${enable_version_specific_runtime_libs}" in
14269       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14270       *)
14271         libstdcxx_incdir='c++/$(gcc_version)'
14272         gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14273     esac ;;
14274   *) gxx_include_dir=${with_gxx_include_dir} ;;
14275 esac
14276
14277
14278
14279
14280 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14281 # On that system, sys/ioctl.h will not include sys/filio.h unless
14282 # BSD_COMP is defined; just including sys/filio.h is simpler.
14283 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14284 # for now.  If you change this, you also must update natFile.cc.
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14306                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14307                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14308                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
14309                   dirent.h
14310 do
14311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14313   echo "$as_me:$LINENO: checking for $ac_header" >&5
14314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14316   echo $ECHO_N "(cached) $ECHO_C" >&6
14317 fi
14318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14320 else
14321   # Is the header compilable?
14322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h.  */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h.  */
14330 $ac_includes_default
14331 #include <$ac_header>
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335   (eval $ac_compile) 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } &&
14342          { ac_try='test -z "$ac_c_werror_flag"
14343                          || test ! -s conftest.err'
14344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345   (eval $ac_try) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; } &&
14349          { ac_try='test -s conftest.$ac_objext'
14350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351   (eval $ac_try) 2>&5
14352   ac_status=$?
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); }; }; then
14355   ac_header_compiler=yes
14356 else
14357   echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14359
14360 ac_header_compiler=no
14361 fi
14362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14364 echo "${ECHO_T}$ac_header_compiler" >&6
14365
14366 # Is the header present?
14367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14369 cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h.  */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h.  */
14375 #include <$ac_header>
14376 _ACEOF
14377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14378   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } >/dev/null; then
14385   if test -s conftest.err; then
14386     ac_cpp_err=$ac_c_preproc_warn_flag
14387     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14388   else
14389     ac_cpp_err=
14390   fi
14391 else
14392   ac_cpp_err=yes
14393 fi
14394 if test -z "$ac_cpp_err"; then
14395   ac_header_preproc=yes
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400   ac_header_preproc=no
14401 fi
14402 rm -f conftest.err conftest.$ac_ext
14403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14404 echo "${ECHO_T}$ac_header_preproc" >&6
14405
14406 # So?  What about this header?
14407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14408   yes:no: )
14409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14413     ac_header_preproc=yes
14414     ;;
14415   no:yes:* )
14416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14428     (
14429       cat <<\_ASBOX
14430 ## ---------------------------------- ##
14431 ## Report this to the libjava lists.  ##
14432 ## ---------------------------------- ##
14433 _ASBOX
14434     ) |
14435       sed "s/^/$as_me: WARNING:     /" >&2
14436     ;;
14437 esac
14438 echo "$as_me:$LINENO: checking for $ac_header" >&5
14439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14441   echo $ECHO_N "(cached) $ECHO_C" >&6
14442 else
14443   eval "$as_ac_Header=\$ac_header_preproc"
14444 fi
14445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14447
14448 fi
14449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14450   cat >>confdefs.h <<_ACEOF
14451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14452 _ACEOF
14453
14454 fi
14455
14456 done
14457
14458
14459 for ac_header in inttypes.h
14460 do
14461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14463   echo "$as_me:$LINENO: checking for $ac_header" >&5
14464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14466   echo $ECHO_N "(cached) $ECHO_C" >&6
14467 fi
14468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14470 else
14471   # Is the header compilable?
14472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14473 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
14481 #include <$ac_header>
14482 _ACEOF
14483 rm -f conftest.$ac_objext
14484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14485   (eval $ac_compile) 2>conftest.er1
14486   ac_status=$?
14487   grep -v '^ *+' conftest.er1 >conftest.err
14488   rm -f conftest.er1
14489   cat conftest.err >&5
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); } &&
14492          { ac_try='test -z "$ac_c_werror_flag"
14493                          || test ! -s conftest.err'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; } &&
14499          { ac_try='test -s conftest.$ac_objext'
14500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501   (eval $ac_try) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; }; then
14505   ac_header_compiler=yes
14506 else
14507   echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14509
14510 ac_header_compiler=no
14511 fi
14512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14514 echo "${ECHO_T}$ac_header_compiler" >&6
14515
14516 # Is the header present?
14517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14519 cat >conftest.$ac_ext <<_ACEOF
14520 /* confdefs.h.  */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h.  */
14525 #include <$ac_header>
14526 _ACEOF
14527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14529   ac_status=$?
14530   grep -v '^ *+' conftest.er1 >conftest.err
14531   rm -f conftest.er1
14532   cat conftest.err >&5
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); } >/dev/null; then
14535   if test -s conftest.err; then
14536     ac_cpp_err=$ac_c_preproc_warn_flag
14537     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14538   else
14539     ac_cpp_err=
14540   fi
14541 else
14542   ac_cpp_err=yes
14543 fi
14544 if test -z "$ac_cpp_err"; then
14545   ac_header_preproc=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550   ac_header_preproc=no
14551 fi
14552 rm -f conftest.err conftest.$ac_ext
14553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14554 echo "${ECHO_T}$ac_header_preproc" >&6
14555
14556 # So?  What about this header?
14557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14558   yes:no: )
14559     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14561     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14563     ac_header_preproc=yes
14564     ;;
14565   no:yes:* )
14566     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14568     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14569 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14570     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14572     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14573 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14576     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14578     (
14579       cat <<\_ASBOX
14580 ## ---------------------------------- ##
14581 ## Report this to the libjava lists.  ##
14582 ## ---------------------------------- ##
14583 _ASBOX
14584     ) |
14585       sed "s/^/$as_me: WARNING:     /" >&2
14586     ;;
14587 esac
14588 echo "$as_me:$LINENO: checking for $ac_header" >&5
14589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   eval "$as_ac_Header=\$ac_header_preproc"
14594 fi
14595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14597
14598 fi
14599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14600   cat >>confdefs.h <<_ACEOF
14601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14602 _ACEOF
14603
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_INTTYPES_H 1
14607 _ACEOF
14608
14609
14610 cat >>confdefs.h <<\_ACEOF
14611 #define JV_HAVE_INTTYPES_H 1
14612 _ACEOF
14613
14614
14615 fi
14616
14617 done
14618
14619 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14620 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14621 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630 #include <sys/types.h>
14631 #include <sys/wait.h>
14632 #ifndef WEXITSTATUS
14633 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14634 #endif
14635 #ifndef WIFEXITED
14636 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642   int s;
14643   wait (&s);
14644   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14645   ;
14646   return 0;
14647 }
14648 _ACEOF
14649 rm -f conftest.$ac_objext
14650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14651   (eval $ac_compile) 2>conftest.er1
14652   ac_status=$?
14653   grep -v '^ *+' conftest.er1 >conftest.err
14654   rm -f conftest.er1
14655   cat conftest.err >&5
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); } &&
14658          { ac_try='test -z "$ac_c_werror_flag"
14659                          || test ! -s conftest.err'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; } &&
14665          { ac_try='test -s conftest.$ac_objext'
14666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14667   (eval $ac_try) 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); }; }; then
14671   ac_cv_header_sys_wait_h=yes
14672 else
14673   echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14675
14676 ac_cv_header_sys_wait_h=no
14677 fi
14678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14679 fi
14680 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14681 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14682 if test $ac_cv_header_sys_wait_h = yes; then
14683
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_SYS_WAIT_H 1
14686 _ACEOF
14687
14688 fi
14689
14690
14691 echo "$as_me:$LINENO: checking for ssize_t" >&5
14692 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14693 if test "${ac_cv_type_ssize_t+set}" = set; then
14694   echo $ECHO_N "(cached) $ECHO_C" >&6
14695 else
14696   cat >conftest.$ac_ext <<_ACEOF
14697 /* confdefs.h.  */
14698 _ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h.  */
14702 $ac_includes_default
14703 int
14704 main ()
14705 {
14706 if ((ssize_t *) 0)
14707   return 0;
14708 if (sizeof (ssize_t))
14709   return 0;
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716   (eval $ac_compile) 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } &&
14723          { ac_try='test -z "$ac_c_werror_flag"
14724                          || test ! -s conftest.err'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; } &&
14730          { ac_try='test -s conftest.$ac_objext'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; }; then
14736   ac_cv_type_ssize_t=yes
14737 else
14738   echo "$as_me: failed program was:" >&5
14739 sed 's/^/| /' conftest.$ac_ext >&5
14740
14741 ac_cv_type_ssize_t=no
14742 fi
14743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14744 fi
14745 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14746 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14747 if test $ac_cv_type_ssize_t = yes; then
14748   :
14749 else
14750
14751 cat >>confdefs.h <<_ACEOF
14752 #define ssize_t int
14753 _ACEOF
14754
14755 fi
14756
14757
14758 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14759 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14760 cat >conftest.$ac_ext <<_ACEOF
14761 /* confdefs.h.  */
14762 _ACEOF
14763 cat confdefs.h >>conftest.$ac_ext
14764 cat >>conftest.$ac_ext <<_ACEOF
14765 /* end confdefs.h.  */
14766 #include <sys/types.h>
14767 #if STDC_HEADERS
14768 #include <stdlib.h>
14769 #include <stddef.h>
14770 #endif
14771 #if HAVE_NETINET_IN_H
14772 #include <netinet/in.h>
14773 #endif
14774 int
14775 main ()
14776 {
14777 in_addr_t foo;
14778   ;
14779   return 0;
14780 }
14781 _ACEOF
14782 rm -f conftest.$ac_objext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784   (eval $ac_compile) 2>conftest.er1
14785   ac_status=$?
14786   grep -v '^ *+' conftest.er1 >conftest.err
14787   rm -f conftest.er1
14788   cat conftest.err >&5
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); } &&
14791          { ac_try='test -z "$ac_c_werror_flag"
14792                          || test ! -s conftest.err'
14793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794   (eval $ac_try) 2>&5
14795   ac_status=$?
14796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797   (exit $ac_status); }; } &&
14798          { ac_try='test -s conftest.$ac_objext'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; }; then
14804
14805 cat >>confdefs.h <<\_ACEOF
14806 #define HAVE_IN_ADDR_T 1
14807 _ACEOF
14808
14809    echo "$as_me:$LINENO: result: yes" >&5
14810 echo "${ECHO_T}yes" >&6
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 echo "$as_me:$LINENO: result: no" >&5
14816 echo "${ECHO_T}no" >&6
14817 fi
14818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14819
14820 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14821 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h.  */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h.  */
14828 #include <netinet/in.h>
14829 int
14830 main ()
14831 {
14832 struct ip_mreq mreq;
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839   (eval $ac_compile) 2>conftest.er1
14840   ac_status=$?
14841   grep -v '^ *+' conftest.er1 >conftest.err
14842   rm -f conftest.er1
14843   cat conftest.err >&5
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); } &&
14846          { ac_try='test -z "$ac_c_werror_flag"
14847                          || test ! -s conftest.err'
14848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14849   (eval $ac_try) 2>&5
14850   ac_status=$?
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); }; } &&
14853          { ac_try='test -s conftest.$ac_objext'
14854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855   (eval $ac_try) 2>&5
14856   ac_status=$?
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); }; }; then
14859
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_STRUCT_IP_MREQ 1
14862 _ACEOF
14863
14864    echo "$as_me:$LINENO: result: yes" >&5
14865 echo "${ECHO_T}yes" >&6
14866 else
14867   echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14869
14870 echo "$as_me:$LINENO: result: no" >&5
14871 echo "${ECHO_T}no" >&6
14872 fi
14873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14874
14875 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14876 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14877 cat >conftest.$ac_ext <<_ACEOF
14878 /* confdefs.h.  */
14879 _ACEOF
14880 cat confdefs.h >>conftest.$ac_ext
14881 cat >>conftest.$ac_ext <<_ACEOF
14882 /* end confdefs.h.  */
14883 #include <netinet/in.h>
14884 int
14885 main ()
14886 {
14887 struct ipv6_mreq mreq6;
14888   ;
14889   return 0;
14890 }
14891 _ACEOF
14892 rm -f conftest.$ac_objext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14894   (eval $ac_compile) 2>conftest.er1
14895   ac_status=$?
14896   grep -v '^ *+' conftest.er1 >conftest.err
14897   rm -f conftest.er1
14898   cat conftest.err >&5
14899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900   (exit $ac_status); } &&
14901          { ac_try='test -z "$ac_c_werror_flag"
14902                          || test ! -s conftest.err'
14903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904   (eval $ac_try) 2>&5
14905   ac_status=$?
14906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907   (exit $ac_status); }; } &&
14908          { ac_try='test -s conftest.$ac_objext'
14909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910   (eval $ac_try) 2>&5
14911   ac_status=$?
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); }; }; then
14914
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_STRUCT_IPV6_MREQ 1
14917 _ACEOF
14918
14919    echo "$as_me:$LINENO: result: yes" >&5
14920 echo "${ECHO_T}yes" >&6
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925 echo "$as_me:$LINENO: result: no" >&5
14926 echo "${ECHO_T}no" >&6
14927 fi
14928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14929
14930 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14931 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h.  */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h.  */
14938 #include <netinet/in.h>
14939 int
14940 main ()
14941 {
14942 struct sockaddr_in6 addr6;
14943   ;
14944   return 0;
14945 }
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14949   (eval $ac_compile) 2>conftest.er1
14950   ac_status=$?
14951   grep -v '^ *+' conftest.er1 >conftest.err
14952   rm -f conftest.er1
14953   cat conftest.err >&5
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); } &&
14956          { ac_try='test -z "$ac_c_werror_flag"
14957                          || test ! -s conftest.err'
14958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959   (eval $ac_try) 2>&5
14960   ac_status=$?
14961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962   (exit $ac_status); }; } &&
14963          { ac_try='test -s conftest.$ac_objext'
14964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965   (eval $ac_try) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); }; }; then
14969
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_INET6 1
14972 _ACEOF
14973
14974    echo "$as_me:$LINENO: result: yes" >&5
14975 echo "${ECHO_T}yes" >&6
14976 else
14977   echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 echo "$as_me:$LINENO: result: no" >&5
14981 echo "${ECHO_T}no" >&6
14982 fi
14983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14984
14985 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14986 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14987 cat >conftest.$ac_ext <<_ACEOF
14988 /* confdefs.h.  */
14989 _ACEOF
14990 cat confdefs.h >>conftest.$ac_ext
14991 cat >>conftest.$ac_ext <<_ACEOF
14992 /* end confdefs.h.  */
14993 #define _POSIX_PII_SOCKET
14994 #include <sys/types.h>
14995 #include <sys/socket.h>
14996 int
14997 main ()
14998 {
14999 socklen_t x = 5;
15000   ;
15001   return 0;
15002 }
15003 _ACEOF
15004 rm -f conftest.$ac_objext
15005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15006   (eval $ac_compile) 2>conftest.er1
15007   ac_status=$?
15008   grep -v '^ *+' conftest.er1 >conftest.err
15009   rm -f conftest.er1
15010   cat conftest.err >&5
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -z "$ac_c_werror_flag"
15014                          || test ! -s conftest.err'
15015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016   (eval $ac_try) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; } &&
15020          { ac_try='test -s conftest.$ac_objext'
15021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022   (eval $ac_try) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); }; }; then
15026
15027 cat >>confdefs.h <<\_ACEOF
15028 #define HAVE_SOCKLEN_T 1
15029 _ACEOF
15030
15031    echo "$as_me:$LINENO: result: yes" >&5
15032 echo "${ECHO_T}yes" >&6
15033 else
15034   echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037 echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15039 fi
15040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15041
15042 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15043 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15044 cat >conftest.$ac_ext <<_ACEOF
15045 /* confdefs.h.  */
15046 _ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h.  */
15050 #include <time.h>
15051 int
15052 main ()
15053 {
15054 struct tm tim; tim.tm_gmtoff = 0;
15055   ;
15056   return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061   (eval $ac_compile) 2>conftest.er1
15062   ac_status=$?
15063   grep -v '^ *+' conftest.er1 >conftest.err
15064   rm -f conftest.er1
15065   cat conftest.err >&5
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); } &&
15068          { ac_try='test -z "$ac_c_werror_flag"
15069                          || test ! -s conftest.err'
15070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071   (eval $ac_try) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; } &&
15075          { ac_try='test -s conftest.$ac_objext'
15076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077   (eval $ac_try) 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); }; }; then
15081
15082 cat >>confdefs.h <<\_ACEOF
15083 #define STRUCT_TM_HAS_GMTOFF 1
15084 _ACEOF
15085
15086    echo "$as_me:$LINENO: result: yes" >&5
15087 echo "${ECHO_T}yes" >&6
15088 else
15089   echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092 echo "$as_me:$LINENO: result: no" >&5
15093 echo "${ECHO_T}no" >&6
15094    echo "$as_me:$LINENO: checking for global timezone variable" >&5
15095 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15096                cat >conftest.$ac_ext <<_ACEOF
15097 /* confdefs.h.  */
15098 _ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h.  */
15102 #include <time.h>
15103 int
15104 main ()
15105 {
15106 void i(){long z2 = 2*timezone;}
15107   ;
15108   return 0;
15109 }
15110 _ACEOF
15111 rm -f conftest.$ac_objext
15112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15113   (eval $ac_compile) 2>conftest.er1
15114   ac_status=$?
15115   grep -v '^ *+' conftest.er1 >conftest.err
15116   rm -f conftest.er1
15117   cat conftest.err >&5
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); } &&
15120          { ac_try='test -z "$ac_c_werror_flag"
15121                          || test ! -s conftest.err'
15122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123   (eval $ac_try) 2>&5
15124   ac_status=$?
15125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126   (exit $ac_status); }; } &&
15127          { ac_try='test -s conftest.$ac_objext'
15128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15129   (eval $ac_try) 2>&5
15130   ac_status=$?
15131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132   (exit $ac_status); }; }; then
15133
15134 cat >>confdefs.h <<\_ACEOF
15135 #define HAVE_TIMEZONE 1
15136 _ACEOF
15137
15138       echo "$as_me:$LINENO: result: yes" >&5
15139 echo "${ECHO_T}yes" >&6
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144 echo "$as_me:$LINENO: result: no" >&5
15145 echo "${ECHO_T}no" >&6
15146        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15147 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15148               cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154 #include <time.h>
15155 int
15156 main ()
15157 {
15158 long z2 = _timezone;
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165   (eval $ac_compile) 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } &&
15172          { ac_try='test -z "$ac_c_werror_flag"
15173                          || test ! -s conftest.err'
15174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175   (eval $ac_try) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); }; } &&
15179          { ac_try='test -s conftest.$ac_objext'
15180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181   (eval $ac_try) 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; }; then
15185
15186 cat >>confdefs.h <<\_ACEOF
15187 #define HAVE_UNDERSCORE_TIMEZONE 1
15188 _ACEOF
15189
15190           echo "$as_me:$LINENO: result: yes" >&5
15191 echo "${ECHO_T}yes" >&6
15192 else
15193   echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15195
15196 echo "$as_me:$LINENO: result: no" >&5
15197 echo "${ECHO_T}no" >&6
15198 fi
15199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15200 fi
15201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15202 fi
15203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15204
15205 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15206 # for constant arguments.  Useless!
15207 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15208 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15209 if test "${ac_cv_working_alloca_h+set}" = set; then
15210   echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212   if test x$gcc_no_link = xyes; then
15213   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15214 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15215    { (exit 1); exit 1; }; }
15216 fi
15217 cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h.  */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h.  */
15223 #include <alloca.h>
15224 int
15225 main ()
15226 {
15227 char *p = (char *) alloca (2 * sizeof (int));
15228   ;
15229   return 0;
15230 }
15231 _ACEOF
15232 rm -f conftest.$ac_objext conftest$ac_exeext
15233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15234   (eval $ac_link) 2>conftest.er1
15235   ac_status=$?
15236   grep -v '^ *+' conftest.er1 >conftest.err
15237   rm -f conftest.er1
15238   cat conftest.err >&5
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); } &&
15241          { ac_try='test -z "$ac_c_werror_flag"
15242                          || test ! -s conftest.err'
15243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244   (eval $ac_try) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; } &&
15248          { ac_try='test -s conftest$ac_exeext'
15249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15250   (eval $ac_try) 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; }; then
15254   ac_cv_working_alloca_h=yes
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259 ac_cv_working_alloca_h=no
15260 fi
15261 rm -f conftest.err conftest.$ac_objext \
15262       conftest$ac_exeext conftest.$ac_ext
15263 fi
15264 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15265 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15266 if test $ac_cv_working_alloca_h = yes; then
15267
15268 cat >>confdefs.h <<\_ACEOF
15269 #define HAVE_ALLOCA_H 1
15270 _ACEOF
15271
15272 fi
15273
15274 echo "$as_me:$LINENO: checking for alloca" >&5
15275 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15276 if test "${ac_cv_func_alloca_works+set}" = set; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279   if test x$gcc_no_link = xyes; then
15280   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15282    { (exit 1); exit 1; }; }
15283 fi
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h.  */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h.  */
15290 #ifdef __GNUC__
15291 # define alloca __builtin_alloca
15292 #else
15293 # ifdef _MSC_VER
15294 #  include <malloc.h>
15295 #  define alloca _alloca
15296 # else
15297 #  if HAVE_ALLOCA_H
15298 #   include <alloca.h>
15299 #  else
15300 #   ifdef _AIX
15301  #pragma alloca
15302 #   else
15303 #    ifndef alloca /* predefined by HP cc +Olibcalls */
15304 char *alloca ();
15305 #    endif
15306 #   endif
15307 #  endif
15308 # endif
15309 #endif
15310
15311 int
15312 main ()
15313 {
15314 char *p = (char *) alloca (1);
15315   ;
15316   return 0;
15317 }
15318 _ACEOF
15319 rm -f conftest.$ac_objext conftest$ac_exeext
15320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15321   (eval $ac_link) 2>conftest.er1
15322   ac_status=$?
15323   grep -v '^ *+' conftest.er1 >conftest.err
15324   rm -f conftest.er1
15325   cat conftest.err >&5
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } &&
15328          { ac_try='test -z "$ac_c_werror_flag"
15329                          || test ! -s conftest.err'
15330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15331   (eval $ac_try) 2>&5
15332   ac_status=$?
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); }; } &&
15335          { ac_try='test -s conftest$ac_exeext'
15336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15337   (eval $ac_try) 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; }; then
15341   ac_cv_func_alloca_works=yes
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 ac_cv_func_alloca_works=no
15347 fi
15348 rm -f conftest.err conftest.$ac_objext \
15349       conftest$ac_exeext conftest.$ac_ext
15350 fi
15351 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15352 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15353
15354 if test $ac_cv_func_alloca_works = yes; then
15355
15356 cat >>confdefs.h <<\_ACEOF
15357 #define HAVE_ALLOCA 1
15358 _ACEOF
15359
15360 else
15361   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15362 # that cause trouble.  Some versions do not even contain alloca or
15363 # contain a buggy version.  If you still want to use their alloca,
15364 # use ar to extract alloca.o from them instead of compiling alloca.c.
15365
15366 ALLOCA=alloca.$ac_objext
15367
15368 cat >>confdefs.h <<\_ACEOF
15369 #define C_ALLOCA 1
15370 _ACEOF
15371
15372
15373 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15374 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15375 if test "${ac_cv_os_cray+set}" = set; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378   cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h.  */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h.  */
15384 #if defined(CRAY) && ! defined(CRAY2)
15385 webecray
15386 #else
15387 wenotbecray
15388 #endif
15389
15390 _ACEOF
15391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15392   $EGREP "webecray" >/dev/null 2>&1; then
15393   ac_cv_os_cray=yes
15394 else
15395   ac_cv_os_cray=no
15396 fi
15397 rm -f conftest*
15398
15399 fi
15400 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15401 echo "${ECHO_T}$ac_cv_os_cray" >&6
15402 if test $ac_cv_os_cray = yes; then
15403   for ac_func in _getb67 GETB67 getb67; do
15404     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 echo "$as_me:$LINENO: checking for $ac_func" >&5
15406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15407 if eval "test \"\${$as_ac_var+set}\" = set"; then
15408   echo $ECHO_N "(cached) $ECHO_C" >&6
15409 else
15410   if test x$gcc_no_link = xyes; then
15411   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15413    { (exit 1); exit 1; }; }
15414 fi
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15423 #define $ac_func innocuous_$ac_func
15424
15425 /* System header to define __stub macros and hopefully few prototypes,
15426     which can conflict with char $ac_func (); below.
15427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15428     <limits.h> exists even on freestanding compilers.  */
15429
15430 #ifdef __STDC__
15431 # include <limits.h>
15432 #else
15433 # include <assert.h>
15434 #endif
15435
15436 #undef $ac_func
15437
15438 /* Override any gcc2 internal prototype to avoid an error.  */
15439 #ifdef __cplusplus
15440 extern "C"
15441 {
15442 #endif
15443 /* We use char because int might match the return type of a gcc2
15444    builtin and then its argument prototype would still apply.  */
15445 char $ac_func ();
15446 /* The GNU C library defines this for functions which it implements
15447     to always fail with ENOSYS.  Some functions are actually named
15448     something starting with __ and the normal name is an alias.  */
15449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15450 choke me
15451 #else
15452 char (*f) () = $ac_func;
15453 #endif
15454 #ifdef __cplusplus
15455 }
15456 #endif
15457
15458 int
15459 main ()
15460 {
15461 return f != $ac_func;
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext conftest$ac_exeext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15468   (eval $ac_link) 2>conftest.er1
15469   ac_status=$?
15470   grep -v '^ *+' conftest.er1 >conftest.err
15471   rm -f conftest.er1
15472   cat conftest.err >&5
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } &&
15475          { ac_try='test -z "$ac_c_werror_flag"
15476                          || test ! -s conftest.err'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; } &&
15482          { ac_try='test -s conftest$ac_exeext'
15483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484   (eval $ac_try) 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   eval "$as_ac_var=yes"
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 eval "$as_ac_var=no"
15494 fi
15495 rm -f conftest.err conftest.$ac_objext \
15496       conftest$ac_exeext conftest.$ac_ext
15497 fi
15498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15500 if test `eval echo '${'$as_ac_var'}'` = yes; then
15501
15502 cat >>confdefs.h <<_ACEOF
15503 #define CRAY_STACKSEG_END $ac_func
15504 _ACEOF
15505
15506     break
15507 fi
15508
15509   done
15510 fi
15511
15512 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15513 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15514 if test "${ac_cv_c_stack_direction+set}" = set; then
15515   echo $ECHO_N "(cached) $ECHO_C" >&6
15516 else
15517   if test "$cross_compiling" = yes; then
15518   ac_cv_c_stack_direction=0
15519 else
15520   cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h.  */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h.  */
15526 int
15527 find_stack_direction ()
15528 {
15529   static char *addr = 0;
15530   auto char dummy;
15531   if (addr == 0)
15532     {
15533       addr = &dummy;
15534       return find_stack_direction ();
15535     }
15536   else
15537     return (&dummy > addr) ? 1 : -1;
15538 }
15539
15540 int
15541 main ()
15542 {
15543   exit (find_stack_direction () < 0);
15544 }
15545 _ACEOF
15546 rm -f conftest$ac_exeext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15548   (eval $ac_link) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553   (eval $ac_try) 2>&5
15554   ac_status=$?
15555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556   (exit $ac_status); }; }; then
15557   ac_cv_c_stack_direction=1
15558 else
15559   echo "$as_me: program exited with status $ac_status" >&5
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563 ( exit $ac_status )
15564 ac_cv_c_stack_direction=-1
15565 fi
15566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15567 fi
15568 fi
15569 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15570 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15571
15572 cat >>confdefs.h <<_ACEOF
15573 #define STACK_DIRECTION $ac_cv_c_stack_direction
15574 _ACEOF
15575
15576
15577 fi
15578
15579 if test x$gcc_no_link = xyes; then
15580   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15581     ac_cv_func_mmap_fixed_mapped=no
15582   fi
15583 fi
15584 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15585
15586
15587 for ac_header in stdlib.h unistd.h
15588 do
15589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15591   echo "$as_me:$LINENO: checking for $ac_header" >&5
15592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15594   echo $ECHO_N "(cached) $ECHO_C" >&6
15595 fi
15596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15598 else
15599   # Is the header compilable?
15600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h.  */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h.  */
15608 $ac_includes_default
15609 #include <$ac_header>
15610 _ACEOF
15611 rm -f conftest.$ac_objext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613   (eval $ac_compile) 2>conftest.er1
15614   ac_status=$?
15615   grep -v '^ *+' conftest.er1 >conftest.err
15616   rm -f conftest.er1
15617   cat conftest.err >&5
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); } &&
15620          { ac_try='test -z "$ac_c_werror_flag"
15621                          || test ! -s conftest.err'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest.$ac_objext'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633   ac_header_compiler=yes
15634 else
15635   echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 ac_header_compiler=no
15639 fi
15640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15642 echo "${ECHO_T}$ac_header_compiler" >&6
15643
15644 # Is the header present?
15645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h.  */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h.  */
15653 #include <$ac_header>
15654 _ACEOF
15655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15657   ac_status=$?
15658   grep -v '^ *+' conftest.er1 >conftest.err
15659   rm -f conftest.er1
15660   cat conftest.err >&5
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); } >/dev/null; then
15663   if test -s conftest.err; then
15664     ac_cpp_err=$ac_c_preproc_warn_flag
15665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15666   else
15667     ac_cpp_err=
15668   fi
15669 else
15670   ac_cpp_err=yes
15671 fi
15672 if test -z "$ac_cpp_err"; then
15673   ac_header_preproc=yes
15674 else
15675   echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15677
15678   ac_header_preproc=no
15679 fi
15680 rm -f conftest.err conftest.$ac_ext
15681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15682 echo "${ECHO_T}$ac_header_preproc" >&6
15683
15684 # So?  What about this header?
15685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15686   yes:no: )
15687     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15689     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15691     ac_header_preproc=yes
15692     ;;
15693   no:yes:* )
15694     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15696     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15697 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15698     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15700     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15701 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15704     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15706     (
15707       cat <<\_ASBOX
15708 ## ---------------------------------- ##
15709 ## Report this to the libjava lists.  ##
15710 ## ---------------------------------- ##
15711 _ASBOX
15712     ) |
15713       sed "s/^/$as_me: WARNING:     /" >&2
15714     ;;
15715 esac
15716 echo "$as_me:$LINENO: checking for $ac_header" >&5
15717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15719   echo $ECHO_N "(cached) $ECHO_C" >&6
15720 else
15721   eval "$as_ac_Header=\$ac_header_preproc"
15722 fi
15723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15725
15726 fi
15727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15728   cat >>confdefs.h <<_ACEOF
15729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15730 _ACEOF
15731
15732 fi
15733
15734 done
15735
15736
15737 for ac_func in getpagesize
15738 do
15739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15740 echo "$as_me:$LINENO: checking for $ac_func" >&5
15741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15742 if eval "test \"\${$as_ac_var+set}\" = set"; then
15743   echo $ECHO_N "(cached) $ECHO_C" >&6
15744 else
15745   if test x$gcc_no_link = xyes; then
15746   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15748    { (exit 1); exit 1; }; }
15749 fi
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15758 #define $ac_func innocuous_$ac_func
15759
15760 /* System header to define __stub macros and hopefully few prototypes,
15761     which can conflict with char $ac_func (); below.
15762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15763     <limits.h> exists even on freestanding compilers.  */
15764
15765 #ifdef __STDC__
15766 # include <limits.h>
15767 #else
15768 # include <assert.h>
15769 #endif
15770
15771 #undef $ac_func
15772
15773 /* Override any gcc2 internal prototype to avoid an error.  */
15774 #ifdef __cplusplus
15775 extern "C"
15776 {
15777 #endif
15778 /* We use char because int might match the return type of a gcc2
15779    builtin and then its argument prototype would still apply.  */
15780 char $ac_func ();
15781 /* The GNU C library defines this for functions which it implements
15782     to always fail with ENOSYS.  Some functions are actually named
15783     something starting with __ and the normal name is an alias.  */
15784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15785 choke me
15786 #else
15787 char (*f) () = $ac_func;
15788 #endif
15789 #ifdef __cplusplus
15790 }
15791 #endif
15792
15793 int
15794 main ()
15795 {
15796 return f != $ac_func;
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15803   (eval $ac_link) 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } &&
15810          { ac_try='test -z "$ac_c_werror_flag"
15811                          || test ! -s conftest.err'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; } &&
15817          { ac_try='test -s conftest$ac_exeext'
15818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819   (eval $ac_try) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); }; }; then
15823   eval "$as_ac_var=yes"
15824 else
15825   echo "$as_me: failed program was:" >&5
15826 sed 's/^/| /' conftest.$ac_ext >&5
15827
15828 eval "$as_ac_var=no"
15829 fi
15830 rm -f conftest.err conftest.$ac_objext \
15831       conftest$ac_exeext conftest.$ac_ext
15832 fi
15833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15835 if test `eval echo '${'$as_ac_var'}'` = yes; then
15836   cat >>confdefs.h <<_ACEOF
15837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15838 _ACEOF
15839
15840 fi
15841 done
15842
15843 echo "$as_me:$LINENO: checking for working mmap" >&5
15844 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15845 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15846   echo $ECHO_N "(cached) $ECHO_C" >&6
15847 else
15848   if test "$cross_compiling" = yes; then
15849   ac_cv_func_mmap_fixed_mapped=no
15850 else
15851   cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h.  */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h.  */
15857 $ac_includes_default
15858 /* malloc might have been renamed as rpl_malloc. */
15859 #undef malloc
15860
15861 /* Thanks to Mike Haertel and Jim Avera for this test.
15862    Here is a matrix of mmap possibilities:
15863         mmap private not fixed
15864         mmap private fixed at somewhere currently unmapped
15865         mmap private fixed at somewhere already mapped
15866         mmap shared not fixed
15867         mmap shared fixed at somewhere currently unmapped
15868         mmap shared fixed at somewhere already mapped
15869    For private mappings, we should verify that changes cannot be read()
15870    back from the file, nor mmap's back from the file at a different
15871    address.  (There have been systems where private was not correctly
15872    implemented like the infamous i386 svr4.0, and systems where the
15873    VM page cache was not coherent with the file system buffer cache
15874    like early versions of FreeBSD and possibly contemporary NetBSD.)
15875    For shared mappings, we should conversely verify that changes get
15876    propagated back to all the places they're supposed to be.
15877
15878    Grep wants private fixed already mapped.
15879    The main things grep needs to know about mmap are:
15880    * does it exist and is it safe to write into the mmap'd area
15881    * how to use it (BSD variants)  */
15882
15883 #include <fcntl.h>
15884 #include <sys/mman.h>
15885
15886 #if !STDC_HEADERS && !HAVE_STDLIB_H
15887 char *malloc ();
15888 #endif
15889
15890 /* This mess was copied from the GNU getpagesize.h.  */
15891 #if !HAVE_GETPAGESIZE
15892 /* Assume that all systems that can run configure have sys/param.h.  */
15893 # if !HAVE_SYS_PARAM_H
15894 #  define HAVE_SYS_PARAM_H 1
15895 # endif
15896
15897 # ifdef _SC_PAGESIZE
15898 #  define getpagesize() sysconf(_SC_PAGESIZE)
15899 # else /* no _SC_PAGESIZE */
15900 #  if HAVE_SYS_PARAM_H
15901 #   include <sys/param.h>
15902 #   ifdef EXEC_PAGESIZE
15903 #    define getpagesize() EXEC_PAGESIZE
15904 #   else /* no EXEC_PAGESIZE */
15905 #    ifdef NBPG
15906 #     define getpagesize() NBPG * CLSIZE
15907 #     ifndef CLSIZE
15908 #      define CLSIZE 1
15909 #     endif /* no CLSIZE */
15910 #    else /* no NBPG */
15911 #     ifdef NBPC
15912 #      define getpagesize() NBPC
15913 #     else /* no NBPC */
15914 #      ifdef PAGESIZE
15915 #       define getpagesize() PAGESIZE
15916 #      endif /* PAGESIZE */
15917 #     endif /* no NBPC */
15918 #    endif /* no NBPG */
15919 #   endif /* no EXEC_PAGESIZE */
15920 #  else /* no HAVE_SYS_PARAM_H */
15921 #   define getpagesize() 8192   /* punt totally */
15922 #  endif /* no HAVE_SYS_PARAM_H */
15923 # endif /* no _SC_PAGESIZE */
15924
15925 #endif /* no HAVE_GETPAGESIZE */
15926
15927 int
15928 main ()
15929 {
15930   char *data, *data2, *data3;
15931   int i, pagesize;
15932   int fd;
15933
15934   pagesize = getpagesize ();
15935
15936   /* First, make a file with some known garbage in it. */
15937   data = (char *) malloc (pagesize);
15938   if (!data)
15939     exit (1);
15940   for (i = 0; i < pagesize; ++i)
15941     *(data + i) = rand ();
15942   umask (0);
15943   fd = creat ("conftest.mmap", 0600);
15944   if (fd < 0)
15945     exit (1);
15946   if (write (fd, data, pagesize) != pagesize)
15947     exit (1);
15948   close (fd);
15949
15950   /* Next, try to mmap the file at a fixed address which already has
15951      something else allocated at it.  If we can, also make sure that
15952      we see the same garbage.  */
15953   fd = open ("conftest.mmap", O_RDWR);
15954   if (fd < 0)
15955     exit (1);
15956   data2 = (char *) malloc (2 * pagesize);
15957   if (!data2)
15958     exit (1);
15959   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15960   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15961                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15962     exit (1);
15963   for (i = 0; i < pagesize; ++i)
15964     if (*(data + i) != *(data2 + i))
15965       exit (1);
15966
15967   /* Finally, make sure that changes to the mapped area do not
15968      percolate back to the file as seen by read().  (This is a bug on
15969      some variants of i386 svr4.0.)  */
15970   for (i = 0; i < pagesize; ++i)
15971     *(data2 + i) = *(data2 + i) + 1;
15972   data3 = (char *) malloc (pagesize);
15973   if (!data3)
15974     exit (1);
15975   if (read (fd, data3, pagesize) != pagesize)
15976     exit (1);
15977   for (i = 0; i < pagesize; ++i)
15978     if (*(data + i) != *(data3 + i))
15979       exit (1);
15980   close (fd);
15981   exit (0);
15982 }
15983 _ACEOF
15984 rm -f conftest$ac_exeext
15985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15986   (eval $ac_link) 2>&5
15987   ac_status=$?
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991   (eval $ac_try) 2>&5
15992   ac_status=$?
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); }; }; then
15995   ac_cv_func_mmap_fixed_mapped=yes
15996 else
15997   echo "$as_me: program exited with status $ac_status" >&5
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001 ( exit $ac_status )
16002 ac_cv_func_mmap_fixed_mapped=no
16003 fi
16004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16005 fi
16006 fi
16007 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16008 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16009 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16010
16011 cat >>confdefs.h <<\_ACEOF
16012 #define HAVE_MMAP 1
16013 _ACEOF
16014
16015 fi
16016 rm -f conftest.mmap
16017
16018 fi
16019
16020 for ac_prog in perl
16021 do
16022   # Extract the first word of "$ac_prog", so it can be a program name with args.
16023 set dummy $ac_prog; ac_word=$2
16024 echo "$as_me:$LINENO: checking for $ac_word" >&5
16025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16026 if test "${ac_cv_prog_PERL+set}" = set; then
16027   echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029   if test -n "$PERL"; then
16030   ac_cv_prog_PERL="$PERL" # Let the user override the test.
16031 else
16032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16033 for as_dir in $PATH
16034 do
16035   IFS=$as_save_IFS
16036   test -z "$as_dir" && as_dir=.
16037   for ac_exec_ext in '' $ac_executable_extensions; do
16038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16039     ac_cv_prog_PERL="$ac_prog"
16040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16041     break 2
16042   fi
16043 done
16044 done
16045
16046 fi
16047 fi
16048 PERL=$ac_cv_prog_PERL
16049 if test -n "$PERL"; then
16050   echo "$as_me:$LINENO: result: $PERL" >&5
16051 echo "${ECHO_T}$PERL" >&6
16052 else
16053   echo "$as_me:$LINENO: result: no" >&5
16054 echo "${ECHO_T}no" >&6
16055 fi
16056
16057   test -n "$PERL" && break
16058 done
16059 test -n "$PERL" || PERL="false"
16060
16061
16062 SYSDEP_SOURCES=
16063 SIGNAL_HANDLER_AUX=
16064
16065 case "${host}" in
16066  i?86-*-linux*)
16067     SIGNAL_HANDLER=include/i386-signal.h
16068     ;;
16069  sparc*-sun-solaris*)
16070     SIGNAL_HANDLER=include/sparc-signal.h
16071     ;;
16072 # ia64-*)
16073 #    SYSDEP_SOURCES=sysdep/ia64.c
16074 #    test -d sysdep || mkdir sysdep
16075 #    ;;
16076  hppa*-*-linux*)
16077     SIGNAL_HANDLER=include/pa-signal.h
16078     ;;
16079  ia64-*-linux*)
16080     SIGNAL_HANDLER=include/dwarf2-signal.h
16081     ;;
16082  powerpc*-*-linux*)
16083     SIGNAL_HANDLER=include/powerpc-signal.h
16084     ;;
16085  alpha*-*-linux*)
16086     SIGNAL_HANDLER=include/dwarf2-signal.h
16087     ;;
16088  s390*-*-linux*)
16089     SIGNAL_HANDLER=include/s390-signal.h
16090     ;;
16091  x86_64*-*-linux*)
16092     SIGNAL_HANDLER=include/x86_64-signal.h
16093     SIGNAL_HANDLER_AUX=include/i386-signal.h
16094     ;;
16095  sparc*-*-linux*)
16096     SIGNAL_HANDLER=include/dwarf2-signal.h
16097     ;;
16098  sh*-*-linux*)
16099     SIGNAL_HANDLER=include/sh-signal.h
16100     ;;
16101  *mingw*)
16102     SIGNAL_HANDLER=include/win32-signal.h
16103     ;;
16104  mips*-*-linux*)
16105     SIGNAL_HANDLER=include/mips-signal.h
16106     ;;
16107  *-*-darwin*)
16108     SIGNAL_HANDLER=include/darwin-signal.h
16109     ;;
16110  *)
16111     SIGNAL_HANDLER=include/default-signal.h
16112     ;;
16113 esac
16114
16115 # If we're using sjlj exceptions, forget what we just learned.
16116 if test "$enable_sjlj_exceptions" = yes; then
16117    SIGNAL_HANDLER=include/default-signal.h
16118    SIGNAL_HANDLER_AUX=
16119 fi
16120
16121 # Define here any compiler flags that you need in order to make backtrace() work.
16122 BACKTRACESPEC=
16123 case "${host}" in
16124  x86_64*-*-linux*|i?86-*)
16125     BACKTRACESPEC=-fno-omit-frame-pointer
16126     ;;
16127 esac
16128
16129
16130
16131
16132 if test -z "$SIGNAL_HANDLER_AUX"; then
16133   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16134 fi
16135
16136                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16137
16138
16139 if test "${multilib}" = "yes"; then
16140   multilib_arg="--enable-multilib"
16141 else
16142   multilib_arg=
16143 fi
16144
16145
16146
16147 here=`${PWDCMD-pwd}`
16148
16149
16150 # We get this from the environment.
16151
16152
16153                                                                                                               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"
16154
16155
16156           ac_config_commands="$ac_config_commands default"
16157
16158
16159 cat >confcache <<\_ACEOF
16160 # This file is a shell script that caches the results of configure
16161 # tests run on this system so they can be shared between configure
16162 # scripts and configure runs, see configure's option --config-cache.
16163 # It is not useful on other systems.  If it contains results you don't
16164 # want to keep, you may remove or edit it.
16165 #
16166 # config.status only pays attention to the cache file if you give it
16167 # the --recheck option to rerun configure.
16168 #
16169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16171 # following values.
16172
16173 _ACEOF
16174
16175 # The following way of writing the cache mishandles newlines in values,
16176 # but we know of no workaround that is simple, portable, and efficient.
16177 # So, don't put newlines in cache variables' values.
16178 # Ultrix sh set writes to stderr and can't be redirected directly,
16179 # and sets the high bit in the cache file unless we assign to the vars.
16180 {
16181   (set) 2>&1 |
16182     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16183     *ac_space=\ *)
16184       # `set' does not quote correctly, so add quotes (double-quote
16185       # substitution turns \\\\ into \\, and sed turns \\ into \).
16186       sed -n \
16187         "s/'/'\\\\''/g;
16188           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16189       ;;
16190     *)
16191       # `set' quotes correctly as required by POSIX, so do not add quotes.
16192       sed -n \
16193         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16194       ;;
16195     esac;
16196 } |
16197   sed '
16198      t clear
16199      : clear
16200      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16201      t end
16202      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16203      : end' >>confcache
16204 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16205   if test -w $cache_file; then
16206     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16207     cat confcache >$cache_file
16208   else
16209     echo "not updating unwritable cache $cache_file"
16210   fi
16211 fi
16212 rm -f confcache
16213
16214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16215 # Let make expand exec_prefix.
16216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16217
16218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16220 # trailing colons and then remove the whole line if VPATH becomes empty
16221 # (actually we leave an empty line to preserve line numbers).
16222 if test "x$srcdir" = x.; then
16223   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16224 s/:*\$(srcdir):*/:/;
16225 s/:*\${srcdir}:*/:/;
16226 s/:*@srcdir@:*/:/;
16227 s/^\([^=]*=[     ]*\):*/\1/;
16228 s/:*$//;
16229 s/^[^=]*=[       ]*$//;
16230 }'
16231 fi
16232
16233 DEFS=-DHAVE_CONFIG_H
16234
16235 ac_libobjs=
16236 ac_ltlibobjs=
16237 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16238   # 1. Remove the extension, and $U if already installed.
16239   ac_i=`echo "$ac_i" |
16240          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16241   # 2. Add them.
16242   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16243   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16244 done
16245 LIBOBJS=$ac_libobjs
16246
16247 LTLIBOBJS=$ac_ltlibobjs
16248
16249
16250 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16251   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16252 Usually this means the macro was only invoked conditionally." >&5
16253 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16254 Usually this means the macro was only invoked conditionally." >&2;}
16255    { (exit 1); exit 1; }; }
16256 fi
16257 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16258   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16259 Usually this means the macro was only invoked conditionally." >&5
16260 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16261 Usually this means the macro was only invoked conditionally." >&2;}
16262    { (exit 1); exit 1; }; }
16263 fi
16264 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16265   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16266 Usually this means the macro was only invoked conditionally." >&5
16267 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16268 Usually this means the macro was only invoked conditionally." >&2;}
16269    { (exit 1); exit 1; }; }
16270 fi
16271 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16272   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16273 Usually this means the macro was only invoked conditionally." >&5
16274 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16275 Usually this means the macro was only invoked conditionally." >&2;}
16276    { (exit 1); exit 1; }; }
16277 fi
16278 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16279   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16280 Usually this means the macro was only invoked conditionally." >&5
16281 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16282 Usually this means the macro was only invoked conditionally." >&2;}
16283    { (exit 1); exit 1; }; }
16284 fi
16285 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16286   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16287 Usually this means the macro was only invoked conditionally." >&5
16288 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16289 Usually this means the macro was only invoked conditionally." >&2;}
16290    { (exit 1); exit 1; }; }
16291 fi
16292 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16293   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16294 Usually this means the macro was only invoked conditionally." >&5
16295 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16296 Usually this means the macro was only invoked conditionally." >&2;}
16297    { (exit 1); exit 1; }; }
16298 fi
16299 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16300   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16301 Usually this means the macro was only invoked conditionally." >&5
16302 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16303 Usually this means the macro was only invoked conditionally." >&2;}
16304    { (exit 1); exit 1; }; }
16305 fi
16306 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16307   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16308 Usually this means the macro was only invoked conditionally." >&5
16309 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16310 Usually this means the macro was only invoked conditionally." >&2;}
16311    { (exit 1); exit 1; }; }
16312 fi
16313 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16314   { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16315 Usually this means the macro was only invoked conditionally." >&5
16316 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16317 Usually this means the macro was only invoked conditionally." >&2;}
16318    { (exit 1); exit 1; }; }
16319 fi
16320 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16321   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16322 Usually this means the macro was only invoked conditionally." >&5
16323 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16324 Usually this means the macro was only invoked conditionally." >&2;}
16325    { (exit 1); exit 1; }; }
16326 fi
16327 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16328   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16329 Usually this means the macro was only invoked conditionally." >&5
16330 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16331 Usually this means the macro was only invoked conditionally." >&2;}
16332    { (exit 1); exit 1; }; }
16333 fi
16334 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16335   { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16336 Usually this means the macro was only invoked conditionally." >&5
16337 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16338 Usually this means the macro was only invoked conditionally." >&2;}
16339    { (exit 1); exit 1; }; }
16340 fi
16341 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16342   { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16343 Usually this means the macro was only invoked conditionally." >&5
16344 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16345 Usually this means the macro was only invoked conditionally." >&2;}
16346    { (exit 1); exit 1; }; }
16347 fi
16348 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16349   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16350 Usually this means the macro was only invoked conditionally." >&5
16351 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16352 Usually this means the macro was only invoked conditionally." >&2;}
16353    { (exit 1); exit 1; }; }
16354 fi
16355 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16356   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16357 Usually this means the macro was only invoked conditionally." >&5
16358 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16359 Usually this means the macro was only invoked conditionally." >&2;}
16360    { (exit 1); exit 1; }; }
16361 fi
16362 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16363   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16364 Usually this means the macro was only invoked conditionally." >&5
16365 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16366 Usually this means the macro was only invoked conditionally." >&2;}
16367    { (exit 1); exit 1; }; }
16368 fi
16369 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16370   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16371 Usually this means the macro was only invoked conditionally." >&5
16372 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16373 Usually this means the macro was only invoked conditionally." >&2;}
16374    { (exit 1); exit 1; }; }
16375 fi
16376 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16377   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16378 Usually this means the macro was only invoked conditionally." >&5
16379 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16380 Usually this means the macro was only invoked conditionally." >&2;}
16381    { (exit 1); exit 1; }; }
16382 fi
16383 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16384   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&5
16386 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&2;}
16388    { (exit 1); exit 1; }; }
16389 fi
16390 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16391   { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&5
16393 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&2;}
16395    { (exit 1); exit 1; }; }
16396 fi
16397 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16398   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&5
16400 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&2;}
16402    { (exit 1); exit 1; }; }
16403 fi
16404 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16405   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&5
16407 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&2;}
16409    { (exit 1); exit 1; }; }
16410 fi
16411
16412 : ${CONFIG_STATUS=./config.status}
16413 ac_clean_files_save=$ac_clean_files
16414 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16415 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16416 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16417 cat >$CONFIG_STATUS <<_ACEOF
16418 #! $SHELL
16419 # Generated by $as_me.
16420 # Run this file to recreate the current configuration.
16421 # Compiler output produced by configure, useful for debugging
16422 # configure, is in config.log if it exists.
16423
16424 debug=false
16425 ac_cs_recheck=false
16426 ac_cs_silent=false
16427 SHELL=\${CONFIG_SHELL-$SHELL}
16428 _ACEOF
16429
16430 cat >>$CONFIG_STATUS <<\_ACEOF
16431 ## --------------------- ##
16432 ## M4sh Initialization.  ##
16433 ## --------------------- ##
16434
16435 # Be Bourne compatible
16436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16437   emulate sh
16438   NULLCMD=:
16439   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16440   # is contrary to our usage.  Disable this feature.
16441   alias -g '${1+"$@"}'='"$@"'
16442 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16443   set -o posix
16444 fi
16445 DUALCASE=1; export DUALCASE # for MKS sh
16446
16447 # Support unset when possible.
16448 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16449   as_unset=unset
16450 else
16451   as_unset=false
16452 fi
16453
16454
16455 # Work around bugs in pre-3.0 UWIN ksh.
16456 $as_unset ENV MAIL MAILPATH
16457 PS1='$ '
16458 PS2='> '
16459 PS4='+ '
16460
16461 # NLS nuisances.
16462 for as_var in \
16463   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16464   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16465   LC_TELEPHONE LC_TIME
16466 do
16467   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16468     eval $as_var=C; export $as_var
16469   else
16470     $as_unset $as_var
16471   fi
16472 done
16473
16474 # Required to use basename.
16475 if expr a : '\(a\)' >/dev/null 2>&1; then
16476   as_expr=expr
16477 else
16478   as_expr=false
16479 fi
16480
16481 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16482   as_basename=basename
16483 else
16484   as_basename=false
16485 fi
16486
16487
16488 # Name of the executable.
16489 as_me=`$as_basename "$0" ||
16490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16491          X"$0" : 'X\(//\)$' \| \
16492          X"$0" : 'X\(/\)$' \| \
16493          .     : '\(.\)' 2>/dev/null ||
16494 echo X/"$0" |
16495     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16496           /^X\/\(\/\/\)$/{ s//\1/; q; }
16497           /^X\/\(\/\).*/{ s//\1/; q; }
16498           s/.*/./; q'`
16499
16500
16501 # PATH needs CR, and LINENO needs CR and PATH.
16502 # Avoid depending upon Character Ranges.
16503 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16504 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16505 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16506 as_cr_digits='0123456789'
16507 as_cr_alnum=$as_cr_Letters$as_cr_digits
16508
16509 # The user is always right.
16510 if test "${PATH_SEPARATOR+set}" != set; then
16511   echo "#! /bin/sh" >conf$$.sh
16512   echo  "exit 0"   >>conf$$.sh
16513   chmod +x conf$$.sh
16514   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16515     PATH_SEPARATOR=';'
16516   else
16517     PATH_SEPARATOR=:
16518   fi
16519   rm -f conf$$.sh
16520 fi
16521
16522
16523   as_lineno_1=$LINENO
16524   as_lineno_2=$LINENO
16525   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16526   test "x$as_lineno_1" != "x$as_lineno_2" &&
16527   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
16528   # Find who we are.  Look in the path if we contain no path at all
16529   # relative or not.
16530   case $0 in
16531     *[\\/]* ) as_myself=$0 ;;
16532     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533 for as_dir in $PATH
16534 do
16535   IFS=$as_save_IFS
16536   test -z "$as_dir" && as_dir=.
16537   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16538 done
16539
16540        ;;
16541   esac
16542   # We did not find ourselves, most probably we were run as `sh COMMAND'
16543   # in which case we are not to be found in the path.
16544   if test "x$as_myself" = x; then
16545     as_myself=$0
16546   fi
16547   if test ! -f "$as_myself"; then
16548     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16549 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16550    { (exit 1); exit 1; }; }
16551   fi
16552   case $CONFIG_SHELL in
16553   '')
16554     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16555 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16556 do
16557   IFS=$as_save_IFS
16558   test -z "$as_dir" && as_dir=.
16559   for as_base in sh bash ksh sh5; do
16560          case $as_dir in
16561          /*)
16562            if ("$as_dir/$as_base" -c '
16563   as_lineno_1=$LINENO
16564   as_lineno_2=$LINENO
16565   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16566   test "x$as_lineno_1" != "x$as_lineno_2" &&
16567   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
16568              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16569              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16570              CONFIG_SHELL=$as_dir/$as_base
16571              export CONFIG_SHELL
16572              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16573            fi;;
16574          esac
16575        done
16576 done
16577 ;;
16578   esac
16579
16580   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16581   # uniformly replaced by the line number.  The first 'sed' inserts a
16582   # line-number line before each line; the second 'sed' does the real
16583   # work.  The second script uses 'N' to pair each line-number line
16584   # with the numbered line, and appends trailing '-' during
16585   # substitution so that $LINENO is not a special case at line end.
16586   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16587   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
16588   sed '=' <$as_myself |
16589     sed '
16590       N
16591       s,$,-,
16592       : loop
16593       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16594       t loop
16595       s,-$,,
16596       s,^['$as_cr_digits']*\n,,
16597     ' >$as_me.lineno &&
16598   chmod +x $as_me.lineno ||
16599     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16600 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16601    { (exit 1); exit 1; }; }
16602
16603   # Don't try to exec as it changes $[0], causing all sort of problems
16604   # (the dirname of $[0] is not the place where we might find the
16605   # original and so on.  Autoconf is especially sensible to this).
16606   . ./$as_me.lineno
16607   # Exit status is that of the last command.
16608   exit
16609 }
16610
16611
16612 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16613   *c*,-n*) ECHO_N= ECHO_C='
16614 ' ECHO_T='      ' ;;
16615   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16616   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
16617 esac
16618
16619 if expr a : '\(a\)' >/dev/null 2>&1; then
16620   as_expr=expr
16621 else
16622   as_expr=false
16623 fi
16624
16625 rm -f conf$$ conf$$.exe conf$$.file
16626 echo >conf$$.file
16627 if ln -s conf$$.file conf$$ 2>/dev/null; then
16628   # We could just check for DJGPP; but this test a) works b) is more generic
16629   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16630   if test -f conf$$.exe; then
16631     # Don't use ln at all; we don't have any links
16632     as_ln_s='cp -p'
16633   else
16634     as_ln_s='ln -s'
16635   fi
16636 elif ln conf$$.file conf$$ 2>/dev/null; then
16637   as_ln_s=ln
16638 else
16639   as_ln_s='cp -p'
16640 fi
16641 rm -f conf$$ conf$$.exe conf$$.file
16642
16643 if mkdir -p . 2>/dev/null; then
16644   as_mkdir_p=:
16645 else
16646   test -d ./-p && rmdir ./-p
16647   as_mkdir_p=false
16648 fi
16649
16650 as_executable_p="test -f"
16651
16652 # Sed expression to map a string onto a valid CPP name.
16653 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16654
16655 # Sed expression to map a string onto a valid variable name.
16656 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16657
16658
16659 # IFS
16660 # We need space, tab and new line, in precisely that order.
16661 as_nl='
16662 '
16663 IFS="   $as_nl"
16664
16665 # CDPATH.
16666 $as_unset CDPATH
16667
16668 exec 6>&1
16669
16670 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16671 # report actual input values of CONFIG_FILES etc. instead of their
16672 # values after options handling.  Logging --version etc. is OK.
16673 exec 5>>config.log
16674 {
16675   echo
16676   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16677 ## Running $as_me. ##
16678 _ASBOX
16679 } >&5
16680 cat >&5 <<_CSEOF
16681
16682 This file was extended by libjava $as_me version-unused, which was
16683 generated by GNU Autoconf 2.59.  Invocation command line was
16684
16685   CONFIG_FILES    = $CONFIG_FILES
16686   CONFIG_HEADERS  = $CONFIG_HEADERS
16687   CONFIG_LINKS    = $CONFIG_LINKS
16688   CONFIG_COMMANDS = $CONFIG_COMMANDS
16689   $ $0 $@
16690
16691 _CSEOF
16692 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16693 echo >&5
16694 _ACEOF
16695
16696 # Files that config.status was made for.
16697 if test -n "$ac_config_files"; then
16698   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16699 fi
16700
16701 if test -n "$ac_config_headers"; then
16702   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16703 fi
16704
16705 if test -n "$ac_config_links"; then
16706   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16707 fi
16708
16709 if test -n "$ac_config_commands"; then
16710   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16711 fi
16712
16713 cat >>$CONFIG_STATUS <<\_ACEOF
16714
16715 ac_cs_usage="\
16716 \`$as_me' instantiates files from templates according to the
16717 current configuration.
16718
16719 Usage: $0 [OPTIONS] [FILE]...
16720
16721   -h, --help       print this help, then exit
16722   -V, --version    print version number, then exit
16723   -q, --quiet      do not print progress messages
16724   -d, --debug      don't remove temporary files
16725       --recheck    update $as_me by reconfiguring in the same conditions
16726   --file=FILE[:TEMPLATE]
16727                    instantiate the configuration file FILE
16728   --header=FILE[:TEMPLATE]
16729                    instantiate the configuration header FILE
16730
16731 Configuration files:
16732 $config_files
16733
16734 Configuration headers:
16735 $config_headers
16736
16737 Configuration links:
16738 $config_links
16739
16740 Configuration commands:
16741 $config_commands
16742
16743 Report bugs to <bug-autoconf@gnu.org>."
16744 _ACEOF
16745
16746 cat >>$CONFIG_STATUS <<_ACEOF
16747 ac_cs_version="\\
16748 libjava config.status version-unused
16749 configured by $0, generated by GNU Autoconf 2.59,
16750   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16751
16752 Copyright (C) 2003 Free Software Foundation, Inc.
16753 This config.status script is free software; the Free Software Foundation
16754 gives unlimited permission to copy, distribute and modify it."
16755 srcdir=$srcdir
16756 INSTALL="$INSTALL"
16757 _ACEOF
16758
16759 cat >>$CONFIG_STATUS <<\_ACEOF
16760 # If no file are specified by the user, then we need to provide default
16761 # value.  By we need to know if files were specified by the user.
16762 ac_need_defaults=:
16763 while test $# != 0
16764 do
16765   case $1 in
16766   --*=*)
16767     ac_option=`expr "x$1" : 'x\([^=]*\)='`
16768     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16769     ac_shift=:
16770     ;;
16771   -*)
16772     ac_option=$1
16773     ac_optarg=$2
16774     ac_shift=shift
16775     ;;
16776   *) # This is not an option, so the user has probably given explicit
16777      # arguments.
16778      ac_option=$1
16779      ac_need_defaults=false;;
16780   esac
16781
16782   case $ac_option in
16783   # Handling of the options.
16784 _ACEOF
16785 cat >>$CONFIG_STATUS <<\_ACEOF
16786   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16787     ac_cs_recheck=: ;;
16788   --version | --vers* | -V )
16789     echo "$ac_cs_version"; exit 0 ;;
16790   --he | --h)
16791     # Conflict between --help and --header
16792     { { echo "$as_me:$LINENO: error: ambiguous option: $1
16793 Try \`$0 --help' for more information." >&5
16794 echo "$as_me: error: ambiguous option: $1
16795 Try \`$0 --help' for more information." >&2;}
16796    { (exit 1); exit 1; }; };;
16797   --help | --hel | -h )
16798     echo "$ac_cs_usage"; exit 0 ;;
16799   --debug | --d* | -d )
16800     debug=: ;;
16801   --file | --fil | --fi | --f )
16802     $ac_shift
16803     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16804     ac_need_defaults=false;;
16805   --header | --heade | --head | --hea )
16806     $ac_shift
16807     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16808     ac_need_defaults=false;;
16809   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16810   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16811     ac_cs_silent=: ;;
16812
16813   # This is an error.
16814   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16815 Try \`$0 --help' for more information." >&5
16816 echo "$as_me: error: unrecognized option: $1
16817 Try \`$0 --help' for more information." >&2;}
16818    { (exit 1); exit 1; }; } ;;
16819
16820   *) ac_config_targets="$ac_config_targets $1" ;;
16821
16822   esac
16823   shift
16824 done
16825
16826 ac_configure_extra_args=
16827
16828 if $ac_cs_silent; then
16829   exec 6>/dev/null
16830   ac_configure_extra_args="$ac_configure_extra_args --silent"
16831 fi
16832
16833 _ACEOF
16834 cat >>$CONFIG_STATUS <<_ACEOF
16835 if \$ac_cs_recheck; then
16836   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16837   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16838 fi
16839
16840 _ACEOF
16841
16842 cat >>$CONFIG_STATUS <<_ACEOF
16843 #
16844 # INIT-COMMANDS section.
16845 #
16846
16847 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16848 srcdir=${srcdir}
16849 host=${host}
16850 target=${target}
16851 with_multisubdir=${with_multisubdir}
16852 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16853 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16854 libgcj_basedir=${libgcj_basedir}
16855 CC="${CC}"
16856 CXX="${CXX}"
16857 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16858
16859
16860 _ACEOF
16861
16862
16863
16864 cat >>$CONFIG_STATUS <<\_ACEOF
16865 for ac_config_target in $ac_config_targets
16866 do
16867   case "$ac_config_target" in
16868   # Handling of arguments.
16869   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16870   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16871   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16872   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16873   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16874   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16875   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16876   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16877   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16878   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16879   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16880   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16881   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16882   "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16883   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16884   "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16885   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16886   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16887   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16888   "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16889   "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16890   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16891   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16892   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16893   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16894   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16895   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16896   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16897   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16898   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16899   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16900   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16901   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16902 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16903    { (exit 1); exit 1; }; };;
16904   esac
16905 done
16906
16907 # If the user did not use the arguments to specify the items to instantiate,
16908 # then the envvar interface is used.  Set only those that are not.
16909 # We use the long form for the default assignment because of an extremely
16910 # bizarre bug on SunOS 4.1.3.
16911 if $ac_need_defaults; then
16912   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16913   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16914   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16915   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16916 fi
16917
16918 # Have a temporary directory for convenience.  Make it in the build tree
16919 # simply because there is no reason to put it here, and in addition,
16920 # creating and moving files from /tmp can sometimes cause problems.
16921 # Create a temporary directory, and hook for its removal unless debugging.
16922 $debug ||
16923 {
16924   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16925   trap '{ (exit 1); exit 1; }' 1 2 13 15
16926 }
16927
16928 # Create a (secure) tmp directory for tmp files.
16929
16930 {
16931   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16932   test -n "$tmp" && test -d "$tmp"
16933 }  ||
16934 {
16935   tmp=./confstat$$-$RANDOM
16936   (umask 077 && mkdir $tmp)
16937 } ||
16938 {
16939    echo "$me: cannot create a temporary directory in ." >&2
16940    { (exit 1); exit 1; }
16941 }
16942
16943 _ACEOF
16944
16945 cat >>$CONFIG_STATUS <<_ACEOF
16946
16947 #
16948 # CONFIG_FILES section.
16949 #
16950
16951 # No need to generate the scripts if there are no CONFIG_FILES.
16952 # This happens for instance when ./config.status config.h
16953 if test -n "\$CONFIG_FILES"; then
16954   # Protect against being on the right side of a sed subst in config.status.
16955   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16956    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16957 s,@SHELL@,$SHELL,;t t
16958 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16959 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16960 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16961 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16962 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16963 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16964 s,@exec_prefix@,$exec_prefix,;t t
16965 s,@prefix@,$prefix,;t t
16966 s,@program_transform_name@,$program_transform_name,;t t
16967 s,@bindir@,$bindir,;t t
16968 s,@sbindir@,$sbindir,;t t
16969 s,@libexecdir@,$libexecdir,;t t
16970 s,@datadir@,$datadir,;t t
16971 s,@sysconfdir@,$sysconfdir,;t t
16972 s,@sharedstatedir@,$sharedstatedir,;t t
16973 s,@localstatedir@,$localstatedir,;t t
16974 s,@libdir@,$libdir,;t t
16975 s,@includedir@,$includedir,;t t
16976 s,@oldincludedir@,$oldincludedir,;t t
16977 s,@infodir@,$infodir,;t t
16978 s,@mandir@,$mandir,;t t
16979 s,@build_alias@,$build_alias,;t t
16980 s,@host_alias@,$host_alias,;t t
16981 s,@target_alias@,$target_alias,;t t
16982 s,@DEFS@,$DEFS,;t t
16983 s,@ECHO_C@,$ECHO_C,;t t
16984 s,@ECHO_N@,$ECHO_N,;t t
16985 s,@ECHO_T@,$ECHO_T,;t t
16986 s,@LIBS@,$LIBS,;t t
16987 s,@build@,$build,;t t
16988 s,@build_cpu@,$build_cpu,;t t
16989 s,@build_vendor@,$build_vendor,;t t
16990 s,@build_os@,$build_os,;t t
16991 s,@build_subdir@,$build_subdir,;t t
16992 s,@host_subdir@,$host_subdir,;t t
16993 s,@target_subdir@,$target_subdir,;t t
16994 s,@libgcj_basedir@,$libgcj_basedir,;t t
16995 s,@host@,$host,;t t
16996 s,@host_cpu@,$host_cpu,;t t
16997 s,@host_vendor@,$host_vendor,;t t
16998 s,@host_os@,$host_os,;t t
16999 s,@target@,$target,;t t
17000 s,@target_cpu@,$target_cpu,;t t
17001 s,@target_vendor@,$target_vendor,;t t
17002 s,@target_os@,$target_os,;t t
17003 s,@target_noncanonical@,$target_noncanonical,;t t
17004 s,@LN_S@,$LN_S,;t t
17005 s,@mkinstalldirs@,$mkinstalldirs,;t t
17006 s,@CC@,$CC,;t t
17007 s,@ac_ct_CC@,$ac_ct_CC,;t t
17008 s,@EXEEXT@,$EXEEXT,;t t
17009 s,@OBJEXT@,$OBJEXT,;t t
17010 s,@CXX@,$CXX,;t t
17011 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17012 s,@CFLAGS@,$CFLAGS,;t t
17013 s,@CXXFLAGS@,$CXXFLAGS,;t t
17014 s,@LDFLAGS@,$LDFLAGS,;t t
17015 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17016 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17017 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17018 s,@CYGPATH_W@,$CYGPATH_W,;t t
17019 s,@PACKAGE@,$PACKAGE,;t t
17020 s,@VERSION@,$VERSION,;t t
17021 s,@ACLOCAL@,$ACLOCAL,;t t
17022 s,@AUTOCONF@,$AUTOCONF,;t t
17023 s,@AUTOMAKE@,$AUTOMAKE,;t t
17024 s,@AUTOHEADER@,$AUTOHEADER,;t t
17025 s,@MAKEINFO@,$MAKEINFO,;t t
17026 s,@install_sh@,$install_sh,;t t
17027 s,@STRIP@,$STRIP,;t t
17028 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17029 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17030 s,@mkdir_p@,$mkdir_p,;t t
17031 s,@AWK@,$AWK,;t t
17032 s,@SET_MAKE@,$SET_MAKE,;t t
17033 s,@am__leading_dot@,$am__leading_dot,;t t
17034 s,@AMTAR@,$AMTAR,;t t
17035 s,@am__tar@,$am__tar,;t t
17036 s,@am__untar@,$am__untar,;t t
17037 s,@DEPDIR@,$DEPDIR,;t t
17038 s,@am__include@,$am__include,;t t
17039 s,@am__quote@,$am__quote,;t t
17040 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17041 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17042 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17043 s,@CCDEPMODE@,$CCDEPMODE,;t t
17044 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17045 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17046 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17047 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17048 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17049 s,@AS@,$AS,;t t
17050 s,@ac_ct_AS@,$ac_ct_AS,;t t
17051 s,@AR@,$AR,;t t
17052 s,@ac_ct_AR@,$ac_ct_AR,;t t
17053 s,@RANLIB@,$RANLIB,;t t
17054 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17055 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17056 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17057 s,@MAINT@,$MAINT,;t t
17058 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17059 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17060 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17061 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17062 s,@INCLTDL@,$INCLTDL,;t t
17063 s,@LIBLTDL@,$LIBLTDL,;t t
17064 s,@DIRLTDL@,$DIRLTDL,;t t
17065 s,@LIBTOOL@,$LIBTOOL,;t t
17066 s,@CXXCPP@,$CXXCPP,;t t
17067 s,@CPPFLAGS@,$CPPFLAGS,;t t
17068 s,@GCJ@,$GCJ,;t t
17069 s,@GCJFLAGS@,$GCJFLAGS,;t t
17070 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17071 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17072 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17073 s,@subdirs@,$subdirs,;t t
17074 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17075 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17076 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17077 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17078 s,@JAVA_HOME@,$JAVA_HOME,;t t
17079 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17080 s,@INTERPRETER@,$INTERPRETER,;t t
17081 s,@LIBFFI@,$LIBFFI,;t t
17082 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17083 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17084 s,@CPP@,$CPP,;t t
17085 s,@EGREP@,$EGREP,;t t
17086 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17087 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17088 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17089 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17090 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17091 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17092 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17093 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17094 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17095 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17096 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17097 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17098 s,@X_CFLAGS@,$X_CFLAGS,;t t
17099 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17100 s,@X_LIBS@,$X_LIBS,;t t
17101 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17102 s,@TOOLKIT@,$TOOLKIT,;t t
17103 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17104 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17105 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17106 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17107 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17108 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17109 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17110 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17111 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17112 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17113 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17114 s,@GCLIBS@,$GCLIBS,;t t
17115 s,@GCINCS@,$GCINCS,;t t
17116 s,@GCDEPS@,$GCDEPS,;t t
17117 s,@GCSPEC@,$GCSPEC,;t t
17118 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17119 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17120 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17121 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17122 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17123 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17124 s,@THREADLIBS@,$THREADLIBS,;t t
17125 s,@THREADINCS@,$THREADINCS,;t t
17126 s,@THREADDEPS@,$THREADDEPS,;t t
17127 s,@THREADSPEC@,$THREADSPEC,;t t
17128 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17129 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17130 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17131 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17132 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17133 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17134 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17135 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17136 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17137 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17138 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17139 s,@LIBICONV@,$LIBICONV,;t t
17140 s,@LTLIBICONV@,$LTLIBICONV,;t t
17141 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17142 s,@GTK_LIBS@,$GTK_LIBS,;t t
17143 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17144 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17145 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17146 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17147 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17148 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17149 s,@GCJH@,$GCJH,;t t
17150 s,@ZIP@,$ZIP,;t t
17151 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17152 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17153 s,@ZLIBS@,$ZLIBS,;t t
17154 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17155 s,@ZINCS@,$ZINCS,;t t
17156 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17157 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17158 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17159 s,@IEEESPEC@,$IEEESPEC,;t t
17160 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17161 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17162 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17163 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17164 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17165 s,@toolexecdir@,$toolexecdir,;t t
17166 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17167 s,@toolexeclibdir@,$toolexeclibdir,;t t
17168 s,@GCJVERSION@,$GCJVERSION,;t t
17169 s,@gxx_include_dir@,$gxx_include_dir,;t t
17170 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17171 s,@ALLOCA@,$ALLOCA,;t t
17172 s,@PERL@,$PERL,;t t
17173 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17174 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17175 s,@here@,$here,;t t
17176 s,@LIBOBJS@,$LIBOBJS,;t t
17177 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17178 CEOF
17179
17180 _ACEOF
17181
17182   cat >>$CONFIG_STATUS <<\_ACEOF
17183   # Split the substitutions into bite-sized pieces for seds with
17184   # small command number limits, like on Digital OSF/1 and HP-UX.
17185   ac_max_sed_lines=48
17186   ac_sed_frag=1 # Number of current file.
17187   ac_beg=1 # First line for current file.
17188   ac_end=$ac_max_sed_lines # Line after last line for current file.
17189   ac_more_lines=:
17190   ac_sed_cmds=
17191   while $ac_more_lines; do
17192     if test $ac_beg -gt 1; then
17193       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17194     else
17195       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17196     fi
17197     if test ! -s $tmp/subs.frag; then
17198       ac_more_lines=false
17199     else
17200       # The purpose of the label and of the branching condition is to
17201       # speed up the sed processing (if there are no `@' at all, there
17202       # is no need to browse any of the substitutions).
17203       # These are the two extra sed commands mentioned above.
17204       (echo ':t
17205   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17206       if test -z "$ac_sed_cmds"; then
17207         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17208       else
17209         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17210       fi
17211       ac_sed_frag=`expr $ac_sed_frag + 1`
17212       ac_beg=$ac_end
17213       ac_end=`expr $ac_end + $ac_max_sed_lines`
17214     fi
17215   done
17216   if test -z "$ac_sed_cmds"; then
17217     ac_sed_cmds=cat
17218   fi
17219 fi # test -n "$CONFIG_FILES"
17220
17221 _ACEOF
17222 cat >>$CONFIG_STATUS <<\_ACEOF
17223 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17224   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17225   case $ac_file in
17226   - | *:- | *:-:* ) # input from stdin
17227         cat >$tmp/stdin
17228         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17229         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17230   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17231         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17232   * )   ac_file_in=$ac_file.in ;;
17233   esac
17234
17235   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17236   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17238          X"$ac_file" : 'X\(//\)[^/]' \| \
17239          X"$ac_file" : 'X\(//\)$' \| \
17240          X"$ac_file" : 'X\(/\)' \| \
17241          .     : '\(.\)' 2>/dev/null ||
17242 echo X"$ac_file" |
17243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17244           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17245           /^X\(\/\/\)$/{ s//\1/; q; }
17246           /^X\(\/\).*/{ s//\1/; q; }
17247           s/.*/./; q'`
17248   { if $as_mkdir_p; then
17249     mkdir -p "$ac_dir"
17250   else
17251     as_dir="$ac_dir"
17252     as_dirs=
17253     while test ! -d "$as_dir"; do
17254       as_dirs="$as_dir $as_dirs"
17255       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17257          X"$as_dir" : 'X\(//\)[^/]' \| \
17258          X"$as_dir" : 'X\(//\)$' \| \
17259          X"$as_dir" : 'X\(/\)' \| \
17260          .     : '\(.\)' 2>/dev/null ||
17261 echo X"$as_dir" |
17262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17263           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17264           /^X\(\/\/\)$/{ s//\1/; q; }
17265           /^X\(\/\).*/{ s//\1/; q; }
17266           s/.*/./; q'`
17267     done
17268     test ! -n "$as_dirs" || mkdir $as_dirs
17269   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17271    { (exit 1); exit 1; }; }; }
17272
17273   ac_builddir=.
17274
17275 if test "$ac_dir" != .; then
17276   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17277   # A "../" for each directory in $ac_dir_suffix.
17278   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17279 else
17280   ac_dir_suffix= ac_top_builddir=
17281 fi
17282
17283 case $srcdir in
17284   .)  # No --srcdir option.  We are building in place.
17285     ac_srcdir=.
17286     if test -z "$ac_top_builddir"; then
17287        ac_top_srcdir=.
17288     else
17289        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17290     fi ;;
17291   [\\/]* | ?:[\\/]* )  # Absolute path.
17292     ac_srcdir=$srcdir$ac_dir_suffix;
17293     ac_top_srcdir=$srcdir ;;
17294   *) # Relative path.
17295     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17296     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17297 esac
17298
17299 # Do not use `cd foo && pwd` to compute absolute paths, because
17300 # the directories may not exist.
17301 case `pwd` in
17302 .) ac_abs_builddir="$ac_dir";;
17303 *)
17304   case "$ac_dir" in
17305   .) ac_abs_builddir=`pwd`;;
17306   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17307   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17308   esac;;
17309 esac
17310 case $ac_abs_builddir in
17311 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17312 *)
17313   case ${ac_top_builddir}. in
17314   .) ac_abs_top_builddir=$ac_abs_builddir;;
17315   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17316   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17317   esac;;
17318 esac
17319 case $ac_abs_builddir in
17320 .) ac_abs_srcdir=$ac_srcdir;;
17321 *)
17322   case $ac_srcdir in
17323   .) ac_abs_srcdir=$ac_abs_builddir;;
17324   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17325   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17326   esac;;
17327 esac
17328 case $ac_abs_builddir in
17329 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17330 *)
17331   case $ac_top_srcdir in
17332   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17333   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17334   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17335   esac;;
17336 esac
17337
17338
17339   case $INSTALL in
17340   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17341   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17342   esac
17343
17344   if test x"$ac_file" != x-; then
17345     { echo "$as_me:$LINENO: creating $ac_file" >&5
17346 echo "$as_me: creating $ac_file" >&6;}
17347     rm -f "$ac_file"
17348   fi
17349   # Let's still pretend it is `configure' which instantiates (i.e., don't
17350   # use $as_me), people would be surprised to read:
17351   #    /* config.h.  Generated by config.status.  */
17352   if test x"$ac_file" = x-; then
17353     configure_input=
17354   else
17355     configure_input="$ac_file.  "
17356   fi
17357   configure_input=$configure_input"Generated from `echo $ac_file_in |
17358                                      sed 's,.*/,,'` by configure."
17359
17360   # First look for the input files in the build tree, otherwise in the
17361   # src tree.
17362   ac_file_inputs=`IFS=:
17363     for f in $ac_file_in; do
17364       case $f in
17365       -) echo $tmp/stdin ;;
17366       [\\/$]*)
17367          # Absolute (can't be DOS-style, as IFS=:)
17368          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17369 echo "$as_me: error: cannot find input file: $f" >&2;}
17370    { (exit 1); exit 1; }; }
17371          echo "$f";;
17372       *) # Relative
17373          if test -f "$f"; then
17374            # Build tree
17375            echo "$f"
17376          elif test -f "$srcdir/$f"; then
17377            # Source tree
17378            echo "$srcdir/$f"
17379          else
17380            # /dev/null tree
17381            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17382 echo "$as_me: error: cannot find input file: $f" >&2;}
17383    { (exit 1); exit 1; }; }
17384          fi;;
17385       esac
17386     done` || { (exit 1); exit 1; }
17387 _ACEOF
17388 cat >>$CONFIG_STATUS <<_ACEOF
17389   sed "$ac_vpsub
17390 $extrasub
17391 _ACEOF
17392 cat >>$CONFIG_STATUS <<\_ACEOF
17393 :t
17394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17395 s,@configure_input@,$configure_input,;t t
17396 s,@srcdir@,$ac_srcdir,;t t
17397 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17398 s,@top_srcdir@,$ac_top_srcdir,;t t
17399 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17400 s,@builddir@,$ac_builddir,;t t
17401 s,@abs_builddir@,$ac_abs_builddir,;t t
17402 s,@top_builddir@,$ac_top_builddir,;t t
17403 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17404 s,@INSTALL@,$ac_INSTALL,;t t
17405 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17406   rm -f $tmp/stdin
17407   if test x"$ac_file" != x-; then
17408     mv $tmp/out $ac_file
17409   else
17410     cat $tmp/out
17411     rm -f $tmp/out
17412   fi
17413
17414 done
17415 _ACEOF
17416 cat >>$CONFIG_STATUS <<\_ACEOF
17417
17418 #
17419 # CONFIG_HEADER section.
17420 #
17421
17422 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17423 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17424 #
17425 # ac_d sets the value in "#define NAME VALUE" lines.
17426 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
17427 ac_dB='[         ].*$,\1#\2'
17428 ac_dC=' '
17429 ac_dD=',;t'
17430 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17431 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17432 ac_uB='$,\1#\2define\3'
17433 ac_uC=' '
17434 ac_uD=',;t'
17435
17436 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17437   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17438   case $ac_file in
17439   - | *:- | *:-:* ) # input from stdin
17440         cat >$tmp/stdin
17441         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17442         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17443   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17444         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17445   * )   ac_file_in=$ac_file.in ;;
17446   esac
17447
17448   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17449 echo "$as_me: creating $ac_file" >&6;}
17450
17451   # First look for the input files in the build tree, otherwise in the
17452   # src tree.
17453   ac_file_inputs=`IFS=:
17454     for f in $ac_file_in; do
17455       case $f in
17456       -) echo $tmp/stdin ;;
17457       [\\/$]*)
17458          # Absolute (can't be DOS-style, as IFS=:)
17459          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17460 echo "$as_me: error: cannot find input file: $f" >&2;}
17461    { (exit 1); exit 1; }; }
17462          # Do quote $f, to prevent DOS paths from being IFS'd.
17463          echo "$f";;
17464       *) # Relative
17465          if test -f "$f"; then
17466            # Build tree
17467            echo "$f"
17468          elif test -f "$srcdir/$f"; then
17469            # Source tree
17470            echo "$srcdir/$f"
17471          else
17472            # /dev/null tree
17473            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17474 echo "$as_me: error: cannot find input file: $f" >&2;}
17475    { (exit 1); exit 1; }; }
17476          fi;;
17477       esac
17478     done` || { (exit 1); exit 1; }
17479   # Remove the trailing spaces.
17480   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
17481
17482 _ACEOF
17483
17484 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17485 # `conftest.undefs', that substitutes the proper values into
17486 # config.h.in to produce config.h.  The first handles `#define'
17487 # templates, and the second `#undef' templates.
17488 # And first: Protect against being on the right side of a sed subst in
17489 # config.status.  Protect against being in an unquoted here document
17490 # in config.status.
17491 rm -f conftest.defines conftest.undefs
17492 # Using a here document instead of a string reduces the quoting nightmare.
17493 # Putting comments in sed scripts is not portable.
17494 #
17495 # `end' is used to avoid that the second main sed command (meant for
17496 # 0-ary CPP macros) applies to n-ary macro definitions.
17497 # See the Autoconf documentation for `clear'.
17498 cat >confdef2sed.sed <<\_ACEOF
17499 s/[\\&,]/\\&/g
17500 s,[\\$`],\\&,g
17501 t clear
17502 : clear
17503 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17504 t end
17505 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17506 : end
17507 _ACEOF
17508 # If some macros were called several times there might be several times
17509 # the same #defines, which is useless.  Nevertheless, we may not want to
17510 # sort them, since we want the *last* AC-DEFINE to be honored.
17511 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17512 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17513 rm -f confdef2sed.sed
17514
17515 # This sed command replaces #undef with comments.  This is necessary, for
17516 # example, in the case of _POSIX_SOURCE, which is predefined and required
17517 # on some systems where configure will not decide to define it.
17518 cat >>conftest.undefs <<\_ACEOF
17519 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17520 _ACEOF
17521
17522 # Break up conftest.defines because some shells have a limit on the size
17523 # of here documents, and old seds have small limits too (100 cmds).
17524 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17525 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17526 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17527 echo '  :' >>$CONFIG_STATUS
17528 rm -f conftest.tail
17529 while grep . conftest.defines >/dev/null
17530 do
17531   # Write a limited-size here document to $tmp/defines.sed.
17532   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17533   # Speed up: don't consider the non `#define' lines.
17534   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
17535   # Work around the forget-to-reset-the-flag bug.
17536   echo 't clr' >>$CONFIG_STATUS
17537   echo ': clr' >>$CONFIG_STATUS
17538   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17539   echo 'CEOF
17540   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17541   rm -f $tmp/in
17542   mv $tmp/out $tmp/in
17543 ' >>$CONFIG_STATUS
17544   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17545   rm -f conftest.defines
17546   mv conftest.tail conftest.defines
17547 done
17548 rm -f conftest.defines
17549 echo '  fi # grep' >>$CONFIG_STATUS
17550 echo >>$CONFIG_STATUS
17551
17552 # Break up conftest.undefs because some shells have a limit on the size
17553 # of here documents, and old seds have small limits too (100 cmds).
17554 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17555 rm -f conftest.tail
17556 while grep . conftest.undefs >/dev/null
17557 do
17558   # Write a limited-size here document to $tmp/undefs.sed.
17559   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17560   # Speed up: don't consider the non `#undef'
17561   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17562   # Work around the forget-to-reset-the-flag bug.
17563   echo 't clr' >>$CONFIG_STATUS
17564   echo ': clr' >>$CONFIG_STATUS
17565   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17566   echo 'CEOF
17567   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17568   rm -f $tmp/in
17569   mv $tmp/out $tmp/in
17570 ' >>$CONFIG_STATUS
17571   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17572   rm -f conftest.undefs
17573   mv conftest.tail conftest.undefs
17574 done
17575 rm -f conftest.undefs
17576
17577 cat >>$CONFIG_STATUS <<\_ACEOF
17578   # Let's still pretend it is `configure' which instantiates (i.e., don't
17579   # use $as_me), people would be surprised to read:
17580   #    /* config.h.  Generated by config.status.  */
17581   if test x"$ac_file" = x-; then
17582     echo "/* Generated by configure.  */" >$tmp/config.h
17583   else
17584     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17585   fi
17586   cat $tmp/in >>$tmp/config.h
17587   rm -f $tmp/in
17588   if test x"$ac_file" != x-; then
17589     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17590       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17591 echo "$as_me: $ac_file is unchanged" >&6;}
17592     else
17593       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17595          X"$ac_file" : 'X\(//\)[^/]' \| \
17596          X"$ac_file" : 'X\(//\)$' \| \
17597          X"$ac_file" : 'X\(/\)' \| \
17598          .     : '\(.\)' 2>/dev/null ||
17599 echo X"$ac_file" |
17600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17601           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17602           /^X\(\/\/\)$/{ s//\1/; q; }
17603           /^X\(\/\).*/{ s//\1/; q; }
17604           s/.*/./; q'`
17605       { if $as_mkdir_p; then
17606     mkdir -p "$ac_dir"
17607   else
17608     as_dir="$ac_dir"
17609     as_dirs=
17610     while test ! -d "$as_dir"; do
17611       as_dirs="$as_dir $as_dirs"
17612       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17614          X"$as_dir" : 'X\(//\)[^/]' \| \
17615          X"$as_dir" : 'X\(//\)$' \| \
17616          X"$as_dir" : 'X\(/\)' \| \
17617          .     : '\(.\)' 2>/dev/null ||
17618 echo X"$as_dir" |
17619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17620           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17621           /^X\(\/\/\)$/{ s//\1/; q; }
17622           /^X\(\/\).*/{ s//\1/; q; }
17623           s/.*/./; q'`
17624     done
17625     test ! -n "$as_dirs" || mkdir $as_dirs
17626   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17627 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17628    { (exit 1); exit 1; }; }; }
17629
17630       rm -f $ac_file
17631       mv $tmp/config.h $ac_file
17632     fi
17633   else
17634     cat $tmp/config.h
17635     rm -f $tmp/config.h
17636   fi
17637 # Compute $ac_file's index in $config_headers.
17638 _am_stamp_count=1
17639 for _am_header in $config_headers :; do
17640   case $_am_header in
17641     $ac_file | $ac_file:* )
17642       break ;;
17643     * )
17644       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17645   esac
17646 done
17647 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17648 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17649          X$ac_file : 'X\(//\)[^/]' \| \
17650          X$ac_file : 'X\(//\)$' \| \
17651          X$ac_file : 'X\(/\)' \| \
17652          .     : '\(.\)' 2>/dev/null ||
17653 echo X$ac_file |
17654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17655           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17656           /^X\(\/\/\)$/{ s//\1/; q; }
17657           /^X\(\/\).*/{ s//\1/; q; }
17658           s/.*/./; q'`/stamp-h$_am_stamp_count
17659 done
17660 _ACEOF
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662
17663 #
17664 # CONFIG_LINKS section.
17665 #
17666
17667 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17668   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17669   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17670
17671   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17672 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17673
17674   if test ! -r $srcdir/$ac_source; then
17675     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17676 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17677    { (exit 1); exit 1; }; }
17678   fi
17679   rm -f $ac_dest
17680
17681   # Make relative symlinks.
17682   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17683 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17684          X"$ac_dest" : 'X\(//\)[^/]' \| \
17685          X"$ac_dest" : 'X\(//\)$' \| \
17686          X"$ac_dest" : 'X\(/\)' \| \
17687          .     : '\(.\)' 2>/dev/null ||
17688 echo X"$ac_dest" |
17689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17690           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17691           /^X\(\/\/\)$/{ s//\1/; q; }
17692           /^X\(\/\).*/{ s//\1/; q; }
17693           s/.*/./; q'`
17694   { if $as_mkdir_p; then
17695     mkdir -p "$ac_dest_dir"
17696   else
17697     as_dir="$ac_dest_dir"
17698     as_dirs=
17699     while test ! -d "$as_dir"; do
17700       as_dirs="$as_dir $as_dirs"
17701       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17703          X"$as_dir" : 'X\(//\)[^/]' \| \
17704          X"$as_dir" : 'X\(//\)$' \| \
17705          X"$as_dir" : 'X\(/\)' \| \
17706          .     : '\(.\)' 2>/dev/null ||
17707 echo X"$as_dir" |
17708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17709           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17710           /^X\(\/\/\)$/{ s//\1/; q; }
17711           /^X\(\/\).*/{ s//\1/; q; }
17712           s/.*/./; q'`
17713     done
17714     test ! -n "$as_dirs" || mkdir $as_dirs
17715   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17716 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17717    { (exit 1); exit 1; }; }; }
17718
17719   ac_builddir=.
17720
17721 if test "$ac_dest_dir" != .; then
17722   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17723   # A "../" for each directory in $ac_dir_suffix.
17724   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17725 else
17726   ac_dir_suffix= ac_top_builddir=
17727 fi
17728
17729 case $srcdir in
17730   .)  # No --srcdir option.  We are building in place.
17731     ac_srcdir=.
17732     if test -z "$ac_top_builddir"; then
17733        ac_top_srcdir=.
17734     else
17735        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17736     fi ;;
17737   [\\/]* | ?:[\\/]* )  # Absolute path.
17738     ac_srcdir=$srcdir$ac_dir_suffix;
17739     ac_top_srcdir=$srcdir ;;
17740   *) # Relative path.
17741     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17742     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17743 esac
17744
17745 # Do not use `cd foo && pwd` to compute absolute paths, because
17746 # the directories may not exist.
17747 case `pwd` in
17748 .) ac_abs_builddir="$ac_dest_dir";;
17749 *)
17750   case "$ac_dest_dir" in
17751   .) ac_abs_builddir=`pwd`;;
17752   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17753   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17754   esac;;
17755 esac
17756 case $ac_abs_builddir in
17757 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17758 *)
17759   case ${ac_top_builddir}. in
17760   .) ac_abs_top_builddir=$ac_abs_builddir;;
17761   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17762   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17763   esac;;
17764 esac
17765 case $ac_abs_builddir in
17766 .) ac_abs_srcdir=$ac_srcdir;;
17767 *)
17768   case $ac_srcdir in
17769   .) ac_abs_srcdir=$ac_abs_builddir;;
17770   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17771   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17772   esac;;
17773 esac
17774 case $ac_abs_builddir in
17775 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17776 *)
17777   case $ac_top_srcdir in
17778   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17779   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17780   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17781   esac;;
17782 esac
17783
17784
17785   case $srcdir in
17786   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17787       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17788   esac
17789
17790   # Try a symlink, then a hard link, then a copy.
17791   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17792     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17793     cp -p $srcdir/$ac_source $ac_dest ||
17794     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17795 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17796    { (exit 1); exit 1; }; }
17797 done
17798 _ACEOF
17799 cat >>$CONFIG_STATUS <<\_ACEOF
17800
17801 #
17802 # CONFIG_COMMANDS section.
17803 #
17804 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17805   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17806   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17807   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17808 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17809          X"$ac_dest" : 'X\(//\)[^/]' \| \
17810          X"$ac_dest" : 'X\(//\)$' \| \
17811          X"$ac_dest" : 'X\(/\)' \| \
17812          .     : '\(.\)' 2>/dev/null ||
17813 echo X"$ac_dest" |
17814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17816           /^X\(\/\/\)$/{ s//\1/; q; }
17817           /^X\(\/\).*/{ s//\1/; q; }
17818           s/.*/./; q'`
17819   { if $as_mkdir_p; then
17820     mkdir -p "$ac_dir"
17821   else
17822     as_dir="$ac_dir"
17823     as_dirs=
17824     while test ! -d "$as_dir"; do
17825       as_dirs="$as_dir $as_dirs"
17826       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17828          X"$as_dir" : 'X\(//\)[^/]' \| \
17829          X"$as_dir" : 'X\(//\)$' \| \
17830          X"$as_dir" : 'X\(/\)' \| \
17831          .     : '\(.\)' 2>/dev/null ||
17832 echo X"$as_dir" |
17833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17834           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17835           /^X\(\/\/\)$/{ s//\1/; q; }
17836           /^X\(\/\).*/{ s//\1/; q; }
17837           s/.*/./; q'`
17838     done
17839     test ! -n "$as_dirs" || mkdir $as_dirs
17840   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17841 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17842    { (exit 1); exit 1; }; }; }
17843
17844   ac_builddir=.
17845
17846 if test "$ac_dir" != .; then
17847   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17848   # A "../" for each directory in $ac_dir_suffix.
17849   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17850 else
17851   ac_dir_suffix= ac_top_builddir=
17852 fi
17853
17854 case $srcdir in
17855   .)  # No --srcdir option.  We are building in place.
17856     ac_srcdir=.
17857     if test -z "$ac_top_builddir"; then
17858        ac_top_srcdir=.
17859     else
17860        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17861     fi ;;
17862   [\\/]* | ?:[\\/]* )  # Absolute path.
17863     ac_srcdir=$srcdir$ac_dir_suffix;
17864     ac_top_srcdir=$srcdir ;;
17865   *) # Relative path.
17866     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17867     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17868 esac
17869
17870 # Do not use `cd foo && pwd` to compute absolute paths, because
17871 # the directories may not exist.
17872 case `pwd` in
17873 .) ac_abs_builddir="$ac_dir";;
17874 *)
17875   case "$ac_dir" in
17876   .) ac_abs_builddir=`pwd`;;
17877   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17878   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17879   esac;;
17880 esac
17881 case $ac_abs_builddir in
17882 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17883 *)
17884   case ${ac_top_builddir}. in
17885   .) ac_abs_top_builddir=$ac_abs_builddir;;
17886   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17887   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17888   esac;;
17889 esac
17890 case $ac_abs_builddir in
17891 .) ac_abs_srcdir=$ac_srcdir;;
17892 *)
17893   case $ac_srcdir in
17894   .) ac_abs_srcdir=$ac_abs_builddir;;
17895   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17896   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17897   esac;;
17898 esac
17899 case $ac_abs_builddir in
17900 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17901 *)
17902   case $ac_top_srcdir in
17903   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17904   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17905   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17906   esac;;
17907 esac
17908
17909
17910   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17911 echo "$as_me: executing $ac_dest commands" >&6;}
17912   case $ac_dest in
17913     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17914   # Strip MF so we end up with the name of the file.
17915   mf=`echo "$mf" | sed -e 's/:.*$//'`
17916   # Check whether this is an Automake generated Makefile or not.
17917   # We used to match only the files named `Makefile.in', but
17918   # some people rename them; so instead we look at the file content.
17919   # Grep'ing the first line is not enough: some people post-process
17920   # each Makefile.in and add a new line on top of each file to say so.
17921   # So let's grep whole file.
17922   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17923     dirpart=`(dirname "$mf") 2>/dev/null ||
17924 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17925          X"$mf" : 'X\(//\)[^/]' \| \
17926          X"$mf" : 'X\(//\)$' \| \
17927          X"$mf" : 'X\(/\)' \| \
17928          .     : '\(.\)' 2>/dev/null ||
17929 echo X"$mf" |
17930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17932           /^X\(\/\/\)$/{ s//\1/; q; }
17933           /^X\(\/\).*/{ s//\1/; q; }
17934           s/.*/./; q'`
17935   else
17936     continue
17937   fi
17938   # Extract the definition of DEPDIR, am__include, and am__quote
17939   # from the Makefile without running `make'.
17940   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17941   test -z "$DEPDIR" && continue
17942   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17943   test -z "am__include" && continue
17944   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17945   # When using ansi2knr, U may be empty or an underscore; expand it
17946   U=`sed -n 's/^U = //p' < "$mf"`
17947   # Find all dependency output files, they are included files with
17948   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17949   # simplest approach to changing $(DEPDIR) to its actual value in the
17950   # expansion.
17951   for file in `sed -n "
17952     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17953        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17954     # Make sure the directory exists.
17955     test -f "$dirpart/$file" && continue
17956     fdir=`(dirname "$file") 2>/dev/null ||
17957 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17958          X"$file" : 'X\(//\)[^/]' \| \
17959          X"$file" : 'X\(//\)$' \| \
17960          X"$file" : 'X\(/\)' \| \
17961          .     : '\(.\)' 2>/dev/null ||
17962 echo X"$file" |
17963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17964           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17965           /^X\(\/\/\)$/{ s//\1/; q; }
17966           /^X\(\/\).*/{ s//\1/; q; }
17967           s/.*/./; q'`
17968     { if $as_mkdir_p; then
17969     mkdir -p $dirpart/$fdir
17970   else
17971     as_dir=$dirpart/$fdir
17972     as_dirs=
17973     while test ! -d "$as_dir"; do
17974       as_dirs="$as_dir $as_dirs"
17975       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17977          X"$as_dir" : 'X\(//\)[^/]' \| \
17978          X"$as_dir" : 'X\(//\)$' \| \
17979          X"$as_dir" : 'X\(/\)' \| \
17980          .     : '\(.\)' 2>/dev/null ||
17981 echo X"$as_dir" |
17982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17984           /^X\(\/\/\)$/{ s//\1/; q; }
17985           /^X\(\/\).*/{ s//\1/; q; }
17986           s/.*/./; q'`
17987     done
17988     test ! -n "$as_dirs" || mkdir $as_dirs
17989   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17990 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17991    { (exit 1); exit 1; }; }; }
17992
17993     # echo "creating $dirpart/$file"
17994     echo '# dummy' > "$dirpart/$file"
17995   done
17996 done
17997  ;;
17998     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17999 case " $CONFIG_FILES " in
18000  *" Makefile "*)
18001    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18002    ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18003    ;;
18004 esac
18005 for ac_multi_file in $CONFIG_FILES; do
18006   case $ac_multi_file in
18007   */Makefile)
18008     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18009   esac
18010 done
18011  ;;
18012   esac
18013 done
18014 _ACEOF
18015
18016 cat >>$CONFIG_STATUS <<\_ACEOF
18017
18018 { (exit 0); exit 0; }
18019 _ACEOF
18020 chmod +x $CONFIG_STATUS
18021 ac_clean_files=$ac_clean_files_save
18022
18023
18024 # configure is writing to config.log, and then calls config.status.
18025 # config.status does its own redirection, appending to config.log.
18026 # Unfortunately, on DOS this fails, as config.log is still kept open
18027 # by configure, so config.status won't be able to write to it; its
18028 # output is simply discarded.  So we exec the FD to /dev/null,
18029 # effectively closing config.log, so it can be properly (re)opened and
18030 # appended to by config.status.  When coming back to configure, we
18031 # need to make the FD available again.
18032 if test "$no_create" != yes; then
18033   ac_cs_success=:
18034   ac_config_status_args=
18035   test "$silent" = yes &&
18036     ac_config_status_args="$ac_config_status_args --quiet"
18037   exec 5>/dev/null
18038   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18039   exec 5>>config.log
18040   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18041   # would make configure fail if this is the last instruction.
18042   $ac_cs_success || { (exit 1); exit 1; }
18043 fi
18044
18045 #
18046 # CONFIG_SUBDIRS section.
18047 #
18048 if test "$no_recursion" != yes; then
18049
18050   # Remove --cache-file and --srcdir arguments so they do not pile up.
18051   ac_sub_configure_args=
18052   ac_prev=
18053   for ac_arg in $ac_configure_args; do
18054     if test -n "$ac_prev"; then
18055       ac_prev=
18056       continue
18057     fi
18058     case $ac_arg in
18059     -cache-file | --cache-file | --cache-fil | --cache-fi \
18060     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18061       ac_prev=cache_file ;;
18062     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18063     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18064     | --c=*)
18065       ;;
18066     --config-cache | -C)
18067       ;;
18068     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18069       ac_prev=srcdir ;;
18070     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18071       ;;
18072     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18073       ac_prev=prefix ;;
18074     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18075       ;;
18076     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18077     esac
18078   done
18079
18080   # Always prepend --prefix to ensure using the same prefix
18081   # in subdir configurations.
18082   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18083
18084   ac_popdir=`pwd`
18085   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18086
18087     # Do not complain, so a configure script can configure whichever
18088     # parts of a large source tree are present.
18089     test -d $srcdir/$ac_dir || continue
18090
18091     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18092 echo "$as_me: configuring in $ac_dir" >&6;}
18093     { if $as_mkdir_p; then
18094     mkdir -p "$ac_dir"
18095   else
18096     as_dir="$ac_dir"
18097     as_dirs=
18098     while test ! -d "$as_dir"; do
18099       as_dirs="$as_dir $as_dirs"
18100       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18102          X"$as_dir" : 'X\(//\)[^/]' \| \
18103          X"$as_dir" : 'X\(//\)$' \| \
18104          X"$as_dir" : 'X\(/\)' \| \
18105          .     : '\(.\)' 2>/dev/null ||
18106 echo X"$as_dir" |
18107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18108           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18109           /^X\(\/\/\)$/{ s//\1/; q; }
18110           /^X\(\/\).*/{ s//\1/; q; }
18111           s/.*/./; q'`
18112     done
18113     test ! -n "$as_dirs" || mkdir $as_dirs
18114   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18115 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18116    { (exit 1); exit 1; }; }; }
18117
18118     ac_builddir=.
18119
18120 if test "$ac_dir" != .; then
18121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18122   # A "../" for each directory in $ac_dir_suffix.
18123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18124 else
18125   ac_dir_suffix= ac_top_builddir=
18126 fi
18127
18128 case $srcdir in
18129   .)  # No --srcdir option.  We are building in place.
18130     ac_srcdir=.
18131     if test -z "$ac_top_builddir"; then
18132        ac_top_srcdir=.
18133     else
18134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18135     fi ;;
18136   [\\/]* | ?:[\\/]* )  # Absolute path.
18137     ac_srcdir=$srcdir$ac_dir_suffix;
18138     ac_top_srcdir=$srcdir ;;
18139   *) # Relative path.
18140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18142 esac
18143
18144 # Do not use `cd foo && pwd` to compute absolute paths, because
18145 # the directories may not exist.
18146 case `pwd` in
18147 .) ac_abs_builddir="$ac_dir";;
18148 *)
18149   case "$ac_dir" in
18150   .) ac_abs_builddir=`pwd`;;
18151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18153   esac;;
18154 esac
18155 case $ac_abs_builddir in
18156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18157 *)
18158   case ${ac_top_builddir}. in
18159   .) ac_abs_top_builddir=$ac_abs_builddir;;
18160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18162   esac;;
18163 esac
18164 case $ac_abs_builddir in
18165 .) ac_abs_srcdir=$ac_srcdir;;
18166 *)
18167   case $ac_srcdir in
18168   .) ac_abs_srcdir=$ac_abs_builddir;;
18169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18171   esac;;
18172 esac
18173 case $ac_abs_builddir in
18174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18175 *)
18176   case $ac_top_srcdir in
18177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18180   esac;;
18181 esac
18182
18183
18184     cd $ac_dir
18185
18186     # Check for guested configure; otherwise get Cygnus style configure.
18187     if test -f $ac_srcdir/configure.gnu; then
18188       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18189     elif test -f $ac_srcdir/configure; then
18190       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18191     elif test -f $ac_srcdir/configure.in; then
18192       ac_sub_configure=$ac_configure
18193     else
18194       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18195 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18196       ac_sub_configure=
18197     fi
18198
18199     # The recursion is here.
18200     if test -n "$ac_sub_configure"; then
18201       # Make the cache file name correct relative to the subdirectory.
18202       case $cache_file in
18203       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18204       *) # Relative path.
18205         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18206       esac
18207
18208       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18209 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18210       # The eval makes quoting arguments work.
18211       eval $ac_sub_configure $ac_sub_configure_args \
18212            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18213         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18214 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18215    { (exit 1); exit 1; }; }
18216     fi
18217
18218     cd $ac_popdir
18219   done
18220 fi
18221